From b5787a3874a0acc16892e65a0691ca563dc474e2 Mon Sep 17 00:00:00 2001 From: alantlliu Date: Thu, 31 Aug 2023 14:20:18 +0800 Subject: [PATCH] import node-pool --- .changelog/2138.txt | 3 + tencentcloud/extension_as.go | 3 + tencentcloud/internal/helper/transform.go | 9 + .../resource_tc_kubernetes_node_pool.go | 222 +- .../resource_tc_kubernetes_node_pool_test.go | 4 + tencentcloud/service_tencentcloud_tke.go | 12 +- .../tencentcloud/tke/v20180525/models.go | 2151 +++++++++-------- .../docs/r/kubernetes_node_pool.html.markdown | 1 + 8 files changed, 1298 insertions(+), 1107 deletions(-) create mode 100644 .changelog/2138.txt diff --git a/.changelog/2138.txt b/.changelog/2138.txt new file mode 100644 index 0000000000..11a7af4c28 --- /dev/null +++ b/.changelog/2138.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_kubernetes_node_pool: set up the node pool and import it into Terraform +``` diff --git a/tencentcloud/extension_as.go b/tencentcloud/extension_as.go index b81dddae0a..90f68fe35d 100644 --- a/tencentcloud/extension_as.go +++ b/tencentcloud/extension_as.go @@ -7,6 +7,7 @@ const ( SYSTEM_DISK_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM" SYSTEM_DISK_TYPE_CLOUD_SSD = "CLOUD_SSD" SYSTEM_DISK_TYPE_CLOUD_HSSD = "CLOUD_HSSD" + SYSTEM_DISK_TYPE_CLOUD_BSSD = "CLOUD_BSSD" SYSTEM_DISK_TYPE_CLOUD_TSSD = "CLOUD_TSSD" ) @@ -18,6 +19,7 @@ var SYSTEM_DISK_ALLOW_TYPE = []string{ SYSTEM_DISK_TYPE_CLOUD_SSD, SYSTEM_DISK_TYPE_CLOUD_HSSD, SYSTEM_DISK_TYPE_CLOUD_TSSD, + SYSTEM_DISK_TYPE_CLOUD_BSSD, } const ( @@ -47,6 +49,7 @@ const ( const ( SCALING_GROUP_RETRY_POLICY_IMMEDIATE_RETRY = "IMMEDIATE_RETRY" + SCALING_GROUP_RETRY_POLICY_NO_RETRY = "NO_RETRY" SCALING_GROUP_RETRY_POLICY_INCREMENTAL_INTERVALS = "INCREMENTAL_INTERVALS" ) diff --git a/tencentcloud/internal/helper/transform.go b/tencentcloud/internal/helper/transform.go index 583a97e526..b813e0da4d 100644 --- a/tencentcloud/internal/helper/transform.go +++ b/tencentcloud/internal/helper/transform.go @@ -71,12 +71,21 @@ func PString(pointer *string) string { } return *pointer } +func PBool(pointer *bool) bool { + if pointer == nil { + return false + } + return *pointer +} func PUint64(pointer *uint64) uint64 { return *pointer } func PInt64(pointer *int64) int64 { + if pointer == nil { + return 0 + } return *pointer } diff --git a/tencentcloud/resource_tc_kubernetes_node_pool.go b/tencentcloud/resource_tc_kubernetes_node_pool.go index 5b545348ed..e156e0102d 100644 --- a/tencentcloud/resource_tc_kubernetes_node_pool.go +++ b/tencentcloud/resource_tc_kubernetes_node_pool.go @@ -160,6 +160,8 @@ import ( "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" ) +var importFlag = false + // merge `instance_type` to `backup_instance_types` as param `instance_types` func getNodePoolInstanceTypes(d *schema.ResourceData) []*string { configParas := d.Get("auto_scaling_config").([]interface{}) @@ -440,7 +442,7 @@ func resourceTencentCloudKubernetesNodePool() *schema.Resource { Description: "Available values for retry policies include `IMMEDIATE_RETRY` and `INCREMENTAL_INTERVALS`.", Default: SCALING_GROUP_RETRY_POLICY_IMMEDIATE_RETRY, ValidateFunc: validateAllowedStringValue([]string{SCALING_GROUP_RETRY_POLICY_IMMEDIATE_RETRY, - SCALING_GROUP_RETRY_POLICY_INCREMENTAL_INTERVALS}), + SCALING_GROUP_RETRY_POLICY_INCREMENTAL_INTERVALS, SCALING_GROUP_RETRY_POLICY_NO_RETRY}), }, "vpc_id": { Type: schema.TypeString, @@ -531,11 +533,12 @@ func resourceTencentCloudKubernetesNodePool() *schema.Resource { Default: true, Description: "Indicate to keep the CVM instance when delete the node pool. Default is `true`.", }, - //"deletion_protection": { - // Type: schema.TypeBool, - // Optional: true, - // Description: "Indicates whether the node pool deletion protection is enabled.", - //}, + "deletion_protection": { + Type: schema.TypeBool, + Optional: true, + Computed: true, + Description: "Indicates whether the node pool deletion protection is enabled.", + }, "node_os": { Type: schema.TypeString, Optional: true, @@ -543,9 +546,17 @@ func resourceTencentCloudKubernetesNodePool() *schema.Resource { Description: "Operating system of the cluster. Please refer to [TencentCloud Documentation](https://www.tencentcloud.com/document/product/457/46750?lang=en&pg=#list-of-public-images-supported-by-tke) for available values. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.", }, "node_os_type": { - Type: schema.TypeString, - Optional: true, - Default: "GENERAL", + Type: schema.TypeString, + Optional: true, + Default: "GENERAL", + DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { + if v, ok := d.GetOk("node_os"); ok { + if strings.Contains(v.(string), "img-") { + return true + } + } + return false + }, Description: "The image version of the node. Valida values are `DOCKER_CUSTOMIZE` and `GENERAL`. Default is `GENERAL`. This parameter will only affect new nodes, not including the existing nodes.", }, // asg pass through arguments @@ -619,7 +630,16 @@ func resourceTencentCloudKubernetesNodePool() *schema.Resource { }, }, Importer: &schema.ResourceImporter{ - State: schema.ImportStatePassthrough, + //State: schema.ImportStatePassthrough, + StateContext: func(ctx context.Context, d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) { + importFlag = true + err := resourceKubernetesNodePoolRead(d, m) + if err != nil { + return nil, fmt.Errorf("failed to import resource") + } + + return []*schema.ResourceData{d}, nil + }, }, //compare to console, miss cam_role and running_version and lock_initial_node and security_proof } @@ -1105,6 +1125,9 @@ func resourceKubernetesNodePoolRead(d *schema.ResourceData, meta interface{}) er _ = d.Set("node_count", AutoscalingAddedTotal+ManuallyAddedTotal) _ = d.Set("auto_scaling_group_id", nodePool.AutoscalingGroupId) _ = d.Set("launch_config_id", nodePool.LaunchConfigurationId) + if _, ok := d.GetOkExists("unschedulable"); !ok && importFlag { + _ = d.Set("unschedulable", nodePool.Unschedulable) + } //set not force new parameters if nodePool.MaxNodesNum != nil { _ = d.Set("max_size", nodePool.MaxNodesNum) @@ -1118,11 +1141,16 @@ func resourceKubernetesNodePoolRead(d *schema.ResourceData, meta interface{}) er if nodePool.AutoscalingGroupStatus != nil { _ = d.Set("enable_auto_scale", *nodePool.AutoscalingGroupStatus == "enabled") } - if nodePool.NodePoolOs != nil { - _ = d.Set("node_os", nodePool.NodePoolOs) - } - if nodePool.OsCustomizeType != nil { - _ = d.Set("node_os_type", nodePool.OsCustomizeType) + //修复自定义镜像返回信息的不一致 + if nodePool.ImageId != nil && *nodePool.ImageId != "" { + _ = d.Set("node_os", nodePool.ImageId) + } else { + if nodePool.NodePoolOs != nil { + _ = d.Set("node_os", nodePool.NodePoolOs) + } + if nodePool.OsCustomizeType != nil { + _ = d.Set("node_os_type", nodePool.OsCustomizeType) + } } if tags := nodePool.Tags; tags != nil { @@ -1134,9 +1162,9 @@ func resourceKubernetesNodePoolRead(d *schema.ResourceData, meta interface{}) er _ = d.Set("tags", tagMap) } - //if nodePool.DeletionProtection != nil { - // _ = d.Set("deletion_protection", nodePool.DeletionProtection) - //} + if nodePool.DeletionProtection != nil { + _ = d.Set("deletion_protection", nodePool.DeletionProtection) + } //set composed struct lables := make(map[string]interface{}, len(nodePool.Labels)) @@ -1254,6 +1282,104 @@ func resourceKubernetesNodePoolRead(d *schema.ResourceData, meta interface{}) er } } + nodeConfig := make(map[string]interface{}) + nodeConfigs := make([]interface{}, 0, 1) + if nodePool.DataDisks != nil && len(nodePool.DataDisks) > 0 { + dataDisks := make([]interface{}, 0, len(nodePool.DataDisks)) + for i := range nodePool.DataDisks { + item := nodePool.DataDisks[i] + disk := make(map[string]interface{}) + disk["disk_type"] = helper.PString(item.DiskType) + disk["disk_size"] = helper.PInt64(item.DiskSize) + disk["file_system"] = helper.PString(item.FileSystem) + disk["auto_format_and_mount"] = helper.PBool(item.AutoFormatAndMount) + disk["mount_target"] = helper.PString(item.MountTarget) + disk["disk_partition"] = helper.PString(item.MountTarget) + dataDisks = append(dataDisks, disk) + } + nodeConfig["data_disk"] = dataDisks + } + + if helper.PInt64(nodePool.DesiredPodNum) != 0 { + nodeConfig["desired_pod_num"] = helper.PInt64(nodePool.DesiredPodNum) + } + + if helper.PInt64(nodePool.Unschedulable) != 0 { + nodeConfig["is_schedule"] = false + } else { + nodeConfig["is_schedule"] = true + } + + if helper.PString(nodePool.DockerGraphPath) != "" { + nodeConfig["docker_graph_path"] = helper.PString(nodePool.DockerGraphPath) + } else { + nodeConfig["docker_graph_path"] = "/var/lib/docker" + } + + if importFlag { + if nodePool.ExtraArgs != nil && len(nodePool.ExtraArgs.Kubelet) > 0 { + extraArgs := make([]string, 0) + for i := range nodePool.ExtraArgs.Kubelet { + extraArgs = append(extraArgs, helper.PString(nodePool.ExtraArgs.Kubelet[i])) + } + nodeConfig["extra_args"] = extraArgs + } + + if helper.PString(nodePool.UserScript) != "" { + nodeConfig["user_data"] = helper.PString(nodePool.UserScript) + } + + if nodePool.GPUArgs != nil { + setting := nodePool.GPUArgs + var driverEmptyFlag, cudaEmptyFlag, cudnnEmptyFlag, customDriverEmptyFlag bool + gpuArgs := map[string]interface{}{ + "mig_enable": helper.PBool(setting.MIGEnable), + } + + if !isDriverEmpty(setting.Driver) { + driverEmptyFlag = true + driver := map[string]interface{}{ + "version": helper.PString(setting.Driver.Version), + "name": helper.PString(setting.Driver.Name), + } + gpuArgs["driver"] = driver + } + + if !isCUDAEmpty(setting.CUDA) { + cudaEmptyFlag = true + cuda := map[string]interface{}{ + "version": helper.PString(setting.CUDA.Version), + "name": helper.PString(setting.CUDA.Name), + } + gpuArgs["cuda"] = cuda + } + + if !isCUDNNEmpty(setting.CUDNN) { + cudnnEmptyFlag = true + cudnn := map[string]interface{}{ + "version": helper.PString(setting.CUDNN.Version), + "name": helper.PString(setting.CUDNN.Name), + "doc_name": helper.PString(setting.CUDNN.DocName), + "dev_name": helper.PString(setting.CUDNN.DevName), + } + gpuArgs["cudnn"] = cudnn + } + + if !isCustomDriverEmpty(setting.CustomDriver) { + customDriverEmptyFlag = true + customDriver := map[string]interface{}{ + "address": helper.PString(setting.CustomDriver.Address), + } + gpuArgs["custom_driver"] = customDriver + } + if driverEmptyFlag || cudaEmptyFlag || cudnnEmptyFlag || customDriverEmptyFlag { + nodeConfig["gpu_args"] = []map[string]interface{}{gpuArgs} + } + } + nodeConfigs = append(nodeConfigs, nodeConfig) + _ = d.Set("node_config", nodeConfigs) + } + // Relative scaling group status asg, hasAsg, err := asService.DescribeAutoScalingGroupById(ctx, *nodePool.AutoscalingGroupId) if err != nil { @@ -1279,12 +1405,23 @@ func resourceKubernetesNodePoolRead(d *schema.ResourceData, meta interface{}) er _ = d.Set("vpc_id", asg.VpcId) _ = d.Set("retry_policy", asg.RetryPolicy) _ = d.Set("subnet_ids", helper.StringsInterfaces(asg.SubnetIdSet)) - + if v, ok := d.GetOk("scaling_mode"); ok { + if asg.ServiceSettings != nil && asg.ServiceSettings.ScalingMode != nil { + _ = d.Set("scaling_mode", helper.PString(asg.ServiceSettings.ScalingMode)) + } else { + _ = d.Set("scaling_mode", v.(string)) + } + } // If not check, the diff between computed and default empty value leads to force replacement if _, ok := d.GetOk("multi_zone_subnet_policy"); ok { _ = d.Set("multi_zone_subnet_policy", asg.MultiZoneSubnetPolicy) } } + if v, ok := d.GetOkExists("delete_keep_instance"); ok { + _ = d.Set("delete_keep_instance", v.(bool)) + } else { + _ = d.Set("delete_keep_instance", true) + } taints := make([]map[string]interface{}, len(nodePool.Taints)) for i, v := range nodePool.Taints { @@ -1296,6 +1433,7 @@ func resourceKubernetesNodePoolRead(d *schema.ResourceData, meta interface{}) er taints[i] = taint } _ = d.Set("taints", taints) + _ = d.Set("import_flag", false) return nil } @@ -1345,12 +1483,16 @@ func resourceKubernetesNodePoolCreate(d *schema.ResourceData, meta interface{}) nodeOs := d.Get("node_os").(string) nodeOsType := d.Get("node_os_type").(string) + //自定镜像不能指定节点操作系统类型 + if strings.Contains(nodeOs, "img-") { + nodeOsType = "" + } - //deletionProtection := d.Get("deletion_protection").(bool) + deletionProtection := d.Get("deletion_protection").(bool) service := TkeService{client: meta.(*TencentCloudClient).apiV3Conn} - nodePoolId, err := service.CreateClusterNodePool(ctx, clusterId, name, groupParaStr, configParaStr, enableAutoScale, nodeOs, nodeOsType, labels, taints, iAdvanced) + nodePoolId, err := service.CreateClusterNodePool(ctx, clusterId, name, groupParaStr, configParaStr, enableAutoScale, nodeOs, nodeOsType, labels, taints, iAdvanced, deletionProtection) if err != nil { return err } @@ -1464,7 +1606,7 @@ func resourceKubernetesNodePoolUpdate(d *schema.ResourceData, meta interface{}) "name", "labels", "taints", - //"deletion_protection", + "deletion_protection", "enable_auto_scale", "node_os_type", "node_os", @@ -1472,15 +1614,19 @@ func resourceKubernetesNodePoolUpdate(d *schema.ResourceData, meta interface{}) maxSize := int64(d.Get("max_size").(int)) minSize := int64(d.Get("min_size").(int)) enableAutoScale := d.Get("enable_auto_scale").(bool) - //deletionProtection := d.Get("deletion_protection").(bool) + deletionProtection := d.Get("deletion_protection").(bool) name := d.Get("name").(string) - nodeOs := d.Get("node_os").(string) - nodeOsType := d.Get("node_os_type").(string) labels := GetTkeLabels(d, "labels") taints := GetTkeTaints(d, "taints") tags := helper.GetTags(d, "tags") + nodeOs := d.Get("node_os").(string) + nodeOsType := d.Get("node_os_type").(string) + //自定镜像不能指定节点操作系统类型 + if strings.Contains(nodeOs, "img-") { + nodeOsType = "" + } err := resource.Retry(writeRetryTimeout, func() *resource.RetryError { - errRet := service.ModifyClusterNodePool(ctx, clusterId, nodePoolId, name, enableAutoScale, minSize, maxSize, nodeOs, nodeOsType, labels, taints, tags) + errRet := service.ModifyClusterNodePool(ctx, clusterId, nodePoolId, name, enableAutoScale, minSize, maxSize, nodeOs, nodeOsType, labels, taints, tags, deletionProtection) if errRet != nil { return retryError(errRet) } @@ -1594,7 +1740,7 @@ func resourceKubernetesNodePoolDelete(d *schema.ResourceData, meta interface{}) service = TkeService{client: meta.(*TencentCloudClient).apiV3Conn} items = strings.Split(d.Id(), FILED_SP) deleteKeepInstance = d.Get("delete_keep_instance").(bool) - //deletionProtection = d.Get("deletion_protection").(bool) + deletionProtection = d.Get("deletion_protection").(bool) ) if len(items) != 2 { return fmt.Errorf("resource_tc_kubernetes_node_pool id is broken") @@ -1602,9 +1748,9 @@ func resourceKubernetesNodePoolDelete(d *schema.ResourceData, meta interface{}) clusterId := items[0] nodePoolId := items[1] - //if deletionProtection { - // return fmt.Errorf("deletion protection was enabled, please set `deletion_protection` to `false` and apply first") - //} + if deletionProtection { + return fmt.Errorf("deletion protection was enabled, please set `deletion_protection` to `false` and apply first") + } //delete as group hasDelete := false @@ -1649,3 +1795,19 @@ func resourceKubernetesNodePoolDelete(d *schema.ResourceData, meta interface{}) return err } + +func isCUDNNEmpty(cudnn *tke.CUDNN) bool { + return cudnn == nil || (helper.PString(cudnn.Version) == "" && helper.PString(cudnn.Name) == "" && helper.PString(cudnn.DocName) == "" && helper.PString(cudnn.DevName) == "") +} + +func isCUDAEmpty(cuda *tke.DriverVersion) bool { + return cuda == nil || (helper.PString(cuda.Version) == "" && helper.PString(cuda.Name) == "") +} + +func isDriverEmpty(driver *tke.DriverVersion) bool { + return driver == nil || (helper.PString(driver.Version) == "" && helper.PString(driver.Name) == "") +} + +func isCustomDriverEmpty(customDriver *tke.CustomDriver) bool { + return customDriver == nil || helper.PString(customDriver.Address) == "" +} diff --git a/tencentcloud/resource_tc_kubernetes_node_pool_test.go b/tencentcloud/resource_tc_kubernetes_node_pool_test.go index 44f1729400..d2701f1dcf 100644 --- a/tencentcloud/resource_tc_kubernetes_node_pool_test.go +++ b/tencentcloud/resource_tc_kubernetes_node_pool_test.go @@ -94,6 +94,7 @@ func TestAccTencentCloudKubernetesNodePoolResource_basic(t *testing.T) { resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "desired_capacity", "1"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "name", "mynodepool"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "unschedulable", "0"), + resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "deletion_protection", "true"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "scaling_group_name", "asg_np_test"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "default_cooldown", "400"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "termination_policies.#", "1"), @@ -120,6 +121,7 @@ func TestAccTencentCloudKubernetesNodePoolResource_basic(t *testing.T) { resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.data_disk.#", "2"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.data_disk.0.delete_with_instance", "true"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.data_disk.0.delete_with_instance", "true"), + resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "deletion_protection", "false"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.internet_max_bandwidth_out", "20"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.instance_charge_type", "SPOTPAID"), resource.TestCheckResourceAttr(testTkeClusterNodePoolResourceKey, "auto_scaling_config.0.spot_instance_type", "one-time"), @@ -297,6 +299,7 @@ resource "tencentcloud_kubernetes_node_pool" "np_test" { default_cooldown = 400 termination_policies = ["OLDEST_INSTANCE"] scaling_group_project_id = var.default_project + deletion_protection = true delete_keep_instance = false node_os="tlinux2.2(tkernel3)x86_64" @@ -358,6 +361,7 @@ resource "tencentcloud_kubernetes_node_pool" "np_test" { enable_auto_scale = false node_os = var.default_img scaling_group_project_id = var.default_project + deletion_protection = false delete_keep_instance = false scaling_group_name = "asg_np_test_changed" default_cooldown = 350 diff --git a/tencentcloud/service_tencentcloud_tke.go b/tencentcloud/service_tencentcloud_tke.go index 00c991e171..80f9479cc1 100644 --- a/tencentcloud/service_tencentcloud_tke.go +++ b/tencentcloud/service_tencentcloud_tke.go @@ -1236,7 +1236,7 @@ func (me *TkeService) ModifyClusterAsGroupAttribute(ctx context.Context, id, asG return } -func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name, groupPara, configPara string, enableAutoScale bool, nodeOs string, nodeOsType string, labels []*tke.Label, taints []*tke.Taint, iAdvanced tke.InstanceAdvancedSettings) (asGroupId string, errRet error) { +func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name, groupPara, configPara string, enableAutoScale bool, nodeOs string, nodeOsType string, labels []*tke.Label, taints []*tke.Taint, iAdvanced tke.InstanceAdvancedSettings, deletionProtection bool) (asGroupId string, errRet error) { logId := getLogId(ctx) request := tke.NewCreateClusterNodePoolRequest() @@ -1251,9 +1251,11 @@ func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name request.LaunchConfigurePara = &configPara request.InstanceAdvancedSettings = &iAdvanced request.EnableAutoscale = &enableAutoScale - //request.DeletionProtection = &deletionProtection + request.DeletionProtection = &deletionProtection request.NodePoolOs = &nodeOs - request.OsCustomizeType = &nodeOsType + if nodeOsType != "" { + request.OsCustomizeType = &nodeOsType + } if len(labels) > 0 { request.Labels = labels @@ -1279,7 +1281,7 @@ func (me *TkeService) CreateClusterNodePool(ctx context.Context, clusterId, name return } -func (me *TkeService) ModifyClusterNodePool(ctx context.Context, clusterId, nodePoolId string, name string, enableAutoScale bool, minSize int64, maxSize int64, nodeOs string, nodeOsType string, labels []*tke.Label, taints []*tke.Taint, tags map[string]string) (errRet error) { +func (me *TkeService) ModifyClusterNodePool(ctx context.Context, clusterId, nodePoolId string, name string, enableAutoScale bool, minSize int64, maxSize int64, nodeOs string, nodeOsType string, labels []*tke.Label, taints []*tke.Taint, tags map[string]string, deletionProtection bool) (errRet error) { logId := getLogId(ctx) request := tke.NewModifyClusterNodePoolRequest() @@ -1293,7 +1295,7 @@ func (me *TkeService) ModifyClusterNodePool(ctx context.Context, clusterId, node request.Taints = taints request.Labels = labels request.EnableAutoscale = &enableAutoScale - //request.DeletionProtection = &deletionProtection + request.DeletionProtection = &deletionProtection request.MaxNodesNum = &maxSize request.MinNodesNum = &minSize request.Name = &name diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525/models.go index 8355818f02..076ad2ebf6 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525/models.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke/v20180525/models.go @@ -15,9 +15,9 @@ package v20180525 import ( - "encoding/json" - tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" - tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" + "encoding/json" + tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" + tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" ) // Predefined struct for user @@ -28,14 +28,14 @@ type AcquireClusterAdminRoleRequestParams struct { type AcquireClusterAdminRoleRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *AcquireClusterAdminRoleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -64,8 +64,8 @@ type AcquireClusterAdminRoleResponse struct { } func (r *AcquireClusterAdminRoleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -88,7 +88,7 @@ type AddClusterCIDRRequestParams struct { type AddClusterCIDRRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -100,8 +100,8 @@ type AddClusterCIDRRequest struct { } func (r *AddClusterCIDRRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -132,8 +132,8 @@ type AddClusterCIDRResponse struct { } func (r *AddClusterCIDRResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -172,7 +172,7 @@ type AddExistedInstancesRequestParams struct { SkipValidateOptions []*string `json:"SkipValidateOptions,omitempty" name:"SkipValidateOptions"` // 参数InstanceAdvancedSettingsOverride数组用于定制化地配置各台instance,与InstanceIds顺序对应。当传入InstanceAdvancedSettingsOverrides数组时,将覆盖默认参数InstanceAdvancedSettings;当没有传入参数InstanceAdvancedSettingsOverrides时,InstanceAdvancedSettings参数对每台instance生效。 - // + // // 参数InstanceAdvancedSettingsOverride数组的长度应与InstanceIds数组一致;当长度大于InstanceIds数组长度时将报错;当长度小于InstanceIds数组时,没有对应配置的instace将使用默认配置。 InstanceAdvancedSettingsOverrides []*InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverrides,omitempty" name:"InstanceAdvancedSettingsOverrides"` @@ -182,7 +182,7 @@ type AddExistedInstancesRequestParams struct { type AddExistedInstancesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -211,7 +211,7 @@ type AddExistedInstancesRequest struct { SkipValidateOptions []*string `json:"SkipValidateOptions,omitempty" name:"SkipValidateOptions"` // 参数InstanceAdvancedSettingsOverride数组用于定制化地配置各台instance,与InstanceIds顺序对应。当传入InstanceAdvancedSettingsOverrides数组时,将覆盖默认参数InstanceAdvancedSettings;当没有传入参数InstanceAdvancedSettingsOverrides时,InstanceAdvancedSettings参数对每台instance生效。 - // + // // 参数InstanceAdvancedSettingsOverride数组的长度应与InstanceIds数组一致;当长度大于InstanceIds数组长度时将报错;当长度小于InstanceIds数组时,没有对应配置的instace将使用默认配置。 InstanceAdvancedSettingsOverrides []*InstanceAdvancedSettings `json:"InstanceAdvancedSettingsOverrides,omitempty" name:"InstanceAdvancedSettingsOverrides"` @@ -220,8 +220,8 @@ type AddExistedInstancesRequest struct { } func (r *AddExistedInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -276,8 +276,8 @@ type AddExistedInstancesResponse struct { } func (r *AddExistedInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -300,7 +300,7 @@ type AddNodeToNodePoolRequestParams struct { type AddNodeToNodePoolRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -312,8 +312,8 @@ type AddNodeToNodePoolRequest struct { } func (r *AddNodeToNodePoolRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -344,8 +344,8 @@ type AddNodeToNodePoolResponse struct { } func (r *AddNodeToNodePoolResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -371,7 +371,7 @@ type AddVpcCniSubnetsRequestParams struct { type AddVpcCniSubnetsRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -386,8 +386,8 @@ type AddVpcCniSubnetsRequest struct { } func (r *AddVpcCniSubnetsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -419,8 +419,8 @@ type AddVpcCniSubnetsResponse struct { } func (r *AddVpcCniSubnetsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -489,17 +489,17 @@ type AutoscalingAdded struct { } type BackupStorageLocation struct { - // 备份仓库名称 + // 备份仓库名称 Name *string `json:"Name,omitempty" name:"Name"` - // 存储仓库所属地域,比如COS广州(ap-guangzhou) + // 存储仓库所属地域,比如COS广州(ap-guangzhou) StorageRegion *string `json:"StorageRegion,omitempty" name:"StorageRegion"` - // 存储服务提供方,默认腾讯云 + // 存储服务提供方,默认腾讯云 // 注意:此字段可能返回 null,表示取不到有效值。 Provider *string `json:"Provider,omitempty" name:"Provider"` - // 对象存储桶名称,如果是COS必须是tke-backup-前缀开头 + // 对象存储桶名称,如果是COS必须是tke-backup-前缀开头 // 注意:此字段可能返回 null,表示取不到有效值。 Bucket *string `json:"Bucket,omitempty" name:"Bucket"` @@ -511,11 +511,11 @@ type BackupStorageLocation struct { // 注意:此字段可能返回 null,表示取不到有效值。 State *string `json:"State,omitempty" name:"State"` - // 详细状态信息 + // 详细状态信息 // 注意:此字段可能返回 null,表示取不到有效值。 Message *string `json:"Message,omitempty" name:"Message"` - // 最后一次检查时间 + // 最后一次检查时间 // 注意:此字段可能返回 null,表示取不到有效值。 LastValidationTime *string `json:"LastValidationTime,omitempty" name:"LastValidationTime"` } @@ -548,7 +548,7 @@ type CancelClusterReleaseRequestParams struct { type CancelClusterReleaseRequest struct { *tchttp.BaseRequest - + // 应用ID ID *string `json:"ID,omitempty" name:"ID"` @@ -560,8 +560,8 @@ type CancelClusterReleaseRequest struct { } func (r *CancelClusterReleaseRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -596,8 +596,8 @@ type CancelClusterReleaseResponse struct { } func (r *CancelClusterReleaseResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -638,7 +638,7 @@ type CheckEdgeClusterCIDRRequestParams struct { type CheckEdgeClusterCIDRRequest struct { *tchttp.BaseRequest - + // 集群的vpc-id VpcId *string `json:"VpcId,omitempty" name:"VpcId"` @@ -650,8 +650,8 @@ type CheckEdgeClusterCIDRRequest struct { } func (r *CheckEdgeClusterCIDRRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -693,8 +693,8 @@ type CheckEdgeClusterCIDRResponse struct { } func (r *CheckEdgeClusterCIDRResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -726,7 +726,7 @@ type CheckInstancesUpgradeAbleRequestParams struct { type CheckInstancesUpgradeAbleRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -747,8 +747,8 @@ type CheckInstancesUpgradeAbleRequest struct { } func (r *CheckInstancesUpgradeAbleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -800,8 +800,8 @@ type CheckInstancesUpgradeAbleResponse struct { } func (r *CheckInstancesUpgradeAbleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1463,7 +1463,7 @@ type CreateBackupStorageLocationRequestParams struct { type CreateBackupStorageLocationRequest struct { *tchttp.BaseRequest - + // 存储仓库所属地域,比如COS广州(ap-guangzhou) StorageRegion *string `json:"StorageRegion,omitempty" name:"StorageRegion"` @@ -1481,8 +1481,8 @@ type CreateBackupStorageLocationRequest struct { } func (r *CreateBackupStorageLocationRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1515,8 +1515,8 @@ type CreateBackupStorageLocationResponse struct { } func (r *CreateBackupStorageLocationResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1553,7 +1553,7 @@ type CreateClusterEndpointRequestParams struct { type CreateClusterEndpointRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -1579,8 +1579,8 @@ type CreateClusterEndpointRequest struct { } func (r *CreateClusterEndpointRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1614,8 +1614,8 @@ type CreateClusterEndpointResponse struct { } func (r *CreateClusterEndpointResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1635,7 +1635,7 @@ type CreateClusterEndpointVipRequestParams struct { type CreateClusterEndpointVipRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -1644,8 +1644,8 @@ type CreateClusterEndpointVipRequest struct { } func (r *CreateClusterEndpointVipRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1678,8 +1678,8 @@ type CreateClusterEndpointVipResponse struct { } func (r *CreateClusterEndpointVipResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1705,7 +1705,7 @@ type CreateClusterInstancesRequestParams struct { type CreateClusterInstancesRequest struct { *tchttp.BaseRequest - + // 集群 ID,请填写 查询集群列表 接口中返回的 clusterId 字段 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -1720,8 +1720,8 @@ type CreateClusterInstancesRequest struct { } func (r *CreateClusterInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1756,8 +1756,8 @@ type CreateClusterInstancesResponse struct { } func (r *CreateClusterInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1813,7 +1813,7 @@ type CreateClusterNodePoolRequestParams struct { type CreateClusterNodePoolRequest struct { *tchttp.BaseRequest - + // cluster id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -1858,8 +1858,8 @@ type CreateClusterNodePoolRequest struct { } func (r *CreateClusterNodePoolRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1904,8 +1904,8 @@ type CreateClusterNodePoolResponse struct { } func (r *CreateClusterNodePoolResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -1955,7 +1955,7 @@ type CreateClusterReleaseRequestParams struct { type CreateClusterReleaseRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -1994,8 +1994,8 @@ type CreateClusterReleaseRequest struct { } func (r *CreateClusterReleaseRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2039,8 +2039,8 @@ type CreateClusterReleaseResponse struct { } func (r *CreateClusterReleaseResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2081,7 +2081,7 @@ type CreateClusterRequestParams struct { type CreateClusterRequest struct { *tchttp.BaseRequest - + // 集群容器网络配置信息 ClusterCIDRSettings *ClusterCIDRSettings `json:"ClusterCIDRSettings,omitempty" name:"ClusterCIDRSettings"` @@ -2111,8 +2111,8 @@ type CreateClusterRequest struct { } func (r *CreateClusterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2152,8 +2152,8 @@ type CreateClusterResponse struct { } func (r *CreateClusterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2176,7 +2176,7 @@ type CreateClusterRouteRequestParams struct { type CreateClusterRouteRequest struct { *tchttp.BaseRequest - + // 路由表名称。 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` @@ -2188,8 +2188,8 @@ type CreateClusterRouteRequest struct { } func (r *CreateClusterRouteRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2220,8 +2220,8 @@ type CreateClusterRouteResponse struct { } func (r *CreateClusterRouteResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2247,7 +2247,7 @@ type CreateClusterRouteTableRequestParams struct { type CreateClusterRouteTableRequest struct { *tchttp.BaseRequest - + // 路由表名称 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` @@ -2262,8 +2262,8 @@ type CreateClusterRouteTableRequest struct { } func (r *CreateClusterRouteTableRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2295,8 +2295,8 @@ type CreateClusterRouteTableResponse struct { } func (r *CreateClusterRouteTableResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2339,7 +2339,7 @@ type CreateClusterVirtualNodePoolRequestParams struct { type CreateClusterVirtualNodePoolRequest struct { *tchttp.BaseRequest - + // 集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -2371,8 +2371,8 @@ type CreateClusterVirtualNodePoolRequest struct { } func (r *CreateClusterVirtualNodePoolRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2412,8 +2412,8 @@ type CreateClusterVirtualNodePoolResponse struct { } func (r *CreateClusterVirtualNodePoolResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2442,7 +2442,7 @@ type CreateClusterVirtualNodeRequestParams struct { type CreateClusterVirtualNodeRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -2460,8 +2460,8 @@ type CreateClusterVirtualNodeRequest struct { } func (r *CreateClusterVirtualNodeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2497,8 +2497,8 @@ type CreateClusterVirtualNodeResponse struct { } func (r *CreateClusterVirtualNodeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2548,7 +2548,7 @@ type CreateECMInstancesRequestParams struct { type CreateECMInstancesRequest struct { *tchttp.BaseRequest - + // 集群id ClusterID *string `json:"ClusterID,omitempty" name:"ClusterID"` @@ -2587,8 +2587,8 @@ type CreateECMInstancesRequest struct { } func (r *CreateECMInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2631,8 +2631,8 @@ type CreateECMInstancesResponse struct { } func (r *CreateECMInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2679,7 +2679,7 @@ type CreateEKSClusterRequestParams struct { type CreateEKSClusterRequest struct { *tchttp.BaseRequest - + // k8s版本号。可为1.18.4 1.20.6。 K8SVersion *string `json:"K8SVersion,omitempty" name:"K8SVersion"` @@ -2715,8 +2715,8 @@ type CreateEKSClusterRequest struct { } func (r *CreateEKSClusterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2758,8 +2758,8 @@ type CreateEKSClusterResponse struct { } func (r *CreateEKSClusterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2844,7 +2844,7 @@ type CreateEKSContainerInstancesRequestParams struct { type CreateEKSContainerInstancesRequest struct { *tchttp.BaseRequest - + // 容器组 Containers []*Container `json:"Containers,omitempty" name:"Containers"` @@ -2918,8 +2918,8 @@ type CreateEKSContainerInstancesRequest struct { } func (r *CreateEKSContainerInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -2970,8 +2970,8 @@ type CreateEKSContainerInstancesResponse struct { } func (r *CreateEKSContainerInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3006,7 +3006,7 @@ type CreateEdgeCVMInstancesRequestParams struct { type CreateEdgeCVMInstancesRequest struct { *tchttp.BaseRequest - + // 集群id ClusterID *string `json:"ClusterID,omitempty" name:"ClusterID"` @@ -3030,8 +3030,8 @@ type CreateEdgeCVMInstancesRequest struct { } func (r *CreateEdgeCVMInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3069,8 +3069,8 @@ type CreateEdgeCVMInstancesResponse struct { } func (r *CreateEdgeCVMInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3093,7 +3093,7 @@ type CreateEdgeLogConfigRequestParams struct { type CreateEdgeLogConfigRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -3105,8 +3105,8 @@ type CreateEdgeLogConfigRequest struct { } func (r *CreateEdgeLogConfigRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3137,8 +3137,8 @@ type CreateEdgeLogConfigResponse struct { } func (r *CreateEdgeLogConfigResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3196,7 +3196,7 @@ type CreateImageCacheRequestParams struct { type CreateImageCacheRequest struct { *tchttp.BaseRequest - + // 用于制作镜像缓存的容器镜像列表 Images []*string `json:"Images,omitempty" name:"Images"` @@ -3243,8 +3243,8 @@ type CreateImageCacheRequest struct { } func (r *CreateImageCacheRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3289,8 +3289,8 @@ type CreateImageCacheResponse struct { } func (r *CreateImageCacheResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3310,7 +3310,7 @@ type CreatePrometheusAlertPolicyRequestParams struct { type CreatePrometheusAlertPolicyRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -3319,8 +3319,8 @@ type CreatePrometheusAlertPolicyRequest struct { } func (r *CreatePrometheusAlertPolicyRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3353,8 +3353,8 @@ type CreatePrometheusAlertPolicyResponse struct { } func (r *CreatePrometheusAlertPolicyResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3374,7 +3374,7 @@ type CreatePrometheusAlertRuleRequestParams struct { type CreatePrometheusAlertRuleRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -3383,8 +3383,8 @@ type CreatePrometheusAlertRuleRequest struct { } func (r *CreatePrometheusAlertRuleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3417,8 +3417,8 @@ type CreatePrometheusAlertRuleResponse struct { } func (r *CreatePrometheusAlertRuleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3438,7 +3438,7 @@ type CreatePrometheusClusterAgentRequestParams struct { type CreatePrometheusClusterAgentRequest struct { *tchttp.BaseRequest - + // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -3447,8 +3447,8 @@ type CreatePrometheusClusterAgentRequest struct { } func (r *CreatePrometheusClusterAgentRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3478,8 +3478,8 @@ type CreatePrometheusClusterAgentResponse struct { } func (r *CreatePrometheusClusterAgentResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3511,7 +3511,7 @@ type CreatePrometheusConfigRequestParams struct { type CreatePrometheusConfigRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -3532,8 +3532,8 @@ type CreatePrometheusConfigRequest struct { } func (r *CreatePrometheusConfigRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3567,8 +3567,8 @@ type CreatePrometheusConfigResponse struct { } func (r *CreatePrometheusConfigResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3592,7 +3592,7 @@ type CreatePrometheusDashboardRequestParams struct { type CreatePrometheusDashboardRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -3605,8 +3605,8 @@ type CreatePrometheusDashboardRequest struct { } func (r *CreatePrometheusDashboardRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3637,8 +3637,8 @@ type CreatePrometheusDashboardResponse struct { } func (r *CreatePrometheusDashboardResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3658,7 +3658,7 @@ type CreatePrometheusGlobalNotificationRequestParams struct { type CreatePrometheusGlobalNotificationRequest struct { *tchttp.BaseRequest - + // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -3667,8 +3667,8 @@ type CreatePrometheusGlobalNotificationRequest struct { } func (r *CreatePrometheusGlobalNotificationRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3702,8 +3702,8 @@ type CreatePrometheusGlobalNotificationResponse struct { } func (r *CreatePrometheusGlobalNotificationResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3723,7 +3723,7 @@ type CreatePrometheusRecordRuleYamlRequestParams struct { type CreatePrometheusRecordRuleYamlRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -3732,8 +3732,8 @@ type CreatePrometheusRecordRuleYamlRequest struct { } func (r *CreatePrometheusRecordRuleYamlRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3763,8 +3763,8 @@ type CreatePrometheusRecordRuleYamlResponse struct { } func (r *CreatePrometheusRecordRuleYamlResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3781,14 +3781,14 @@ type CreatePrometheusTempRequestParams struct { type CreatePrometheusTempRequest struct { *tchttp.BaseRequest - + // 模板设置 Template *PrometheusTemp `json:"Template,omitempty" name:"Template"` } func (r *CreatePrometheusTempRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3820,8 +3820,8 @@ type CreatePrometheusTempResponse struct { } func (r *CreatePrometheusTempResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3838,14 +3838,14 @@ type CreatePrometheusTemplateRequestParams struct { type CreatePrometheusTemplateRequest struct { *tchttp.BaseRequest - + // 模板设置 Template *PrometheusTemplate `json:"Template,omitempty" name:"Template"` } func (r *CreatePrometheusTemplateRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3877,8 +3877,8 @@ type CreatePrometheusTemplateResponse struct { } func (r *CreatePrometheusTemplateResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -3937,7 +3937,7 @@ type CreateTKEEdgeClusterRequestParams struct { type CreateTKEEdgeClusterRequest struct { *tchttp.BaseRequest - + // k8s版本号 K8SVersion *string `json:"K8SVersion,omitempty" name:"K8SVersion"` @@ -3985,8 +3985,8 @@ type CreateTKEEdgeClusterRequest struct { } func (r *CreateTKEEdgeClusterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4032,8 +4032,8 @@ type CreateTKEEdgeClusterResponse struct { } func (r *CreateTKEEdgeClusterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4109,7 +4109,7 @@ type DeleteAddonRequestParams struct { type DeleteAddonRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -4118,8 +4118,8 @@ type DeleteAddonRequest struct { } func (r *DeleteAddonRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4149,8 +4149,8 @@ type DeleteAddonResponse struct { } func (r *DeleteAddonResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4167,14 +4167,14 @@ type DeleteBackupStorageLocationRequestParams struct { type DeleteBackupStorageLocationRequest struct { *tchttp.BaseRequest - + // 备份仓库名称 Name *string `json:"Name,omitempty" name:"Name"` } func (r *DeleteBackupStorageLocationRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4203,8 +4203,8 @@ type DeleteBackupStorageLocationResponse struct { } func (r *DeleteBackupStorageLocationResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4227,7 +4227,7 @@ type DeleteClusterAsGroupsRequestParams struct { type DeleteClusterAsGroupsRequest struct { *tchttp.BaseRequest - + // 集群ID,通过[DescribeClusters](https://cloud.tencent.com/document/api/457/31862)接口获取。 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -4239,8 +4239,8 @@ type DeleteClusterAsGroupsRequest struct { } func (r *DeleteClusterAsGroupsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4271,8 +4271,8 @@ type DeleteClusterAsGroupsResponse struct { } func (r *DeleteClusterAsGroupsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4292,7 +4292,7 @@ type DeleteClusterEndpointRequestParams struct { type DeleteClusterEndpointRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -4301,8 +4301,8 @@ type DeleteClusterEndpointRequest struct { } func (r *DeleteClusterEndpointRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4332,8 +4332,8 @@ type DeleteClusterEndpointResponse struct { } func (r *DeleteClusterEndpointResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4350,14 +4350,14 @@ type DeleteClusterEndpointVipRequestParams struct { type DeleteClusterEndpointVipRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DeleteClusterEndpointVipRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4386,8 +4386,8 @@ type DeleteClusterEndpointVipResponse struct { } func (r *DeleteClusterEndpointVipResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4413,7 +4413,7 @@ type DeleteClusterInstancesRequestParams struct { type DeleteClusterInstancesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -4428,8 +4428,8 @@ type DeleteClusterInstancesRequest struct { } func (r *DeleteClusterInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4473,8 +4473,8 @@ type DeleteClusterInstancesResponse struct { } func (r *DeleteClusterInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4497,7 +4497,7 @@ type DeleteClusterNodePoolRequestParams struct { type DeleteClusterNodePoolRequest struct { *tchttp.BaseRequest - + // 节点池对应的 ClusterId ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -4509,8 +4509,8 @@ type DeleteClusterNodePoolRequest struct { } func (r *DeleteClusterNodePoolRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4541,8 +4541,8 @@ type DeleteClusterNodePoolResponse struct { } func (r *DeleteClusterNodePoolResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4565,7 +4565,7 @@ type DeleteClusterRequestParams struct { type DeleteClusterRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -4577,8 +4577,8 @@ type DeleteClusterRequest struct { } func (r *DeleteClusterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4609,8 +4609,8 @@ type DeleteClusterResponse struct { } func (r *DeleteClusterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4633,7 +4633,7 @@ type DeleteClusterRouteRequestParams struct { type DeleteClusterRouteRequest struct { *tchttp.BaseRequest - + // 路由表名称。 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` @@ -4645,8 +4645,8 @@ type DeleteClusterRouteRequest struct { } func (r *DeleteClusterRouteRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4677,8 +4677,8 @@ type DeleteClusterRouteResponse struct { } func (r *DeleteClusterRouteResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4695,14 +4695,14 @@ type DeleteClusterRouteTableRequestParams struct { type DeleteClusterRouteTableRequest struct { *tchttp.BaseRequest - + // 路由表名称 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` } func (r *DeleteClusterRouteTableRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4731,8 +4731,8 @@ type DeleteClusterRouteTableResponse struct { } func (r *DeleteClusterRouteTableResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4755,7 +4755,7 @@ type DeleteClusterVirtualNodePoolRequestParams struct { type DeleteClusterVirtualNodePoolRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -4767,8 +4767,8 @@ type DeleteClusterVirtualNodePoolRequest struct { } func (r *DeleteClusterVirtualNodePoolRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4799,8 +4799,8 @@ type DeleteClusterVirtualNodePoolResponse struct { } func (r *DeleteClusterVirtualNodePoolResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4823,7 +4823,7 @@ type DeleteClusterVirtualNodeRequestParams struct { type DeleteClusterVirtualNodeRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -4835,8 +4835,8 @@ type DeleteClusterVirtualNodeRequest struct { } func (r *DeleteClusterVirtualNodeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4867,8 +4867,8 @@ type DeleteClusterVirtualNodeResponse struct { } func (r *DeleteClusterVirtualNodeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4888,7 +4888,7 @@ type DeleteECMInstancesRequestParams struct { type DeleteECMInstancesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterID *string `json:"ClusterID,omitempty" name:"ClusterID"` @@ -4897,8 +4897,8 @@ type DeleteECMInstancesRequest struct { } func (r *DeleteECMInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4928,8 +4928,8 @@ type DeleteECMInstancesResponse struct { } func (r *DeleteECMInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4946,14 +4946,14 @@ type DeleteEKSClusterRequestParams struct { type DeleteEKSClusterRequest struct { *tchttp.BaseRequest - + // 弹性集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DeleteEKSClusterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -4982,8 +4982,8 @@ type DeleteEKSClusterResponse struct { } func (r *DeleteEKSClusterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5003,7 +5003,7 @@ type DeleteEKSContainerInstancesRequestParams struct { type DeleteEKSContainerInstancesRequest struct { *tchttp.BaseRequest - + // 需要删除的EksCi的Id。 最大数量不超过20 EksCiIds []*string `json:"EksCiIds,omitempty" name:"EksCiIds"` @@ -5012,8 +5012,8 @@ type DeleteEKSContainerInstancesRequest struct { } func (r *DeleteEKSContainerInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5043,8 +5043,8 @@ type DeleteEKSContainerInstancesResponse struct { } func (r *DeleteEKSContainerInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5064,7 +5064,7 @@ type DeleteEdgeCVMInstancesRequestParams struct { type DeleteEdgeCVMInstancesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterID *string `json:"ClusterID,omitempty" name:"ClusterID"` @@ -5073,8 +5073,8 @@ type DeleteEdgeCVMInstancesRequest struct { } func (r *DeleteEdgeCVMInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5104,8 +5104,8 @@ type DeleteEdgeCVMInstancesResponse struct { } func (r *DeleteEdgeCVMInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5125,7 +5125,7 @@ type DeleteEdgeClusterInstancesRequestParams struct { type DeleteEdgeClusterInstancesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -5134,8 +5134,8 @@ type DeleteEdgeClusterInstancesRequest struct { } func (r *DeleteEdgeClusterInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5165,8 +5165,8 @@ type DeleteEdgeClusterInstancesResponse struct { } func (r *DeleteEdgeClusterInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5183,14 +5183,14 @@ type DeleteImageCachesRequestParams struct { type DeleteImageCachesRequest struct { *tchttp.BaseRequest - + // 镜像缓存Id数组 ImageCacheIds []*string `json:"ImageCacheIds,omitempty" name:"ImageCacheIds"` } func (r *DeleteImageCachesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5219,8 +5219,8 @@ type DeleteImageCachesResponse struct { } func (r *DeleteImageCachesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5243,7 +5243,7 @@ type DeletePrometheusAlertPolicyRequestParams struct { type DeletePrometheusAlertPolicyRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -5255,8 +5255,8 @@ type DeletePrometheusAlertPolicyRequest struct { } func (r *DeletePrometheusAlertPolicyRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5287,8 +5287,8 @@ type DeletePrometheusAlertPolicyResponse struct { } func (r *DeletePrometheusAlertPolicyResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5308,7 +5308,7 @@ type DeletePrometheusAlertRuleRequestParams struct { type DeletePrometheusAlertRuleRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -5317,8 +5317,8 @@ type DeletePrometheusAlertRuleRequest struct { } func (r *DeletePrometheusAlertRuleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5348,8 +5348,8 @@ type DeletePrometheusAlertRuleResponse struct { } func (r *DeletePrometheusAlertRuleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5369,7 +5369,7 @@ type DeletePrometheusClusterAgentRequestParams struct { type DeletePrometheusClusterAgentRequest struct { *tchttp.BaseRequest - + // agent列表 Agents []*PrometheusAgentInfo `json:"Agents,omitempty" name:"Agents"` @@ -5378,8 +5378,8 @@ type DeletePrometheusClusterAgentRequest struct { } func (r *DeletePrometheusClusterAgentRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5409,8 +5409,8 @@ type DeletePrometheusClusterAgentResponse struct { } func (r *DeletePrometheusClusterAgentResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5442,7 +5442,7 @@ type DeletePrometheusConfigRequestParams struct { type DeletePrometheusConfigRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -5463,8 +5463,8 @@ type DeletePrometheusConfigRequest struct { } func (r *DeletePrometheusConfigRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5498,8 +5498,8 @@ type DeletePrometheusConfigResponse struct { } func (r *DeletePrometheusConfigResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5519,7 +5519,7 @@ type DeletePrometheusRecordRuleYamlRequestParams struct { type DeletePrometheusRecordRuleYamlRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -5528,8 +5528,8 @@ type DeletePrometheusRecordRuleYamlRequest struct { } func (r *DeletePrometheusRecordRuleYamlRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5559,8 +5559,8 @@ type DeletePrometheusRecordRuleYamlResponse struct { } func (r *DeletePrometheusRecordRuleYamlResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5577,14 +5577,14 @@ type DeletePrometheusTempRequestParams struct { type DeletePrometheusTempRequest struct { *tchttp.BaseRequest - + // 模板id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` } func (r *DeletePrometheusTempRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5613,8 +5613,8 @@ type DeletePrometheusTempResponse struct { } func (r *DeletePrometheusTempResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5634,7 +5634,7 @@ type DeletePrometheusTempSyncRequestParams struct { type DeletePrometheusTempSyncRequest struct { *tchttp.BaseRequest - + // 模板id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` @@ -5643,8 +5643,8 @@ type DeletePrometheusTempSyncRequest struct { } func (r *DeletePrometheusTempSyncRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5674,8 +5674,8 @@ type DeletePrometheusTempSyncResponse struct { } func (r *DeletePrometheusTempSyncResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5692,14 +5692,14 @@ type DeletePrometheusTemplateRequestParams struct { type DeletePrometheusTemplateRequest struct { *tchttp.BaseRequest - + // 模板id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` } func (r *DeletePrometheusTemplateRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5728,8 +5728,8 @@ type DeletePrometheusTemplateResponse struct { } func (r *DeletePrometheusTemplateResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5749,7 +5749,7 @@ type DeletePrometheusTemplateSyncRequestParams struct { type DeletePrometheusTemplateSyncRequest struct { *tchttp.BaseRequest - + // 模板id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` @@ -5758,8 +5758,8 @@ type DeletePrometheusTemplateSyncRequest struct { } func (r *DeletePrometheusTemplateSyncRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5789,8 +5789,8 @@ type DeletePrometheusTemplateSyncResponse struct { } func (r *DeletePrometheusTemplateSyncResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5807,14 +5807,14 @@ type DeleteTKEEdgeClusterRequestParams struct { type DeleteTKEEdgeClusterRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DeleteTKEEdgeClusterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5843,8 +5843,8 @@ type DeleteTKEEdgeClusterResponse struct { } func (r *DeleteTKEEdgeClusterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5864,7 +5864,7 @@ type DescribeAddonRequestParams struct { type DescribeAddonRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -5873,8 +5873,8 @@ type DescribeAddonRequest struct { } func (r *DescribeAddonRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5907,8 +5907,8 @@ type DescribeAddonResponse struct { } func (r *DescribeAddonResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5928,7 +5928,7 @@ type DescribeAddonValuesRequestParams struct { type DescribeAddonValuesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -5937,8 +5937,8 @@ type DescribeAddonValuesRequest struct { } func (r *DescribeAddonValuesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5974,8 +5974,8 @@ type DescribeAddonValuesResponse struct { } func (r *DescribeAddonValuesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -5995,7 +5995,7 @@ type DescribeAvailableClusterVersionRequestParams struct { type DescribeAvailableClusterVersionRequest struct { *tchttp.BaseRequest - + // 集群 Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -6004,8 +6004,8 @@ type DescribeAvailableClusterVersionRequest struct { } func (r *DescribeAvailableClusterVersionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6043,8 +6043,8 @@ type DescribeAvailableClusterVersionResponse struct { } func (r *DescribeAvailableClusterVersionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6061,14 +6061,14 @@ type DescribeAvailableTKEEdgeVersionRequestParams struct { type DescribeAvailableTKEEdgeVersionRequest struct { *tchttp.BaseRequest - + // 填写ClusterId获取当前集群各个组件版本和最新版本 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeAvailableTKEEdgeVersionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6108,8 +6108,8 @@ type DescribeAvailableTKEEdgeVersionResponse struct { } func (r *DescribeAvailableTKEEdgeVersionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6126,14 +6126,14 @@ type DescribeBackupStorageLocationsRequestParams struct { type DescribeBackupStorageLocationsRequest struct { *tchttp.BaseRequest - + // 多个备份仓库名称,如果不填写,默认返回当前地域所有存储仓库名称 Names []*string `json:"Names,omitempty" name:"Names"` } func (r *DescribeBackupStorageLocationsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6166,8 +6166,8 @@ type DescribeBackupStorageLocationsResponse struct { } func (r *DescribeBackupStorageLocationsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6184,14 +6184,14 @@ type DescribeClusterAsGroupOptionRequestParams struct { type DescribeClusterAsGroupOptionRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeClusterAsGroupOptionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6224,8 +6224,8 @@ type DescribeClusterAsGroupOptionResponse struct { } func (r *DescribeClusterAsGroupOptionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6251,7 +6251,7 @@ type DescribeClusterAsGroupsRequestParams struct { type DescribeClusterAsGroupsRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -6266,8 +6266,8 @@ type DescribeClusterAsGroupsRequest struct { } func (r *DescribeClusterAsGroupsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6305,8 +6305,8 @@ type DescribeClusterAsGroupsResponse struct { } func (r *DescribeClusterAsGroupsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6323,14 +6323,14 @@ type DescribeClusterAuthenticationOptionsRequestParams struct { type DescribeClusterAuthenticationOptionsRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeClusterAuthenticationOptionsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6371,8 +6371,8 @@ type DescribeClusterAuthenticationOptionsResponse struct { } func (r *DescribeClusterAuthenticationOptionsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6395,7 +6395,7 @@ type DescribeClusterCommonNamesRequestParams struct { type DescribeClusterCommonNamesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -6407,8 +6407,8 @@ type DescribeClusterCommonNamesRequest struct { } func (r *DescribeClusterCommonNamesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6442,8 +6442,8 @@ type DescribeClusterCommonNamesResponse struct { } func (r *DescribeClusterCommonNamesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6460,14 +6460,14 @@ type DescribeClusterControllersRequestParams struct { type DescribeClusterControllersRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeClusterControllersRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6499,8 +6499,8 @@ type DescribeClusterControllersResponse struct { } func (r *DescribeClusterControllersResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6520,7 +6520,7 @@ type DescribeClusterEndpointStatusRequestParams struct { type DescribeClusterEndpointStatusRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -6529,8 +6529,8 @@ type DescribeClusterEndpointStatusRequest struct { } func (r *DescribeClusterEndpointStatusRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6568,8 +6568,8 @@ type DescribeClusterEndpointStatusResponse struct { } func (r *DescribeClusterEndpointStatusResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6586,14 +6586,14 @@ type DescribeClusterEndpointVipStatusRequestParams struct { type DescribeClusterEndpointVipStatusRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeClusterEndpointVipStatusRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6629,8 +6629,8 @@ type DescribeClusterEndpointVipStatusResponse struct { } func (r *DescribeClusterEndpointVipStatusResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6647,14 +6647,14 @@ type DescribeClusterEndpointsRequestParams struct { type DescribeClusterEndpointsRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeClusterEndpointsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6712,8 +6712,8 @@ type DescribeClusterEndpointsResponse struct { } func (r *DescribeClusterEndpointsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6735,7 +6735,7 @@ type DescribeClusterInspectionResultsOverviewRequestParams struct { type DescribeClusterInspectionResultsOverviewRequest struct { *tchttp.BaseRequest - + // Array of String 目标集群列表,为空查询用户所有集群 ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` @@ -6746,8 +6746,8 @@ type DescribeClusterInspectionResultsOverviewRequest struct { } func (r *DescribeClusterInspectionResultsOverviewRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6789,8 +6789,8 @@ type DescribeClusterInspectionResultsOverviewResponse struct { } func (r *DescribeClusterInspectionResultsOverviewResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6822,7 +6822,7 @@ type DescribeClusterInstancesRequestParams struct { type DescribeClusterInstancesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -6843,8 +6843,8 @@ type DescribeClusterInstancesRequest struct { } func (r *DescribeClusterInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6884,8 +6884,8 @@ type DescribeClusterInstancesResponse struct { } func (r *DescribeClusterInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6905,7 +6905,7 @@ type DescribeClusterKubeconfigRequestParams struct { type DescribeClusterKubeconfigRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -6914,8 +6914,8 @@ type DescribeClusterKubeconfigRequest struct { } func (r *DescribeClusterKubeconfigRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6948,8 +6948,8 @@ type DescribeClusterKubeconfigResponse struct { } func (r *DescribeClusterKubeconfigResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -6966,14 +6966,14 @@ type DescribeClusterLevelAttributeRequestParams struct { type DescribeClusterLevelAttributeRequest struct { *tchttp.BaseRequest - + // 集群ID,变配时使用 ClusterID *string `json:"ClusterID,omitempty" name:"ClusterID"` } func (r *DescribeClusterLevelAttributeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7008,8 +7008,8 @@ type DescribeClusterLevelAttributeResponse struct { } func (r *DescribeClusterLevelAttributeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7038,7 +7038,7 @@ type DescribeClusterLevelChangeRecordsRequestParams struct { type DescribeClusterLevelChangeRecordsRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterID *string `json:"ClusterID,omitempty" name:"ClusterID"` @@ -7056,8 +7056,8 @@ type DescribeClusterLevelChangeRecordsRequest struct { } func (r *DescribeClusterLevelChangeRecordsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7096,8 +7096,8 @@ type DescribeClusterLevelChangeRecordsResponse struct { } func (r *DescribeClusterLevelChangeRecordsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7117,7 +7117,7 @@ type DescribeClusterNodePoolDetailRequestParams struct { type DescribeClusterNodePoolDetailRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -7126,8 +7126,8 @@ type DescribeClusterNodePoolDetailRequest struct { } func (r *DescribeClusterNodePoolDetailRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7160,8 +7160,8 @@ type DescribeClusterNodePoolDetailResponse struct { } func (r *DescribeClusterNodePoolDetailResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7179,17 +7179,17 @@ type DescribeClusterNodePoolsRequestParams struct { // 按照【节点池名】进行过滤。 // 类型:String // 必选:否 - // + // // · NodePoolsId // 按照【节点池id】进行过滤。 // 类型:String // 必选:否 - // + // // · tags // 按照【标签键值对】进行过滤。 // 类型:String // 必选:否 - // + // // · tag:tag-key // 按照【标签键值对】进行过滤。 // 类型:String @@ -7199,7 +7199,7 @@ type DescribeClusterNodePoolsRequestParams struct { type DescribeClusterNodePoolsRequest struct { *tchttp.BaseRequest - + // ClusterId(集群id) ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -7207,17 +7207,17 @@ type DescribeClusterNodePoolsRequest struct { // 按照【节点池名】进行过滤。 // 类型:String // 必选:否 - // + // // · NodePoolsId // 按照【节点池id】进行过滤。 // 类型:String // 必选:否 - // + // // · tags // 按照【标签键值对】进行过滤。 // 类型:String // 必选:否 - // + // // · tag:tag-key // 按照【标签键值对】进行过滤。 // 类型:String @@ -7226,8 +7226,8 @@ type DescribeClusterNodePoolsRequest struct { } func (r *DescribeClusterNodePoolsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7264,8 +7264,8 @@ type DescribeClusterNodePoolsResponse struct { } func (r *DescribeClusterNodePoolsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7291,7 +7291,7 @@ type DescribeClusterPendingReleasesRequestParams struct { type DescribeClusterPendingReleasesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -7306,8 +7306,8 @@ type DescribeClusterPendingReleasesRequest struct { } func (r *DescribeClusterPendingReleasesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7355,8 +7355,8 @@ type DescribeClusterPendingReleasesResponse struct { } func (r *DescribeClusterPendingReleasesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7382,7 +7382,7 @@ type DescribeClusterReleaseDetailsRequestParams struct { type DescribeClusterReleaseDetailsRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -7397,8 +7397,8 @@ type DescribeClusterReleaseDetailsRequest struct { } func (r *DescribeClusterReleaseDetailsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7434,8 +7434,8 @@ type DescribeClusterReleaseDetailsResponse struct { } func (r *DescribeClusterReleaseDetailsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7461,7 +7461,7 @@ type DescribeClusterReleaseHistoryRequestParams struct { type DescribeClusterReleaseHistoryRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -7476,8 +7476,8 @@ type DescribeClusterReleaseHistoryRequest struct { } func (r *DescribeClusterReleaseHistoryRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7517,8 +7517,8 @@ type DescribeClusterReleaseHistoryResponse struct { } func (r *DescribeClusterReleaseHistoryResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7538,7 +7538,7 @@ type DescribeClusterReleasesRequestParams struct { // 页偏移量 Offset *int64 `json:"Offset,omitempty" name:"Offset"` - // 集群类型, 目前支持传入 tke, eks, tkeedge, external + // 集群类型, 目前支持传入 tke, eks, tkeedge, external ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // helm Release 安装的namespace @@ -7553,7 +7553,7 @@ type DescribeClusterReleasesRequestParams struct { type DescribeClusterReleasesRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -7563,7 +7563,7 @@ type DescribeClusterReleasesRequest struct { // 页偏移量 Offset *int64 `json:"Offset,omitempty" name:"Offset"` - // 集群类型, 目前支持传入 tke, eks, tkeedge, external + // 集群类型, 目前支持传入 tke, eks, tkeedge, external ClusterType *string `json:"ClusterType,omitempty" name:"ClusterType"` // helm Release 安装的namespace @@ -7577,8 +7577,8 @@ type DescribeClusterReleasesRequest struct { } func (r *DescribeClusterReleasesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7629,8 +7629,8 @@ type DescribeClusterReleasesResponse struct { } func (r *DescribeClusterReleasesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7641,17 +7641,15 @@ func (r *DescribeClusterReleasesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeClusterRouteTablesRequestParams struct { - } type DescribeClusterRouteTablesRequest struct { *tchttp.BaseRequest - } func (r *DescribeClusterRouteTablesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7661,7 +7659,7 @@ func (r *DescribeClusterRouteTablesRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeClusterRouteTablesRequest has unknown keys!", "") } @@ -7686,8 +7684,8 @@ type DescribeClusterRouteTablesResponse struct { } func (r *DescribeClusterRouteTablesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7707,7 +7705,7 @@ type DescribeClusterRoutesRequestParams struct { type DescribeClusterRoutesRequest struct { *tchttp.BaseRequest - + // 路由表名称。 RouteTableName *string `json:"RouteTableName,omitempty" name:"RouteTableName"` @@ -7716,8 +7714,8 @@ type DescribeClusterRoutesRequest struct { } func (r *DescribeClusterRoutesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7753,8 +7751,8 @@ type DescribeClusterRoutesResponse struct { } func (r *DescribeClusterRoutesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7771,14 +7769,14 @@ type DescribeClusterSecurityRequestParams struct { type DescribeClusterSecurityRequest struct { *tchttp.BaseRequest - + // 集群 ID,请填写 查询集群列表 接口中返回的 clusterId 字段 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeClusterSecurityRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7837,8 +7835,8 @@ type DescribeClusterSecurityResponse struct { } func (r *DescribeClusterSecurityResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7855,14 +7853,14 @@ type DescribeClusterStatusRequestParams struct { type DescribeClusterStatusRequest struct { *tchttp.BaseRequest - + // 集群ID列表,不传默认拉取所有集群 ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` } func (r *DescribeClusterStatusRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7897,8 +7895,8 @@ type DescribeClusterStatusResponse struct { } func (r *DescribeClusterStatusResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7915,14 +7913,14 @@ type DescribeClusterVirtualNodePoolsRequestParams struct { type DescribeClusterVirtualNodePoolsRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeClusterVirtualNodePoolsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7959,8 +7957,8 @@ type DescribeClusterVirtualNodePoolsResponse struct { } func (r *DescribeClusterVirtualNodePoolsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -7983,7 +7981,7 @@ type DescribeClusterVirtualNodeRequestParams struct { type DescribeClusterVirtualNodeRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -7995,8 +7993,8 @@ type DescribeClusterVirtualNodeRequest struct { } func (r *DescribeClusterVirtualNodeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8035,8 +8033,8 @@ type DescribeClusterVirtualNodeResponse struct { } func (r *DescribeClusterVirtualNodeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8061,37 +8059,37 @@ type DescribeClustersRequestParams struct { // 按照【集群名】进行过滤。 // 类型:String // 必选:否 - // + // // · ClusterType // 按照【集群类型】进行过滤。 // 类型:String // 必选:否 - // + // // · ClusterStatus // 按照【集群状态】进行过滤。 // 类型:String // 必选:否 - // + // // · Tags // 按照【标签键值对】进行过滤。 // 类型:String // 必选:否 - // + // // · vpc-id // 按照【VPC】进行过滤。 // 类型:String // 必选:否 - // + // // · tag-key // 按照【标签键】进行过滤。 // 类型:String // 必选:否 - // + // // · tag-value // 按照【标签值】进行过滤。 // 类型:String // 必选:否 - // + // // · tag:tag-key // 按照【标签键值对】进行过滤。 // 类型:String @@ -8104,7 +8102,7 @@ type DescribeClustersRequestParams struct { type DescribeClustersRequest struct { *tchttp.BaseRequest - + // 集群ID列表(为空时, // 表示获取账号下所有集群) ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` @@ -8119,37 +8117,37 @@ type DescribeClustersRequest struct { // 按照【集群名】进行过滤。 // 类型:String // 必选:否 - // + // // · ClusterType // 按照【集群类型】进行过滤。 // 类型:String // 必选:否 - // + // // · ClusterStatus // 按照【集群状态】进行过滤。 // 类型:String // 必选:否 - // + // // · Tags // 按照【标签键值对】进行过滤。 // 类型:String // 必选:否 - // + // // · vpc-id // 按照【VPC】进行过滤。 // 类型:String // 必选:否 - // + // // · tag-key // 按照【标签键】进行过滤。 // 类型:String // 必选:否 - // + // // · tag-value // 按照【标签值】进行过滤。 // 类型:String // 必选:否 - // + // // · tag:tag-key // 按照【标签键值对】进行过滤。 // 类型:String @@ -8161,8 +8159,8 @@ type DescribeClustersRequest struct { } func (r *DescribeClustersRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8201,8 +8199,8 @@ type DescribeClustersResponse struct { } func (r *DescribeClustersResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8223,7 +8221,7 @@ type DescribeECMInstancesRequestParams struct { type DescribeECMInstancesRequest struct { *tchttp.BaseRequest - + // 集群id ClusterID *string `json:"ClusterID,omitempty" name:"ClusterID"` @@ -8233,8 +8231,8 @@ type DescribeECMInstancesRequest struct { } func (r *DescribeECMInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8270,8 +8268,8 @@ type DescribeECMInstancesResponse struct { } func (r *DescribeECMInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8288,14 +8286,14 @@ type DescribeEKSClusterCredentialRequestParams struct { type DescribeEKSClusterCredentialRequest struct { *tchttp.BaseRequest - + // 集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeEKSClusterCredentialRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8342,8 +8340,8 @@ type DescribeEKSClusterCredentialResponse struct { } func (r *DescribeEKSClusterCredentialResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8370,7 +8368,7 @@ type DescribeEKSClustersRequestParams struct { type DescribeEKSClustersRequest struct { *tchttp.BaseRequest - + // 集群ID列表(为空时, // 表示获取账号下所有集群) ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` @@ -8386,8 +8384,8 @@ type DescribeEKSClustersRequest struct { } func (r *DescribeEKSClustersRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8425,8 +8423,8 @@ type DescribeEKSClustersResponse struct { } func (r *DescribeEKSClustersResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8446,7 +8444,7 @@ type DescribeEKSContainerInstanceEventRequestParams struct { type DescribeEKSContainerInstanceEventRequest struct { *tchttp.BaseRequest - + // 容器实例id EksCiId *string `json:"EksCiId,omitempty" name:"EksCiId"` @@ -8455,8 +8453,8 @@ type DescribeEKSContainerInstanceEventRequest struct { } func (r *DescribeEKSContainerInstanceEventRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8492,8 +8490,8 @@ type DescribeEKSContainerInstanceEventResponse struct { } func (r *DescribeEKSContainerInstanceEventResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8504,17 +8502,15 @@ func (r *DescribeEKSContainerInstanceEventResponse) FromJsonString(s string) err // Predefined struct for user type DescribeEKSContainerInstanceRegionsRequestParams struct { - } type DescribeEKSContainerInstanceRegionsRequest struct { *tchttp.BaseRequest - } func (r *DescribeEKSContainerInstanceRegionsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8524,7 +8520,7 @@ func (r *DescribeEKSContainerInstanceRegionsRequest) FromJsonString(s string) er if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeEKSContainerInstanceRegionsRequest has unknown keys!", "") } @@ -8550,8 +8546,8 @@ type DescribeEKSContainerInstanceRegionsResponse struct { } func (r *DescribeEKSContainerInstanceRegionsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8572,20 +8568,20 @@ type DescribeEKSContainerInstancesRequestParams struct { // (1)实例名称 // KeyName: eks-ci-name // 类型:String - // + // // (2)实例状态 // KeyName: status // 类型:String // 可选值:"Pending", "Running", "Succeeded", "Failed" - // + // // (3)内网ip // KeyName: private-ip // 类型:String - // + // // (4)EIP地址 // KeyName: eip-address // 类型:String - // + // // (5)VpcId // KeyName: vpc-id // 类型:String @@ -8597,7 +8593,7 @@ type DescribeEKSContainerInstancesRequestParams struct { type DescribeEKSContainerInstancesRequest struct { *tchttp.BaseRequest - + // 限定此次返回资源的数量。如果不设定,默认返回20,最大不能超过100 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` @@ -8608,20 +8604,20 @@ type DescribeEKSContainerInstancesRequest struct { // (1)实例名称 // KeyName: eks-ci-name // 类型:String - // + // // (2)实例状态 // KeyName: status // 类型:String // 可选值:"Pending", "Running", "Succeeded", "Failed" - // + // // (3)内网ip // KeyName: private-ip // 类型:String - // + // // (4)EIP地址 // KeyName: eip-address // 类型:String - // + // // (5)VpcId // KeyName: vpc-id // 类型:String @@ -8632,8 +8628,8 @@ type DescribeEKSContainerInstancesRequest struct { } func (r *DescribeEKSContainerInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8671,8 +8667,8 @@ type DescribeEKSContainerInstancesResponse struct { } func (r *DescribeEKSContainerInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8689,14 +8685,14 @@ type DescribeEdgeAvailableExtraArgsRequestParams struct { type DescribeEdgeAvailableExtraArgsRequest struct { *tchttp.BaseRequest - + // 集群版本 ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"` } func (r *DescribeEdgeAvailableExtraArgsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8733,8 +8729,8 @@ type DescribeEdgeAvailableExtraArgsResponse struct { } func (r *DescribeEdgeAvailableExtraArgsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8755,7 +8751,7 @@ type DescribeEdgeCVMInstancesRequestParams struct { type DescribeEdgeCVMInstancesRequest struct { *tchttp.BaseRequest - + // 集群id ClusterID *string `json:"ClusterID,omitempty" name:"ClusterID"` @@ -8765,8 +8761,8 @@ type DescribeEdgeCVMInstancesRequest struct { } func (r *DescribeEdgeCVMInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8802,8 +8798,8 @@ type DescribeEdgeCVMInstancesResponse struct { } func (r *DescribeEdgeCVMInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8820,14 +8816,14 @@ type DescribeEdgeClusterExtraArgsRequestParams struct { type DescribeEdgeClusterExtraArgsRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeEdgeClusterExtraArgsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8860,8 +8856,8 @@ type DescribeEdgeClusterExtraArgsResponse struct { } func (r *DescribeEdgeClusterExtraArgsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8887,7 +8883,7 @@ type DescribeEdgeClusterInstancesRequestParams struct { type DescribeEdgeClusterInstancesRequest struct { *tchttp.BaseRequest - + // 集群id ClusterID *string `json:"ClusterID,omitempty" name:"ClusterID"` @@ -8902,8 +8898,8 @@ type DescribeEdgeClusterInstancesRequest struct { } func (r *DescribeEdgeClusterInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8941,8 +8937,8 @@ type DescribeEdgeClusterInstancesResponse struct { } func (r *DescribeEdgeClusterInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -8962,7 +8958,7 @@ type DescribeEdgeClusterUpgradeInfoRequestParams struct { type DescribeEdgeClusterUpgradeInfoRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -8971,8 +8967,8 @@ type DescribeEdgeClusterUpgradeInfoRequest struct { } func (r *DescribeEdgeClusterUpgradeInfoRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9022,8 +9018,8 @@ type DescribeEdgeClusterUpgradeInfoResponse struct { } func (r *DescribeEdgeClusterUpgradeInfoResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9040,14 +9036,14 @@ type DescribeEdgeLogSwitchesRequestParams struct { type DescribeEdgeLogSwitchesRequest struct { *tchttp.BaseRequest - + // 集群ID列表 ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` } func (r *DescribeEdgeLogSwitchesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9080,8 +9076,8 @@ type DescribeEdgeLogSwitchesResponse struct { } func (r *DescribeEdgeLogSwitchesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9116,7 +9112,7 @@ type DescribeEksContainerInstanceLogRequestParams struct { type DescribeEksContainerInstanceLogRequest struct { *tchttp.BaseRequest - + // Eks Container Instance Id,即容器实例Id EksCiId *string `json:"EksCiId,omitempty" name:"EksCiId"` @@ -9140,8 +9136,8 @@ type DescribeEksContainerInstanceLogRequest struct { } func (r *DescribeEksContainerInstanceLogRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9182,8 +9178,8 @@ type DescribeEksContainerInstanceLogResponse struct { } func (r *DescribeEksContainerInstanceLogResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9200,14 +9196,14 @@ type DescribeEnableVpcCniProgressRequestParams struct { type DescribeEnableVpcCniProgressRequest struct { *tchttp.BaseRequest - + // 开启vpc-cni的集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeEnableVpcCniProgressRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9243,8 +9239,8 @@ type DescribeEnableVpcCniProgressResponse struct { } func (r *DescribeEnableVpcCniProgressResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9261,14 +9257,14 @@ type DescribeEncryptionStatusRequestParams struct { type DescribeEncryptionStatusRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeEncryptionStatusRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9303,8 +9299,8 @@ type DescribeEncryptionStatusResponse struct { } func (r *DescribeEncryptionStatusResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9342,7 +9338,7 @@ type DescribeExistedInstancesRequestParams struct { type DescribeExistedInstancesRequest struct { *tchttp.BaseRequest - + // 集群 ID,请填写查询集群列表 接口中返回的 ClusterId 字段(仅通过ClusterId获取需要过滤条件中的VPCID。节点状态比较时会使用该地域下所有集群中的节点进行比较。参数不支持同时指定InstanceIds和ClusterId。 ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -9369,8 +9365,8 @@ type DescribeExistedInstancesRequest struct { } func (r *DescribeExistedInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9413,8 +9409,8 @@ type DescribeExistedInstancesResponse struct { } func (r *DescribeExistedInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9437,7 +9433,7 @@ type DescribeExternalClusterSpecRequestParams struct { type DescribeExternalClusterSpecRequest struct { *tchttp.BaseRequest - + // 注册集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -9449,8 +9445,8 @@ type DescribeExternalClusterSpecRequest struct { } func (r *DescribeExternalClusterSpecRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9487,8 +9483,8 @@ type DescribeExternalClusterSpecResponse struct { } func (r *DescribeExternalClusterSpecResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9520,7 +9516,7 @@ type DescribeImageCachesRequestParams struct { type DescribeImageCachesRequest struct { *tchttp.BaseRequest - + // 镜像缓存Id数组 ImageCacheIds []*string `json:"ImageCacheIds,omitempty" name:"ImageCacheIds"` @@ -9541,8 +9537,8 @@ type DescribeImageCachesRequest struct { } func (r *DescribeImageCachesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9581,8 +9577,8 @@ type DescribeImageCachesResponse struct { } func (r *DescribeImageCachesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9593,17 +9589,15 @@ func (r *DescribeImageCachesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeImagesRequestParams struct { - } type DescribeImagesRequest struct { *tchttp.BaseRequest - } func (r *DescribeImagesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9613,7 +9607,7 @@ func (r *DescribeImagesRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeImagesRequest has unknown keys!", "") } @@ -9640,8 +9634,8 @@ type DescribeImagesResponse struct { } func (r *DescribeImagesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9659,15 +9653,15 @@ type DescribePrometheusAgentInstancesRequestParams struct { type DescribePrometheusAgentInstancesRequest struct { *tchttp.BaseRequest - + // 集群id // 可以是tke, eks, edge的集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribePrometheusAgentInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9700,8 +9694,8 @@ type DescribePrometheusAgentInstancesResponse struct { } func (r *DescribePrometheusAgentInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9724,7 +9718,7 @@ type DescribePrometheusAgentsRequestParams struct { type DescribePrometheusAgentsRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -9736,8 +9730,8 @@ type DescribePrometheusAgentsRequest struct { } func (r *DescribePrometheusAgentsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9774,8 +9768,8 @@ type DescribePrometheusAgentsResponse struct { } func (r *DescribePrometheusAgentsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9810,7 +9804,7 @@ type DescribePrometheusAlertHistoryRequestParams struct { type DescribePrometheusAlertHistoryRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -9834,8 +9828,8 @@ type DescribePrometheusAlertHistoryRequest struct { } func (r *DescribePrometheusAlertHistoryRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9876,8 +9870,8 @@ type DescribePrometheusAlertHistoryResponse struct { } func (r *DescribePrometheusAlertHistoryResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9904,7 +9898,7 @@ type DescribePrometheusAlertPolicyRequestParams struct { type DescribePrometheusAlertPolicyRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -9920,8 +9914,8 @@ type DescribePrometheusAlertPolicyRequest struct { } func (r *DescribePrometheusAlertPolicyRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9960,8 +9954,8 @@ type DescribePrometheusAlertPolicyResponse struct { } func (r *DescribePrometheusAlertPolicyResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -9988,7 +9982,7 @@ type DescribePrometheusAlertRuleRequestParams struct { type DescribePrometheusAlertRuleRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -10004,8 +9998,8 @@ type DescribePrometheusAlertRuleRequest struct { } func (r *DescribePrometheusAlertRuleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10043,8 +10037,8 @@ type DescribePrometheusAlertRuleResponse struct { } func (r *DescribePrometheusAlertRuleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10067,7 +10061,7 @@ type DescribePrometheusClusterAgentsRequestParams struct { type DescribePrometheusClusterAgentsRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -10079,8 +10073,8 @@ type DescribePrometheusClusterAgentsRequest struct { } func (r *DescribePrometheusClusterAgentsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10117,8 +10111,8 @@ type DescribePrometheusClusterAgentsResponse struct { } func (r *DescribePrometheusClusterAgentsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10141,7 +10135,7 @@ type DescribePrometheusConfigRequestParams struct { type DescribePrometheusConfigRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -10153,8 +10147,8 @@ type DescribePrometheusConfigRequest struct { } func (r *DescribePrometheusConfigRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10197,8 +10191,8 @@ type DescribePrometheusConfigResponse struct { } func (r *DescribePrometheusConfigResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10218,7 +10212,7 @@ type DescribePrometheusGlobalConfigRequestParams struct { type DescribePrometheusGlobalConfigRequest struct { *tchttp.BaseRequest - + // 实例级别抓取配置 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -10227,8 +10221,8 @@ type DescribePrometheusGlobalConfigRequest struct { } func (r *DescribePrometheusGlobalConfigRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10273,8 +10267,8 @@ type DescribePrometheusGlobalConfigResponse struct { } func (r *DescribePrometheusGlobalConfigResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10291,14 +10285,14 @@ type DescribePrometheusGlobalNotificationRequestParams struct { type DescribePrometheusGlobalNotificationRequest struct { *tchttp.BaseRequest - + // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` } func (r *DescribePrometheusGlobalNotificationRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10331,8 +10325,8 @@ type DescribePrometheusGlobalNotificationResponse struct { } func (r *DescribePrometheusGlobalNotificationResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10349,14 +10343,14 @@ type DescribePrometheusInstanceInitStatusRequestParams struct { type DescribePrometheusInstanceInitStatusRequest struct { *tchttp.BaseRequest - + // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` } func (r *DescribePrometheusInstanceInitStatusRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10376,7 +10370,7 @@ func (r *DescribePrometheusInstanceInitStatusRequest) FromJsonString(s string) e // Predefined struct for user type DescribePrometheusInstanceInitStatusResponseParams struct { // 实例初始化状态,取值: - // uninitialized 未初始化 + // uninitialized 未初始化 // initializing 初始化中 // running 初始化完成,运行中 // 注意:此字段可能返回 null,表示取不到有效值。 @@ -10400,8 +10394,8 @@ type DescribePrometheusInstanceInitStatusResponse struct { } func (r *DescribePrometheusInstanceInitStatusResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10418,14 +10412,14 @@ type DescribePrometheusInstanceRequestParams struct { type DescribePrometheusInstanceRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` } func (r *DescribePrometheusInstanceRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10480,8 +10474,8 @@ type DescribePrometheusInstanceResponse struct { } func (r *DescribePrometheusInstanceResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10499,14 +10493,14 @@ type DescribePrometheusInstancesOverviewRequestParams struct { Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 过滤实例,目前支持: - // ID: 通过实例ID来过滤 + // ID: 通过实例ID来过滤 // Name: 通过实例名称来过滤 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` } type DescribePrometheusInstancesOverviewRequest struct { *tchttp.BaseRequest - + // 用于分页 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` @@ -10514,14 +10508,14 @@ type DescribePrometheusInstancesOverviewRequest struct { Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 过滤实例,目前支持: - // ID: 通过实例ID来过滤 + // ID: 通过实例ID来过滤 // Name: 通过实例名称来过滤 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` } func (r *DescribePrometheusInstancesOverviewRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10559,8 +10553,8 @@ type DescribePrometheusInstancesOverviewResponse struct { } func (r *DescribePrometheusInstancesOverviewResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10578,14 +10572,14 @@ type DescribePrometheusOverviewsRequestParams struct { Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 过滤实例,目前支持: - // ID: 通过实例ID来过滤 + // ID: 通过实例ID来过滤 // Name: 通过实例名称来过滤 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` } type DescribePrometheusOverviewsRequest struct { *tchttp.BaseRequest - + // 用于分页 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` @@ -10593,14 +10587,14 @@ type DescribePrometheusOverviewsRequest struct { Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 过滤实例,目前支持: - // ID: 通过实例ID来过滤 + // ID: 通过实例ID来过滤 // Name: 通过实例名称来过滤 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` } func (r *DescribePrometheusOverviewsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10638,8 +10632,8 @@ type DescribePrometheusOverviewsResponse struct { } func (r *DescribePrometheusOverviewsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10665,7 +10659,7 @@ type DescribePrometheusRecordRulesRequestParams struct { type DescribePrometheusRecordRulesRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -10680,8 +10674,8 @@ type DescribePrometheusRecordRulesRequest struct { } func (r *DescribePrometheusRecordRulesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10719,8 +10713,8 @@ type DescribePrometheusRecordRulesResponse struct { } func (r *DescribePrometheusRecordRulesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10748,7 +10742,7 @@ type DescribePrometheusTargetsRequestParams struct { type DescribePrometheusTargetsRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -10765,8 +10759,8 @@ type DescribePrometheusTargetsRequest struct { } func (r *DescribePrometheusTargetsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10801,8 +10795,8 @@ type DescribePrometheusTargetsResponse struct { } func (r *DescribePrometheusTargetsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10829,7 +10823,7 @@ type DescribePrometheusTempRequestParams struct { type DescribePrometheusTempRequest struct { *tchttp.BaseRequest - + // 模糊过滤条件,支持 // Level 按模板级别过滤 // Name 按名称过滤 @@ -10845,8 +10839,8 @@ type DescribePrometheusTempRequest struct { } func (r *DescribePrometheusTempRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10883,8 +10877,8 @@ type DescribePrometheusTempResponse struct { } func (r *DescribePrometheusTempResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10901,14 +10895,14 @@ type DescribePrometheusTempSyncRequestParams struct { type DescribePrometheusTempSyncRequest struct { *tchttp.BaseRequest - + // 模板ID TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` } func (r *DescribePrometheusTempSyncRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10941,8 +10935,8 @@ type DescribePrometheusTempSyncResponse struct { } func (r *DescribePrometheusTempSyncResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10959,14 +10953,14 @@ type DescribePrometheusTemplateSyncRequestParams struct { type DescribePrometheusTemplateSyncRequest struct { *tchttp.BaseRequest - + // 模板ID TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` } func (r *DescribePrometheusTemplateSyncRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -10998,8 +10992,8 @@ type DescribePrometheusTemplateSyncResponse struct { } func (r *DescribePrometheusTemplateSyncResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11026,7 +11020,7 @@ type DescribePrometheusTemplatesRequestParams struct { type DescribePrometheusTemplatesRequest struct { *tchttp.BaseRequest - + // 模糊过滤条件,支持 // Level 按模板级别过滤 // Name 按名称过滤 @@ -11042,8 +11036,8 @@ type DescribePrometheusTemplatesRequest struct { } func (r *DescribePrometheusTemplatesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11080,8 +11074,8 @@ type DescribePrometheusTemplatesResponse struct { } func (r *DescribePrometheusTemplatesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11092,17 +11086,15 @@ func (r *DescribePrometheusTemplatesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeRegionsRequestParams struct { - } type DescribeRegionsRequest struct { *tchttp.BaseRequest - } func (r *DescribeRegionsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11112,7 +11104,7 @@ func (r *DescribeRegionsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRegionsRequest has unknown keys!", "") } @@ -11139,8 +11131,8 @@ type DescribeRegionsResponse struct { } func (r *DescribeRegionsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11157,14 +11149,14 @@ type DescribeResourceUsageRequestParams struct { type DescribeResourceUsageRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeResourceUsageRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11205,8 +11197,8 @@ type DescribeResourceUsageResponse struct { } func (r *DescribeResourceUsageResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11226,7 +11218,7 @@ type DescribeRouteTableConflictsRequestParams struct { type DescribeRouteTableConflictsRequest struct { *tchttp.BaseRequest - + // 路由表CIDR RouteTableCidrBlock *string `json:"RouteTableCidrBlock,omitempty" name:"RouteTableCidrBlock"` @@ -11235,8 +11227,8 @@ type DescribeRouteTableConflictsRequest struct { } func (r *DescribeRouteTableConflictsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11273,8 +11265,8 @@ type DescribeRouteTableConflictsResponse struct { } func (r *DescribeRouteTableConflictsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11291,14 +11283,14 @@ type DescribeTKEEdgeClusterCredentialRequestParams struct { type DescribeTKEEdgeClusterCredentialRequest struct { *tchttp.BaseRequest - + // 集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeTKEEdgeClusterCredentialRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11355,8 +11347,8 @@ type DescribeTKEEdgeClusterCredentialResponse struct { } func (r *DescribeTKEEdgeClusterCredentialResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11373,14 +11365,14 @@ type DescribeTKEEdgeClusterStatusRequestParams struct { type DescribeTKEEdgeClusterStatusRequest struct { *tchttp.BaseRequest - + // 边缘计算容器集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeTKEEdgeClusterStatusRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11415,8 +11407,8 @@ type DescribeTKEEdgeClusterStatusResponse struct { } func (r *DescribeTKEEdgeClusterStatusResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11443,7 +11435,7 @@ type DescribeTKEEdgeClustersRequestParams struct { type DescribeTKEEdgeClustersRequest struct { *tchttp.BaseRequest - + // 集群ID列表(为空时, // 表示获取账号下所有集群) ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` @@ -11459,8 +11451,8 @@ type DescribeTKEEdgeClustersRequest struct { } func (r *DescribeTKEEdgeClustersRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11498,8 +11490,8 @@ type DescribeTKEEdgeClustersResponse struct { } func (r *DescribeTKEEdgeClustersResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11516,14 +11508,14 @@ type DescribeTKEEdgeExternalKubeconfigRequestParams struct { type DescribeTKEEdgeExternalKubeconfigRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DescribeTKEEdgeExternalKubeconfigRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11555,8 +11547,8 @@ type DescribeTKEEdgeExternalKubeconfigResponse struct { } func (r *DescribeTKEEdgeExternalKubeconfigResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11585,7 +11577,7 @@ type DescribeTKEEdgeScriptRequestParams struct { type DescribeTKEEdgeScriptRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -11603,8 +11595,8 @@ type DescribeTKEEdgeScriptRequest struct { } func (r *DescribeTKEEdgeScriptRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11650,8 +11642,8 @@ type DescribeTKEEdgeScriptResponse struct { } func (r *DescribeTKEEdgeScriptResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11662,17 +11654,15 @@ func (r *DescribeTKEEdgeScriptResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeVersionsRequestParams struct { - } type DescribeVersionsRequest struct { *tchttp.BaseRequest - } func (r *DescribeVersionsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11682,7 +11672,7 @@ func (r *DescribeVersionsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeVersionsRequest has unknown keys!", "") } @@ -11709,8 +11699,8 @@ type DescribeVersionsResponse struct { } func (r *DescribeVersionsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11733,7 +11723,7 @@ type DescribeVpcCniPodLimitsRequestParams struct { type DescribeVpcCniPodLimitsRequest struct { *tchttp.BaseRequest - + // 查询的机型所在可用区,如:ap-guangzhou-3,默认为空,即不按可用区过滤信息 Zone *string `json:"Zone,omitempty" name:"Zone"` @@ -11745,8 +11735,8 @@ type DescribeVpcCniPodLimitsRequest struct { } func (r *DescribeVpcCniPodLimitsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11785,8 +11775,8 @@ type DescribeVpcCniPodLimitsResponse struct { } func (r *DescribeVpcCniPodLimitsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11806,7 +11796,7 @@ type DisableClusterAuditRequestParams struct { type DisableClusterAuditRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -11815,8 +11805,8 @@ type DisableClusterAuditRequest struct { } func (r *DisableClusterAuditRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11846,8 +11836,8 @@ type DisableClusterAuditResponse struct { } func (r *DisableClusterAuditResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11864,14 +11854,14 @@ type DisableClusterDeletionProtectionRequestParams struct { type DisableClusterDeletionProtectionRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DisableClusterDeletionProtectionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11900,8 +11890,8 @@ type DisableClusterDeletionProtectionResponse struct { } func (r *DisableClusterDeletionProtectionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11918,14 +11908,14 @@ type DisableEncryptionProtectionRequestParams struct { type DisableEncryptionProtectionRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DisableEncryptionProtectionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11954,8 +11944,8 @@ type DisableEncryptionProtectionResponse struct { } func (r *DisableEncryptionProtectionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -11975,7 +11965,7 @@ type DisableEventPersistenceRequestParams struct { type DisableEventPersistenceRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -11984,8 +11974,8 @@ type DisableEventPersistenceRequest struct { } func (r *DisableEventPersistenceRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12015,8 +12005,8 @@ type DisableEventPersistenceResponse struct { } func (r *DisableEventPersistenceResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12033,14 +12023,14 @@ type DisableVpcCniNetworkTypeRequestParams struct { type DisableVpcCniNetworkTypeRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *DisableVpcCniNetworkTypeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12069,8 +12059,8 @@ type DisableVpcCniNetworkTypeResponse struct { } func (r *DisableVpcCniNetworkTypeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12098,7 +12088,7 @@ type DrainClusterVirtualNodeRequestParams struct { type DrainClusterVirtualNodeRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -12107,8 +12097,8 @@ type DrainClusterVirtualNodeRequest struct { } func (r *DrainClusterVirtualNodeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12138,8 +12128,8 @@ type DrainClusterVirtualNodeResponse struct { } func (r *DrainClusterVirtualNodeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12528,7 +12518,7 @@ type EnableClusterAuditRequestParams struct { type EnableClusterAuditRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -12543,8 +12533,8 @@ type EnableClusterAuditRequest struct { } func (r *EnableClusterAuditRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12576,8 +12566,8 @@ type EnableClusterAuditResponse struct { } func (r *EnableClusterAuditResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12594,14 +12584,14 @@ type EnableClusterDeletionProtectionRequestParams struct { type EnableClusterDeletionProtectionRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *EnableClusterDeletionProtectionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12630,8 +12620,8 @@ type EnableClusterDeletionProtectionResponse struct { } func (r *EnableClusterDeletionProtectionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12651,7 +12641,7 @@ type EnableEncryptionProtectionRequestParams struct { type EnableEncryptionProtectionRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -12660,8 +12650,8 @@ type EnableEncryptionProtectionRequest struct { } func (r *EnableEncryptionProtectionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12691,8 +12681,8 @@ type EnableEncryptionProtectionResponse struct { } func (r *EnableEncryptionProtectionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12718,7 +12708,7 @@ type EnableEventPersistenceRequestParams struct { type EnableEventPersistenceRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -12733,8 +12723,8 @@ type EnableEventPersistenceRequest struct { } func (r *EnableEventPersistenceRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12766,8 +12756,8 @@ type EnableEventPersistenceResponse struct { } func (r *EnableEventPersistenceResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12799,7 +12789,7 @@ type EnableVpcCniNetworkTypeRequestParams struct { type EnableVpcCniNetworkTypeRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -12820,8 +12810,8 @@ type EnableVpcCniNetworkTypeRequest struct { } func (r *EnableVpcCniNetworkTypeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -12855,8 +12845,8 @@ type EnableVpcCniNetworkTypeResponse struct { } func (r *EnableVpcCniNetworkTypeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13052,7 +13042,7 @@ type ForwardApplicationRequestV3RequestParams struct { type ForwardApplicationRequestV3Request struct { *tchttp.BaseRequest - + // 请求集群addon的访问 Method *string `json:"Method,omitempty" name:"Method"` @@ -13076,8 +13066,8 @@ type ForwardApplicationRequestV3Request struct { } func (r *ForwardApplicationRequestV3Request) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13115,8 +13105,8 @@ type ForwardApplicationRequestV3Response struct { } func (r *ForwardApplicationRequestV3Response) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13151,7 +13141,7 @@ type ForwardTKEEdgeApplicationRequestV3RequestParams struct { type ForwardTKEEdgeApplicationRequestV3Request struct { *tchttp.BaseRequest - + // 请求集群addon的访问 Method *string `json:"Method,omitempty" name:"Method"` @@ -13175,8 +13165,8 @@ type ForwardTKEEdgeApplicationRequestV3Request struct { } func (r *ForwardTKEEdgeApplicationRequestV3Request) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13214,8 +13204,8 @@ type ForwardTKEEdgeApplicationRequestV3Response struct { } func (r *ForwardTKEEdgeApplicationRequestV3Response) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13253,14 +13243,14 @@ type GetClusterLevelPriceRequestParams struct { type GetClusterLevelPriceRequest struct { *tchttp.BaseRequest - + // 集群规格,托管集群询价 ClusterLevel *string `json:"ClusterLevel,omitempty" name:"ClusterLevel"` } func (r *GetClusterLevelPriceRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13295,8 +13285,8 @@ type GetClusterLevelPriceResponse struct { } func (r *GetClusterLevelPriceResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13313,14 +13303,14 @@ type GetMostSuitableImageCacheRequestParams struct { type GetMostSuitableImageCacheRequest struct { *tchttp.BaseRequest - + // 容器镜像列表 Images []*string `json:"Images,omitempty" name:"Images"` } func (r *GetMostSuitableImageCacheRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13356,8 +13346,8 @@ type GetMostSuitableImageCacheResponse struct { } func (r *GetMostSuitableImageCacheResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13380,7 +13370,7 @@ type GetTkeAppChartListRequestParams struct { type GetTkeAppChartListRequest struct { *tchttp.BaseRequest - + // app类型,取值log,scheduler,network,storage,monitor,dns,image,other,invisible Kind *string `json:"Kind,omitempty" name:"Kind"` @@ -13392,8 +13382,8 @@ type GetTkeAppChartListRequest struct { } func (r *GetTkeAppChartListRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13428,8 +13418,8 @@ type GetTkeAppChartListResponse struct { } func (r *GetTkeAppChartListResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13452,7 +13442,7 @@ type GetUpgradeInstanceProgressRequestParams struct { type GetUpgradeInstanceProgressRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -13464,8 +13454,8 @@ type GetUpgradeInstanceProgressRequest struct { } func (r *GetUpgradeInstanceProgressRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13517,8 +13507,8 @@ type GetUpgradeInstanceProgressResponse struct { } func (r *GetUpgradeInstanceProgressResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13659,7 +13649,7 @@ type InstallAddonRequestParams struct { type InstallAddonRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -13674,8 +13664,8 @@ type InstallAddonRequest struct { } func (r *InstallAddonRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13707,8 +13697,8 @@ type InstallAddonResponse struct { } func (r *InstallAddonResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13725,14 +13715,14 @@ type InstallEdgeLogAgentRequestParams struct { type InstallEdgeLogAgentRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *InstallEdgeLogAgentRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13761,8 +13751,8 @@ type InstallEdgeLogAgentResponse struct { } func (r *InstallEdgeLogAgentResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13782,7 +13772,7 @@ type InstallLogAgentRequestParams struct { type InstallLogAgentRequest struct { *tchttp.BaseRequest - + // TKE集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -13791,8 +13781,8 @@ type InstallLogAgentRequest struct { } func (r *InstallLogAgentRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -13822,8 +13812,8 @@ type InstallLogAgentResponse struct { } func (r *InstallLogAgentResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14190,7 +14180,7 @@ type ListClusterInspectionResultsItemsRequestParams struct { type ListClusterInspectionResultsItemsRequest struct { *tchttp.BaseRequest - + // 目标集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -14202,8 +14192,8 @@ type ListClusterInspectionResultsItemsRequest struct { } func (r *ListClusterInspectionResultsItemsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14238,8 +14228,8 @@ type ListClusterInspectionResultsItemsResponse struct { } func (r *ListClusterInspectionResultsItemsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14262,7 +14252,7 @@ type ListClusterInspectionResultsRequestParams struct { type ListClusterInspectionResultsRequest struct { *tchttp.BaseRequest - + // 目标集群列表,为空查询用户所有集群 ClusterIds []*string `json:"ClusterIds,omitempty" name:"ClusterIds"` @@ -14274,8 +14264,8 @@ type ListClusterInspectionResultsRequest struct { } func (r *ListClusterInspectionResultsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14310,8 +14300,8 @@ type ListClusterInspectionResultsResponse struct { } func (r *ListClusterInspectionResultsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14377,7 +14367,7 @@ type ModifyClusterAsGroupAttributeRequestParams struct { type ModifyClusterAsGroupAttributeRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -14386,8 +14376,8 @@ type ModifyClusterAsGroupAttributeRequest struct { } func (r *ModifyClusterAsGroupAttributeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14417,8 +14407,8 @@ type ModifyClusterAsGroupAttributeResponse struct { } func (r *ModifyClusterAsGroupAttributeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14438,7 +14428,7 @@ type ModifyClusterAsGroupOptionAttributeRequestParams struct { type ModifyClusterAsGroupOptionAttributeRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -14447,8 +14437,8 @@ type ModifyClusterAsGroupOptionAttributeRequest struct { } func (r *ModifyClusterAsGroupOptionAttributeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14478,8 +14468,8 @@ type ModifyClusterAsGroupOptionAttributeResponse struct { } func (r *ModifyClusterAsGroupOptionAttributeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14514,7 +14504,7 @@ type ModifyClusterAttributeRequestParams struct { type ModifyClusterAttributeRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -14538,8 +14528,8 @@ type ModifyClusterAttributeRequest struct { } func (r *ModifyClusterAttributeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14598,8 +14588,8 @@ type ModifyClusterAttributeResponse struct { } func (r *ModifyClusterAttributeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14622,7 +14612,7 @@ type ModifyClusterAuthenticationOptionsRequestParams struct { type ModifyClusterAuthenticationOptionsRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -14634,8 +14624,8 @@ type ModifyClusterAuthenticationOptionsRequest struct { } func (r *ModifyClusterAuthenticationOptionsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14666,8 +14656,8 @@ type ModifyClusterAuthenticationOptionsResponse struct { } func (r *ModifyClusterAuthenticationOptionsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14690,7 +14680,7 @@ type ModifyClusterEndpointSPRequestParams struct { type ModifyClusterEndpointSPRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -14702,8 +14692,8 @@ type ModifyClusterEndpointSPRequest struct { } func (r *ModifyClusterEndpointSPRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14734,8 +14724,8 @@ type ModifyClusterEndpointSPResponse struct { } func (r *ModifyClusterEndpointSPResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14803,7 +14793,7 @@ type ModifyClusterNodePoolRequestParams struct { type ModifyClusterNodePoolRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -14860,8 +14850,8 @@ type ModifyClusterNodePoolRequest struct { } func (r *ModifyClusterNodePoolRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14907,8 +14897,8 @@ type ModifyClusterNodePoolResponse struct { } func (r *ModifyClusterNodePoolResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14940,7 +14930,7 @@ type ModifyClusterVirtualNodePoolRequestParams struct { type ModifyClusterVirtualNodePoolRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -14961,8 +14951,8 @@ type ModifyClusterVirtualNodePoolRequest struct { } func (r *ModifyClusterVirtualNodePoolRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -14996,8 +14986,8 @@ type ModifyClusterVirtualNodePoolResponse struct { } func (r *ModifyClusterVirtualNodePoolResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15020,7 +15010,7 @@ type ModifyNodePoolDesiredCapacityAboutAsgRequestParams struct { type ModifyNodePoolDesiredCapacityAboutAsgRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -15032,8 +15022,8 @@ type ModifyNodePoolDesiredCapacityAboutAsgRequest struct { } func (r *ModifyNodePoolDesiredCapacityAboutAsgRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15064,8 +15054,8 @@ type ModifyNodePoolDesiredCapacityAboutAsgResponse struct { } func (r *ModifyNodePoolDesiredCapacityAboutAsgResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15088,7 +15078,7 @@ type ModifyNodePoolInstanceTypesRequestParams struct { type ModifyNodePoolInstanceTypesRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -15100,8 +15090,8 @@ type ModifyNodePoolInstanceTypesRequest struct { } func (r *ModifyNodePoolInstanceTypesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15132,8 +15122,8 @@ type ModifyNodePoolInstanceTypesResponse struct { } func (r *ModifyNodePoolInstanceTypesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15156,7 +15146,7 @@ type ModifyPrometheusAgentExternalLabelsRequestParams struct { type ModifyPrometheusAgentExternalLabelsRequest struct { *tchttp.BaseRequest - + // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -15168,8 +15158,8 @@ type ModifyPrometheusAgentExternalLabelsRequest struct { } func (r *ModifyPrometheusAgentExternalLabelsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15200,8 +15190,8 @@ type ModifyPrometheusAgentExternalLabelsResponse struct { } func (r *ModifyPrometheusAgentExternalLabelsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15221,7 +15211,7 @@ type ModifyPrometheusAlertPolicyRequestParams struct { type ModifyPrometheusAlertPolicyRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -15230,8 +15220,8 @@ type ModifyPrometheusAlertPolicyRequest struct { } func (r *ModifyPrometheusAlertPolicyRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15261,8 +15251,8 @@ type ModifyPrometheusAlertPolicyResponse struct { } func (r *ModifyPrometheusAlertPolicyResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15282,7 +15272,7 @@ type ModifyPrometheusAlertRuleRequestParams struct { type ModifyPrometheusAlertRuleRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -15291,8 +15281,8 @@ type ModifyPrometheusAlertRuleRequest struct { } func (r *ModifyPrometheusAlertRuleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15322,8 +15312,8 @@ type ModifyPrometheusAlertRuleResponse struct { } func (r *ModifyPrometheusAlertRuleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15355,7 +15345,7 @@ type ModifyPrometheusConfigRequestParams struct { type ModifyPrometheusConfigRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -15376,8 +15366,8 @@ type ModifyPrometheusConfigRequest struct { } func (r *ModifyPrometheusConfigRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15411,8 +15401,8 @@ type ModifyPrometheusConfigResponse struct { } func (r *ModifyPrometheusConfigResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15432,7 +15422,7 @@ type ModifyPrometheusGlobalNotificationRequestParams struct { type ModifyPrometheusGlobalNotificationRequest struct { *tchttp.BaseRequest - + // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -15441,8 +15431,8 @@ type ModifyPrometheusGlobalNotificationRequest struct { } func (r *ModifyPrometheusGlobalNotificationRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15472,8 +15462,8 @@ type ModifyPrometheusGlobalNotificationResponse struct { } func (r *ModifyPrometheusGlobalNotificationResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15496,7 +15486,7 @@ type ModifyPrometheusRecordRuleYamlRequestParams struct { type ModifyPrometheusRecordRuleYamlRequest struct { *tchttp.BaseRequest - + // 实例id InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -15508,8 +15498,8 @@ type ModifyPrometheusRecordRuleYamlRequest struct { } func (r *ModifyPrometheusRecordRuleYamlRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15540,8 +15530,8 @@ type ModifyPrometheusRecordRuleYamlResponse struct { } func (r *ModifyPrometheusRecordRuleYamlResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15561,7 +15551,7 @@ type ModifyPrometheusTempRequestParams struct { type ModifyPrometheusTempRequest struct { *tchttp.BaseRequest - + // 模板ID TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` @@ -15570,8 +15560,8 @@ type ModifyPrometheusTempRequest struct { } func (r *ModifyPrometheusTempRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15601,8 +15591,8 @@ type ModifyPrometheusTempResponse struct { } func (r *ModifyPrometheusTempResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15622,7 +15612,7 @@ type ModifyPrometheusTemplateRequestParams struct { type ModifyPrometheusTemplateRequest struct { *tchttp.BaseRequest - + // 模板ID TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` @@ -15631,8 +15621,8 @@ type ModifyPrometheusTemplateRequest struct { } func (r *ModifyPrometheusTemplateRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15662,8 +15652,8 @@ type ModifyPrometheusTemplateResponse struct { } func (r *ModifyPrometheusTemplateResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -15721,6 +15711,9 @@ type NodePool struct { // Taints 污点标记 Taints []*Taint `json:"Taints,omitempty" name:"Taints"` + //DataDisks 多盘数据盘挂载信息 + DataDisks []DataDisk `json:"DataDisk,omitempty" name:"DataDisk"` + // NodeCountSummary 节点列表 NodeCountSummary *NodeCountSummary `json:"NodeCountSummary,omitempty" name:"NodeCountSummary"` @@ -15767,6 +15760,20 @@ type NodePool struct { // 删除保护开关 // 注意:此字段可能返回 null,表示取不到有效值。 DeletionProtection *bool `json:"DeletionProtection,omitempty" name:"DeletionProtection"` + + // 设置加入的节点是否参与调度,默认值为0,表示参与调度;非0表示不参与调度, 待节点初始化完成之后, 可执行kubectl uncordon nodename使node加入调度. + Unschedulable *int64 `json:"Unschedulable,omitempty" name:"Unschedulable"` + + //DockerGraphPath,默认值"/var/lib/docker" + DockerGraphPath *string `json:"DockerGraphPath,omitempty" name:"DockerGraphPath"` + + // GPU驱动相关参数 + // 注意:此字段可能返回 null,表示取不到有效值。 + GPUArgs *GPUArgs `json:"GPUArgs,omitempty" name:"GPUArgs"` + + // 节点相关的自定义参数信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExtraArgs *InstanceExtraArgs `json:"ExtraArgs,omitempty" name:"ExtraArgs"` } type NodePoolOption struct { @@ -16774,7 +16781,7 @@ type RemoveNodeFromNodePoolRequestParams struct { type RemoveNodeFromNodePoolRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -16786,8 +16793,8 @@ type RemoveNodeFromNodePoolRequest struct { } func (r *RemoveNodeFromNodePoolRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -16818,8 +16825,8 @@ type RemoveNodeFromNodePoolResponse struct { } func (r *RemoveNodeFromNodePoolResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -16863,14 +16870,14 @@ type RestartEKSContainerInstancesRequestParams struct { type RestartEKSContainerInstancesRequest struct { *tchttp.BaseRequest - + // EKS instance ids EksCiIds []*string `json:"EksCiIds,omitempty" name:"EksCiIds"` } func (r *RestartEKSContainerInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -16899,8 +16906,8 @@ type RestartEKSContainerInstancesResponse struct { } func (r *RestartEKSContainerInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -16929,7 +16936,7 @@ type RollbackClusterReleaseRequestParams struct { type RollbackClusterReleaseRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -16947,8 +16954,8 @@ type RollbackClusterReleaseRequest struct { } func (r *RollbackClusterReleaseRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -16985,8 +16992,8 @@ type RollbackClusterReleaseResponse struct { } func (r *RollbackClusterReleaseResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17066,7 +17073,7 @@ type RunPrometheusInstanceRequestParams struct { type RunPrometheusInstanceRequest struct { *tchttp.BaseRequest - + // 实例ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -17075,8 +17082,8 @@ type RunPrometheusInstanceRequest struct { } func (r *RunPrometheusInstanceRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17106,8 +17113,8 @@ type RunPrometheusInstanceResponse struct { } func (r *RunPrometheusInstanceResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17132,7 +17139,7 @@ type ScaleInClusterMasterRequestParams struct { type ScaleInClusterMasterRequest struct { *tchttp.BaseRequest - + // 集群实例ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -17141,8 +17148,8 @@ type ScaleInClusterMasterRequest struct { } func (r *ScaleInClusterMasterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17172,8 +17179,8 @@ type ScaleInClusterMasterResponse struct { } func (r *ScaleInClusterMasterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17213,7 +17220,7 @@ type ScaleOutClusterMasterRequestParams struct { type ScaleOutClusterMasterRequest struct { *tchttp.BaseRequest - + // 集群实例ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -17231,8 +17238,8 @@ type ScaleOutClusterMasterRequest struct { } func (r *ScaleOutClusterMasterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17265,8 +17272,8 @@ type ScaleOutClusterMasterResponse struct { } func (r *ScaleOutClusterMasterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17316,7 +17323,7 @@ type SetNodePoolNodeProtectionRequestParams struct { type SetNodePoolNodeProtectionRequest struct { *tchttp.BaseRequest - + // 集群id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -17331,8 +17338,8 @@ type SetNodePoolNodeProtectionRequest struct { } func (r *SetNodePoolNodeProtectionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17372,8 +17379,8 @@ type SetNodePoolNodeProtectionResponse struct { } func (r *SetNodePoolNodeProtectionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17410,7 +17417,7 @@ type SyncPrometheusTempRequestParams struct { type SyncPrometheusTempRequest struct { *tchttp.BaseRequest - + // 实例id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` @@ -17419,8 +17426,8 @@ type SyncPrometheusTempRequest struct { } func (r *SyncPrometheusTempRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17450,8 +17457,8 @@ type SyncPrometheusTempResponse struct { } func (r *SyncPrometheusTempResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17471,7 +17478,7 @@ type SyncPrometheusTemplateRequestParams struct { type SyncPrometheusTemplateRequest struct { *tchttp.BaseRequest - + // 实例id TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` @@ -17480,8 +17487,8 @@ type SyncPrometheusTemplateRequest struct { } func (r *SyncPrometheusTemplateRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17511,8 +17518,8 @@ type SyncPrometheusTemplateResponse struct { } func (r *SyncPrometheusTemplateResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17618,7 +17625,7 @@ type UninstallClusterReleaseRequestParams struct { type UninstallClusterReleaseRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -17633,8 +17640,8 @@ type UninstallClusterReleaseRequest struct { } func (r *UninstallClusterReleaseRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17670,8 +17677,8 @@ type UninstallClusterReleaseResponse struct { } func (r *UninstallClusterReleaseResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17688,14 +17695,14 @@ type UninstallEdgeLogAgentRequestParams struct { type UninstallEdgeLogAgentRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *UninstallEdgeLogAgentRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17724,8 +17731,8 @@ type UninstallEdgeLogAgentResponse struct { } func (r *UninstallEdgeLogAgentResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17742,14 +17749,14 @@ type UninstallLogAgentRequestParams struct { type UninstallLogAgentRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` } func (r *UninstallLogAgentRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17778,8 +17785,8 @@ type UninstallLogAgentResponse struct { } func (r *UninstallLogAgentResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17805,7 +17812,7 @@ type UpdateAddonRequestParams struct { type UpdateAddonRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -17820,8 +17827,8 @@ type UpdateAddonRequest struct { } func (r *UpdateAddonRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17853,8 +17860,8 @@ type UpdateAddonResponse struct { } func (r *UpdateAddonResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17874,7 +17881,7 @@ type UpdateClusterKubeconfigRequestParams struct { type UpdateClusterKubeconfigRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -17883,8 +17890,8 @@ type UpdateClusterKubeconfigRequest struct { } func (r *UpdateClusterKubeconfigRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17918,8 +17925,8 @@ type UpdateClusterKubeconfigResponse struct { } func (r *UpdateClusterKubeconfigResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -17948,7 +17955,7 @@ type UpdateClusterVersionRequestParams struct { type UpdateClusterVersionRequest struct { *tchttp.BaseRequest - + // 集群 Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -17966,8 +17973,8 @@ type UpdateClusterVersionRequest struct { } func (r *UpdateClusterVersionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18000,8 +18007,8 @@ type UpdateClusterVersionResponse struct { } func (r *UpdateClusterVersionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18051,7 +18058,7 @@ type UpdateEKSClusterRequestParams struct { type UpdateEKSClusterRequest struct { *tchttp.BaseRequest - + // 弹性集群Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -18090,8 +18097,8 @@ type UpdateEKSClusterRequest struct { } func (r *UpdateEKSClusterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18131,8 +18138,8 @@ type UpdateEKSClusterResponse struct { } func (r *UpdateEKSClusterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18167,7 +18174,7 @@ type UpdateEKSContainerInstanceRequestParams struct { type UpdateEKSContainerInstanceRequest struct { *tchttp.BaseRequest - + // 容器实例 ID EksCiId *string `json:"EksCiId,omitempty" name:"EksCiId"` @@ -18191,8 +18198,8 @@ type UpdateEKSContainerInstanceRequest struct { } func (r *UpdateEKSContainerInstanceRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18231,8 +18238,8 @@ type UpdateEKSContainerInstanceResponse struct { } func (r *UpdateEKSContainerInstanceResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18258,7 +18265,7 @@ type UpdateEdgeClusterVersionRequestParams struct { type UpdateEdgeClusterVersionRequest struct { *tchttp.BaseRequest - + // 集群 Id ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -18273,8 +18280,8 @@ type UpdateEdgeClusterVersionRequest struct { } func (r *UpdateEdgeClusterVersionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18306,8 +18313,8 @@ type UpdateEdgeClusterVersionResponse struct { } func (r *UpdateEdgeClusterVersionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18342,7 +18349,7 @@ type UpdateImageCacheRequestParams struct { type UpdateImageCacheRequest struct { *tchttp.BaseRequest - + // 镜像缓存Id ImageCacheId *string `json:"ImageCacheId,omitempty" name:"ImageCacheId"` @@ -18366,8 +18373,8 @@ type UpdateImageCacheRequest struct { } func (r *UpdateImageCacheRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18402,8 +18409,8 @@ type UpdateImageCacheResponse struct { } func (r *UpdateImageCacheResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18456,7 +18463,7 @@ type UpdateTKEEdgeClusterRequestParams struct { type UpdateTKEEdgeClusterRequest struct { *tchttp.BaseRequest - + // 边缘计算集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -18498,8 +18505,8 @@ type UpdateTKEEdgeClusterRequest struct { } func (r *UpdateTKEEdgeClusterRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18540,8 +18547,8 @@ type UpdateTKEEdgeClusterResponse struct { } func (r *UpdateTKEEdgeClusterResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18603,7 +18610,7 @@ type UpgradeClusterInstancesRequestParams struct { type UpgradeClusterInstancesRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -18636,8 +18643,8 @@ type UpgradeClusterInstancesRequest struct { } func (r *UpgradeClusterInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18673,8 +18680,8 @@ type UpgradeClusterInstancesResponse struct { } func (r *UpgradeClusterInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18724,7 +18731,7 @@ type UpgradeClusterReleaseRequestParams struct { type UpgradeClusterReleaseRequest struct { *tchttp.BaseRequest - + // 集群ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` @@ -18763,8 +18770,8 @@ type UpgradeClusterReleaseRequest struct { } func (r *UpgradeClusterReleaseRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18808,8 +18815,8 @@ type UpgradeClusterReleaseResponse struct { } func (r *UpgradeClusterReleaseResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) + b, _ := json.Marshal(r) + return string(b) } // FromJsonString It is highly **NOT** recommended to use this function @@ -18919,4 +18926,4 @@ type VolumeMount struct { // 子路径表达式 // 注意:此字段可能返回 null,表示取不到有效值。 SubPathExpr *string `json:"SubPathExpr,omitempty" name:"SubPathExpr"` -} \ No newline at end of file +} diff --git a/website/docs/r/kubernetes_node_pool.html.markdown b/website/docs/r/kubernetes_node_pool.html.markdown index cd69b620cb..15c8c65223 100644 --- a/website/docs/r/kubernetes_node_pool.html.markdown +++ b/website/docs/r/kubernetes_node_pool.html.markdown @@ -165,6 +165,7 @@ The following arguments are supported: * `vpc_id` - (Required, String, ForceNew) ID of VPC network. * `default_cooldown` - (Optional, Int) Seconds of scaling group cool down. Default value is `300`. * `delete_keep_instance` - (Optional, Bool) Indicate to keep the CVM instance when delete the node pool. Default is `true`. +* `deletion_protection` - (Optional, Bool) Indicates whether the node pool deletion protection is enabled. * `desired_capacity` - (Optional, Int) Desired capacity of the node. If `enable_auto_scale` is set `true`, this will be a computed parameter. * `enable_auto_scale` - (Optional, Bool) Indicate whether to enable auto scaling or not. * `labels` - (Optional, Map) Labels of kubernetes node pool created nodes. The label key name does not exceed 63 characters, only supports English, numbers,'/','-', and does not allow beginning with ('/').