From 8118f6343210491f5709230ba9618dbb55eb8eaa Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Wed, 20 Aug 2025 15:45:08 +0800 Subject: [PATCH 01/13] add --- tencentcloud/provider.go | 6 + tencentcloud/provider.md | 6 + .../data_source_tc_dlc_data_engine_network.go | 295 ++++++++++++++++++ .../data_source_tc_dlc_data_engine_network.md | 14 + ..._source_tc_dlc_data_engine_network_test.go | 36 +++ ...e_tc_dlc_data_engine_session_parameters.go | 239 ++++++++++++++ ...e_tc_dlc_data_engine_session_parameters.md | 9 + ...dlc_data_engine_session_parameters_test.go | 31 ++ ...ata_source_tc_dlc_session_image_version.go | 140 +++++++++ ...ata_source_tc_dlc_session_image_version.md | 10 + ...ource_tc_dlc_session_image_version_test.go | 32 ++ ...up_network_config_information_operation.go | 141 +++++++++ ...up_network_config_information_operation.md | 9 + ...twork_config_information_operation_test.go | 33 ++ ...urce_group_config_information_operation.go | 199 ++++++++++++ ...urce_group_config_information_operation.md | 17 + ...group_config_information_operation_test.go | 41 +++ ...ce_group_resource_information_operation.go | 288 +++++++++++++++++ ...ce_group_resource_information_operation.md | 9 + ...oup_resource_information_operation_test.go | 31 ++ .../services/dlc/service_tencentcloud_dlc.go | 134 ++++++++ .../d/dlc_data_engine_network.html.markdown | 47 +++ ...ta_engine_session_parameters.html.markdown | 36 +++ .../d/dlc_session_image_version.html.markdown | 37 +++ ...config_information_operation.html.markdown | 36 +++ ...config_information_operation.html.markdown | 55 ++++ ...source_information_operation.html.markdown | 52 +++ website/tencentcloud.erb | 18 ++ 28 files changed, 2001 insertions(+) create mode 100644 tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network.go create mode 100644 tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network.md create mode 100644 tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network_test.go create mode 100644 tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters.go create mode 100644 tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters.md create mode 100644 tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters_test.go create mode 100644 tencentcloud/services/dlc/data_source_tc_dlc_session_image_version.go create mode 100644 tencentcloud/services/dlc/data_source_tc_dlc_session_image_version.md create mode 100644 tencentcloud/services/dlc/data_source_tc_dlc_session_image_version_test.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.md create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation_test.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.md create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation_test.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.md create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation_test.go create mode 100644 website/docs/d/dlc_data_engine_network.html.markdown create mode 100644 website/docs/d/dlc_data_engine_session_parameters.html.markdown create mode 100644 website/docs/d/dlc_session_image_version.html.markdown create mode 100644 website/docs/r/dlc_update_engine_resource_group_network_config_information_operation.html.markdown create mode 100644 website/docs/r/dlc_update_standard_engine_resource_group_config_information_operation.html.markdown create mode 100644 website/docs/r/dlc_update_standard_engine_resource_group_resource_information_operation.html.markdown diff --git a/tencentcloud/provider.go b/tencentcloud/provider.go index 110659abc8..c8e90ab5bc 100644 --- a/tencentcloud/provider.go +++ b/tencentcloud/provider.go @@ -1224,6 +1224,9 @@ func Provider() *schema.Provider { "tencentcloud_dlc_engine_node_specifications": dlc.DataSourceTencentCloudDlcEngineNodeSpecifications(), "tencentcloud_dlc_native_spark_sessions": dlc.DataSourceTencentCloudDlcNativeSparkSessions(), "tencentcloud_dlc_standard_engine_resource_group_config_information": dlc.DataSourceTencentCloudDlcStandardEngineResourceGroupConfigInformation(), + "tencentcloud_dlc_data_engine_network": dlc.DataSourceTencentCloudDlcDataEngineNetwork(), + "tencentcloud_dlc_data_engine_session_parameters": dlc.DataSourceTencentCloudDlcDataEngineSessionParameters(), + "tencentcloud_dlc_session_image_version": dlc.DataSourceTencentCloudDlcSessionImageVersion(), "tencentcloud_bi_project": bi.DataSourceTencentCloudBiProject(), "tencentcloud_bi_user_project": bi.DataSourceTencentCloudBiUserProject(), "tencentcloud_antiddos_basic_device_status": antiddos.DataSourceTencentCloudAntiddosBasicDeviceStatus(), @@ -2242,6 +2245,9 @@ func Provider() *schema.Provider { "tencentcloud_dlc_bind_work_groups_to_user_attachment": dlc.ResourceTencentCloudDlcBindWorkGroupsToUserAttachment(), "tencentcloud_dlc_update_row_filter_operation": dlc.ResourceTencentCloudDlcUpdateRowFilterOperation(), "tencentcloud_dlc_user_data_engine_config": dlc.ResourceTencentCloudDlcUserDataEngineConfig(), + "tencentcloud_dlc_update_engine_resource_group_network_config_information_operation": dlc.ResourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperation(), + "tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation": dlc.ResourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperation(), + "tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation": dlc.ResourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperation(), "tencentcloud_waf_custom_rule": waf.ResourceTencentCloudWafCustomRule(), "tencentcloud_waf_custom_white_rule": waf.ResourceTencentCloudWafCustomWhiteRule(), "tencentcloud_waf_clb_domain": waf.ResourceTencentCloudWafClbDomain(), diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index 12e04ff2b2..d556ceca32 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -2147,6 +2147,9 @@ tencentcloud_dlc_task_result tencentcloud_dlc_engine_node_specifications tencentcloud_dlc_native_spark_sessions tencentcloud_dlc_standard_engine_resource_group_config_information +tencentcloud_dlc_data_engine_network +tencentcloud_dlc_data_engine_session_parameters +tencentcloud_dlc_session_image_version Resource tencentcloud_dlc_work_group @@ -2166,6 +2169,9 @@ tencentcloud_dlc_upgrade_data_engine_image_operation tencentcloud_dlc_user_data_engine_config tencentcloud_dlc_update_row_filter_operation tencentcloud_dlc_bind_work_groups_to_user_attachment +tencentcloud_dlc_update_engine_resource_group_network_config_information_operation +tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation +tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation Web Application Firewall(WAF) Data Source diff --git a/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network.go b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network.go new file mode 100644 index 0000000000..636ead6fb3 --- /dev/null +++ b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network.go @@ -0,0 +1,295 @@ +package dlc + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudDlcDataEngineNetwork() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudDlcDataEngineNetworkRead, + Schema: map[string]*schema.Schema{ + "sort_by": { + Type: schema.TypeString, + Optional: true, + Description: "Sort Field.", + }, + + "sorting": { + Type: schema.TypeString, + Optional: true, + Description: "Sort order, asc or desc.", + }, + + "filters": { + Type: schema.TypeList, + Optional: true, + Description: "Filter conditions are optional, engine-network-id--engine network ID, engine-network-state--engine network status.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Required: true, + Description: "Attribute name, if there are multiple filters, the relationship between filters is a logical OR relationship.", + }, + "values": { + Type: schema.TypeList, + Required: true, + Description: "Attribute value, if there are multiple values, the relationship between values is a logical OR relationship.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + }, + }, + }, + + "engine_networks_infos": { + Type: schema.TypeList, + Computed: true, + Description: "Engine network information list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "engine_network_name": { + Type: schema.TypeString, + Optional: true, + Description: "Engine network name.", + }, + "engine_network_state": { + Type: schema.TypeInt, + Required: true, + Description: "Engine network status, 0--initialized, 2--available, -1--deleted.", + }, + "engine_network_cidr": { + Type: schema.TypeString, + Optional: true, + Description: "Engine network CIDR.", + }, + "engine_network_id": { + Type: schema.TypeString, + Optional: true, + Description: "Engine network ID.", + }, + "create_time": { + Type: schema.TypeInt, + Optional: true, + Description: "Creation time.", + }, + "update_time": { + Type: schema.TypeInt, + Optional: true, + Description: "Update time.", + }, + "private_link_number": { + Type: schema.TypeInt, + Optional: true, + Description: "Number of private links.", + }, + "engine_number": { + Type: schema.TypeInt, + Optional: true, + Description: "Number of engines.", + }, + "gate_way_info": { + Type: schema.TypeList, + Optional: true, + Description: "Gateway information list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "gateway_id": { + Type: schema.TypeString, + Optional: true, + Description: "Gateway ID.", + }, + "gateway_name": { + Type: schema.TypeString, + Optional: true, + Description: "Gateway name.", + }, + "size": { + Type: schema.TypeInt, + Optional: true, + Description: "Gateway size.", + }, + "state": { + Type: schema.TypeInt, + Optional: true, + Description: "Gateway status: -1--Failed, -2--Deleted, 0--Init,1--Pause, 2--running, 3--ToBeDeleted, 4--Deleting, 5--Pausing, 6--Resuming, 7--Isolating, 8--Isolated, 9--Renewing, 10--Modifying, 11--Modified, 12--Restoring, 13--Restored, 14--ToBeRestored.", + }, + "pay_mode": { + Type: schema.TypeInt, + Optional: true, + Description: "Pay mode.", + }, + "mode": { + Type: schema.TypeInt, + Optional: true, + Description: "Gateway mode.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudDlcDataEngineNetworkRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_dlc_data_engine_network.read")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(nil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + service = DlcService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + ) + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("sort_by"); ok { + paramMap["SortBy"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("sorting"); ok { + paramMap["Sorting"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("filters"); ok { + filtersSet := v.([]interface{}) + tmpSet := make([]*dlcv20210125.Filter, 0, len(filtersSet)) + for _, item := range filtersSet { + filtersMap := item.(map[string]interface{}) + filter := dlcv20210125.Filter{} + if v, ok := filtersMap["name"].(string); ok && v != "" { + filter.Name = helper.String(v) + } + + if v, ok := filtersMap["values"]; ok { + valuesSet := v.([]interface{}) + for i := range valuesSet { + values := valuesSet[i].(string) + filter.Values = append(filter.Values, helper.String(values)) + } + } + + tmpSet = append(tmpSet, &filter) + } + + paramMap["Filters"] = tmpSet + } + + var respData []*dlcv20210125.EngineNetworkInfo + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeDlcDataEngineNetworkByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + + respData = result + return nil + }) + + if reqErr != nil { + return reqErr + } + + engineNetworkInfosList := make([]map[string]interface{}, 0, len(respData)) + if respData != nil { + for _, engineNetworkInfos := range respData { + engineNetworkInfosMap := map[string]interface{}{} + if engineNetworkInfos.EngineNetworkName != nil { + engineNetworkInfosMap["engine_network_name"] = engineNetworkInfos.EngineNetworkName + } + + if engineNetworkInfos.EngineNetworkState != nil { + engineNetworkInfosMap["engine_network_state"] = engineNetworkInfos.EngineNetworkState + } + + if engineNetworkInfos.EngineNetworkCidr != nil { + engineNetworkInfosMap["engine_network_cidr"] = engineNetworkInfos.EngineNetworkCidr + } + + if engineNetworkInfos.EngineNetworkId != nil { + engineNetworkInfosMap["engine_network_id"] = engineNetworkInfos.EngineNetworkId + } + + if engineNetworkInfos.CreateTime != nil { + engineNetworkInfosMap["create_time"] = engineNetworkInfos.CreateTime + } + + if engineNetworkInfos.UpdateTime != nil { + engineNetworkInfosMap["update_time"] = engineNetworkInfos.UpdateTime + } + + if engineNetworkInfos.PrivateLinkNumber != nil { + engineNetworkInfosMap["private_link_number"] = engineNetworkInfos.PrivateLinkNumber + } + + if engineNetworkInfos.EngineNumber != nil { + engineNetworkInfosMap["engine_number"] = engineNetworkInfos.EngineNumber + } + + gateWayInfoList := make([]map[string]interface{}, 0, len(engineNetworkInfos.GateWayInfo)) + if engineNetworkInfos.GateWayInfo != nil { + for _, gateWayInfo := range engineNetworkInfos.GateWayInfo { + gateWayInfoMap := map[string]interface{}{} + + if gateWayInfo.GatewayId != nil { + gateWayInfoMap["gateway_id"] = gateWayInfo.GatewayId + } + + if gateWayInfo.GatewayName != nil { + gateWayInfoMap["gateway_name"] = gateWayInfo.GatewayName + } + + if gateWayInfo.Size != nil { + gateWayInfoMap["size"] = gateWayInfo.Size + } + + if gateWayInfo.State != nil { + gateWayInfoMap["state"] = gateWayInfo.State + } + + if gateWayInfo.PayMode != nil { + gateWayInfoMap["pay_mode"] = gateWayInfo.PayMode + } + + if gateWayInfo.Mode != nil { + gateWayInfoMap["mode"] = gateWayInfo.Mode + } + + gateWayInfoList = append(gateWayInfoList, gateWayInfoMap) + } + + engineNetworkInfosMap["gate_way_info"] = gateWayInfoList + } + + engineNetworkInfosList = append(engineNetworkInfosList, engineNetworkInfosMap) + } + + _ = d.Set("engine_network_infos", engineNetworkInfosList) + } + + d.SetId(helper.BuildToken()) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), engineNetworkInfosList); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network.md b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network.md new file mode 100644 index 0000000000..2b013f8b6f --- /dev/null +++ b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network.md @@ -0,0 +1,14 @@ +Use this data source to query detailed information of DLC data engine network + +Example Usage + +```hcl +data "tencentcloud_dlc_data_engine_network" "example" { + sort_by = "create-time" + sorting = "desc" + filters { + name = "engine-network-id" + values = ["DataEngine_Network-g1sxyw8v"] + } +} +``` diff --git a/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network_test.go b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network_test.go new file mode 100644 index 0000000000..c34b001471 --- /dev/null +++ b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_network_test.go @@ -0,0 +1,36 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcDataEngineNetworkDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{{ + Config: testAccDlcDataEngineNetworkDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_dlc_data_engine_network.example"), + ), + }}, + }) +} + +const testAccDlcDataEngineNetworkDataSource = ` +data "tencentcloud_dlc_data_engine_network" "example" { + sort_by = "create-time" + sorting = "desc" + filters { + name = "engine-network-id" + values = ["DataEngine_Network-g1sxyw8v"] + } +} +` diff --git a/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters.go b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters.go new file mode 100644 index 0000000000..4b969dea5c --- /dev/null +++ b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters.go @@ -0,0 +1,239 @@ +package dlc + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudDlcDataEngineSessionParameters() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudDlcDataEngineSessionParametersRead, + Schema: map[string]*schema.Schema{ + "data_engine_id": { + Type: schema.TypeString, + Required: true, + Description: "DataEngine Id.", + }, + + "data_engine_name": { + Type: schema.TypeString, + Optional: true, + Description: "Engine name. When the engine name is specified, the name is used first to obtain the configuration.", + }, + + "data_engine_parameters": { + Type: schema.TypeList, + Computed: true, + Description: "Engine Session Configuration List.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "parameter_id": { + Type: schema.TypeString, + Required: true, + Description: "Configuration ID.", + }, + "child_image_version_id": { + Type: schema.TypeString, + Required: true, + Description: "Minor version image ID.", + }, + "engine_type": { + Type: schema.TypeString, + Required: true, + Description: "Cluster type: SparkSQL/PrestoSQL/SparkBatch.", + }, + "key_name": { + Type: schema.TypeString, + Required: true, + Description: "Parameter key.", + }, + "key_description": { + Type: schema.TypeString, + Required: true, + Description: "Description of the key.", + }, + "value_type": { + Type: schema.TypeString, + Required: true, + Description: "Type of the value.", + }, + "value_length_limit": { + Type: schema.TypeString, + Required: true, + Description: "Length limit of the value.", + }, + "value_regexp_limit": { + Type: schema.TypeString, + Required: true, + Description: "Regular expression constraint for the value.", + }, + "value_default": { + Type: schema.TypeString, + Required: true, + Description: "Default value.", + }, + "is_public": { + Type: schema.TypeInt, + Required: true, + Description: "Whether it is a public version: 1 for public; 2 for private.", + }, + "parameter_type": { + Type: schema.TypeInt, + Required: true, + Description: "Configuration type: 1 for session config (default); 2 for common config; 3 for cluster config.", + }, + "submit_method": { + Type: schema.TypeString, + Required: true, + Description: "Submission method: User or BackGround.", + }, + "operator": { + Type: schema.TypeString, + Required: true, + Description: "Operator.", + }, + "insert_time": { + Type: schema.TypeString, + Required: true, + Description: "Insert time.", + }, + "update_time": { + Type: schema.TypeString, + Required: true, + Description: "Update time.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudDlcDataEngineSessionParametersRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_dlc_data_engine_session_parameters.read")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(nil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + service = DlcService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + dataEngineId string + ) + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("data_engine_id"); ok { + paramMap["DataEngineId"] = helper.String(v.(string)) + dataEngineId = v.(string) + } + + if v, ok := d.GetOk("data_engine_name"); ok { + paramMap["DataEngineName"] = helper.String(v.(string)) + } + + var respData []*dlcv20210125.DataEngineImageSessionParameter + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeDlcDataEngineSessionParametersByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + + respData = result + return nil + }) + + if reqErr != nil { + return reqErr + } + + dataEngineParametersList := make([]map[string]interface{}, 0, len(respData)) + if respData != nil { + for _, dataEngineParameters := range respData { + dataEngineParametersMap := map[string]interface{}{} + if dataEngineParameters.ParameterId != nil { + dataEngineParametersMap["parameter_id"] = dataEngineParameters.ParameterId + } + + if dataEngineParameters.ChildImageVersionId != nil { + dataEngineParametersMap["child_image_version_id"] = dataEngineParameters.ChildImageVersionId + } + + if dataEngineParameters.EngineType != nil { + dataEngineParametersMap["engine_type"] = dataEngineParameters.EngineType + } + + if dataEngineParameters.KeyName != nil { + dataEngineParametersMap["key_name"] = dataEngineParameters.KeyName + } + + if dataEngineParameters.KeyDescription != nil { + dataEngineParametersMap["key_description"] = dataEngineParameters.KeyDescription + } + + if dataEngineParameters.ValueType != nil { + dataEngineParametersMap["value_type"] = dataEngineParameters.ValueType + } + + if dataEngineParameters.ValueLengthLimit != nil { + dataEngineParametersMap["value_length_limit"] = dataEngineParameters.ValueLengthLimit + } + + if dataEngineParameters.ValueRegexpLimit != nil { + dataEngineParametersMap["value_regexp_limit"] = dataEngineParameters.ValueRegexpLimit + } + + if dataEngineParameters.ValueDefault != nil { + dataEngineParametersMap["value_default"] = dataEngineParameters.ValueDefault + } + + if dataEngineParameters.IsPublic != nil { + dataEngineParametersMap["is_public"] = dataEngineParameters.IsPublic + } + + if dataEngineParameters.ParameterType != nil { + dataEngineParametersMap["parameter_type"] = dataEngineParameters.ParameterType + } + + if dataEngineParameters.SubmitMethod != nil { + dataEngineParametersMap["submit_method"] = dataEngineParameters.SubmitMethod + } + + if dataEngineParameters.Operator != nil { + dataEngineParametersMap["operator"] = dataEngineParameters.Operator + } + + if dataEngineParameters.InsertTime != nil { + dataEngineParametersMap["insert_time"] = dataEngineParameters.InsertTime + } + + if dataEngineParameters.UpdateTime != nil { + dataEngineParametersMap["update_time"] = dataEngineParameters.UpdateTime + } + + dataEngineParametersList = append(dataEngineParametersList, dataEngineParametersMap) + } + + _ = d.Set("data_engine_parameters", dataEngineParametersList) + } + + d.SetId(dataEngineId) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), dataEngineParametersList); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters.md b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters.md new file mode 100644 index 0000000000..aab22d9bd5 --- /dev/null +++ b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters.md @@ -0,0 +1,9 @@ +Use this data source to query detailed information of DLC data engine session parameters + +Example Usage + +```hcl +data "tencentcloud_dlc_data_engine_session_parameters" "example" { + data_engine_id = "DataEngine-public-1308726196" +} +``` diff --git a/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters_test.go b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters_test.go new file mode 100644 index 0000000000..cb4de62555 --- /dev/null +++ b/tencentcloud/services/dlc/data_source_tc_dlc_data_engine_session_parameters_test.go @@ -0,0 +1,31 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcDataEngineSessionParametersDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{{ + Config: testAccDlcDataEngineSessionParametersDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_dlc_data_engine_session_parameters.dlc_data_engine_session_parameters"), + ), + }}, + }) +} + +const testAccDlcDataEngineSessionParametersDataSource = ` +data "tencentcloud_dlc_data_engine_session_parameters" "example" { + data_engine_id = "DataEngine-public-1308726196" +} +` diff --git a/tencentcloud/services/dlc/data_source_tc_dlc_session_image_version.go b/tencentcloud/services/dlc/data_source_tc_dlc_session_image_version.go new file mode 100644 index 0000000000..9197ade3be --- /dev/null +++ b/tencentcloud/services/dlc/data_source_tc_dlc_session_image_version.go @@ -0,0 +1,140 @@ +package dlc + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudDlcSessionImageVersion() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudDlcSessionImageVersionRead, + Schema: map[string]*schema.Schema{ + "data_engine_id": { + Type: schema.TypeString, + Required: true, + Description: "Data engine ID.", + }, + + "framework_type": { + Type: schema.TypeString, + Required: true, + Description: "Framework type: machine learning, Python, Spark ML.", + }, + + "engine_session_images": { + Type: schema.TypeList, + Computed: true, + Description: "Engine session image information.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "spark_image_id": { + Type: schema.TypeString, + Required: true, + Description: "Spark image ID.", + }, + "spark_image_version": { + Type: schema.TypeString, + Required: true, + Description: "Spark image version.", + }, + "spark_image_type": { + Type: schema.TypeInt, + Required: true, + Description: "Small version image type. 1: TensorFlow, 2: Pytorch, 3: SK-learn.", + }, + "spark_image_tag": { + Type: schema.TypeString, + Required: true, + Description: "Spark image tag.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudDlcSessionImageVersionRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_dlc_session_image_version.read")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(nil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + service = DlcService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + dataEngineId string + ) + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("data_engine_id"); ok { + paramMap["DataEngineId"] = helper.String(v.(string)) + dataEngineId = v.(string) + } + + if v, ok := d.GetOk("framework_type"); ok { + paramMap["FrameworkType"] = helper.String(v.(string)) + } + + var respData []*dlcv20210125.EngineSessionImage + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeDlcSessionImageVersionByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + + respData = result + return nil + }) + + if reqErr != nil { + return reqErr + } + + engineSessionImagesList := make([]map[string]interface{}, 0, len(respData)) + if respData != nil { + for _, engineSessionImages := range respData { + engineSessionImagesMap := map[string]interface{}{} + if engineSessionImages.SparkImageId != nil { + engineSessionImagesMap["spark_image_id"] = engineSessionImages.SparkImageId + } + + if engineSessionImages.SparkImageVersion != nil { + engineSessionImagesMap["spark_image_version"] = engineSessionImages.SparkImageVersion + } + + if engineSessionImages.SparkImageType != nil { + engineSessionImagesMap["spark_image_type"] = engineSessionImages.SparkImageType + } + + if engineSessionImages.SparkImageTag != nil { + engineSessionImagesMap["spark_image_tag"] = engineSessionImages.SparkImageTag + } + + engineSessionImagesList = append(engineSessionImagesList, engineSessionImagesMap) + } + + _ = d.Set("engine_session_images", engineSessionImagesList) + } + + d.SetId(dataEngineId) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), engineSessionImagesList); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/dlc/data_source_tc_dlc_session_image_version.md b/tencentcloud/services/dlc/data_source_tc_dlc_session_image_version.md new file mode 100644 index 0000000000..2e5050713d --- /dev/null +++ b/tencentcloud/services/dlc/data_source_tc_dlc_session_image_version.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of DLC session image version + +Example Usage + +```hcl +data "tencentcloud_dlc_session_image_version" "example" { + data_engine_id = "DataEngine-e482ijv6" + framework_type = "machine-learning" +} +``` diff --git a/tencentcloud/services/dlc/data_source_tc_dlc_session_image_version_test.go b/tencentcloud/services/dlc/data_source_tc_dlc_session_image_version_test.go new file mode 100644 index 0000000000..9497a17b78 --- /dev/null +++ b/tencentcloud/services/dlc/data_source_tc_dlc_session_image_version_test.go @@ -0,0 +1,32 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcSessionImageVersionDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{{ + Config: testAccDlcSessionImageVersionDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_dlc_session_image_version.example"), + ), + }}, + }) +} + +const testAccDlcSessionImageVersionDataSource = ` +data "tencentcloud_dlc_session_image_version" "example" { + data_engine_id = "DataEngine-e482ijv6" + framework_type = "machine-learning" +} +` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go new file mode 100644 index 0000000000..40068adbef --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go @@ -0,0 +1,141 @@ +package dlc + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func ResourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperation() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationCreate, + Read: resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationRead, + Delete: resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationDelete, + Schema: map[string]*schema.Schema{ + "engine_resource_group_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Engine resource group ID.", + }, + + "network_config_names": { + Type: schema.TypeSet, + Optional: true, + ForceNew: true, + Description: "A collection of network configuration names bound to the resource group.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + }, + } +} + +func resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationCreate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_engine_resource_group_network_config_information_operation.create")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewUpdateEngineResourceGroupNetworkConfigInfoRequest() + engineResourceGroupId string + ) + + if v, ok := d.GetOk("engine_resource_group_id"); ok { + request.EngineResourceGroupId = helper.String(v.(string)) + engineResourceGroupId = v.(string) + } + + if v, ok := d.GetOk("network_config_names"); ok { + networkConfigNamesSet := v.(*schema.Set).List() + for i := range networkConfigNamesSet { + networkConfigNames := networkConfigNamesSet[i].(string) + request.NetworkConfigNames = append(request.NetworkConfigNames, helper.String(networkConfigNames)) + } + } + + request.IsEffectiveNow = helper.IntInt64(0) + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateEngineResourceGroupNetworkConfigInfoWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s create dlc update engine resource group network config information operation failed, reason:%+v", logId, reqErr) + return reqErr + } + + d.SetId(engineResourceGroupId) + + // wait + waitReq := dlcv20210125.NewDescribeStandardEngineResourceGroupsRequest() + waitReq.Filters = []*dlcv20210125.Filter{ + &dlcv20210125.Filter{ + Name: helper.String("engine-resource-group-id"), + Values: helper.Strings([]string{engineResourceGroupId}), + }, + } + reqErr = resource.Retry(tccommon.ReadRetryTimeout*7, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, waitReq) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe standard engine resource groups failed, Response is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState == nil { + return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) + } + + resourceGroupState := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState + if *resourceGroupState == 2 { + return nil + } + + return resource.RetryableError(fmt.Errorf("ResourceGroupState is not running, current state is %d...", *resourceGroupState)) + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s describe standard engine resource groups failed,, reason:%+v", logId, reqErr) + return reqErr + } + + return resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationRead(d, meta) +} + +func resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_engine_resource_group_network_config_information_operation.read")() + defer tccommon.InconsistentCheck(d, meta)() + + return nil +} + +func resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationDelete(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_engine_resource_group_network_config_information_operation.delete")() + defer tccommon.InconsistentCheck(d, meta)() + + return nil +} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.md b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.md new file mode 100644 index 0000000000..f4658c3bed --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a DLC update engine resource group network config information operation + +Example Usage + +```hcl +resource "tencentcloud_dlc_update_engine_resource_group_network_config_information_operation" "example" { + engine_resource_group_id = "rg-b6fxxxxxx2a0" +} +``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation_test.go b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation_test.go new file mode 100644 index 0000000000..8ea2f51d7e --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation_test.go @@ -0,0 +1,33 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDlcUpdateEngineResourceGroupNetworkConfigInformationOperation, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_dlc_update_engine_resource_group_network_config_information_operation.example", "id"), + ), + }, + }, + }) +} + +const testAccDlcUpdateEngineResourceGroupNetworkConfigInformationOperation = ` +resource "tencentcloud_dlc_update_engine_resource_group_network_config_information_operation" "example" { + engine_resource_group_id = "rg-b6fxxxxxx2a0" +} +` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go new file mode 100644 index 0000000000..82bc9a441c --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go @@ -0,0 +1,199 @@ +package dlc + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func ResourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperation() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationCreate, + Read: resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationRead, + Delete: resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationDelete, + Schema: map[string]*schema.Schema{ + "engine_resource_group_name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Engine resource group name.", + }, + + "update_conf_context": { + Type: schema.TypeList, + Required: true, + ForceNew: true, + Description: "Configuration that needs to be updated.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "config_type": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Parameter type, optional: StaticConfigType, DynamicConfigType.", + }, + "params": { + Type: schema.TypeList, + Required: true, + Description: "Configuration array of parameters.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "config_item": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Parameter key.", + }, + "config_value": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Parameter value.", + }, + "operate": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Send operations, support: ADD, DELETE, MODIFY.", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationCreate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation.create")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewUpdateStandardEngineResourceGroupConfigInfoRequest() + engineResourceGroupName string + ) + + if v, ok := d.GetOk("engine_resource_group_name"); ok { + request.EngineResourceGroupName = helper.String(v.(string)) + engineResourceGroupName = v.(string) + } + + if v, ok := d.GetOk("update_conf_context"); ok { + for _, item := range v.([]interface{}) { + updateConfContextMap := item.(map[string]interface{}) + updateConfContext := dlcv20210125.UpdateConfContext{} + if v, ok := updateConfContextMap["config_type"].(string); ok && v != "" { + updateConfContext.ConfigType = helper.String(v) + } + + if v, ok := updateConfContextMap["params"]; ok { + for _, item := range v.([]interface{}) { + paramsMap := item.(map[string]interface{}) + param := dlcv20210125.Param{} + if v, ok := paramsMap["config_item"].(string); ok && v != "" { + param.ConfigItem = helper.String(v) + } + + if v, ok := paramsMap["config_value"].(string); ok && v != "" { + param.ConfigValue = helper.String(v) + } + + if v, ok := paramsMap["operate"].(string); ok && v != "" { + param.Operate = helper.String(v) + } + + updateConfContext.Params = append(updateConfContext.Params, ¶m) + } + } + + request.UpdateConfContext = append(request.UpdateConfContext, &updateConfContext) + } + } + + request.IsEffectiveNow = helper.IntInt64(0) + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateStandardEngineResourceGroupConfigInfoWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s create dlc update standard engine resource group config information operation failed, reason:%+v", logId, reqErr) + return reqErr + } + + d.SetId(engineResourceGroupName) + + // wait + waitReq := dlcv20210125.NewDescribeStandardEngineResourceGroupsRequest() + waitReq.Filters = []*dlcv20210125.Filter{ + &dlcv20210125.Filter{ + Name: helper.String("engine-resource-group-name-unique"), + Values: helper.Strings([]string{engineResourceGroupName}), + }, + } + reqErr = resource.Retry(tccommon.ReadRetryTimeout*7, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, waitReq) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe standard engine resource groups failed, Response is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState == nil { + return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) + } + + resourceGroupState := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState + if *resourceGroupState == 2 { + return nil + } + + return resource.RetryableError(fmt.Errorf("ResourceGroupState is not running, current state is %d...", *resourceGroupState)) + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s describe standard engine resource groups failed,, reason:%+v", logId, reqErr) + return reqErr + } + + return resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationRead(d, meta) +} + +func resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation.read")() + defer tccommon.InconsistentCheck(d, meta)() + + return nil +} + +func resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationDelete(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation.delete")() + defer tccommon.InconsistentCheck(d, meta)() + + return nil +} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.md b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.md new file mode 100644 index 0000000000..4726464c57 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.md @@ -0,0 +1,17 @@ +Provides a resource to create a DLC update standard engine resource group config information operation + +Example Usage + +```hcl +resource "tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation" "example" { + engine_resource_group_name = "tf-example" + update_conf_context { + config_type = "StaticConfigType" + params { + config_item = "spark.sql.shuffle.partitions" + config_value = "300" + operate = "ADD" + } + } +} +``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation_test.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation_test.go new file mode 100644 index 0000000000..77c1a0964d --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation_test.go @@ -0,0 +1,41 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDlcUpdateStandardEngineResourceGroupConfigInformationOperation, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation.example", "id"), + ), + }, + }, + }) +} + +const testAccDlcUpdateStandardEngineResourceGroupConfigInformationOperation = ` +resource "tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation" "example" { + engine_resource_group_name = "tf-example" + update_conf_context { + config_type = "StaticConfigType" + params { + config_item = "spark.sql.shuffle.partitions" + config_value = "300" + operate = "ADD" + } + } +} +` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go new file mode 100644 index 0000000000..d8b3cc14b4 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go @@ -0,0 +1,288 @@ +package dlc + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func ResourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperation() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationCreate, + Read: resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationRead, + Delete: resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationDelete, + Schema: map[string]*schema.Schema{ + "engine_resource_group_name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Engine resource group name.", + }, + + "driver_cu_spec": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Driver CU specifications:\nCurrently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory).", + }, + + "executor_cu_spec": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Executor CU specifications:\nCurrently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory).", + }, + + "min_executor_nums": { + Type: schema.TypeInt, + Optional: true, + ForceNew: true, + Description: "Minimum number of executors.", + }, + + "max_executor_nums": { + Type: schema.TypeInt, + Optional: true, + ForceNew: true, + Description: "Maximum number of executors.", + }, + + "size": { + Type: schema.TypeInt, + Optional: true, + ForceNew: true, + Description: "AI resource group resource limit.", + }, + + "image_type": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Image type, built-in image: built-in, custom image: custom.", + }, + + "image_name": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Image name.", + }, + + "image_version": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Image version, image id.", + }, + + "frame_type": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Framework Type.", + }, + + "public_domain": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Customized mirror domain name.", + }, + + "registry_id": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Custom image instance id.", + }, + + "region_name": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Customize the image region.", + }, + + "python_cu_spec": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "The resource limit for a Python stand-alone node in a Python resource group must be smaller than the resource limit for the resource group. Small: 1cu Medium: 2cu Large: 4cu Xlarge: 8cu 4xlarge: 16cu 8xlarge: 32cu 16xlarge: 64cu. If the resource type is high memory, add m before the type.", + }, + + "spark_spec_mode": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Only SQL resource group resource configuration mode, fast: fast mode, custom: custom mode.", + }, + + "spark_size": { + Type: schema.TypeInt, + Optional: true, + ForceNew: true, + Description: "SQL resource group resource limit only, only used in fast mode.", + }, + }, + } +} + +func resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationCreate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation.create")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewUpdateStandardEngineResourceGroupResourceInfoRequest() + engineResourceGroupName string + ) + + if v, ok := d.GetOk("engine_resource_group_name"); ok { + request.EngineResourceGroupName = helper.String(v.(string)) + engineResourceGroupName = v.(string) + } + + if v, ok := d.GetOk("driver_cu_spec"); ok { + request.DriverCuSpec = helper.String(v.(string)) + } + + if v, ok := d.GetOk("executor_cu_spec"); ok { + request.ExecutorCuSpec = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("min_executor_nums"); ok { + request.MinExecutorNums = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOkExists("max_executor_nums"); ok { + request.MaxExecutorNums = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOkExists("size"); ok { + request.Size = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOk("image_type"); ok { + request.ImageType = helper.String(v.(string)) + } + + if v, ok := d.GetOk("image_name"); ok { + request.ImageName = helper.String(v.(string)) + } + + if v, ok := d.GetOk("image_version"); ok { + request.ImageVersion = helper.String(v.(string)) + } + + if v, ok := d.GetOk("frame_type"); ok { + request.FrameType = helper.String(v.(string)) + } + + if v, ok := d.GetOk("public_domain"); ok { + request.PublicDomain = helper.String(v.(string)) + } + + if v, ok := d.GetOk("registry_id"); ok { + request.RegistryId = helper.String(v.(string)) + } + + if v, ok := d.GetOk("region_name"); ok { + request.RegionName = helper.String(v.(string)) + } + + if v, ok := d.GetOk("python_cu_spec"); ok { + request.PythonCuSpec = helper.String(v.(string)) + } + + if v, ok := d.GetOk("spark_spec_mode"); ok { + request.SparkSpecMode = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("spark_size"); ok { + request.SparkSize = helper.IntInt64(v.(int)) + } + + request.IsEffectiveNow = helper.IntInt64(0) + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateStandardEngineResourceGroupResourceInfoWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s create dlc update standard engine resource group resource information operation failed, reason:%+v", logId, reqErr) + return reqErr + } + + d.SetId(engineResourceGroupName) + + // wait + waitReq := dlcv20210125.NewDescribeStandardEngineResourceGroupsRequest() + waitReq.Filters = []*dlcv20210125.Filter{ + &dlcv20210125.Filter{ + Name: helper.String("engine-resource-group-name-unique"), + Values: helper.Strings([]string{engineResourceGroupName}), + }, + } + reqErr = resource.Retry(tccommon.ReadRetryTimeout*7, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, waitReq) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe standard engine resource groups failed, Response is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState == nil { + return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) + } + + resourceGroupState := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState + if *resourceGroupState == 2 { + return nil + } + + return resource.RetryableError(fmt.Errorf("ResourceGroupState is not running, current state is %d...", *resourceGroupState)) + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s describe standard engine resource groups failed,, reason:%+v", logId, reqErr) + return reqErr + } + + return resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationRead(d, meta) +} + +func resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation.read")() + defer tccommon.InconsistentCheck(d, meta)() + + return nil +} + +func resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationDelete(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation.delete")() + defer tccommon.InconsistentCheck(d, meta)() + + return nil +} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.md b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.md new file mode 100644 index 0000000000..e0981f9341 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.md @@ -0,0 +1,9 @@ +Provides a resource to create a DLC update standard engine resource group resource information operation + +Example Usage + +```hcl +resource "tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation" "example" { + engine_resource_group_name = "tf-example" +} +``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation_test.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation_test.go new file mode 100644 index 0000000000..8b5de6224a --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation_test.go @@ -0,0 +1,31 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{{ + Config: testAccDlcUpdateStandardEngineResourceGroupResourceInformationOperation, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation.example", "id"), + ), + }}, + }) +} + +const testAccDlcUpdateStandardEngineResourceGroupResourceInformationOperation = ` +resource "tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation" "example" { + engine_resource_group_name = "test" +} +` diff --git a/tencentcloud/services/dlc/service_tencentcloud_dlc.go b/tencentcloud/services/dlc/service_tencentcloud_dlc.go index d2474610a0..a93bddae51 100644 --- a/tencentcloud/services/dlc/service_tencentcloud_dlc.go +++ b/tencentcloud/services/dlc/service_tencentcloud_dlc.go @@ -1120,3 +1120,137 @@ func (me *DlcService) DescribeDlcStandardEngineResourceGroupConfigInformationByF ret = response.Response return } + +func (me *DlcService) DescribeDlcDataEngineNetworkByFilter(ctx context.Context, param map[string]interface{}) (ret []*dlc.EngineNetworkInfo, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = dlc.NewDescribeEngineNetworksRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + for k, v := range param { + if k == "SortBy" { + request.SortBy = v.(*string) + } + + if k == "Sorting" { + request.Sorting = v.(*string) + } + + if k == "Filters" { + request.Filters = v.([]*dlc.Filter) + } + } + + var ( + offset int64 = 0 + limit int64 = 100 + ) + + for { + request.Offset = &offset + request.Limit = &limit + ratelimit.Check(request.GetAction()) + response, err := me.client.UseDlcClient().DescribeEngineNetworks(request) + if err != nil { + errRet = err + return + } + + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.EngineNetworkInfos) < 1 { + break + } + + ret = append(ret, response.Response.EngineNetworkInfos...) + if len(response.Response.EngineNetworkInfos) < int(limit) { + break + } + + offset += limit + } + + return +} + +func (me *DlcService) DescribeDlcDataEngineSessionParametersByFilter(ctx context.Context, param map[string]interface{}) (ret []*dlc.DataEngineImageSessionParameter, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = dlc.NewDescribeDataEngineSessionParametersRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + for k, v := range param { + if k == "DataEngineId" { + request.DataEngineId = v.(*string) + } + + if k == "DataEngineName" { + request.DataEngineName = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + response, err := me.client.UseDlcClient().DescribeDataEngineSessionParameters(request) + if err != nil { + errRet = err + return + } + + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + if len(response.Response.DataEngineParameters) < 1 { + return + } + + ret = response.Response.DataEngineParameters + return +} + +func (me *DlcService) DescribeDlcSessionImageVersionByFilter(ctx context.Context, param map[string]interface{}) (ret []*dlc.EngineSessionImage, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = dlc.NewDescribeSessionImageVersionRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + for k, v := range param { + if k == "DataEngineId" { + request.DataEngineId = v.(*string) + } + + if k == "FrameworkType" { + request.FrameworkType = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + response, err := me.client.UseDlcClient().DescribeSessionImageVersion(request) + if err != nil { + errRet = err + return + } + + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + if len(response.Response.EngineSessionImages) < 1 { + return + } + + ret = response.Response.EngineSessionImages + return +} diff --git a/website/docs/d/dlc_data_engine_network.html.markdown b/website/docs/d/dlc_data_engine_network.html.markdown new file mode 100644 index 0000000000..29f64050d3 --- /dev/null +++ b/website/docs/d/dlc_data_engine_network.html.markdown @@ -0,0 +1,47 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_data_engine_network" +sidebar_current: "docs-tencentcloud-datasource-dlc_data_engine_network" +description: |- + Use this data source to query detailed information of DLC data engine network +--- + +# tencentcloud_dlc_data_engine_network + +Use this data source to query detailed information of DLC data engine network + +## Example Usage + +```hcl +data "tencentcloud_dlc_data_engine_network" "example" { + sort_by = "create-time" + sorting = "desc" + filters { + name = "engine-network-id" + values = ["DataEngine_Network-g1sxyw8v"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `filters` - (Optional, List) Filter conditions are optional, engine-network-id--engine network ID, engine-network-state--engine network status. +* `result_output_file` - (Optional, String) Used to save results. +* `sort_by` - (Optional, String) Sort Field. +* `sorting` - (Optional, String) Sort order, asc or desc. + +The `filters` object supports the following: + +* `name` - (Required, String) Attribute name, if there are multiple filters, the relationship between filters is a logical OR relationship. +* `values` - (Required, List) Attribute value, if there are multiple values, the relationship between values is a logical OR relationship. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `engine_networks_infos` - Engine network information list. + + diff --git a/website/docs/d/dlc_data_engine_session_parameters.html.markdown b/website/docs/d/dlc_data_engine_session_parameters.html.markdown new file mode 100644 index 0000000000..78dddc2775 --- /dev/null +++ b/website/docs/d/dlc_data_engine_session_parameters.html.markdown @@ -0,0 +1,36 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_data_engine_session_parameters" +sidebar_current: "docs-tencentcloud-datasource-dlc_data_engine_session_parameters" +description: |- + Use this data source to query detailed information of DLC data engine session parameters +--- + +# tencentcloud_dlc_data_engine_session_parameters + +Use this data source to query detailed information of DLC data engine session parameters + +## Example Usage + +```hcl +data "tencentcloud_dlc_data_engine_session_parameters" "example" { + data_engine_id = "DataEngine-public-1308726196" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `data_engine_id` - (Required, String) DataEngine Id. +* `data_engine_name` - (Optional, String) Engine name. When the engine name is specified, the name is used first to obtain the configuration. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `data_engine_parameters` - Engine Session Configuration List. + + diff --git a/website/docs/d/dlc_session_image_version.html.markdown b/website/docs/d/dlc_session_image_version.html.markdown new file mode 100644 index 0000000000..e6dadf7c72 --- /dev/null +++ b/website/docs/d/dlc_session_image_version.html.markdown @@ -0,0 +1,37 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_session_image_version" +sidebar_current: "docs-tencentcloud-datasource-dlc_session_image_version" +description: |- + Use this data source to query detailed information of DLC session image version +--- + +# tencentcloud_dlc_session_image_version + +Use this data source to query detailed information of DLC session image version + +## Example Usage + +```hcl +data "tencentcloud_dlc_session_image_version" "example" { + data_engine_id = "DataEngine-e482ijv6" + framework_type = "machine-learning" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `data_engine_id` - (Required, String) Data engine ID. +* `framework_type` - (Required, String) Framework type: machine learning, Python, Spark ML. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `engine_session_images` - Engine session image information. + + diff --git a/website/docs/r/dlc_update_engine_resource_group_network_config_information_operation.html.markdown b/website/docs/r/dlc_update_engine_resource_group_network_config_information_operation.html.markdown new file mode 100644 index 0000000000..f8198e5e33 --- /dev/null +++ b/website/docs/r/dlc_update_engine_resource_group_network_config_information_operation.html.markdown @@ -0,0 +1,36 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_update_engine_resource_group_network_config_information_operation" +sidebar_current: "docs-tencentcloud-resource-dlc_update_engine_resource_group_network_config_information_operation" +description: |- + Provides a resource to create a DLC update engine resource group network config information operation +--- + +# tencentcloud_dlc_update_engine_resource_group_network_config_information_operation + +Provides a resource to create a DLC update engine resource group network config information operation + +## Example Usage + +```hcl +resource "tencentcloud_dlc_update_engine_resource_group_network_config_information_operation" "example" { + engine_resource_group_id = "rg-b6fxxxxxx2a0" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `engine_resource_group_id` - (Required, String, ForceNew) Engine resource group ID. +* `network_config_names` - (Optional, Set: [`String`], ForceNew) A collection of network configuration names bound to the resource group. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + diff --git a/website/docs/r/dlc_update_standard_engine_resource_group_config_information_operation.html.markdown b/website/docs/r/dlc_update_standard_engine_resource_group_config_information_operation.html.markdown new file mode 100644 index 0000000000..20b3efc1ea --- /dev/null +++ b/website/docs/r/dlc_update_standard_engine_resource_group_config_information_operation.html.markdown @@ -0,0 +1,55 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation" +sidebar_current: "docs-tencentcloud-resource-dlc_update_standard_engine_resource_group_config_information_operation" +description: |- + Provides a resource to create a DLC update standard engine resource group config information operation +--- + +# tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation + +Provides a resource to create a DLC update standard engine resource group config information operation + +## Example Usage + +```hcl +resource "tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation" "example" { + engine_resource_group_name = "tf-example" + update_conf_context { + config_type = "StaticConfigType" + params { + config_item = "spark.sql.shuffle.partitions" + config_value = "300" + operate = "ADD" + } + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `engine_resource_group_name` - (Required, String, ForceNew) Engine resource group name. +* `update_conf_context` - (Required, List, ForceNew) Configuration that needs to be updated. + +The `params` object of `update_conf_context` supports the following: + +* `config_item` - (Optional, String, ForceNew) Parameter key. +* `config_value` - (Optional, String, ForceNew) Parameter value. +* `operate` - (Optional, String, ForceNew) Send operations, support: ADD, DELETE, MODIFY. + +The `update_conf_context` object supports the following: + +* `config_type` - (Required, String, ForceNew) Parameter type, optional: StaticConfigType, DynamicConfigType. +* `params` - (Required, List) Configuration array of parameters. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + diff --git a/website/docs/r/dlc_update_standard_engine_resource_group_resource_information_operation.html.markdown b/website/docs/r/dlc_update_standard_engine_resource_group_resource_information_operation.html.markdown new file mode 100644 index 0000000000..22eddaac95 --- /dev/null +++ b/website/docs/r/dlc_update_standard_engine_resource_group_resource_information_operation.html.markdown @@ -0,0 +1,52 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation" +sidebar_current: "docs-tencentcloud-resource-dlc_update_standard_engine_resource_group_resource_information_operation" +description: |- + Provides a resource to create a DLC update standard engine resource group resource information operation +--- + +# tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation + +Provides a resource to create a DLC update standard engine resource group resource information operation + +## Example Usage + +```hcl +resource "tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation" "example" { + engine_resource_group_name = "tf-example" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `engine_resource_group_name` - (Required, String, ForceNew) Engine resource group name. +* `driver_cu_spec` - (Optional, String, ForceNew) Driver CU specifications: +Currently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory). +* `executor_cu_spec` - (Optional, String, ForceNew) Executor CU specifications: +Currently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory). +* `frame_type` - (Optional, String, ForceNew) Framework Type. +* `image_name` - (Optional, String, ForceNew) Image name. +* `image_type` - (Optional, String, ForceNew) Image type, built-in image: built-in, custom image: custom. +* `image_version` - (Optional, String, ForceNew) Image version, image id. +* `max_executor_nums` - (Optional, Int, ForceNew) Maximum number of executors. +* `min_executor_nums` - (Optional, Int, ForceNew) Minimum number of executors. +* `public_domain` - (Optional, String, ForceNew) Customized mirror domain name. +* `python_cu_spec` - (Optional, String, ForceNew) The resource limit for a Python stand-alone node in a Python resource group must be smaller than the resource limit for the resource group. Small: 1cu Medium: 2cu Large: 4cu Xlarge: 8cu 4xlarge: 16cu 8xlarge: 32cu 16xlarge: 64cu. If the resource type is high memory, add m before the type. +* `region_name` - (Optional, String, ForceNew) Customize the image region. +* `registry_id` - (Optional, String, ForceNew) Custom image instance id. +* `size` - (Optional, Int, ForceNew) AI resource group resource limit. +* `spark_size` - (Optional, Int, ForceNew) SQL resource group resource limit only, only used in fast mode. +* `spark_spec_mode` - (Optional, String, ForceNew) Only SQL resource group resource configuration mode, fast: fast mode, custom: custom mode. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index 656b6fdc43..aa205f8eb8 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -2249,6 +2249,12 @@
  • tencentcloud_dlc_check_data_engine_image_can_be_upgrade
  • +
  • + tencentcloud_dlc_data_engine_network +
  • +
  • + tencentcloud_dlc_data_engine_session_parameters +
  • tencentcloud_dlc_describe_data_engine
  • @@ -2285,6 +2291,9 @@
  • tencentcloud_dlc_native_spark_sessions
  • +
  • + tencentcloud_dlc_session_image_version +
  • tencentcloud_dlc_standard_engine_resource_group_config_information
  • @@ -2332,9 +2341,18 @@
  • tencentcloud_dlc_update_data_engine_config_operation
  • +
  • + tencentcloud_dlc_update_engine_resource_group_network_config_information_operation +
  • tencentcloud_dlc_update_row_filter_operation
  • +
  • + tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation +
  • +
  • + tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation +
  • tencentcloud_dlc_upgrade_data_engine_image_operation
  • From 5a777d5958c6251e9ddad1dc5146b9795c009bab Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Wed, 20 Aug 2025 15:48:35 +0800 Subject: [PATCH 02/13] add --- .changelog/3486.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .changelog/3486.txt diff --git a/.changelog/3486.txt b/.changelog/3486.txt new file mode 100644 index 0000000000..ad1b251417 --- /dev/null +++ b/.changelog/3486.txt @@ -0,0 +1,23 @@ +```release-note:new-data-source +tencentcloud_dlc_data_engine_network +``` + +```release-note:new-data-source +tencentcloud_dlc_data_engine_session_parameters +``` + +```release-note:new-data-source +tencentcloud_dlc_session_image_version +``` + +```release-note:new-resource +tencentcloud_dlc_update_engine_resource_group_network_config_information_operation +``` + +```release-note:new-resource +tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation +``` + +```release-note:new-resource +tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation +``` \ No newline at end of file From 360fd02abe6ed8eaf1c5419cc58e494037d07bad Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Wed, 20 Aug 2025 16:46:02 +0800 Subject: [PATCH 03/13] add --- ...ngine_resource_group_network_config_information_operation.go | 2 +- ...andard_engine_resource_group_config_information_operation.go | 2 +- ...dard_engine_resource_group_resource_information_operation.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go index 40068adbef..07da74858c 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go @@ -85,7 +85,7 @@ func resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOpe // wait waitReq := dlcv20210125.NewDescribeStandardEngineResourceGroupsRequest() waitReq.Filters = []*dlcv20210125.Filter{ - &dlcv20210125.Filter{ + { Name: helper.String("engine-resource-group-id"), Values: helper.Strings([]string{engineResourceGroupId}), }, diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go index 82bc9a441c..f41af1860c 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go @@ -143,7 +143,7 @@ func resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOp // wait waitReq := dlcv20210125.NewDescribeStandardEngineResourceGroupsRequest() waitReq.Filters = []*dlcv20210125.Filter{ - &dlcv20210125.Filter{ + { Name: helper.String("engine-resource-group-name-unique"), Values: helper.Strings([]string{engineResourceGroupName}), }, diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go index d8b3cc14b4..0d15fbd35c 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go @@ -232,7 +232,7 @@ func resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformation // wait waitReq := dlcv20210125.NewDescribeStandardEngineResourceGroupsRequest() waitReq.Filters = []*dlcv20210125.Filter{ - &dlcv20210125.Filter{ + { Name: helper.String("engine-resource-group-name-unique"), Values: helper.Strings([]string{engineResourceGroupName}), }, From 9838c04e14f6e8dc71e3c6eadc0556f416533788 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Mon, 8 Sep 2025 16:43:44 +0800 Subject: [PATCH 04/13] add --- go.mod | 2 +- go.sum | 6 + tencentcloud/provider.go | 5 +- tencentcloud/provider.md | 5 +- ...e_tc_dlc_standard_engine_resource_group.go | 817 ++++++++++++++++++ ...e_tc_dlc_standard_engine_resource_group.md | 50 ++ ...dlc_standard_engine_resource_group_test.go | 37 + ...up_network_config_information_operation.go | 141 --- ...up_network_config_information_operation.md | 9 - ...twork_config_information_operation_test.go | 33 - ...urce_group_config_information_operation.go | 199 ----- ...urce_group_config_information_operation.md | 17 - ...group_config_information_operation_test.go | 41 - ...ce_group_resource_information_operation.go | 288 ------ ...ce_group_resource_information_operation.md | 9 - ...oup_resource_information_operation_test.go | 31 - .../resource_tc_dlc_user_vpc_connection.go | 217 +++++ .../resource_tc_dlc_user_vpc_connection.md | 12 + ...esource_tc_dlc_user_vpc_connection_test.go | 40 + .../services/dlc/service_tencentcloud_dlc.go | 92 ++ .../tencentcloud/common/http/request.go | 4 + .../tencentcloud/dlc/v20210125/client.go | 464 ++++++++++ .../tencentcloud/dlc/v20210125/errors.go | 15 + .../tencentcloud/dlc/v20210125/models.go | 631 +++++++++++++- vendor/modules.txt | 6 +- ...andard_engine_resource_group.html.markdown | 113 +++ ...config_information_operation.html.markdown | 36 - ...config_information_operation.html.markdown | 55 -- ...source_information_operation.html.markdown | 52 -- .../r/dlc_user_vpc_connection.html.markdown | 42 + website/tencentcloud.erb | 15 +- 31 files changed, 2550 insertions(+), 934 deletions(-) create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go delete mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go delete mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.md delete mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation_test.go delete mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go delete mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.md delete mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation_test.go delete mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go delete mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.md delete mode 100644 tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation_test.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.md create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection_test.go create mode 100644 website/docs/r/dlc_standard_engine_resource_group.html.markdown delete mode 100644 website/docs/r/dlc_update_engine_resource_group_network_config_information_operation.html.markdown delete mode 100644 website/docs/r/dlc_update_standard_engine_resource_group_config_information_operation.html.markdown delete mode 100644 website/docs/r/dlc_update_standard_engine_resource_group_resource_information_operation.html.markdown create mode 100644 website/docs/r/dlc_user_vpc_connection.html.markdown diff --git a/go.mod b/go.mod index 41ffbe0d90..1751d26e1e 100644 --- a/go.mod +++ b/go.mod @@ -54,7 +54,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dbbrain v1.0.652 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc v1.0.633 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb v1.0.673 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.5 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.23 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.1056 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dts v1.0.628 diff --git a/go.sum b/go.sum index 980ad3b5eb..a3ce31b2b5 100644 --- a/go.sum +++ b/go.sum @@ -946,6 +946,10 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.31 h1:PKa4c github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.31/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.27 h1:FG3AiNSNW5tG+mtTSE+dBc5ZhHwlYUW0Z6oSkfAWV0A= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.27/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.22 h1:1unTmvNXynDN0mOZSWh9tL5Wp9Rb5paMGwFvua+HHoI= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.22/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.23 h1:YZOxepoaH/yNaD1sYpCXR6PuFd22hbKdlXAGXWre8aM= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.23/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993 h1:WlPgXldQCxt7qi5Xrc6j6zTrsXWzN5BcOGs7Irq7fwQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993/go.mod h1:Z9U8zNtyuyKhjS0698wqsrG/kLx1TQ5CEixXBwVe7xY= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU= @@ -968,6 +972,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb v1.0.673 h1:YyjGLj github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb v1.0.673/go.mod h1:hXPMop1kJFqAvHj+7TyxxxXS/HGUP4SuKx5gGoAl0Zc= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.5 h1:0GJ2seyiCYrIfupZWb8CzMfTRw43K8PV41ISRaA81FU= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.5/go.mod h1:vipcBjuWWiD8NgkeDdflpmTAHFf/zH+chcpW4ADnwi4= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.23 h1:E2hkbinLJ2FDMjpX/RpWpqpwNbOTV4hnTmdeJm2Vj4k= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.23/go.mod h1:uR34lQsblkhjuZ68wkSsKw2uHJ7MG5aUoOdWPe3ILdw= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.1056 h1:kvJuKukDqbt1nKzaVRdcbvs3w9CoMz3V1oQp6jo3rSw= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.1056/go.mod h1:TLTlcL7Dr1p0vPg0NvOi1CJEx2xG1zTlP+4k+ggxnZE= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 h1:egwjvOEUKBaxsoRVn/YSEhp2E8qdh77Ous9A/wftDo0= diff --git a/tencentcloud/provider.go b/tencentcloud/provider.go index c8e90ab5bc..98896aad64 100644 --- a/tencentcloud/provider.go +++ b/tencentcloud/provider.go @@ -2245,9 +2245,8 @@ func Provider() *schema.Provider { "tencentcloud_dlc_bind_work_groups_to_user_attachment": dlc.ResourceTencentCloudDlcBindWorkGroupsToUserAttachment(), "tencentcloud_dlc_update_row_filter_operation": dlc.ResourceTencentCloudDlcUpdateRowFilterOperation(), "tencentcloud_dlc_user_data_engine_config": dlc.ResourceTencentCloudDlcUserDataEngineConfig(), - "tencentcloud_dlc_update_engine_resource_group_network_config_information_operation": dlc.ResourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperation(), - "tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation": dlc.ResourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperation(), - "tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation": dlc.ResourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperation(), + "tencentcloud_dlc_user_vpc_connection": dlc.ResourceTencentCloudDlcUserVpcConnection(), + "tencentcloud_dlc_standard_engine_resource_group": dlc.ResourceTencentCloudDlcStandardEngineResourceGroup(), "tencentcloud_waf_custom_rule": waf.ResourceTencentCloudWafCustomRule(), "tencentcloud_waf_custom_white_rule": waf.ResourceTencentCloudWafCustomWhiteRule(), "tencentcloud_waf_clb_domain": waf.ResourceTencentCloudWafClbDomain(), diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index d556ceca32..fb36d13ca9 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -2169,9 +2169,8 @@ tencentcloud_dlc_upgrade_data_engine_image_operation tencentcloud_dlc_user_data_engine_config tencentcloud_dlc_update_row_filter_operation tencentcloud_dlc_bind_work_groups_to_user_attachment -tencentcloud_dlc_update_engine_resource_group_network_config_information_operation -tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation -tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation +tencentcloud_dlc_user_vpc_connection +tencentcloud_dlc_standard_engine_resource_group Web Application Firewall(WAF) Data Source diff --git a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go new file mode 100644 index 0000000000..55b8614ef2 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go @@ -0,0 +1,817 @@ +package dlc + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func ResourceTencentCloudDlcStandardEngineResourceGroup() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudDlcStandardEngineResourceGroupCreate, + Read: resourceTencentCloudDlcStandardEngineResourceGroupRead, + Update: resourceTencentCloudDlcStandardEngineResourceGroupUpdate, + Delete: resourceTencentCloudDlcStandardEngineResourceGroupDelete, + Schema: map[string]*schema.Schema{ + "engine_resource_group_name": { + Type: schema.TypeString, + Required: true, + Description: "Standard engine resource group name.", + }, + + "data_engine_name": { + Type: schema.TypeString, + Required: true, + Description: "Standard engine name.", + }, + + "auto_launch": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + Description: "Automatic start (task submission automatically pulls up the resource group) 0-automatic start, 1-not automatic start.", + }, + + "auto_pause": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + Description: "Automatically suspend resource groups. 0 - Automatically suspend, 1 - Not automatically suspend.", + }, + + "driver_cu_spec": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Driver CU specifications: Currently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory).", + }, + + "executor_cu_spec": { + Type: schema.TypeString, + Optional: true, + Computed: true, + Description: "Executor CU specifications: Currently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory).", + }, + + "min_executor_nums": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + Description: "Minimum number of executors.", + }, + + "max_executor_nums": { + Type: schema.TypeInt, + Optional: true, + Computed: true, + Description: "Maximum number of executors.", + }, + + "auto_pause_time": { + Type: schema.TypeInt, + Optional: true, + Description: "Automatic suspension time, in minutes, with a value range of 1-999 (after no tasks have reached AutoPauseTime, the resource group will automatically suspend).", + }, + + "static_config_pairs": { + Type: schema.TypeList, + Optional: true, + Description: "Static parameters of the resource group, which require restarting the resource group to take effect.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "config_item": { + Type: schema.TypeString, + Required: true, + Description: "Configuration items.", + }, + "config_value": { + Type: schema.TypeString, + Required: true, + Description: "Configuration values.", + }, + }, + }, + }, + + "dynamic_config_pairs": { + Type: schema.TypeList, + Optional: true, + Description: "Dynamic parameters of the resource group, effective in the next task.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "config_item": { + Type: schema.TypeString, + Required: true, + Description: "Configuration items.", + }, + "config_value": { + Type: schema.TypeString, + Required: true, + Description: "Configuration values.", + }, + }, + }, + }, + + "max_concurrency": { + Type: schema.TypeInt, + Optional: true, + Description: "The number of concurrent tasks is 5 by default.", + }, + + "network_config_names": { + Type: schema.TypeSet, + Optional: true, + Description: "Network configuration name.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + + "public_domain": { + Type: schema.TypeString, + Optional: true, + Description: "Customized mirror domain name.", + }, + + "registry_id": { + Type: schema.TypeString, + Optional: true, + Description: "Custom image instance ID.", + }, + + "frame_type": { + Type: schema.TypeString, + Optional: true, + Description: "The framework type of the AI type resource group, machine-learning, python, spark-ml, if not filled in, the default is machine-learning.", + }, + + "image_type": { + Type: schema.TypeString, + Optional: true, + Description: "Image type, build-in: built-in, custom: custom, if not filled in, the default is build-in.", + }, + + "image_name": { + Type: schema.TypeString, + Optional: true, + Description: "Image name.\nmachine-learning: pytorch-v2.5.1, scikit-learn-v1.6.0, tensorflow-v2.18.0\nspark-ml: Standard-S 1.1\npython: python-v3.10.", + }, + + "image_version": { + Type: schema.TypeString, + Optional: true, + Description: "Image ID.", + }, + + "size": { + Type: schema.TypeInt, + Optional: true, + Description: "The AI resource group is valid, and the upper limit of available resources in the resource group must be less than the upper limit of engine resources.", + }, + + "resource_group_scene": { + Type: schema.TypeString, + Optional: true, + Description: "Resource group scenario.", + }, + + "region_name": { + Type: schema.TypeString, + Optional: true, + Description: "Custom image location.", + }, + + "python_cu_spec": { + Type: schema.TypeString, + Optional: true, + Description: "The resource limit for a Python stand-alone node in a Python resource group must be smaller than the resource limit for the resource group. Small: 1cu Medium: 2cu Large: 4cu Xlarge: 8cu 4xlarge: 16cu 8xlarge: 32cu 16xlarge: 64cu. If the resource type is high memory, add m before the type.", + }, + + "spark_spec_mode": { + Type: schema.TypeString, + Optional: true, + Description: "Only SQL resource group resource configuration mode, fast: fast mode, custom: custom mode.", + }, + + "spark_size": { + Type: schema.TypeInt, + Optional: true, + Description: "Only the SQL resource group resource limit, only used for the express module.", + }, + + // computed + "engine_resource_group_id": { + Type: schema.TypeString, + Computed: true, + Description: "Standard engine resource group ID.", + }, + }, + } +} + +func resourceTencentCloudDlcStandardEngineResourceGroupCreate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_standard_engine_resource_group.create")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewCreateStandardEngineResourceGroupRequest() + engineResourceGroupName string + ) + + if v, ok := d.GetOk("engine_resource_group_name"); ok { + request.EngineResourceGroupName = helper.String(v.(string)) + engineResourceGroupName = v.(string) + } + + if v, ok := d.GetOk("data_engine_name"); ok { + request.DataEngineName = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("auto_launch"); ok { + request.AutoLaunch = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOkExists("auto_pause"); ok { + request.AutoPause = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOk("driver_cu_spec"); ok { + request.DriverCuSpec = helper.String(v.(string)) + } + + if v, ok := d.GetOk("executor_cu_spec"); ok { + request.ExecutorCuSpec = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("min_executor_nums"); ok { + request.MinExecutorNums = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOkExists("max_executor_nums"); ok { + request.MaxExecutorNums = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOkExists("auto_pause_time"); ok { + request.AutoPauseTime = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOk("static_config_pairs"); ok { + for _, item := range v.([]interface{}) { + staticConfigPairsMap := item.(map[string]interface{}) + engineResourceGroupConfigPair := dlcv20210125.EngineResourceGroupConfigPair{} + if v, ok := staticConfigPairsMap["config_item"].(string); ok && v != "" { + engineResourceGroupConfigPair.ConfigItem = helper.String(v) + } + + if v, ok := staticConfigPairsMap["config_value"].(string); ok && v != "" { + engineResourceGroupConfigPair.ConfigValue = helper.String(v) + } + + request.StaticConfigPairs = append(request.StaticConfigPairs, &engineResourceGroupConfigPair) + } + } + + if v, ok := d.GetOk("dynamic_config_pairs"); ok { + for _, item := range v.([]interface{}) { + dynamicConfigPairsMap := item.(map[string]interface{}) + engineResourceGroupConfigPair := dlcv20210125.EngineResourceGroupConfigPair{} + if v, ok := dynamicConfigPairsMap["config_item"].(string); ok && v != "" { + engineResourceGroupConfigPair.ConfigItem = helper.String(v) + } + + if v, ok := dynamicConfigPairsMap["config_value"].(string); ok && v != "" { + engineResourceGroupConfigPair.ConfigValue = helper.String(v) + } + + request.DynamicConfigPairs = append(request.DynamicConfigPairs, &engineResourceGroupConfigPair) + } + } + + if v, ok := d.GetOkExists("max_concurrency"); ok { + request.MaxConcurrency = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOk("network_config_names"); ok { + networkConfigNamesSet := v.(*schema.Set).List() + for i := range networkConfigNamesSet { + if networkConfigNames, ok := networkConfigNamesSet[i].(string); ok && networkConfigNames != "" { + request.NetworkConfigNames = append(request.NetworkConfigNames, helper.String(networkConfigNames)) + } + } + } + + if v, ok := d.GetOk("public_domain"); ok { + request.PublicDomain = helper.String(v.(string)) + } + + if v, ok := d.GetOk("registry_id"); ok { + request.RegistryId = helper.String(v.(string)) + } + + if v, ok := d.GetOk("frame_type"); ok { + request.FrameType = helper.String(v.(string)) + } + + if v, ok := d.GetOk("image_type"); ok { + request.ImageType = helper.String(v.(string)) + } + + if v, ok := d.GetOk("image_name"); ok { + request.ImageName = helper.String(v.(string)) + } + + if v, ok := d.GetOk("image_version"); ok { + request.ImageVersion = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("size"); ok { + request.Size = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOk("resource_group_scene"); ok { + request.ResourceGroupScene = helper.String(v.(string)) + } + + if v, ok := d.GetOk("region_name"); ok { + request.RegionName = helper.String(v.(string)) + } + + if v, ok := d.GetOk("python_cu_spec"); ok { + request.PythonCuSpec = helper.String(v.(string)) + } + + if v, ok := d.GetOk("spark_spec_mode"); ok { + request.SparkSpecMode = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("spark_size"); ok { + request.SparkSize = helper.IntInt64(v.(int)) + } + + request.IsLaunchNow = helper.IntInt64(0) + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().CreateStandardEngineResourceGroupWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Create dlc standard engine resource group failed, Response is nil.")) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s create dlc standard engine resource group failed, reason:%+v", logId, reqErr) + return reqErr + } + + d.SetId(engineResourceGroupName) + + // wait + waitErr := resource.Retry(tccommon.WriteRetryTimeout*4, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, &dlcv20210125.DescribeStandardEngineResourceGroupsRequest{ + Filters: []*dlcv20210125.Filter{ + { + Name: helper.String("engine-resource-group-name-unique"), + Values: helper.Strings([]string{engineResourceGroupName}), + }, + }, + }) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe dlc standard engine resource groups failed, Response is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) + } + + if len(result.Response.UserEngineResourceGroupInfos) != 1 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not 1.")) + } + + state := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState + if state != nil { + if *state == 2 { + return nil + } + } else { + return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) + } + + return resource.RetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not ready, state:%d", *state)) + }) + + if waitErr != nil { + log.Printf("[CRITAL]%s wait for dlc standard engine resource group failed, reason:%+v", logId, waitErr) + return waitErr + } + + return resourceTencentCloudDlcStandardEngineResourceGroupRead(d, meta) +} + +func resourceTencentCloudDlcStandardEngineResourceGroupRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_standard_engine_resource_group.read")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + service = DlcService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + engineResourceGroupName = d.Id() + ) + + respData, err := service.DescribeDlcStandardEngineResourceGroupById(ctx, engineResourceGroupName) + if err != nil { + return err + } + + if respData == nil { + log.Printf("[WARN]%s resource `tencentcloud_dlc_standard_engine_resource_group` [%s] not found, please check if it has been deleted.\n", logId, d.Id()) + d.SetId("") + return nil + } + + if respData.EngineResourceGroupName != nil { + d.Set("engine_resource_group_name", respData.EngineResourceGroupName) + } + + if respData.DataEngineName != nil { + d.Set("data_engine_name", respData.DataEngineName) + } + + if respData.AutoLaunch != nil { + d.Set("auto_launch", respData.AutoLaunch) + } + + if respData.AutoPause != nil { + d.Set("auto_pause", respData.AutoPause) + } + + if respData.DriverCuSpec != nil { + d.Set("driver_cu_spec", respData.DriverCuSpec) + } + + if respData.ExecutorCuSpec != nil { + d.Set("executor_cu_spec", respData.ExecutorCuSpec) + } + + if respData.MinExecutorNums != nil { + d.Set("min_executor_nums", respData.MinExecutorNums) + } + + if respData.MaxExecutorNums != nil { + d.Set("max_executor_nums", respData.MaxExecutorNums) + } + + if respData.AutoPauseTime != nil { + d.Set("auto_pause_time", respData.AutoPauseTime) + } + + if respData.MaxConcurrency != nil { + d.Set("max_concurrency", respData.MaxConcurrency) + } + + if respData.NetworkConfigNames != nil { + d.Set("network_config_names", respData.NetworkConfigNames) + } + + if respData.PublicDomain != nil { + d.Set("public_domain", respData.PublicDomain) + } + + if respData.RegistryId != nil { + d.Set("registry_id", respData.RegistryId) + } + + if respData.FrameType != nil { + d.Set("frame_type", respData.FrameType) + } + + if respData.ImageType != nil { + d.Set("image_type", respData.ImageType) + } + + if respData.ImageName != nil { + d.Set("image_name", respData.ImageName) + } + + if respData.ImageVersion != nil { + d.Set("image_version", respData.ImageVersion) + } + + if respData.Size != nil { + d.Set("size", respData.Size) + } + + if respData.ResourceGroupScene != nil { + d.Set("resource_group_scene", respData.ResourceGroupScene) + } + + if respData.RegionName != nil { + d.Set("region_name", respData.RegionName) + } + + if respData.PythonCuSpec != nil { + d.Set("python_cu_spec", respData.PythonCuSpec) + } + + if respData.SparkSpecMode != nil { + d.Set("spark_spec_mode", respData.SparkSpecMode) + } + + if respData.SparkSize != nil { + d.Set("spark_size", respData.SparkSize) + } + + if respData.EngineResourceGroupId != nil { + d.Set("engine_resource_group_id", respData.EngineResourceGroupId) + } + + return nil +} + +func resourceTencentCloudDlcStandardEngineResourceGroupUpdate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_standard_engine_resource_group.update")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + engineResourceGroupName = d.Id() + ) + + immutableArgs := []string{"engine_resource_group_name", "data_engine_name", "auto_launch", "auto_pause", "auto_pause_time", "static_config_pairs", "dynamic_config_pairs", "max_concurrency", "resource_group_scene"} + for _, v := range immutableArgs { + if d.HasChange(v) { + return fmt.Errorf("argument `%s` cannot be changed", v) + } + } + + needChange := false + mutableArgs := []string{"driver_cu_spec", "executor_cu_spec", "min_executor_nums", "max_executor_nums", "size", "image_type", "image_name", "image_version", "frame_type", "public_domain", "registry_id", "region_name", "python_cu_spec", "spark_spec_mode", "spark_size"} + for _, v := range mutableArgs { + if d.HasChange(v) { + needChange = true + break + } + } + + if needChange { + request := dlcv20210125.NewUpdateStandardEngineResourceGroupResourceInfoRequest() + if v, ok := d.GetOk("driver_cu_spec"); ok { + request.DriverCuSpec = helper.String(v.(string)) + } + + if v, ok := d.GetOk("executor_cu_spec"); ok { + request.ExecutorCuSpec = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("min_executor_nums"); ok { + request.MinExecutorNums = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOkExists("max_executor_nums"); ok { + request.MaxExecutorNums = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOkExists("is_effective_now"); ok { + request.IsEffectiveNow = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOkExists("size"); ok { + request.Size = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOk("image_type"); ok { + request.ImageType = helper.String(v.(string)) + } + + if v, ok := d.GetOk("image_name"); ok { + request.ImageName = helper.String(v.(string)) + } + + if v, ok := d.GetOk("image_version"); ok { + request.ImageVersion = helper.String(v.(string)) + } + + if v, ok := d.GetOk("frame_type"); ok { + request.FrameType = helper.String(v.(string)) + } + + if v, ok := d.GetOk("public_domain"); ok { + request.PublicDomain = helper.String(v.(string)) + } + + if v, ok := d.GetOk("registry_id"); ok { + request.RegistryId = helper.String(v.(string)) + } + + if v, ok := d.GetOk("region_name"); ok { + request.RegionName = helper.String(v.(string)) + } + + if v, ok := d.GetOk("python_cu_spec"); ok { + request.PythonCuSpec = helper.String(v.(string)) + } + + if v, ok := d.GetOk("spark_spec_mode"); ok { + request.SparkSpecMode = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("spark_size"); ok { + request.SparkSize = helper.IntInt64(v.(int)) + } + + request.EngineResourceGroupName = &engineResourceGroupName + request.IsEffectiveNow = helper.Int64(0) + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateStandardEngineResourceGroupResourceInfoWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s update dlc standard engine resource group failed, reason:%+v", logId, reqErr) + return reqErr + } + + // wait + waitErr := resource.Retry(tccommon.WriteRetryTimeout*4, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, &dlcv20210125.DescribeStandardEngineResourceGroupsRequest{ + Filters: []*dlcv20210125.Filter{ + { + Name: helper.String("engine-resource-group-name-unique"), + Values: helper.Strings([]string{engineResourceGroupName}), + }, + }, + }) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe dlc standard engine resource groups failed, Response is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) + } + + if len(result.Response.UserEngineResourceGroupInfos) != 1 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not 1.")) + } + + state := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState + if state != nil { + if *state == 2 { + return nil + } + } else { + return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) + } + + return resource.RetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not ready, state:%d", *state)) + }) + + if waitErr != nil { + log.Printf("[CRITAL]%s wait for dlc standard engine resource group failed, reason:%+v", logId, waitErr) + return waitErr + } + } + + if d.HasChange("network_config_names") { + request := dlcv20210125.NewUpdateEngineResourceGroupNetworkConfigInfoRequest() + if v, ok := d.GetOk("network_config_names"); ok { + networkConfigNamesSet := v.(*schema.Set).List() + for i := range networkConfigNamesSet { + if networkConfigNames, ok := networkConfigNamesSet[i].(string); ok && networkConfigNames != "" { + request.NetworkConfigNames = append(request.NetworkConfigNames, helper.String(networkConfigNames)) + } + } + } + + engineResourceGroupId := d.Get("engine_resource_group_id").(string) + request.EngineResourceGroupId = &engineResourceGroupId + request.IsEffectiveNow = helper.Int64(0) + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateEngineResourceGroupNetworkConfigInfoWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s update dlc standard engine resource group network config names failed, reason:%+v", logId, reqErr) + return reqErr + } + + // wait + waitErr := resource.Retry(tccommon.WriteRetryTimeout*4, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, &dlcv20210125.DescribeStandardEngineResourceGroupsRequest{ + Filters: []*dlcv20210125.Filter{ + { + Name: helper.String("engine-resource-group-name-unique"), + Values: helper.Strings([]string{engineResourceGroupName}), + }, + }, + }) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe dlc standard engine resource groups failed, Response is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) + } + + if len(result.Response.UserEngineResourceGroupInfos) != 1 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not 1.")) + } + + state := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState + if state != nil { + if *state == 2 { + return nil + } + } else { + return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) + } + + return resource.RetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not ready, state:%d", *state)) + }) + + if waitErr != nil { + log.Printf("[CRITAL]%s wait for dlc standard engine resource group failed, reason:%+v", logId, waitErr) + return waitErr + } + } + + return resourceTencentCloudDlcStandardEngineResourceGroupRead(d, meta) +} + +func resourceTencentCloudDlcStandardEngineResourceGroupDelete(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_standard_engine_resource_group.delete")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewDeleteStandardEngineResourceGroupRequest() + engineResourceGroupName = d.Id() + ) + + request.EngineResourceGroupName = &engineResourceGroupName + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DeleteStandardEngineResourceGroupWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s delete dlc standard engine resource group failed, reason:%+v", logId, reqErr) + return reqErr + } + + return nil +} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md new file mode 100644 index 0000000000..0eee5c9a41 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md @@ -0,0 +1,50 @@ +Provides a resource to create a DLC standard engine resource group + +~> **NOTE:** If you are creating a machine learning resource group for the first time, you need to contact DLC product for whitelisting. + +Example Usage + +Only SQL analysis resource group + +```hcl +resource "tencentcloud_dlc_standard_engine_resource_group" "example" { + engine_resource_group_name = "tf-example" + data_engine_name = "tf-engine" + auto_launch = 0 + auto_pause = 0 + is_launch_now = 1 + auto_pause_time = 10 + static_config_pairs { + config_item = "key" + config_value = "value" + } + + dynamic_config_pairs { + config_item = "key" + config_value = "value" + } + max_concurrency = 5 + resource_group_scene = "SparkSQL" + spark_spec_mode = "fast" + spark_size = 16 +} +``` + +Machine learning resource group + +```hcl +resource "tencentcloud_dlc_standard_engine_resource_group" "example" { + engine_resource_group_name = "tf-example" + data_engine_name = "tf-engine" + max_concurrency = 5 + resource_group_scene = "Artificial-Intelligence" + spark_spec_mode = "fast" + spark_size = 16 + frame_type = "machine-learning" + size = 16 + python_cu_spec = "large" + image_type = "built-in" + image_version = "97319759-0b80-48b4-a7a7-436d9ef3b666" + image_name = "pytorch-v2.5.1" +} +``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go new file mode 100644 index 0000000000..c81ddea5b4 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go @@ -0,0 +1,37 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcStandardEngineResourceGroupResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{{ + Config: testAccDlcStandardEngineResourceGroup, + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.dlc_standard_engine_resource_group", "id")), + }, { + ResourceName: "tencentcloud_dlc_standard_engine_resource_group.dlc_standard_engine_resource_group", + ImportState: true, + ImportStateVerify: true, + }}, + }) +} + +const testAccDlcStandardEngineResourceGroup = ` + +resource "tencentcloud_dlc_standard_engine_resource_group" "dlc_standard_engine_resource_group" { + static_config_pairs = { + } + dynamic_config_pairs = { + } +} +` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go deleted file mode 100644 index 07da74858c..0000000000 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.go +++ /dev/null @@ -1,141 +0,0 @@ -package dlc - -import ( - "context" - "fmt" - "log" - - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" - - tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" - "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" -) - -func ResourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperation() *schema.Resource { - return &schema.Resource{ - Create: resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationCreate, - Read: resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationRead, - Delete: resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationDelete, - Schema: map[string]*schema.Schema{ - "engine_resource_group_id": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - Description: "Engine resource group ID.", - }, - - "network_config_names": { - Type: schema.TypeSet, - Optional: true, - ForceNew: true, - Description: "A collection of network configuration names bound to the resource group.", - Elem: &schema.Schema{ - Type: schema.TypeString, - }, - }, - }, - } -} - -func resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationCreate(d *schema.ResourceData, meta interface{}) error { - defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_engine_resource_group_network_config_information_operation.create")() - defer tccommon.InconsistentCheck(d, meta)() - - var ( - logId = tccommon.GetLogId(tccommon.ContextNil) - ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) - request = dlcv20210125.NewUpdateEngineResourceGroupNetworkConfigInfoRequest() - engineResourceGroupId string - ) - - if v, ok := d.GetOk("engine_resource_group_id"); ok { - request.EngineResourceGroupId = helper.String(v.(string)) - engineResourceGroupId = v.(string) - } - - if v, ok := d.GetOk("network_config_names"); ok { - networkConfigNamesSet := v.(*schema.Set).List() - for i := range networkConfigNamesSet { - networkConfigNames := networkConfigNamesSet[i].(string) - request.NetworkConfigNames = append(request.NetworkConfigNames, helper.String(networkConfigNames)) - } - } - - request.IsEffectiveNow = helper.IntInt64(0) - reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { - result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateEngineResourceGroupNetworkConfigInfoWithContext(ctx, request) - if e != nil { - return tccommon.RetryError(e) - } else { - log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) - } - - return nil - }) - - if reqErr != nil { - log.Printf("[CRITAL]%s create dlc update engine resource group network config information operation failed, reason:%+v", logId, reqErr) - return reqErr - } - - d.SetId(engineResourceGroupId) - - // wait - waitReq := dlcv20210125.NewDescribeStandardEngineResourceGroupsRequest() - waitReq.Filters = []*dlcv20210125.Filter{ - { - Name: helper.String("engine-resource-group-id"), - Values: helper.Strings([]string{engineResourceGroupId}), - }, - } - reqErr = resource.Retry(tccommon.ReadRetryTimeout*7, func() *resource.RetryError { - result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, waitReq) - if e != nil { - return tccommon.RetryError(e) - } else { - log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) - } - - if result == nil || result.Response == nil { - return resource.NonRetryableError(fmt.Errorf("Describe standard engine resource groups failed, Response is nil.")) - } - - if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { - return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) - } - - if result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState == nil { - return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) - } - - resourceGroupState := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState - if *resourceGroupState == 2 { - return nil - } - - return resource.RetryableError(fmt.Errorf("ResourceGroupState is not running, current state is %d...", *resourceGroupState)) - }) - - if reqErr != nil { - log.Printf("[CRITAL]%s describe standard engine resource groups failed,, reason:%+v", logId, reqErr) - return reqErr - } - - return resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationRead(d, meta) -} - -func resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationRead(d *schema.ResourceData, meta interface{}) error { - defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_engine_resource_group_network_config_information_operation.read")() - defer tccommon.InconsistentCheck(d, meta)() - - return nil -} - -func resourceTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationDelete(d *schema.ResourceData, meta interface{}) error { - defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_engine_resource_group_network_config_information_operation.delete")() - defer tccommon.InconsistentCheck(d, meta)() - - return nil -} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.md b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.md deleted file mode 100644 index f4658c3bed..0000000000 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation.md +++ /dev/null @@ -1,9 +0,0 @@ -Provides a resource to create a DLC update engine resource group network config information operation - -Example Usage - -```hcl -resource "tencentcloud_dlc_update_engine_resource_group_network_config_information_operation" "example" { - engine_resource_group_id = "rg-b6fxxxxxx2a0" -} -``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation_test.go b/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation_test.go deleted file mode 100644 index 8ea2f51d7e..0000000000 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_engine_resource_group_network_config_information_operation_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package dlc_test - -import ( - "testing" - - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - - tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" -) - -func TestAccTencentCloudDlcUpdateEngineResourceGroupNetworkConfigInformationOperationResource_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ - PreCheck: func() { - tcacctest.AccPreCheck(t) - }, - Providers: tcacctest.AccProviders, - Steps: []resource.TestStep{ - { - Config: testAccDlcUpdateEngineResourceGroupNetworkConfigInformationOperation, - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttrSet("tencentcloud_dlc_update_engine_resource_group_network_config_information_operation.example", "id"), - ), - }, - }, - }) -} - -const testAccDlcUpdateEngineResourceGroupNetworkConfigInformationOperation = ` -resource "tencentcloud_dlc_update_engine_resource_group_network_config_information_operation" "example" { - engine_resource_group_id = "rg-b6fxxxxxx2a0" -} -` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go deleted file mode 100644 index f41af1860c..0000000000 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.go +++ /dev/null @@ -1,199 +0,0 @@ -package dlc - -import ( - "context" - "fmt" - "log" - - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" - - tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" - "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" -) - -func ResourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperation() *schema.Resource { - return &schema.Resource{ - Create: resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationCreate, - Read: resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationRead, - Delete: resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationDelete, - Schema: map[string]*schema.Schema{ - "engine_resource_group_name": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - Description: "Engine resource group name.", - }, - - "update_conf_context": { - Type: schema.TypeList, - Required: true, - ForceNew: true, - Description: "Configuration that needs to be updated.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "config_type": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - Description: "Parameter type, optional: StaticConfigType, DynamicConfigType.", - }, - "params": { - Type: schema.TypeList, - Required: true, - Description: "Configuration array of parameters.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "config_item": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Parameter key.", - }, - "config_value": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Parameter value.", - }, - "operate": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Send operations, support: ADD, DELETE, MODIFY.", - }, - }, - }, - }, - }, - }, - }, - }, - } -} - -func resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationCreate(d *schema.ResourceData, meta interface{}) error { - defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation.create")() - defer tccommon.InconsistentCheck(d, meta)() - - var ( - logId = tccommon.GetLogId(tccommon.ContextNil) - ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) - request = dlcv20210125.NewUpdateStandardEngineResourceGroupConfigInfoRequest() - engineResourceGroupName string - ) - - if v, ok := d.GetOk("engine_resource_group_name"); ok { - request.EngineResourceGroupName = helper.String(v.(string)) - engineResourceGroupName = v.(string) - } - - if v, ok := d.GetOk("update_conf_context"); ok { - for _, item := range v.([]interface{}) { - updateConfContextMap := item.(map[string]interface{}) - updateConfContext := dlcv20210125.UpdateConfContext{} - if v, ok := updateConfContextMap["config_type"].(string); ok && v != "" { - updateConfContext.ConfigType = helper.String(v) - } - - if v, ok := updateConfContextMap["params"]; ok { - for _, item := range v.([]interface{}) { - paramsMap := item.(map[string]interface{}) - param := dlcv20210125.Param{} - if v, ok := paramsMap["config_item"].(string); ok && v != "" { - param.ConfigItem = helper.String(v) - } - - if v, ok := paramsMap["config_value"].(string); ok && v != "" { - param.ConfigValue = helper.String(v) - } - - if v, ok := paramsMap["operate"].(string); ok && v != "" { - param.Operate = helper.String(v) - } - - updateConfContext.Params = append(updateConfContext.Params, ¶m) - } - } - - request.UpdateConfContext = append(request.UpdateConfContext, &updateConfContext) - } - } - - request.IsEffectiveNow = helper.IntInt64(0) - reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { - result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateStandardEngineResourceGroupConfigInfoWithContext(ctx, request) - if e != nil { - return tccommon.RetryError(e) - } else { - log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) - } - - return nil - }) - - if reqErr != nil { - log.Printf("[CRITAL]%s create dlc update standard engine resource group config information operation failed, reason:%+v", logId, reqErr) - return reqErr - } - - d.SetId(engineResourceGroupName) - - // wait - waitReq := dlcv20210125.NewDescribeStandardEngineResourceGroupsRequest() - waitReq.Filters = []*dlcv20210125.Filter{ - { - Name: helper.String("engine-resource-group-name-unique"), - Values: helper.Strings([]string{engineResourceGroupName}), - }, - } - reqErr = resource.Retry(tccommon.ReadRetryTimeout*7, func() *resource.RetryError { - result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, waitReq) - if e != nil { - return tccommon.RetryError(e) - } else { - log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) - } - - if result == nil || result.Response == nil { - return resource.NonRetryableError(fmt.Errorf("Describe standard engine resource groups failed, Response is nil.")) - } - - if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { - return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) - } - - if result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState == nil { - return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) - } - - resourceGroupState := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState - if *resourceGroupState == 2 { - return nil - } - - return resource.RetryableError(fmt.Errorf("ResourceGroupState is not running, current state is %d...", *resourceGroupState)) - }) - - if reqErr != nil { - log.Printf("[CRITAL]%s describe standard engine resource groups failed,, reason:%+v", logId, reqErr) - return reqErr - } - - return resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationRead(d, meta) -} - -func resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationRead(d *schema.ResourceData, meta interface{}) error { - defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation.read")() - defer tccommon.InconsistentCheck(d, meta)() - - return nil -} - -func resourceTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationDelete(d *schema.ResourceData, meta interface{}) error { - defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation.delete")() - defer tccommon.InconsistentCheck(d, meta)() - - return nil -} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.md b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.md deleted file mode 100644 index 4726464c57..0000000000 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation.md +++ /dev/null @@ -1,17 +0,0 @@ -Provides a resource to create a DLC update standard engine resource group config information operation - -Example Usage - -```hcl -resource "tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation" "example" { - engine_resource_group_name = "tf-example" - update_conf_context { - config_type = "StaticConfigType" - params { - config_item = "spark.sql.shuffle.partitions" - config_value = "300" - operate = "ADD" - } - } -} -``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation_test.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation_test.go deleted file mode 100644 index 77c1a0964d..0000000000 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_config_information_operation_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package dlc_test - -import ( - "testing" - - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - - tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" -) - -func TestAccTencentCloudDlcUpdateStandardEngineResourceGroupConfigInformationOperationResource_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ - PreCheck: func() { - tcacctest.AccPreCheck(t) - }, - Providers: tcacctest.AccProviders, - Steps: []resource.TestStep{ - { - Config: testAccDlcUpdateStandardEngineResourceGroupConfigInformationOperation, - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttrSet("tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation.example", "id"), - ), - }, - }, - }) -} - -const testAccDlcUpdateStandardEngineResourceGroupConfigInformationOperation = ` -resource "tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation" "example" { - engine_resource_group_name = "tf-example" - update_conf_context { - config_type = "StaticConfigType" - params { - config_item = "spark.sql.shuffle.partitions" - config_value = "300" - operate = "ADD" - } - } -} -` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go deleted file mode 100644 index 0d15fbd35c..0000000000 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.go +++ /dev/null @@ -1,288 +0,0 @@ -package dlc - -import ( - "context" - "fmt" - "log" - - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" - - tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" - "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" -) - -func ResourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperation() *schema.Resource { - return &schema.Resource{ - Create: resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationCreate, - Read: resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationRead, - Delete: resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationDelete, - Schema: map[string]*schema.Schema{ - "engine_resource_group_name": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - Description: "Engine resource group name.", - }, - - "driver_cu_spec": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Driver CU specifications:\nCurrently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory).", - }, - - "executor_cu_spec": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Executor CU specifications:\nCurrently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory).", - }, - - "min_executor_nums": { - Type: schema.TypeInt, - Optional: true, - ForceNew: true, - Description: "Minimum number of executors.", - }, - - "max_executor_nums": { - Type: schema.TypeInt, - Optional: true, - ForceNew: true, - Description: "Maximum number of executors.", - }, - - "size": { - Type: schema.TypeInt, - Optional: true, - ForceNew: true, - Description: "AI resource group resource limit.", - }, - - "image_type": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Image type, built-in image: built-in, custom image: custom.", - }, - - "image_name": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Image name.", - }, - - "image_version": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Image version, image id.", - }, - - "frame_type": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Framework Type.", - }, - - "public_domain": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Customized mirror domain name.", - }, - - "registry_id": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Custom image instance id.", - }, - - "region_name": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Customize the image region.", - }, - - "python_cu_spec": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "The resource limit for a Python stand-alone node in a Python resource group must be smaller than the resource limit for the resource group. Small: 1cu Medium: 2cu Large: 4cu Xlarge: 8cu 4xlarge: 16cu 8xlarge: 32cu 16xlarge: 64cu. If the resource type is high memory, add m before the type.", - }, - - "spark_spec_mode": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Only SQL resource group resource configuration mode, fast: fast mode, custom: custom mode.", - }, - - "spark_size": { - Type: schema.TypeInt, - Optional: true, - ForceNew: true, - Description: "SQL resource group resource limit only, only used in fast mode.", - }, - }, - } -} - -func resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationCreate(d *schema.ResourceData, meta interface{}) error { - defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation.create")() - defer tccommon.InconsistentCheck(d, meta)() - - var ( - logId = tccommon.GetLogId(tccommon.ContextNil) - ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) - request = dlcv20210125.NewUpdateStandardEngineResourceGroupResourceInfoRequest() - engineResourceGroupName string - ) - - if v, ok := d.GetOk("engine_resource_group_name"); ok { - request.EngineResourceGroupName = helper.String(v.(string)) - engineResourceGroupName = v.(string) - } - - if v, ok := d.GetOk("driver_cu_spec"); ok { - request.DriverCuSpec = helper.String(v.(string)) - } - - if v, ok := d.GetOk("executor_cu_spec"); ok { - request.ExecutorCuSpec = helper.String(v.(string)) - } - - if v, ok := d.GetOkExists("min_executor_nums"); ok { - request.MinExecutorNums = helper.IntInt64(v.(int)) - } - - if v, ok := d.GetOkExists("max_executor_nums"); ok { - request.MaxExecutorNums = helper.IntInt64(v.(int)) - } - - if v, ok := d.GetOkExists("size"); ok { - request.Size = helper.IntInt64(v.(int)) - } - - if v, ok := d.GetOk("image_type"); ok { - request.ImageType = helper.String(v.(string)) - } - - if v, ok := d.GetOk("image_name"); ok { - request.ImageName = helper.String(v.(string)) - } - - if v, ok := d.GetOk("image_version"); ok { - request.ImageVersion = helper.String(v.(string)) - } - - if v, ok := d.GetOk("frame_type"); ok { - request.FrameType = helper.String(v.(string)) - } - - if v, ok := d.GetOk("public_domain"); ok { - request.PublicDomain = helper.String(v.(string)) - } - - if v, ok := d.GetOk("registry_id"); ok { - request.RegistryId = helper.String(v.(string)) - } - - if v, ok := d.GetOk("region_name"); ok { - request.RegionName = helper.String(v.(string)) - } - - if v, ok := d.GetOk("python_cu_spec"); ok { - request.PythonCuSpec = helper.String(v.(string)) - } - - if v, ok := d.GetOk("spark_spec_mode"); ok { - request.SparkSpecMode = helper.String(v.(string)) - } - - if v, ok := d.GetOkExists("spark_size"); ok { - request.SparkSize = helper.IntInt64(v.(int)) - } - - request.IsEffectiveNow = helper.IntInt64(0) - reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { - result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateStandardEngineResourceGroupResourceInfoWithContext(ctx, request) - if e != nil { - return tccommon.RetryError(e) - } else { - log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) - } - - return nil - }) - - if reqErr != nil { - log.Printf("[CRITAL]%s create dlc update standard engine resource group resource information operation failed, reason:%+v", logId, reqErr) - return reqErr - } - - d.SetId(engineResourceGroupName) - - // wait - waitReq := dlcv20210125.NewDescribeStandardEngineResourceGroupsRequest() - waitReq.Filters = []*dlcv20210125.Filter{ - { - Name: helper.String("engine-resource-group-name-unique"), - Values: helper.Strings([]string{engineResourceGroupName}), - }, - } - reqErr = resource.Retry(tccommon.ReadRetryTimeout*7, func() *resource.RetryError { - result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, waitReq) - if e != nil { - return tccommon.RetryError(e) - } else { - log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) - } - - if result == nil || result.Response == nil { - return resource.NonRetryableError(fmt.Errorf("Describe standard engine resource groups failed, Response is nil.")) - } - - if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { - return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) - } - - if result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState == nil { - return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) - } - - resourceGroupState := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState - if *resourceGroupState == 2 { - return nil - } - - return resource.RetryableError(fmt.Errorf("ResourceGroupState is not running, current state is %d...", *resourceGroupState)) - }) - - if reqErr != nil { - log.Printf("[CRITAL]%s describe standard engine resource groups failed,, reason:%+v", logId, reqErr) - return reqErr - } - - return resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationRead(d, meta) -} - -func resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationRead(d *schema.ResourceData, meta interface{}) error { - defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation.read")() - defer tccommon.InconsistentCheck(d, meta)() - - return nil -} - -func resourceTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationDelete(d *schema.ResourceData, meta interface{}) error { - defer tccommon.LogElapsed("resource.tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation.delete")() - defer tccommon.InconsistentCheck(d, meta)() - - return nil -} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.md b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.md deleted file mode 100644 index e0981f9341..0000000000 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation.md +++ /dev/null @@ -1,9 +0,0 @@ -Provides a resource to create a DLC update standard engine resource group resource information operation - -Example Usage - -```hcl -resource "tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation" "example" { - engine_resource_group_name = "tf-example" -} -``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation_test.go b/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation_test.go deleted file mode 100644 index 8b5de6224a..0000000000 --- a/tencentcloud/services/dlc/resource_tc_dlc_update_standard_engine_resource_group_resource_information_operation_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package dlc_test - -import ( - "testing" - - "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" - - tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" -) - -func TestAccTencentCloudDlcUpdateStandardEngineResourceGroupResourceInformationOperationResource_basic(t *testing.T) { - t.Parallel() - resource.Test(t, resource.TestCase{ - PreCheck: func() { - tcacctest.AccPreCheck(t) - }, - Providers: tcacctest.AccProviders, - Steps: []resource.TestStep{{ - Config: testAccDlcUpdateStandardEngineResourceGroupResourceInformationOperation, - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttrSet("tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation.example", "id"), - ), - }}, - }) -} - -const testAccDlcUpdateStandardEngineResourceGroupResourceInformationOperation = ` -resource "tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation" "example" { - engine_resource_group_name = "test" -} -` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.go b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.go new file mode 100644 index 0000000000..500976c365 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.go @@ -0,0 +1,217 @@ +package dlc + +import ( + "context" + "fmt" + "log" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func ResourceTencentCloudDlcUserVpcConnection() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudDlcUserVpcConnectionCreate, + Read: resourceTencentCloudDlcUserVpcConnectionRead, + Delete: resourceTencentCloudDlcUserVpcConnectionDelete, + Schema: map[string]*schema.Schema{ + "user_vpc_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "User vpc ID.", + }, + + "user_subnet_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "User subnet ID.", + }, + + "user_vpc_endpoint_name": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "User vpc endpoint name.", + }, + + "engine_network_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Engine network ID.", + }, + + "user_vpc_endpoint_vip": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned.", + }, + + // computed + "user_vpc_endpoint_id": { + Type: schema.TypeString, + Computed: true, + Description: "User endpoint ID.", + }, + }, + } +} + +func resourceTencentCloudDlcUserVpcConnectionCreate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_user_vpc_connection.create")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewCreateUserVpcConnectionRequest() + response = dlcv20210125.NewCreateUserVpcConnectionResponse() + engineNetworkId string + userVpcEndpointId string + ) + + if v, ok := d.GetOk("user_vpc_id"); ok { + request.UserVpcId = helper.String(v.(string)) + } + + if v, ok := d.GetOk("user_subnet_id"); ok { + request.UserSubnetId = helper.String(v.(string)) + } + + if v, ok := d.GetOk("user_vpc_endpoint_name"); ok { + request.UserVpcEndpointName = helper.String(v.(string)) + } + + if v, ok := d.GetOk("engine_network_id"); ok { + request.EngineNetworkId = helper.String(v.(string)) + engineNetworkId = v.(string) + } + + if v, ok := d.GetOk("user_vpc_endpoint_vip"); ok { + request.UserVpcEndpointVip = helper.String(v.(string)) + } + + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().CreateUserVpcConnectionWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Create dlc user vpc connection failed, Response is nil.")) + } + + response = result + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s create dlc user vpc connection failed, reason:%+v", logId, reqErr) + return reqErr + } + + if response.Response.UserVpcEndpointId == nil { + return fmt.Errorf("UserVpcEndpointId is nil.") + } + + userVpcEndpointId = *response.Response.UserVpcEndpointId + d.SetId(strings.Join([]string{engineNetworkId, userVpcEndpointId}, tccommon.FILED_SP)) + return resourceTencentCloudDlcUserVpcConnectionRead(d, meta) +} + +func resourceTencentCloudDlcUserVpcConnectionRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_user_vpc_connection.read")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + service = DlcService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + ) + + idSplit := strings.Split(d.Id(), tccommon.FILED_SP) + if len(idSplit) != 2 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + + engineNetworkId := idSplit[0] + userVpcEndpointId := idSplit[1] + + respData, err := service.DescribeDlcUserVpcConnectionById(ctx, engineNetworkId, userVpcEndpointId) + if err != nil { + return err + } + + if respData == nil { + log.Printf("[WARN]%s resource `tencentcloud_dlc_user_vpc_connection` [%s] not found, please check if it has been deleted.\n", logId, d.Id()) + d.SetId("") + return nil + } + + if respData.UserVpcId != nil { + d.Set("user_vpc_id", respData.UserVpcId) + } + + if respData.UserVpcEndpointName != nil { + d.Set("user_vpc_endpoint_name", respData.UserVpcEndpointName) + } + + if respData.EngineNetworkId != nil { + d.Set("engine_network_id", respData.EngineNetworkId) + } + + if respData.UserVpcEndpointId != nil { + d.Set("user_vpc_endpoint_id", respData.UserVpcEndpointId) + } + + return nil +} + +func resourceTencentCloudDlcUserVpcConnectionDelete(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_user_vpc_connection.delete")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewDeleteUserVpcConnectionRequest() + ) + + idSplit := strings.Split(d.Id(), tccommon.FILED_SP) + if len(idSplit) != 2 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + + engineNetworkId := idSplit[0] + userVpcEndpointId := idSplit[1] + + request.EngineNetworkId = helper.String(engineNetworkId) + request.UserVpcEndpointId = helper.String(userVpcEndpointId) + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DeleteUserVpcConnectionWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s delete dlc user vpc connection failed, reason:%+v", logId, reqErr) + return reqErr + } + + return nil +} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.md b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.md new file mode 100644 index 0000000000..b165a5d8cb --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.md @@ -0,0 +1,12 @@ +Provides a resource to create a DLC user vpc connection + +Example Usage + +```hcl +resource "tencentcloud_dlc_user_vpc_connection" "example" { + user_vpc_id = "vpc-f7fa1fu5" + user_subnet_id = "subnet-ds2t3udw" + user_vpc_endpoint_name = "tf-example" + engine_network_id = "DataEngine-Network-2mfg9icb" +} +``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection_test.go b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection_test.go new file mode 100644 index 0000000000..0c82932230 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection_test.go @@ -0,0 +1,40 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcUserVpcConnectionResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDlcUserVpcConnection, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_dlc_user_vpc_connection.example", "id"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_user_vpc_connection.example", "user_vpc_id"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_user_vpc_connection.example", "user_subnet_id"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_user_vpc_connection.example", "user_vpc_endpoint_name"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_user_vpc_connection.example", "engine_network_id"), + ), + }, + }, + }) +} + +const testAccDlcUserVpcConnection = ` +resource "tencentcloud_dlc_user_vpc_connection" "example" { + user_vpc_id = "vpc-f7fa1fu5" + user_subnet_id = "subnet-ds2t3udw" + user_vpc_endpoint_name = "tf-example" + engine_network_id = "DataEngine-Network-2mfg9icb" +} +` diff --git a/tencentcloud/services/dlc/service_tencentcloud_dlc.go b/tencentcloud/services/dlc/service_tencentcloud_dlc.go index a93bddae51..ee9626022d 100644 --- a/tencentcloud/services/dlc/service_tencentcloud_dlc.go +++ b/tencentcloud/services/dlc/service_tencentcloud_dlc.go @@ -1254,3 +1254,95 @@ func (me *DlcService) DescribeDlcSessionImageVersionByFilter(ctx context.Context ret = response.Response.EngineSessionImages return } + +func (me *DlcService) DescribeDlcUserVpcConnectionById(ctx context.Context, engineNetworkId, userVpcEndpointId string) (ret *dlc.UserVpcConnectionInfo, errRet error) { + logId := tccommon.GetLogId(ctx) + + request := dlc.NewDescribeUserVpcConnectionRequest() + response := dlc.NewDescribeUserVpcConnectionResponse() + request.EngineNetworkId = &engineNetworkId + request.UserVpcEndpointIds = helper.Strings([]string{userVpcEndpointId}) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + errRet = resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + ratelimit.Check(request.GetAction()) + result, e := me.client.UseDlcClient().DescribeUserVpcConnection(request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe dlc user vpc connection failed, Response is nil.")) + } + + response = result + return nil + }) + + if errRet != nil { + log.Printf("[CRITAL]%s describe dlc user vpc connection failed, reason:%+v", logId, errRet) + return + } + + if len(response.Response.UserVpcConnectionInfos) != 1 { + return + } + + ret = response.Response.UserVpcConnectionInfos[0] + return +} + +func (me *DlcService) DescribeDlcStandardEngineResourceGroupById(ctx context.Context, engineResourceGroupName string) (ret *dlc.StandardEngineResourceGroupInfo, errRet error) { + logId := tccommon.GetLogId(ctx) + + request := dlc.NewDescribeStandardEngineResourceGroupsRequest() + response := dlc.NewDescribeStandardEngineResourceGroupsResponse() + request.Filters = []*dlc.Filter{ + { + Name: helper.String("engine-resource-group-name-unique"), + Values: helper.Strings([]string{engineResourceGroupName}), + }, + } + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + errRet = resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + ratelimit.Check(request.GetAction()) + result, e := me.client.UseDlcClient().DescribeStandardEngineResourceGroups(request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe dlc standard engine resource groups failed, Response is nil.")) + } + + response = result + return nil + }) + + if errRet != nil { + log.Printf("[CRITAL]%s describe dlc standard engine resource groups failed, reason:%+v", logId, errRet) + return + } + + if len(response.Response.UserEngineResourceGroupInfos) != 1 { + return + } + + ret = response.Response.UserEngineResourceGroupInfos[0] + return +} diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go index 8e7f55a9f3..2380a297eb 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go @@ -265,7 +265,11 @@ func CompleteCommonParams(request Request, region string, requestClient string) params["Action"] = request.GetAction() params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10) params["Nonce"] = strconv.Itoa(rand.Int()) +<<<<<<< HEAD params["RequestClient"] = "SDK_GO_1.1.31" +======= + params["RequestClient"] = "SDK_GO_1.1.23" +>>>>>>> bb6625576 (add) if requestClient != "" { params["RequestClient"] += ": " + requestClient } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/client.go index 1660a1db64..4ce9debea4 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/client.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/client.go @@ -517,6 +517,74 @@ func (c *Client) AssociateDatasourceHouseWithContext(ctx context.Context, reques return } +func NewAttachDataMaskPolicyRequest() (request *AttachDataMaskPolicyRequest) { + request = &AttachDataMaskPolicyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dlc", APIVersion, "AttachDataMaskPolicy") + + + return +} + +func NewAttachDataMaskPolicyResponse() (response *AttachDataMaskPolicyResponse) { + response = &AttachDataMaskPolicyResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// AttachDataMaskPolicy +// 绑定数据脱敏策略 +// +// 可能返回的错误码: +// FAILEDOPERATION_GETPOLICYFAILED = "FailedOperation.GetPolicyFailed" +// FAILEDOPERATION_GETUSERINFOFAILED = "FailedOperation.GetUserInfoFailed" +// FAILEDOPERATION_GETWORKGROUPINFOFAILED = "FailedOperation.GetWorkGroupInfoFailed" +// FAILEDOPERATION_GRANTPOLICYFAILED = "FailedOperation.GrantPolicyFailed" +// FAILEDOPERATION_REVOKEPOLICYFAILED = "FailedOperation.RevokePolicyFailed" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_INVALIDACCESSPOLICY = "InvalidParameter.InvalidAccessPolicy" +// INVALIDPARAMETER_INVALIDGROUPID = "InvalidParameter.InvalidGroupId" +// UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" +// UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist" +func (c *Client) AttachDataMaskPolicy(request *AttachDataMaskPolicyRequest) (response *AttachDataMaskPolicyResponse, err error) { + return c.AttachDataMaskPolicyWithContext(context.Background(), request) +} + +// AttachDataMaskPolicy +// 绑定数据脱敏策略 +// +// 可能返回的错误码: +// FAILEDOPERATION_GETPOLICYFAILED = "FailedOperation.GetPolicyFailed" +// FAILEDOPERATION_GETUSERINFOFAILED = "FailedOperation.GetUserInfoFailed" +// FAILEDOPERATION_GETWORKGROUPINFOFAILED = "FailedOperation.GetWorkGroupInfoFailed" +// FAILEDOPERATION_GRANTPOLICYFAILED = "FailedOperation.GrantPolicyFailed" +// FAILEDOPERATION_REVOKEPOLICYFAILED = "FailedOperation.RevokePolicyFailed" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_INVALIDACCESSPOLICY = "InvalidParameter.InvalidAccessPolicy" +// INVALIDPARAMETER_INVALIDGROUPID = "InvalidParameter.InvalidGroupId" +// UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" +// UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist" +func (c *Client) AttachDataMaskPolicyWithContext(ctx context.Context, request *AttachDataMaskPolicyRequest) (response *AttachDataMaskPolicyResponse, err error) { + if request == nil { + request = NewAttachDataMaskPolicyRequest() + } + c.InitBaseRequest(&request.BaseRequest, "dlc", APIVersion, "AttachDataMaskPolicy") + + if c.GetCredential() == nil { + return nil, errors.New("AttachDataMaskPolicy require credential") + } + + request.SetContext(ctx) + + response = NewAttachDataMaskPolicyResponse() + err = c.Send(request, response) + return +} + func NewAttachUserPolicyRequest() (request *AttachUserPolicyRequest) { request = &AttachUserPolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -1641,6 +1709,58 @@ func (c *Client) CreateDataEngineWithContext(ctx context.Context, request *Creat return } +func NewCreateDataMaskStrategyRequest() (request *CreateDataMaskStrategyRequest) { + request = &CreateDataMaskStrategyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dlc", APIVersion, "CreateDataMaskStrategy") + + + return +} + +func NewCreateDataMaskStrategyResponse() (response *CreateDataMaskStrategyResponse) { + response = &CreateDataMaskStrategyResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateDataMaskStrategy +// 创建数据脱敏策略 +// +// 可能返回的错误码: +// INTERNALERROR_DBERROR = "InternalError.DBError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) CreateDataMaskStrategy(request *CreateDataMaskStrategyRequest) (response *CreateDataMaskStrategyResponse, err error) { + return c.CreateDataMaskStrategyWithContext(context.Background(), request) +} + +// CreateDataMaskStrategy +// 创建数据脱敏策略 +// +// 可能返回的错误码: +// INTERNALERROR_DBERROR = "InternalError.DBError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) CreateDataMaskStrategyWithContext(ctx context.Context, request *CreateDataMaskStrategyRequest) (response *CreateDataMaskStrategyResponse, err error) { + if request == nil { + request = NewCreateDataMaskStrategyRequest() + } + c.InitBaseRequest(&request.BaseRequest, "dlc", APIVersion, "CreateDataMaskStrategy") + + if c.GetCredential() == nil { + return nil, errors.New("CreateDataMaskStrategy require credential") + } + + request.SetContext(ctx) + + response = NewCreateDataMaskStrategyResponse() + err = c.Send(request, response) + return +} + func NewCreateDatabaseRequest() (request *CreateDatabaseRequest) { request = &CreateDatabaseRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -2271,6 +2391,7 @@ func NewCreateSparkAppResponse() (response *CreateSparkAppResponse) { // INVALIDPARAMETER_INVALIDROLEARN = "InvalidParameter.InvalidRoleArn" // INVALIDPARAMETER_SPARKJOBNOTUNIQUE = "InvalidParameter.SparkJobNotUnique" // INVALIDPARAMETER_SPARKJOBONLYSUPPORTSPARKBATCHENGINE = "InvalidParameter.SparkJobOnlySupportSparkBatchEngine" +// RESOURCEINSUFFICIENT_SPARKJOBINSUFFICIENTRESOURCES = "ResourceInsufficient.SparkJobInsufficientResources" // RESOURCENOTFOUND_DATAENGINENOTFOUND = "ResourceNotFound.DataEngineNotFound" // RESOURCENOTFOUND_SESSIONINSUFFICIENTRESOURCES = "ResourceNotFound.SessionInsufficientResources" func (c *Client) CreateSparkApp(request *CreateSparkAppRequest) (response *CreateSparkAppResponse, err error) { @@ -2290,6 +2411,7 @@ func (c *Client) CreateSparkApp(request *CreateSparkAppRequest) (response *Creat // INVALIDPARAMETER_INVALIDROLEARN = "InvalidParameter.InvalidRoleArn" // INVALIDPARAMETER_SPARKJOBNOTUNIQUE = "InvalidParameter.SparkJobNotUnique" // INVALIDPARAMETER_SPARKJOBONLYSUPPORTSPARKBATCHENGINE = "InvalidParameter.SparkJobOnlySupportSparkBatchEngine" +// RESOURCEINSUFFICIENT_SPARKJOBINSUFFICIENTRESOURCES = "ResourceInsufficient.SparkJobInsufficientResources" // RESOURCENOTFOUND_DATAENGINENOTFOUND = "ResourceNotFound.DataEngineNotFound" // RESOURCENOTFOUND_SESSIONINSUFFICIENTRESOURCES = "ResourceNotFound.SessionInsufficientResources" func (c *Client) CreateSparkAppWithContext(ctx context.Context, request *CreateSparkAppRequest) (response *CreateSparkAppResponse, err error) { @@ -2617,6 +2739,7 @@ func NewCreateSparkSubmitTaskResponse() (response *CreateSparkSubmitTaskResponse // RESOURCENOTFOUND_RESOURCEUSAGEOUTOFLIMIT = "ResourceNotFound.ResourceUsageOutOfLimit" // RESOURCENOTFOUND_SESSIONINSUFFICIENTRESOURCES = "ResourceNotFound.SessionInsufficientResources" // RESOURCENOTFOUND_SHUFFLEDIRNOTFOUND = "ResourceNotFound.ShuffleDirNotFound" +// RESOURCENOTFOUND_SPARKJOBINSUFFICIENTRESOURCES = "ResourceNotFound.SparkJobInsufficientResources" // RESOURCENOTFOUND_WAREHOUSEDIRNOTFOUND = "ResourceNotFound.WarehouseDirNotFound" // RESOURCEUNAVAILABLE = "ResourceUnavailable" // UNAUTHORIZEDOPERATION_USECOMPUTINGENGINE = "UnauthorizedOperation.UseComputingEngine" @@ -2667,6 +2790,7 @@ func (c *Client) CreateSparkSubmitTask(request *CreateSparkSubmitTaskRequest) (r // RESOURCENOTFOUND_RESOURCEUSAGEOUTOFLIMIT = "ResourceNotFound.ResourceUsageOutOfLimit" // RESOURCENOTFOUND_SESSIONINSUFFICIENTRESOURCES = "ResourceNotFound.SessionInsufficientResources" // RESOURCENOTFOUND_SHUFFLEDIRNOTFOUND = "ResourceNotFound.ShuffleDirNotFound" +// RESOURCENOTFOUND_SPARKJOBINSUFFICIENTRESOURCES = "ResourceNotFound.SparkJobInsufficientResources" // RESOURCENOTFOUND_WAREHOUSEDIRNOTFOUND = "ResourceNotFound.WarehouseDirNotFound" // RESOURCEUNAVAILABLE = "ResourceUnavailable" // UNAUTHORIZEDOPERATION_USECOMPUTINGENGINE = "UnauthorizedOperation.UseComputingEngine" @@ -3177,6 +3301,78 @@ func (c *Client) CreateTasksInOrderWithContext(ctx context.Context, request *Cre return } +func NewCreateTcIcebergTableRequest() (request *CreateTcIcebergTableRequest) { + request = &CreateTcIcebergTableRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dlc", APIVersion, "CreateTcIcebergTable") + + + return +} + +func NewCreateTcIcebergTableResponse() (response *CreateTcIcebergTableResponse) { + response = &CreateTcIcebergTableResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateTcIcebergTable +// 创建TIceberg表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDCOLUMNNAMELENGTH = "InvalidParameter.InvalidColumnNameLength" +// INVALIDPARAMETER_INVALIDCOLUMNNUMBER = "InvalidParameter.InvalidColumnNumber" +// INVALIDPARAMETER_INVALIDDECIMALTYPE = "InvalidParameter.InvalidDecimalType" +// INVALIDPARAMETER_INVALIDTABLENAMELENGTH = "InvalidParameter.InvalidTableNameLength" +// INVALIDPARAMETER_PARAMETERNOTFOUNDORBENONE = "InvalidParameter.ParameterNotFoundOrBeNone" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateTcIcebergTable(request *CreateTcIcebergTableRequest) (response *CreateTcIcebergTableResponse, err error) { + return c.CreateTcIcebergTableWithContext(context.Background(), request) +} + +// CreateTcIcebergTable +// 创建TIceberg表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDCOLUMNNAMELENGTH = "InvalidParameter.InvalidColumnNameLength" +// INVALIDPARAMETER_INVALIDCOLUMNNUMBER = "InvalidParameter.InvalidColumnNumber" +// INVALIDPARAMETER_INVALIDDECIMALTYPE = "InvalidParameter.InvalidDecimalType" +// INVALIDPARAMETER_INVALIDTABLENAMELENGTH = "InvalidParameter.InvalidTableNameLength" +// INVALIDPARAMETER_PARAMETERNOTFOUNDORBENONE = "InvalidParameter.ParameterNotFoundOrBeNone" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateTcIcebergTableWithContext(ctx context.Context, request *CreateTcIcebergTableRequest) (response *CreateTcIcebergTableResponse, err error) { + if request == nil { + request = NewCreateTcIcebergTableRequest() + } + c.InitBaseRequest(&request.BaseRequest, "dlc", APIVersion, "CreateTcIcebergTable") + + if c.GetCredential() == nil { + return nil, errors.New("CreateTcIcebergTable require credential") + } + + request.SetContext(ctx) + + response = NewCreateTcIcebergTableResponse() + err = c.Send(request, response) + return +} + func NewCreateUserRequest() (request *CreateUserRequest) { request = &CreateUserRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -3539,6 +3735,58 @@ func (c *Client) DeleteDataEngineWithContext(ctx context.Context, request *Delet return } +func NewDeleteDataMaskStrategyRequest() (request *DeleteDataMaskStrategyRequest) { + request = &DeleteDataMaskStrategyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dlc", APIVersion, "DeleteDataMaskStrategy") + + + return +} + +func NewDeleteDataMaskStrategyResponse() (response *DeleteDataMaskStrategyResponse) { + response = &DeleteDataMaskStrategyResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteDataMaskStrategy +// 删除数据脱敏策略 +// +// 可能返回的错误码: +// INTERNALERROR_DBERROR = "InternalError.DBError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) DeleteDataMaskStrategy(request *DeleteDataMaskStrategyRequest) (response *DeleteDataMaskStrategyResponse, err error) { + return c.DeleteDataMaskStrategyWithContext(context.Background(), request) +} + +// DeleteDataMaskStrategy +// 删除数据脱敏策略 +// +// 可能返回的错误码: +// INTERNALERROR_DBERROR = "InternalError.DBError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) DeleteDataMaskStrategyWithContext(ctx context.Context, request *DeleteDataMaskStrategyRequest) (response *DeleteDataMaskStrategyResponse, err error) { + if request == nil { + request = NewDeleteDataMaskStrategyRequest() + } + c.InitBaseRequest(&request.BaseRequest, "dlc", APIVersion, "DeleteDataMaskStrategy") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteDataMaskStrategy require credential") + } + + request.SetContext(ctx) + + response = NewDeleteDataMaskStrategyResponse() + err = c.Send(request, response) + return +} + func NewDeleteNativeSparkSessionRequest() (request *DeleteNativeSparkSessionRequest) { request = &DeleteNativeSparkSessionRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -5067,6 +5315,58 @@ func (c *Client) DescribeDataEnginesScaleDetailWithContext(ctx context.Context, return } +func NewDescribeDataMaskStrategiesRequest() (request *DescribeDataMaskStrategiesRequest) { + request = &DescribeDataMaskStrategiesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dlc", APIVersion, "DescribeDataMaskStrategies") + + + return +} + +func NewDescribeDataMaskStrategiesResponse() (response *DescribeDataMaskStrategiesResponse) { + response = &DescribeDataMaskStrategiesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DescribeDataMaskStrategies +// 查询数据脱敏列表接口 +// +// 可能返回的错误码: +// INTERNALERROR_DBERROR = "InternalError.DBError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) DescribeDataMaskStrategies(request *DescribeDataMaskStrategiesRequest) (response *DescribeDataMaskStrategiesResponse, err error) { + return c.DescribeDataMaskStrategiesWithContext(context.Background(), request) +} + +// DescribeDataMaskStrategies +// 查询数据脱敏列表接口 +// +// 可能返回的错误码: +// INTERNALERROR_DBERROR = "InternalError.DBError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) DescribeDataMaskStrategiesWithContext(ctx context.Context, request *DescribeDataMaskStrategiesRequest) (response *DescribeDataMaskStrategiesResponse, err error) { + if request == nil { + request = NewDescribeDataMaskStrategiesRequest() + } + c.InitBaseRequest(&request.BaseRequest, "dlc", APIVersion, "DescribeDataMaskStrategies") + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDataMaskStrategies require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDataMaskStrategiesResponse() + err = c.Send(request, response) + return +} + func NewDescribeDatabasesRequest() (request *DescribeDatabasesRequest) { request = &DescribeDatabasesRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -7364,6 +7664,7 @@ func NewDescribeTaskResultResponse() (response *DescribeTaskResultResponse) { // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_HTTPCLIENTDOREQUESTFAILED = "FailedOperation.HttpClientDoRequestFailed" +// FAILEDOPERATION_RESULTEXPIRED = "FailedOperation.ResultExpired" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_INVALIDMAXRESULTS = "InvalidParameter.InvalidMaxResults" @@ -7380,6 +7681,7 @@ func (c *Client) DescribeTaskResult(request *DescribeTaskResultRequest) (respons // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_HTTPCLIENTDOREQUESTFAILED = "FailedOperation.HttpClientDoRequestFailed" +// FAILEDOPERATION_RESULTEXPIRED = "FailedOperation.ResultExpired" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_INVALIDMAXRESULTS = "InvalidParameter.InvalidMaxResults" @@ -7512,6 +7814,7 @@ func NewDescribeTasksAnalysisResponse() (response *DescribeTasksAnalysisResponse // INVALIDPARAMETER_INVALIDFILTERLENGTH = "InvalidParameter.InvalidFilterLength" // INVALIDPARAMETER_INVALIDTIMEFORMAT = "InvalidParameter.InvalidTimeFormat" // INVALIDPARAMETER_PARAMETERBASE64DECODEFAILED = "InvalidParameter.ParameterBase64DecodeFailed" +// INVALIDPARAMETER_PARAMETERILLEGAL = "InvalidParameter.ParameterIllegal" // INVALIDPARAMETER_PARAMETERNOTFOUNDORBENONE = "InvalidParameter.ParameterNotFoundOrBeNone" // INVALIDPARAMETER_SQLTASKFILTERSKEYTYPENOTMATH = "InvalidParameter.SQLTaskFiltersKeyTypeNotMath" // INVALIDPARAMETER_SQLTASKNOTFOUND = "InvalidParameter.SQLTaskNotFound" @@ -7535,6 +7838,7 @@ func (c *Client) DescribeTasksAnalysis(request *DescribeTasksAnalysisRequest) (r // INVALIDPARAMETER_INVALIDFILTERLENGTH = "InvalidParameter.InvalidFilterLength" // INVALIDPARAMETER_INVALIDTIMEFORMAT = "InvalidParameter.InvalidTimeFormat" // INVALIDPARAMETER_PARAMETERBASE64DECODEFAILED = "InvalidParameter.ParameterBase64DecodeFailed" +// INVALIDPARAMETER_PARAMETERILLEGAL = "InvalidParameter.ParameterIllegal" // INVALIDPARAMETER_PARAMETERNOTFOUNDORBENONE = "InvalidParameter.ParameterNotFoundOrBeNone" // INVALIDPARAMETER_SQLTASKFILTERSKEYTYPENOTMATH = "InvalidParameter.SQLTaskFiltersKeyTypeNotMath" // INVALIDPARAMETER_SQLTASKNOTFOUND = "InvalidParameter.SQLTaskNotFound" @@ -7665,6 +7969,7 @@ func NewDescribeTasksOverviewResponse() (response *DescribeTasksOverviewResponse // INTERNALERROR = "InternalError" // INTERNALERROR_DBERROR = "InternalError.DBError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDTASKSFILTERLENGTH = "InvalidParameter.InvalidTasksFilterLength" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribeTasksOverview(request *DescribeTasksOverviewRequest) (response *DescribeTasksOverviewResponse, err error) { return c.DescribeTasksOverviewWithContext(context.Background(), request) @@ -7677,6 +7982,7 @@ func (c *Client) DescribeTasksOverview(request *DescribeTasksOverviewRequest) (r // INTERNALERROR = "InternalError" // INTERNALERROR_DBERROR = "InternalError.DBError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDTASKSFILTERLENGTH = "InvalidParameter.InvalidTasksFilterLength" // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribeTasksOverviewWithContext(ctx context.Context, request *DescribeTasksOverviewRequest) (response *DescribeTasksOverviewResponse, err error) { if request == nil { @@ -7751,6 +8057,58 @@ func (c *Client) DescribeThirdPartyAccessUserWithContext(ctx context.Context, re return } +func NewDescribeUDFPolicyRequest() (request *DescribeUDFPolicyRequest) { + request = &DescribeUDFPolicyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dlc", APIVersion, "DescribeUDFPolicy") + + + return +} + +func NewDescribeUDFPolicyResponse() (response *DescribeUDFPolicyResponse) { + response = &DescribeUDFPolicyResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DescribeUDFPolicy +// 获取UDF权限信息 +// +// 可能返回的错误码: +// FAILEDOPERATION_GETPOLICYFAILED = "FailedOperation.GetPolicyFailed" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) DescribeUDFPolicy(request *DescribeUDFPolicyRequest) (response *DescribeUDFPolicyResponse, err error) { + return c.DescribeUDFPolicyWithContext(context.Background(), request) +} + +// DescribeUDFPolicy +// 获取UDF权限信息 +// +// 可能返回的错误码: +// FAILEDOPERATION_GETPOLICYFAILED = "FailedOperation.GetPolicyFailed" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) DescribeUDFPolicyWithContext(ctx context.Context, request *DescribeUDFPolicyRequest) (response *DescribeUDFPolicyResponse, err error) { + if request == nil { + request = NewDescribeUDFPolicyRequest() + } + c.InitBaseRequest(&request.BaseRequest, "dlc", APIVersion, "DescribeUDFPolicy") + + if c.GetCredential() == nil { + return nil, errors.New("DescribeUDFPolicy require credential") + } + + request.SetContext(ctx) + + response = NewDescribeUDFPolicyResponse() + err = c.Send(request, response) + return +} + func NewDescribeUpdatableDataEnginesRequest() (request *DescribeUpdatableDataEnginesRequest) { request = &DescribeUpdatableDataEnginesRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -10859,6 +11217,58 @@ func (c *Client) UpdateDataEngineConfigWithContext(ctx context.Context, request return } +func NewUpdateDataMaskStrategyRequest() (request *UpdateDataMaskStrategyRequest) { + request = &UpdateDataMaskStrategyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dlc", APIVersion, "UpdateDataMaskStrategy") + + + return +} + +func NewUpdateDataMaskStrategyResponse() (response *UpdateDataMaskStrategyResponse) { + response = &UpdateDataMaskStrategyResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateDataMaskStrategy +// 更新数据脱敏策略 +// +// 可能返回的错误码: +// INTERNALERROR_DBERROR = "InternalError.DBError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) UpdateDataMaskStrategy(request *UpdateDataMaskStrategyRequest) (response *UpdateDataMaskStrategyResponse, err error) { + return c.UpdateDataMaskStrategyWithContext(context.Background(), request) +} + +// UpdateDataMaskStrategy +// 更新数据脱敏策略 +// +// 可能返回的错误码: +// INTERNALERROR_DBERROR = "InternalError.DBError" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) UpdateDataMaskStrategyWithContext(ctx context.Context, request *UpdateDataMaskStrategyRequest) (response *UpdateDataMaskStrategyResponse, err error) { + if request == nil { + request = NewUpdateDataMaskStrategyRequest() + } + c.InitBaseRequest(&request.BaseRequest, "dlc", APIVersion, "UpdateDataMaskStrategy") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateDataMaskStrategy require credential") + } + + request.SetContext(ctx) + + response = NewUpdateDataMaskStrategyResponse() + err = c.Send(request, response) + return +} + func NewUpdateEngineResourceGroupNetworkConfigInfoRequest() (request *UpdateEngineResourceGroupNetworkConfigInfoRequest) { request = &UpdateEngineResourceGroupNetworkConfigInfoRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -11231,6 +11641,60 @@ func (c *Client) UpdateStandardEngineResourceGroupResourceInfoWithContext(ctx co return } +func NewUpdateUDFPolicyRequest() (request *UpdateUDFPolicyRequest) { + request = &UpdateUDFPolicyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dlc", APIVersion, "UpdateUDFPolicy") + + + return +} + +func NewUpdateUDFPolicyResponse() (response *UpdateUDFPolicyResponse) { + response = &UpdateUDFPolicyResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateUDFPolicy +// UDP权限修改 +// +// 可能返回的错误码: +// FAILEDOPERATION_GETPOLICYFAILED = "FailedOperation.GetPolicyFailed" +// FAILEDOPERATION_UPDATEPOLICYFAILED = "FailedOperation.UpdatePolicyFailed" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) UpdateUDFPolicy(request *UpdateUDFPolicyRequest) (response *UpdateUDFPolicyResponse, err error) { + return c.UpdateUDFPolicyWithContext(context.Background(), request) +} + +// UpdateUDFPolicy +// UDP权限修改 +// +// 可能返回的错误码: +// FAILEDOPERATION_GETPOLICYFAILED = "FailedOperation.GetPolicyFailed" +// FAILEDOPERATION_UPDATEPOLICYFAILED = "FailedOperation.UpdatePolicyFailed" +// INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" +func (c *Client) UpdateUDFPolicyWithContext(ctx context.Context, request *UpdateUDFPolicyRequest) (response *UpdateUDFPolicyResponse, err error) { + if request == nil { + request = NewUpdateUDFPolicyRequest() + } + c.InitBaseRequest(&request.BaseRequest, "dlc", APIVersion, "UpdateUDFPolicy") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateUDFPolicy require credential") + } + + request.SetContext(ctx) + + response = NewUpdateUDFPolicyResponse() + err = c.Send(request, response) + return +} + func NewUpdateUserDataEngineConfigRequest() (request *UpdateUserDataEngineConfigRequest) { request = &UpdateUserDataEngineConfigRequest{ BaseRequest: &tchttp.BaseRequest{}, diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/errors.go index 8a9ac2320c..682d022a07 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/errors.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/errors.go @@ -125,6 +125,9 @@ const ( // 退押金失败。 FAILEDOPERATION_REFUNDDEPOSITFAILED = "FailedOperation.RefundDepositFailed" + // 结果过期 + FAILEDOPERATION_RESULTEXPIRED = "FailedOperation.ResultExpired" + // 取消授权失败。 FAILEDOPERATION_REVOKEPOLICYFAILED = "FailedOperation.RevokePolicyFailed" @@ -149,6 +152,9 @@ const ( // 标签数量超出限制。 FAILEDOPERATION_TOOMANYTAGS = "FailedOperation.TooManyTags" + // 更新权限信息失败。 + FAILEDOPERATION_UPDATEPOLICYFAILED = "FailedOperation.UpdatePolicyFailed" + // 内部错误。 INTERNALERROR = "InternalError" @@ -419,6 +425,9 @@ const ( // 任务类型TaskType错误,Spark引擎任务类型为SparkSQLTask,Presto引擎任务类型为SQLTask INVALIDPARAMETER_INVALIDTASKTYPE = "InvalidParameter.InvalidTaskType" + // 任务长度超限 + INVALIDPARAMETER_INVALIDTASKSFILTERLENGTH = "InvalidParameter.InvalidTasksFilterLength" + // 指定的TCR Spark镜像格式不匹配,参考样例: my-image/ndf/python/latest INVALIDPARAMETER_INVALIDTCRSPARKIMAGEFORMAT = "InvalidParameter.InvalidTcrSparkImageFormat" @@ -458,6 +467,9 @@ const ( // 指定参数Base64解析失败 INVALIDPARAMETER_PARAMETERBASE64DECODEFAILED = "InvalidParameter.ParameterBase64DecodeFailed" + // 传入参数不合法 + INVALIDPARAMETER_PARAMETERILLEGAL = "InvalidParameter.ParameterIllegal" + // 找不到参数或参数为空 INVALIDPARAMETER_PARAMETERNOTFOUNDORBENONE = "InvalidParameter.ParameterNotFoundOrBeNone" @@ -623,6 +635,9 @@ const ( // 找不到Spark Shuffle存储路径,请到控制台->数据探索页面->存储配置中设置 RESOURCENOTFOUND_SHUFFLEDIRNOTFOUND = "ResourceNotFound.ShuffleDirNotFound" + // 任务资源不足,请调整driver或executor指定规格大小 + RESOURCENOTFOUND_SPARKJOBINSUFFICIENTRESOURCES = "ResourceNotFound.SparkJobInsufficientResources" + // 表不存在,请重试,或者提交工单联系我们 RESOURCENOTFOUND_TABLENOTFOUND = "ResourceNotFound.TableNotFound" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/models.go index 74cd0a117d..0e600df0fa 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/models.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/models.go @@ -839,6 +839,60 @@ func (r *AssociateDatasourceHouseResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type AttachDataMaskPolicyRequestParams struct { + // 要绑定的数据脱敏策略权限对象集合 + DataMaskStrategyPolicySet []*DataMaskStrategyPolicy `json:"DataMaskStrategyPolicySet,omitnil,omitempty" name:"DataMaskStrategyPolicySet"` +} + +type AttachDataMaskPolicyRequest struct { + *tchttp.BaseRequest + + // 要绑定的数据脱敏策略权限对象集合 + DataMaskStrategyPolicySet []*DataMaskStrategyPolicy `json:"DataMaskStrategyPolicySet,omitnil,omitempty" name:"DataMaskStrategyPolicySet"` +} + +func (r *AttachDataMaskPolicyRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *AttachDataMaskPolicyRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DataMaskStrategyPolicySet") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AttachDataMaskPolicyRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type AttachDataMaskPolicyResponseParams struct { + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type AttachDataMaskPolicyResponse struct { + *tchttp.BaseResponse + Response *AttachDataMaskPolicyResponseParams `json:"Response"` +} + +func (r *AttachDataMaskPolicyResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *AttachDataMaskPolicyResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type AttachUserPolicyRequestParams struct { // 用户Id,和子用户uin相同,需要先使用CreateUser接口创建用户。可以使用DescribeUsers接口查看。 @@ -2130,10 +2184,10 @@ type CreateDataEngineRequestParams struct { // 计费类型,后付费:0,预付费:1。当前只支持后付费,不填默认为后付费。 PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"` - // 资源使用时长,后付费:固定填3600,预付费:最少填1,代表购买资源一个月,最长不超过120。默认1 + // 资源使用时长,后付费:固定填1,预付费:最少填1,代表购买资源一个月,最长不超过120。默认1 TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"` - // 资源使用时长的单位,后付费:s,预付费:m。默认为s + // 资源使用时长的单位,后付费:h,预付费:m。默认为h TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"` // 资源的自动续费标志。后付费无需续费,固定填0;预付费下:0表示手动续费、1代表自动续费、2代表不续费,在0下如果是大客户,会自动帮大客户续费。默认为0 @@ -2151,7 +2205,7 @@ type CreateDataEngineRequestParams struct { // 定时启停策略,复杂类型:包含启停时间、挂起集群策略 CrontabResumeSuspendStrategy *CrontabResumeSuspendStrategy `json:"CrontabResumeSuspendStrategy,omitnil,omitempty" name:"CrontabResumeSuspendStrategy"` - // 引擎执行任务类型,有效值:SQL/BATCH,默认为SQL + // 引擎执行任务类型,有效值:SQL/BATCH,标准引擎默认为BATCH EngineExecType *string `json:"EngineExecType,omitnil,omitempty" name:"EngineExecType"` // 单个集群最大并发任务数,默认5 @@ -2233,10 +2287,10 @@ type CreateDataEngineRequest struct { // 计费类型,后付费:0,预付费:1。当前只支持后付费,不填默认为后付费。 PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"` - // 资源使用时长,后付费:固定填3600,预付费:最少填1,代表购买资源一个月,最长不超过120。默认1 + // 资源使用时长,后付费:固定填1,预付费:最少填1,代表购买资源一个月,最长不超过120。默认1 TimeSpan *int64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"` - // 资源使用时长的单位,后付费:s,预付费:m。默认为s + // 资源使用时长的单位,后付费:h,预付费:m。默认为h TimeUnit *string `json:"TimeUnit,omitnil,omitempty" name:"TimeUnit"` // 资源的自动续费标志。后付费无需续费,固定填0;预付费下:0表示手动续费、1代表自动续费、2代表不续费,在0下如果是大客户,会自动帮大客户续费。默认为0 @@ -2254,7 +2308,7 @@ type CreateDataEngineRequest struct { // 定时启停策略,复杂类型:包含启停时间、挂起集群策略 CrontabResumeSuspendStrategy *CrontabResumeSuspendStrategy `json:"CrontabResumeSuspendStrategy,omitnil,omitempty" name:"CrontabResumeSuspendStrategy"` - // 引擎执行任务类型,有效值:SQL/BATCH,默认为SQL + // 引擎执行任务类型,有效值:SQL/BATCH,标准引擎默认为BATCH EngineExecType *string `json:"EngineExecType,omitnil,omitempty" name:"EngineExecType"` // 单个集群最大并发任务数,默认5 @@ -2373,6 +2427,60 @@ func (r *CreateDataEngineResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateDataMaskStrategyRequestParams struct { + // 数据脱敏策略详情 + Strategy *DataMaskStrategyInfo `json:"Strategy,omitnil,omitempty" name:"Strategy"` +} + +type CreateDataMaskStrategyRequest struct { + *tchttp.BaseRequest + + // 数据脱敏策略详情 + Strategy *DataMaskStrategyInfo `json:"Strategy,omitnil,omitempty" name:"Strategy"` +} + +func (r *CreateDataMaskStrategyRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateDataMaskStrategyRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Strategy") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDataMaskStrategyRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateDataMaskStrategyResponseParams struct { + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateDataMaskStrategyResponse struct { + *tchttp.BaseResponse + Response *CreateDataMaskStrategyResponseParams `json:"Response"` +} + +func (r *CreateDataMaskStrategyResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateDataMaskStrategyResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type CreateDatabaseRequestParams struct { // 数据库基础信息 @@ -4386,6 +4494,97 @@ func (r *CreateTasksResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateTcIcebergTableRequestParams struct { + // 表基本信息 + TableBaseInfo *TableBaseInfo `json:"TableBaseInfo,omitnil,omitempty" name:"TableBaseInfo"` + + // 表字段信息 + Columns []*TColumn `json:"Columns,omitnil,omitempty" name:"Columns"` + + // 为true时只获取sql而不执行 + DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` + + // 表分区信息 + Partitions []*TPartition `json:"Partitions,omitnil,omitempty" name:"Partitions"` + + // 表属性信息 + Properties []*Property `json:"Properties,omitnil,omitempty" name:"Properties"` +} + +type CreateTcIcebergTableRequest struct { + *tchttp.BaseRequest + + // 表基本信息 + TableBaseInfo *TableBaseInfo `json:"TableBaseInfo,omitnil,omitempty" name:"TableBaseInfo"` + + // 表字段信息 + Columns []*TColumn `json:"Columns,omitnil,omitempty" name:"Columns"` + + // 为true时只获取sql而不执行 + DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` + + // 表分区信息 + Partitions []*TPartition `json:"Partitions,omitnil,omitempty" name:"Partitions"` + + // 表属性信息 + Properties []*Property `json:"Properties,omitnil,omitempty" name:"Properties"` +} + +func (r *CreateTcIcebergTableRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateTcIcebergTableRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TableBaseInfo") + delete(f, "Columns") + delete(f, "DryRun") + delete(f, "Partitions") + delete(f, "Properties") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTcIcebergTableRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateTcIcebergTableResponseParams struct { + // amoro的SessionId + SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"` + + // 执行的sql + SQL *string `json:"SQL,omitnil,omitempty" name:"SQL"` + + // 为true时只返回sql而不实际执行 + DryRun *bool `json:"DryRun,omitnil,omitempty" name:"DryRun"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateTcIcebergTableResponse struct { + *tchttp.BaseResponse + Response *CreateTcIcebergTableResponseParams `json:"Response"` +} + +func (r *CreateTcIcebergTableResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateTcIcebergTableResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type CreateUserRequestParams struct { // 需要授权的子用户uin,可以通过腾讯云控制台右上角 → “账号信息” → “账号ID进行查看”。 @@ -4537,6 +4736,9 @@ func (r *CreateUserVpcConnectionRequest) FromJsonString(s string) error { // Predefined struct for user type CreateUserVpcConnectionResponseParams struct { + // 终端节点IP + UserVpcEndpointId *string `json:"UserVpcEndpointId,omitnil,omitempty" name:"UserVpcEndpointId"` + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } @@ -5303,6 +5505,56 @@ type DataGovernPolicy struct { GovernEngine *string `json:"GovernEngine,omitnil,omitempty" name:"GovernEngine"` } +type DataMaskStrategy struct { + // 策略ID + // 注意:此字段可能返回 null,表示取不到有效值。 + StrategyId *string `json:"StrategyId,omitnil,omitempty" name:"StrategyId"` + + // 用户AppId + // 注意:此字段可能返回 null,表示取不到有效值。 + UserAppId *string `json:"UserAppId,omitnil,omitempty" name:"UserAppId"` + + // 用户Uin + // 注意:此字段可能返回 null,表示取不到有效值。 + Uin *string `json:"Uin,omitnil,omitempty" name:"Uin"` + + // 操作用户子账号uin + // 注意:此字段可能返回 null,表示取不到有效值。 + SubAccountUin *string `json:"SubAccountUin,omitnil,omitempty" name:"SubAccountUin"` + + // 策略名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + StrategyName *string `json:"StrategyName,omitnil,omitempty" name:"StrategyName"` + + // MASK_SHOW_FIRST_4; MASK_SHOW_LAST_4;MASK_HASH; MASK_DATE_SHOW_YEAR; MASK_NULL; MASK_DEFAULT 等 + // 注意:此字段可能返回 null,表示取不到有效值。 + StrategyType *string `json:"StrategyType,omitnil,omitempty" name:"StrategyType"` + + // 策略描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + StrategyDesc *string `json:"StrategyDesc,omitnil,omitempty" name:"StrategyDesc"` + + // 用户组策略列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Groups []*GroupInfo `json:"Groups,omitnil,omitempty" name:"Groups"` + + // 用户子账号uin列表,按;拼接 + // 注意:此字段可能返回 null,表示取不到有效值。 + Users *string `json:"Users,omitnil,omitempty" name:"Users"` + + // 1: 生效中; 0:已删除 + // 注意:此字段可能返回 null,表示取不到有效值。 + State *int64 `json:"State,omitnil,omitempty" name:"State"` + + // 策略创建时间,毫秒时间戳 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *int64 `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 策略更新时间,毫秒时间戳 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *int64 `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` +} + type DataMaskStrategyInfo struct { // 策略名称 StrategyName *string `json:"StrategyName,omitnil,omitempty" name:"StrategyName"` @@ -5324,6 +5576,20 @@ type DataMaskStrategyInfo struct { StrategyId *string `json:"StrategyId,omitnil,omitempty" name:"StrategyId"` } +type DataMaskStrategyPolicy struct { + // 数据脱敏权限对象 + // 注意:此字段可能返回 null,表示取不到有效值。 + PolicyInfo *Policy `json:"PolicyInfo,omitnil,omitempty" name:"PolicyInfo"` + + // 数据脱敏策略ID + // 注意:此字段可能返回 null,表示取不到有效值。 + DataMaskStrategyId *string `json:"DataMaskStrategyId,omitnil,omitempty" name:"DataMaskStrategyId"` + + // 绑定字段类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + ColumnType *string `json:"ColumnType,omitnil,omitempty" name:"ColumnType"` +} + type DataSourceInfo struct { // 数据源实例的唯一ID // 注意:此字段可能返回 null,表示取不到有效值。 @@ -5663,6 +5929,60 @@ func (r *DeleteDataEngineResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDataMaskStrategyRequestParams struct { + // 数据脱敏策略Id + StrategyId *string `json:"StrategyId,omitnil,omitempty" name:"StrategyId"` +} + +type DeleteDataMaskStrategyRequest struct { + *tchttp.BaseRequest + + // 数据脱敏策略Id + StrategyId *string `json:"StrategyId,omitnil,omitempty" name:"StrategyId"` +} + +func (r *DeleteDataMaskStrategyRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteDataMaskStrategyRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "StrategyId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteDataMaskStrategyRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteDataMaskStrategyResponseParams struct { + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteDataMaskStrategyResponse struct { + *tchttp.BaseResponse + Response *DeleteDataMaskStrategyResponseParams `json:"Response"` +} + +func (r *DeleteDataMaskStrategyResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteDataMaskStrategyResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type DeleteNativeSparkSessionRequestParams struct { // 引擎id @@ -7640,6 +7960,80 @@ func (r *DescribeDataEnginesScaleDetailResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeDataMaskStrategiesRequestParams struct { + // 分页参数,单页返回数据量,默认10 + Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` + + // 分页参数,数据便偏移量,默认0 + Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` + + // 过滤字段,strategy-name: 按策略名称搜索 + Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` +} + +type DescribeDataMaskStrategiesRequest struct { + *tchttp.BaseRequest + + // 分页参数,单页返回数据量,默认10 + Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` + + // 分页参数,数据便偏移量,默认0 + Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` + + // 过滤字段,strategy-name: 按策略名称搜索 + Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` +} + +func (r *DescribeDataMaskStrategiesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDataMaskStrategiesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Limit") + delete(f, "Offset") + delete(f, "Filters") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDataMaskStrategiesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDataMaskStrategiesResponseParams struct { + // 总数据脱敏策略数 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 数据脱敏策略列表 + Strategies []*DataMaskStrategy `json:"Strategies,omitnil,omitempty" name:"Strategies"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DescribeDataMaskStrategiesResponse struct { + *tchttp.BaseResponse + Response *DescribeDataMaskStrategiesResponseParams `json:"Response"` +} + +func (r *DescribeDataMaskStrategiesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDataMaskStrategiesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type DescribeDatabasesRequestParams struct { // 返回数量,默认为10,最大值为100。 @@ -11178,6 +11572,77 @@ func (r *DescribeThirdPartyAccessUserResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeUDFPolicyRequestParams struct { + // udf名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据库名(全局UDF:global-function) + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 数据目录名 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` +} + +type DescribeUDFPolicyRequest struct { + *tchttp.BaseRequest + + // udf名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据库名(全局UDF:global-function) + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 数据目录名 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` +} + +func (r *DescribeUDFPolicyRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeUDFPolicyRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Name") + delete(f, "DatabaseName") + delete(f, "CatalogName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeUDFPolicyRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeUDFPolicyResponseParams struct { + // UDF权限信息 + UDFPolicyInfos []*UDFPolicyInfo `json:"UDFPolicyInfos,omitnil,omitempty" name:"UDFPolicyInfos"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DescribeUDFPolicyResponse struct { + *tchttp.BaseResponse + Response *DescribeUDFPolicyResponseParams `json:"Response"` +} + +func (r *DescribeUDFPolicyResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeUDFPolicyResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type DescribeUpdatableDataEnginesRequestParams struct { // 引擎配置操作命令,UpdateSparkSQLLakefsPath 更新托管表路径,UpdateSparkSQLResultPath 更新结果桶路径 @@ -11708,6 +12173,9 @@ type DescribeUserVpcConnectionRequestParams struct { // 引擎ID集合 DataEngineIds []*string `json:"DataEngineIds,omitnil,omitempty" name:"DataEngineIds"` + + // 终端节点ID集合 + UserVpcEndpointIds []*string `json:"UserVpcEndpointIds,omitnil,omitempty" name:"UserVpcEndpointIds"` } type DescribeUserVpcConnectionRequest struct { @@ -11718,6 +12186,9 @@ type DescribeUserVpcConnectionRequest struct { // 引擎ID集合 DataEngineIds []*string `json:"DataEngineIds,omitnil,omitempty" name:"DataEngineIds"` + + // 终端节点ID集合 + UserVpcEndpointIds []*string `json:"UserVpcEndpointIds,omitnil,omitempty" name:"UserVpcEndpointIds"` } func (r *DescribeUserVpcConnectionRequest) ToJsonString() string { @@ -11734,6 +12205,7 @@ func (r *DescribeUserVpcConnectionRequest) FromJsonString(s string) error { } delete(f, "EngineNetworkId") delete(f, "DataEngineIds") + delete(f, "UserVpcEndpointIds") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeUserVpcConnectionRequest has unknown keys!", "") } @@ -16642,6 +17114,9 @@ type TaskResponseInfo struct { // spark引擎资源组名称 ResourceGroupName *string `json:"ResourceGroupName,omitnil,omitempty" name:"ResourceGroupName"` + + // 任务执行耗时 + JobTimeSum *int64 `json:"JobTimeSum,omitnil,omitempty" name:"JobTimeSum"` } type TaskResultInfo struct { @@ -16769,6 +17244,18 @@ type TextFile struct { Regex *string `json:"Regex,omitnil,omitempty" name:"Regex"` } +type UDFPolicyInfo struct { + // 权限类型 + // 示例:select,alter,drop + Accesses []*string `json:"Accesses,omitnil,omitempty" name:"Accesses"` + + // 拥有权限的用户信息 + Users []*string `json:"Users,omitnil,omitempty" name:"Users"` + + // 拥有权限的工作组的信息 + Groups []*string `json:"Groups,omitnil,omitempty" name:"Groups"` +} + // Predefined struct for user type UnbindWorkGroupsFromUserRequestParams struct { // 解绑的工作组Id和用户Id的关联关系 @@ -17180,6 +17667,60 @@ func (r *UpdateDataEngineResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UpdateDataMaskStrategyRequestParams struct { + // 数据脱敏策略详情 + Strategy *DataMaskStrategyInfo `json:"Strategy,omitnil,omitempty" name:"Strategy"` +} + +type UpdateDataMaskStrategyRequest struct { + *tchttp.BaseRequest + + // 数据脱敏策略详情 + Strategy *DataMaskStrategyInfo `json:"Strategy,omitnil,omitempty" name:"Strategy"` +} + +func (r *UpdateDataMaskStrategyRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateDataMaskStrategyRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Strategy") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateDataMaskStrategyRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateDataMaskStrategyResponseParams struct { + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateDataMaskStrategyResponse struct { + *tchttp.BaseResponse + Response *UpdateDataMaskStrategyResponseParams `json:"Response"` +} + +func (r *UpdateDataMaskStrategyResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateDataMaskStrategyResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type UpdateEngineResourceGroupNetworkConfigInfoRequestParams struct { // 引擎资源组ID @@ -17690,6 +18231,84 @@ func (r *UpdateStandardEngineResourceGroupResourceInfoResponse) FromJsonString(s return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UpdateUDFPolicyRequestParams struct { + // UDF名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据库名 + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 数据目录名 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` + + // UDF权限信息 + UDFPolicyInfos []*UDFPolicyInfo `json:"UDFPolicyInfos,omitnil,omitempty" name:"UDFPolicyInfos"` +} + +type UpdateUDFPolicyRequest struct { + *tchttp.BaseRequest + + // UDF名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据库名 + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 数据目录名 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` + + // UDF权限信息 + UDFPolicyInfos []*UDFPolicyInfo `json:"UDFPolicyInfos,omitnil,omitempty" name:"UDFPolicyInfos"` +} + +func (r *UpdateUDFPolicyRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateUDFPolicyRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Name") + delete(f, "DatabaseName") + delete(f, "CatalogName") + delete(f, "UDFPolicyInfos") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateUDFPolicyRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateUDFPolicyResponseParams struct { + // UDF权限信息 + UDFPolicyInfos []*UDFPolicyInfo `json:"UDFPolicyInfos,omitnil,omitempty" name:"UDFPolicyInfos"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateUDFPolicyResponse struct { + *tchttp.BaseResponse + Response *UpdateUDFPolicyResponseParams `json:"Response"` +} + +func (r *UpdateUDFPolicyResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateUDFPolicyResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type UpdateUserDataEngineConfigRequestParams struct { // 引擎ID diff --git a/vendor/modules.txt b/vendor/modules.txt index 42aee71366..bb0214741a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1170,7 +1170,11 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1148 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016 +<<<<<<< HEAD # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.31 +======= +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.23 +>>>>>>> bb6625576 (add) ## explicit; go 1.11 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors @@ -1208,7 +1212,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc/v20180410 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb v1.0.673 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb/v20180411 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.5 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.23 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.1056 diff --git a/website/docs/r/dlc_standard_engine_resource_group.html.markdown b/website/docs/r/dlc_standard_engine_resource_group.html.markdown new file mode 100644 index 0000000000..e30d17e676 --- /dev/null +++ b/website/docs/r/dlc_standard_engine_resource_group.html.markdown @@ -0,0 +1,113 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_standard_engine_resource_group" +sidebar_current: "docs-tencentcloud-resource-dlc_standard_engine_resource_group" +description: |- + Provides a resource to create a DLC standard engine resource group +--- + +# tencentcloud_dlc_standard_engine_resource_group + +Provides a resource to create a DLC standard engine resource group + +~> **NOTE:** If you are creating a machine learning resource group for the first time, you need to contact DLC product for whitelisting. + +## Example Usage + +### Only SQL analysis resource group + +```hcl +resource "tencentcloud_dlc_standard_engine_resource_group" "example" { + engine_resource_group_name = "tf-example" + data_engine_name = "tf-engine" + auto_launch = 0 + auto_pause = 0 + is_launch_now = 1 + auto_pause_time = 10 + static_config_pairs { + config_item = "key" + config_value = "value" + } + + dynamic_config_pairs { + config_item = "key" + config_value = "value" + } + max_concurrency = 5 + resource_group_scene = "SparkSQL" + spark_spec_mode = "fast" + spark_size = 16 +} +``` + +### Machine learning resource group + +```hcl +resource "tencentcloud_dlc_standard_engine_resource_group" "example" { + engine_resource_group_name = "tf-example" + data_engine_name = "tf-engine" + max_concurrency = 5 + resource_group_scene = "Artificial-Intelligence" + spark_spec_mode = "fast" + spark_size = 16 + frame_type = "machine-learning" + size = 16 + python_cu_spec = "large" + image_type = "built-in" + image_version = "97319759-0b80-48b4-a7a7-436d9ef3b666" + image_name = "pytorch-v2.5.1" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `data_engine_name` - (Required, String) Standard engine name. +* `engine_resource_group_name` - (Required, String) Standard engine resource group name. +* `auto_launch` - (Optional, Int) Automatic start (task submission automatically pulls up the resource group) 0-automatic start, 1-not automatic start. +* `auto_pause_time` - (Optional, Int) Automatic suspension time, in minutes, with a value range of 1-999 (after no tasks have reached AutoPauseTime, the resource group will automatically suspend). +* `auto_pause` - (Optional, Int) Automatically suspend resource groups. 0 - Automatically suspend, 1 - Not automatically suspend. +* `driver_cu_spec` - (Optional, String) Driver CU specifications: Currently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory). +* `dynamic_config_pairs` - (Optional, List) Dynamic parameters of the resource group, effective in the next task. +* `executor_cu_spec` - (Optional, String) Executor CU specifications: Currently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory). +* `frame_type` - (Optional, String) The framework type of the AI type resource group, machine-learning, python, spark-ml, if not filled in, the default is machine-learning. +* `image_name` - (Optional, String) Image name. +machine-learning: pytorch-v2.5.1, scikit-learn-v1.6.0, tensorflow-v2.18.0 +spark-ml: Standard-S 1.1 +python: python-v3.10. +* `image_type` - (Optional, String) Image type, build-in: built-in, custom: custom, if not filled in, the default is build-in. +* `image_version` - (Optional, String) Image ID. +* `max_concurrency` - (Optional, Int) The number of concurrent tasks is 5 by default. +* `max_executor_nums` - (Optional, Int) Maximum number of executors. +* `min_executor_nums` - (Optional, Int) Minimum number of executors. +* `network_config_names` - (Optional, Set: [`String`]) Network configuration name. +* `public_domain` - (Optional, String) Customized mirror domain name. +* `python_cu_spec` - (Optional, String) The resource limit for a Python stand-alone node in a Python resource group must be smaller than the resource limit for the resource group. Small: 1cu Medium: 2cu Large: 4cu Xlarge: 8cu 4xlarge: 16cu 8xlarge: 32cu 16xlarge: 64cu. If the resource type is high memory, add m before the type. +* `region_name` - (Optional, String) Custom image location. +* `registry_id` - (Optional, String) Custom image instance ID. +* `resource_group_scene` - (Optional, String) Resource group scenario. +* `size` - (Optional, Int) The AI resource group is valid, and the upper limit of available resources in the resource group must be less than the upper limit of engine resources. +* `spark_size` - (Optional, Int) Only the SQL resource group resource limit, only used for the express module. +* `spark_spec_mode` - (Optional, String) Only SQL resource group resource configuration mode, fast: fast mode, custom: custom mode. +* `static_config_pairs` - (Optional, List) Static parameters of the resource group, which require restarting the resource group to take effect. + +The `dynamic_config_pairs` object supports the following: + +* `config_item` - (Required, String) Configuration items. +* `config_value` - (Required, String) Configuration values. + +The `static_config_pairs` object supports the following: + +* `config_item` - (Required, String) Configuration items. +* `config_value` - (Required, String) Configuration values. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. +* `engine_resource_group_id` - Standard engine resource group ID. + + diff --git a/website/docs/r/dlc_update_engine_resource_group_network_config_information_operation.html.markdown b/website/docs/r/dlc_update_engine_resource_group_network_config_information_operation.html.markdown deleted file mode 100644 index f8198e5e33..0000000000 --- a/website/docs/r/dlc_update_engine_resource_group_network_config_information_operation.html.markdown +++ /dev/null @@ -1,36 +0,0 @@ ---- -subcategory: "Data Lake Compute(DLC)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_dlc_update_engine_resource_group_network_config_information_operation" -sidebar_current: "docs-tencentcloud-resource-dlc_update_engine_resource_group_network_config_information_operation" -description: |- - Provides a resource to create a DLC update engine resource group network config information operation ---- - -# tencentcloud_dlc_update_engine_resource_group_network_config_information_operation - -Provides a resource to create a DLC update engine resource group network config information operation - -## Example Usage - -```hcl -resource "tencentcloud_dlc_update_engine_resource_group_network_config_information_operation" "example" { - engine_resource_group_id = "rg-b6fxxxxxx2a0" -} -``` - -## Argument Reference - -The following arguments are supported: - -* `engine_resource_group_id` - (Required, String, ForceNew) Engine resource group ID. -* `network_config_names` - (Optional, Set: [`String`], ForceNew) A collection of network configuration names bound to the resource group. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `id` - ID of the resource. - - - diff --git a/website/docs/r/dlc_update_standard_engine_resource_group_config_information_operation.html.markdown b/website/docs/r/dlc_update_standard_engine_resource_group_config_information_operation.html.markdown deleted file mode 100644 index 20b3efc1ea..0000000000 --- a/website/docs/r/dlc_update_standard_engine_resource_group_config_information_operation.html.markdown +++ /dev/null @@ -1,55 +0,0 @@ ---- -subcategory: "Data Lake Compute(DLC)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation" -sidebar_current: "docs-tencentcloud-resource-dlc_update_standard_engine_resource_group_config_information_operation" -description: |- - Provides a resource to create a DLC update standard engine resource group config information operation ---- - -# tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation - -Provides a resource to create a DLC update standard engine resource group config information operation - -## Example Usage - -```hcl -resource "tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation" "example" { - engine_resource_group_name = "tf-example" - update_conf_context { - config_type = "StaticConfigType" - params { - config_item = "spark.sql.shuffle.partitions" - config_value = "300" - operate = "ADD" - } - } -} -``` - -## Argument Reference - -The following arguments are supported: - -* `engine_resource_group_name` - (Required, String, ForceNew) Engine resource group name. -* `update_conf_context` - (Required, List, ForceNew) Configuration that needs to be updated. - -The `params` object of `update_conf_context` supports the following: - -* `config_item` - (Optional, String, ForceNew) Parameter key. -* `config_value` - (Optional, String, ForceNew) Parameter value. -* `operate` - (Optional, String, ForceNew) Send operations, support: ADD, DELETE, MODIFY. - -The `update_conf_context` object supports the following: - -* `config_type` - (Required, String, ForceNew) Parameter type, optional: StaticConfigType, DynamicConfigType. -* `params` - (Required, List) Configuration array of parameters. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `id` - ID of the resource. - - - diff --git a/website/docs/r/dlc_update_standard_engine_resource_group_resource_information_operation.html.markdown b/website/docs/r/dlc_update_standard_engine_resource_group_resource_information_operation.html.markdown deleted file mode 100644 index 22eddaac95..0000000000 --- a/website/docs/r/dlc_update_standard_engine_resource_group_resource_information_operation.html.markdown +++ /dev/null @@ -1,52 +0,0 @@ ---- -subcategory: "Data Lake Compute(DLC)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation" -sidebar_current: "docs-tencentcloud-resource-dlc_update_standard_engine_resource_group_resource_information_operation" -description: |- - Provides a resource to create a DLC update standard engine resource group resource information operation ---- - -# tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation - -Provides a resource to create a DLC update standard engine resource group resource information operation - -## Example Usage - -```hcl -resource "tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation" "example" { - engine_resource_group_name = "tf-example" -} -``` - -## Argument Reference - -The following arguments are supported: - -* `engine_resource_group_name` - (Required, String, ForceNew) Engine resource group name. -* `driver_cu_spec` - (Optional, String, ForceNew) Driver CU specifications: -Currently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory). -* `executor_cu_spec` - (Optional, String, ForceNew) Executor CU specifications: -Currently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory). -* `frame_type` - (Optional, String, ForceNew) Framework Type. -* `image_name` - (Optional, String, ForceNew) Image name. -* `image_type` - (Optional, String, ForceNew) Image type, built-in image: built-in, custom image: custom. -* `image_version` - (Optional, String, ForceNew) Image version, image id. -* `max_executor_nums` - (Optional, Int, ForceNew) Maximum number of executors. -* `min_executor_nums` - (Optional, Int, ForceNew) Minimum number of executors. -* `public_domain` - (Optional, String, ForceNew) Customized mirror domain name. -* `python_cu_spec` - (Optional, String, ForceNew) The resource limit for a Python stand-alone node in a Python resource group must be smaller than the resource limit for the resource group. Small: 1cu Medium: 2cu Large: 4cu Xlarge: 8cu 4xlarge: 16cu 8xlarge: 32cu 16xlarge: 64cu. If the resource type is high memory, add m before the type. -* `region_name` - (Optional, String, ForceNew) Customize the image region. -* `registry_id` - (Optional, String, ForceNew) Custom image instance id. -* `size` - (Optional, Int, ForceNew) AI resource group resource limit. -* `spark_size` - (Optional, Int, ForceNew) SQL resource group resource limit only, only used in fast mode. -* `spark_spec_mode` - (Optional, String, ForceNew) Only SQL resource group resource configuration mode, fast: fast mode, custom: custom mode. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `id` - ID of the resource. - - - diff --git a/website/docs/r/dlc_user_vpc_connection.html.markdown b/website/docs/r/dlc_user_vpc_connection.html.markdown new file mode 100644 index 0000000000..18ab008529 --- /dev/null +++ b/website/docs/r/dlc_user_vpc_connection.html.markdown @@ -0,0 +1,42 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_user_vpc_connection" +sidebar_current: "docs-tencentcloud-resource-dlc_user_vpc_connection" +description: |- + Provides a resource to create a DLC user vpc connection +--- + +# tencentcloud_dlc_user_vpc_connection + +Provides a resource to create a DLC user vpc connection + +## Example Usage + +```hcl +resource "tencentcloud_dlc_user_vpc_connection" "example" { + user_vpc_id = "vpc-f7fa1fu5" + user_subnet_id = "subnet-ds2t3udw" + user_vpc_endpoint_name = "tf-example" + engine_network_id = "DataEngine-Network-2mfg9icb" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `engine_network_id` - (Required, String, ForceNew) Engine network ID. +* `user_subnet_id` - (Required, String, ForceNew) User subnet ID. +* `user_vpc_endpoint_name` - (Required, String, ForceNew) User vpc endpoint name. +* `user_vpc_id` - (Required, String, ForceNew) User vpc ID. +* `user_vpc_endpoint_vip` - (Optional, String, ForceNew) Manually specify VIP, if not filled in, an IP address under the subnet will be automatically assigned. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. +* `user_vpc_endpoint_id` - User endpoint ID. + + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index aa205f8eb8..a4c374ae24 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -2329,6 +2329,9 @@
  • tencentcloud_dlc_rollback_data_engine_image_operation
  • +
  • + tencentcloud_dlc_standard_engine_resource_group +
  • tencentcloud_dlc_store_location_config
  • @@ -2341,18 +2344,9 @@
  • tencentcloud_dlc_update_data_engine_config_operation
  • -
  • - tencentcloud_dlc_update_engine_resource_group_network_config_information_operation -
  • tencentcloud_dlc_update_row_filter_operation
  • -
  • - tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation -
  • -
  • - tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation -
  • tencentcloud_dlc_upgrade_data_engine_image_operation
  • @@ -2362,6 +2356,9 @@
  • tencentcloud_dlc_user_data_engine_config
  • +
  • + tencentcloud_dlc_user_vpc_connection +
  • tencentcloud_dlc_work_group
  • From 38a94097aecd6ad8ee4eda33b6f2b6c8171ef0c7 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Mon, 8 Sep 2025 16:44:49 +0800 Subject: [PATCH 05/13] add --- .changelog/3486.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.changelog/3486.txt b/.changelog/3486.txt index ad1b251417..e15859cdd9 100644 --- a/.changelog/3486.txt +++ b/.changelog/3486.txt @@ -11,13 +11,9 @@ tencentcloud_dlc_session_image_version ``` ```release-note:new-resource -tencentcloud_dlc_update_engine_resource_group_network_config_information_operation +tencentcloud_dlc_user_vpc_connection ``` ```release-note:new-resource -tencentcloud_dlc_update_standard_engine_resource_group_config_information_operation +tencentcloud_dlc_standard_engine_resource_group ``` - -```release-note:new-resource -tencentcloud_dlc_update_standard_engine_resource_group_resource_information_operation -``` \ No newline at end of file From f370124c059766ed478f7c5a963a14cc6c6db547 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Mon, 8 Sep 2025 16:52:24 +0800 Subject: [PATCH 06/13] add --- ...e_tc_dlc_standard_engine_resource_group.md | 1 - ...dlc_standard_engine_resource_group_test.go | 46 ++++++++++++++----- ...andard_engine_resource_group.html.markdown | 1 - 3 files changed, 34 insertions(+), 14 deletions(-) diff --git a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md index 0eee5c9a41..1b5211aee4 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md +++ b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md @@ -12,7 +12,6 @@ resource "tencentcloud_dlc_standard_engine_resource_group" "example" { data_engine_name = "tf-engine" auto_launch = 0 auto_pause = 0 - is_launch_now = 1 auto_pause_time = 10 static_config_pairs { config_item = "key" diff --git a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go index c81ddea5b4..43b762c6c6 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go @@ -15,23 +15,45 @@ func TestAccTencentCloudDlcStandardEngineResourceGroupResource_basic(t *testing. tcacctest.AccPreCheck(t) }, Providers: tcacctest.AccProviders, - Steps: []resource.TestStep{{ - Config: testAccDlcStandardEngineResourceGroup, - Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.dlc_standard_engine_resource_group", "id")), - }, { - ResourceName: "tencentcloud_dlc_standard_engine_resource_group.dlc_standard_engine_resource_group", - ImportState: true, - ImportStateVerify: true, - }}, + Steps: []resource.TestStep{ + { + Config: testAccDlcStandardEngineResourceGroup, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "id"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "engine_resource_group_name"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "data_engine_name"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "auto_launch"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "auto_pause"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "auto_pause_time"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "max_concurrency"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "resource_group_scene"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "spark_spec_mode"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "spark_size"), + ), + }, + }, }) } const testAccDlcStandardEngineResourceGroup = ` - -resource "tencentcloud_dlc_standard_engine_resource_group" "dlc_standard_engine_resource_group" { - static_config_pairs = { +resource "tencentcloud_dlc_standard_engine_resource_group" "example" { + engine_resource_group_name = "tf-example" + data_engine_name = "tf-engine" + auto_launch = 0 + auto_pause = 0 + auto_pause_time = 10 + static_config_pairs { + config_item = "key" + config_value = "value" } - dynamic_config_pairs = { + + dynamic_config_pairs { + config_item = "key" + config_value = "value" } + max_concurrency = 5 + resource_group_scene = "SparkSQL" + spark_spec_mode = "fast" + spark_size = 16 } ` diff --git a/website/docs/r/dlc_standard_engine_resource_group.html.markdown b/website/docs/r/dlc_standard_engine_resource_group.html.markdown index e30d17e676..bea6e665e4 100644 --- a/website/docs/r/dlc_standard_engine_resource_group.html.markdown +++ b/website/docs/r/dlc_standard_engine_resource_group.html.markdown @@ -23,7 +23,6 @@ resource "tencentcloud_dlc_standard_engine_resource_group" "example" { data_engine_name = "tf-engine" auto_launch = 0 auto_pause = 0 - is_launch_now = 1 auto_pause_time = 10 static_config_pairs { config_item = "key" From 2bc1224544dee83aab5ebbc65204a7d751e6b4e0 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Mon, 8 Sep 2025 17:02:34 +0800 Subject: [PATCH 07/13] add --- ...e_tc_dlc_standard_engine_resource_group.go | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go index 55b8614ef2..f7fdb9998a 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go @@ -452,99 +452,99 @@ func resourceTencentCloudDlcStandardEngineResourceGroupRead(d *schema.ResourceDa } if respData.EngineResourceGroupName != nil { - d.Set("engine_resource_group_name", respData.EngineResourceGroupName) + _ = d.Set("engine_resource_group_name", respData.EngineResourceGroupName) } if respData.DataEngineName != nil { - d.Set("data_engine_name", respData.DataEngineName) + _ = d.Set("data_engine_name", respData.DataEngineName) } if respData.AutoLaunch != nil { - d.Set("auto_launch", respData.AutoLaunch) + _ = d.Set("auto_launch", respData.AutoLaunch) } if respData.AutoPause != nil { - d.Set("auto_pause", respData.AutoPause) + _ = d.Set("auto_pause", respData.AutoPause) } if respData.DriverCuSpec != nil { - d.Set("driver_cu_spec", respData.DriverCuSpec) + _ = d.Set("driver_cu_spec", respData.DriverCuSpec) } if respData.ExecutorCuSpec != nil { - d.Set("executor_cu_spec", respData.ExecutorCuSpec) + _ = d.Set("executor_cu_spec", respData.ExecutorCuSpec) } if respData.MinExecutorNums != nil { - d.Set("min_executor_nums", respData.MinExecutorNums) + _ = d.Set("min_executor_nums", respData.MinExecutorNums) } if respData.MaxExecutorNums != nil { - d.Set("max_executor_nums", respData.MaxExecutorNums) + _ = d.Set("max_executor_nums", respData.MaxExecutorNums) } if respData.AutoPauseTime != nil { - d.Set("auto_pause_time", respData.AutoPauseTime) + _ = d.Set("auto_pause_time", respData.AutoPauseTime) } if respData.MaxConcurrency != nil { - d.Set("max_concurrency", respData.MaxConcurrency) + _ = d.Set("max_concurrency", respData.MaxConcurrency) } if respData.NetworkConfigNames != nil { - d.Set("network_config_names", respData.NetworkConfigNames) + _ = d.Set("network_config_names", respData.NetworkConfigNames) } if respData.PublicDomain != nil { - d.Set("public_domain", respData.PublicDomain) + _ = d.Set("public_domain", respData.PublicDomain) } if respData.RegistryId != nil { - d.Set("registry_id", respData.RegistryId) + _ = d.Set("registry_id", respData.RegistryId) } if respData.FrameType != nil { - d.Set("frame_type", respData.FrameType) + _ = d.Set("frame_type", respData.FrameType) } if respData.ImageType != nil { - d.Set("image_type", respData.ImageType) + _ = d.Set("image_type", respData.ImageType) } if respData.ImageName != nil { - d.Set("image_name", respData.ImageName) + _ = d.Set("image_name", respData.ImageName) } if respData.ImageVersion != nil { - d.Set("image_version", respData.ImageVersion) + _ = d.Set("image_version", respData.ImageVersion) } if respData.Size != nil { - d.Set("size", respData.Size) + _ = d.Set("size", respData.Size) } if respData.ResourceGroupScene != nil { - d.Set("resource_group_scene", respData.ResourceGroupScene) + _ = d.Set("resource_group_scene", respData.ResourceGroupScene) } if respData.RegionName != nil { - d.Set("region_name", respData.RegionName) + _ = d.Set("region_name", respData.RegionName) } if respData.PythonCuSpec != nil { - d.Set("python_cu_spec", respData.PythonCuSpec) + _ = d.Set("python_cu_spec", respData.PythonCuSpec) } if respData.SparkSpecMode != nil { - d.Set("spark_spec_mode", respData.SparkSpecMode) + _ = d.Set("spark_spec_mode", respData.SparkSpecMode) } if respData.SparkSize != nil { - d.Set("spark_size", respData.SparkSize) + _ = d.Set("spark_size", respData.SparkSize) } if respData.EngineResourceGroupId != nil { - d.Set("engine_resource_group_id", respData.EngineResourceGroupId) + _ = d.Set("engine_resource_group_id", respData.EngineResourceGroupId) } return nil From 5a0f284f0bcad9694e7c7540516cbc63badc0c4b Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Mon, 8 Sep 2025 17:31:30 +0800 Subject: [PATCH 08/13] add --- .../services/dlc/resource_tc_dlc_user_vpc_connection.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.go b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.go index 500976c365..4a83cc6181 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.go @@ -159,19 +159,19 @@ func resourceTencentCloudDlcUserVpcConnectionRead(d *schema.ResourceData, meta i } if respData.UserVpcId != nil { - d.Set("user_vpc_id", respData.UserVpcId) + _ = d.Set("user_vpc_id", respData.UserVpcId) } if respData.UserVpcEndpointName != nil { - d.Set("user_vpc_endpoint_name", respData.UserVpcEndpointName) + _ = d.Set("user_vpc_endpoint_name", respData.UserVpcEndpointName) } if respData.EngineNetworkId != nil { - d.Set("engine_network_id", respData.EngineNetworkId) + _ = d.Set("engine_network_id", respData.EngineNetworkId) } if respData.UserVpcEndpointId != nil { - d.Set("user_vpc_endpoint_id", respData.UserVpcEndpointId) + _ = d.Set("user_vpc_endpoint_id", respData.UserVpcEndpointId) } return nil From cb9e61b16a6814b8565620bba292422100a350a7 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Thu, 25 Sep 2025 16:28:15 +0800 Subject: [PATCH 09/13] add --- tencentcloud/provider.go | 2 + tencentcloud/provider.md | 2 + ...resource_tc_dlc_attach_data_mask_policy.go | 352 ++++++++++++++++++ ...resource_tc_dlc_attach_data_mask_policy.md | 22 ++ ...rce_tc_dlc_attach_data_mask_policy_test.go | 47 +++ .../dlc/resource_tc_dlc_data_mask_strategy.go | 307 +++++++++++++++ .../dlc/resource_tc_dlc_data_mask_strategy.md | 26 ++ ...resource_tc_dlc_data_mask_strategy_test.go | 66 ++++ .../services/dlc/service_tencentcloud_dlc.go | 89 +++++ 9 files changed, 913 insertions(+) create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.md create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy_test.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.go create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.md create mode 100644 tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy_test.go diff --git a/tencentcloud/provider.go b/tencentcloud/provider.go index 98896aad64..3444b2cc73 100644 --- a/tencentcloud/provider.go +++ b/tencentcloud/provider.go @@ -2247,6 +2247,8 @@ func Provider() *schema.Provider { "tencentcloud_dlc_user_data_engine_config": dlc.ResourceTencentCloudDlcUserDataEngineConfig(), "tencentcloud_dlc_user_vpc_connection": dlc.ResourceTencentCloudDlcUserVpcConnection(), "tencentcloud_dlc_standard_engine_resource_group": dlc.ResourceTencentCloudDlcStandardEngineResourceGroup(), + "tencentcloud_dlc_data_mask_strategy": dlc.ResourceTencentCloudDlcDataMaskStrategy(), + "tencentcloud_dlc_attach_data_mask_policy": dlc.ResourceTencentCloudDlcAttachDataMaskPolicy(), "tencentcloud_waf_custom_rule": waf.ResourceTencentCloudWafCustomRule(), "tencentcloud_waf_custom_white_rule": waf.ResourceTencentCloudWafCustomWhiteRule(), "tencentcloud_waf_clb_domain": waf.ResourceTencentCloudWafClbDomain(), diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index fb36d13ca9..1beb4d1bc9 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -2171,6 +2171,8 @@ tencentcloud_dlc_update_row_filter_operation tencentcloud_dlc_bind_work_groups_to_user_attachment tencentcloud_dlc_user_vpc_connection tencentcloud_dlc_standard_engine_resource_group +tencentcloud_dlc_data_mask_strategy +tencentcloud_dlc_attach_data_mask_policy Web Application Firewall(WAF) Data Source diff --git a/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.go b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.go new file mode 100644 index 0000000000..b9d30651b7 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.go @@ -0,0 +1,352 @@ +package dlc + +import ( + "context" + "fmt" + "log" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func ResourceTencentCloudDlcAttachDataMaskPolicy() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudDlcAttachDataMaskPolicyCreate, + Read: resourceTencentCloudDlcAttachDataMaskPolicyRead, + Delete: resourceTencentCloudDlcAttachDataMaskPolicyDelete, + Schema: map[string]*schema.Schema{ + "data_mask_strategy_policy_set": { + Type: schema.TypeList, + Optional: true, + ForceNew: true, + MaxItems: 1, + Description: "A collection of data masking policy permission objects to be bound.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "policy_info": { + Type: schema.TypeList, + Optional: true, + ForceNew: true, + MaxItems: 1, + Description: "Data masking permission object.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "database": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "The name of the database to be authorized. Use * to represent all databases under the current Catalog. For administrator-level authorization, only * is allowed. For data connection-level authorization, leave it empty. For other types, specify the database name.", + }, + "catalog": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "The name of the data source to be authorized. For administrator-level authorization, only * is allowed (representing all resources at this level). For data source-level and database-level authorization, only COSDataCatalog or * is allowed. For table-level authorization, custom data sources can be specified. Defaults to DataLakeCatalog if not specified. Note: For custom data sources, DLC can only manage a subset of permissions provided by the user during data source integration.", + }, + "table": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "The name of the table to be authorized. Use * to represent all tables under the current Database. For administrator-level authorization, only * is allowed. For data connection-level and database-level authorization, leave it empty. For other types, specify the table name.", + }, + "operation": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "The permission operation to be granted, varying by authorization level. Administrator-level: ALL (default). Data connection-level: CREATE. Database-level: ALL, CREATE, ALTER, DROP. Table-level: ALL, SELECT, INSERT, ALTER, DELETE, DROP, UPDATE. Note: For table-level permissions, only SELECT is supported if the data source is not COSDataCatalog.", + }, + "policy_type": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "The type of authorization. Currently supports eight types: ADMIN (administrator-level), DATASOURCE (data connection-level), DATABASE (database-level), TABLE (table-level), VIEW (view-level), FUNCTION (function-level), COLUMN (column-level), ENGINE (data engine-level). Defaults to administrator-level.", + }, + "column": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "The name of the column to be authorized. Use * to represent all columns. For administrator-level authorization, only * is allowed.", + }, + "mode": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "The authorization mode. Do not fill in this parameter. COMMON: Normal mode. SENIOR: Advanced mode.", + }, + }, + }, + }, + "data_mask_strategy_id": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "The ID of the data masking strategy.", + }, + "column_type": { + Type: schema.TypeString, + Optional: true, + ForceNew: true, + Description: "The type of the bound field.", + }, + }, + }, + }, + }, + } +} + +func resourceTencentCloudDlcAttachDataMaskPolicyCreate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_attach_data_mask_policy.create")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewAttachDataMaskPolicyRequest() + catalog string + dataBase string + table string + column string + dataMaskStrategyId string + ) + + if v, ok := d.GetOk("data_mask_strategy_policy_set"); ok { + for _, item := range v.([]interface{}) { + dataMaskStrategyPolicySetMap := item.(map[string]interface{}) + dataMaskStrategyPolicy := dlcv20210125.DataMaskStrategyPolicy{} + if policyInfoMap, ok := helper.ConvertInterfacesHeadToMap(dataMaskStrategyPolicySetMap["policy_info"]); ok { + policy := dlcv20210125.Policy{} + if v, ok := policyInfoMap["database"].(string); ok && v != "" { + policy.Database = helper.String(v) + dataBase = v + } + + if v, ok := policyInfoMap["catalog"].(string); ok && v != "" { + policy.Catalog = helper.String(v) + catalog = v + } + + if v, ok := policyInfoMap["table"].(string); ok && v != "" { + policy.Table = helper.String(v) + table = v + } + + if v, ok := policyInfoMap["operation"].(string); ok && v != "" { + policy.Operation = helper.String(v) + } + + if v, ok := policyInfoMap["policy_type"].(string); ok && v != "" { + policy.PolicyType = helper.String(v) + } + + if v, ok := policyInfoMap["column"].(string); ok && v != "" { + policy.Column = helper.String(v) + column = v + } + + if v, ok := policyInfoMap["mode"].(string); ok && v != "" { + policy.Mode = helper.String(v) + } + + dataMaskStrategyPolicy.PolicyInfo = &policy + } + + if v, ok := dataMaskStrategyPolicySetMap["data_mask_strategy_id"].(string); ok && v != "" { + dataMaskStrategyPolicy.DataMaskStrategyId = helper.String(v) + } + + if v, ok := dataMaskStrategyPolicySetMap["column_type"].(string); ok && v != "" { + dataMaskStrategyPolicy.ColumnType = helper.String(v) + } + + request.DataMaskStrategyPolicySet = append(request.DataMaskStrategyPolicySet, &dataMaskStrategyPolicy) + } + } + + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().AttachDataMaskPolicyWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s create dlc attach data mask policy failed, reason:%+v", logId, reqErr) + return reqErr + } + + policyInfoStr := strings.Join([]string{catalog, dataBase, table, column}, tccommon.COMMA_SP) + d.SetId(strings.Join([]string{policyInfoStr, dataMaskStrategyId}, tccommon.FILED_SP)) + return resourceTencentCloudDlcAttachDataMaskPolicyRead(d, meta) +} + +func resourceTencentCloudDlcAttachDataMaskPolicyRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_attach_data_mask_policy.read")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + service = DlcService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + ) + + idSplit := strings.Split(d.Id(), tccommon.FILED_SP) + if len(idSplit) != 2 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + + policyInfoStr := idSplit[0] + secIdSplit := strings.Split(policyInfoStr, tccommon.COMMA_SP) + if len(secIdSplit) != 4 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + + catalog := secIdSplit[0] + dataBase := secIdSplit[1] + table := secIdSplit[2] + column := secIdSplit[3] + + respData, err := service.DescribeDlcAttachDataMaskPolicyById(ctx, catalog, dataBase, table) + if err != nil { + return err + } + + if respData == nil { + log.Printf("[WARN]%s resource `tencentcloud_dlc_attach_data_mask_policy` [%s] not found, please check if it has been deleted.\n", logId, d.Id()) + d.SetId("") + return nil + } + + if respData.Columns != nil { + for _, item := range respData.Columns { + if item.Name != nil && *item.Name == column { + tmpList := make([]map[string]interface{}, 0, 1) + dMap := make(map[string]interface{}, 0) + policyInfoList := make([]map[string]interface{}, 0, 1) + policyInfoMap := make(map[string]interface{}, 0) + policyInfoMap["catalog"] = catalog + policyInfoMap["database"] = dataBase + policyInfoMap["table"] = table + policyInfoMap["column"] = column + policyInfoList = append(policyInfoList, policyInfoMap) + dMap["policy_info"] = policyInfoList + + if item.DataMaskStrategyInfo != nil && item.DataMaskStrategyInfo.StrategyId != nil { + dMap["data_mask_strategy_id"] = item.DataMaskStrategyInfo.StrategyId + } + + if item.Type != nil { + dMap["column_type"] = item.Type + } + + tmpList = append(tmpList, dMap) + _ = d.Set("data_mask_strategy_policy_set", tmpList) + } + } + } + + return nil +} + +func resourceTencentCloudDlcAttachDataMaskPolicyDelete(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_attach_data_mask_policy.delete")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewAttachDataMaskPolicyRequest() + ) + + idSplit := strings.Split(d.Id(), tccommon.FILED_SP) + if len(idSplit) != 2 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + + policyInfoStr := idSplit[0] + secIdSplit := strings.Split(policyInfoStr, tccommon.COMMA_SP) + if len(secIdSplit) != 4 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + + catalog := secIdSplit[0] + dataBase := secIdSplit[1] + table := secIdSplit[2] + column := secIdSplit[3] + + if v, ok := d.GetOk("data_mask_strategy_policy_set"); ok { + for _, item := range v.([]interface{}) { + dataMaskStrategyPolicySetMap := item.(map[string]interface{}) + dataMaskStrategyPolicy := dlcv20210125.DataMaskStrategyPolicy{} + if policyInfoMap, ok := helper.ConvertInterfacesHeadToMap(dataMaskStrategyPolicySetMap["policy_info"]); ok { + policy := dlcv20210125.Policy{} + if v, ok := policyInfoMap["database"].(string); ok && v != "" { + policy.Database = &dataBase + } + + if v, ok := policyInfoMap["catalog"].(string); ok && v != "" { + policy.Catalog = &catalog + } + + if v, ok := policyInfoMap["table"].(string); ok && v != "" { + policy.Table = &table + } + + if v, ok := policyInfoMap["operation"].(string); ok && v != "" { + policy.Operation = helper.String(v) + } + + if v, ok := policyInfoMap["policy_type"].(string); ok && v != "" { + policy.PolicyType = helper.String(v) + } + + if v, ok := policyInfoMap["column"].(string); ok && v != "" { + policy.Column = &column + } + + if v, ok := policyInfoMap["mode"].(string); ok && v != "" { + policy.Mode = helper.String(v) + } + + dataMaskStrategyPolicy.PolicyInfo = &policy + } + + if v, ok := dataMaskStrategyPolicySetMap["data_mask_strategy_id"].(string); ok && v != "" { + dataMaskStrategyPolicy.DataMaskStrategyId = helper.String(v) + } + + if v, ok := dataMaskStrategyPolicySetMap["column_type"].(string); ok && v != "" { + dataMaskStrategyPolicy.ColumnType = helper.String(v) + } + + request.DataMaskStrategyPolicySet = append(request.DataMaskStrategyPolicySet, &dataMaskStrategyPolicy) + } + } + + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().AttachDataMaskPolicyWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s delete dlc attach data mask policy failed, reason:%+v", logId, reqErr) + return reqErr + } + + return nil +} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.md b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.md new file mode 100644 index 0000000000..fe0c205bbb --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.md @@ -0,0 +1,22 @@ +Provides a resource to create a DLC dlc attach data mask policy + +Example Usage + +```hcl +resource "tencentcloud_dlc_attach_data_mask_policy" "example" { + data_mask_strategy_policy_set { + policy_info { + database = "" + catalog = "" + table = "" + operation = "" + policy_type = "" + column = "" + mode = "" + } + + data_mask_strategy_id = "" + column_type = "" + } +} +``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy_test.go b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy_test.go new file mode 100644 index 0000000000..2de3830874 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy_test.go @@ -0,0 +1,47 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcAttachDataMaskPolicyResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDlcAttachDataMaskPolicy, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_dlc_attach_data_mask_policy.example", "id"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_attach_data_mask_policy.example", "data_mask_strategy_policy_set.#"), + ), + }, + }, + }) +} + +const testAccDlcAttachDataMaskPolicy = ` +resource "tencentcloud_dlc_attach_data_mask_policy" "example" { + data_mask_strategy_policy_set { + policy_info { + database = "" + catalog = "" + table = "" + operation = "" + policy_type = "" + column = "" + mode = "" + } + + data_mask_strategy_id = "" + column_type = "" + } +} +` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.go b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.go new file mode 100644 index 0000000000..c267d751fa --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.go @@ -0,0 +1,307 @@ +package dlc + +import ( + "context" + "fmt" + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dlcv20210125 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125" + + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func ResourceTencentCloudDlcDataMaskStrategy() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudDlcDataMaskStrategyCreate, + Read: resourceTencentCloudDlcDataMaskStrategyRead, + Update: resourceTencentCloudDlcDataMaskStrategyUpdate, + Delete: resourceTencentCloudDlcDataMaskStrategyDelete, + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Schema: map[string]*schema.Schema{ + "strategy": { + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Description: "The data masking strategy.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "strategy_name": { + Type: schema.TypeString, + Optional: true, + Description: "The name of the data masking strategy.", + }, + "strategy_desc": { + Type: schema.TypeString, + Optional: true, + Description: "The description of the data masking strategy.", + }, + "groups": { + Type: schema.TypeList, + Optional: true, + Description: "Collection of bound working groups.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "work_group_id": { + Type: schema.TypeInt, + Optional: true, + Description: "The unique ID of the work group.", + }, + "strategy_type": { + Type: schema.TypeString, + Optional: true, + Description: "The type of the data masking strategy. Supported value: MASK/MASK_NONE/MASK_NULL/MASK_HASH/MASK_SHOW_LAST_4/MASK_SHOW_FIRST_4/MASK_DATE_SHOW_YEAR.", + }, + }, + }, + }, + "strategy_id": { + Type: schema.TypeString, + Computed: true, + Description: "The ID of the data masking strategy.", + }, + }, + }, + }, + }, + } +} + +func resourceTencentCloudDlcDataMaskStrategyCreate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_data_mask_strategy.create")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewCreateDataMaskStrategyRequest() + response = dlcv20210125.NewCreateDataMaskStrategyResponse() + strategyId string + ) + + if strategyMap, ok := helper.InterfacesHeadMap(d, "strategy"); ok { + dataMaskStrategyInfo := dlcv20210125.DataMaskStrategyInfo{} + if v, ok := strategyMap["strategy_name"].(string); ok && v != "" { + dataMaskStrategyInfo.StrategyName = helper.String(v) + } + + if v, ok := strategyMap["strategy_desc"].(string); ok && v != "" { + dataMaskStrategyInfo.StrategyDesc = helper.String(v) + } + + if v, ok := strategyMap["groups"]; ok { + for _, item := range v.([]interface{}) { + groupsMap := item.(map[string]interface{}) + groupInfo := dlcv20210125.GroupInfo{} + if v, ok := groupsMap["work_group_id"].(int); ok { + groupInfo.WorkGroupId = helper.IntInt64(v) + } + + if v, ok := groupsMap["strategy_type"].(string); ok && v != "" { + groupInfo.StrategyType = helper.String(v) + } + + dataMaskStrategyInfo.Groups = append(dataMaskStrategyInfo.Groups, &groupInfo) + } + } + + request.Strategy = &dataMaskStrategyInfo + } + + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().CreateDataMaskStrategyWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Create dlc data mask strategy failed, Response is nil.")) + } + + response = result + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s create dlc data mask strategy failed, reason:%+v", logId, reqErr) + return reqErr + } + + if response.Response.StrategyId == nil { + return fmt.Errorf("StrategyId is nil.") + } + + strategyId = *response.Response.StrategyId + d.SetId(strategyId) + return resourceTencentCloudDlcDataMaskStrategyRead(d, meta) +} + +func resourceTencentCloudDlcDataMaskStrategyRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_data_mask_strategy.read")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + service = DlcService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + strategyId string + ) + + respData, err := service.DescribeDlcDataMaskStrategyById(ctx, strategyId) + if err != nil { + return err + } + + if respData == nil { + log.Printf("[WARN]%s resource `tencentcloud_dlc_data_mask_strategy` [%s] not found, please check if it has been deleted.\n", logId, d.Id()) + d.SetId("") + return nil + } + + if respData != nil { + strategiesList := make([]map[string]interface{}, 0, 1) + strategiesMap := map[string]interface{}{} + if respData.StrategyName != nil { + strategiesMap["strategy_name"] = respData.StrategyName + } + + if respData.StrategyDesc != nil { + strategiesMap["strategy_desc"] = respData.StrategyDesc + } + + if respData.Groups != nil { + groupsList := make([]map[string]interface{}, 0, len(respData.Groups)) + for _, groups := range respData.Groups { + groupsMap := map[string]interface{}{} + if groups.WorkGroupId != nil { + groupsMap["work_group_id"] = groups.WorkGroupId + } + + if groups.StrategyType != nil { + groupsMap["strategy_type"] = groups.StrategyType + } + + groupsList = append(groupsList, groupsMap) + } + + strategiesMap["groups"] = groupsList + } + + if respData.StrategyId != nil { + strategiesMap["strategy_id"] = respData.StrategyId + } + + strategiesList = append(strategiesList, strategiesMap) + _ = d.Set("strategies", strategiesList) + } + + return nil +} + +func resourceTencentCloudDlcDataMaskStrategyUpdate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_data_mask_strategy.update")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + strategyId string + ) + + needChange := false + mutableArgs := []string{"strategy"} + for _, v := range mutableArgs { + if d.HasChange(v) { + needChange = true + break + } + } + + if needChange { + request := dlcv20210125.NewUpdateDataMaskStrategyRequest() + if strategyMap, ok := helper.InterfacesHeadMap(d, "strategy"); ok { + dataMaskStrategyInfo := dlcv20210125.DataMaskStrategyInfo{} + if v, ok := strategyMap["strategy_name"].(string); ok && v != "" { + dataMaskStrategyInfo.StrategyName = helper.String(v) + } + + if v, ok := strategyMap["strategy_desc"].(string); ok && v != "" { + dataMaskStrategyInfo.StrategyDesc = helper.String(v) + } + + if v, ok := strategyMap["groups"]; ok { + for _, item := range v.([]interface{}) { + groupsMap := item.(map[string]interface{}) + groupInfo := dlcv20210125.GroupInfo{} + if v, ok := groupsMap["work_group_id"].(int); ok { + groupInfo.WorkGroupId = helper.IntInt64(v) + } + + if v, ok := groupsMap["strategy_type"].(string); ok && v != "" { + groupInfo.StrategyType = helper.String(v) + } + + dataMaskStrategyInfo.Groups = append(dataMaskStrategyInfo.Groups, &groupInfo) + } + } + + dataMaskStrategyInfo.StrategyId = &strategyId + request.Strategy = &dataMaskStrategyInfo + } + + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateDataMaskStrategyWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s update dlc data mask strategy failed, reason:%+v", logId, reqErr) + return reqErr + } + } + + return resourceTencentCloudDlcDataMaskStrategyRead(d, meta) +} + +func resourceTencentCloudDlcDataMaskStrategyDelete(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_dlc_data_mask_strategy.delete")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + logId = tccommon.GetLogId(tccommon.ContextNil) + ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + request = dlcv20210125.NewDeleteDataMaskStrategyRequest() + strategyId string + ) + + request.StrategyId = &strategyId + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DeleteDataMaskStrategyWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s delete dlc data mask strategy failed, reason:%+v", logId, reqErr) + return reqErr + } + + return nil +} diff --git a/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.md b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.md new file mode 100644 index 0000000000..4ac70c4155 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.md @@ -0,0 +1,26 @@ +Provides a resource to create a DLC data mask strategy + +Example Usage + +```hcl +resource "tencentcloud_dlc_data_mask_strategy" "example" { + strategy { + strategy_name = "tf-example" + strategy_type = "tf-example" + strategy_desc = "description." + groups = { + work_group_id = 221498 + strategy_type = "MASK" + } + users = "" + } +} +``` + +Import + +DLC data mask strategy can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_data_mask_strategy.example strategyId +``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy_test.go b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy_test.go new file mode 100644 index 0000000000..f4094e1426 --- /dev/null +++ b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy_test.go @@ -0,0 +1,66 @@ +package dlc_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudDlcDataMaskStrategyResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDlcDataMaskStrategy, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_dlc_data_mask_strategy.example", "id"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_data_mask_strategy.example", "strategy.#"), + ), + }, + { + Config: testAccDlcDataMaskStrategyUpdate, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_dlc_data_mask_strategy.example", "id"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_data_mask_strategy.example", "strategy.#"), + ), + }, + { + ResourceName: "tencentcloud_dlc_data_mask_strategy.example", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +const testAccDlcDataMaskStrategy = ` +resource "tencentcloud_dlc_data_mask_strategy" "example" { + strategy { + strategy_name = "tf-example" + strategy_desc = "description." + groups = { + work_group_id = 221498 + strategy_type = "MASK" + } + } +} +` + +const testAccDlcDataMaskStrategyUpdate = ` +resource "tencentcloud_dlc_data_mask_strategy" "example" { + strategy { + strategy_name = "tf-example-update" + strategy_desc = "description update." + groups = { + work_group_id = 221498 + strategy_type = "MASK" + } + } +} +` diff --git a/tencentcloud/services/dlc/service_tencentcloud_dlc.go b/tencentcloud/services/dlc/service_tencentcloud_dlc.go index ee9626022d..7e4b6de1cb 100644 --- a/tencentcloud/services/dlc/service_tencentcloud_dlc.go +++ b/tencentcloud/services/dlc/service_tencentcloud_dlc.go @@ -1346,3 +1346,92 @@ func (me *DlcService) DescribeDlcStandardEngineResourceGroupById(ctx context.Con ret = response.Response.UserEngineResourceGroupInfos[0] return } + +func (me *DlcService) DescribeDlcDataMaskStrategyById(ctx context.Context, strategyId string) (ret *dlc.DataMaskStrategy, errRet error) { + logId := tccommon.GetLogId(ctx) + + request := dlc.NewDescribeDataMaskStrategiesRequest() + response := dlc.NewDescribeDataMaskStrategiesResponse() + request.Filters = []*dlc.Filter{ + &dlc.Filter{ + Name: helper.String("strategy-id"), + Values: helper.Strings([]string{strategyId}), + }, + } + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + errRet = resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + ratelimit.Check(request.GetAction()) + result, e := me.client.UseDlcClient().DescribeDataMaskStrategies(request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe dlc data mask strategies failed, Response is nil.")) + } + + response = result + return nil + }) + + if errRet != nil { + log.Printf("[CRITAL]%s describe dlc data mask strategies failed, reason:%+v", logId, errRet) + return + } + + if len(response.Response.Strategies) != 1 { + return + } + + ret = response.Response.Strategies[0] + return +} + +func (me *DlcService) DescribeDlcAttachDataMaskPolicyById(ctx context.Context, catalog, dataBase, table string) (ret *dlc.TableResponseInfo, errRet error) { + logId := tccommon.GetLogId(ctx) + + request := dlc.NewDescribeTableRequest() + response := dlc.NewDescribeTableResponse() + request.DatasourceConnectionName = &catalog + request.DatabaseName = &dataBase + request.TableName = &table + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + errRet = resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + ratelimit.Check(request.GetAction()) + result, e := me.client.UseDlcClient().DescribeTable(request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe dlc table failed, Response is nil.")) + } + + response = result + return nil + }) + + if errRet != nil { + log.Printf("[CRITAL]%s describe dlc table failed, reason:%+v", logId, errRet) + return + } + + ret = response.Response.Table + return +} From 165c01a8bc3fc431a0343d736daf69fadba1e3c4 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Sat, 27 Sep 2025 21:41:06 +0800 Subject: [PATCH 10/13] add --- go.mod | 4 +- go.sum | 8 + ...resource_tc_dlc_attach_data_mask_policy.go | 78 +- ...resource_tc_dlc_attach_data_mask_policy.md | 28 +- ...rce_tc_dlc_attach_data_mask_policy_test.go | 26 +- .../dlc/resource_tc_dlc_data_mask_strategy.go | 58 +- .../dlc/resource_tc_dlc_data_mask_strategy.md | 8 +- ...resource_tc_dlc_data_mask_strategy_test.go | 10 +- .../services/dlc/service_tencentcloud_dlc.go | 2 +- .../tencentcloud/common/http/request.go | 4 + .../tencentcloud/dlc/v20210125/client.go | 62 + .../tencentcloud/dlc/v20210125/errors.go | 12 + .../tencentcloud/dlc/v20210125/models.go | 277 +- .../tencentcloud/wedata/v20250806/client.go | 4240 ------- .../tencentcloud/wedata/v20250806/errors.go | 61 - .../tencentcloud/wedata/v20250806/models.go | 9928 ----------------- vendor/modules.txt | 6 +- .../dlc_attach_data_mask_policy.html.markdown | 69 + .../r/dlc_data_mask_strategy.html.markdown | 61 + website/tencentcloud.erb | 6 + 20 files changed, 589 insertions(+), 14359 deletions(-) delete mode 100644 vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/client.go delete mode 100644 vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/errors.go delete mode 100644 vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/models.go create mode 100644 website/docs/r/dlc_attach_data_mask_policy.html.markdown create mode 100644 website/docs/r/dlc_data_mask_strategy.html.markdown diff --git a/go.mod b/go.mod index 1751d26e1e..bcbe2fc496 100644 --- a/go.mod +++ b/go.mod @@ -46,7 +46,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.1107 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1148 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.31 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.35 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.1206 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.1161 @@ -54,7 +54,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dbbrain v1.0.652 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc v1.0.633 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb v1.0.673 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.23 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.35 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.1056 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dts v1.0.628 diff --git a/go.sum b/go.sum index a3ce31b2b5..2fe4c5a6a2 100644 --- a/go.sum +++ b/go.sum @@ -950,6 +950,10 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.22 h1:1unTm github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.22/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.23 h1:YZOxepoaH/yNaD1sYpCXR6PuFd22hbKdlXAGXWre8aM= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.23/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.25 h1:bTN1RYwKti9GX4qdI/yd+ybh0QY/BkoGSG+wgArS0L8= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.25/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.35 h1:gcnqnP30UeTFn1Jm1yMiAOlX7x1r12KAQ3cNIQTg/Gc= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.35/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993 h1:WlPgXldQCxt7qi5Xrc6j6zTrsXWzN5BcOGs7Irq7fwQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993/go.mod h1:Z9U8zNtyuyKhjS0698wqsrG/kLx1TQ5CEixXBwVe7xY= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/csip v1.0.860 h1:F3esKBIT3HW9+7Gt8cVgf8X06VdGIczpgLBUECzSEzU= @@ -974,6 +978,10 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.5 h1:0GJ2seyiC github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.5/go.mod h1:vipcBjuWWiD8NgkeDdflpmTAHFf/zH+chcpW4ADnwi4= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.23 h1:E2hkbinLJ2FDMjpX/RpWpqpwNbOTV4hnTmdeJm2Vj4k= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.23/go.mod h1:uR34lQsblkhjuZ68wkSsKw2uHJ7MG5aUoOdWPe3ILdw= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.25 h1:QdwCXRsSroZNFq+yYhT38LhFKoM0pSPycUoM4Xm5kyI= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.25/go.mod h1:9XFynyALKk12v5qu8Z49cOmRLQd/SlVZxLMfb/goarY= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.35 h1:YBartSeOD6M1hFzVytGXcILAlXfzzrCxdjcAAbcHi5U= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.35/go.mod h1:Hb8V1r7scNF9Zjk0fiEavzW2dx+Lr2FEYrXDPa9f0TE= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.1056 h1:kvJuKukDqbt1nKzaVRdcbvs3w9CoMz3V1oQp6jo3rSw= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.1056/go.mod h1:TLTlcL7Dr1p0vPg0NvOi1CJEx2xG1zTlP+4k+ggxnZE= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 h1:egwjvOEUKBaxsoRVn/YSEhp2E8qdh77Ous9A/wftDo0= diff --git a/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.go b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.go index b9d30651b7..bd4050578b 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.go @@ -54,30 +54,12 @@ func ResourceTencentCloudDlcAttachDataMaskPolicy() *schema.Resource { ForceNew: true, Description: "The name of the table to be authorized. Use * to represent all tables under the current Database. For administrator-level authorization, only * is allowed. For data connection-level and database-level authorization, leave it empty. For other types, specify the table name.", }, - "operation": { - Type: schema.TypeString, - Required: true, - ForceNew: true, - Description: "The permission operation to be granted, varying by authorization level. Administrator-level: ALL (default). Data connection-level: CREATE. Database-level: ALL, CREATE, ALTER, DROP. Table-level: ALL, SELECT, INSERT, ALTER, DELETE, DROP, UPDATE. Note: For table-level permissions, only SELECT is supported if the data source is not COSDataCatalog.", - }, - "policy_type": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "The type of authorization. Currently supports eight types: ADMIN (administrator-level), DATASOURCE (data connection-level), DATABASE (database-level), TABLE (table-level), VIEW (view-level), FUNCTION (function-level), COLUMN (column-level), ENGINE (data engine-level). Defaults to administrator-level.", - }, "column": { Type: schema.TypeString, Optional: true, ForceNew: true, Description: "The name of the column to be authorized. Use * to represent all columns. For administrator-level authorization, only * is allowed.", }, - "mode": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "The authorization mode. Do not fill in this parameter. COMMON: Normal mode. SENIOR: Advanced mode.", - }, }, }, }, @@ -136,23 +118,13 @@ func resourceTencentCloudDlcAttachDataMaskPolicyCreate(d *schema.ResourceData, m table = v } - if v, ok := policyInfoMap["operation"].(string); ok && v != "" { - policy.Operation = helper.String(v) - } - - if v, ok := policyInfoMap["policy_type"].(string); ok && v != "" { - policy.PolicyType = helper.String(v) - } - if v, ok := policyInfoMap["column"].(string); ok && v != "" { policy.Column = helper.String(v) column = v } - if v, ok := policyInfoMap["mode"].(string); ok && v != "" { - policy.Mode = helper.String(v) - } - + policy.Operation = helper.String("SELECT") + policy.PolicyType = helper.String("DATAMASK") dataMaskStrategyPolicy.PolicyInfo = &policy } @@ -237,6 +209,7 @@ func resourceTencentCloudDlcAttachDataMaskPolicyRead(d *schema.ResourceData, met policyInfoMap["database"] = dataBase policyInfoMap["table"] = table policyInfoMap["column"] = column + policyInfoList = append(policyInfoList, policyInfoMap) dMap["policy_info"] = policyInfoList @@ -287,42 +260,15 @@ func resourceTencentCloudDlcAttachDataMaskPolicyDelete(d *schema.ResourceData, m for _, item := range v.([]interface{}) { dataMaskStrategyPolicySetMap := item.(map[string]interface{}) dataMaskStrategyPolicy := dlcv20210125.DataMaskStrategyPolicy{} - if policyInfoMap, ok := helper.ConvertInterfacesHeadToMap(dataMaskStrategyPolicySetMap["policy_info"]); ok { - policy := dlcv20210125.Policy{} - if v, ok := policyInfoMap["database"].(string); ok && v != "" { - policy.Database = &dataBase - } - - if v, ok := policyInfoMap["catalog"].(string); ok && v != "" { - policy.Catalog = &catalog - } - - if v, ok := policyInfoMap["table"].(string); ok && v != "" { - policy.Table = &table - } - - if v, ok := policyInfoMap["operation"].(string); ok && v != "" { - policy.Operation = helper.String(v) - } - - if v, ok := policyInfoMap["policy_type"].(string); ok && v != "" { - policy.PolicyType = helper.String(v) - } - - if v, ok := policyInfoMap["column"].(string); ok && v != "" { - policy.Column = &column - } - - if v, ok := policyInfoMap["mode"].(string); ok && v != "" { - policy.Mode = helper.String(v) - } - - dataMaskStrategyPolicy.PolicyInfo = &policy - } - - if v, ok := dataMaskStrategyPolicySetMap["data_mask_strategy_id"].(string); ok && v != "" { - dataMaskStrategyPolicy.DataMaskStrategyId = helper.String(v) - } + policy := dlcv20210125.Policy{} + policy.Database = &dataBase + policy.Catalog = &catalog + policy.Table = &table + policy.Column = &column + policy.Operation = helper.String("SELECT") + policy.PolicyType = helper.String("DATAMASK") + dataMaskStrategyPolicy.PolicyInfo = &policy + dataMaskStrategyPolicy.DataMaskStrategyId = helper.String("-1") if v, ok := dataMaskStrategyPolicySetMap["column_type"].(string); ok && v != "" { dataMaskStrategyPolicy.ColumnType = helper.String(v) diff --git a/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.md b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.md index fe0c205bbb..fd5af618fa 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.md +++ b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy.md @@ -1,22 +1,30 @@ -Provides a resource to create a DLC dlc attach data mask policy +Provides a resource to create a DLC attach data mask policy Example Usage ```hcl +resource "tencentcloud_dlc_data_mask_strategy" "example" { + strategy { + strategy_name = "tf-example" + strategy_desc = "description." + groups { + work_group_id = 70220 + strategy_type = "MASK" + } + } +} + resource "tencentcloud_dlc_attach_data_mask_policy" "example" { data_mask_strategy_policy_set { policy_info { - database = "" - catalog = "" - table = "" - operation = "" - policy_type = "" - column = "" - mode = "" + database = "tf-example" + catalog = "DataLakeCatalog" + table = "tf-example" + column = "id" } - data_mask_strategy_id = "" - column_type = "" + data_mask_strategy_id = tencentcloud_dlc_data_mask_strategy.example.id + column_type = "string" } } ``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy_test.go b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy_test.go index 2de3830874..deed6b4e30 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy_test.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_attach_data_mask_policy_test.go @@ -28,20 +28,28 @@ func TestAccTencentCloudDlcAttachDataMaskPolicyResource_basic(t *testing.T) { } const testAccDlcAttachDataMaskPolicy = ` +resource "tencentcloud_dlc_data_mask_strategy" "example" { + strategy { + strategy_name = "tf-example" + strategy_desc = "description." + groups { + work_group_id = 70220 + strategy_type = "MASK" + } + } +} + resource "tencentcloud_dlc_attach_data_mask_policy" "example" { data_mask_strategy_policy_set { policy_info { - database = "" - catalog = "" - table = "" - operation = "" - policy_type = "" - column = "" - mode = "" + database = "test" + catalog = "DataLakeCatalog" + table = "test" + column = "id" } - data_mask_strategy_id = "" - column_type = "" + data_mask_strategy_id = tencentcloud_dlc_data_mask_strategy.example.id + column_type = "string" } } ` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.go b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.go index c267d751fa..a1f5c3c568 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.go @@ -150,7 +150,7 @@ func resourceTencentCloudDlcDataMaskStrategyRead(d *schema.ResourceData, meta in logId = tccommon.GetLogId(tccommon.ContextNil) ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) service = DlcService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} - strategyId string + strategyId = d.Id() ) respData, err := service.DescribeDlcDataMaskStrategyById(ctx, strategyId) @@ -164,43 +164,41 @@ func resourceTencentCloudDlcDataMaskStrategyRead(d *schema.ResourceData, meta in return nil } - if respData != nil { - strategiesList := make([]map[string]interface{}, 0, 1) - strategiesMap := map[string]interface{}{} - if respData.StrategyName != nil { - strategiesMap["strategy_name"] = respData.StrategyName - } - - if respData.StrategyDesc != nil { - strategiesMap["strategy_desc"] = respData.StrategyDesc - } + strategiesList := make([]map[string]interface{}, 0, 1) + strategiesMap := map[string]interface{}{} + if respData.StrategyName != nil { + strategiesMap["strategy_name"] = respData.StrategyName + } - if respData.Groups != nil { - groupsList := make([]map[string]interface{}, 0, len(respData.Groups)) - for _, groups := range respData.Groups { - groupsMap := map[string]interface{}{} - if groups.WorkGroupId != nil { - groupsMap["work_group_id"] = groups.WorkGroupId - } + if respData.StrategyDesc != nil { + strategiesMap["strategy_desc"] = respData.StrategyDesc + } - if groups.StrategyType != nil { - groupsMap["strategy_type"] = groups.StrategyType - } + if respData.Groups != nil { + groupsList := make([]map[string]interface{}, 0, len(respData.Groups)) + for _, groups := range respData.Groups { + groupsMap := map[string]interface{}{} + if groups.WorkGroupId != nil { + groupsMap["work_group_id"] = groups.WorkGroupId + } - groupsList = append(groupsList, groupsMap) + if groups.StrategyType != nil { + groupsMap["strategy_type"] = groups.StrategyType } - strategiesMap["groups"] = groupsList + groupsList = append(groupsList, groupsMap) } - if respData.StrategyId != nil { - strategiesMap["strategy_id"] = respData.StrategyId - } + strategiesMap["groups"] = groupsList + } - strategiesList = append(strategiesList, strategiesMap) - _ = d.Set("strategies", strategiesList) + if respData.StrategyId != nil { + strategiesMap["strategy_id"] = respData.StrategyId } + strategiesList = append(strategiesList, strategiesMap) + _ = d.Set("strategy", strategiesList) + return nil } @@ -211,7 +209,7 @@ func resourceTencentCloudDlcDataMaskStrategyUpdate(d *schema.ResourceData, meta var ( logId = tccommon.GetLogId(tccommon.ContextNil) ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) - strategyId string + strategyId = d.Id() ) needChange := false @@ -283,7 +281,7 @@ func resourceTencentCloudDlcDataMaskStrategyDelete(d *schema.ResourceData, meta logId = tccommon.GetLogId(tccommon.ContextNil) ctx = tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) request = dlcv20210125.NewDeleteDataMaskStrategyRequest() - strategyId string + strategyId = d.Id() ) request.StrategyId = &strategyId diff --git a/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.md b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.md index 4ac70c4155..c5061f1a00 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.md +++ b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy.md @@ -6,13 +6,11 @@ Example Usage resource "tencentcloud_dlc_data_mask_strategy" "example" { strategy { strategy_name = "tf-example" - strategy_type = "tf-example" strategy_desc = "description." - groups = { - work_group_id = 221498 + groups { + work_group_id = 70220 strategy_type = "MASK" } - users = "" } } ``` @@ -22,5 +20,5 @@ Import DLC data mask strategy can be imported using the id, e.g. ``` -terraform import tencentcloud_dlc_data_mask_strategy.example strategyId +terraform import tencentcloud_dlc_data_mask_strategy.example 2fcab650-11a8-44ef-bf58-19c22af601b6 ``` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy_test.go b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy_test.go index f4094e1426..62aea65ff0 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy_test.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_data_mask_strategy_test.go @@ -44,8 +44,8 @@ resource "tencentcloud_dlc_data_mask_strategy" "example" { strategy { strategy_name = "tf-example" strategy_desc = "description." - groups = { - work_group_id = 221498 + groups { + work_group_id = 70220 strategy_type = "MASK" } } @@ -57,9 +57,9 @@ resource "tencentcloud_dlc_data_mask_strategy" "example" { strategy { strategy_name = "tf-example-update" strategy_desc = "description update." - groups = { - work_group_id = 221498 - strategy_type = "MASK" + groups { + work_group_id = 70219 + strategy_type = "MASK_NONE" } } } diff --git a/tencentcloud/services/dlc/service_tencentcloud_dlc.go b/tencentcloud/services/dlc/service_tencentcloud_dlc.go index 7e4b6de1cb..ca1ef3e5de 100644 --- a/tencentcloud/services/dlc/service_tencentcloud_dlc.go +++ b/tencentcloud/services/dlc/service_tencentcloud_dlc.go @@ -1353,7 +1353,7 @@ func (me *DlcService) DescribeDlcDataMaskStrategyById(ctx context.Context, strat request := dlc.NewDescribeDataMaskStrategiesRequest() response := dlc.NewDescribeDataMaskStrategiesResponse() request.Filters = []*dlc.Filter{ - &dlc.Filter{ + { Name: helper.String("strategy-id"), Values: helper.Strings([]string{strategyId}), }, diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go index 2380a297eb..04b567f320 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go @@ -265,11 +265,15 @@ func CompleteCommonParams(request Request, region string, requestClient string) params["Action"] = request.GetAction() params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10) params["Nonce"] = strconv.Itoa(rand.Int()) +<<<<<<< HEAD <<<<<<< HEAD params["RequestClient"] = "SDK_GO_1.1.31" ======= params["RequestClient"] = "SDK_GO_1.1.23" >>>>>>> bb6625576 (add) +======= + params["RequestClient"] = "SDK_GO_1.1.35" +>>>>>>> e8250d1c6 (add) if requestClient != "" { params["RequestClient"] += ": " + requestClient } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/client.go index 4ce9debea4..28bbd3048b 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/client.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/client.go @@ -3150,6 +3150,7 @@ func NewCreateTasksResponse() (response *CreateTasksResponse) { // INTERNALERROR_DBERROR = "InternalError.DBError" // INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CONFIGKEYPROHIBITED = "InvalidParameter.ConfigKeyProhibited" // INVALIDPARAMETER_DATAENGINEONLYSUPPORTSQL = "InvalidParameter.DataEngineOnlySupportSQL" // INVALIDPARAMETER_IMAGEENGINETYPENOTMATCH = "InvalidParameter.ImageEngineTypeNotMatch" // INVALIDPARAMETER_IMAGEISPUBLICNOTMATCH = "InvalidParameter.ImageIsPublicNotMatch" @@ -3192,6 +3193,7 @@ func (c *Client) CreateTasks(request *CreateTasksRequest) (response *CreateTasks // INTERNALERROR_DBERROR = "InternalError.DBError" // INTERNALERROR_INTERNALSYSTEMEXCEPTION = "InternalError.InternalSystemException" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CONFIGKEYPROHIBITED = "InvalidParameter.ConfigKeyProhibited" // INVALIDPARAMETER_DATAENGINEONLYSUPPORTSQL = "InvalidParameter.DataEngineOnlySupportSQL" // INVALIDPARAMETER_IMAGEENGINETYPENOTMATCH = "InvalidParameter.ImageEngineTypeNotMatch" // INVALIDPARAMETER_IMAGEISPUBLICNOTMATCH = "InvalidParameter.ImageIsPublicNotMatch" @@ -7639,6 +7641,62 @@ func (c *Client) DescribeTaskMonitorInfosWithContext(ctx context.Context, reques return } +func NewDescribeTaskResourceUsageRequest() (request *DescribeTaskResourceUsageRequest) { + request = &DescribeTaskResourceUsageRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dlc", APIVersion, "DescribeTaskResourceUsage") + + + return +} + +func NewDescribeTaskResourceUsageResponse() (response *DescribeTaskResourceUsageResponse) { + response = &DescribeTaskResourceUsageResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DescribeTaskResourceUsage +// 返回任务洞察资源用量 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_HTTPCLIENTDOREQUESTFAILED = "FailedOperation.HttpClientDoRequestFailed" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_TASKNOTFOUND = "InvalidParameter.TaskNotFound" +func (c *Client) DescribeTaskResourceUsage(request *DescribeTaskResourceUsageRequest) (response *DescribeTaskResourceUsageResponse, err error) { + return c.DescribeTaskResourceUsageWithContext(context.Background(), request) +} + +// DescribeTaskResourceUsage +// 返回任务洞察资源用量 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_HTTPCLIENTDOREQUESTFAILED = "FailedOperation.HttpClientDoRequestFailed" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_TASKNOTFOUND = "InvalidParameter.TaskNotFound" +func (c *Client) DescribeTaskResourceUsageWithContext(ctx context.Context, request *DescribeTaskResourceUsageRequest) (response *DescribeTaskResourceUsageResponse, err error) { + if request == nil { + request = NewDescribeTaskResourceUsageRequest() + } + c.InitBaseRequest(&request.BaseRequest, "dlc", APIVersion, "DescribeTaskResourceUsage") + + if c.GetCredential() == nil { + return nil, errors.New("DescribeTaskResourceUsage require credential") + } + + request.SetContext(ctx) + + response = NewDescribeTaskResourceUsageResponse() + err = c.Send(request, response) + return +} + func NewDescribeTaskResultRequest() (request *DescribeTaskResultRequest) { request = &DescribeTaskResultRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -7812,10 +7870,12 @@ func NewDescribeTasksAnalysisResponse() (response *DescribeTasksAnalysisResponse // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_FILTERSVALUESNUMBEROUTOFLIMIT = "InvalidParameter.FiltersValuesNumberOutOfLimit" // INVALIDPARAMETER_INVALIDFILTERLENGTH = "InvalidParameter.InvalidFilterLength" +// INVALIDPARAMETER_INVALIDPARAMETER_SQLTASKANALYSISSORTBYTYPENOTMATCH = "InvalidParameter.InvalidParameter_SQLTaskAnalysisSortByTypeNotMatch" // INVALIDPARAMETER_INVALIDTIMEFORMAT = "InvalidParameter.InvalidTimeFormat" // INVALIDPARAMETER_PARAMETERBASE64DECODEFAILED = "InvalidParameter.ParameterBase64DecodeFailed" // INVALIDPARAMETER_PARAMETERILLEGAL = "InvalidParameter.ParameterIllegal" // INVALIDPARAMETER_PARAMETERNOTFOUNDORBENONE = "InvalidParameter.ParameterNotFoundOrBeNone" +// INVALIDPARAMETER_SQLTASKANALYSISFILTERSKEYTYPENOTMATH = "InvalidParameter.SQLTaskAnalysisFiltersKeyTypeNotMath" // INVALIDPARAMETER_SQLTASKFILTERSKEYTYPENOTMATH = "InvalidParameter.SQLTaskFiltersKeyTypeNotMath" // INVALIDPARAMETER_SQLTASKNOTFOUND = "InvalidParameter.SQLTaskNotFound" // INVALIDPARAMETER_SQLTASKSORTBYTYPENOTMATCH = "InvalidParameter.SQLTaskSortByTypeNotMatch" @@ -7836,10 +7896,12 @@ func (c *Client) DescribeTasksAnalysis(request *DescribeTasksAnalysisRequest) (r // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETER_FILTERSVALUESNUMBEROUTOFLIMIT = "InvalidParameter.FiltersValuesNumberOutOfLimit" // INVALIDPARAMETER_INVALIDFILTERLENGTH = "InvalidParameter.InvalidFilterLength" +// INVALIDPARAMETER_INVALIDPARAMETER_SQLTASKANALYSISSORTBYTYPENOTMATCH = "InvalidParameter.InvalidParameter_SQLTaskAnalysisSortByTypeNotMatch" // INVALIDPARAMETER_INVALIDTIMEFORMAT = "InvalidParameter.InvalidTimeFormat" // INVALIDPARAMETER_PARAMETERBASE64DECODEFAILED = "InvalidParameter.ParameterBase64DecodeFailed" // INVALIDPARAMETER_PARAMETERILLEGAL = "InvalidParameter.ParameterIllegal" // INVALIDPARAMETER_PARAMETERNOTFOUNDORBENONE = "InvalidParameter.ParameterNotFoundOrBeNone" +// INVALIDPARAMETER_SQLTASKANALYSISFILTERSKEYTYPENOTMATH = "InvalidParameter.SQLTaskAnalysisFiltersKeyTypeNotMath" // INVALIDPARAMETER_SQLTASKFILTERSKEYTYPENOTMATH = "InvalidParameter.SQLTaskFiltersKeyTypeNotMath" // INVALIDPARAMETER_SQLTASKNOTFOUND = "InvalidParameter.SQLTaskNotFound" // INVALIDPARAMETER_SQLTASKSORTBYTYPENOTMATCH = "InvalidParameter.SQLTaskSortByTypeNotMatch" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/errors.go index 682d022a07..d719e59029 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/errors.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/errors.go @@ -176,6 +176,9 @@ const ( // 交互式SQL任务指定SortBy类型不匹配,当前仅支持: create-time/resource-usage INVALIDPARAMETER_BATCHSQLTASKSORTBYTYPENOTMATCH = "InvalidParameter.BatchSQLTaskSortByTypeNotMatch" + // 当前配置不被允许 + INVALIDPARAMETER_CONFIGKEYPROHIBITED = "InvalidParameter.ConfigKeyProhibited" + // 指定集群资源类型不匹配,当前仅支持: spark_cu(对应Spark集群),presto_cu(对应Presto集群) INVALIDPARAMETER_DATAENGINECLUSTERTYPENOTMATCH = "InvalidParameter.DataEngineClusterTypeNotMatch" @@ -368,6 +371,9 @@ const ( // 无效的Offset值。 INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" + // 排序列不合法 + INVALIDPARAMETER_INVALIDPARAMETER_SQLTASKANALYSISSORTBYTYPENOTMATCH = "InvalidParameter.InvalidParameter_SQLTaskAnalysisSortByTypeNotMatch" + // 无效的计费模式。 INVALIDPARAMETER_INVALIDPAYMODE = "InvalidParameter.InvalidPayMode" @@ -479,6 +485,9 @@ const ( // SQL参数预处理失败 INVALIDPARAMETER_SQLPARAMETERPREPROCESSINGFAILED = "InvalidParameter.SQLParameterPreprocessingFailed" + // 不支持的过滤类型或者参数不合法 + INVALIDPARAMETER_SQLTASKANALYSISFILTERSKEYTYPENOTMATH = "InvalidParameter.SQLTaskAnalysisFiltersKeyTypeNotMath" + // 指定的Filter.Key不匹配,当前仅支持: task-id/task-sql-keyword/task-kind/task-operator/batch-id/session-id/task-state INVALIDPARAMETER_SQLTASKFILTERSKEYTYPENOTMATH = "InvalidParameter.SQLTaskFiltersKeyTypeNotMath" @@ -512,6 +521,9 @@ const ( // 任务已经结束,不能取消。 INVALIDPARAMETER_TASKALREADYFINISHED = "InvalidParameter.TaskAlreadyFinished" + // 任务不存在。 + INVALIDPARAMETER_TASKNOTFOUND = "InvalidParameter.TaskNotFound" + // 指定的任务状态不匹配,当前仅支持: 0:初始化, 1:运行中, 2:成功, 3:数据写入中, 4:排队中, -1:失败, -3:删除 INVALIDPARAMETER_TASKSTATETYPENOTMATH = "InvalidParameter.TaskStateTypeNotMath" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/models.go index 0e600df0fa..3db2fde2fd 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/models.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125/models.go @@ -1801,6 +1801,14 @@ type CommonMetrics struct { ProcessedRows *int64 `json:"ProcessedRows,omitnil,omitempty" name:"ProcessedRows"` } +type CoreInfo struct { + // 时间戳(毫秒)数组 + Timestamp []*int64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"` + + // core 用量 + CoreUsage []*int64 `json:"CoreUsage,omitnil,omitempty" name:"CoreUsage"` +} + type CosPermission struct { // cos路径 // 注意:此字段可能返回 null,表示取不到有效值。 @@ -2461,6 +2469,9 @@ func (r *CreateDataMaskStrategyRequest) FromJsonString(s string) error { // Predefined struct for user type CreateDataMaskStrategyResponseParams struct { + // 策略id + StrategyId *string `json:"StrategyId,omitnil,omitempty" name:"StrategyId"` + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } @@ -3963,6 +3974,21 @@ type CreateStandardEngineResourceGroupRequestParams struct { // 仅SQL资源组资源上限,仅用于快速模块 SparkSize *int64 `json:"SparkSize,omitnil,omitempty" name:"SparkSize"` + + // GPUDriver规格 + DriverGPUSpec *int64 `json:"DriverGPUSpec,omitnil,omitempty" name:"DriverGPUSpec"` + + // GPUExecutor规格 + ExecutorGPUSpec *int64 `json:"ExecutorGPUSpec,omitnil,omitempty" name:"ExecutorGPUSpec"` + + // GPU上限 + GPULimitSize *int64 `json:"GPULimitSize,omitnil,omitempty" name:"GPULimitSize"` + + // GPU规格 + GPUSize *int64 `json:"GPUSize,omitnil,omitempty" name:"GPUSize"` + + // Pod GPU规格上限 + PythonGPUSpec *int64 `json:"PythonGPUSpec,omitnil,omitempty" name:"PythonGPUSpec"` } type CreateStandardEngineResourceGroupRequest struct { @@ -4047,6 +4073,21 @@ type CreateStandardEngineResourceGroupRequest struct { // 仅SQL资源组资源上限,仅用于快速模块 SparkSize *int64 `json:"SparkSize,omitnil,omitempty" name:"SparkSize"` + + // GPUDriver规格 + DriverGPUSpec *int64 `json:"DriverGPUSpec,omitnil,omitempty" name:"DriverGPUSpec"` + + // GPUExecutor规格 + ExecutorGPUSpec *int64 `json:"ExecutorGPUSpec,omitnil,omitempty" name:"ExecutorGPUSpec"` + + // GPU上限 + GPULimitSize *int64 `json:"GPULimitSize,omitnil,omitempty" name:"GPULimitSize"` + + // GPU规格 + GPUSize *int64 `json:"GPUSize,omitnil,omitempty" name:"GPUSize"` + + // Pod GPU规格上限 + PythonGPUSpec *int64 `json:"PythonGPUSpec,omitnil,omitempty" name:"PythonGPUSpec"` } func (r *CreateStandardEngineResourceGroupRequest) ToJsonString() string { @@ -4087,6 +4128,11 @@ func (r *CreateStandardEngineResourceGroupRequest) FromJsonString(s string) erro delete(f, "PythonCuSpec") delete(f, "SparkSpecMode") delete(f, "SparkSize") + delete(f, "DriverGPUSpec") + delete(f, "ExecutorGPUSpec") + delete(f, "GPULimitSize") + delete(f, "GPUSize") + delete(f, "PythonGPUSpec") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateStandardEngineResourceGroupRequest has unknown keys!", "") } @@ -10398,12 +10444,57 @@ func (r *DescribeSubUserAccessPolicyResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeTablePartitionsRequestParams struct { + // 数据目录名称 + Catalog *string `json:"Catalog,omitnil,omitempty" name:"Catalog"` + + // 数据库名称 + Database *string `json:"Database,omitnil,omitempty" name:"Database"` + + // 数据表名称 + Table *string `json:"Table,omitnil,omitempty" name:"Table"` + + // 查询偏移位置 + Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` + + // 当次查询的数量限制 + Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` + // 模糊查询的分区名称 + FuzzyPartition *string `json:"FuzzyPartition,omitnil,omitempty" name:"FuzzyPartition"` + + // 排序信息 + Sorts []*Sort `json:"Sorts,omitnil,omitempty" name:"Sorts"` + + // 分页查询的游标信息 + Cursor *string `json:"Cursor,omitnil,omitempty" name:"Cursor"` } type DescribeTablePartitionsRequest struct { *tchttp.BaseRequest + // 数据目录名称 + Catalog *string `json:"Catalog,omitnil,omitempty" name:"Catalog"` + + // 数据库名称 + Database *string `json:"Database,omitnil,omitempty" name:"Database"` + + // 数据表名称 + Table *string `json:"Table,omitnil,omitempty" name:"Table"` + + // 查询偏移位置 + Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` + + // 当次查询的数量限制 + Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` + + // 模糊查询的分区名称 + FuzzyPartition *string `json:"FuzzyPartition,omitnil,omitempty" name:"FuzzyPartition"` + + // 排序信息 + Sorts []*Sort `json:"Sorts,omitnil,omitempty" name:"Sorts"` + + // 分页查询的游标信息 + Cursor *string `json:"Cursor,omitnil,omitempty" name:"Cursor"` } func (r *DescribeTablePartitionsRequest) ToJsonString() string { @@ -10418,7 +10509,14 @@ func (r *DescribeTablePartitionsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - + delete(f, "Catalog") + delete(f, "Database") + delete(f, "Table") + delete(f, "Offset") + delete(f, "Limit") + delete(f, "FuzzyPartition") + delete(f, "Sorts") + delete(f, "Cursor") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTablePartitionsRequest has unknown keys!", "") } @@ -10427,6 +10525,9 @@ func (r *DescribeTablePartitionsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeTablePartitionsResponseParams struct { + // 分区信息值 + MixedPartitions *MixedTablePartitions `json:"MixedPartitions,omitnil,omitempty" name:"MixedPartitions"` + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } @@ -11005,6 +11106,63 @@ func (r *DescribeTaskMonitorInfosResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeTaskResourceUsageRequestParams struct { + // 任务 id + TaskInstanceId *string `json:"TaskInstanceId,omitnil,omitempty" name:"TaskInstanceId"` +} + +type DescribeTaskResourceUsageRequest struct { + *tchttp.BaseRequest + + // 任务 id + TaskInstanceId *string `json:"TaskInstanceId,omitnil,omitempty" name:"TaskInstanceId"` +} + +func (r *DescribeTaskResourceUsageRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeTaskResourceUsageRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TaskInstanceId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTaskResourceUsageRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeTaskResourceUsageResponseParams struct { + // core 用量信息 + CoreInfo *CoreInfo `json:"CoreInfo,omitnil,omitempty" name:"CoreInfo"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DescribeTaskResourceUsageResponse struct { + *tchttp.BaseResponse + Response *DescribeTaskResourceUsageResponseParams `json:"Response"` +} + +func (r *DescribeTaskResourceUsageResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeTaskResourceUsageResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type DescribeTaskResultRequestParams struct { // 任务唯一ID,仅支持30天内的任务 @@ -13528,6 +13686,26 @@ type HiveInfo struct { KerberosEnable *bool `json:"KerberosEnable,omitnil,omitempty" name:"KerberosEnable"` } +type HiveTablePartition struct { + // 分区信息名称 + Partition *string `json:"Partition,omitnil,omitempty" name:"Partition"` + + // 分区记录数 + Records *int64 `json:"Records,omitnil,omitempty" name:"Records"` + + // 分区数据文件存储量 + DataFileStorage *int64 `json:"DataFileStorage,omitnil,omitempty" name:"DataFileStorage"` + + // 分区创建时间 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 分区schema更新时间 + ModifiedTime *string `json:"ModifiedTime,omitnil,omitempty" name:"ModifiedTime"` + + // 最后一次分区更新的访问时间 + LastAccessTime *string `json:"LastAccessTime,omitnil,omitempty" name:"LastAccessTime"` +} + type HouseEventsInfo struct { // 事件时间 // 注意:此字段可能返回 null,表示取不到有效值。 @@ -13542,6 +13720,32 @@ type HouseEventsInfo struct { ClusterInfo []*string `json:"ClusterInfo,omitnil,omitempty" name:"ClusterInfo"` } +type IcebergTablePartition struct { + // 分区信息名称 + Partition *string `json:"Partition,omitnil,omitempty" name:"Partition"` + + // 分区记录数 + Records *int64 `json:"Records,omitnil,omitempty" name:"Records"` + + // 分区数据文件数量 + DataFileSize *int64 `json:"DataFileSize,omitnil,omitempty" name:"DataFileSize"` + + // 分区数据文件存储量 + DataFileStorage *int64 `json:"DataFileStorage,omitnil,omitempty" name:"DataFileStorage"` + + // 分区创建时间 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 分区更新时间 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // 最后一次分区更新的快照ID + LastUpdateSnapshotId *string `json:"LastUpdateSnapshotId,omitnil,omitempty" name:"LastUpdateSnapshotId"` + + // 分区的location + Location *LocationInfo `json:"Location,omitnil,omitempty" name:"Location"` +} + type IpPortPair struct { // ip信息 // 注意:此字段可能返回 null,表示取不到有效值。 @@ -13895,6 +14099,14 @@ func (r *ListTaskJobLogNameResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +type LocationInfo struct { + // 桶名称 + Bucket *string `json:"Bucket,omitnil,omitempty" name:"Bucket"` + + // location路径 + DataLocation *string `json:"DataLocation,omitnil,omitempty" name:"DataLocation"` +} + type LockComponentInfo struct { // 数据库名称 DbName *string `json:"DbName,omitnil,omitempty" name:"DbName"` @@ -14009,6 +14221,23 @@ func (r *LockMetaDataResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +type MixedTablePartitions struct { + // 数据表格式 + TableFormat *string `json:"TableFormat,omitnil,omitempty" name:"TableFormat"` + + // 分区总数 + TotalSize *int64 `json:"TotalSize,omitnil,omitempty" name:"TotalSize"` + + // 分页查询的游标信息,在获取下一页信息时需要回传到服务端 + NextCursor *string `json:"NextCursor,omitnil,omitempty" name:"NextCursor"` + + // iceberg表分区信息 + IcebergPartitions []*IcebergTablePartition `json:"IcebergPartitions,omitnil,omitempty" name:"IcebergPartitions"` + + // hive表分区信息 + HivePartitions []*HiveTablePartition `json:"HivePartitions,omitnil,omitempty" name:"HivePartitions"` +} + // Predefined struct for user type ModifyAdvancedStoreLocationRequestParams struct { // 查询结果保存cos路径 @@ -16098,6 +16327,14 @@ type SmartPolicyBaseInfo struct { AppId *string `json:"AppId,omitnil,omitempty" name:"AppId"` } +type Sort struct { + // 排序字段 + Field *string `json:"Field,omitnil,omitempty" name:"Field"` + + // 是否按照ASC排序,否则DESC排序 + Asc *bool `json:"Asc,omitnil,omitempty" name:"Asc"` +} + type SparkJobInfo struct { // spark作业ID JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` @@ -17180,6 +17417,9 @@ type TaskResultInfo struct { // 获取结果消耗的时间 QueryResultTime *float64 `json:"QueryResultTime,omitnil,omitempty" name:"QueryResultTime"` + + // base64 编码结果集 + ResultSetEncode *string `json:"ResultSetEncode,omitnil,omitempty" name:"ResultSetEncode"` } type TasksInfo struct { @@ -18115,6 +18355,21 @@ type UpdateStandardEngineResourceGroupResourceInfoRequestParams struct { // 仅SQL资源组资源上限,仅用于快速模式 SparkSize *int64 `json:"SparkSize,omitnil,omitempty" name:"SparkSize"` + + // gpuDriver规格 + DriverGPUSpec *int64 `json:"DriverGPUSpec,omitnil,omitempty" name:"DriverGPUSpec"` + + // gpuExcutor 规格 + ExecutorGPUSpec *int64 `json:"ExecutorGPUSpec,omitnil,omitempty" name:"ExecutorGPUSpec"` + + // gpu 上限 + GPULimitSize *int64 `json:"GPULimitSize,omitnil,omitempty" name:"GPULimitSize"` + + // gpu 规格 + GPUSize *int64 `json:"GPUSize,omitnil,omitempty" name:"GPUSize"` + + // gpupod 规格 + PythonGPUSpec *int64 `json:"PythonGPUSpec,omitnil,omitempty" name:"PythonGPUSpec"` } type UpdateStandardEngineResourceGroupResourceInfoRequest struct { @@ -18172,6 +18427,21 @@ type UpdateStandardEngineResourceGroupResourceInfoRequest struct { // 仅SQL资源组资源上限,仅用于快速模式 SparkSize *int64 `json:"SparkSize,omitnil,omitempty" name:"SparkSize"` + + // gpuDriver规格 + DriverGPUSpec *int64 `json:"DriverGPUSpec,omitnil,omitempty" name:"DriverGPUSpec"` + + // gpuExcutor 规格 + ExecutorGPUSpec *int64 `json:"ExecutorGPUSpec,omitnil,omitempty" name:"ExecutorGPUSpec"` + + // gpu 上限 + GPULimitSize *int64 `json:"GPULimitSize,omitnil,omitempty" name:"GPULimitSize"` + + // gpu 规格 + GPUSize *int64 `json:"GPUSize,omitnil,omitempty" name:"GPUSize"` + + // gpupod 规格 + PythonGPUSpec *int64 `json:"PythonGPUSpec,omitnil,omitempty" name:"PythonGPUSpec"` } func (r *UpdateStandardEngineResourceGroupResourceInfoRequest) ToJsonString() string { @@ -18203,6 +18473,11 @@ func (r *UpdateStandardEngineResourceGroupResourceInfoRequest) FromJsonString(s delete(f, "PythonCuSpec") delete(f, "SparkSpecMode") delete(f, "SparkSize") + delete(f, "DriverGPUSpec") + delete(f, "ExecutorGPUSpec") + delete(f, "GPULimitSize") + delete(f, "GPUSize") + delete(f, "PythonGPUSpec") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateStandardEngineResourceGroupResourceInfoRequest has unknown keys!", "") } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/client.go deleted file mode 100644 index ff66fba6e8..0000000000 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/client.go +++ /dev/null @@ -1,4240 +0,0 @@ -// Copyright (c) 2017-2025 Tencent. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package v20250806 - -import ( - "context" - "errors" - "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" - tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" - "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" -) - -const APIVersion = "2025-08-06" - -type Client struct { - common.Client -} - -// Deprecated -func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) { - cpf := profile.NewClientProfile() - client = &Client{} - client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf) - return -} - -func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) { - client = &Client{} - client.Init(region). - WithCredential(credential). - WithProfile(clientProfile) - return -} - - -func NewCreateCodeFileRequest() (request *CreateCodeFileRequest) { - request = &CreateCodeFileRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateCodeFile") - - - return -} - -func NewCreateCodeFileResponse() (response *CreateCodeFileResponse) { - response = &CreateCodeFileResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateCodeFile -// 新建代码文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) CreateCodeFile(request *CreateCodeFileRequest) (response *CreateCodeFileResponse, err error) { - return c.CreateCodeFileWithContext(context.Background(), request) -} - -// CreateCodeFile -// 新建代码文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) CreateCodeFileWithContext(ctx context.Context, request *CreateCodeFileRequest) (response *CreateCodeFileResponse, err error) { - if request == nil { - request = NewCreateCodeFileRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateCodeFile") - - if c.GetCredential() == nil { - return nil, errors.New("CreateCodeFile require credential") - } - - request.SetContext(ctx) - - response = NewCreateCodeFileResponse() - err = c.Send(request, response) - return -} - -func NewCreateCodeFolderRequest() (request *CreateCodeFolderRequest) { - request = &CreateCodeFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateCodeFolder") - - - return -} - -func NewCreateCodeFolderResponse() (response *CreateCodeFolderResponse) { - response = &CreateCodeFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateCodeFolder -// 新建代码文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) CreateCodeFolder(request *CreateCodeFolderRequest) (response *CreateCodeFolderResponse, err error) { - return c.CreateCodeFolderWithContext(context.Background(), request) -} - -// CreateCodeFolder -// 新建代码文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) CreateCodeFolderWithContext(ctx context.Context, request *CreateCodeFolderRequest) (response *CreateCodeFolderResponse, err error) { - if request == nil { - request = NewCreateCodeFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateCodeFolder") - - if c.GetCredential() == nil { - return nil, errors.New("CreateCodeFolder require credential") - } - - request.SetContext(ctx) - - response = NewCreateCodeFolderResponse() - err = c.Send(request, response) - return -} - -func NewCreateDataBackfillPlanRequest() (request *CreateDataBackfillPlanRequest) { - request = &CreateDataBackfillPlanRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateDataBackfillPlan") - - - return -} - -func NewCreateDataBackfillPlanResponse() (response *CreateDataBackfillPlanResponse) { - response = &CreateDataBackfillPlanResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateDataBackfillPlan -// 创建数据补录计划 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -func (c *Client) CreateDataBackfillPlan(request *CreateDataBackfillPlanRequest) (response *CreateDataBackfillPlanResponse, err error) { - return c.CreateDataBackfillPlanWithContext(context.Background(), request) -} - -// CreateDataBackfillPlan -// 创建数据补录计划 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -func (c *Client) CreateDataBackfillPlanWithContext(ctx context.Context, request *CreateDataBackfillPlanRequest) (response *CreateDataBackfillPlanResponse, err error) { - if request == nil { - request = NewCreateDataBackfillPlanRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateDataBackfillPlan") - - if c.GetCredential() == nil { - return nil, errors.New("CreateDataBackfillPlan require credential") - } - - request.SetContext(ctx) - - response = NewCreateDataBackfillPlanResponse() - err = c.Send(request, response) - return -} - -func NewCreateOpsAlarmRuleRequest() (request *CreateOpsAlarmRuleRequest) { - request = &CreateOpsAlarmRuleRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateOpsAlarmRule") - - - return -} - -func NewCreateOpsAlarmRuleResponse() (response *CreateOpsAlarmRuleResponse) { - response = &CreateOpsAlarmRuleResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateOpsAlarmRule -// 设置告警规则 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" -// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" -// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" -func (c *Client) CreateOpsAlarmRule(request *CreateOpsAlarmRuleRequest) (response *CreateOpsAlarmRuleResponse, err error) { - return c.CreateOpsAlarmRuleWithContext(context.Background(), request) -} - -// CreateOpsAlarmRule -// 设置告警规则 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" -// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" -// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" -func (c *Client) CreateOpsAlarmRuleWithContext(ctx context.Context, request *CreateOpsAlarmRuleRequest) (response *CreateOpsAlarmRuleResponse, err error) { - if request == nil { - request = NewCreateOpsAlarmRuleRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateOpsAlarmRule") - - if c.GetCredential() == nil { - return nil, errors.New("CreateOpsAlarmRule require credential") - } - - request.SetContext(ctx) - - response = NewCreateOpsAlarmRuleResponse() - err = c.Send(request, response) - return -} - -func NewCreateResourceFileRequest() (request *CreateResourceFileRequest) { - request = &CreateResourceFileRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateResourceFile") - - - return -} - -func NewCreateResourceFileResponse() (response *CreateResourceFileResponse) { - response = &CreateResourceFileResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateResourceFile -// 创建资源文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) CreateResourceFile(request *CreateResourceFileRequest) (response *CreateResourceFileResponse, err error) { - return c.CreateResourceFileWithContext(context.Background(), request) -} - -// CreateResourceFile -// 创建资源文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) CreateResourceFileWithContext(ctx context.Context, request *CreateResourceFileRequest) (response *CreateResourceFileResponse, err error) { - if request == nil { - request = NewCreateResourceFileRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateResourceFile") - - if c.GetCredential() == nil { - return nil, errors.New("CreateResourceFile require credential") - } - - request.SetContext(ctx) - - response = NewCreateResourceFileResponse() - err = c.Send(request, response) - return -} - -func NewCreateResourceFolderRequest() (request *CreateResourceFolderRequest) { - request = &CreateResourceFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateResourceFolder") - - - return -} - -func NewCreateResourceFolderResponse() (response *CreateResourceFolderResponse) { - response = &CreateResourceFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateResourceFolder -// 创建资源文件文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) CreateResourceFolder(request *CreateResourceFolderRequest) (response *CreateResourceFolderResponse, err error) { - return c.CreateResourceFolderWithContext(context.Background(), request) -} - -// CreateResourceFolder -// 创建资源文件文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) CreateResourceFolderWithContext(ctx context.Context, request *CreateResourceFolderRequest) (response *CreateResourceFolderResponse, err error) { - if request == nil { - request = NewCreateResourceFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateResourceFolder") - - if c.GetCredential() == nil { - return nil, errors.New("CreateResourceFolder require credential") - } - - request.SetContext(ctx) - - response = NewCreateResourceFolderResponse() - err = c.Send(request, response) - return -} - -func NewCreateSQLFolderRequest() (request *CreateSQLFolderRequest) { - request = &CreateSQLFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateSQLFolder") - - - return -} - -func NewCreateSQLFolderResponse() (response *CreateSQLFolderResponse) { - response = &CreateSQLFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateSQLFolder -// 创建数据探索脚本文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) CreateSQLFolder(request *CreateSQLFolderRequest) (response *CreateSQLFolderResponse, err error) { - return c.CreateSQLFolderWithContext(context.Background(), request) -} - -// CreateSQLFolder -// 创建数据探索脚本文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) CreateSQLFolderWithContext(ctx context.Context, request *CreateSQLFolderRequest) (response *CreateSQLFolderResponse, err error) { - if request == nil { - request = NewCreateSQLFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateSQLFolder") - - if c.GetCredential() == nil { - return nil, errors.New("CreateSQLFolder require credential") - } - - request.SetContext(ctx) - - response = NewCreateSQLFolderResponse() - err = c.Send(request, response) - return -} - -func NewCreateSQLScriptRequest() (request *CreateSQLScriptRequest) { - request = &CreateSQLScriptRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateSQLScript") - - - return -} - -func NewCreateSQLScriptResponse() (response *CreateSQLScriptResponse) { - response = &CreateSQLScriptResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateSQLScript -// 新增SQL脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) CreateSQLScript(request *CreateSQLScriptRequest) (response *CreateSQLScriptResponse, err error) { - return c.CreateSQLScriptWithContext(context.Background(), request) -} - -// CreateSQLScript -// 新增SQL脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) CreateSQLScriptWithContext(ctx context.Context, request *CreateSQLScriptRequest) (response *CreateSQLScriptResponse, err error) { - if request == nil { - request = NewCreateSQLScriptRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateSQLScript") - - if c.GetCredential() == nil { - return nil, errors.New("CreateSQLScript require credential") - } - - request.SetContext(ctx) - - response = NewCreateSQLScriptResponse() - err = c.Send(request, response) - return -} - -func NewCreateTaskRequest() (request *CreateTaskRequest) { - request = &CreateTaskRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateTask") - - - return -} - -func NewCreateTaskResponse() (response *CreateTaskResponse) { - response = &CreateTaskResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateTask -// 创建任务接口 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) CreateTask(request *CreateTaskRequest) (response *CreateTaskResponse, err error) { - return c.CreateTaskWithContext(context.Background(), request) -} - -// CreateTask -// 创建任务接口 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) CreateTaskWithContext(ctx context.Context, request *CreateTaskRequest) (response *CreateTaskResponse, err error) { - if request == nil { - request = NewCreateTaskRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateTask") - - if c.GetCredential() == nil { - return nil, errors.New("CreateTask require credential") - } - - request.SetContext(ctx) - - response = NewCreateTaskResponse() - err = c.Send(request, response) - return -} - -func NewCreateWorkflowRequest() (request *CreateWorkflowRequest) { - request = &CreateWorkflowRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateWorkflow") - - - return -} - -func NewCreateWorkflowResponse() (response *CreateWorkflowResponse) { - response = &CreateWorkflowResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateWorkflow -// 创建工作流 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) CreateWorkflow(request *CreateWorkflowRequest) (response *CreateWorkflowResponse, err error) { - return c.CreateWorkflowWithContext(context.Background(), request) -} - -// CreateWorkflow -// 创建工作流 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) CreateWorkflowWithContext(ctx context.Context, request *CreateWorkflowRequest) (response *CreateWorkflowResponse, err error) { - if request == nil { - request = NewCreateWorkflowRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateWorkflow") - - if c.GetCredential() == nil { - return nil, errors.New("CreateWorkflow require credential") - } - - request.SetContext(ctx) - - response = NewCreateWorkflowResponse() - err = c.Send(request, response) - return -} - -func NewCreateWorkflowFolderRequest() (request *CreateWorkflowFolderRequest) { - request = &CreateWorkflowFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "CreateWorkflowFolder") - - - return -} - -func NewCreateWorkflowFolderResponse() (response *CreateWorkflowFolderResponse) { - response = &CreateWorkflowFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// CreateWorkflowFolder -// 创建文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) CreateWorkflowFolder(request *CreateWorkflowFolderRequest) (response *CreateWorkflowFolderResponse, err error) { - return c.CreateWorkflowFolderWithContext(context.Background(), request) -} - -// CreateWorkflowFolder -// 创建文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) CreateWorkflowFolderWithContext(ctx context.Context, request *CreateWorkflowFolderRequest) (response *CreateWorkflowFolderResponse, err error) { - if request == nil { - request = NewCreateWorkflowFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateWorkflowFolder") - - if c.GetCredential() == nil { - return nil, errors.New("CreateWorkflowFolder require credential") - } - - request.SetContext(ctx) - - response = NewCreateWorkflowFolderResponse() - err = c.Send(request, response) - return -} - -func NewDeleteCodeFileRequest() (request *DeleteCodeFileRequest) { - request = &DeleteCodeFileRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteCodeFile") - - - return -} - -func NewDeleteCodeFileResponse() (response *DeleteCodeFileResponse) { - response = &DeleteCodeFileResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteCodeFile -// 删除代码文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteCodeFile(request *DeleteCodeFileRequest) (response *DeleteCodeFileResponse, err error) { - return c.DeleteCodeFileWithContext(context.Background(), request) -} - -// DeleteCodeFile -// 删除代码文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteCodeFileWithContext(ctx context.Context, request *DeleteCodeFileRequest) (response *DeleteCodeFileResponse, err error) { - if request == nil { - request = NewDeleteCodeFileRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteCodeFile") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteCodeFile require credential") - } - - request.SetContext(ctx) - - response = NewDeleteCodeFileResponse() - err = c.Send(request, response) - return -} - -func NewDeleteCodeFolderRequest() (request *DeleteCodeFolderRequest) { - request = &DeleteCodeFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteCodeFolder") - - - return -} - -func NewDeleteCodeFolderResponse() (response *DeleteCodeFolderResponse) { - response = &DeleteCodeFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteCodeFolder -// 数据探索删除文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteCodeFolder(request *DeleteCodeFolderRequest) (response *DeleteCodeFolderResponse, err error) { - return c.DeleteCodeFolderWithContext(context.Background(), request) -} - -// DeleteCodeFolder -// 数据探索删除文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteCodeFolderWithContext(ctx context.Context, request *DeleteCodeFolderRequest) (response *DeleteCodeFolderResponse, err error) { - if request == nil { - request = NewDeleteCodeFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteCodeFolder") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteCodeFolder require credential") - } - - request.SetContext(ctx) - - response = NewDeleteCodeFolderResponse() - err = c.Send(request, response) - return -} - -func NewDeleteOpsAlarmRuleRequest() (request *DeleteOpsAlarmRuleRequest) { - request = &DeleteOpsAlarmRuleRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteOpsAlarmRule") - - - return -} - -func NewDeleteOpsAlarmRuleResponse() (response *DeleteOpsAlarmRuleResponse) { - response = &DeleteOpsAlarmRuleResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteOpsAlarmRule -// 删除告警规则 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteOpsAlarmRule(request *DeleteOpsAlarmRuleRequest) (response *DeleteOpsAlarmRuleResponse, err error) { - return c.DeleteOpsAlarmRuleWithContext(context.Background(), request) -} - -// DeleteOpsAlarmRule -// 删除告警规则 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteOpsAlarmRuleWithContext(ctx context.Context, request *DeleteOpsAlarmRuleRequest) (response *DeleteOpsAlarmRuleResponse, err error) { - if request == nil { - request = NewDeleteOpsAlarmRuleRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteOpsAlarmRule") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteOpsAlarmRule require credential") - } - - request.SetContext(ctx) - - response = NewDeleteOpsAlarmRuleResponse() - err = c.Send(request, response) - return -} - -func NewDeleteResourceFileRequest() (request *DeleteResourceFileRequest) { - request = &DeleteResourceFileRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteResourceFile") - - - return -} - -func NewDeleteResourceFileResponse() (response *DeleteResourceFileResponse) { - response = &DeleteResourceFileResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteResourceFile -// 资源管理-删除资源文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) DeleteResourceFile(request *DeleteResourceFileRequest) (response *DeleteResourceFileResponse, err error) { - return c.DeleteResourceFileWithContext(context.Background(), request) -} - -// DeleteResourceFile -// 资源管理-删除资源文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) DeleteResourceFileWithContext(ctx context.Context, request *DeleteResourceFileRequest) (response *DeleteResourceFileResponse, err error) { - if request == nil { - request = NewDeleteResourceFileRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteResourceFile") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteResourceFile require credential") - } - - request.SetContext(ctx) - - response = NewDeleteResourceFileResponse() - err = c.Send(request, response) - return -} - -func NewDeleteResourceFolderRequest() (request *DeleteResourceFolderRequest) { - request = &DeleteResourceFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteResourceFolder") - - - return -} - -func NewDeleteResourceFolderResponse() (response *DeleteResourceFolderResponse) { - response = &DeleteResourceFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteResourceFolder -// 删除资源文件文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) DeleteResourceFolder(request *DeleteResourceFolderRequest) (response *DeleteResourceFolderResponse, err error) { - return c.DeleteResourceFolderWithContext(context.Background(), request) -} - -// DeleteResourceFolder -// 删除资源文件文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) DeleteResourceFolderWithContext(ctx context.Context, request *DeleteResourceFolderRequest) (response *DeleteResourceFolderResponse, err error) { - if request == nil { - request = NewDeleteResourceFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteResourceFolder") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteResourceFolder require credential") - } - - request.SetContext(ctx) - - response = NewDeleteResourceFolderResponse() - err = c.Send(request, response) - return -} - -func NewDeleteSQLFolderRequest() (request *DeleteSQLFolderRequest) { - request = &DeleteSQLFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteSQLFolder") - - - return -} - -func NewDeleteSQLFolderResponse() (response *DeleteSQLFolderResponse) { - response = &DeleteSQLFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteSQLFolder -// 删除SQL文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteSQLFolder(request *DeleteSQLFolderRequest) (response *DeleteSQLFolderResponse, err error) { - return c.DeleteSQLFolderWithContext(context.Background(), request) -} - -// DeleteSQLFolder -// 删除SQL文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteSQLFolderWithContext(ctx context.Context, request *DeleteSQLFolderRequest) (response *DeleteSQLFolderResponse, err error) { - if request == nil { - request = NewDeleteSQLFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteSQLFolder") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteSQLFolder require credential") - } - - request.SetContext(ctx) - - response = NewDeleteSQLFolderResponse() - err = c.Send(request, response) - return -} - -func NewDeleteSQLScriptRequest() (request *DeleteSQLScriptRequest) { - request = &DeleteSQLScriptRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteSQLScript") - - - return -} - -func NewDeleteSQLScriptResponse() (response *DeleteSQLScriptResponse) { - response = &DeleteSQLScriptResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteSQLScript -// 删除探索脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteSQLScript(request *DeleteSQLScriptRequest) (response *DeleteSQLScriptResponse, err error) { - return c.DeleteSQLScriptWithContext(context.Background(), request) -} - -// DeleteSQLScript -// 删除探索脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteSQLScriptWithContext(ctx context.Context, request *DeleteSQLScriptRequest) (response *DeleteSQLScriptResponse, err error) { - if request == nil { - request = NewDeleteSQLScriptRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteSQLScript") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteSQLScript require credential") - } - - request.SetContext(ctx) - - response = NewDeleteSQLScriptResponse() - err = c.Send(request, response) - return -} - -func NewDeleteTaskRequest() (request *DeleteTaskRequest) { - request = &DeleteTaskRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteTask") - - - return -} - -func NewDeleteTaskResponse() (response *DeleteTaskResponse) { - response = &DeleteTaskResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteTask -// 删除编排空间任务 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) DeleteTask(request *DeleteTaskRequest) (response *DeleteTaskResponse, err error) { - return c.DeleteTaskWithContext(context.Background(), request) -} - -// DeleteTask -// 删除编排空间任务 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) DeleteTaskWithContext(ctx context.Context, request *DeleteTaskRequest) (response *DeleteTaskResponse, err error) { - if request == nil { - request = NewDeleteTaskRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteTask") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteTask require credential") - } - - request.SetContext(ctx) - - response = NewDeleteTaskResponse() - err = c.Send(request, response) - return -} - -func NewDeleteWorkflowRequest() (request *DeleteWorkflowRequest) { - request = &DeleteWorkflowRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteWorkflow") - - - return -} - -func NewDeleteWorkflowResponse() (response *DeleteWorkflowResponse) { - response = &DeleteWorkflowResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteWorkflow -// 删除工作流 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) DeleteWorkflow(request *DeleteWorkflowRequest) (response *DeleteWorkflowResponse, err error) { - return c.DeleteWorkflowWithContext(context.Background(), request) -} - -// DeleteWorkflow -// 删除工作流 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) DeleteWorkflowWithContext(ctx context.Context, request *DeleteWorkflowRequest) (response *DeleteWorkflowResponse, err error) { - if request == nil { - request = NewDeleteWorkflowRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteWorkflow") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteWorkflow require credential") - } - - request.SetContext(ctx) - - response = NewDeleteWorkflowResponse() - err = c.Send(request, response) - return -} - -func NewDeleteWorkflowFolderRequest() (request *DeleteWorkflowFolderRequest) { - request = &DeleteWorkflowFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "DeleteWorkflowFolder") - - - return -} - -func NewDeleteWorkflowFolderResponse() (response *DeleteWorkflowFolderResponse) { - response = &DeleteWorkflowFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// DeleteWorkflowFolder -// 删除数据开发文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) DeleteWorkflowFolder(request *DeleteWorkflowFolderRequest) (response *DeleteWorkflowFolderResponse, err error) { - return c.DeleteWorkflowFolderWithContext(context.Background(), request) -} - -// DeleteWorkflowFolder -// 删除数据开发文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) DeleteWorkflowFolderWithContext(ctx context.Context, request *DeleteWorkflowFolderRequest) (response *DeleteWorkflowFolderResponse, err error) { - if request == nil { - request = NewDeleteWorkflowFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteWorkflowFolder") - - if c.GetCredential() == nil { - return nil, errors.New("DeleteWorkflowFolder require credential") - } - - request.SetContext(ctx) - - response = NewDeleteWorkflowFolderResponse() - err = c.Send(request, response) - return -} - -func NewGetAlarmMessageRequest() (request *GetAlarmMessageRequest) { - request = &GetAlarmMessageRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetAlarmMessage") - - - return -} - -func NewGetAlarmMessageResponse() (response *GetAlarmMessageResponse) { - response = &GetAlarmMessageResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetAlarmMessage -// 查询告警信息详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetAlarmMessage(request *GetAlarmMessageRequest) (response *GetAlarmMessageResponse, err error) { - return c.GetAlarmMessageWithContext(context.Background(), request) -} - -// GetAlarmMessage -// 查询告警信息详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetAlarmMessageWithContext(ctx context.Context, request *GetAlarmMessageRequest) (response *GetAlarmMessageResponse, err error) { - if request == nil { - request = NewGetAlarmMessageRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetAlarmMessage") - - if c.GetCredential() == nil { - return nil, errors.New("GetAlarmMessage require credential") - } - - request.SetContext(ctx) - - response = NewGetAlarmMessageResponse() - err = c.Send(request, response) - return -} - -func NewGetCodeFileRequest() (request *GetCodeFileRequest) { - request = &GetCodeFileRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetCodeFile") - - - return -} - -func NewGetCodeFileResponse() (response *GetCodeFileResponse) { - response = &GetCodeFileResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetCodeFile -// 查看代码文件详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetCodeFile(request *GetCodeFileRequest) (response *GetCodeFileResponse, err error) { - return c.GetCodeFileWithContext(context.Background(), request) -} - -// GetCodeFile -// 查看代码文件详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetCodeFileWithContext(ctx context.Context, request *GetCodeFileRequest) (response *GetCodeFileResponse, err error) { - if request == nil { - request = NewGetCodeFileRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetCodeFile") - - if c.GetCredential() == nil { - return nil, errors.New("GetCodeFile require credential") - } - - request.SetContext(ctx) - - response = NewGetCodeFileResponse() - err = c.Send(request, response) - return -} - -func NewGetOpsAlarmRuleRequest() (request *GetOpsAlarmRuleRequest) { - request = &GetOpsAlarmRuleRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsAlarmRule") - - - return -} - -func NewGetOpsAlarmRuleResponse() (response *GetOpsAlarmRuleResponse) { - response = &GetOpsAlarmRuleResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetOpsAlarmRule -// 根据告警规则id/名称查询单个告警规则信息 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetOpsAlarmRule(request *GetOpsAlarmRuleRequest) (response *GetOpsAlarmRuleResponse, err error) { - return c.GetOpsAlarmRuleWithContext(context.Background(), request) -} - -// GetOpsAlarmRule -// 根据告警规则id/名称查询单个告警规则信息 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetOpsAlarmRuleWithContext(ctx context.Context, request *GetOpsAlarmRuleRequest) (response *GetOpsAlarmRuleResponse, err error) { - if request == nil { - request = NewGetOpsAlarmRuleRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsAlarmRule") - - if c.GetCredential() == nil { - return nil, errors.New("GetOpsAlarmRule require credential") - } - - request.SetContext(ctx) - - response = NewGetOpsAlarmRuleResponse() - err = c.Send(request, response) - return -} - -func NewGetOpsAsyncJobRequest() (request *GetOpsAsyncJobRequest) { - request = &GetOpsAsyncJobRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsAsyncJob") - - - return -} - -func NewGetOpsAsyncJobResponse() (response *GetOpsAsyncJobResponse) { - response = &GetOpsAsyncJobResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetOpsAsyncJob -// 查询运维中心异步操作详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetOpsAsyncJob(request *GetOpsAsyncJobRequest) (response *GetOpsAsyncJobResponse, err error) { - return c.GetOpsAsyncJobWithContext(context.Background(), request) -} - -// GetOpsAsyncJob -// 查询运维中心异步操作详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetOpsAsyncJobWithContext(ctx context.Context, request *GetOpsAsyncJobRequest) (response *GetOpsAsyncJobResponse, err error) { - if request == nil { - request = NewGetOpsAsyncJobRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsAsyncJob") - - if c.GetCredential() == nil { - return nil, errors.New("GetOpsAsyncJob require credential") - } - - request.SetContext(ctx) - - response = NewGetOpsAsyncJobResponse() - err = c.Send(request, response) - return -} - -func NewGetOpsTaskRequest() (request *GetOpsTaskRequest) { - request = &GetOpsTaskRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsTask") - - - return -} - -func NewGetOpsTaskResponse() (response *GetOpsTaskResponse) { - response = &GetOpsTaskResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetOpsTask -// 获取任务详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -func (c *Client) GetOpsTask(request *GetOpsTaskRequest) (response *GetOpsTaskResponse, err error) { - return c.GetOpsTaskWithContext(context.Background(), request) -} - -// GetOpsTask -// 获取任务详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -func (c *Client) GetOpsTaskWithContext(ctx context.Context, request *GetOpsTaskRequest) (response *GetOpsTaskResponse, err error) { - if request == nil { - request = NewGetOpsTaskRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsTask") - - if c.GetCredential() == nil { - return nil, errors.New("GetOpsTask require credential") - } - - request.SetContext(ctx) - - response = NewGetOpsTaskResponse() - err = c.Send(request, response) - return -} - -func NewGetOpsTaskCodeRequest() (request *GetOpsTaskCodeRequest) { - request = &GetOpsTaskCodeRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsTaskCode") - - - return -} - -func NewGetOpsTaskCodeResponse() (response *GetOpsTaskCodeResponse) { - response = &GetOpsTaskCodeResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetOpsTaskCode -// 获取任务代码 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetOpsTaskCode(request *GetOpsTaskCodeRequest) (response *GetOpsTaskCodeResponse, err error) { - return c.GetOpsTaskCodeWithContext(context.Background(), request) -} - -// GetOpsTaskCode -// 获取任务代码 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetOpsTaskCodeWithContext(ctx context.Context, request *GetOpsTaskCodeRequest) (response *GetOpsTaskCodeResponse, err error) { - if request == nil { - request = NewGetOpsTaskCodeRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsTaskCode") - - if c.GetCredential() == nil { - return nil, errors.New("GetOpsTaskCode require credential") - } - - request.SetContext(ctx) - - response = NewGetOpsTaskCodeResponse() - err = c.Send(request, response) - return -} - -func NewGetOpsWorkflowRequest() (request *GetOpsWorkflowRequest) { - request = &GetOpsWorkflowRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsWorkflow") - - - return -} - -func NewGetOpsWorkflowResponse() (response *GetOpsWorkflowResponse) { - response = &GetOpsWorkflowResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetOpsWorkflow -// 根据工作流id,获取工作流调度详情。 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetOpsWorkflow(request *GetOpsWorkflowRequest) (response *GetOpsWorkflowResponse, err error) { - return c.GetOpsWorkflowWithContext(context.Background(), request) -} - -// GetOpsWorkflow -// 根据工作流id,获取工作流调度详情。 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetOpsWorkflowWithContext(ctx context.Context, request *GetOpsWorkflowRequest) (response *GetOpsWorkflowResponse, err error) { - if request == nil { - request = NewGetOpsWorkflowRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsWorkflow") - - if c.GetCredential() == nil { - return nil, errors.New("GetOpsWorkflow require credential") - } - - request.SetContext(ctx) - - response = NewGetOpsWorkflowResponse() - err = c.Send(request, response) - return -} - -func NewGetResourceFileRequest() (request *GetResourceFileRequest) { - request = &GetResourceFileRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetResourceFile") - - - return -} - -func NewGetResourceFileResponse() (response *GetResourceFileResponse) { - response = &GetResourceFileResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetResourceFile -// 获取资源文件详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetResourceFile(request *GetResourceFileRequest) (response *GetResourceFileResponse, err error) { - return c.GetResourceFileWithContext(context.Background(), request) -} - -// GetResourceFile -// 获取资源文件详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetResourceFileWithContext(ctx context.Context, request *GetResourceFileRequest) (response *GetResourceFileResponse, err error) { - if request == nil { - request = NewGetResourceFileRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetResourceFile") - - if c.GetCredential() == nil { - return nil, errors.New("GetResourceFile require credential") - } - - request.SetContext(ctx) - - response = NewGetResourceFileResponse() - err = c.Send(request, response) - return -} - -func NewGetSQLScriptRequest() (request *GetSQLScriptRequest) { - request = &GetSQLScriptRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetSQLScript") - - - return -} - -func NewGetSQLScriptResponse() (response *GetSQLScriptResponse) { - response = &GetSQLScriptResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetSQLScript -// 查询脚本详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetSQLScript(request *GetSQLScriptRequest) (response *GetSQLScriptResponse, err error) { - return c.GetSQLScriptWithContext(context.Background(), request) -} - -// GetSQLScript -// 查询脚本详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetSQLScriptWithContext(ctx context.Context, request *GetSQLScriptRequest) (response *GetSQLScriptResponse, err error) { - if request == nil { - request = NewGetSQLScriptRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetSQLScript") - - if c.GetCredential() == nil { - return nil, errors.New("GetSQLScript require credential") - } - - request.SetContext(ctx) - - response = NewGetSQLScriptResponse() - err = c.Send(request, response) - return -} - -func NewGetTaskRequest() (request *GetTaskRequest) { - request = &GetTaskRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetTask") - - - return -} - -func NewGetTaskResponse() (response *GetTaskResponse) { - response = &GetTaskResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetTask -// 创建任务接口 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTask(request *GetTaskRequest) (response *GetTaskResponse, err error) { - return c.GetTaskWithContext(context.Background(), request) -} - -// GetTask -// 创建任务接口 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTaskWithContext(ctx context.Context, request *GetTaskRequest) (response *GetTaskResponse, err error) { - if request == nil { - request = NewGetTaskRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTask") - - if c.GetCredential() == nil { - return nil, errors.New("GetTask require credential") - } - - request.SetContext(ctx) - - response = NewGetTaskResponse() - err = c.Send(request, response) - return -} - -func NewGetTaskCodeRequest() (request *GetTaskCodeRequest) { - request = &GetTaskCodeRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetTaskCode") - - - return -} - -func NewGetTaskCodeResponse() (response *GetTaskCodeResponse) { - response = &GetTaskCodeResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetTaskCode -// 获取任务代码 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTaskCode(request *GetTaskCodeRequest) (response *GetTaskCodeResponse, err error) { - return c.GetTaskCodeWithContext(context.Background(), request) -} - -// GetTaskCode -// 获取任务代码 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTaskCodeWithContext(ctx context.Context, request *GetTaskCodeRequest) (response *GetTaskCodeResponse, err error) { - if request == nil { - request = NewGetTaskCodeRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskCode") - - if c.GetCredential() == nil { - return nil, errors.New("GetTaskCode require credential") - } - - request.SetContext(ctx) - - response = NewGetTaskCodeResponse() - err = c.Send(request, response) - return -} - -func NewGetTaskInstanceRequest() (request *GetTaskInstanceRequest) { - request = &GetTaskInstanceRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetTaskInstance") - - - return -} - -func NewGetTaskInstanceResponse() (response *GetTaskInstanceResponse) { - response = &GetTaskInstanceResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetTaskInstance -// 调度实例详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetTaskInstance(request *GetTaskInstanceRequest) (response *GetTaskInstanceResponse, err error) { - return c.GetTaskInstanceWithContext(context.Background(), request) -} - -// GetTaskInstance -// 调度实例详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetTaskInstanceWithContext(ctx context.Context, request *GetTaskInstanceRequest) (response *GetTaskInstanceResponse, err error) { - if request == nil { - request = NewGetTaskInstanceRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskInstance") - - if c.GetCredential() == nil { - return nil, errors.New("GetTaskInstance require credential") - } - - request.SetContext(ctx) - - response = NewGetTaskInstanceResponse() - err = c.Send(request, response) - return -} - -func NewGetTaskInstanceLogRequest() (request *GetTaskInstanceLogRequest) { - request = &GetTaskInstanceLogRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetTaskInstanceLog") - - - return -} - -func NewGetTaskInstanceLogResponse() (response *GetTaskInstanceLogResponse) { - response = &GetTaskInstanceLogResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetTaskInstanceLog -// 获取实例列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetTaskInstanceLog(request *GetTaskInstanceLogRequest) (response *GetTaskInstanceLogResponse, err error) { - return c.GetTaskInstanceLogWithContext(context.Background(), request) -} - -// GetTaskInstanceLog -// 获取实例列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetTaskInstanceLogWithContext(ctx context.Context, request *GetTaskInstanceLogRequest) (response *GetTaskInstanceLogResponse, err error) { - if request == nil { - request = NewGetTaskInstanceLogRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskInstanceLog") - - if c.GetCredential() == nil { - return nil, errors.New("GetTaskInstanceLog require credential") - } - - request.SetContext(ctx) - - response = NewGetTaskInstanceLogResponse() - err = c.Send(request, response) - return -} - -func NewGetTaskVersionRequest() (request *GetTaskVersionRequest) { - request = &GetTaskVersionRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetTaskVersion") - - - return -} - -func NewGetTaskVersionResponse() (response *GetTaskVersionResponse) { - response = &GetTaskVersionResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetTaskVersion -// 拉取任务版本列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTaskVersion(request *GetTaskVersionRequest) (response *GetTaskVersionResponse, err error) { - return c.GetTaskVersionWithContext(context.Background(), request) -} - -// GetTaskVersion -// 拉取任务版本列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTaskVersionWithContext(ctx context.Context, request *GetTaskVersionRequest) (response *GetTaskVersionResponse, err error) { - if request == nil { - request = NewGetTaskVersionRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskVersion") - - if c.GetCredential() == nil { - return nil, errors.New("GetTaskVersion require credential") - } - - request.SetContext(ctx) - - response = NewGetTaskVersionResponse() - err = c.Send(request, response) - return -} - -func NewGetWorkflowRequest() (request *GetWorkflowRequest) { - request = &GetWorkflowRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "GetWorkflow") - - - return -} - -func NewGetWorkflowResponse() (response *GetWorkflowResponse) { - response = &GetWorkflowResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// GetWorkflow -// 获取工作流信息 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetWorkflow(request *GetWorkflowRequest) (response *GetWorkflowResponse, err error) { - return c.GetWorkflowWithContext(context.Background(), request) -} - -// GetWorkflow -// 获取工作流信息 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetWorkflowWithContext(ctx context.Context, request *GetWorkflowRequest) (response *GetWorkflowResponse, err error) { - if request == nil { - request = NewGetWorkflowRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetWorkflow") - - if c.GetCredential() == nil { - return nil, errors.New("GetWorkflow require credential") - } - - request.SetContext(ctx) - - response = NewGetWorkflowResponse() - err = c.Send(request, response) - return -} - -func NewKillTaskInstancesAsyncRequest() (request *KillTaskInstancesAsyncRequest) { - request = &KillTaskInstancesAsyncRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "KillTaskInstancesAsync") - - - return -} - -func NewKillTaskInstancesAsyncResponse() (response *KillTaskInstancesAsyncResponse) { - response = &KillTaskInstancesAsyncResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// KillTaskInstancesAsync -// 实例批量终止操作-异步操作 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) KillTaskInstancesAsync(request *KillTaskInstancesAsyncRequest) (response *KillTaskInstancesAsyncResponse, err error) { - return c.KillTaskInstancesAsyncWithContext(context.Background(), request) -} - -// KillTaskInstancesAsync -// 实例批量终止操作-异步操作 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) KillTaskInstancesAsyncWithContext(ctx context.Context, request *KillTaskInstancesAsyncRequest) (response *KillTaskInstancesAsyncResponse, err error) { - if request == nil { - request = NewKillTaskInstancesAsyncRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "KillTaskInstancesAsync") - - if c.GetCredential() == nil { - return nil, errors.New("KillTaskInstancesAsync require credential") - } - - request.SetContext(ctx) - - response = NewKillTaskInstancesAsyncResponse() - err = c.Send(request, response) - return -} - -func NewListAlarmMessagesRequest() (request *ListAlarmMessagesRequest) { - request = &ListAlarmMessagesRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListAlarmMessages") - - - return -} - -func NewListAlarmMessagesResponse() (response *ListAlarmMessagesResponse) { - response = &ListAlarmMessagesResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListAlarmMessages -// 获取告警信息列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListAlarmMessages(request *ListAlarmMessagesRequest) (response *ListAlarmMessagesResponse, err error) { - return c.ListAlarmMessagesWithContext(context.Background(), request) -} - -// ListAlarmMessages -// 获取告警信息列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListAlarmMessagesWithContext(ctx context.Context, request *ListAlarmMessagesRequest) (response *ListAlarmMessagesResponse, err error) { - if request == nil { - request = NewListAlarmMessagesRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListAlarmMessages") - - if c.GetCredential() == nil { - return nil, errors.New("ListAlarmMessages require credential") - } - - request.SetContext(ctx) - - response = NewListAlarmMessagesResponse() - err = c.Send(request, response) - return -} - -func NewListCodeFolderContentsRequest() (request *ListCodeFolderContentsRequest) { - request = &ListCodeFolderContentsRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListCodeFolderContents") - - - return -} - -func NewListCodeFolderContentsResponse() (response *ListCodeFolderContentsResponse) { - response = &ListCodeFolderContentsResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListCodeFolderContents -// 获取文件夹内容 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListCodeFolderContents(request *ListCodeFolderContentsRequest) (response *ListCodeFolderContentsResponse, err error) { - return c.ListCodeFolderContentsWithContext(context.Background(), request) -} - -// ListCodeFolderContents -// 获取文件夹内容 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListCodeFolderContentsWithContext(ctx context.Context, request *ListCodeFolderContentsRequest) (response *ListCodeFolderContentsResponse, err error) { - if request == nil { - request = NewListCodeFolderContentsRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListCodeFolderContents") - - if c.GetCredential() == nil { - return nil, errors.New("ListCodeFolderContents require credential") - } - - request.SetContext(ctx) - - response = NewListCodeFolderContentsResponse() - err = c.Send(request, response) - return -} - -func NewListDataBackfillInstancesRequest() (request *ListDataBackfillInstancesRequest) { - request = &ListDataBackfillInstancesRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListDataBackfillInstances") - - - return -} - -func NewListDataBackfillInstancesResponse() (response *ListDataBackfillInstancesResponse) { - response = &ListDataBackfillInstancesResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListDataBackfillInstances -// 获取单次补录的所有实例详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListDataBackfillInstances(request *ListDataBackfillInstancesRequest) (response *ListDataBackfillInstancesResponse, err error) { - return c.ListDataBackfillInstancesWithContext(context.Background(), request) -} - -// ListDataBackfillInstances -// 获取单次补录的所有实例详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListDataBackfillInstancesWithContext(ctx context.Context, request *ListDataBackfillInstancesRequest) (response *ListDataBackfillInstancesResponse, err error) { - if request == nil { - request = NewListDataBackfillInstancesRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDataBackfillInstances") - - if c.GetCredential() == nil { - return nil, errors.New("ListDataBackfillInstances require credential") - } - - request.SetContext(ctx) - - response = NewListDataBackfillInstancesResponse() - err = c.Send(request, response) - return -} - -func NewListDownstreamOpsTasksRequest() (request *ListDownstreamOpsTasksRequest) { - request = &ListDownstreamOpsTasksRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListDownstreamOpsTasks") - - - return -} - -func NewListDownstreamOpsTasksResponse() (response *ListDownstreamOpsTasksResponse) { - response = &ListDownstreamOpsTasksResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListDownstreamOpsTasks -// 获取任务直接下游详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListDownstreamOpsTasks(request *ListDownstreamOpsTasksRequest) (response *ListDownstreamOpsTasksResponse, err error) { - return c.ListDownstreamOpsTasksWithContext(context.Background(), request) -} - -// ListDownstreamOpsTasks -// 获取任务直接下游详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListDownstreamOpsTasksWithContext(ctx context.Context, request *ListDownstreamOpsTasksRequest) (response *ListDownstreamOpsTasksResponse, err error) { - if request == nil { - request = NewListDownstreamOpsTasksRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDownstreamOpsTasks") - - if c.GetCredential() == nil { - return nil, errors.New("ListDownstreamOpsTasks require credential") - } - - request.SetContext(ctx) - - response = NewListDownstreamOpsTasksResponse() - err = c.Send(request, response) - return -} - -func NewListDownstreamTaskInstancesRequest() (request *ListDownstreamTaskInstancesRequest) { - request = &ListDownstreamTaskInstancesRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListDownstreamTaskInstances") - - - return -} - -func NewListDownstreamTaskInstancesResponse() (response *ListDownstreamTaskInstancesResponse) { - response = &ListDownstreamTaskInstancesResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListDownstreamTaskInstances -// 获取实例直接上游 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListDownstreamTaskInstances(request *ListDownstreamTaskInstancesRequest) (response *ListDownstreamTaskInstancesResponse, err error) { - return c.ListDownstreamTaskInstancesWithContext(context.Background(), request) -} - -// ListDownstreamTaskInstances -// 获取实例直接上游 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListDownstreamTaskInstancesWithContext(ctx context.Context, request *ListDownstreamTaskInstancesRequest) (response *ListDownstreamTaskInstancesResponse, err error) { - if request == nil { - request = NewListDownstreamTaskInstancesRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDownstreamTaskInstances") - - if c.GetCredential() == nil { - return nil, errors.New("ListDownstreamTaskInstances require credential") - } - - request.SetContext(ctx) - - response = NewListDownstreamTaskInstancesResponse() - err = c.Send(request, response) - return -} - -func NewListDownstreamTasksRequest() (request *ListDownstreamTasksRequest) { - request = &ListDownstreamTasksRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListDownstreamTasks") - - - return -} - -func NewListDownstreamTasksResponse() (response *ListDownstreamTasksResponse) { - response = &ListDownstreamTasksResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListDownstreamTasks -// 获取任务直接下游详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListDownstreamTasks(request *ListDownstreamTasksRequest) (response *ListDownstreamTasksResponse, err error) { - return c.ListDownstreamTasksWithContext(context.Background(), request) -} - -// ListDownstreamTasks -// 获取任务直接下游详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListDownstreamTasksWithContext(ctx context.Context, request *ListDownstreamTasksRequest) (response *ListDownstreamTasksResponse, err error) { - if request == nil { - request = NewListDownstreamTasksRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDownstreamTasks") - - if c.GetCredential() == nil { - return nil, errors.New("ListDownstreamTasks require credential") - } - - request.SetContext(ctx) - - response = NewListDownstreamTasksResponse() - err = c.Send(request, response) - return -} - -func NewListOpsAlarmRulesRequest() (request *ListOpsAlarmRulesRequest) { - request = &ListOpsAlarmRulesRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListOpsAlarmRules") - - - return -} - -func NewListOpsAlarmRulesResponse() (response *ListOpsAlarmRulesResponse) { - response = &ListOpsAlarmRulesResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListOpsAlarmRules -// 查询告警规则列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListOpsAlarmRules(request *ListOpsAlarmRulesRequest) (response *ListOpsAlarmRulesResponse, err error) { - return c.ListOpsAlarmRulesWithContext(context.Background(), request) -} - -// ListOpsAlarmRules -// 查询告警规则列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListOpsAlarmRulesWithContext(ctx context.Context, request *ListOpsAlarmRulesRequest) (response *ListOpsAlarmRulesResponse, err error) { - if request == nil { - request = NewListOpsAlarmRulesRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsAlarmRules") - - if c.GetCredential() == nil { - return nil, errors.New("ListOpsAlarmRules require credential") - } - - request.SetContext(ctx) - - response = NewListOpsAlarmRulesResponse() - err = c.Send(request, response) - return -} - -func NewListOpsTasksRequest() (request *ListOpsTasksRequest) { - request = &ListOpsTasksRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListOpsTasks") - - - return -} - -func NewListOpsTasksResponse() (response *ListOpsTasksResponse) { - response = &ListOpsTasksResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListOpsTasks -// 根据项目id获取任务列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListOpsTasks(request *ListOpsTasksRequest) (response *ListOpsTasksResponse, err error) { - return c.ListOpsTasksWithContext(context.Background(), request) -} - -// ListOpsTasks -// 根据项目id获取任务列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListOpsTasksWithContext(ctx context.Context, request *ListOpsTasksRequest) (response *ListOpsTasksResponse, err error) { - if request == nil { - request = NewListOpsTasksRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsTasks") - - if c.GetCredential() == nil { - return nil, errors.New("ListOpsTasks require credential") - } - - request.SetContext(ctx) - - response = NewListOpsTasksResponse() - err = c.Send(request, response) - return -} - -func NewListOpsWorkflowsRequest() (request *ListOpsWorkflowsRequest) { - request = &ListOpsWorkflowsRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListOpsWorkflows") - - - return -} - -func NewListOpsWorkflowsResponse() (response *ListOpsWorkflowsResponse) { - response = &ListOpsWorkflowsResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListOpsWorkflows -// 根据项目ID获取项目下工作流 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -func (c *Client) ListOpsWorkflows(request *ListOpsWorkflowsRequest) (response *ListOpsWorkflowsResponse, err error) { - return c.ListOpsWorkflowsWithContext(context.Background(), request) -} - -// ListOpsWorkflows -// 根据项目ID获取项目下工作流 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -func (c *Client) ListOpsWorkflowsWithContext(ctx context.Context, request *ListOpsWorkflowsRequest) (response *ListOpsWorkflowsResponse, err error) { - if request == nil { - request = NewListOpsWorkflowsRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsWorkflows") - - if c.GetCredential() == nil { - return nil, errors.New("ListOpsWorkflows require credential") - } - - request.SetContext(ctx) - - response = NewListOpsWorkflowsResponse() - err = c.Send(request, response) - return -} - -func NewListResourceFilesRequest() (request *ListResourceFilesRequest) { - request = &ListResourceFilesRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListResourceFiles") - - - return -} - -func NewListResourceFilesResponse() (response *ListResourceFilesResponse) { - response = &ListResourceFilesResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListResourceFiles -// 获取资源文件列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) ListResourceFiles(request *ListResourceFilesRequest) (response *ListResourceFilesResponse, err error) { - return c.ListResourceFilesWithContext(context.Background(), request) -} - -// ListResourceFiles -// 获取资源文件列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) ListResourceFilesWithContext(ctx context.Context, request *ListResourceFilesRequest) (response *ListResourceFilesResponse, err error) { - if request == nil { - request = NewListResourceFilesRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListResourceFiles") - - if c.GetCredential() == nil { - return nil, errors.New("ListResourceFiles require credential") - } - - request.SetContext(ctx) - - response = NewListResourceFilesResponse() - err = c.Send(request, response) - return -} - -func NewListResourceFoldersRequest() (request *ListResourceFoldersRequest) { - request = &ListResourceFoldersRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListResourceFolders") - - - return -} - -func NewListResourceFoldersResponse() (response *ListResourceFoldersResponse) { - response = &ListResourceFoldersResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListResourceFolders -// 查询资源文件文件夹列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) ListResourceFolders(request *ListResourceFoldersRequest) (response *ListResourceFoldersResponse, err error) { - return c.ListResourceFoldersWithContext(context.Background(), request) -} - -// ListResourceFolders -// 查询资源文件文件夹列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) ListResourceFoldersWithContext(ctx context.Context, request *ListResourceFoldersRequest) (response *ListResourceFoldersResponse, err error) { - if request == nil { - request = NewListResourceFoldersRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListResourceFolders") - - if c.GetCredential() == nil { - return nil, errors.New("ListResourceFolders require credential") - } - - request.SetContext(ctx) - - response = NewListResourceFoldersResponse() - err = c.Send(request, response) - return -} - -func NewListSQLFolderContentsRequest() (request *ListSQLFolderContentsRequest) { - request = &ListSQLFolderContentsRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListSQLFolderContents") - - - return -} - -func NewListSQLFolderContentsResponse() (response *ListSQLFolderContentsResponse) { - response = &ListSQLFolderContentsResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListSQLFolderContents -// 查询数据探索文件夹树,包括文件夹下的脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListSQLFolderContents(request *ListSQLFolderContentsRequest) (response *ListSQLFolderContentsResponse, err error) { - return c.ListSQLFolderContentsWithContext(context.Background(), request) -} - -// ListSQLFolderContents -// 查询数据探索文件夹树,包括文件夹下的脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListSQLFolderContentsWithContext(ctx context.Context, request *ListSQLFolderContentsRequest) (response *ListSQLFolderContentsResponse, err error) { - if request == nil { - request = NewListSQLFolderContentsRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListSQLFolderContents") - - if c.GetCredential() == nil { - return nil, errors.New("ListSQLFolderContents require credential") - } - - request.SetContext(ctx) - - response = NewListSQLFolderContentsResponse() - err = c.Send(request, response) - return -} - -func NewListSQLScriptRunsRequest() (request *ListSQLScriptRunsRequest) { - request = &ListSQLScriptRunsRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListSQLScriptRuns") - - - return -} - -func NewListSQLScriptRunsResponse() (response *ListSQLScriptRunsResponse) { - response = &ListSQLScriptRunsResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListSQLScriptRuns -// 查询SQL运行记录 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListSQLScriptRuns(request *ListSQLScriptRunsRequest) (response *ListSQLScriptRunsResponse, err error) { - return c.ListSQLScriptRunsWithContext(context.Background(), request) -} - -// ListSQLScriptRuns -// 查询SQL运行记录 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) ListSQLScriptRunsWithContext(ctx context.Context, request *ListSQLScriptRunsRequest) (response *ListSQLScriptRunsResponse, err error) { - if request == nil { - request = NewListSQLScriptRunsRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListSQLScriptRuns") - - if c.GetCredential() == nil { - return nil, errors.New("ListSQLScriptRuns require credential") - } - - request.SetContext(ctx) - - response = NewListSQLScriptRunsResponse() - err = c.Send(request, response) - return -} - -func NewListTaskInstanceExecutionsRequest() (request *ListTaskInstanceExecutionsRequest) { - request = &ListTaskInstanceExecutionsRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListTaskInstanceExecutions") - - - return -} - -func NewListTaskInstanceExecutionsResponse() (response *ListTaskInstanceExecutionsResponse) { - response = &ListTaskInstanceExecutionsResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListTaskInstanceExecutions -// 调度实例详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTaskInstanceExecutions(request *ListTaskInstanceExecutionsRequest) (response *ListTaskInstanceExecutionsResponse, err error) { - return c.ListTaskInstanceExecutionsWithContext(context.Background(), request) -} - -// ListTaskInstanceExecutions -// 调度实例详情 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTaskInstanceExecutionsWithContext(ctx context.Context, request *ListTaskInstanceExecutionsRequest) (response *ListTaskInstanceExecutionsResponse, err error) { - if request == nil { - request = NewListTaskInstanceExecutionsRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTaskInstanceExecutions") - - if c.GetCredential() == nil { - return nil, errors.New("ListTaskInstanceExecutions require credential") - } - - request.SetContext(ctx) - - response = NewListTaskInstanceExecutionsResponse() - err = c.Send(request, response) - return -} - -func NewListTaskInstancesRequest() (request *ListTaskInstancesRequest) { - request = &ListTaskInstancesRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListTaskInstances") - - - return -} - -func NewListTaskInstancesResponse() (response *ListTaskInstancesResponse) { - response = &ListTaskInstancesResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListTaskInstances -// 获取实例列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTaskInstances(request *ListTaskInstancesRequest) (response *ListTaskInstancesResponse, err error) { - return c.ListTaskInstancesWithContext(context.Background(), request) -} - -// ListTaskInstances -// 获取实例列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTaskInstancesWithContext(ctx context.Context, request *ListTaskInstancesRequest) (response *ListTaskInstancesResponse, err error) { - if request == nil { - request = NewListTaskInstancesRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTaskInstances") - - if c.GetCredential() == nil { - return nil, errors.New("ListTaskInstances require credential") - } - - request.SetContext(ctx) - - response = NewListTaskInstancesResponse() - err = c.Send(request, response) - return -} - -func NewListTaskVersionsRequest() (request *ListTaskVersionsRequest) { - request = &ListTaskVersionsRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListTaskVersions") - - - return -} - -func NewListTaskVersionsResponse() (response *ListTaskVersionsResponse) { - response = &ListTaskVersionsResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListTaskVersions -// 任务保存版本列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTaskVersions(request *ListTaskVersionsRequest) (response *ListTaskVersionsResponse, err error) { - return c.ListTaskVersionsWithContext(context.Background(), request) -} - -// ListTaskVersions -// 任务保存版本列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTaskVersionsWithContext(ctx context.Context, request *ListTaskVersionsRequest) (response *ListTaskVersionsResponse, err error) { - if request == nil { - request = NewListTaskVersionsRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTaskVersions") - - if c.GetCredential() == nil { - return nil, errors.New("ListTaskVersions require credential") - } - - request.SetContext(ctx) - - response = NewListTaskVersionsResponse() - err = c.Send(request, response) - return -} - -func NewListTasksRequest() (request *ListTasksRequest) { - request = &ListTasksRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListTasks") - - - return -} - -func NewListTasksResponse() (response *ListTasksResponse) { - response = &ListTasksResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListTasks -// 查询任务分页信息 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTasks(request *ListTasksRequest) (response *ListTasksResponse, err error) { - return c.ListTasksWithContext(context.Background(), request) -} - -// ListTasks -// 查询任务分页信息 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTasksWithContext(ctx context.Context, request *ListTasksRequest) (response *ListTasksResponse, err error) { - if request == nil { - request = NewListTasksRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTasks") - - if c.GetCredential() == nil { - return nil, errors.New("ListTasks require credential") - } - - request.SetContext(ctx) - - response = NewListTasksResponse() - err = c.Send(request, response) - return -} - -func NewListUpstreamOpsTasksRequest() (request *ListUpstreamOpsTasksRequest) { - request = &ListUpstreamOpsTasksRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListUpstreamOpsTasks") - - - return -} - -func NewListUpstreamOpsTasksResponse() (response *ListUpstreamOpsTasksResponse) { - response = &ListUpstreamOpsTasksResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListUpstreamOpsTasks -// 获取任务直接上游 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListUpstreamOpsTasks(request *ListUpstreamOpsTasksRequest) (response *ListUpstreamOpsTasksResponse, err error) { - return c.ListUpstreamOpsTasksWithContext(context.Background(), request) -} - -// ListUpstreamOpsTasks -// 获取任务直接上游 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListUpstreamOpsTasksWithContext(ctx context.Context, request *ListUpstreamOpsTasksRequest) (response *ListUpstreamOpsTasksResponse, err error) { - if request == nil { - request = NewListUpstreamOpsTasksRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListUpstreamOpsTasks") - - if c.GetCredential() == nil { - return nil, errors.New("ListUpstreamOpsTasks require credential") - } - - request.SetContext(ctx) - - response = NewListUpstreamOpsTasksResponse() - err = c.Send(request, response) - return -} - -func NewListUpstreamTaskInstancesRequest() (request *ListUpstreamTaskInstancesRequest) { - request = &ListUpstreamTaskInstancesRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListUpstreamTaskInstances") - - - return -} - -func NewListUpstreamTaskInstancesResponse() (response *ListUpstreamTaskInstancesResponse) { - response = &ListUpstreamTaskInstancesResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListUpstreamTaskInstances -// 获取实例直接上游 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListUpstreamTaskInstances(request *ListUpstreamTaskInstancesRequest) (response *ListUpstreamTaskInstancesResponse, err error) { - return c.ListUpstreamTaskInstancesWithContext(context.Background(), request) -} - -// ListUpstreamTaskInstances -// 获取实例直接上游 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListUpstreamTaskInstancesWithContext(ctx context.Context, request *ListUpstreamTaskInstancesRequest) (response *ListUpstreamTaskInstancesResponse, err error) { - if request == nil { - request = NewListUpstreamTaskInstancesRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListUpstreamTaskInstances") - - if c.GetCredential() == nil { - return nil, errors.New("ListUpstreamTaskInstances require credential") - } - - request.SetContext(ctx) - - response = NewListUpstreamTaskInstancesResponse() - err = c.Send(request, response) - return -} - -func NewListUpstreamTasksRequest() (request *ListUpstreamTasksRequest) { - request = &ListUpstreamTasksRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListUpstreamTasks") - - - return -} - -func NewListUpstreamTasksResponse() (response *ListUpstreamTasksResponse) { - response = &ListUpstreamTasksResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListUpstreamTasks -// 获取任务直接上游 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListUpstreamTasks(request *ListUpstreamTasksRequest) (response *ListUpstreamTasksResponse, err error) { - return c.ListUpstreamTasksWithContext(context.Background(), request) -} - -// ListUpstreamTasks -// 获取任务直接上游 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListUpstreamTasksWithContext(ctx context.Context, request *ListUpstreamTasksRequest) (response *ListUpstreamTasksResponse, err error) { - if request == nil { - request = NewListUpstreamTasksRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListUpstreamTasks") - - if c.GetCredential() == nil { - return nil, errors.New("ListUpstreamTasks require credential") - } - - request.SetContext(ctx) - - response = NewListUpstreamTasksResponse() - err = c.Send(request, response) - return -} - -func NewListWorkflowFoldersRequest() (request *ListWorkflowFoldersRequest) { - request = &ListWorkflowFoldersRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListWorkflowFolders") - - - return -} - -func NewListWorkflowFoldersResponse() (response *ListWorkflowFoldersResponse) { - response = &ListWorkflowFoldersResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListWorkflowFolders -// 查询文件夹列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) ListWorkflowFolders(request *ListWorkflowFoldersRequest) (response *ListWorkflowFoldersResponse, err error) { - return c.ListWorkflowFoldersWithContext(context.Background(), request) -} - -// ListWorkflowFolders -// 查询文件夹列表 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) ListWorkflowFoldersWithContext(ctx context.Context, request *ListWorkflowFoldersRequest) (response *ListWorkflowFoldersResponse, err error) { - if request == nil { - request = NewListWorkflowFoldersRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListWorkflowFolders") - - if c.GetCredential() == nil { - return nil, errors.New("ListWorkflowFolders require credential") - } - - request.SetContext(ctx) - - response = NewListWorkflowFoldersResponse() - err = c.Send(request, response) - return -} - -func NewListWorkflowsRequest() (request *ListWorkflowsRequest) { - request = &ListWorkflowsRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "ListWorkflows") - - - return -} - -func NewListWorkflowsResponse() (response *ListWorkflowsResponse) { - response = &ListWorkflowsResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// ListWorkflows -// 查询工作流列表 -// -// 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListWorkflows(request *ListWorkflowsRequest) (response *ListWorkflowsResponse, err error) { - return c.ListWorkflowsWithContext(context.Background(), request) -} - -// ListWorkflows -// 查询工作流列表 -// -// 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListWorkflowsWithContext(ctx context.Context, request *ListWorkflowsRequest) (response *ListWorkflowsResponse, err error) { - if request == nil { - request = NewListWorkflowsRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListWorkflows") - - if c.GetCredential() == nil { - return nil, errors.New("ListWorkflows require credential") - } - - request.SetContext(ctx) - - response = NewListWorkflowsResponse() - err = c.Send(request, response) - return -} - -func NewPauseOpsTasksAsyncRequest() (request *PauseOpsTasksAsyncRequest) { - request = &PauseOpsTasksAsyncRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "PauseOpsTasksAsync") - - - return -} - -func NewPauseOpsTasksAsyncResponse() (response *PauseOpsTasksAsyncResponse) { - response = &PauseOpsTasksAsyncResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// PauseOpsTasksAsync -// 异步批量暂停任务 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) PauseOpsTasksAsync(request *PauseOpsTasksAsyncRequest) (response *PauseOpsTasksAsyncResponse, err error) { - return c.PauseOpsTasksAsyncWithContext(context.Background(), request) -} - -// PauseOpsTasksAsync -// 异步批量暂停任务 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) PauseOpsTasksAsyncWithContext(ctx context.Context, request *PauseOpsTasksAsyncRequest) (response *PauseOpsTasksAsyncResponse, err error) { - if request == nil { - request = NewPauseOpsTasksAsyncRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "PauseOpsTasksAsync") - - if c.GetCredential() == nil { - return nil, errors.New("PauseOpsTasksAsync require credential") - } - - request.SetContext(ctx) - - response = NewPauseOpsTasksAsyncResponse() - err = c.Send(request, response) - return -} - -func NewRerunTaskInstancesAsyncRequest() (request *RerunTaskInstancesAsyncRequest) { - request = &RerunTaskInstancesAsyncRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "RerunTaskInstancesAsync") - - - return -} - -func NewRerunTaskInstancesAsyncResponse() (response *RerunTaskInstancesAsyncResponse) { - response = &RerunTaskInstancesAsyncResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// RerunTaskInstancesAsync -// 实例批量重跑-异步 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) RerunTaskInstancesAsync(request *RerunTaskInstancesAsyncRequest) (response *RerunTaskInstancesAsyncResponse, err error) { - return c.RerunTaskInstancesAsyncWithContext(context.Background(), request) -} - -// RerunTaskInstancesAsync -// 实例批量重跑-异步 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) RerunTaskInstancesAsyncWithContext(ctx context.Context, request *RerunTaskInstancesAsyncRequest) (response *RerunTaskInstancesAsyncResponse, err error) { - if request == nil { - request = NewRerunTaskInstancesAsyncRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "RerunTaskInstancesAsync") - - if c.GetCredential() == nil { - return nil, errors.New("RerunTaskInstancesAsync require credential") - } - - request.SetContext(ctx) - - response = NewRerunTaskInstancesAsyncResponse() - err = c.Send(request, response) - return -} - -func NewRunSQLScriptRequest() (request *RunSQLScriptRequest) { - request = &RunSQLScriptRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "RunSQLScript") - - - return -} - -func NewRunSQLScriptResponse() (response *RunSQLScriptResponse) { - response = &RunSQLScriptResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// RunSQLScript -// 运行SQL脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) RunSQLScript(request *RunSQLScriptRequest) (response *RunSQLScriptResponse, err error) { - return c.RunSQLScriptWithContext(context.Background(), request) -} - -// RunSQLScript -// 运行SQL脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) RunSQLScriptWithContext(ctx context.Context, request *RunSQLScriptRequest) (response *RunSQLScriptResponse, err error) { - if request == nil { - request = NewRunSQLScriptRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "RunSQLScript") - - if c.GetCredential() == nil { - return nil, errors.New("RunSQLScript require credential") - } - - request.SetContext(ctx) - - response = NewRunSQLScriptResponse() - err = c.Send(request, response) - return -} - -func NewSetSuccessTaskInstancesAsyncRequest() (request *SetSuccessTaskInstancesAsyncRequest) { - request = &SetSuccessTaskInstancesAsyncRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "SetSuccessTaskInstancesAsync") - - - return -} - -func NewSetSuccessTaskInstancesAsyncResponse() (response *SetSuccessTaskInstancesAsyncResponse) { - response = &SetSuccessTaskInstancesAsyncResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// SetSuccessTaskInstancesAsync -// 实例批量置成功-异步 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) SetSuccessTaskInstancesAsync(request *SetSuccessTaskInstancesAsyncRequest) (response *SetSuccessTaskInstancesAsyncResponse, err error) { - return c.SetSuccessTaskInstancesAsyncWithContext(context.Background(), request) -} - -// SetSuccessTaskInstancesAsync -// 实例批量置成功-异步 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) SetSuccessTaskInstancesAsyncWithContext(ctx context.Context, request *SetSuccessTaskInstancesAsyncRequest) (response *SetSuccessTaskInstancesAsyncResponse, err error) { - if request == nil { - request = NewSetSuccessTaskInstancesAsyncRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "SetSuccessTaskInstancesAsync") - - if c.GetCredential() == nil { - return nil, errors.New("SetSuccessTaskInstancesAsync require credential") - } - - request.SetContext(ctx) - - response = NewSetSuccessTaskInstancesAsyncResponse() - err = c.Send(request, response) - return -} - -func NewStopOpsTasksAsyncRequest() (request *StopOpsTasksAsyncRequest) { - request = &StopOpsTasksAsyncRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "StopOpsTasksAsync") - - - return -} - -func NewStopOpsTasksAsyncResponse() (response *StopOpsTasksAsyncResponse) { - response = &StopOpsTasksAsyncResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// StopOpsTasksAsync -// 异步批量下线任务 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) StopOpsTasksAsync(request *StopOpsTasksAsyncRequest) (response *StopOpsTasksAsyncResponse, err error) { - return c.StopOpsTasksAsyncWithContext(context.Background(), request) -} - -// StopOpsTasksAsync -// 异步批量下线任务 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) StopOpsTasksAsyncWithContext(ctx context.Context, request *StopOpsTasksAsyncRequest) (response *StopOpsTasksAsyncResponse, err error) { - if request == nil { - request = NewStopOpsTasksAsyncRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "StopOpsTasksAsync") - - if c.GetCredential() == nil { - return nil, errors.New("StopOpsTasksAsync require credential") - } - - request.SetContext(ctx) - - response = NewStopOpsTasksAsyncResponse() - err = c.Send(request, response) - return -} - -func NewStopSQLScriptRunRequest() (request *StopSQLScriptRunRequest) { - request = &StopSQLScriptRunRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "StopSQLScriptRun") - - - return -} - -func NewStopSQLScriptRunResponse() (response *StopSQLScriptRunResponse) { - response = &StopSQLScriptRunResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// StopSQLScriptRun -// 停止运行SQL脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) StopSQLScriptRun(request *StopSQLScriptRunRequest) (response *StopSQLScriptRunResponse, err error) { - return c.StopSQLScriptRunWithContext(context.Background(), request) -} - -// StopSQLScriptRun -// 停止运行SQL脚本 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) StopSQLScriptRunWithContext(ctx context.Context, request *StopSQLScriptRunRequest) (response *StopSQLScriptRunResponse, err error) { - if request == nil { - request = NewStopSQLScriptRunRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "StopSQLScriptRun") - - if c.GetCredential() == nil { - return nil, errors.New("StopSQLScriptRun require credential") - } - - request.SetContext(ctx) - - response = NewStopSQLScriptRunResponse() - err = c.Send(request, response) - return -} - -func NewSubmitTaskRequest() (request *SubmitTaskRequest) { - request = &SubmitTaskRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "SubmitTask") - - - return -} - -func NewSubmitTaskResponse() (response *SubmitTaskResponse) { - response = &SubmitTaskResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// SubmitTask -// 提交任务。 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) SubmitTask(request *SubmitTaskRequest) (response *SubmitTaskResponse, err error) { - return c.SubmitTaskWithContext(context.Background(), request) -} - -// SubmitTask -// 提交任务。 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) SubmitTaskWithContext(ctx context.Context, request *SubmitTaskRequest) (response *SubmitTaskResponse, err error) { - if request == nil { - request = NewSubmitTaskRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "SubmitTask") - - if c.GetCredential() == nil { - return nil, errors.New("SubmitTask require credential") - } - - request.SetContext(ctx) - - response = NewSubmitTaskResponse() - err = c.Send(request, response) - return -} - -func NewUpdateCodeFileRequest() (request *UpdateCodeFileRequest) { - request = &UpdateCodeFileRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateCodeFile") - - - return -} - -func NewUpdateCodeFileResponse() (response *UpdateCodeFileResponse) { - response = &UpdateCodeFileResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateCodeFile -// 更新代码文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) UpdateCodeFile(request *UpdateCodeFileRequest) (response *UpdateCodeFileResponse, err error) { - return c.UpdateCodeFileWithContext(context.Background(), request) -} - -// UpdateCodeFile -// 更新代码文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) UpdateCodeFileWithContext(ctx context.Context, request *UpdateCodeFileRequest) (response *UpdateCodeFileResponse, err error) { - if request == nil { - request = NewUpdateCodeFileRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateCodeFile") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateCodeFile require credential") - } - - request.SetContext(ctx) - - response = NewUpdateCodeFileResponse() - err = c.Send(request, response) - return -} - -func NewUpdateCodeFolderRequest() (request *UpdateCodeFolderRequest) { - request = &UpdateCodeFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateCodeFolder") - - - return -} - -func NewUpdateCodeFolderResponse() (response *UpdateCodeFolderResponse) { - response = &UpdateCodeFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateCodeFolder -// 重命名代码文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) UpdateCodeFolder(request *UpdateCodeFolderRequest) (response *UpdateCodeFolderResponse, err error) { - return c.UpdateCodeFolderWithContext(context.Background(), request) -} - -// UpdateCodeFolder -// 重命名代码文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) UpdateCodeFolderWithContext(ctx context.Context, request *UpdateCodeFolderRequest) (response *UpdateCodeFolderResponse, err error) { - if request == nil { - request = NewUpdateCodeFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateCodeFolder") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateCodeFolder require credential") - } - - request.SetContext(ctx) - - response = NewUpdateCodeFolderResponse() - err = c.Send(request, response) - return -} - -func NewUpdateOpsAlarmRuleRequest() (request *UpdateOpsAlarmRuleRequest) { - request = &UpdateOpsAlarmRuleRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateOpsAlarmRule") - - - return -} - -func NewUpdateOpsAlarmRuleResponse() (response *UpdateOpsAlarmRuleResponse) { - response = &UpdateOpsAlarmRuleResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateOpsAlarmRule -// 修改告警规则 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" -// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" -// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" -func (c *Client) UpdateOpsAlarmRule(request *UpdateOpsAlarmRuleRequest) (response *UpdateOpsAlarmRuleResponse, err error) { - return c.UpdateOpsAlarmRuleWithContext(context.Background(), request) -} - -// UpdateOpsAlarmRule -// 修改告警规则 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" -// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" -// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" -func (c *Client) UpdateOpsAlarmRuleWithContext(ctx context.Context, request *UpdateOpsAlarmRuleRequest) (response *UpdateOpsAlarmRuleResponse, err error) { - if request == nil { - request = NewUpdateOpsAlarmRuleRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateOpsAlarmRule") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateOpsAlarmRule require credential") - } - - request.SetContext(ctx) - - response = NewUpdateOpsAlarmRuleResponse() - err = c.Send(request, response) - return -} - -func NewUpdateOpsTasksOwnerRequest() (request *UpdateOpsTasksOwnerRequest) { - request = &UpdateOpsTasksOwnerRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateOpsTasksOwner") - - - return -} - -func NewUpdateOpsTasksOwnerResponse() (response *UpdateOpsTasksOwnerResponse) { - response = &UpdateOpsTasksOwnerResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateOpsTasksOwner -// 修改任务负责人 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" -// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" -// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" -func (c *Client) UpdateOpsTasksOwner(request *UpdateOpsTasksOwnerRequest) (response *UpdateOpsTasksOwnerResponse, err error) { - return c.UpdateOpsTasksOwnerWithContext(context.Background(), request) -} - -// UpdateOpsTasksOwner -// 修改任务负责人 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" -// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" -// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" -func (c *Client) UpdateOpsTasksOwnerWithContext(ctx context.Context, request *UpdateOpsTasksOwnerRequest) (response *UpdateOpsTasksOwnerResponse, err error) { - if request == nil { - request = NewUpdateOpsTasksOwnerRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateOpsTasksOwner") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateOpsTasksOwner require credential") - } - - request.SetContext(ctx) - - response = NewUpdateOpsTasksOwnerResponse() - err = c.Send(request, response) - return -} - -func NewUpdateResourceFileRequest() (request *UpdateResourceFileRequest) { - request = &UpdateResourceFileRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateResourceFile") - - - return -} - -func NewUpdateResourceFileResponse() (response *UpdateResourceFileResponse) { - response = &UpdateResourceFileResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateResourceFile -// 更新资源文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) UpdateResourceFile(request *UpdateResourceFileRequest) (response *UpdateResourceFileResponse, err error) { - return c.UpdateResourceFileWithContext(context.Background(), request) -} - -// UpdateResourceFile -// 更新资源文件 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) UpdateResourceFileWithContext(ctx context.Context, request *UpdateResourceFileRequest) (response *UpdateResourceFileResponse, err error) { - if request == nil { - request = NewUpdateResourceFileRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateResourceFile") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateResourceFile require credential") - } - - request.SetContext(ctx) - - response = NewUpdateResourceFileResponse() - err = c.Send(request, response) - return -} - -func NewUpdateResourceFolderRequest() (request *UpdateResourceFolderRequest) { - request = &UpdateResourceFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateResourceFolder") - - - return -} - -func NewUpdateResourceFolderResponse() (response *UpdateResourceFolderResponse) { - response = &UpdateResourceFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateResourceFolder -// 创建资源文件文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) UpdateResourceFolder(request *UpdateResourceFolderRequest) (response *UpdateResourceFolderResponse, err error) { - return c.UpdateResourceFolderWithContext(context.Background(), request) -} - -// UpdateResourceFolder -// 创建资源文件文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) UpdateResourceFolderWithContext(ctx context.Context, request *UpdateResourceFolderRequest) (response *UpdateResourceFolderResponse, err error) { - if request == nil { - request = NewUpdateResourceFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateResourceFolder") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateResourceFolder require credential") - } - - request.SetContext(ctx) - - response = NewUpdateResourceFolderResponse() - err = c.Send(request, response) - return -} - -func NewUpdateSQLFolderRequest() (request *UpdateSQLFolderRequest) { - request = &UpdateSQLFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateSQLFolder") - - - return -} - -func NewUpdateSQLFolderResponse() (response *UpdateSQLFolderResponse) { - response = &UpdateSQLFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateSQLFolder -// 重命名SQL文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) UpdateSQLFolder(request *UpdateSQLFolderRequest) (response *UpdateSQLFolderResponse, err error) { - return c.UpdateSQLFolderWithContext(context.Background(), request) -} - -// UpdateSQLFolder -// 重命名SQL文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) UpdateSQLFolderWithContext(ctx context.Context, request *UpdateSQLFolderRequest) (response *UpdateSQLFolderResponse, err error) { - if request == nil { - request = NewUpdateSQLFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateSQLFolder") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateSQLFolder require credential") - } - - request.SetContext(ctx) - - response = NewUpdateSQLFolderResponse() - err = c.Send(request, response) - return -} - -func NewUpdateSQLScriptRequest() (request *UpdateSQLScriptRequest) { - request = &UpdateSQLScriptRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateSQLScript") - - - return -} - -func NewUpdateSQLScriptResponse() (response *UpdateSQLScriptResponse) { - response = &UpdateSQLScriptResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateSQLScript -// 保存探索脚本内容 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) UpdateSQLScript(request *UpdateSQLScriptRequest) (response *UpdateSQLScriptResponse, err error) { - return c.UpdateSQLScriptWithContext(context.Background(), request) -} - -// UpdateSQLScript -// 保存探索脚本内容 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) UpdateSQLScriptWithContext(ctx context.Context, request *UpdateSQLScriptRequest) (response *UpdateSQLScriptResponse, err error) { - if request == nil { - request = NewUpdateSQLScriptRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateSQLScript") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateSQLScript require credential") - } - - request.SetContext(ctx) - - response = NewUpdateSQLScriptResponse() - err = c.Send(request, response) - return -} - -func NewUpdateTaskRequest() (request *UpdateTaskRequest) { - request = &UpdateTaskRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateTask") - - - return -} - -func NewUpdateTaskResponse() (response *UpdateTaskResponse) { - response = &UpdateTaskResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateTask -// 创建任务接口 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) UpdateTask(request *UpdateTaskRequest) (response *UpdateTaskResponse, err error) { - return c.UpdateTaskWithContext(context.Background(), request) -} - -// UpdateTask -// 创建任务接口 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) UpdateTaskWithContext(ctx context.Context, request *UpdateTaskRequest) (response *UpdateTaskResponse, err error) { - if request == nil { - request = NewUpdateTaskRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateTask") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateTask require credential") - } - - request.SetContext(ctx) - - response = NewUpdateTaskResponse() - err = c.Send(request, response) - return -} - -func NewUpdateWorkflowRequest() (request *UpdateWorkflowRequest) { - request = &UpdateWorkflowRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateWorkflow") - - - return -} - -func NewUpdateWorkflowResponse() (response *UpdateWorkflowResponse) { - response = &UpdateWorkflowResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateWorkflow -// 更新工作流(包括工作流基本信息与工作流参数) -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) UpdateWorkflow(request *UpdateWorkflowRequest) (response *UpdateWorkflowResponse, err error) { - return c.UpdateWorkflowWithContext(context.Background(), request) -} - -// UpdateWorkflow -// 更新工作流(包括工作流基本信息与工作流参数) -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) UpdateWorkflowWithContext(ctx context.Context, request *UpdateWorkflowRequest) (response *UpdateWorkflowResponse, err error) { - if request == nil { - request = NewUpdateWorkflowRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateWorkflow") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateWorkflow require credential") - } - - request.SetContext(ctx) - - response = NewUpdateWorkflowResponse() - err = c.Send(request, response) - return -} - -func NewUpdateWorkflowFolderRequest() (request *UpdateWorkflowFolderRequest) { - request = &UpdateWorkflowFolderRequest{ - BaseRequest: &tchttp.BaseRequest{}, - } - - request.Init().WithApiInfo("wedata", APIVersion, "UpdateWorkflowFolder") - - - return -} - -func NewUpdateWorkflowFolderResponse() (response *UpdateWorkflowFolderResponse) { - response = &UpdateWorkflowFolderResponse{ - BaseResponse: &tchttp.BaseResponse{}, - } - return - -} - -// UpdateWorkflowFolder -// 创建文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) UpdateWorkflowFolder(request *UpdateWorkflowFolderRequest) (response *UpdateWorkflowFolderResponse, err error) { - return c.UpdateWorkflowFolderWithContext(context.Background(), request) -} - -// UpdateWorkflowFolder -// 创建文件夹 -// -// 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// LIMITEXCEEDED = "LimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED = "OperationDenied" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) UpdateWorkflowFolderWithContext(ctx context.Context, request *UpdateWorkflowFolderRequest) (response *UpdateWorkflowFolderResponse, err error) { - if request == nil { - request = NewUpdateWorkflowFolderRequest() - } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateWorkflowFolder") - - if c.GetCredential() == nil { - return nil, errors.New("UpdateWorkflowFolder require credential") - } - - request.SetContext(ctx) - - response = NewUpdateWorkflowFolderResponse() - err = c.Send(request, response) - return -} diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/errors.go deleted file mode 100644 index 5e38c12c5e..0000000000 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/errors.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2017-2025 Tencent. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package v20250806 - -const ( - // 此产品的特有错误码 - - // CAM签名/鉴权错误。 - AUTHFAILURE = "AuthFailure" - - // 操作失败。 - FAILEDOPERATION = "FailedOperation" - - // 内部错误。 - INTERNALERROR = "InternalError" - - // 参数错误。 - INVALIDPARAMETER = "InvalidParameter" - - // ClientIp未被授权。 - INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" - - // Missing Servlet Request Parameter - INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" - - // 参数取值错误。 - INVALIDPARAMETERVALUE = "InvalidParameterValue" - - // 告警规则名称重复 - INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" - - // Param Validation Error - INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" - - // 超过配额限制。 - LIMITEXCEEDED = "LimitExceeded" - - // 缺少参数错误。 - MISSINGPARAMETER = "MissingParameter" - - // 操作被拒绝。 - OPERATIONDENIED = "OperationDenied" - - // 资源被占用。 - RESOURCEINUSE = "ResourceInUse" - - // 资源不存在。 - RESOURCENOTFOUND = "ResourceNotFound" -) diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/models.go deleted file mode 100644 index f85e92b853..0000000000 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/models.go +++ /dev/null @@ -1,9928 +0,0 @@ -// Copyright (c) 2017-2025 Tencent. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package v20250806 - -import ( - tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" - tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" - "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json" -) - -type AlarmGroup struct { - // 告警升级人ID列表 - // 若告警接收人或上级升级人未在告警间隔时间内确认告警,则会发送告警给下一级升级人。 - AlarmEscalationRecipientIds []*string `json:"AlarmEscalationRecipientIds,omitnil,omitempty" name:"AlarmEscalationRecipientIds"` - - // 告警升级间隔 - AlarmEscalationInterval *int64 `json:"AlarmEscalationInterval,omitnil,omitempty" name:"AlarmEscalationInterval"` - - // 告警通知疲劳配置 - NotificationFatigue *NotificationFatigue `json:"NotificationFatigue,omitnil,omitempty" name:"NotificationFatigue"` - - // 告警渠道 1.邮件,2.短信,3.微信,4.语音,5.企业微信,6.Http,7.企业微信群 8 飞书群 9 钉钉群 10 Slack群 11 Teams群(默认1.邮件) 7.企业微信群 8 飞书群 9 钉钉群 10 Slack群 11 Teams群 只能选择一个渠道 - AlarmWays []*string `json:"AlarmWays,omitnil,omitempty" name:"AlarmWays"` - - // 企业微信群/飞书群/钉钉群 /Slack群/Teams群的webhook地址列表 - WebHooks []*AlarmWayWebHook `json:"WebHooks,omitnil,omitempty" name:"WebHooks"` - - // 告警接收人类型:1.指定人员,2.任务责任人,3.值班表(默认1.指定人员) - AlarmRecipientType *int64 `json:"AlarmRecipientType,omitnil,omitempty" name:"AlarmRecipientType"` - - // 根据AlarmRecipientType的类型该列表具有不同的业务id 1(指定人员): 告警接收人id列表 2(任务责任人):无需配置 3(值班表):值班表id列表 - AlarmRecipientIds []*string `json:"AlarmRecipientIds,omitnil,omitempty" name:"AlarmRecipientIds"` -} - -type AlarmMessage struct { - // 告警消息Id - AlarmMessageId *uint64 `json:"AlarmMessageId,omitnil,omitempty" name:"AlarmMessageId"` - - // 告警时间,同一条告警可能发送多次,只显示最新的告警时间 - AlarmTime *string `json:"AlarmTime,omitnil,omitempty" name:"AlarmTime"` - - // 任务名称 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务的实例数据时间 - CurRunDate *string `json:"CurRunDate,omitnil,omitempty" name:"CurRunDate"` - - // 告警原因 - AlarmReason *string `json:"AlarmReason,omitnil,omitempty" name:"AlarmReason"` - - // 告警级别,1.普通, 2.重要,3.紧急 - AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 告警规则Id - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` - - // 告警渠道 1.邮件,2.短信,3.微信,4.语音,5.企业微信,6.Http,7.企业微信群, 8.飞书群,9.钉钉群,10.Slack群,11.Teams群(默认1.邮件),7.企业微信群,8.飞书群,9.钉钉群,10.Slack群,11.Teams群 - AlarmWays []*string `json:"AlarmWays,omitnil,omitempty" name:"AlarmWays"` - - // 告警接收人 - AlarmRecipients []*string `json:"AlarmRecipients,omitnil,omitempty" name:"AlarmRecipients"` -} - -type AlarmQuietInterval struct { - // ISO标准,1表示周一,7表示周日。 - DaysOfWeek []*uint64 `json:"DaysOfWeek,omitnil,omitempty" name:"DaysOfWeek"` - - // 开始时间,精度时分秒,格式 HH:mm:ss - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 结束时间,精度时分秒,格式 HH:mm:ss - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` -} - -type AlarmRuleData struct { - // 告警规则id - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` - - // 告警规则名称 - AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` - - // 告警规则描述 - Description *string `json:"Description,omitnil,omitempty" name:"Description"` - - // 监控对象类型, - // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) - // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 - MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` - - // 根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 - MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` - - // 告警规则监控类型 - // failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; - // 项目波动告警 - // projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; - // projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; - // - // 离线集成任务对账告警: - // reconciliationFailure: 离线对账任务失败告警 - // reconciliationOvertime: 离线对账任务运行超时告警 - // reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 - AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` - - // 告警规则是否启用 - // 0-- 禁用 1--启用 - Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` - - // 告警规则配置信息 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 - AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` - - // 告警级别 1.普通、2.重要、3.紧急 - AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 告警规则创建人uid - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // bundle 客户端绑定的告警规则: 为空是正常的告警规则,不为空则是对应bundle客户端绑定的规则 - // 注意:此字段可能返回 null,表示取不到有效值。 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // bundleId不为空 则表示绑定的bundle客户端名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` - - // 告警接收人配置列表 - AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` -} - -type AlarmRuleDetail struct { - // 失败触发时机  - // - // 1 – 首次失败触发 - // 2 --所有重试完成触发 (默认) - // 注意:此字段可能返回 null,表示取不到有效值。 - Trigger *int64 `json:"Trigger,omitnil,omitempty" name:"Trigger"` - - // 补录重跑触发时机 - // - // 1 –  首次失败触发 - // 2 – 所有重试完成触发 - // 注意:此字段可能返回 null,表示取不到有效值。 - DataBackfillOrRerunTrigger *int64 `json:"DataBackfillOrRerunTrigger,omitnil,omitempty" name:"DataBackfillOrRerunTrigger"` - - // 周期实例超时配置明细 - // 注意:此字段可能返回 null,表示取不到有效值。 - TimeOutExtInfo []*TimeOutStrategyInfo `json:"TimeOutExtInfo,omitnil,omitempty" name:"TimeOutExtInfo"` - - // 重跑补录实例超时配置明细 - // 注意:此字段可能返回 null,表示取不到有效值。 - DataBackfillOrRerunTimeOutExtInfo []*TimeOutStrategyInfo `json:"DataBackfillOrRerunTimeOutExtInfo,omitnil,omitempty" name:"DataBackfillOrRerunTimeOutExtInfo"` - - // 项目波动告警配置明细 - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectInstanceStatisticsAlarmInfoList []*ProjectInstanceStatisticsAlarmInfo `json:"ProjectInstanceStatisticsAlarmInfoList,omitnil,omitempty" name:"ProjectInstanceStatisticsAlarmInfoList"` - - // 离线集成对账告警配置信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - ReconciliationExtInfo []*ReconciliationStrategyInfo `json:"ReconciliationExtInfo,omitnil,omitempty" name:"ReconciliationExtInfo"` -} - -type AlarmWayWebHook struct { - // 告警渠道值 - // 7.企业微信群,8 飞书群 9 钉钉群 10 Slack群 11 Teams群 - AlarmWay *string `json:"AlarmWay,omitnil,omitempty" name:"AlarmWay"` - - // 告警群的webhook地址列表 - WebHooks []*string `json:"WebHooks,omitnil,omitempty" name:"WebHooks"` -} - -type BackfillInstance struct { - // 任务名称 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 实例数据时间 - CurRunDate *string `json:"CurRunDate,omitnil,omitempty" name:"CurRunDate"` - - // 执行状态 - State *string `json:"State,omitnil,omitempty" name:"State"` - - // 开始时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 结束时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 执行时长 - // 注意:此字段可能返回 null,表示取不到有效值。 - CostTime *string `json:"CostTime,omitnil,omitempty" name:"CostTime"` -} - -type BackfillInstanceCollection struct { - // 分页页码 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 总页数 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 记录总数 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 补录实例列表 - Items []*BackfillInstance `json:"Items,omitnil,omitempty" name:"Items"` -} - -type ChildDependencyConfigPage struct { - // 结果总数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 总页数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 页码 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 分页数据 - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*OpsTaskDepend `json:"Items,omitnil,omitempty" name:"Items"` -} - -type CodeFile struct { - // 脚本ID - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` - - // 脚本名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeFileName *string `json:"CodeFileName,omitnil,omitempty" name:"CodeFileName"` - - // 脚本所有者 uin - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 脚本配置 - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` - - // 脚本内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` - - // 最近一次操作人 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` - - // 项目ID - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 更新时间 yyyy-MM-dd hh:mm:ss - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` - - // 创建时间 yyyy-MM-dd hh:mm:ss - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 权限范围:SHARED, PRIVATE - // 注意:此字段可能返回 null,表示取不到有效值。 - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` - - // 节点全路径,/aaa/bbb/ccc.ipynb,由各个节点的名称组成 - // 注意:此字段可能返回 null,表示取不到有效值。 - Path *string `json:"Path,omitnil,omitempty" name:"Path"` -} - -type CodeFileConfig struct { - // 高级运行参数,变量替换,map-json String,String - // 注意:此字段可能返回 null,表示取不到有效值。 - Params *string `json:"Params,omitnil,omitempty" name:"Params"` - - // notebook kernel session信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - NotebookSessionInfo *NotebookSessionInfo `json:"NotebookSessionInfo,omitnil,omitempty" name:"NotebookSessionInfo"` -} - -type CodeFolderNode struct { - // 唯一标识 - Id *string `json:"Id,omitnil,omitempty" name:"Id"` - - // 名称 - Title *string `json:"Title,omitnil,omitempty" name:"Title"` - - // 类型 folder,script - Type *string `json:"Type,omitnil,omitempty" name:"Type"` - - // 是否叶子节点 - IsLeaf *bool `json:"IsLeaf,omitnil,omitempty" name:"IsLeaf"` - - // 业务参数 - // 注意:此字段可能返回 null,表示取不到有效值。 - Params *string `json:"Params,omitnil,omitempty" name:"Params"` - - // 权限范围: SHARED, PRIVATE - // 注意:此字段可能返回 null,表示取不到有效值。 - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` - - // 节点路径 - Path *string `json:"Path,omitnil,omitempty" name:"Path"` - - // 目录/文件责任人uin - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 创建人 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 当前用户对节点拥有的权限 - // 注意:此字段可能返回 null,表示取不到有效值。 - NodePermission *string `json:"NodePermission,omitnil,omitempty" name:"NodePermission"` - - // 子节点列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - Children []*CodeFolderNode `json:"Children,omitnil,omitempty" name:"Children"` -} - -type CodeStudioFileActionResult struct { - // 成功true,失败false - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` - - // 文件夹ID - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` -} - -type CodeStudioFolderActionResult struct { - // 成功true,失败false - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` - - // 文件夹ID - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -type CodeStudioFolderResult struct { - // 文件夹ID - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -type CreateAlarmRuleData struct { - // 告警规则唯一id - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` -} - -// Predefined struct for user -type CreateCodeFileRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 代码文件名称 - CodeFileName *string `json:"CodeFileName,omitnil,omitempty" name:"CodeFileName"` - - // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 代码文件配置 - CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` - - // 代码文件内容 - CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` -} - -type CreateCodeFileRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 代码文件名称 - CodeFileName *string `json:"CodeFileName,omitnil,omitempty" name:"CodeFileName"` - - // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 代码文件配置 - CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` - - // 代码文件内容 - CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` -} - -func (r *CreateCodeFileRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateCodeFileRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "CodeFileName") - delete(f, "ParentFolderPath") - delete(f, "CodeFileConfig") - delete(f, "CodeFileContent") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateCodeFileRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateCodeFileResponseParams struct { - // 结果 - Data *CodeFile `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateCodeFileResponse struct { - *tchttp.BaseResponse - Response *CreateCodeFileResponseParams `json:"Response"` -} - -func (r *CreateCodeFileResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateCodeFileResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateCodeFolderRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` -} - -type CreateCodeFolderRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` -} - -func (r *CreateCodeFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateCodeFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "FolderName") - delete(f, "ParentFolderPath") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateCodeFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateCodeFolderResponseParams struct { - // 成功true,失败false - Data *CodeStudioFolderResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateCodeFolderResponse struct { - *tchttp.BaseResponse - Response *CreateCodeFolderResponseParams `json:"Response"` -} - -func (r *CreateCodeFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateCodeFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateDataBackfillPlanRequestParams struct { - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 补录任务集合 - TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` - - // 补录任务的数据时间配置 - DataBackfillRangeList []*DataBackfillRange `json:"DataBackfillRangeList,omitnil,omitempty" name:"DataBackfillRangeList"` - - // 时区,默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // 数据补录计划名称,不填则由系统随机生成一串字符 - DataBackfillPlanName *string `json:"DataBackfillPlanName,omitnil,omitempty" name:"DataBackfillPlanName"` - - // 检查父任务类型,取值范围:- NONE-全部不检查- ALL-检查全部上游父任务- MAKE_SCOPE-只在(当前补录计划)选中任务中检查,默认NONE不检查 - CheckParentType *string `json:"CheckParentType,omitnil,omitempty" name:"CheckParentType"` - - // 补录是否忽略事件依赖,默认true - SkipEventListening *bool `json:"SkipEventListening,omitnil,omitempty" name:"SkipEventListening"` - - // 自定义的工作流自依赖,yes或者no;如果不配置,则使用工作流原有自依赖 - RedefineSelfWorkflowDependency *string `json:"RedefineSelfWorkflowDependency,omitnil,omitempty" name:"RedefineSelfWorkflowDependency"` - - // 自定义实例运行并发度, 如果不配置,则使用任务原有自依赖 - RedefineParallelNum *uint64 `json:"RedefineParallelNum,omitnil,omitempty" name:"RedefineParallelNum"` - - // 调度资源组id,为空则表示使用任务原有调度执行资源组 - SchedulerResourceGroupId *string `json:"SchedulerResourceGroupId,omitnil,omitempty" name:"SchedulerResourceGroupId"` - - // 集成任务资源组id,为空则表示使用任务原有调度执行资源组 - IntegrationResourceGroupId *string `json:"IntegrationResourceGroupId,omitnil,omitempty" name:"IntegrationResourceGroupId"` - - // 自定义参数,可以重新指定任务的参数,方便补录实例执行新的逻辑 - RedefineParamList []*KVPair `json:"RedefineParamList,omitnil,omitempty" name:"RedefineParamList"` - - // 补录是实例数据时间顺序,生效必须满足2个条件: - // 1. 必须同周期任务 - // 2. 优先按依赖关系执行,无依赖关系影响的情况下按配置执行顺序执行 - // - // 可选值 - // - NORMAL: 不设置 - // - ORDER: 顺序 - // - REVERSE: 逆序 - // 不设置默认为NORMAL - DataTimeOrder *string `json:"DataTimeOrder,omitnil,omitempty" name:"DataTimeOrder"` - - // 补录实例重新生成周期,如果设置会重新指定补录任务实例的生成周期,目前只会将天实例转换成每月1号生成的实例 - // * MONTH_CYCLE: 月 - RedefineCycleType *string `json:"RedefineCycleType,omitnil,omitempty" name:"RedefineCycleType"` -} - -type CreateDataBackfillPlanRequest struct { - *tchttp.BaseRequest - - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 补录任务集合 - TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` - - // 补录任务的数据时间配置 - DataBackfillRangeList []*DataBackfillRange `json:"DataBackfillRangeList,omitnil,omitempty" name:"DataBackfillRangeList"` - - // 时区,默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // 数据补录计划名称,不填则由系统随机生成一串字符 - DataBackfillPlanName *string `json:"DataBackfillPlanName,omitnil,omitempty" name:"DataBackfillPlanName"` - - // 检查父任务类型,取值范围:- NONE-全部不检查- ALL-检查全部上游父任务- MAKE_SCOPE-只在(当前补录计划)选中任务中检查,默认NONE不检查 - CheckParentType *string `json:"CheckParentType,omitnil,omitempty" name:"CheckParentType"` - - // 补录是否忽略事件依赖,默认true - SkipEventListening *bool `json:"SkipEventListening,omitnil,omitempty" name:"SkipEventListening"` - - // 自定义的工作流自依赖,yes或者no;如果不配置,则使用工作流原有自依赖 - RedefineSelfWorkflowDependency *string `json:"RedefineSelfWorkflowDependency,omitnil,omitempty" name:"RedefineSelfWorkflowDependency"` - - // 自定义实例运行并发度, 如果不配置,则使用任务原有自依赖 - RedefineParallelNum *uint64 `json:"RedefineParallelNum,omitnil,omitempty" name:"RedefineParallelNum"` - - // 调度资源组id,为空则表示使用任务原有调度执行资源组 - SchedulerResourceGroupId *string `json:"SchedulerResourceGroupId,omitnil,omitempty" name:"SchedulerResourceGroupId"` - - // 集成任务资源组id,为空则表示使用任务原有调度执行资源组 - IntegrationResourceGroupId *string `json:"IntegrationResourceGroupId,omitnil,omitempty" name:"IntegrationResourceGroupId"` - - // 自定义参数,可以重新指定任务的参数,方便补录实例执行新的逻辑 - RedefineParamList []*KVPair `json:"RedefineParamList,omitnil,omitempty" name:"RedefineParamList"` - - // 补录是实例数据时间顺序,生效必须满足2个条件: - // 1. 必须同周期任务 - // 2. 优先按依赖关系执行,无依赖关系影响的情况下按配置执行顺序执行 - // - // 可选值 - // - NORMAL: 不设置 - // - ORDER: 顺序 - // - REVERSE: 逆序 - // 不设置默认为NORMAL - DataTimeOrder *string `json:"DataTimeOrder,omitnil,omitempty" name:"DataTimeOrder"` - - // 补录实例重新生成周期,如果设置会重新指定补录任务实例的生成周期,目前只会将天实例转换成每月1号生成的实例 - // * MONTH_CYCLE: 月 - RedefineCycleType *string `json:"RedefineCycleType,omitnil,omitempty" name:"RedefineCycleType"` -} - -func (r *CreateDataBackfillPlanRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateDataBackfillPlanRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskIds") - delete(f, "DataBackfillRangeList") - delete(f, "TimeZone") - delete(f, "DataBackfillPlanName") - delete(f, "CheckParentType") - delete(f, "SkipEventListening") - delete(f, "RedefineSelfWorkflowDependency") - delete(f, "RedefineParallelNum") - delete(f, "SchedulerResourceGroupId") - delete(f, "IntegrationResourceGroupId") - delete(f, "RedefineParamList") - delete(f, "DataTimeOrder") - delete(f, "RedefineCycleType") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDataBackfillPlanRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateDataBackfillPlanResponseParams struct { - // 数据补录计划创建结果 - Data *CreateDataReplenishmentPlan `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateDataBackfillPlanResponse struct { - *tchttp.BaseResponse - Response *CreateDataBackfillPlanResponseParams `json:"Response"` -} - -func (r *CreateDataBackfillPlanResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateDataBackfillPlanResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type CreateDataReplenishmentPlan struct { - // 补录计划Id - DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` -} - -type CreateFolderResult struct { - // 创建成功的文件夹ID。如果创建失败则报错。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -// Predefined struct for user -type CreateOpsAlarmRuleRequestParams struct { - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警规则名称 - AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` - - // 监控对象业务id列表,根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 - MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` - - // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; - // 项目波动告警 projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; - // 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 - AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` - - // 告警接收人配置信息 - AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` - - // 监控对象类型, - // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) - // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 - MonitorObjectType *uint64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` - - // 告警规则配置信息 - // 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 - AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` - - // 告警级别 1.普通、2.重要、3.紧急(默认1.普通) - AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 告警规则描述 - Description *string `json:"Description,omitnil,omitempty" name:"Description"` -} - -type CreateOpsAlarmRuleRequest struct { - *tchttp.BaseRequest - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警规则名称 - AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` - - // 监控对象业务id列表,根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 - MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` - - // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; - // 项目波动告警 projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; - // 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 - AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` - - // 告警接收人配置信息 - AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` - - // 监控对象类型, - // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) - // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 - MonitorObjectType *uint64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` - - // 告警规则配置信息 - // 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 - AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` - - // 告警级别 1.普通、2.重要、3.紧急(默认1.普通) - AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 告警规则描述 - Description *string `json:"Description,omitnil,omitempty" name:"Description"` -} - -func (r *CreateOpsAlarmRuleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateOpsAlarmRuleRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "AlarmRuleName") - delete(f, "MonitorObjectIds") - delete(f, "AlarmTypes") - delete(f, "AlarmGroups") - delete(f, "MonitorObjectType") - delete(f, "AlarmRuleDetail") - delete(f, "AlarmLevel") - delete(f, "Description") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateOpsAlarmRuleRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateOpsAlarmRuleResponseParams struct { - // 告警规则唯一id - Data *CreateAlarmRuleData `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateOpsAlarmRuleResponse struct { - *tchttp.BaseResponse - Response *CreateOpsAlarmRuleResponseParams `json:"Response"` -} - -func (r *CreateOpsAlarmRuleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateOpsAlarmRuleResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateResourceFileRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源文件名称, 尽可能和上传文件名保持一致 - ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` - - // cos存储桶名称, 可从GetResourceCosPath接口获取 - BucketName *string `json:"BucketName,omitnil,omitempty" name:"BucketName"` - - // BucketName桶对应的cos存储桶区域 - CosRegion *string `json:"CosRegion,omitnil,omitempty" name:"CosRegion"` - - // 项目中资源文件上传的路径, 取值示例: /wedata/qxxxm/, 根目录,请使用/即可 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // - 上传文件及手填两种方式只能选择其一,如果两者均提供,取值顺序为文件>手填值 - // - 手填值必须是存在的cos路径, /datastudio/resource/ 为固定前缀, projectId 为项目ID,需传入具体值, parentFolderPath为父文件夹路径, name为文件名, 手填值取值示例: /datastudio/resource/projectId/parentFolderPath/name - ResourceFile *string `json:"ResourceFile,omitnil,omitempty" name:"ResourceFile"` - - // bundle客户端ID - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // bundle客户端信息 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -type CreateResourceFileRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源文件名称, 尽可能和上传文件名保持一致 - ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` - - // cos存储桶名称, 可从GetResourceCosPath接口获取 - BucketName *string `json:"BucketName,omitnil,omitempty" name:"BucketName"` - - // BucketName桶对应的cos存储桶区域 - CosRegion *string `json:"CosRegion,omitnil,omitempty" name:"CosRegion"` - - // 项目中资源文件上传的路径, 取值示例: /wedata/qxxxm/, 根目录,请使用/即可 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // - 上传文件及手填两种方式只能选择其一,如果两者均提供,取值顺序为文件>手填值 - // - 手填值必须是存在的cos路径, /datastudio/resource/ 为固定前缀, projectId 为项目ID,需传入具体值, parentFolderPath为父文件夹路径, name为文件名, 手填值取值示例: /datastudio/resource/projectId/parentFolderPath/name - ResourceFile *string `json:"ResourceFile,omitnil,omitempty" name:"ResourceFile"` - - // bundle客户端ID - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // bundle客户端信息 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -func (r *CreateResourceFileRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateResourceFileRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ResourceName") - delete(f, "BucketName") - delete(f, "CosRegion") - delete(f, "ParentFolderPath") - delete(f, "ResourceFile") - delete(f, "BundleId") - delete(f, "BundleInfo") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateResourceFileRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateResourceFileResponseParams struct { - // 创建资源文件结果 - Data *CreateResourceFileResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateResourceFileResponse struct { - *tchttp.BaseResponse - Response *CreateResourceFileResponseParams `json:"Response"` -} - -func (r *CreateResourceFileResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateResourceFileResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type CreateResourceFileResult struct { - // 资源文件ID - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` -} - -// Predefined struct for user -type CreateResourceFolderRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹绝对路径, 取值示例 /wedata/test, 根目录,请使用/即可 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -type CreateResourceFolderRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹绝对路径, 取值示例 /wedata/test, 根目录,请使用/即可 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -func (r *CreateResourceFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateResourceFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ParentFolderPath") - delete(f, "FolderName") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateResourceFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateResourceFolderResponseParams struct { - // 创建文件夹结果,如果创建失败则报错。 - Data *CreateFolderResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateResourceFolderResponse struct { - *tchttp.BaseResponse - Response *CreateResourceFolderResponseParams `json:"Response"` -} - -func (r *CreateResourceFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateResourceFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateSQLFolderRequestParams struct { - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹path,/aaa/bbb/ccc,路径头需带斜杠,查询根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 权限范围:SHARED, PRIVATE - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` -} - -type CreateSQLFolderRequest struct { - *tchttp.BaseRequest - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹path,/aaa/bbb/ccc,路径头需带斜杠,查询根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 权限范围:SHARED, PRIVATE - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` -} - -func (r *CreateSQLFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateSQLFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "FolderName") - delete(f, "ProjectId") - delete(f, "ParentFolderPath") - delete(f, "AccessScope") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSQLFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateSQLFolderResponseParams struct { - // 成功true,失败false - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *SqlCreateResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateSQLFolderResponse struct { - *tchttp.BaseResponse - Response *CreateSQLFolderResponseParams `json:"Response"` -} - -func (r *CreateSQLFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateSQLFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateSQLScriptRequestParams struct { - // 脚本名称 - ScriptName *string `json:"ScriptName,omitnil,omitempty" name:"ScriptName"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹path,/aaa/bbb/ccc,根目录为空字符串或/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 数据探索脚本配置 - ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` - - // 脚本内容,如有值,则要将内容进行base64编码 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` - - // 权限范围:SHARED, PRIVATE - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` -} - -type CreateSQLScriptRequest struct { - *tchttp.BaseRequest - - // 脚本名称 - ScriptName *string `json:"ScriptName,omitnil,omitempty" name:"ScriptName"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹path,/aaa/bbb/ccc,根目录为空字符串或/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 数据探索脚本配置 - ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` - - // 脚本内容,如有值,则要将内容进行base64编码 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` - - // 权限范围:SHARED, PRIVATE - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` -} - -func (r *CreateSQLScriptRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateSQLScriptRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ScriptName") - delete(f, "ProjectId") - delete(f, "ParentFolderPath") - delete(f, "ScriptConfig") - delete(f, "ScriptContent") - delete(f, "AccessScope") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSQLScriptRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateSQLScriptResponseParams struct { - // 结果 - Data *SQLScript `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateSQLScriptResponse struct { - *tchttp.BaseResponse - Response *CreateSQLScriptResponseParams `json:"Response"` -} - -func (r *CreateSQLScriptResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateSQLScriptResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type CreateTaskBaseAttribute struct { - // 任务名称 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 任务类型ID: - // - // * 21:JDBC SQL - // * 23:TDSQL-PostgreSQL - // * 26:OfflineSynchronization - // * 30:Python - // * 31:PySpark - // * 32:DLC SQL - // * 33:Impala - // * 34:Hive SQL - // * 35:Shell - // * 36:Spark SQL - // * 38:Shell Form Mode - // * 39:Spark - // * 40:TCHouse-P - // * 41:Kettle - // * 42:Tchouse-X - // * 43:TCHouse-X SQL - // * 46:DLC Spark - // * 47:TiOne - // * 48:Trino - // * 50:DLC PySpark - // * 92:MapReduce - // * 130:Branch Node - // * 131:Merged Node - // * 132:Notebook - // * 133:SSH - // * 134:StarRocks - // * 137:For-each - // * 138:Setats SQL - TaskTypeId *string `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 工作流ID - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 任务负责人ID,默认为当前用户 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 任务描述 - TaskDescription *string `json:"TaskDescription,omitnil,omitempty" name:"TaskDescription"` -} - -type CreateTaskConfiguration struct { - // 资源组ID: 需要通过 DescribeNormalSchedulerExecutorGroups 获取 ExecutorGroupId - ResourceGroup *string `json:"ResourceGroup,omitnil,omitempty" name:"ResourceGroup"` - - // 代码内容的Base64编码 - CodeContent *string `json:"CodeContent,omitnil,omitempty" name:"CodeContent"` - - // 任务扩展属性配置列表 - TaskExtConfigurationList []*TaskExtParameter `json:"TaskExtConfigurationList,omitnil,omitempty" name:"TaskExtConfigurationList"` - - // 集群ID - DataCluster *string `json:"DataCluster,omitnil,omitempty" name:"DataCluster"` - - // 指定的运行节点 - BrokerIp *string `json:"BrokerIp,omitnil,omitempty" name:"BrokerIp"` - - // 资源池队列名称,需要通过 DescribeProjectClusterQueues 获取 - YarnQueue *string `json:"YarnQueue,omitnil,omitempty" name:"YarnQueue"` - - // 来源数据源ID, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 - SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` - - // 目标数据源ID, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 - TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` - - // 调度参数 - TaskSchedulingParameterList []*TaskSchedulingParameter `json:"TaskSchedulingParameterList,omitnil,omitempty" name:"TaskSchedulingParameterList"` - - // Bundle使用的ID - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // Bundle信息 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -// Predefined struct for user -type CreateTaskRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务基本属性 - TaskBaseAttribute *CreateTaskBaseAttribute `json:"TaskBaseAttribute,omitnil,omitempty" name:"TaskBaseAttribute"` - - // 任务配置 - TaskConfiguration *CreateTaskConfiguration `json:"TaskConfiguration,omitnil,omitempty" name:"TaskConfiguration"` - - // 任务调度配置 - TaskSchedulerConfiguration *CreateTaskSchedulerConfiguration `json:"TaskSchedulerConfiguration,omitnil,omitempty" name:"TaskSchedulerConfiguration"` -} - -type CreateTaskRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务基本属性 - TaskBaseAttribute *CreateTaskBaseAttribute `json:"TaskBaseAttribute,omitnil,omitempty" name:"TaskBaseAttribute"` - - // 任务配置 - TaskConfiguration *CreateTaskConfiguration `json:"TaskConfiguration,omitnil,omitempty" name:"TaskConfiguration"` - - // 任务调度配置 - TaskSchedulerConfiguration *CreateTaskSchedulerConfiguration `json:"TaskSchedulerConfiguration,omitnil,omitempty" name:"TaskSchedulerConfiguration"` -} - -func (r *CreateTaskRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateTaskRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskBaseAttribute") - delete(f, "TaskConfiguration") - delete(f, "TaskSchedulerConfiguration") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTaskRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateTaskResponseParams struct { - // 任务ID - Data *CreateTaskResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateTaskResponse struct { - *tchttp.BaseResponse - Response *CreateTaskResponseParams `json:"Response"` -} - -func (r *CreateTaskResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateTaskResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type CreateTaskResult struct { - // 任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` -} - -type CreateTaskSchedulerConfiguration struct { - // 周期类型:默认为 DAY_CYCLE - // - // 支持的类型为 - // - // * ONEOFF_CYCLE: 一次性 - // * YEAR_CYCLE: 年 - // * MONTH_CYCLE: 月 - // * WEEK_CYCLE: 周 - // * DAY_CYCLE: 天 - // * HOUR_CYCLE: 小时 - // * MINUTE_CYCLE: 分钟 - // * CRONTAB_CYCLE: crontab表达式类型 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 时区,默认为 UTC+8 - ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` - - // Cron表达式,默认为 0 0 0 * * ? * - CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` - - // 生效日期,默认为当前日期的 00:00:00 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 结束日期,默认为 2099-12-31 23:59:59 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 执行时间 左闭区间,默认 00:00 - ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` - - // 执行时间 右闭区间,默认 23:59 - ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` - - // 调度类型: 0 正常调度 1 空跑调度,默认为 0 - ScheduleRunType *string `json:"ScheduleRunType,omitnil,omitempty" name:"ScheduleRunType"` - - // 日历调度 取值为 0 和 1, 1为打开,0为关闭,默认为0 - CalendarOpen *string `json:"CalendarOpen,omitnil,omitempty" name:"CalendarOpen"` - - // 日历调度 日历 ID - CalendarId *string `json:"CalendarId,omitnil,omitempty" name:"CalendarId"` - - // 自依赖, 默认值 serial, 取值为:parallel(并行), serial(串行), orderly(有序) - SelfDepend *string `json:"SelfDepend,omitnil,omitempty" name:"SelfDepend"` - - // 上游依赖数组 - UpstreamDependencyConfigList []*DependencyTaskBrief `json:"UpstreamDependencyConfigList,omitnil,omitempty" name:"UpstreamDependencyConfigList"` - - // 事件数组 - EventListenerList []*EventListener `json:"EventListenerList,omitnil,omitempty" name:"EventListenerList"` - - // 任务调度优先级 运行优先级 4高 5中 6低 , 默认:6 - RunPriority *string `json:"RunPriority,omitnil,omitempty" name:"RunPriority"` - - // 重试策略 重试等待时间,单位分钟: 默认: 5 - RetryWait *string `json:"RetryWait,omitnil,omitempty" name:"RetryWait"` - - // 重试策略 最大尝试次数, 默认: 4 - MaxRetryAttempts *string `json:"MaxRetryAttempts,omitnil,omitempty" name:"MaxRetryAttempts"` - - // 超时处理策略 运行耗时超时(单位:分钟)默认为 -1 - ExecutionTTL *string `json:"ExecutionTTL,omitnil,omitempty" name:"ExecutionTTL"` - - // 超时处理策略 等待总时长耗时超时(单位:分钟)默认为 -1 - WaitExecutionTotalTTL *string `json:"WaitExecutionTotalTTL,omitnil,omitempty" name:"WaitExecutionTotalTTL"` - - // 重跑&补录配置, 默认为 ALL; , ALL 运行成功或失败后皆可重跑或补录, FAILURE 运行成功后不可重跑或补录,运行失败后可重跑或补录, NONE 运行成功或失败后皆不可重跑或补录; - AllowRedoType *string `json:"AllowRedoType,omitnil,omitempty" name:"AllowRedoType"` - - // 输出参数数组 - ParamTaskOutList []*OutTaskParameter `json:"ParamTaskOutList,omitnil,omitempty" name:"ParamTaskOutList"` - - // 输入参数数组 - ParamTaskInList []*InTaskParameter `json:"ParamTaskInList,omitnil,omitempty" name:"ParamTaskInList"` - - // 产出登记 - TaskOutputRegistryList []*TaskDataRegistry `json:"TaskOutputRegistryList,omitnil,omitempty" name:"TaskOutputRegistryList"` - - // **实例生成策略** - // * T_PLUS_0: T+0生成,默认策略 - // * T_PLUS_1: T+1生成 - InitStrategy *string `json:"InitStrategy,omitnil,omitempty" name:"InitStrategy"` -} - -// Predefined struct for user -type CreateWorkflowFolderRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹绝对路径,如/abc/de,如果是根目录则传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 要创建的文件夹名字 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -type CreateWorkflowFolderRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹绝对路径,如/abc/de,如果是根目录则传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 要创建的文件夹名字 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -func (r *CreateWorkflowFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateWorkflowFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ParentFolderPath") - delete(f, "FolderName") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateWorkflowFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateWorkflowFolderResponseParams struct { - // 创建文件夹结果,如果创建失败则报错。 - Data *CreateFolderResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateWorkflowFolderResponse struct { - *tchttp.BaseResponse - Response *CreateWorkflowFolderResponseParams `json:"Response"` -} - -func (r *CreateWorkflowFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateWorkflowFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateWorkflowRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流名称 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 所属文件夹路径 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 工作流类型,取值示例:cycle 周期工作流;manual 手动工作流,默认传入cycle - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // 工作流描述 - WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` - - // 工作流负责人ID - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 工作流参数 - WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` - - // 统一调度信息 - WorkflowSchedulerConfiguration *WorkflowSchedulerConfigurationInfo `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` - - // BundleId项 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // Bundle信息 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -type CreateWorkflowRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流名称 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 所属文件夹路径 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 工作流类型,取值示例:cycle 周期工作流;manual 手动工作流,默认传入cycle - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // 工作流描述 - WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` - - // 工作流负责人ID - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 工作流参数 - WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` - - // 统一调度信息 - WorkflowSchedulerConfiguration *WorkflowSchedulerConfigurationInfo `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` - - // BundleId项 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // Bundle信息 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -func (r *CreateWorkflowRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateWorkflowRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "WorkflowName") - delete(f, "ParentFolderPath") - delete(f, "WorkflowType") - delete(f, "WorkflowDesc") - delete(f, "OwnerUin") - delete(f, "WorkflowParams") - delete(f, "WorkflowSchedulerConfiguration") - delete(f, "BundleId") - delete(f, "BundleInfo") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateWorkflowRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type CreateWorkflowResponseParams struct { - // 返回工作流ID - Data *CreateWorkflowResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type CreateWorkflowResponse struct { - *tchttp.BaseResponse - Response *CreateWorkflowResponseParams `json:"Response"` -} - -func (r *CreateWorkflowResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateWorkflowResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type CreateWorkflowResult struct { - // 创建成功后的工作流id - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` -} - -type DataBackfillRange struct { - // 开始日期,格式yyyy-MM-dd 表示从指定日期的00:00:00开始 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartDate *string `json:"StartDate,omitnil,omitempty" name:"StartDate"` - - // 结束日期,格式yyyy-MM-dd,表示从指定日期的 23:59:59结束 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndDate *string `json:"EndDate,omitnil,omitempty" name:"EndDate"` - - // 在[StartDate, EndDate]之间每天的开始时间点,格式HH:mm,只针对小时及周期小于小时的任务生效 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` - - // 在[StartDate, EndDate]之间每天的结束时间点,格式HH:mm,只针对小时及周期小于小时的任务生效 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` -} - -type DeleteAlarmRuleResult struct { - // 是否删除成功 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -// Predefined struct for user -type DeleteCodeFileRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 代码文件ID,参数值来自CreateCodeFile接口的返回 - CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` -} - -type DeleteCodeFileRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 代码文件ID,参数值来自CreateCodeFile接口的返回 - CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` -} - -func (r *DeleteCodeFileRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteCodeFileRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "CodeFileId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteCodeFileRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteCodeFileResponseParams struct { - // 执行结果 - Data *CodeStudioFileActionResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteCodeFileResponse struct { - *tchttp.BaseResponse - Response *DeleteCodeFileResponseParams `json:"Response"` -} - -func (r *DeleteCodeFileResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteCodeFileResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteCodeFolderRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID,参数值来自CreateCodeFolder接口的返回 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -type DeleteCodeFolderRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID,参数值来自CreateCodeFolder接口的返回 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -func (r *DeleteCodeFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteCodeFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "FolderId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteCodeFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteCodeFolderResponseParams struct { - // 执行结果 - Data *CodeStudioFolderActionResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteCodeFolderResponse struct { - *tchttp.BaseResponse - Response *DeleteCodeFolderResponseParams `json:"Response"` -} - -func (r *DeleteCodeFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteCodeFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type DeleteFolderResult struct { - // 删除状态,true表示成功,false表示失败 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -// Predefined struct for user -type DeleteOpsAlarmRuleRequestParams struct { - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警规则唯一id,接口CreateAlarmRule返回 - // 与AlarmRuleName二选一 - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` -} - -type DeleteOpsAlarmRuleRequest struct { - *tchttp.BaseRequest - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警规则唯一id,接口CreateAlarmRule返回 - // 与AlarmRuleName二选一 - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` -} - -func (r *DeleteOpsAlarmRuleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteOpsAlarmRuleRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "AlarmRuleId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteOpsAlarmRuleRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteOpsAlarmRuleResponseParams struct { - // 是否删除成功 - Data *DeleteAlarmRuleResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteOpsAlarmRuleResponse struct { - *tchttp.BaseResponse - Response *DeleteOpsAlarmRuleResponseParams `json:"Response"` -} - -func (r *DeleteOpsAlarmRuleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteOpsAlarmRuleResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteResourceFileRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源ID, 可通过ListResourceFiles接口获取 - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` -} - -type DeleteResourceFileRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源ID, 可通过ListResourceFiles接口获取 - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` -} - -func (r *DeleteResourceFileRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteResourceFileRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ResourceId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteResourceFileRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteResourceFileResponseParams struct { - // 资源删除结果 - Data *DeleteResourceFileResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteResourceFileResponse struct { - *tchttp.BaseResponse - Response *DeleteResourceFileResponseParams `json:"Response"` -} - -func (r *DeleteResourceFileResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteResourceFileResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type DeleteResourceFileResult struct { - // true - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -// Predefined struct for user -type DeleteResourceFolderRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID, 可通过ListResourceFolders接口获取 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -type DeleteResourceFolderRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID, 可通过ListResourceFolders接口获取 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -func (r *DeleteResourceFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteResourceFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "FolderId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteResourceFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteResourceFolderResponseParams struct { - // true代表删除成功,false代表删除失败 - Data *DeleteFolderResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteResourceFolderResponse struct { - *tchttp.BaseResponse - Response *DeleteResourceFolderResponseParams `json:"Response"` -} - -func (r *DeleteResourceFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteResourceFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteSQLFolderRequestParams struct { - // 文件夹Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -type DeleteSQLFolderRequest struct { - *tchttp.BaseRequest - - // 文件夹Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -func (r *DeleteSQLFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteSQLFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "FolderId") - delete(f, "ProjectId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSQLFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteSQLFolderResponseParams struct { - // 操作结果 - Data *SQLContentActionResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteSQLFolderResponse struct { - *tchttp.BaseResponse - Response *DeleteSQLFolderResponseParams `json:"Response"` -} - -func (r *DeleteSQLFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteSQLFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteSQLScriptRequestParams struct { - // 探索脚本Id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -type DeleteSQLScriptRequest struct { - *tchttp.BaseRequest - - // 探索脚本Id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -func (r *DeleteSQLScriptRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteSQLScriptRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ScriptId") - delete(f, "ProjectId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSQLScriptRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteSQLScriptResponseParams struct { - // 执行结果 - Data *SQLContentActionResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteSQLScriptResponse struct { - *tchttp.BaseResponse - Response *DeleteSQLScriptResponseParams `json:"Response"` -} - -func (r *DeleteSQLScriptResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteSQLScriptResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteTaskRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - // 和VirtualTaskId选填一个 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务操作是否消息通知下游任务责任人true:通知 - // false:不通知 - // 不传默认false - OperateInform *bool `json:"OperateInform,omitnil,omitempty" name:"OperateInform"` - - // 任务删除方式 - // true:不针对下游任务实例进行强制失败 - // false:针对下游任务实例进行强制失败 - // 不传默认false - DeleteMode *bool `json:"DeleteMode,omitnil,omitempty" name:"DeleteMode"` -} - -type DeleteTaskRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - // 和VirtualTaskId选填一个 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务操作是否消息通知下游任务责任人true:通知 - // false:不通知 - // 不传默认false - OperateInform *bool `json:"OperateInform,omitnil,omitempty" name:"OperateInform"` - - // 任务删除方式 - // true:不针对下游任务实例进行强制失败 - // false:针对下游任务实例进行强制失败 - // 不传默认false - DeleteMode *bool `json:"DeleteMode,omitnil,omitempty" name:"DeleteMode"` -} - -func (r *DeleteTaskRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteTaskRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - delete(f, "OperateInform") - delete(f, "DeleteMode") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTaskRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteTaskResponseParams struct { - // 是否删除成功 - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *DeleteTaskResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteTaskResponse struct { - *tchttp.BaseResponse - Response *DeleteTaskResponseParams `json:"Response"` -} - -func (r *DeleteTaskResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteTaskResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type DeleteTaskResult struct { - // 删除状态,true表示成功,false表示失败 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -// Predefined struct for user -type DeleteWorkflowFolderRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID,可通过ListWorkflowFolders接口获取 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -type DeleteWorkflowFolderRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID,可通过ListWorkflowFolders接口获取 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -func (r *DeleteWorkflowFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteWorkflowFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "FolderId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteWorkflowFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteWorkflowFolderResponseParams struct { - // 删除结果 - Data *DeleteFolderResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteWorkflowFolderResponse struct { - *tchttp.BaseResponse - Response *DeleteWorkflowFolderResponseParams `json:"Response"` -} - -func (r *DeleteWorkflowFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteWorkflowFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteWorkflowRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流id - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` -} - -type DeleteWorkflowRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流id - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` -} - -func (r *DeleteWorkflowRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteWorkflowRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "WorkflowId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteWorkflowRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type DeleteWorkflowResponseParams struct { - // 返回删除成功的工作流任务个数、失败个数、任务总数 - Data *DeleteWorkflowResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type DeleteWorkflowResponse struct { - *tchttp.BaseResponse - Response *DeleteWorkflowResponseParams `json:"Response"` -} - -func (r *DeleteWorkflowResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *DeleteWorkflowResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type DeleteWorkflowResult struct { - // 删除工作流是否成功 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -type DependencyConfigPage struct { - // 满足查询条件的数据总条数。 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 满足查询条件的数据总页数。 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 当前请求的数据页数。 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 当前请求的数据页条数。 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 分页数据 - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*TaskDependDto `json:"Items,omitnil,omitempty" name:"Items"` -} - -type DependencyStrategyTask struct { - // 等待上游任务实例策略:EXECUTING(执行);WAITING(等待) - // - // 注意:此字段可能返回 null,表示取不到有效值。 - PollingNullStrategy *string `json:"PollingNullStrategy,omitnil,omitempty" name:"PollingNullStrategy"` - - // 仅当PollingNullStrategy为EXECUTING时才需要填本字段,List类型:NOT_EXIST(默认,在分钟依赖分钟/小时依赖小时的情况下,父实例不在下游实例调度时间范围内);PARENT_EXPIRED(父实例失败);PARENT_TIMEOUT(父实例超时)。以上场景满足任一条件即可通过该父任务实例依赖判断,除以上场景外均需等待父实例。 - // - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskDependencyExecutingStrategies []*string `json:"TaskDependencyExecutingStrategies,omitnil,omitempty" name:"TaskDependencyExecutingStrategies"` - - // 仅当TaskDependencyExecutingStrategies中包含PARENT_TIMEOUT时才需要填本字段,下游任务依赖父实例执行超时时间,单位:分钟。 - // - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskDependencyExecutingTimeoutValue *int64 `json:"TaskDependencyExecutingTimeoutValue,omitnil,omitempty" name:"TaskDependencyExecutingTimeoutValue"` -} - -type DependencyTaskBrief struct { - // 任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 主依赖配置,取值为: - // - // * CRONTAB - // * DAY - // * HOUR - // * LIST_DAY - // * LIST_HOUR - // * LIST_MINUTE - // * MINUTE - // * MONTH - // * RANGE_DAY - // * RANGE_HOUR - // * RANGE_MINUTE - // * WEEK - // * YEAR - // 注意:此字段可能返回 null,表示取不到有效值。 - MainCyclicConfig *string `json:"MainCyclicConfig,omitnil,omitempty" name:"MainCyclicConfig"` - - // 次依赖配置,取值为: - // * ALL_DAY_OF_YEAR - // * ALL_MONTH_OF_YEAR - // * CURRENT - // * CURRENT_DAY - // * CURRENT_HOUR - // * CURRENT_MINUTE - // * CURRENT_MONTH - // * CURRENT_WEEK - // * CURRENT_YEAR - // * PREVIOUS_BEGIN_OF_MONTH - // * PREVIOUS_DAY - // * PREVIOUS_DAY_LATER_OFFSET_HOUR - // * PREVIOUS_DAY_LATER_OFFSET_MINUTE - // * PREVIOUS_END_OF_MONTH - // * PREVIOUS_FRIDAY - // * PREVIOUS_HOUR - // * PREVIOUS_HOUR_CYCLE - // * PREVIOUS_HOUR_LATER_OFFSET_MINUTE - // * PREVIOUS_MINUTE_CYCLE - // * PREVIOUS_MONTH - // * PREVIOUS_WEEK - // * PREVIOUS_WEEKEND - // * RECENT_DATE - // 注意:此字段可能返回 null,表示取不到有效值。 - SubordinateCyclicConfig *string `json:"SubordinateCyclicConfig,omitnil,omitempty" name:"SubordinateCyclicConfig"` - - // 区间、列表模式下的偏移量 - // 注意:此字段可能返回 null,表示取不到有效值。 - Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"` - - // 依赖执行策略 - // 注意:此字段可能返回 null,表示取不到有效值。 - DependencyStrategy *DependencyStrategyTask `json:"DependencyStrategy,omitnil,omitempty" name:"DependencyStrategy"` -} - -type EventListener struct { - // 事件名 - // 注意:此字段可能返回 null,表示取不到有效值。 - EventName *string `json:"EventName,omitnil,omitempty" name:"EventName"` - - // 事件周期:SECOND, MIN, HOUR, DAY - // 注意:此字段可能返回 null,表示取不到有效值。 - EventSubType *string `json:"EventSubType,omitnil,omitempty" name:"EventSubType"` - - // 事件广播类型:SINGLE, BROADCAST - // 注意:此字段可能返回 null,表示取不到有效值。 - EventBroadcastType *string `json:"EventBroadcastType,omitnil,omitempty" name:"EventBroadcastType"` - - // 扩展信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - PropertiesList []*ParamInfo `json:"PropertiesList,omitnil,omitempty" name:"PropertiesList"` -} - -// Predefined struct for user -type GetAlarmMessageRequestParams struct { - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警消息Id - AlarmMessageId *string `json:"AlarmMessageId,omitnil,omitempty" name:"AlarmMessageId"` - - // 返回日期的时区, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` -} - -type GetAlarmMessageRequest struct { - *tchttp.BaseRequest - - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警消息Id - AlarmMessageId *string `json:"AlarmMessageId,omitnil,omitempty" name:"AlarmMessageId"` - - // 返回日期的时区, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` -} - -func (r *GetAlarmMessageRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetAlarmMessageRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "AlarmMessageId") - delete(f, "TimeZone") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetAlarmMessageRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetAlarmMessageResponseParams struct { - // 告警信息 - Data *AlarmMessage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetAlarmMessageResponse struct { - *tchttp.BaseResponse - Response *GetAlarmMessageResponseParams `json:"Response"` -} - -func (r *GetAlarmMessageResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetAlarmMessageResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetCodeFileRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 代码文件ID,参数值来自CreateCodeFile接口的返回 - CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` - - // true:返回文件内容+配置,false:不返回文件内容,只返回配置信息;默认为false - IncludeContent *bool `json:"IncludeContent,omitnil,omitempty" name:"IncludeContent"` -} - -type GetCodeFileRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 代码文件ID,参数值来自CreateCodeFile接口的返回 - CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` - - // true:返回文件内容+配置,false:不返回文件内容,只返回配置信息;默认为false - IncludeContent *bool `json:"IncludeContent,omitnil,omitempty" name:"IncludeContent"` -} - -func (r *GetCodeFileRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetCodeFileRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "CodeFileId") - delete(f, "IncludeContent") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetCodeFileRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetCodeFileResponseParams struct { - // 代码文件详情 - Data *CodeFile `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetCodeFileResponse struct { - *tchttp.BaseResponse - Response *GetCodeFileResponseParams `json:"Response"` -} - -func (r *GetCodeFileResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetCodeFileResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsAlarmRuleRequestParams struct { - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警规则唯一id - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` -} - -type GetOpsAlarmRuleRequest struct { - *tchttp.BaseRequest - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警规则唯一id - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` -} - -func (r *GetOpsAlarmRuleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsAlarmRuleRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "AlarmRuleId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsAlarmRuleRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsAlarmRuleResponseParams struct { - // 告警规则详细信息 - Data *AlarmRuleData `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetOpsAlarmRuleResponse struct { - *tchttp.BaseResponse - Response *GetOpsAlarmRuleResponseParams `json:"Response"` -} - -func (r *GetOpsAlarmRuleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsAlarmRuleResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsAsyncJobRequestParams struct { - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 异步操作id - AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` -} - -type GetOpsAsyncJobRequest struct { - *tchttp.BaseRequest - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 异步操作id - AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` -} - -func (r *GetOpsAsyncJobRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsAsyncJobRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "AsyncId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsAsyncJobRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsAsyncJobResponseParams struct { - // 异步操作详情结果 - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *OpsAsyncJobDetail `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetOpsAsyncJobResponse struct { - *tchttp.BaseResponse - Response *GetOpsAsyncJobResponseParams `json:"Response"` -} - -func (r *GetOpsAsyncJobResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsAsyncJobResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsTaskCodeRequestParams struct { - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` -} - -type GetOpsTaskCodeRequest struct { - *tchttp.BaseRequest - - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` -} - -func (r *GetOpsTaskCodeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsTaskCodeRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsTaskCodeRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsTaskCodeResponseParams struct { - // 获取任务代码结果 - Data *TaskCode `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetOpsTaskCodeResponse struct { - *tchttp.BaseResponse - Response *GetOpsTaskCodeResponseParams `json:"Response"` -} - -func (r *GetOpsTaskCodeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsTaskCodeResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsTaskRequestParams struct { - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -type GetOpsTaskRequest struct { - *tchttp.BaseRequest - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -func (r *GetOpsTaskRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsTaskRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "TaskId") - delete(f, "ProjectId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsTaskRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsTaskResponseParams struct { - // 任务详情 - Data *Task `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetOpsTaskResponse struct { - *tchttp.BaseResponse - Response *GetOpsTaskResponseParams `json:"Response"` -} - -func (r *GetOpsTaskResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsTaskResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsWorkflowRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流Id,可以从ListOpsWorkflows接口获取 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` -} - -type GetOpsWorkflowRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流Id,可以从ListOpsWorkflows接口获取 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` -} - -func (r *GetOpsWorkflowRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsWorkflowRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "WorkflowId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsWorkflowRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetOpsWorkflowResponseParams struct { - // 工作流调度详情 - Data *OpsWorkflowDetail `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetOpsWorkflowResponse struct { - *tchttp.BaseResponse - Response *GetOpsWorkflowResponseParams `json:"Response"` -} - -func (r *GetOpsWorkflowResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetOpsWorkflowResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetResourceFileRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源文件ID,可通过ListResourceFiles接口获取 - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` -} - -type GetResourceFileRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源文件ID,可通过ListResourceFiles接口获取 - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` -} - -func (r *GetResourceFileRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetResourceFileRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ResourceId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetResourceFileRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetResourceFileResponseParams struct { - // 资源文件详情 - Data *ResourceFile `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetResourceFileResponse struct { - *tchttp.BaseResponse - Response *GetResourceFileResponseParams `json:"Response"` -} - -func (r *GetResourceFileResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetResourceFileResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetSQLScriptRequestParams struct { - // 探索脚本Id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -type GetSQLScriptRequest struct { - *tchttp.BaseRequest - - // 探索脚本Id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -func (r *GetSQLScriptRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetSQLScriptRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ScriptId") - delete(f, "ProjectId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetSQLScriptRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetSQLScriptResponseParams struct { - // 脚本详情 - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *SQLScript `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetSQLScriptResponse struct { - *tchttp.BaseResponse - Response *GetSQLScriptResponseParams `json:"Response"` -} - -func (r *GetSQLScriptResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetSQLScriptResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskCodeRequestParams struct { - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` -} - -type GetTaskCodeRequest struct { - *tchttp.BaseRequest - - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` -} - -func (r *GetTaskCodeRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskCodeRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskCodeRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskCodeResponseParams struct { - // 获取任务代码结果 - Data *TaskCodeResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetTaskCodeResponse struct { - *tchttp.BaseResponse - Response *GetTaskCodeResponseParams `json:"Response"` -} - -func (r *GetTaskCodeResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskCodeResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskInstanceLogRequestParams struct { - // **项目ID** - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **实例唯一标识** - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **实例生命周期编号,标识实例的某一次执行**例如:周期实例第一次运行的编号为0,用户后期又重跑了该实例,第二次执行的编号为1; 默认最新一次 - LifeRoundNum *uint64 `json:"LifeRoundNum,omitnil,omitempty" name:"LifeRoundNum"` - - // **日志级别** 默认All - Info - Debug - Warn - Error - All - LogLevel *string `json:"LogLevel,omitnil,omitempty" name:"LogLevel"` - - // **分页查询日志时使用,无具体业务含义** 第一次查询时值为null 第二次及以后查询时使用上一次查询返回信息中的NextCursor字段值即可 - NextCursor *string `json:"NextCursor,omitnil,omitempty" name:"NextCursor"` -} - -type GetTaskInstanceLogRequest struct { - *tchttp.BaseRequest - - // **项目ID** - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **实例唯一标识** - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **实例生命周期编号,标识实例的某一次执行**例如:周期实例第一次运行的编号为0,用户后期又重跑了该实例,第二次执行的编号为1; 默认最新一次 - LifeRoundNum *uint64 `json:"LifeRoundNum,omitnil,omitempty" name:"LifeRoundNum"` - - // **日志级别** 默认All - Info - Debug - Warn - Error - All - LogLevel *string `json:"LogLevel,omitnil,omitempty" name:"LogLevel"` - - // **分页查询日志时使用,无具体业务含义** 第一次查询时值为null 第二次及以后查询时使用上一次查询返回信息中的NextCursor字段值即可 - NextCursor *string `json:"NextCursor,omitnil,omitempty" name:"NextCursor"` -} - -func (r *GetTaskInstanceLogRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskInstanceLogRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "InstanceKey") - delete(f, "LifeRoundNum") - delete(f, "LogLevel") - delete(f, "NextCursor") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskInstanceLogRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskInstanceLogResponseParams struct { - // 调度实例详情 - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *InstanceLog `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetTaskInstanceLogResponse struct { - *tchttp.BaseResponse - Response *GetTaskInstanceLogResponseParams `json:"Response"` -} - -func (r *GetTaskInstanceLogResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskInstanceLogResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskInstanceRequestParams struct { - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例唯一标识,可以通过ListInstances获取 - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` -} - -type GetTaskInstanceRequest struct { - *tchttp.BaseRequest - - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例唯一标识,可以通过ListInstances获取 - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` -} - -func (r *GetTaskInstanceRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskInstanceRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "InstanceKey") - delete(f, "TimeZone") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskInstanceRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskInstanceResponseParams struct { - // 实例详情 - Data *TaskInstanceDetail `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetTaskInstanceResponse struct { - *tchttp.BaseResponse - Response *GetTaskInstanceResponseParams `json:"Response"` -} - -func (r *GetTaskInstanceResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskInstanceResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` -} - -type GetTaskRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` -} - -func (r *GetTaskRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskResponseParams struct { - // 任务详情 - Data *Task `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetTaskResponse struct { - *tchttp.BaseResponse - Response *GetTaskResponseParams `json:"Response"` -} - -func (r *GetTaskResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskVersionRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 提交版本ID,不填默认拿最新提交版本 - VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` -} - -type GetTaskVersionRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 提交版本ID,不填默认拿最新提交版本 - VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` -} - -func (r *GetTaskVersionRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskVersionRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - delete(f, "VersionId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskVersionRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetTaskVersionResponseParams struct { - // 版本详情 - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *TaskVersionDetail `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetTaskVersionResponse struct { - *tchttp.BaseResponse - Response *GetTaskVersionResponseParams `json:"Response"` -} - -func (r *GetTaskVersionResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetTaskVersionResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetWorkflowRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流ID 通过ListWorkflows接口获取 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` -} - -type GetWorkflowRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流ID 通过ListWorkflows接口获取 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` -} - -func (r *GetWorkflowRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetWorkflowRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "WorkflowId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetWorkflowRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type GetWorkflowResponseParams struct { - // 工作流详细信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *WorkflowDetail `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type GetWorkflowResponse struct { - *tchttp.BaseResponse - Response *GetWorkflowResponseParams `json:"Response"` -} - -func (r *GetWorkflowResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *GetWorkflowResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type InTaskParameter struct { - // 参数名 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` - - // 参数描述:格式为 项目标识.任务名称.参数名;例:project_wedata_1.sh_250820_104107.pp_out - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamDesc *string `json:"ParamDesc,omitnil,omitempty" name:"ParamDesc"` - - // 父任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - FromTaskId *string `json:"FromTaskId,omitnil,omitempty" name:"FromTaskId"` - - // 父任务参数key - // 注意:此字段可能返回 null,表示取不到有效值。 - FromParamKey *string `json:"FromParamKey,omitnil,omitempty" name:"FromParamKey"` -} - -type InstanceExecution struct { - // 实例唯一标识 - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **实例生命周期编号,标识实例的某一次执行** - // - // 例如:周期实例第一次运行的编号为0,用户后期又重跑了该实例,第二次执行的编号为1 - // 注意:此字段可能返回 null,表示取不到有效值。 - LifeRoundNum *uint64 `json:"LifeRoundNum,omitnil,omitempty" name:"LifeRoundNum"` - - // **实例状态** - // - WAIT_EVENT: 等待事件 - // - WAIT_UPSTREAM: 等待上游 - // - WAIT_RUN: 等待运行 - // - RUNNING: 运行中 - // - SKIP_RUNNING: 跳过运行 - // - FAILED_RETRY: 失败重试 - // - EXPIRED: 失败 - // - COMPLETED: 成功 - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` - - // **实例运行触发类型** - // - // - RERUN 表示重跑 - // - ADDITION 表示补录 - // - PERIODIC 表示周期 - // - APERIODIC 表示非周期 - // - RERUN_SKIP_RUN 表示重跑 - 空跑 - // - ADDITION_SKIP_RUN 表示补录 - 空跑 - // - PERIODIC_SKIP_RUN 表示周期 - 空跑 - // - APERIODIC_SKIP_RUN 表示非周期 - 空跑 - // - MANUAL_TRIGGER 表示手动触发 - // - RERUN_MANUAL_TRIGGER 表示手动触发 - 重跑 - // 注意:此字段可能返回 null,表示取不到有效值。 - RunType *string `json:"RunType,omitnil,omitempty" name:"RunType"` - - // 失败重试次数 - // 注意:此字段可能返回 null,表示取不到有效值。 - Tries *uint64 `json:"Tries,omitnil,omitempty" name:"Tries"` - - // **实例执行生命周期列表** - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionPhaseList []*InstanceExecutionPhase `json:"ExecutionPhaseList,omitnil,omitempty" name:"ExecutionPhaseList"` - - // 耗费时间, 单位ms - // 注意:此字段可能返回 null,表示取不到有效值。 - CostTime *int64 `json:"CostTime,omitnil,omitempty" name:"CostTime"` -} - -type InstanceExecutionPhase struct { - // 该状态开始时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // **实例生命周期阶段状态** - // - // - WAIT_UPSTREAM 表示 等待事件/上游状态 - // - WAIT_RUN 表示 等待运行状态 - // - RUNNING 表示 运行中状态 - // - COMPLETE 表示 终态-完成 - // - FAILED 表示 终态-失败重试 - // - EXPIRED 表示 终态-失败 - // - SKIP_RUNNING 表示 终态-被上游分支节点跳过的分支 - // - HISTORY 表示 兼容2024-03-30之前的历史实例,之后实例无需关注次枚举类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - DetailState *string `json:"DetailState,omitnil,omitempty" name:"DetailState"` - - // 该状态结束时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` -} - -type InstanceLog struct { - // 实例唯一标识 - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // 项目ID - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **运行代码内容** - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeContent *string `json:"CodeContent,omitnil,omitempty" name:"CodeContent"` - - // **日志内容** - // 注意:此字段可能返回 null,表示取不到有效值。 - LogInfo *string `json:"LogInfo,omitnil,omitempty" name:"LogInfo"` - - // **分页查询日志时使用,无具体业务含义** - // - // 第一次查询时值为null - // 第二次及以后查询时使用上一次查询返回信息中的NextCursor字段值即可 - // 注意:此字段可能返回 null,表示取不到有效值。 - NextCursor *string `json:"NextCursor,omitnil,omitempty" name:"NextCursor"` -} - -type JobDto struct { - // 数据探索任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` - - // 数据探索任务名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - JobName *string `json:"JobName,omitnil,omitempty" name:"JobName"` - - // 任务类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"` - - // 脚本ID - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 子任务列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - JobExecutionList []*JobExecutionDto `json:"JobExecutionList,omitnil,omitempty" name:"JobExecutionList"` - - // 脚本内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` - - // 任务状态 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 任务创建时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 更新时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` - - // 结束时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 云主账号UIN - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 账号UIN - // 注意:此字段可能返回 null,表示取不到有效值。 - UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` - - // 耗时 - // 注意:此字段可能返回 null,表示取不到有效值。 - TimeCost *int64 `json:"TimeCost,omitnil,omitempty" name:"TimeCost"` - - // 是否脚本内容被截断 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptContentTruncate *bool `json:"ScriptContentTruncate,omitnil,omitempty" name:"ScriptContentTruncate"` -} - -type JobExecutionDto struct { - // 数据探索任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` - - // 子查询任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - JobExecutionId *string `json:"JobExecutionId,omitnil,omitempty" name:"JobExecutionId"` - - // 子查询名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - JobExecutionName *string `json:"JobExecutionName,omitnil,omitempty" name:"JobExecutionName"` - - // 子查询sql内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` - - // 子查询状态 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 创建时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 执行阶段 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecuteStageInfo *string `json:"ExecuteStageInfo,omitnil,omitempty" name:"ExecuteStageInfo"` - - // 日志路径 - // 注意:此字段可能返回 null,表示取不到有效值。 - LogFilePath *string `json:"LogFilePath,omitnil,omitempty" name:"LogFilePath"` - - // 下载结果路径 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultFilePath *string `json:"ResultFilePath,omitnil,omitempty" name:"ResultFilePath"` - - // 预览结果路径 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultPreviewFilePath *string `json:"ResultPreviewFilePath,omitnil,omitempty" name:"ResultPreviewFilePath"` - - // 任务执行的结果总行数 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultTotalCount *int64 `json:"ResultTotalCount,omitnil,omitempty" name:"ResultTotalCount"` - - // 更新时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` - - // 结束时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 耗时 - // 注意:此字段可能返回 null,表示取不到有效值。 - TimeCost *int64 `json:"TimeCost,omitnil,omitempty" name:"TimeCost"` - - // 上下文SQL内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - ContextScriptContent []*string `json:"ContextScriptContent,omitnil,omitempty" name:"ContextScriptContent"` - - // 任务执行的结果预览行数 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultPreviewCount *int64 `json:"ResultPreviewCount,omitnil,omitempty" name:"ResultPreviewCount"` - - // 任务执行的结果影响行数 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultEffectCount *int64 `json:"ResultEffectCount,omitnil,omitempty" name:"ResultEffectCount"` - - // 是否正在收集全量结果:默认false,true表示正在收集全量结果,用于前端判断是否需要继续轮询 - // 注意:此字段可能返回 null,表示取不到有效值。 - CollectingTotalResult *bool `json:"CollectingTotalResult,omitnil,omitempty" name:"CollectingTotalResult"` - - // 是否需要截断脚本内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptContentTruncate *bool `json:"ScriptContentTruncate,omitnil,omitempty" name:"ScriptContentTruncate"` -} - -type KVMap struct { - // k - // 注意:此字段可能返回 null,表示取不到有效值。 - K *string `json:"K,omitnil,omitempty" name:"K"` - - // v - // 注意:此字段可能返回 null,表示取不到有效值。 - V *string `json:"V,omitnil,omitempty" name:"V"` -} - -type KVPair struct { - // 键名 - // 注意:此字段可能返回 null,表示取不到有效值。 - K *string `json:"K,omitnil,omitempty" name:"K"` - - // 值,请勿传SQL(请求会被视为攻击接口),如果有需要,请将SQL进行Base64转码并解码。 - // 注意:此字段可能返回 null,表示取不到有效值。 - V *string `json:"V,omitnil,omitempty" name:"V"` -} - -// Predefined struct for user -type KillTaskInstancesAsyncRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例id列表,可以从ListInstances中获取 - InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` -} - -type KillTaskInstancesAsyncRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例id列表,可以从ListInstances中获取 - InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` -} - -func (r *KillTaskInstancesAsyncRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *KillTaskInstancesAsyncRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "InstanceKeyList") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "KillTaskInstancesAsyncRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type KillTaskInstancesAsyncResponseParams struct { - // 批量中止操作的返回的异步id, 可以在接口GetAsyncJob获取具体执行详情 - Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type KillTaskInstancesAsyncResponse struct { - *tchttp.BaseResponse - Response *KillTaskInstancesAsyncResponseParams `json:"Response"` -} - -func (r *KillTaskInstancesAsyncResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *KillTaskInstancesAsyncResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type ListAlarmMessages struct { - // 页码 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 总条数 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 总页数 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 告警信息列表 - Items []*AlarmMessage `json:"Items,omitnil,omitempty" name:"Items"` -} - -// Predefined struct for user -type ListAlarmMessagesRequestParams struct { - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 页码数,用于翻页,最小值为 1。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的条数,最大 100 条 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 起始告警时间, 格式为yyyy-MM-dd HH:mm:ss - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 截止告警时间, 格式yyyy-MM-dd HH:mm:ss - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 告警级别 - AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 告警接收人Id - AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` - - // 对于传入和返回的过滤时区, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` -} - -type ListAlarmMessagesRequest struct { - *tchttp.BaseRequest - - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 页码数,用于翻页,最小值为 1。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的条数,最大 100 条 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 起始告警时间, 格式为yyyy-MM-dd HH:mm:ss - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 截止告警时间, 格式yyyy-MM-dd HH:mm:ss - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 告警级别 - AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 告警接收人Id - AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` - - // 对于传入和返回的过滤时区, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` -} - -func (r *ListAlarmMessagesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListAlarmMessagesRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "PageNumber") - delete(f, "PageSize") - delete(f, "StartTime") - delete(f, "EndTime") - delete(f, "AlarmLevel") - delete(f, "AlarmRecipientId") - delete(f, "TimeZone") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListAlarmMessagesRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListAlarmMessagesResponseParams struct { - // 告警信息列表 - Data *ListAlarmMessages `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListAlarmMessagesResponse struct { - *tchttp.BaseResponse - Response *ListAlarmMessagesResponseParams `json:"Response"` -} - -func (r *ListAlarmMessagesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListAlarmMessagesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type ListAlarmRulesResult struct { - // 分页的页数,当前页数 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的条数 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 分页总页数 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 所有的告警规则个数 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 告警规则信息列表 - Items []*AlarmRuleData `json:"Items,omitnil,omitempty" name:"Items"` -} - -// Predefined struct for user -type ListCodeFolderContentsRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 文件夹名称/代码文件名称搜索 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // 只查询文件夹 - OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` - - // 是否只查询用户自己创建的代码文件 - OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` -} - -type ListCodeFolderContentsRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 文件夹名称/代码文件名称搜索 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // 只查询文件夹 - OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` - - // 是否只查询用户自己创建的代码文件 - OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` -} - -func (r *ListCodeFolderContentsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListCodeFolderContentsRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ParentFolderPath") - delete(f, "Keyword") - delete(f, "OnlyFolderNode") - delete(f, "OnlyUserSelfScript") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListCodeFolderContentsRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListCodeFolderContentsResponseParams struct { - // 结果 - // 注意:此字段可能返回 null,表示取不到有效值。 - Data []*CodeFolderNode `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListCodeFolderContentsResponse struct { - *tchttp.BaseResponse - Response *ListCodeFolderContentsResponseParams `json:"Response"` -} - -func (r *ListCodeFolderContentsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListCodeFolderContentsResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListDataBackfillInstancesRequestParams struct { - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 补录计划Id - DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 页码 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListDataBackfillInstancesRequest struct { - *tchttp.BaseRequest - - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 补录计划Id - DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 页码 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListDataBackfillInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListDataBackfillInstancesRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "DataBackfillPlanId") - delete(f, "TaskId") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDataBackfillInstancesRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListDataBackfillInstancesResponseParams struct { - // 单个补录计划下的所有补录实例 - Data *BackfillInstanceCollection `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListDataBackfillInstancesResponse struct { - *tchttp.BaseResponse - Response *ListDataBackfillInstancesResponseParams `json:"Response"` -} - -func (r *ListDataBackfillInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListDataBackfillInstancesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListDownstreamOpsTasksRequestParams struct { - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 分页页码 - PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListDownstreamOpsTasksRequest struct { - *tchttp.BaseRequest - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 分页页码 - PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListDownstreamOpsTasksRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListDownstreamOpsTasksRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "TaskId") - delete(f, "ProjectId") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamOpsTasksRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListDownstreamOpsTasksResponseParams struct { - // 下游依赖详情 - Data *ChildDependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListDownstreamOpsTasksResponse struct { - *tchttp.BaseResponse - Response *ListDownstreamOpsTasksResponseParams `json:"Response"` -} - -func (r *ListDownstreamOpsTasksResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListDownstreamOpsTasksResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListDownstreamTaskInstancesRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **实例唯一标识** - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **时区** timeZone, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // **页码,整型**配合pageSize使用且不能小于1, 默认值1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // **每页显示的条数,默认为10,最小值为1、最大值为100 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListDownstreamTaskInstancesRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **实例唯一标识** - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **时区** timeZone, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // **页码,整型**配合pageSize使用且不能小于1, 默认值1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // **每页显示的条数,默认为10,最小值为1、最大值为100 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListDownstreamTaskInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListDownstreamTaskInstancesRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "InstanceKey") - delete(f, "TimeZone") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamTaskInstancesRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListDownstreamTaskInstancesResponseParams struct { - // 直接下游实例列表 - Data *TaskInstancePage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListDownstreamTaskInstancesResponse struct { - *tchttp.BaseResponse - Response *ListDownstreamTaskInstancesResponseParams `json:"Response"` -} - -func (r *ListDownstreamTaskInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListDownstreamTaskInstancesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListDownstreamTasksRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 分页大小 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页页码 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListDownstreamTasksRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 分页大小 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页页码 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListDownstreamTasksRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListDownstreamTasksRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamTasksRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListDownstreamTasksResponseParams struct { - // 下游依赖详情 - Data *DependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListDownstreamTasksResponse struct { - *tchttp.BaseResponse - Response *ListDownstreamTasksResponseParams `json:"Response"` -} - -func (r *ListDownstreamTasksResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListDownstreamTasksResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListOpsAlarmRulesRequestParams struct { - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 分页的页数,默认为1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的条数,默认为20,最小值为1、最大值为200 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 监控对象类型, 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 - MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` - - // 根据任务id查询告警规则 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 查询配置对应告警类型的告警规则 - // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; - // 项目波动告警 - // projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; - // 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 - AlarmType *string `json:"AlarmType,omitnil,omitempty" name:"AlarmType"` - - // 查询配置了对应告警级别的告警规则 - // 告警级别 1.普通、2.重要、3.紧急 - AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 查询配置对应告警接收人的告警规则 - AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` - - // 根据告警规则id/规则名称查询对应的告警规则 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // 告警规则创建人过滤 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 告警规则创建时间范围起始时间, 格式如2025-08-17 00:00:00 - CreateTimeFrom *string `json:"CreateTimeFrom,omitnil,omitempty" name:"CreateTimeFrom"` - - // 告警规则创建时间范围结束时间,格式如"2025-08-26 23:59:59" - CreateTimeTo *string `json:"CreateTimeTo,omitnil,omitempty" name:"CreateTimeTo"` - - // 最后更新时间过滤告警规则, 格式如"2025-08-26 00:00:00" - UpdateTimeFrom *string `json:"UpdateTimeFrom,omitnil,omitempty" name:"UpdateTimeFrom"` - - // 最后更新时间过滤告警规则 格式如: "2025-08-26 23:59:59" - UpdateTimeTo *string `json:"UpdateTimeTo,omitnil,omitempty" name:"UpdateTimeTo"` -} - -type ListOpsAlarmRulesRequest struct { - *tchttp.BaseRequest - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 分页的页数,默认为1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的条数,默认为20,最小值为1、最大值为200 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 监控对象类型, 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 - MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` - - // 根据任务id查询告警规则 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 查询配置对应告警类型的告警规则 - // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; - // 项目波动告警 - // projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; - // 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 - AlarmType *string `json:"AlarmType,omitnil,omitempty" name:"AlarmType"` - - // 查询配置了对应告警级别的告警规则 - // 告警级别 1.普通、2.重要、3.紧急 - AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 查询配置对应告警接收人的告警规则 - AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` - - // 根据告警规则id/规则名称查询对应的告警规则 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // 告警规则创建人过滤 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 告警规则创建时间范围起始时间, 格式如2025-08-17 00:00:00 - CreateTimeFrom *string `json:"CreateTimeFrom,omitnil,omitempty" name:"CreateTimeFrom"` - - // 告警规则创建时间范围结束时间,格式如"2025-08-26 23:59:59" - CreateTimeTo *string `json:"CreateTimeTo,omitnil,omitempty" name:"CreateTimeTo"` - - // 最后更新时间过滤告警规则, 格式如"2025-08-26 00:00:00" - UpdateTimeFrom *string `json:"UpdateTimeFrom,omitnil,omitempty" name:"UpdateTimeFrom"` - - // 最后更新时间过滤告警规则 格式如: "2025-08-26 23:59:59" - UpdateTimeTo *string `json:"UpdateTimeTo,omitnil,omitempty" name:"UpdateTimeTo"` -} - -func (r *ListOpsAlarmRulesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListOpsAlarmRulesRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "PageNumber") - delete(f, "PageSize") - delete(f, "MonitorObjectType") - delete(f, "TaskId") - delete(f, "AlarmType") - delete(f, "AlarmLevel") - delete(f, "AlarmRecipientId") - delete(f, "Keyword") - delete(f, "CreateUserUin") - delete(f, "CreateTimeFrom") - delete(f, "CreateTimeTo") - delete(f, "UpdateTimeFrom") - delete(f, "UpdateTimeTo") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsAlarmRulesRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListOpsAlarmRulesResponseParams struct { - // 告警信息信息响应 - Data *ListAlarmRulesResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListOpsAlarmRulesResponse struct { - *tchttp.BaseResponse - Response *ListOpsAlarmRulesResponseParams `json:"Response"` -} - -func (r *ListOpsAlarmRulesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListOpsAlarmRulesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type ListOpsTasksPage struct { - // 结果总数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 总页数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 记录列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*TaskOpsInfo `json:"Items,omitnil,omitempty" name:"Items"` - - // 页码 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -// Predefined struct for user -type ListOpsTasksRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 分页大小 - PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 分页页码 - PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 任务类型Id - // - 20:通用数据同步 - // - 25:ETLTaskType - // - 26:ETLTaskType - // - 30:python - // - 31:pyspark - // - 34:HiveSQLTaskType - // - 35:shell - // - 36:SparkSQLTaskType - // - 21:JDBCSQLTaskType - // - 32:DLCTaskType - // - 33:ImpalaTaskType - // - 40:CDWTaskType - // - 41:kettle - // - 46:DLCSparkTaskType - // - 47:TiOne机器学习 - // - 48:TrinoTaskType - // - 50:DLCPyspark39:spark - // - 92:mr - // - 38:shell脚本 - // - 70:hivesql脚本 - // - 1000:自定义业务通用 - TaskTypeId *string `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 工作流Id - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 责任人id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 文件夹Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 数据源id - SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` - - // 目标数据源id - TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` - - // 资源组id - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` - - // 任务周期类型 - // * ONEOFF_CYCLE: 一次性 - // * YEAR_CYCLE: 年 - // * MONTH_CYCLE: 月 - // * WEEK_CYCLE: 周 - // * DAY_CYCLE: 天 - // * HOUR_CYCLE: 小时 - // * MINUTE_CYCLE: 分钟 - // * CRONTAB_CYCLE: crontab表达式类型 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 任务状态: - // - Y: 运行 - // - F: 停止 - // - O: 冻结 - // - T: 停止中 - // - INVALID: 已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 时区, 默认默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` -} - -type ListOpsTasksRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 分页大小 - PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 分页页码 - PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 任务类型Id - // - 20:通用数据同步 - // - 25:ETLTaskType - // - 26:ETLTaskType - // - 30:python - // - 31:pyspark - // - 34:HiveSQLTaskType - // - 35:shell - // - 36:SparkSQLTaskType - // - 21:JDBCSQLTaskType - // - 32:DLCTaskType - // - 33:ImpalaTaskType - // - 40:CDWTaskType - // - 41:kettle - // - 46:DLCSparkTaskType - // - 47:TiOne机器学习 - // - 48:TrinoTaskType - // - 50:DLCPyspark39:spark - // - 92:mr - // - 38:shell脚本 - // - 70:hivesql脚本 - // - 1000:自定义业务通用 - TaskTypeId *string `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 工作流Id - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 责任人id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 文件夹Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 数据源id - SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` - - // 目标数据源id - TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` - - // 资源组id - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` - - // 任务周期类型 - // * ONEOFF_CYCLE: 一次性 - // * YEAR_CYCLE: 年 - // * MONTH_CYCLE: 月 - // * WEEK_CYCLE: 周 - // * DAY_CYCLE: 天 - // * HOUR_CYCLE: 小时 - // * MINUTE_CYCLE: 分钟 - // * CRONTAB_CYCLE: crontab表达式类型 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 任务状态: - // - Y: 运行 - // - F: 停止 - // - O: 冻结 - // - T: 停止中 - // - INVALID: 已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 时区, 默认默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` -} - -func (r *ListOpsTasksRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListOpsTasksRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "PageSize") - delete(f, "PageNumber") - delete(f, "TaskTypeId") - delete(f, "WorkflowId") - delete(f, "WorkflowName") - delete(f, "OwnerUin") - delete(f, "FolderId") - delete(f, "SourceServiceId") - delete(f, "TargetServiceId") - delete(f, "ExecutorGroupId") - delete(f, "CycleType") - delete(f, "Status") - delete(f, "TimeZone") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsTasksRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListOpsTasksResponseParams struct { - // 任务列表 - Data *ListOpsTasksPage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListOpsTasksResponse struct { - *tchttp.BaseResponse - Response *ListOpsTasksResponseParams `json:"Response"` -} - -func (r *ListOpsTasksResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListOpsTasksResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListOpsWorkflowsRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 分页页码 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 文件Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 工作流状态筛选 - // * ALL_RUNNING : 全部调度中 - // * ALL_FREEZED : 全部已暂停 - // * ALL_STOPPTED : 全部已下线 - // * PART_RUNNING : 部分调度中 - // * ALL_NO_RUNNING : 全部未调度 - // * ALL_INVALID : 全部已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 负责人Id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 工作流类型筛选, 支持值 Cycle或Manual. 默认只查询 Cycle - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // 工作流关键词过滤,支持工作流 Id/name 模糊匹配 - KeyWord *string `json:"KeyWord,omitnil,omitempty" name:"KeyWord"` - - // 排序项,可选CreateTime、TaskCount - SortItem *string `json:"SortItem,omitnil,omitempty" name:"SortItem"` - - // 排序方式,DESC或ASC, 大写 - SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` - - // 创建人Id - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 更新时间,格式yyyy-MM-dd HH:mm:ss - ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` - - // 创建时间,格式yyyy-MM-dd HH:mm:ss - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` -} - -type ListOpsWorkflowsRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 分页页码 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 文件Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 工作流状态筛选 - // * ALL_RUNNING : 全部调度中 - // * ALL_FREEZED : 全部已暂停 - // * ALL_STOPPTED : 全部已下线 - // * PART_RUNNING : 部分调度中 - // * ALL_NO_RUNNING : 全部未调度 - // * ALL_INVALID : 全部已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 负责人Id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 工作流类型筛选, 支持值 Cycle或Manual. 默认只查询 Cycle - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // 工作流关键词过滤,支持工作流 Id/name 模糊匹配 - KeyWord *string `json:"KeyWord,omitnil,omitempty" name:"KeyWord"` - - // 排序项,可选CreateTime、TaskCount - SortItem *string `json:"SortItem,omitnil,omitempty" name:"SortItem"` - - // 排序方式,DESC或ASC, 大写 - SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` - - // 创建人Id - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 更新时间,格式yyyy-MM-dd HH:mm:ss - ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` - - // 创建时间,格式yyyy-MM-dd HH:mm:ss - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` -} - -func (r *ListOpsWorkflowsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListOpsWorkflowsRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "PageNumber") - delete(f, "PageSize") - delete(f, "FolderId") - delete(f, "Status") - delete(f, "OwnerUin") - delete(f, "WorkflowType") - delete(f, "KeyWord") - delete(f, "SortItem") - delete(f, "SortType") - delete(f, "CreateUserUin") - delete(f, "ModifyTime") - delete(f, "CreateTime") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsWorkflowsRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListOpsWorkflowsResponseParams struct { - // 工作流列表 - Data *OpsWorkflows `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListOpsWorkflowsResponse struct { - *tchttp.BaseResponse - Response *ListOpsWorkflowsResponseParams `json:"Response"` -} - -func (r *ListOpsWorkflowsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListOpsWorkflowsResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListResourceFilesRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 数据页数,大于等于1。默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数,最小为10条,最大为200 条。默认10 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 资源文件名称(模糊搜索关键词) - ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` - - // 资源文件所属文件夹路径(如/a/b/c,查询c文件夹下的资源文件) - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 创建人ID, 可通过DescribeCurrentUserInfo接口获取 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 更新时间范围,开始时间, 格式yyyy-MM-dd HH:mm:ss - ModifyTimeStart *string `json:"ModifyTimeStart,omitnil,omitempty" name:"ModifyTimeStart"` - - // 更新时间范围,结束时间, 格式yyyy-MM-dd HH:mm:ss - ModifyTimeEnd *string `json:"ModifyTimeEnd,omitnil,omitempty" name:"ModifyTimeEnd"` - - // 创建时间范围,开始时间, 格式yyyy-MM-dd HH:mm:ss - CreateTimeStart *string `json:"CreateTimeStart,omitnil,omitempty" name:"CreateTimeStart"` - - // 创建时间范围,结束时间, 格式yyyy-MM-dd HH:mm:ss - CreateTimeEnd *string `json:"CreateTimeEnd,omitnil,omitempty" name:"CreateTimeEnd"` -} - -type ListResourceFilesRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 数据页数,大于等于1。默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数,最小为10条,最大为200 条。默认10 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 资源文件名称(模糊搜索关键词) - ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` - - // 资源文件所属文件夹路径(如/a/b/c,查询c文件夹下的资源文件) - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 创建人ID, 可通过DescribeCurrentUserInfo接口获取 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 更新时间范围,开始时间, 格式yyyy-MM-dd HH:mm:ss - ModifyTimeStart *string `json:"ModifyTimeStart,omitnil,omitempty" name:"ModifyTimeStart"` - - // 更新时间范围,结束时间, 格式yyyy-MM-dd HH:mm:ss - ModifyTimeEnd *string `json:"ModifyTimeEnd,omitnil,omitempty" name:"ModifyTimeEnd"` - - // 创建时间范围,开始时间, 格式yyyy-MM-dd HH:mm:ss - CreateTimeStart *string `json:"CreateTimeStart,omitnil,omitempty" name:"CreateTimeStart"` - - // 创建时间范围,结束时间, 格式yyyy-MM-dd HH:mm:ss - CreateTimeEnd *string `json:"CreateTimeEnd,omitnil,omitempty" name:"CreateTimeEnd"` -} - -func (r *ListResourceFilesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListResourceFilesRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "PageNumber") - delete(f, "PageSize") - delete(f, "ResourceName") - delete(f, "ParentFolderPath") - delete(f, "CreateUserUin") - delete(f, "ModifyTimeStart") - delete(f, "ModifyTimeEnd") - delete(f, "CreateTimeStart") - delete(f, "CreateTimeEnd") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListResourceFilesRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListResourceFilesResponseParams struct { - // 获取资源文件列表 - Data *ResourceFilePage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListResourceFilesResponse struct { - *tchttp.BaseResponse - Response *ListResourceFilesResponseParams `json:"Response"` -} - -func (r *ListResourceFilesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListResourceFilesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListResourceFoldersRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源文件夹绝对路径,取值示例 - // /wedata/test - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 数据页数,大于等于1。默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数,最小为10条,最大为200 条。默认10 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListResourceFoldersRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源文件夹绝对路径,取值示例 - // /wedata/test - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 数据页数,大于等于1。默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数,最小为10条,最大为200 条。默认10 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListResourceFoldersRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListResourceFoldersRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ParentFolderPath") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListResourceFoldersRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListResourceFoldersResponseParams struct { - // 分页的资源文件夹查询结果 - Data *ResourceFolderPage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListResourceFoldersResponse struct { - *tchttp.BaseResponse - Response *ListResourceFoldersResponseParams `json:"Response"` -} - -func (r *ListResourceFoldersResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListResourceFoldersResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListSQLFolderContentsRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹path,/aaa/bbb/ccc,路径头需带斜杠,查询根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 文件夹名称/脚本名称搜索 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // 只查询文件夹 - OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` - - // 是否只查询用户自己创建的脚本 - OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` - - // 权限范围:SHARED, PRIVATE - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` -} - -type ListSQLFolderContentsRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹path,/aaa/bbb/ccc,路径头需带斜杠,查询根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 文件夹名称/脚本名称搜索 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // 只查询文件夹 - OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` - - // 是否只查询用户自己创建的脚本 - OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` - - // 权限范围:SHARED, PRIVATE - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` -} - -func (r *ListSQLFolderContentsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListSQLFolderContentsRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ParentFolderPath") - delete(f, "Keyword") - delete(f, "OnlyFolderNode") - delete(f, "OnlyUserSelfScript") - delete(f, "AccessScope") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListSQLFolderContentsRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListSQLFolderContentsResponseParams struct { - // 结果列表 - Data []*SQLFolderNode `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListSQLFolderContentsResponse struct { - *tchttp.BaseResponse - Response *ListSQLFolderContentsResponseParams `json:"Response"` -} - -func (r *ListSQLFolderContentsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListSQLFolderContentsResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListSQLScriptRunsRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 脚本id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 任务id - JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` - - // 搜索关键词 - SearchWord *string `json:"SearchWord,omitnil,omitempty" name:"SearchWord"` - - // 执行人 - ExecuteUserUin *string `json:"ExecuteUserUin,omitnil,omitempty" name:"ExecuteUserUin"` - - // 开始时间 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 结束时间 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` -} - -type ListSQLScriptRunsRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 脚本id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 任务id - JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` - - // 搜索关键词 - SearchWord *string `json:"SearchWord,omitnil,omitempty" name:"SearchWord"` - - // 执行人 - ExecuteUserUin *string `json:"ExecuteUserUin,omitnil,omitempty" name:"ExecuteUserUin"` - - // 开始时间 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 结束时间 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` -} - -func (r *ListSQLScriptRunsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListSQLScriptRunsRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ScriptId") - delete(f, "JobId") - delete(f, "SearchWord") - delete(f, "ExecuteUserUin") - delete(f, "StartTime") - delete(f, "EndTime") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListSQLScriptRunsRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListSQLScriptRunsResponseParams struct { - // 数据探索任务 - Data []*JobDto `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListSQLScriptRunsResponse struct { - *tchttp.BaseResponse - Response *ListSQLScriptRunsResponseParams `json:"Response"` -} - -func (r *ListSQLScriptRunsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListSQLScriptRunsResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type ListTaskInfo struct { - // 任务数组 - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*TaskBaseAttribute `json:"Items,omitnil,omitempty" name:"Items"` - - // 当前请求的数据页数 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 当前请求的数据页条数 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 满足查询条件的数据总条数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 满足查询条件的数据总页数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` -} - -// Predefined struct for user -type ListTaskInstanceExecutionsRequestParams struct { - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例唯一标识,可以通过ListInstances获取 - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // 每页大小,默认10, 最大200 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 分页页码,默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` -} - -type ListTaskInstanceExecutionsRequest struct { - *tchttp.BaseRequest - - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例唯一标识,可以通过ListInstances获取 - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // 每页大小,默认10, 最大200 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 分页页码,默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` -} - -func (r *ListTaskInstanceExecutionsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListTaskInstanceExecutionsRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "InstanceKey") - delete(f, "TimeZone") - delete(f, "PageSize") - delete(f, "PageNumber") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTaskInstanceExecutionsRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListTaskInstanceExecutionsResponseParams struct { - // 实例详情 - Data *TaskInstanceExecutions `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListTaskInstanceExecutionsResponse struct { - *tchttp.BaseResponse - Response *ListTaskInstanceExecutionsResponseParams `json:"Response"` -} - -func (r *ListTaskInstanceExecutionsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListTaskInstanceExecutionsResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListTaskInstancesRequestParams struct { - // **项目ID** - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **页码,整型** - // 配合pageSize使用且不能小于1, 默认值1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // **每页显示的条数,默认为10,最小值为1、最大值为100 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // **任务名称 或 任务ID** - // 支持模糊搜索过滤, 多个用 英文逗号, 分割 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // **实例类型** - // - 0 表示补录类型 - // - 1 表示周期实例 - // - 2 表示非周期实例 - InstanceType *uint64 `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` - - // **实例状态** - WAIT_EVENT: 等待事件 - WAIT_UPSTREAM: 等待上游 - WAIT_RUN: 等待运行 - RUNNING: 运行中 - SKIP_RUNNING: 跳过运行 - FAILED_RETRY: 失败重试 - EXPIRED: 失败 - COMPLETED: 成功 - InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` - - // **任务类型Id** - TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // **任务周期类型** * ONEOFF_CYCLE: 一次性 * YEAR_CYCLE: 年 * MONTH_CYCLE: 月 * WEEK_CYCLE: 周 * DAY_CYCLE: 天 * HOUR_CYCLE: 小时 * MINUTE_CYCLE: 分钟 * CRONTAB_CYCLE: crontab表达式类型 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // **任务负责人id** - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // **任务所属文件id** - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // **任务所属工作流id** - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // **执行资源组Id** - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` - - // **实例计划调度时间过滤条件**过滤起始时间,时间格式为 yyyy-MM-dd HH:mm:ss - ScheduleTimeFrom *string `json:"ScheduleTimeFrom,omitnil,omitempty" name:"ScheduleTimeFrom"` - - // **实例计划调度时间过滤条件**过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss - ScheduleTimeTo *string `json:"ScheduleTimeTo,omitnil,omitempty" name:"ScheduleTimeTo"` - - // **实例执行开始时间过滤条件**过滤起始时间,时间格式为 yyyy-MM-dd HH:mm:ss - StartTimeFrom *string `json:"StartTimeFrom,omitnil,omitempty" name:"StartTimeFrom"` - - // **实例执行开始时间过滤条件** - // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss - StartTimeTo *string `json:"StartTimeTo,omitnil,omitempty" name:"StartTimeTo"` - - // **实例最近更新时间过滤条件** - // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss - LastUpdateTimeFrom *string `json:"LastUpdateTimeFrom,omitnil,omitempty" name:"LastUpdateTimeFrom"` - - // **实例最近更新时间过滤条件** - // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss - LastUpdateTimeTo *string `json:"LastUpdateTimeTo,omitnil,omitempty" name:"LastUpdateTimeTo"` - - // **查询结果排序字段**- SCHEDULE_DATE 表示 根据计划调度时间排序- START_TIME 表示 根据实例开始执行时间排序- END_TIME 表示 根据实例结束执行时间排序- COST_TIME 表示 根据实例执行时长排序 - SortColumn *string `json:"SortColumn,omitnil,omitempty" name:"SortColumn"` - - // **实例排序方式** - // - // - ASC - // - DESC - SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` -} - -type ListTaskInstancesRequest struct { - *tchttp.BaseRequest - - // **项目ID** - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **页码,整型** - // 配合pageSize使用且不能小于1, 默认值1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // **每页显示的条数,默认为10,最小值为1、最大值为100 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // **任务名称 或 任务ID** - // 支持模糊搜索过滤, 多个用 英文逗号, 分割 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // **实例类型** - // - 0 表示补录类型 - // - 1 表示周期实例 - // - 2 表示非周期实例 - InstanceType *uint64 `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` - - // **实例状态** - WAIT_EVENT: 等待事件 - WAIT_UPSTREAM: 等待上游 - WAIT_RUN: 等待运行 - RUNNING: 运行中 - SKIP_RUNNING: 跳过运行 - FAILED_RETRY: 失败重试 - EXPIRED: 失败 - COMPLETED: 成功 - InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` - - // **任务类型Id** - TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // **任务周期类型** * ONEOFF_CYCLE: 一次性 * YEAR_CYCLE: 年 * MONTH_CYCLE: 月 * WEEK_CYCLE: 周 * DAY_CYCLE: 天 * HOUR_CYCLE: 小时 * MINUTE_CYCLE: 分钟 * CRONTAB_CYCLE: crontab表达式类型 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // **任务负责人id** - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // **任务所属文件id** - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // **任务所属工作流id** - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // **执行资源组Id** - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` - - // **实例计划调度时间过滤条件**过滤起始时间,时间格式为 yyyy-MM-dd HH:mm:ss - ScheduleTimeFrom *string `json:"ScheduleTimeFrom,omitnil,omitempty" name:"ScheduleTimeFrom"` - - // **实例计划调度时间过滤条件**过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss - ScheduleTimeTo *string `json:"ScheduleTimeTo,omitnil,omitempty" name:"ScheduleTimeTo"` - - // **实例执行开始时间过滤条件**过滤起始时间,时间格式为 yyyy-MM-dd HH:mm:ss - StartTimeFrom *string `json:"StartTimeFrom,omitnil,omitempty" name:"StartTimeFrom"` - - // **实例执行开始时间过滤条件** - // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss - StartTimeTo *string `json:"StartTimeTo,omitnil,omitempty" name:"StartTimeTo"` - - // **实例最近更新时间过滤条件** - // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss - LastUpdateTimeFrom *string `json:"LastUpdateTimeFrom,omitnil,omitempty" name:"LastUpdateTimeFrom"` - - // **实例最近更新时间过滤条件** - // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss - LastUpdateTimeTo *string `json:"LastUpdateTimeTo,omitnil,omitempty" name:"LastUpdateTimeTo"` - - // **查询结果排序字段**- SCHEDULE_DATE 表示 根据计划调度时间排序- START_TIME 表示 根据实例开始执行时间排序- END_TIME 表示 根据实例结束执行时间排序- COST_TIME 表示 根据实例执行时长排序 - SortColumn *string `json:"SortColumn,omitnil,omitempty" name:"SortColumn"` - - // **实例排序方式** - // - // - ASC - // - DESC - SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` -} - -func (r *ListTaskInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListTaskInstancesRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "PageNumber") - delete(f, "PageSize") - delete(f, "Keyword") - delete(f, "TimeZone") - delete(f, "InstanceType") - delete(f, "InstanceState") - delete(f, "TaskTypeId") - delete(f, "CycleType") - delete(f, "OwnerUin") - delete(f, "FolderId") - delete(f, "WorkflowId") - delete(f, "ExecutorGroupId") - delete(f, "ScheduleTimeFrom") - delete(f, "ScheduleTimeTo") - delete(f, "StartTimeFrom") - delete(f, "StartTimeTo") - delete(f, "LastUpdateTimeFrom") - delete(f, "LastUpdateTimeTo") - delete(f, "SortColumn") - delete(f, "SortType") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTaskInstancesRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListTaskInstancesResponseParams struct { - // 实例结果集 - Data *TaskInstancePage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListTaskInstancesResponse struct { - *tchttp.BaseResponse - Response *ListTaskInstancesResponseParams `json:"Response"` -} - -func (r *ListTaskInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListTaskInstancesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type ListTaskVersions struct { - // 记录列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*TaskVersion `json:"Items,omitnil,omitempty" name:"Items"` - - // 满足查询条件的数据总条数。 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 满足查询条件的数据总页数。 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 当前页记录数 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageCount *uint64 `json:"PageCount,omitnil,omitempty" name:"PageCount"` - - // 当前请求的数据页条数。 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 当前请求的数据页数。 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` -} - -// Predefined struct for user -type ListTaskVersionsRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 保存版本:SAVE - // 提交版本:SUBMIT - // 默认为SAVE - TaskVersionType *string `json:"TaskVersionType,omitnil,omitempty" name:"TaskVersionType"` - - // 请求的数据页数。默认值为1,取值大于等于1。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListTaskVersionsRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 保存版本:SAVE - // 提交版本:SUBMIT - // 默认为SAVE - TaskVersionType *string `json:"TaskVersionType,omitnil,omitempty" name:"TaskVersionType"` - - // 请求的数据页数。默认值为1,取值大于等于1。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListTaskVersionsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListTaskVersionsRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - delete(f, "TaskVersionType") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTaskVersionsRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListTaskVersionsResponseParams struct { - // 版本列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *ListTaskVersions `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListTaskVersionsResponse struct { - *tchttp.BaseResponse - Response *ListTaskVersionsResponseParams `json:"Response"` -} - -func (r *ListTaskVersionsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListTaskVersionsResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListTasksRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 请求的数据页数。默认值为1,取值大于等于1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 任务名称 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 所属工作流ID - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 责任人ID - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 任务类型 - TaskTypeId *int64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 任务状态 - // * N: 新建 - // * Y: 调度中 - // * F: 已下线 - // * O: 已暂停 - // * T: 下线中 - // * INVALID: 已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 提交状态 - Submit *bool `json:"Submit,omitnil,omitempty" name:"Submit"` - - // BundleId信息 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // 创建人ID - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 修改时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 - ModifyTime []*string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` - - // 创建时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 - CreateTime []*string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` -} - -type ListTasksRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 请求的数据页数。默认值为1,取值大于等于1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 任务名称 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 所属工作流ID - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 责任人ID - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 任务类型 - TaskTypeId *int64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 任务状态 - // * N: 新建 - // * Y: 调度中 - // * F: 已下线 - // * O: 已暂停 - // * T: 下线中 - // * INVALID: 已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 提交状态 - Submit *bool `json:"Submit,omitnil,omitempty" name:"Submit"` - - // BundleId信息 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // 创建人ID - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 修改时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 - ModifyTime []*string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` - - // 创建时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 - CreateTime []*string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` -} - -func (r *ListTasksRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListTasksRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "PageNumber") - delete(f, "PageSize") - delete(f, "TaskName") - delete(f, "WorkflowId") - delete(f, "OwnerUin") - delete(f, "TaskTypeId") - delete(f, "Status") - delete(f, "Submit") - delete(f, "BundleId") - delete(f, "CreateUserUin") - delete(f, "ModifyTime") - delete(f, "CreateTime") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTasksRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListTasksResponseParams struct { - // 任务分页信息 - Data *ListTaskInfo `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListTasksResponse struct { - *tchttp.BaseResponse - Response *ListTasksResponseParams `json:"Response"` -} - -func (r *ListTasksResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListTasksResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListUpstreamOpsTasksRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 分页页码 - PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListUpstreamOpsTasksRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 分页页码 - PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListUpstreamOpsTasksRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListUpstreamOpsTasksRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListUpstreamOpsTasksRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListUpstreamOpsTasksResponseParams struct { - // 上游任务详情 - Data *ParentDependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListUpstreamOpsTasksResponse struct { - *tchttp.BaseResponse - Response *ListUpstreamOpsTasksResponseParams `json:"Response"` -} - -func (r *ListUpstreamOpsTasksResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListUpstreamOpsTasksResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListUpstreamTaskInstancesRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **实例唯一标识** - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **时区** timeZone, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // **页码,整型**配合pageSize使用且不能小于1, 默认值1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // **每页显示的条数,默认为10,最小值为1、最大值为100 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListUpstreamTaskInstancesRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **实例唯一标识** - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // **时区** timeZone, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - - // **页码,整型**配合pageSize使用且不能小于1, 默认值1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // **每页显示的条数,默认为10,最小值为1、最大值为100 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListUpstreamTaskInstancesRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListUpstreamTaskInstancesRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "InstanceKey") - delete(f, "TimeZone") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListUpstreamTaskInstancesRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListUpstreamTaskInstancesResponseParams struct { - // 上游实例列表 - Data *TaskInstancePage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListUpstreamTaskInstancesResponse struct { - *tchttp.BaseResponse - Response *ListUpstreamTaskInstancesResponseParams `json:"Response"` -} - -func (r *ListUpstreamTaskInstancesResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListUpstreamTaskInstancesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListUpstreamTasksRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 请求的数据页数。默认值为1,取值大于等于1。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 请求的数据页数。默认值为1,取值大于等于1。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListUpstreamTasksRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 请求的数据页数。默认值为1,取值大于等于1。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 请求的数据页数。默认值为1,取值大于等于1。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListUpstreamTasksRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListUpstreamTasksRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListUpstreamTasksRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListUpstreamTasksResponseParams struct { - // 上游任务详情 - Data *DependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListUpstreamTasksResponse struct { - *tchttp.BaseResponse - Response *ListUpstreamTasksResponseParams `json:"Response"` -} - -func (r *ListUpstreamTasksResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListUpstreamTasksResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListWorkflowFoldersRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹绝对路径,如/abc/de,如果是根目录则传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 数据页数,大于等于1。默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数,最小为10条,最大为200 条。默认10 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ListWorkflowFoldersRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 父文件夹绝对路径,如/abc/de,如果是根目录则传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 数据页数,大于等于1。默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数,最小为10条,最大为200 条。默认10 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -func (r *ListWorkflowFoldersRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListWorkflowFoldersRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ParentFolderPath") - delete(f, "PageNumber") - delete(f, "PageSize") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListWorkflowFoldersRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListWorkflowFoldersResponseParams struct { - // 分页的文件夹查询结果 - Data *WorkflowFolderPage `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListWorkflowFoldersResponse struct { - *tchttp.BaseResponse - Response *ListWorkflowFoldersResponseParams `json:"Response"` -} - -func (r *ListWorkflowFoldersResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListWorkflowFoldersResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type ListWorkflowInfo struct { - // 列表item - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*WorkflowInfo `json:"Items,omitnil,omitempty" name:"Items"` - - // 满足查询条件的数据总页数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 当前请求的数据页数 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 当前请求的数据页条数 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 满足查询条件的数据总条数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` -} - -// Predefined struct for user -type ListWorkflowsRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 请求的数据页数。默认值为1,取值大于等于1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 搜索关键词 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // 工作流所属文件夹 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 工作流类型,cycle和manual - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // bundleId项 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // 负责人ID - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 创建人ID - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 修改时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 - ModifyTime []*string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` - - // 创建时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 - CreateTime []*string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` -} - -type ListWorkflowsRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 请求的数据页数。默认值为1,取值大于等于1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 搜索关键词 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` - - // 工作流所属文件夹 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 工作流类型,cycle和manual - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // bundleId项 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // 负责人ID - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 创建人ID - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 修改时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 - ModifyTime []*string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` - - // 创建时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 - CreateTime []*string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` -} - -func (r *ListWorkflowsRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListWorkflowsRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "PageNumber") - delete(f, "PageSize") - delete(f, "Keyword") - delete(f, "ParentFolderPath") - delete(f, "WorkflowType") - delete(f, "BundleId") - delete(f, "OwnerUin") - delete(f, "CreateUserUin") - delete(f, "ModifyTime") - delete(f, "CreateTime") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListWorkflowsRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type ListWorkflowsResponseParams struct { - // 查询工作流分页信息 - Data *ListWorkflowInfo `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type ListWorkflowsResponse struct { - *tchttp.BaseResponse - Response *ListWorkflowsResponseParams `json:"Response"` -} - -func (r *ListWorkflowsResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *ListWorkflowsResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type ModifyAlarmRuleResult struct { - // 是否更新成功 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -type NotebookSessionInfo struct { - // 会话ID - NotebookSessionId *string `json:"NotebookSessionId,omitnil,omitempty" name:"NotebookSessionId"` - - // 会话名称 - NotebookSessionName *string `json:"NotebookSessionName,omitnil,omitempty" name:"NotebookSessionName"` -} - -type NotificationFatigue struct { - // 告警次数 - NotifyCount *uint64 `json:"NotifyCount,omitnil,omitempty" name:"NotifyCount"` - - // 告警间隔,分钟 - NotifyInterval *uint64 `json:"NotifyInterval,omitnil,omitempty" name:"NotifyInterval"` - - // 免打扰时间,例如示例值 - // [{DaysOfWeek: [1, 2], StartTime: "00:00:00", EndTime: "09:00:00"}] - // 每周一、周二的00:00到09:00免打扰 - // 注意:此字段可能返回 null,表示取不到有效值。 - QuietIntervals []*AlarmQuietInterval `json:"QuietIntervals,omitnil,omitempty" name:"QuietIntervals"` -} - -type OpsAsyncJobDetail struct { - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 操作id - AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` - - // 异步操作类型 - AsyncType *string `json:"AsyncType,omitnil,omitempty" name:"AsyncType"` - - // 异步操作状态:初始状态: INIT; 运行中: RUNNING; 成功: SUCCESS; 失败: FAIL; 部分成功: PART_SUCCESS - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 错误信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - ErrorDesc *string `json:"ErrorDesc,omitnil,omitempty" name:"ErrorDesc"` - - // 子操作总数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalSubProcessCount *uint64 `json:"TotalSubProcessCount,omitnil,omitempty" name:"TotalSubProcessCount"` - - // 已完成的子操作个数 - // 注意:此字段可能返回 null,表示取不到有效值。 - FinishedSubProcessCount *uint64 `json:"FinishedSubProcessCount,omitnil,omitempty" name:"FinishedSubProcessCount"` - - // 已成功的子操作个数 - // 注意:此字段可能返回 null,表示取不到有效值。 - SuccessSubProcessCount *uint64 `json:"SuccessSubProcessCount,omitnil,omitempty" name:"SuccessSubProcessCount"` - - // 操作人id - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 操作创建时间 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 更新时间 - UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` -} - -type OpsAsyncResponse struct { - // 异步执行记录Id - AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` -} - -type OpsTaskDepend struct { - // 任务Id - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 工作流id - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 项目id - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 项目名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` - - // 任务状态: - // - Y: 调度中 - // - F: 已下线 - // - O: 已暂停 - // - T: 下线中 - // - INVALID: 已失效 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 任务类型Id: - // * 21:JDBC SQL - // * 23:TDSQL-PostgreSQL - // * 26:OfflineSynchronization - // * 30:Python - // * 31:PySpark - // * 33:Impala - // * 34:Hive SQL - // * 35:Shell - // * 36:Spark SQL - // * 38:Shell Form Mode - // * 39:Spark - // * 40:TCHouse-P - // * 41:Kettle - // * 42:Tchouse-X - // * 43:TCHouse-X SQL - // * 46:DLC Spark - // * 47:TiOne - // * 48:Trino - // * 50:DLC PySpark - // * 92:MapReduce - // * 130:Branch Node - // * 131:Merged Node - // * 132:Notebook - // * 133:SSH - // * 134:StarRocks - // * 137:For-each - // * 138:Setats SQL - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 任务类型描述 - // - 20 : 通用数据同步 - // - 25 : ETLTaskType - // - 26 : ETLTaskType - // - 30 : python - // - 31 : pyspark - // - 34 : hivesql - // - 35 : shell - // - 36 : sparksql - // - 21 : jdbcsql - // - 32 : dlc - // - 33 : ImpalaTaskType - // - 40 : CDWTaskType - // - 41 : kettle - // - 42 : TCHouse-X - // - 43 : TCHouse-X SQL - // - 46 : dlcsparkTaskType - // - 47 : TiOneMachineLearningTaskType - // - 48 : Trino - // - 50 : DLCPyspark - // - 23 : TencentDistributedSQL - // - 39 : spark - // - 92 : MRTaskType - // - 38 : ShellScript - // - 70 : HiveSQLScrip - // - 130 : 分支 - // - 131 : 归并 - // - 132 : Notebook探索 - // - 133 : SSH节点 - // - 134 : StarRocks - // - 137 : For-each - // - 10000 : 自定义业务通用 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskTypeDesc *string `json:"TaskTypeDesc,omitnil,omitempty" name:"TaskTypeDesc"` - - // 文件夹名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 文件夹id - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 最近提交时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - FirstSubmitTime *string `json:"FirstSubmitTime,omitnil,omitempty" name:"FirstSubmitTime"` - - // 首次运行时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - FirstRunTime *string `json:"FirstRunTime,omitnil,omitempty" name:"FirstRunTime"` - - // 调度计划展示描述信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScheduleDesc *string `json:"ScheduleDesc,omitnil,omitempty" name:"ScheduleDesc"` - - // 任务周期类型 - // * ONEOFF_CYCLE: 一次性 - // * YEAR_CYCLE: 年 - // * MONTH_CYCLE: 月 - // * WEEK_CYCLE: 周 - // * DAY_CYCLE: 天 - // * HOUR_CYCLE: 小时 - // * MINUTE_CYCLE: 分钟 - // * CRONTAB_CYCLE: crontab表达式类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 负责人 - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 执行开始时间, 格式HH:mm, 如00:00 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` - - // 执行结束时间, 格式HH:mm, 如23:59 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` -} - -type OpsWorkflow struct { - // 任务数量 - TaskCount *uint64 `json:"TaskCount,omitnil,omitempty" name:"TaskCount"` - - // 文件名 - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 工作流文件id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 工作流id - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 工作流类型 - // - cycle周期 - // - manual手动 - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // 工作流描述 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` - - // 负责人userId,多个‘;’隔开 - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 项目名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` - - // 工作流状态 - // * ALL_RUNNING : 全部调度中 - // * ALL_FREEZED : 全部已暂停 - // * ALL_STOPPTED : 全部已下线 - // * PART_RUNNING : 部分调度中 - // * ALL_NO_RUNNING : 全部未调度 - // * ALL_INVALID : 全部已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 工作流创建时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 最近更新时间, 包含开发、生产变更 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` - - // 最近更新人,包含开发、生产变更 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` -} - -type OpsWorkflowDetail struct { - // 工作流ID - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流描述 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` - - // 工作流类型: - // - cycle 周期; - // - manual手动 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // 创建时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 创建人 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 修改时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` - - // 延时执行时间,unit=minute - // 注意:此字段可能返回 null,表示取不到有效值。 - StartupTime *uint64 `json:"StartupTime,omitnil,omitempty" name:"StartupTime"` - - // 配置生效日期 开始日期 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 配置结束日期 结束日期 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 任务周期类型 - // * ONEOFF_CYCLE: 一次性 - // * YEAR_CYCLE: 年 - // * MONTH_CYCLE: 月 - // * WEEK_CYCLE: 周 - // * DAY_CYCLE: 天 - // * HOUR_CYCLE: 小时 - // * MINUTE_CYCLE: 分钟 - // * CRONTAB_CYCLE: crontab表达式类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 文件夹Id - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 任务实例初始化策略 - // - T_PLUS_1(T+1):延迟一天初始化 - // - T_PLUS_0(T+0):当天初始化 - // - T_MINUS_1(T-1):提前一天初始化 - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceInitStrategy *string `json:"InstanceInitStrategy,omitnil,omitempty" name:"InstanceInitStrategy"` - - // 调度计划释义 - // 注意:此字段可能返回 null,表示取不到有效值。 - SchedulerDesc *string `json:"SchedulerDesc,omitnil,omitempty" name:"SchedulerDesc"` - - // 工作流首次提交时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - FirstSubmitTime *string `json:"FirstSubmitTime,omitnil,omitempty" name:"FirstSubmitTime"` - - // 工作流最近提交时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - LatestSubmitTime *string `json:"LatestSubmitTime,omitnil,omitempty" name:"LatestSubmitTime"` - - // 工作流状态 - // * ALL_RUNNING : 全部调度中 - // * ALL_FREEZED : 全部已暂停 - // * ALL_STOPPTED : 全部已下线 - // * PART_RUNNING : 部分调度中 - // * ALL_NO_RUNNING : 全部未调度 - // * ALL_INVALID : 全部已失效 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 负责人, 多个以‘;’隔开 - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 工作流名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` -} - -type OpsWorkflows struct { - // 记录列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*OpsWorkflow `json:"Items,omitnil,omitempty" name:"Items"` - - // 结果总数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 总页数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 分页大小 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 分页页码 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` -} - -type OutTaskParameter struct { - // 参数名 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` - - // 参数定义 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"` -} - -type ParamInfo struct { - // 参数名 - ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` - - // 参数值 - ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"` -} - -type ParentDependencyConfigPage struct { - // 结果总数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 总页数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 页码 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 分页数据 - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*OpsTaskDepend `json:"Items,omitnil,omitempty" name:"Items"` -} - -// Predefined struct for user -type PauseOpsTasksAsyncRequestParams struct { - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id列表 - TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` - - // 是否需要终止已生成实例 - KillInstance *bool `json:"KillInstance,omitnil,omitempty" name:"KillInstance"` -} - -type PauseOpsTasksAsyncRequest struct { - *tchttp.BaseRequest - - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id列表 - TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` - - // 是否需要终止已生成实例 - KillInstance *bool `json:"KillInstance,omitnil,omitempty" name:"KillInstance"` -} - -func (r *PauseOpsTasksAsyncRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *PauseOpsTasksAsyncRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskIds") - delete(f, "KillInstance") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PauseOpsTasksAsyncRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type PauseOpsTasksAsyncResponseParams struct { - // 异步操作结果 - Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type PauseOpsTasksAsyncResponse struct { - *tchttp.BaseResponse - Response *PauseOpsTasksAsyncResponseParams `json:"Response"` -} - -func (r *PauseOpsTasksAsyncResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *PauseOpsTasksAsyncResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type ProjectInstanceStatisticsAlarmInfo struct { - // 告警类型  - // - // projectFailureInstanceUpwardFluctuationAlarm: 失败实例向上波动告警 - // - // projectSuccessInstanceDownwardFluctuationAlarm: 成功实例向下波动告警 - AlarmType *string `json:"AlarmType,omitnil,omitempty" name:"AlarmType"` - - // 实例成功数向下波动比例告警阀值;实例失败数向上波动比例告警阀值 - InstanceThresholdCountPercent *uint64 `json:"InstanceThresholdCountPercent,omitnil,omitempty" name:"InstanceThresholdCountPercent"` - - // 累计实例数波动阀值 - InstanceThresholdCount *uint64 `json:"InstanceThresholdCount,omitnil,omitempty" name:"InstanceThresholdCount"` - - // 稳定性次数阈值(防抖动配置统计周期数) - StabilizeThreshold *uint64 `json:"StabilizeThreshold,omitnil,omitempty" name:"StabilizeThreshold"` - - // 稳定性统计周期(防抖动配置统计周期数) - StabilizeStatisticsCycle *uint64 `json:"StabilizeStatisticsCycle,omitnil,omitempty" name:"StabilizeStatisticsCycle"` - - // 是否累计计算,false:连续,true:累计 - IsCumulant *bool `json:"IsCumulant,omitnil,omitempty" name:"IsCumulant"` - - // 当日累计实例数; - // 当天失败实例数向下波动量 - InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"` -} - -type ReconciliationStrategyInfo struct { - // 离线告警规则类型 - // reconciliationFailure: 离线对账失败告警 - // reconciliationOvertime: 离线对账任务运行超时告警(需配置超时时间) - // reconciliationMismatch: 离线对账不一致条数告警(需配置不一致条数阀值) - // 注意:此字段可能返回 null,表示取不到有效值。 - RuleType *string `json:"RuleType,omitnil,omitempty" name:"RuleType"` - - // 对账不一致条数阀值, RuleType=reconciliationMismatch对账不一致条数类型,需要配置该字段,无默认值 - // 注意:此字段可能返回 null,表示取不到有效值。 - MismatchCount *uint64 `json:"MismatchCount,omitnil,omitempty" name:"MismatchCount"` - - // 对账任务运行超时阀值: 小时, 默认为0 - // 注意:此字段可能返回 null,表示取不到有效值。 - Hour *int64 `json:"Hour,omitnil,omitempty" name:"Hour"` - - // 对账任务运行超时阀值: 分钟, 默认为1 - // 注意:此字段可能返回 null,表示取不到有效值。 - Min *int64 `json:"Min,omitnil,omitempty" name:"Min"` -} - -// Predefined struct for user -type RerunTaskInstancesAsyncRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例id列表,可以从ListInstances中获取 - InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` - - // 重跑类型, 1: 自身; 3: 孩子; 2: 自身以及孩子,默认1 - RerunType *string `json:"RerunType,omitnil,omitempty" name:"RerunType"` - - // 是否检查上游任务: ALL(全部)、 MAKE_SCOPE(选中)、NONE (全部不检查),默认NONE - CheckParentType *string `json:"CheckParentType,omitnil,omitempty" name:"CheckParentType"` - - // 下游实例范围 WORKFLOW: 所在工作流 PROJECT: 所在项目 ALL: 所有跨工作流依赖的项目,默认WORKFLOW - SonRangeType *string `json:"SonRangeType,omitnil,omitempty" name:"SonRangeType"` - - // 重跑是否忽略事件监听 - SkipEventListening *bool `json:"SkipEventListening,omitnil,omitempty" name:"SkipEventListening"` - - // 自定义实例运行并发度, 如果不配置,则使用任务原有自依赖 - RedefineParallelNum *int64 `json:"RedefineParallelNum,omitnil,omitempty" name:"RedefineParallelNum"` - - // 自定义的工作流自依赖: yes开启,no关闭,如果不配置,则使用工作流原有自依赖 - RedefineSelfWorkflowDependency *string `json:"RedefineSelfWorkflowDependency,omitnil,omitempty" name:"RedefineSelfWorkflowDependency"` - - // 重跑实例自定义参数 - RedefineParamList *KVMap `json:"RedefineParamList,omitnil,omitempty" name:"RedefineParamList"` -} - -type RerunTaskInstancesAsyncRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例id列表,可以从ListInstances中获取 - InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` - - // 重跑类型, 1: 自身; 3: 孩子; 2: 自身以及孩子,默认1 - RerunType *string `json:"RerunType,omitnil,omitempty" name:"RerunType"` - - // 是否检查上游任务: ALL(全部)、 MAKE_SCOPE(选中)、NONE (全部不检查),默认NONE - CheckParentType *string `json:"CheckParentType,omitnil,omitempty" name:"CheckParentType"` - - // 下游实例范围 WORKFLOW: 所在工作流 PROJECT: 所在项目 ALL: 所有跨工作流依赖的项目,默认WORKFLOW - SonRangeType *string `json:"SonRangeType,omitnil,omitempty" name:"SonRangeType"` - - // 重跑是否忽略事件监听 - SkipEventListening *bool `json:"SkipEventListening,omitnil,omitempty" name:"SkipEventListening"` - - // 自定义实例运行并发度, 如果不配置,则使用任务原有自依赖 - RedefineParallelNum *int64 `json:"RedefineParallelNum,omitnil,omitempty" name:"RedefineParallelNum"` - - // 自定义的工作流自依赖: yes开启,no关闭,如果不配置,则使用工作流原有自依赖 - RedefineSelfWorkflowDependency *string `json:"RedefineSelfWorkflowDependency,omitnil,omitempty" name:"RedefineSelfWorkflowDependency"` - - // 重跑实例自定义参数 - RedefineParamList *KVMap `json:"RedefineParamList,omitnil,omitempty" name:"RedefineParamList"` -} - -func (r *RerunTaskInstancesAsyncRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *RerunTaskInstancesAsyncRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "InstanceKeyList") - delete(f, "RerunType") - delete(f, "CheckParentType") - delete(f, "SonRangeType") - delete(f, "SkipEventListening") - delete(f, "RedefineParallelNum") - delete(f, "RedefineSelfWorkflowDependency") - delete(f, "RedefineParamList") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RerunTaskInstancesAsyncRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type RerunTaskInstancesAsyncResponseParams struct { - // 批量重跑操作的返回的异步id, 可以在接口GetAsyncJob获取具体执行详情 - Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type RerunTaskInstancesAsyncResponse struct { - *tchttp.BaseResponse - Response *RerunTaskInstancesAsyncResponseParams `json:"Response"` -} - -func (r *RerunTaskInstancesAsyncResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *RerunTaskInstancesAsyncResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type ResourceFile struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源文件ID - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` - - // 资源文件名称 - ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` - - // 资源文件路径 - LocalPath *string `json:"LocalPath,omitnil,omitempty" name:"LocalPath"` - - // 资源对象COS存储路径 - RemotePath *string `json:"RemotePath,omitnil,omitempty" name:"RemotePath"` - - // 资源文件类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - FileExtensionType *string `json:"FileExtensionType,omitnil,omitempty" name:"FileExtensionType"` - - // 资源大小 - Size *string `json:"Size,omitnil,omitempty" name:"Size"` - - // 创建用户ID - CreatorUserUin *string `json:"CreatorUserUin,omitnil,omitempty" name:"CreatorUserUin"` - - // 创建用户名称 - CreatorUserName *string `json:"CreatorUserName,omitnil,omitempty" name:"CreatorUserName"` - - // 最后更新用户名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateUserName *string `json:"UpdateUserName,omitnil,omitempty" name:"UpdateUserName"` - - // 最后更新用户ID - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` - - // COS 桶 - BucketName *string `json:"BucketName,omitnil,omitempty" name:"BucketName"` - - // COS 地域 - CosRegion *string `json:"CosRegion,omitnil,omitempty" name:"CosRegion"` - - // 资源来源模式 - ResourceSourceMode *string `json:"ResourceSourceMode,omitnil,omitempty" name:"ResourceSourceMode"` - - // 本地工程ID - // 注意:此字段可能返回 null,表示取不到有效值。 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // 本地工程信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -type ResourceFileItem struct { - // 资源文件ID - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` - - // 资源文件名称 - ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` - - // 资源文件类型 - FileExtensionType *string `json:"FileExtensionType,omitnil,omitempty" name:"FileExtensionType"` - - // 资源路径 - LocalPath *string `json:"LocalPath,omitnil,omitempty" name:"LocalPath"` -} - -type ResourceFilePage struct { - // 任务集合信息 - Items []*ResourceFileItem `json:"Items,omitnil,omitempty" name:"Items"` - - // 总页数 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 总数量 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 当前页 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示数 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type ResourceFolder struct { - // 资源文件夹ID - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 创建人ID - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 创建人名称 - CreateUserName *string `json:"CreateUserName,omitnil,omitempty" name:"CreateUserName"` - - // 文件夹路径 - FolderPath *string `json:"FolderPath,omitnil,omitempty" name:"FolderPath"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -type ResourceFolderPage struct { - // 资源文件夹集合信息 - Items []*ResourceFolder `json:"Items,omitnil,omitempty" name:"Items"` - - // 总页数 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 总数量 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 当前页 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示数 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -// Predefined struct for user -type RunSQLScriptRequestParams struct { - // 脚本id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 脚本内容,不传则默认执行已保存的全量脚本内容;若传递则要用Base64编码 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` - - // 高级运行参数,JSON格式base64编码 - Params *string `json:"Params,omitnil,omitempty" name:"Params"` -} - -type RunSQLScriptRequest struct { - *tchttp.BaseRequest - - // 脚本id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 脚本内容,不传则默认执行已保存的全量脚本内容;若传递则要用Base64编码 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` - - // 高级运行参数,JSON格式base64编码 - Params *string `json:"Params,omitnil,omitempty" name:"Params"` -} - -func (r *RunSQLScriptRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *RunSQLScriptRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ScriptId") - delete(f, "ProjectId") - delete(f, "ScriptContent") - delete(f, "Params") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RunSQLScriptRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type RunSQLScriptResponseParams struct { - // 数据探索任务 - Data *JobDto `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type RunSQLScriptResponse struct { - *tchttp.BaseResponse - Response *RunSQLScriptResponseParams `json:"Response"` -} - -func (r *RunSQLScriptResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *RunSQLScriptResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type SQLContentActionResult struct { - // 操作是否成功 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` - - // 文件夹ID - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -type SQLFolderNode struct { - // 唯一标识 - // 注意:此字段可能返回 null,表示取不到有效值。 - Id *string `json:"Id,omitnil,omitempty" name:"Id"` - - // 名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - Name *string `json:"Name,omitnil,omitempty" name:"Name"` - - // 类型 folder,script - // 注意:此字段可能返回 null,表示取不到有效值。 - Type *string `json:"Type,omitnil,omitempty" name:"Type"` - - // 父文件夹path,/aaa/bbb/ccc - // 注意:此字段可能返回 null,表示取不到有效值。 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 是否叶子节点 - // 注意:此字段可能返回 null,表示取不到有效值。 - IsLeaf *bool `json:"IsLeaf,omitnil,omitempty" name:"IsLeaf"` - - // 业务参数 - // 注意:此字段可能返回 null,表示取不到有效值。 - Params *string `json:"Params,omitnil,omitempty" name:"Params"` - - // 权限范围: SHARED, PRIVATE - // 注意:此字段可能返回 null,表示取不到有效值。 - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` - - // 节点路径 - // 注意:此字段可能返回 null,表示取不到有效值。 - Path *string `json:"Path,omitnil,omitempty" name:"Path"` - - // 创建人 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 当前用户对节点拥有的权限 - // 注意:此字段可能返回 null,表示取不到有效值。 - NodePermission *string `json:"NodePermission,omitnil,omitempty" name:"NodePermission"` - - // 子节点列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - Children []*SQLFolderNode `json:"Children,omitnil,omitempty" name:"Children"` - - // 文件责任人 - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` -} - -type SQLScript struct { - // 脚本id - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 脚本名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptName *string `json:"ScriptName,omitnil,omitempty" name:"ScriptName"` - - // 脚本所有者 uin - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 父文件夹path,/aaa/bbb/ccc - // 注意:此字段可能返回 null,表示取不到有效值。 - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` - - // 脚本配置 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` - - // 脚本内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` - - // 最近一次操作人 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` - - // 项目id - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 更新时间 yyyy-MM-dd hh:mm:ss - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` - - // 创建时间 yyyy-MM-dd hh:mm:ss - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 权限范围:SHARED, PRIVATE - // 注意:此字段可能返回 null,表示取不到有效值。 - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` - - // 节点全路径,/aaa/bbb/ccc.ipynb,由各个节点的名称组成 - // 注意:此字段可能返回 null,表示取不到有效值。 - Path *string `json:"Path,omitnil,omitempty" name:"Path"` -} - -type SQLScriptConfig struct { - // 数据源Id - // 注意:此字段可能返回 null,表示取不到有效值。 - DatasourceId *string `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` - - // 数据源环境 - // 注意:此字段可能返回 null,表示取不到有效值。 - DatasourceEnv *string `json:"DatasourceEnv,omitnil,omitempty" name:"DatasourceEnv"` - - // 计算资源 - // 注意:此字段可能返回 null,表示取不到有效值。 - ComputeResource *string `json:"ComputeResource,omitnil,omitempty" name:"ComputeResource"` - - // 执行资源组 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` - - // 高级运行参数,变量替换,map-json String,String - // 注意:此字段可能返回 null,表示取不到有效值。 - Params *string `json:"Params,omitnil,omitempty" name:"Params"` - - // 高级设置,执行配置参数,map-json String,String. 采用Base64编码 - // 注意:此字段可能返回 null,表示取不到有效值。 - AdvanceConfig *string `json:"AdvanceConfig,omitnil,omitempty" name:"AdvanceConfig"` -} - -type SQLStopResult struct { - // 是否成功 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -// Predefined struct for user -type SetSuccessTaskInstancesAsyncRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例id列表,可以从ListInstances中获取 - InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` -} - -type SetSuccessTaskInstancesAsyncRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 实例id列表,可以从ListInstances中获取 - InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` -} - -func (r *SetSuccessTaskInstancesAsyncRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *SetSuccessTaskInstancesAsyncRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "InstanceKeyList") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetSuccessTaskInstancesAsyncRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type SetSuccessTaskInstancesAsyncResponseParams struct { - // 批量置成功操作的返回的异步id, 可以在接口GetAsyncJob获取具体执行详情 - Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type SetSuccessTaskInstancesAsyncResponse struct { - *tchttp.BaseResponse - Response *SetSuccessTaskInstancesAsyncResponseParams `json:"Response"` -} - -func (r *SetSuccessTaskInstancesAsyncResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *SetSuccessTaskInstancesAsyncResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type SqlCreateResult struct { - // 文件夹id - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` -} - -// Predefined struct for user -type StopOpsTasksAsyncRequestParams struct { - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id列表 - TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` - - // 是否终止已生成实例,默认false - KillInstance *bool `json:"KillInstance,omitnil,omitempty" name:"KillInstance"` -} - -type StopOpsTasksAsyncRequest struct { - *tchttp.BaseRequest - - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id列表 - TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` - - // 是否终止已生成实例,默认false - KillInstance *bool `json:"KillInstance,omitnil,omitempty" name:"KillInstance"` -} - -func (r *StopOpsTasksAsyncRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *StopOpsTasksAsyncRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskIds") - delete(f, "KillInstance") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StopOpsTasksAsyncRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type StopOpsTasksAsyncResponseParams struct { - // AsyncId - Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type StopOpsTasksAsyncResponse struct { - *tchttp.BaseResponse - Response *StopOpsTasksAsyncResponseParams `json:"Response"` -} - -func (r *StopOpsTasksAsyncResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *StopOpsTasksAsyncResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type StopSQLScriptRunRequestParams struct { - // 查询id - JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -type StopSQLScriptRunRequest struct { - *tchttp.BaseRequest - - // 查询id - JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` -} - -func (r *StopSQLScriptRunRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *StopSQLScriptRunRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "JobId") - delete(f, "ProjectId") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StopSQLScriptRunRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type StopSQLScriptRunResponseParams struct { - // 执行结果 - Data *SQLStopResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type StopSQLScriptRunResponse struct { - *tchttp.BaseResponse - Response *StopSQLScriptRunResponseParams `json:"Response"` -} - -func (r *StopSQLScriptRunResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *StopSQLScriptRunResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type SubmitTaskRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 版本备注 - VersionRemark *string `json:"VersionRemark,omitnil,omitempty" name:"VersionRemark"` -} - -type SubmitTaskRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 版本备注 - VersionRemark *string `json:"VersionRemark,omitnil,omitempty" name:"VersionRemark"` -} - -func (r *SubmitTaskRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *SubmitTaskRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - delete(f, "VersionRemark") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SubmitTaskRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type SubmitTaskResponseParams struct { - // 成功或者失败 - Data *SubmitTaskResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type SubmitTaskResponse struct { - *tchttp.BaseResponse - Response *SubmitTaskResponseParams `json:"Response"` -} - -func (r *SubmitTaskResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *SubmitTaskResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type SubmitTaskResult struct { - // 生成的任务版本ID - // 注意:此字段可能返回 null,表示取不到有效值。 - VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` - - // 提交状态 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -type Task struct { - // 任务基本属性 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskBaseAttribute *TaskBaseAttribute `json:"TaskBaseAttribute,omitnil,omitempty" name:"TaskBaseAttribute"` - - // 任务配置 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskConfiguration *TaskConfiguration `json:"TaskConfiguration,omitnil,omitempty" name:"TaskConfiguration"` - - // 任务调度配置 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskSchedulerConfiguration *TaskSchedulerConfiguration `json:"TaskSchedulerConfiguration,omitnil,omitempty" name:"TaskSchedulerConfiguration"` -} - -type TaskBaseAttribute struct { - // 任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务类型ID: - // - // * 21:JDBC SQL - // * 23:TDSQL-PostgreSQL - // * 26:OfflineSynchronization - // * 30:Python - // * 31:PySpark - // * 33:Impala - // * 34:Hive SQL - // * 35:Shell - // * 36:Spark SQL - // * 38:Shell Form Mode - // * 39:Spark - // * 40:TCHouse-P - // * 41:Kettle - // * 42:Tchouse-X - // * 43:TCHouse-X SQL - // * 46:DLC Spark - // * 47:TiOne - // * 48:Trino - // * 50:DLC PySpark - // * 92:MapReduce - // * 130:Branch Node - // * 131:Merged Node - // * 132:Notebook - // * 133:SSH - // * 134:StarRocks - // * 137:For-each - // * 138:Setats SQL - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 工作流ID - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 任务名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 最近一次保存版本号 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskLatestVersionNo *string `json:"TaskLatestVersionNo,omitnil,omitempty" name:"TaskLatestVersionNo"` - - // 最近一次提交版本号 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskLatestSubmitVersionNo *string `json:"TaskLatestSubmitVersionNo,omitnil,omitempty" name:"TaskLatestSubmitVersionNo"` - - // 工作流名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 任务状态: - // * N: 新建 - // * Y: 调度中 - // * F: 已下线 - // * O: 已暂停 - // * T: 下线中 - // * INVALID: 已失效 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 任务最新提交状态,任务是否已经提交:true/false - // 注意:此字段可能返回 null,表示取不到有效值。 - Submit *bool `json:"Submit,omitnil,omitempty" name:"Submit"` - - // 任务创建时间,示例:2022-02-12 11:13:41 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 最后更新时间,示例:2025-08-13 16:34:06 - // 注意:此字段可能返回 null,表示取不到有效值。 - LastUpdateTime *string `json:"LastUpdateTime,omitnil,omitempty" name:"LastUpdateTime"` - - // 最后更新人名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - LastUpdateUserName *string `json:"LastUpdateUserName,omitnil,omitempty" name:"LastUpdateUserName"` - - // 最后运维时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - LastOpsTime *string `json:"LastOpsTime,omitnil,omitempty" name:"LastOpsTime"` - - // 最后运维人名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - LastOpsUserName *string `json:"LastOpsUserName,omitnil,omitempty" name:"LastOpsUserName"` - - // 任务负责人ID - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 任务描述 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskDescription *string `json:"TaskDescription,omitnil,omitempty" name:"TaskDescription"` - - // 最近一次更新用户ID - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` - - // 创建用户ID - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` -} - -type TaskCode struct { - // 代码内容 - CodeContent *string `json:"CodeContent,omitnil,omitempty" name:"CodeContent"` - - // 代码文件大小,单位bytes - CodeFileSize *uint64 `json:"CodeFileSize,omitnil,omitempty" name:"CodeFileSize"` -} - -type TaskCodeResult struct { - // 代码内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeInfo *string `json:"CodeInfo,omitnil,omitempty" name:"CodeInfo"` - - // 代码文件大小,单位KB - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeFileSize *string `json:"CodeFileSize,omitnil,omitempty" name:"CodeFileSize"` -} - -type TaskConfiguration struct { - // 代码内容的Base64编码 - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeContent *string `json:"CodeContent,omitnil,omitempty" name:"CodeContent"` - - // 任务扩展属性配置列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskExtConfigurationList []*TaskExtParameter `json:"TaskExtConfigurationList,omitnil,omitempty" name:"TaskExtConfigurationList"` - - // 集群ID - // 注意:此字段可能返回 null,表示取不到有效值。 - DataCluster *string `json:"DataCluster,omitnil,omitempty" name:"DataCluster"` - - // 指定的运行节点 - // 注意:此字段可能返回 null,表示取不到有效值。 - BrokerIp *string `json:"BrokerIp,omitnil,omitempty" name:"BrokerIp"` - - // 资源池队列名称,需要通过 DescribeProjectClusterQueues 获取 - // 注意:此字段可能返回 null,表示取不到有效值。 - YarnQueue *string `json:"YarnQueue,omitnil,omitempty" name:"YarnQueue"` - - // 来源数据源ID, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 - // 注意:此字段可能返回 null,表示取不到有效值。 - SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` - - // 来源数据源类型, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 - // 注意:此字段可能返回 null,表示取不到有效值。 - SourceServiceType *string `json:"SourceServiceType,omitnil,omitempty" name:"SourceServiceType"` - - // 来源数据源名称, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 - // 注意:此字段可能返回 null,表示取不到有效值。 - SourceServiceName *string `json:"SourceServiceName,omitnil,omitempty" name:"SourceServiceName"` - - // 目标数据源ID, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 - // 注意:此字段可能返回 null,表示取不到有效值。 - TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` - - // 目标数据源类型, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 - // 注意:此字段可能返回 null,表示取不到有效值。 - TargetServiceType *string `json:"TargetServiceType,omitnil,omitempty" name:"TargetServiceType"` - - // 目标数据源名称, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 - // 注意:此字段可能返回 null,表示取不到有效值。 - TargetServiceName *string `json:"TargetServiceName,omitnil,omitempty" name:"TargetServiceName"` - - // 资源组ID: 需要通过 DescribeNormalSchedulerExecutorGroups 获取 ExecutorGroupId - // 注意:此字段可能返回 null,表示取不到有效值。 - ResourceGroup *string `json:"ResourceGroup,omitnil,omitempty" name:"ResourceGroup"` - - // 资源组名称: 需要通过 DescribeNormalSchedulerExecutorGroups 获取 ExecutorGroupName - // 注意:此字段可能返回 null,表示取不到有效值。 - ResourceGroupName *string `json:"ResourceGroupName,omitnil,omitempty" name:"ResourceGroupName"` - - // 调度参数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskSchedulingParameterList []*TaskSchedulingParameter `json:"TaskSchedulingParameterList,omitnil,omitempty" name:"TaskSchedulingParameterList"` - - // Bundle使用的ID - // 注意:此字段可能返回 null,表示取不到有效值。 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // Bundle信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -type TaskDataRegistry struct { - // 数据源ID - // 注意:此字段可能返回 null,表示取不到有效值。 - DatasourceId *string `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` - - // 数据库名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` - - // 表名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - TableName *string `json:"TableName,omitnil,omitempty" name:"TableName"` - - // 分区名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - PartitionName *string `json:"PartitionName,omitnil,omitempty" name:"PartitionName"` - - // 输入输出表类型 - // 输入流 - // UPSTREAM, - // 输出流 - // DOWNSTREAM; - // 注意:此字段可能返回 null,表示取不到有效值。 - DataFlowType *string `json:"DataFlowType,omitnil,omitempty" name:"DataFlowType"` - - // 表物理唯一ID - // 注意:此字段可能返回 null,表示取不到有效值。 - TablePhysicalId *string `json:"TablePhysicalId,omitnil,omitempty" name:"TablePhysicalId"` - - // 库唯一标识 - // 注意:此字段可能返回 null,表示取不到有效值。 - DbGuid *string `json:"DbGuid,omitnil,omitempty" name:"DbGuid"` - - // 表唯一标识 - // 注意:此字段可能返回 null,表示取不到有效值。 - TableGuid *string `json:"TableGuid,omitnil,omitempty" name:"TableGuid"` -} - -type TaskDependDto struct { - // 任务Id - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 工作流id - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 项目id - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务状态: - // - Y: 运行 - // - F: 停止 - // - O: 冻结 - // - T: 停止中 - // - INVALID: 已失效 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 任务类型id - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 任务类型描述 - // - 20 : 通用数据同步 - // - 25 : ETLTaskType - // - 26 : ETLTaskType - // - 30 : python - // - 31 : pyspark - // - 34 : hivesql - // - 35 : shell - // - 36 : sparksql - // - 21 : jdbcsql - // - 32 : dlc - // - 33 : ImpalaTaskType - // - 40 : CDWTaskType - // - 41 : kettle - // - 42 : TCHouse-X - // - 43 : TCHouse-X SQL - // - 46 : dlcsparkTaskType - // - 47 : TiOneMachineLearningTaskType - // - 48 : Trino - // - 50 : DLCPyspark - // - 23 : TencentDistributedSQL - // - 39 : spark - // - 92 : MRTaskType - // - 38 : ShellScript - // - 70 : HiveSQLScrip - // - 130 : 分支 - // - 131 : 归并 - // - 132 : Notebook探索 - // - 133 : SSH节点 - // - 134 : StarRocks - // - 137 : For-each - // - 10000 : 自定义业务通用 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskTypeDesc *string `json:"TaskTypeDesc,omitnil,omitempty" name:"TaskTypeDesc"` - - // 调度计划展示描述信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScheduleDesc *string `json:"ScheduleDesc,omitnil,omitempty" name:"ScheduleDesc"` - - // 任务开始时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 任务结束时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 延迟时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - DelayTime *uint64 `json:"DelayTime,omitnil,omitempty" name:"DelayTime"` - - // 周期类型:默认为 D - // - // 支持的类型为 - // - // * O: 一次性 - // * Y: 年 - // * M: 月 - // * W: 周 - // * D: 天 - // * H: 小时 - // * I: 分钟 - // * C: crontab表达式类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 负责人 - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 弹性周期配置 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskAction *string `json:"TaskAction,omitnil,omitempty" name:"TaskAction"` - - // 调度初始化策略 - // 注意:此字段可能返回 null,表示取不到有效值。 - InitStrategy *string `json:"InitStrategy,omitnil,omitempty" name:"InitStrategy"` - - // crontab表达式 - // 注意:此字段可能返回 null,表示取不到有效值。 - CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` -} - -type TaskExtParameter struct { - // 参数名 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` - - // 参数值 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"` -} - -type TaskInstance struct { - // 所属项目id - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **实例唯一标识** - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // 文件夹ID - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 工作流ID - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 实例数据时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CurRunDate *string `json:"CurRunDate,omitnil,omitempty" name:"CurRunDate"` - - // **实例状态** - // - WAIT_EVENT: 等待事件 - // - WAIT_UPSTREAM: 等待上游 - // - WAIT_RUN: 等待运行 - // - RUNNING: 运行中 - // - SKIP_RUNNING: 跳过运行 - // - FAILED_RETRY: 失败重试 - // - EXPIRED: 失败 - // - COMPLETED: 成功 - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` - - // **实例类型** - // - // - 0 表示补录类型 - // - 1 表示周期实例 - // - 2 表示非周期实例 - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceType *uint64 `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` - - // 负责人列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUinList []*string `json:"OwnerUinList,omitnil,omitempty" name:"OwnerUinList"` - - // 累计运行次数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalRunNum *uint64 `json:"TotalRunNum,omitnil,omitempty" name:"TotalRunNum"` - - // 任务类型描述 - TaskType *string `json:"TaskType,omitnil,omitempty" name:"TaskType"` - - // 任务类型id - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskTypeId *int64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // **任务周期类型** - // 支持过滤多个,条件间为 或 的过滤关系 - // * O: ONEOFF_CYCLE - // * Y: YEAR_CYCLE - // * M: MONTH_CYCLE - // * W: WEEK_CYCLE - // * D: DAY_CYCLE - // * H: HOUR_CYCLE - // * I: MINUTE_CYCLE - // * C: CRONTAB_CYCLE - // 注意:此字段可能返回 null,表示取不到有效值。 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 每次运行失败,下发重试次数限制 - // 注意:此字段可能返回 null,表示取不到有效值。 - TryLimit *uint64 `json:"TryLimit,omitnil,omitempty" name:"TryLimit"` - - // **失败重试次数** - // 再次使用 手动重跑 或 补录实例等方式触发运行时,会被重置为 0 后重新计数 - // 注意:此字段可能返回 null,表示取不到有效值。 - Tries *uint64 `json:"Tries,omitnil,omitempty" name:"Tries"` - - // 运行开始时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 运行完成时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 耗费时间, 单位ms - // 注意:此字段可能返回 null,表示取不到有效值。 - CostTime *int64 `json:"CostTime,omitnil,omitempty" name:"CostTime"` - - // 计划调度时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - SchedulerTime *string `json:"SchedulerTime,omitnil,omitempty" name:"SchedulerTime"` - - // 实例最近更新时间, 时间格式为 yyyy-MM-dd HH:mm:ss - // 注意:此字段可能返回 null,表示取不到有效值。 - LastUpdateTime *string `json:"LastUpdateTime,omitnil,omitempty" name:"LastUpdateTime"` - - // 执行资源组ID - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` - - // 资源组名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutorGroupName *string `json:"ExecutorGroupName,omitnil,omitempty" name:"ExecutorGroupName"` -} - -type TaskInstanceDetail struct { - // 所属项目id - // 注意:此字段可能返回 null,表示取不到有效值。 - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // **实例唯一标识** - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - - // 文件夹ID - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 工作流ID - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // taskType对应的id - TaskTypeId *int64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 任务类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskType *string `json:"TaskType,omitnil,omitempty" name:"TaskType"` - - // **任务周期类型** - // * ONEOFF_CYCLE: 一次性 - // * YEAR_CYCLE: 年 - // * MONTH_CYCLE: 月 - // * WEEK_CYCLE: 周 - // * DAY_CYCLE: 天 - // * HOUR_CYCLE: 小时 - // * MINUTE_CYCLE: 分钟 - // * CRONTAB_CYCLE: crontab表达式类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 实例数据时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CurRunDate *string `json:"CurRunDate,omitnil,omitempty" name:"CurRunDate"` - - // **实例状态** - // - WAIT_EVENT: 等待事件 - // - WAIT_UPSTREAM: 等待上游 - // - WAIT_RUN: 等待运行 - // - RUNNING: 运行中 - // - SKIP_RUNNING: 跳过运行 - // - FAILED_RETRY: 失败重试 - // - EXPIRED: 失败 - // - COMPLETED: 成功 - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` - - // **实例类型** - // - // - 0 表示补录类型 - // - 1 表示周期实例 - // - 2 表示非周期实例 - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceType *uint64 `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` - - // 负责人列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUinList []*string `json:"OwnerUinList,omitnil,omitempty" name:"OwnerUinList"` - - // 累计运行次数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalRunNum *uint64 `json:"TotalRunNum,omitnil,omitempty" name:"TotalRunNum"` - - // 每次运行失败,下发重试次数限制 - // 注意:此字段可能返回 null,表示取不到有效值。 - TryLimit *uint64 `json:"TryLimit,omitnil,omitempty" name:"TryLimit"` - - // **失败重试次数** - // 再次使用 手动重跑 或 补录实例等方式触发运行时,会被重置为 0 后重新计数 - // 注意:此字段可能返回 null,表示取不到有效值。 - Tries *uint64 `json:"Tries,omitnil,omitempty" name:"Tries"` - - // 耗费时间, 单位ms - // 注意:此字段可能返回 null,表示取不到有效值。 - CostTime *int64 `json:"CostTime,omitnil,omitempty" name:"CostTime"` - - // 运行开始时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 运行完成时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 计划调度时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - SchedulerTime *string `json:"SchedulerTime,omitnil,omitempty" name:"SchedulerTime"` - - // 实例最近更新时间, 时间格式为 yyyy-MM-dd HH:mm:ss - // 注意:此字段可能返回 null,表示取不到有效值。 - LastUpdateTime *string `json:"LastUpdateTime,omitnil,omitempty" name:"LastUpdateTime"` - - // 执行资源组ID - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` - - // 资源组名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutorGroupName *string `json:"ExecutorGroupName,omitnil,omitempty" name:"ExecutorGroupName"` - - // 简要的任务失败信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - JobErrorMsg *string `json:"JobErrorMsg,omitnil,omitempty" name:"JobErrorMsg"` -} - -type TaskInstanceExecutions struct { - // 结果总数 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 总页数 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 记录列表 - Items []*InstanceExecution `json:"Items,omitnil,omitempty" name:"Items"` - - // 页码 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 分页大小 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` -} - -type TaskInstancePage struct { - // **总条数** - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // **总分页数** - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 页码 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页条目数 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 数据列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*TaskInstance `json:"Items,omitnil,omitempty" name:"Items"` -} - -type TaskOpsInfo struct { - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务名 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 负责人Id - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 任务状态: - // - Y: 调度中 - // - F: 已下线 - // - O: 已暂停 - // - T: 下线中 - // - INVALID: 已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 文件夹id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹名字 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 工作流id - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 项目名称 - ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` - - // 更新人名称 - UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` - - // 任务类型Id: - // * 21:JDBC SQL - // * 23:TDSQL-PostgreSQL - // * 26:OfflineSynchronization - // * 30:Python - // * 31:PySpark - // * 33:Impala - // * 34:Hive SQL - // * 35:Shell - // * 36:Spark SQL - // * 38:Shell Form Mode - // * 39:Spark - // * 40:TCHouse-P - // * 41:Kettle - // * 42:Tchouse-X - // * 43:TCHouse-X SQL - // * 46:DLC Spark - // * 47:TiOne - // * 48:Trino - // * 50:DLC PySpark - // * 92:MapReduce - // * 130:Branch Node - // * 131:Merged Node - // * 132:Notebook - // * 133:SSH - // * 134:StarRocks - // * 137:For-each - // * 138:Setats SQL - TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` - - // 任务类型描述 - // - 通用数据同步 - // - ETLTaskType - // - ETLTaskType - // - python - // - pyspark - // - HiveSQLTaskType - // - shell - // - SparkSQLTaskType - // - JDBCSQLTaskType - // - DLCTaskType - // - ImpalaTaskType - // - CDWTaskType - // - kettle - // - DLCSparkTaskType - // - TiOne机器学习 - // - TrinoTaskType - // - DLCPyspark - // - spark - // - mr - // - shell脚本 - // - hivesql脚本 - // - 自定义业务通用 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskTypeDesc *string `json:"TaskTypeDesc,omitnil,omitempty" name:"TaskTypeDesc"` - - // 任务周期类型 - // * ONEOFF_CYCLE: 一次性 - // * YEAR_CYCLE: 年 - // * MONTH_CYCLE: 月 - // * WEEK_CYCLE: 周 - // * DAY_CYCLE: 天 - // * HOUR_CYCLE: 小时 - // * MINUTE_CYCLE: 分钟 - // * CRONTAB_CYCLE: crontab表达式类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 资源组id - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` - - // 调度描述 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScheduleDesc *string `json:"ScheduleDesc,omitnil,omitempty" name:"ScheduleDesc"` - - // 资源组名称 - ExecutorGroupName *string `json:"ExecutorGroupName,omitnil,omitempty" name:"ExecutorGroupName"` - - // 最新调度提交时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - LastSchedulerCommitTime *string `json:"LastSchedulerCommitTime,omitnil,omitempty" name:"LastSchedulerCommitTime"` - - // 首次执行时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - FirstRunTime *string `json:"FirstRunTime,omitnil,omitempty" name:"FirstRunTime"` - - // 最近一次提交时间 - FirstSubmitTime *string `json:"FirstSubmitTime,omitnil,omitempty" name:"FirstSubmitTime"` - - // 创建时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 最近更新时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - LastUpdateTime *string `json:"LastUpdateTime,omitnil,omitempty" name:"LastUpdateTime"` -} - -type TaskSchedulerConfiguration struct { - // 周期类型:支持的类型为 - // - // ONEOFF_CYCLE: 一次性 - // YEAR_CYCLE: 年 - // MONTH_CYCLE: 月 - // WEEK_CYCLE: 周 - // DAY_CYCLE: 天 - // HOUR_CYCLE: 小时 - // MINUTE_CYCLE: 分钟 - // CRONTAB_CYCLE: crontab表达式类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 时区 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` - - // 0 2 3 1,L,2 * ? - // 注意:此字段可能返回 null,表示取不到有效值。 - CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` - - // 生效日期 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 结束日期 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 执行时间 左闭区间 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` - - // 执行时间 右闭区间 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` - - // 调度类型: 0 正常调度 1 空跑调度 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScheduleRunType *int64 `json:"ScheduleRunType,omitnil,omitempty" name:"ScheduleRunType"` - - // 日历调度 取值为 0 和 1, 1为打开,0为关闭,默认为0 - // 注意:此字段可能返回 null,表示取不到有效值。 - CalendarOpen *string `json:"CalendarOpen,omitnil,omitempty" name:"CalendarOpen"` - - // 日历调度 日历 ID - // 注意:此字段可能返回 null,表示取不到有效值。 - CalendarId *string `json:"CalendarId,omitnil,omitempty" name:"CalendarId"` - - // 日历调度 日历名称, 需要从 DescribeScheduleCalendarPageList 中获取 - // 注意:此字段可能返回 null,表示取不到有效值。 - CalendarName *string `json:"CalendarName,omitnil,omitempty" name:"CalendarName"` - - // 自依赖, 默认值 serial, 取值为:parallel(并行), serial(串行), orderly(有序) - // 注意:此字段可能返回 null,表示取不到有效值。 - SelfDepend *string `json:"SelfDepend,omitnil,omitempty" name:"SelfDepend"` - - // 上游依赖数组 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpstreamDependencyConfigList []*DependencyTaskBrief `json:"UpstreamDependencyConfigList,omitnil,omitempty" name:"UpstreamDependencyConfigList"` - - // 下游依赖数组 - // 注意:此字段可能返回 null,表示取不到有效值。 - DownStreamDependencyConfigList []*DependencyTaskBrief `json:"DownStreamDependencyConfigList,omitnil,omitempty" name:"DownStreamDependencyConfigList"` - - // 事件数组 - // 注意:此字段可能返回 null,表示取不到有效值。 - EventListenerList []*EventListener `json:"EventListenerList,omitnil,omitempty" name:"EventListenerList"` - - // 任务调度优先级 运行优先级 4高 5中 6低 , 默认:6 - // 注意:此字段可能返回 null,表示取不到有效值。 - RunPriority *uint64 `json:"RunPriority,omitnil,omitempty" name:"RunPriority"` - - // 重试策略 重试等待时间,单位分钟: 默认: 5 - // 注意:此字段可能返回 null,表示取不到有效值。 - RetryWait *int64 `json:"RetryWait,omitnil,omitempty" name:"RetryWait"` - - // 重试策略 最大尝试次数, 默认: 4 - // 注意:此字段可能返回 null,表示取不到有效值。 - MaxRetryAttempts *int64 `json:"MaxRetryAttempts,omitnil,omitempty" name:"MaxRetryAttempts"` - - // 超时处理策略 运行耗时超时(单位:分钟)默认为 -1 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionTTL *int64 `json:"ExecutionTTL,omitnil,omitempty" name:"ExecutionTTL"` - - // 超时处理策略 等待总时长耗时超时(单位:分钟)默认为 -1 - // 注意:此字段可能返回 null,表示取不到有效值。 - WaitExecutionTotalTTL *string `json:"WaitExecutionTotalTTL,omitnil,omitempty" name:"WaitExecutionTotalTTL"` - - // 重跑&补录配置, 默认为 ALL; , ALL 运行成功或失败后皆可重跑或补录, FAILURE 运行成功后不可重跑或补录,运行失败后可重跑或补录, NONE 运行成功或失败后皆不可重跑或补录; - // 注意:此字段可能返回 null,表示取不到有效值。 - AllowRedoType *string `json:"AllowRedoType,omitnil,omitempty" name:"AllowRedoType"` - - // 输出参数数组 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamTaskOutList []*OutTaskParameter `json:"ParamTaskOutList,omitnil,omitempty" name:"ParamTaskOutList"` - - // 输入参数数组 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamTaskInList []*InTaskParameter `json:"ParamTaskInList,omitnil,omitempty" name:"ParamTaskInList"` - - // 产出登记 - // 注意:此字段可能返回 null,表示取不到有效值。 - TaskOutputRegistryList []*TaskDataRegistry `json:"TaskOutputRegistryList,omitnil,omitempty" name:"TaskOutputRegistryList"` - - // **实例生成策略** - // * T_PLUS_0: T+0生成,默认策略 - // * T_PLUS_1: T+1生成 - // 注意:此字段可能返回 null,表示取不到有效值。 - InitStrategy *string `json:"InitStrategy,omitnil,omitempty" name:"InitStrategy"` -} - -type TaskSchedulingParameter struct { - // 参数名 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` - - // 参数值 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"` -} - -type TaskVersion struct { - // 保存时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 版本号 - // 注意:此字段可能返回 null,表示取不到有效值。 - VersionNum *string `json:"VersionNum,omitnil,omitempty" name:"VersionNum"` - - // 创建人 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 保存版本id - // 注意:此字段可能返回 null,表示取不到有效值。 - VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` - - // 版本描述信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - VersionRemark *string `json:"VersionRemark,omitnil,omitempty" name:"VersionRemark"` - - // 审批状态(只有提交版本有) - // 注意:此字段可能返回 null,表示取不到有效值。 - ApproveStatus *string `json:"ApproveStatus,omitnil,omitempty" name:"ApproveStatus"` - - // 生产状态(只有提交版本有) - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` - - // 审批人(只有提交版本有) - // 注意:此字段可能返回 null,表示取不到有效值。 - ApproveUserUin *string `json:"ApproveUserUin,omitnil,omitempty" name:"ApproveUserUin"` -} - -type TaskVersionDetail struct { - // 保存时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 版本号 - // 注意:此字段可能返回 null,表示取不到有效值。 - VersionNum *string `json:"VersionNum,omitnil,omitempty" name:"VersionNum"` - - // 版本创建人 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 保存版本Id - // 注意:此字段可能返回 null,表示取不到有效值。 - VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` - - // 版本描述信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - VersionRemark *string `json:"VersionRemark,omitnil,omitempty" name:"VersionRemark"` - - // 审批状态(只有提交版本有) - // 注意:此字段可能返回 null,表示取不到有效值。 - ApproveStatus *string `json:"ApproveStatus,omitnil,omitempty" name:"ApproveStatus"` - - // 生产状态(只有提交版本有) - // 注意:此字段可能返回 null,表示取不到有效值。 - ApproveTime *string `json:"ApproveTime,omitnil,omitempty" name:"ApproveTime"` - - // 版本的任务详情 - // 注意:此字段可能返回 null,表示取不到有效值。 - Task *Task `json:"Task,omitnil,omitempty" name:"Task"` - - // 审批人Id - // 注意:此字段可能返回 null,表示取不到有效值。 - ApproveUserUin *string `json:"ApproveUserUin,omitnil,omitempty" name:"ApproveUserUin"` -} - -type TimeOutStrategyInfo struct { - // 超时告警超时配置: - // - // 1.预计运行耗时超时,2.预计完成时间超时,3.预计等待调度耗时超时,4.预计周期内完成但实际未完成 - // 注意:此字段可能返回 null,表示取不到有效值。 - RuleType *int64 `json:"RuleType,omitnil,omitempty" name:"RuleType"` - - // 超时值配置类型 - // - // 1--指定值 - // 2--平均值 - // 注意:此字段可能返回 null,表示取不到有效值。 - Type *int64 `json:"Type,omitnil,omitempty" name:"Type"` - - // 超时指定值小时, 默认 为0 - // 注意:此字段可能返回 null,表示取不到有效值。 - Hour *uint64 `json:"Hour,omitnil,omitempty" name:"Hour"` - - // 超时指定值分钟, 默认为1 - // 注意:此字段可能返回 null,表示取不到有效值。 - Min *int64 `json:"Min,omitnil,omitempty" name:"Min"` - - // 超时时间对应的时区配置, 如 UTC+7, 默认为UTC+8 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` -} - -// Predefined struct for user -type UpdateCodeFileRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 代码文件ID,参数值来自CreateCodeFile接口的返回 - CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` - - // 代码文件配置 - CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` - - // 代码文件内容 - CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` -} - -type UpdateCodeFileRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 代码文件ID,参数值来自CreateCodeFile接口的返回 - CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` - - // 代码文件配置 - CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` - - // 代码文件内容 - CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` -} - -func (r *UpdateCodeFileRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateCodeFileRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "CodeFileId") - delete(f, "CodeFileConfig") - delete(f, "CodeFileContent") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateCodeFileRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateCodeFileResponseParams struct { - // 结果 - Data *CodeFile `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateCodeFileResponse struct { - *tchttp.BaseResponse - Response *UpdateCodeFileResponseParams `json:"Response"` -} - -func (r *UpdateCodeFileResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateCodeFileResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateCodeFolderRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID,参数值来自CreateCodeFolder接口的返回 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -type UpdateCodeFolderRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID,参数值来自CreateCodeFolder接口的返回 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -func (r *UpdateCodeFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateCodeFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "FolderId") - delete(f, "FolderName") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateCodeFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateCodeFolderResponseParams struct { - // 执行结果 - Data *CodeStudioFolderActionResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateCodeFolderResponse struct { - *tchttp.BaseResponse - Response *UpdateCodeFolderResponseParams `json:"Response"` -} - -func (r *UpdateCodeFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateCodeFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type UpdateFolderResult struct { - // 更新状态,true表示更新成功,false表示更新失败 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -// Predefined struct for user -type UpdateOpsAlarmRuleRequestParams struct { - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警规则唯一id,通过接口GetAlarmRule/ListAlarmRule获取 - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` - - // 告警规则新的规则名称 - AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` - - // 监控对象类型, - // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) - // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 - MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` - - // 根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 - MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` - - // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; 项目波动告警 projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectFailureInstanceUpwardVolatilityAlarm:当天失败实例数向上波动量超过阀值告警 projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; projectSuccessInstanceDownwardVolatilityAlarm: 当天成功实例数向下波动量超过阀值告警 projectFailureInstanceCountAlarm: 当天失败实例数超过阀值告警 projectFailureInstanceProportionAlarm: 当天失败实例数占比超过阀值告警 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 - AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` - - // 告警规则配置信息 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 - AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` - - // 告警规则的启用状态0--禁用1--启用 - Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` - - // 告警级别 1.普通、2.重要、3.紧急 - AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 告警接收人配置信息 - AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` - - // 告警描述信息 - Description *string `json:"Description,omitnil,omitempty" name:"Description"` -} - -type UpdateOpsAlarmRuleRequest struct { - *tchttp.BaseRequest - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 告警规则唯一id,通过接口GetAlarmRule/ListAlarmRule获取 - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` - - // 告警规则新的规则名称 - AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` - - // 监控对象类型, - // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) - // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 - MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` - - // 根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 - MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` - - // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; 项目波动告警 projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectFailureInstanceUpwardVolatilityAlarm:当天失败实例数向上波动量超过阀值告警 projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; projectSuccessInstanceDownwardVolatilityAlarm: 当天成功实例数向下波动量超过阀值告警 projectFailureInstanceCountAlarm: 当天失败实例数超过阀值告警 projectFailureInstanceProportionAlarm: 当天失败实例数占比超过阀值告警 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 - AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` - - // 告警规则配置信息 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 - AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` - - // 告警规则的启用状态0--禁用1--启用 - Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` - - // 告警级别 1.普通、2.重要、3.紧急 - AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` - - // 告警接收人配置信息 - AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` - - // 告警描述信息 - Description *string `json:"Description,omitnil,omitempty" name:"Description"` -} - -func (r *UpdateOpsAlarmRuleRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateOpsAlarmRuleRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "AlarmRuleId") - delete(f, "AlarmRuleName") - delete(f, "MonitorObjectType") - delete(f, "MonitorObjectIds") - delete(f, "AlarmTypes") - delete(f, "AlarmRuleDetail") - delete(f, "Status") - delete(f, "AlarmLevel") - delete(f, "AlarmGroups") - delete(f, "Description") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateOpsAlarmRuleRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateOpsAlarmRuleResponseParams struct { - // 更新结果是否成功 - // true: 更新成功 false:更新失败/未更新 - Data *ModifyAlarmRuleResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateOpsAlarmRuleResponse struct { - *tchttp.BaseResponse - Response *UpdateOpsAlarmRuleResponseParams `json:"Response"` -} - -func (r *UpdateOpsAlarmRuleResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateOpsAlarmRuleResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateOpsTasksOwnerRequestParams struct { - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id列表 - TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` - - // 任务负责人Id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` -} - -type UpdateOpsTasksOwnerRequest struct { - *tchttp.BaseRequest - - // 所属项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id列表 - TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` - - // 任务负责人Id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` -} - -func (r *UpdateOpsTasksOwnerRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateOpsTasksOwnerRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskIds") - delete(f, "OwnerUin") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateOpsTasksOwnerRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateOpsTasksOwnerResponseParams struct { - // 操作结果 - Data *UpdateTasksOwner `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateOpsTasksOwnerResponse struct { - *tchttp.BaseResponse - Response *UpdateOpsTasksOwnerResponseParams `json:"Response"` -} - -func (r *UpdateOpsTasksOwnerResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateOpsTasksOwnerResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateResourceFileRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源文件ID,可通过ListResourceFiles接口获取 - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` - - // - 上传文件及手填两种方式只能选择其一,如果两者均提供,取值顺序为文件>手填值 - // - 手填值必须是存在的cos路径, /datastudio/resource/ 为固定前缀, projectId 为项目ID,需传入具体值, parentFolderPath为父文件夹路径, name为文件名, 手填值取值示例: - // /datastudio/resource/projectId/parentFolderPath/name - ResourceFile *string `json:"ResourceFile,omitnil,omitempty" name:"ResourceFile"` - - // 资源名称, 尽可能和文件名保持一致 - ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` - - // bundle客户端ID - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // bundle客户端名称 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -type UpdateResourceFileRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 资源文件ID,可通过ListResourceFiles接口获取 - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` - - // - 上传文件及手填两种方式只能选择其一,如果两者均提供,取值顺序为文件>手填值 - // - 手填值必须是存在的cos路径, /datastudio/resource/ 为固定前缀, projectId 为项目ID,需传入具体值, parentFolderPath为父文件夹路径, name为文件名, 手填值取值示例: - // /datastudio/resource/projectId/parentFolderPath/name - ResourceFile *string `json:"ResourceFile,omitnil,omitempty" name:"ResourceFile"` - - // 资源名称, 尽可能和文件名保持一致 - ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` - - // bundle客户端ID - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // bundle客户端名称 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -func (r *UpdateResourceFileRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateResourceFileRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "ResourceId") - delete(f, "ResourceFile") - delete(f, "ResourceName") - delete(f, "BundleId") - delete(f, "BundleInfo") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateResourceFileRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateResourceFileResponseParams struct { - // 更新状态 - Data *UpdateResourceFileResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateResourceFileResponse struct { - *tchttp.BaseResponse - Response *UpdateResourceFileResponseParams `json:"Response"` -} - -func (r *UpdateResourceFileResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateResourceFileResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type UpdateResourceFileResult struct { - // true - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -// Predefined struct for user -type UpdateResourceFolderRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID, 可通过ListResourceFolders接口获取 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -type UpdateResourceFolderRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID, 可通过ListResourceFolders接口获取 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -func (r *UpdateResourceFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateResourceFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "FolderId") - delete(f, "FolderName") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateResourceFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateResourceFolderResponseParams struct { - // 更新文件夹结果,如果更新失败则报错。 - Data *UpdateFolderResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateResourceFolderResponse struct { - *tchttp.BaseResponse - Response *UpdateResourceFolderResponseParams `json:"Response"` -} - -func (r *UpdateResourceFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateResourceFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateSQLFolderRequestParams struct { - // 文件夹Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 权限范围:SHARED, PRIVATE - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` -} - -type UpdateSQLFolderRequest struct { - *tchttp.BaseRequest - - // 文件夹Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` - - // 项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 权限范围:SHARED, PRIVATE - AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` -} - -func (r *UpdateSQLFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateSQLFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "FolderId") - delete(f, "FolderName") - delete(f, "ProjectId") - delete(f, "AccessScope") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateSQLFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateSQLFolderResponseParams struct { - // 成功true,失败false - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *SQLContentActionResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateSQLFolderResponse struct { - *tchttp.BaseResponse - Response *UpdateSQLFolderResponseParams `json:"Response"` -} - -func (r *UpdateSQLFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateSQLFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateSQLScriptRequestParams struct { - // 探索脚本Id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 数据探索脚本配置 - ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` - - // 脚本内容, 需要用Base64编码 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` -} - -type UpdateSQLScriptRequest struct { - *tchttp.BaseRequest - - // 探索脚本Id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 数据探索脚本配置 - ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` - - // 脚本内容, 需要用Base64编码 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` -} - -func (r *UpdateSQLScriptRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateSQLScriptRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ScriptId") - delete(f, "ProjectId") - delete(f, "ScriptConfig") - delete(f, "ScriptContent") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateSQLScriptRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateSQLScriptResponseParams struct { - // 结果 - // 注意:此字段可能返回 null,表示取不到有效值。 - Data *SQLScript `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateSQLScriptResponse struct { - *tchttp.BaseResponse - Response *UpdateSQLScriptResponseParams `json:"Response"` -} - -func (r *UpdateSQLScriptResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateSQLScriptResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type UpdateTaskBaseAttribute struct { - // 任务名称 - TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` - - // 任务负责人ID - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 任务描述 - TaskDescription *string `json:"TaskDescription,omitnil,omitempty" name:"TaskDescription"` -} - -type UpdateTaskBrief struct { - // 任务基本属性 - TaskBaseAttribute *UpdateTaskBaseAttribute `json:"TaskBaseAttribute,omitnil,omitempty" name:"TaskBaseAttribute"` - - // 任务配置 - TaskConfiguration *TaskConfiguration `json:"TaskConfiguration,omitnil,omitempty" name:"TaskConfiguration"` - - // 任务调度配置 - TaskSchedulerConfiguration *TaskSchedulerConfiguration `json:"TaskSchedulerConfiguration,omitnil,omitempty" name:"TaskSchedulerConfiguration"` -} - -// Predefined struct for user -type UpdateTaskRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务基本属性 - Task *UpdateTaskBrief `json:"Task,omitnil,omitempty" name:"Task"` -} - -type UpdateTaskRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 任务基本属性 - Task *UpdateTaskBrief `json:"Task,omitnil,omitempty" name:"Task"` -} - -func (r *UpdateTaskRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateTaskRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "TaskId") - delete(f, "Task") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateTaskRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateTaskResponseParams struct { - // 任务ID - Data *UpdateTaskResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateTaskResponse struct { - *tchttp.BaseResponse - Response *UpdateTaskResponseParams `json:"Response"` -} - -func (r *UpdateTaskResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateTaskResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type UpdateTaskResult struct { - // 处理结果,成功返回 true,不成功返回 false - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -type UpdateTasksOwner struct { - // 修改任务责任人结果 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -// Predefined struct for user -type UpdateWorkflowFolderRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID,可通过ListWorkflowFolders接口获取 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 更新后的文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -type UpdateWorkflowFolderRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID,可通过ListWorkflowFolders接口获取 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 更新后的文件夹名称 - FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` -} - -func (r *UpdateWorkflowFolderRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateWorkflowFolderRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "FolderId") - delete(f, "FolderName") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateWorkflowFolderRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateWorkflowFolderResponseParams struct { - // 更新文件夹结果,如果更新失败则报错。 - Data *UpdateFolderResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateWorkflowFolderResponse struct { - *tchttp.BaseResponse - Response *UpdateWorkflowFolderResponseParams `json:"Response"` -} - -func (r *UpdateWorkflowFolderResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateWorkflowFolderResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateWorkflowRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流ID - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 责任人ID - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 备注 - WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` - - // 工作流参数列表 - WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` - - // 统一调度参数 - WorkflowSchedulerConfiguration *WorkflowSchedulerConfigurationInfo `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` - - // BundleId项 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // Bundle信息 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -type UpdateWorkflowRequest struct { - *tchttp.BaseRequest - - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 工作流ID - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 责任人ID - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 备注 - WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` - - // 工作流参数列表 - WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` - - // 统一调度参数 - WorkflowSchedulerConfiguration *WorkflowSchedulerConfigurationInfo `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` - - // BundleId项 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // Bundle信息 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -func (r *UpdateWorkflowRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateWorkflowRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } - delete(f, "ProjectId") - delete(f, "WorkflowId") - delete(f, "WorkflowName") - delete(f, "OwnerUin") - delete(f, "WorkflowDesc") - delete(f, "WorkflowParams") - delete(f, "WorkflowSchedulerConfiguration") - delete(f, "BundleId") - delete(f, "BundleInfo") - if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateWorkflowRequest has unknown keys!", "") - } - return json.Unmarshal([]byte(s), &r) -} - -// Predefined struct for user -type UpdateWorkflowResponseParams struct { - // true代表成功,false代表失败 - Data *UpdateWorkflowResult `json:"Data,omitnil,omitempty" name:"Data"` - - // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` -} - -type UpdateWorkflowResponse struct { - *tchttp.BaseResponse - Response *UpdateWorkflowResponseParams `json:"Response"` -} - -func (r *UpdateWorkflowResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} - -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *UpdateWorkflowResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} - -type UpdateWorkflowResult struct { - // 更新工作流结果 - Status *bool `json:"Status,omitnil,omitempty" name:"Status"` -} - -type WorkflowDetail struct { - // 工作流名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 责任人ID - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 创建人ID - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - - // 工作流类型,cycle和manual - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // 工作流参数数组 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` - - // 统一调度参数 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowSchedulerConfiguration *WorkflowSchedulerConfiguration `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` - - // 工作流描述 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` - - // 工作流所属路径 - // 注意:此字段可能返回 null,表示取不到有效值。 - Path *string `json:"Path,omitnil,omitempty" name:"Path"` - - // BundleId项 - // 注意:此字段可能返回 null,表示取不到有效值。 - BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` - - // BundleInfo项 - // 注意:此字段可能返回 null,表示取不到有效值。 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` -} - -type WorkflowFolder struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 文件夹ID - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 文件夹绝对路径 - FolderPath *string `json:"FolderPath,omitnil,omitempty" name:"FolderPath"` - - // 创建人ID - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` -} - -type WorkflowFolderPage struct { - // 数据页数,大于等于1 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - - // 每页显示的数据条数,最小为10条,最大为200 条 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - - // 文件夹总数 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` - - // 总页数 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` - - // 文件夹列表 - Items []*WorkflowFolder `json:"Items,omitnil,omitempty" name:"Items"` -} - -type WorkflowInfo struct { - // 工作流ID - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` - - // 工作流名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` - - // 工作流类型,cycle及manual - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - - // 负责人ID - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - - // 创建时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` - - // 最新修改时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` - - // 最后更新人ID - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` - - // 工作流描述 - // 注意:此字段可能返回 null,表示取不到有效值。 - WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` - - // 创建人ID - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` -} - -type WorkflowSchedulerConfiguration struct { - // 时区 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` - - // 周期类型:支持的类型为 - // ONEOFF_CYCLE: 一次性 - // YEAR_CYCLE: 年 - // MONTH_CYCLE: 月 - // WEEK_CYCLE: 周 - // DAY_CYCLE: 天 - // HOUR_CYCLE: 小时 - // MINUTE_CYCLE: 分钟 - // CRONTAB_CYCLE: crontab表达式类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 自依赖, 默认值 serial, 取值为:parallel(并行), serial(串行), orderly(有序) - // 注意:此字段可能返回 null,表示取不到有效值。 - SelfDepend *string `json:"SelfDepend,omitnil,omitempty" name:"SelfDepend"` - - // 生效开始时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 生效结束时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // 工作流依赖,yes or no - // 注意:此字段可能返回 null,表示取不到有效值。 - DependencyWorkflow *string `json:"DependencyWorkflow,omitnil,omitempty" name:"DependencyWorkflow"` - - // 执行时间左闭区间,示例:00:00 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` - - // 执行时间右闭区间,示例:23:59 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` - - // cron表达式 - // 注意:此字段可能返回 null,表示取不到有效值。 - CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` - - // 是否开启日历调度 1 开启 0关闭 - // 注意:此字段可能返回 null,表示取不到有效值。 - CalendarOpen *string `json:"CalendarOpen,omitnil,omitempty" name:"CalendarOpen"` - - // 日历名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - CalendarName *string `json:"CalendarName,omitnil,omitempty" name:"CalendarName"` - - // 日历id - // 注意:此字段可能返回 null,表示取不到有效值。 - CalendarId *string `json:"CalendarId,omitnil,omitempty" name:"CalendarId"` -} - -type WorkflowSchedulerConfigurationInfo struct { - // 时区 - ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` - - // 周期类型:支持的类型为 - // ONEOFF_CYCLE: 一次性 - // YEAR_CYCLE: 年 - // MONTH_CYCLE: 月 - // WEEK_CYCLE: 周 - // DAY_CYCLE: 天 - // HOUR_CYCLE: 小时 - // MINUTE_CYCLE: 分钟 - // CRONTAB_CYCLE: crontab表达式类型 - CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` - - // 自依赖, 默认值 serial, 取值为:parallel(并行), serial(串行), orderly(有序) - SelfDepend *string `json:"SelfDepend,omitnil,omitempty" name:"SelfDepend"` - - // 生效开始时间 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` - - // 生效结束时间 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` - - // cron表达式 - CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` - - // 工作流依赖,yes or no - DependencyWorkflow *string `json:"DependencyWorkflow,omitnil,omitempty" name:"DependencyWorkflow"` - - // 0:不修改 1:将任务的上游依赖配置改为默认值 - ModifyCycleValue *string `json:"ModifyCycleValue,omitnil,omitempty" name:"ModifyCycleValue"` - - // 工作流存在跨工作流依赖且使用cron表达式调度。如果保存统一调度,会断开不支持的依赖关系 - ClearLink *bool `json:"ClearLink,omitnil,omitempty" name:"ClearLink"` - - // ModifyCycleValue为1的时候生效,表示默认修改的上游依赖-时间维度,取值为: - // * CRONTAB - // * DAY - // * HOUR - // * LIST_DAY - // * LIST_HOUR - // * LIST_MINUTE - // * MINUTE - // * MONTH - // * RANGE_DAY - // * RANGE_HOUR - // * RANGE_MINUTE - // * WEEK - // * YEAR - // - // https://capi.woa.com/object/detail?product=wedata&env=api_dev&version=2025-08-06&name=WorkflowSchedulerConfigurationInfo - MainCyclicConfig *string `json:"MainCyclicConfig,omitnil,omitempty" name:"MainCyclicConfig"` - - // ModifyCycleValue为1的时候生效,表示默认修改的上游依赖-实例范围 - // 取值为: - // * ALL_DAY_OF_YEAR - // * ALL_MONTH_OF_YEAR - // * CURRENT - // * CURRENT_DAY - // * CURRENT_HOUR - // * CURRENT_MINUTE - // * CURRENT_MONTH - // * CURRENT_WEEK - // * CURRENT_YEAR - // * PREVIOUS_BEGIN_OF_MONTH - // * PREVIOUS_DAY - // * PREVIOUS_DAY_LATER_OFFSET_HOUR - // * PREVIOUS_DAY_LATER_OFFSET_MINUTE - // * PREVIOUS_END_OF_MONTH - // * PREVIOUS_FRIDAY - // * PREVIOUS_HOUR - // * PREVIOUS_HOUR_CYCLE - // * PREVIOUS_HOUR_LATER_OFFSET_MINUTE - // * PREVIOUS_MINUTE_CYCLE - // * PREVIOUS_MONTH - // * PREVIOUS_WEEK - // * PREVIOUS_WEEKEND - // * RECENT_DATE - // - // https://capi.woa.com/object/detail?product=wedata&env=api_dev&version=2025-08-06&name=WorkflowSchedulerConfigurationInfo - SubordinateCyclicConfig *string `json:"SubordinateCyclicConfig,omitnil,omitempty" name:"SubordinateCyclicConfig"` - - // 执行时间左闭区间,示例:00:00,只有周期类型为MINUTE_CYCLE才需要填入 - ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` - - // 执行时间右闭区间,示例:23:59,只有周期类型为MINUTE_CYCLE才需要填入 - ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` - - // 是否开启日历调度 1 开启 0关闭 - CalendarOpen *string `json:"CalendarOpen,omitnil,omitempty" name:"CalendarOpen"` - - // 日历id - CalendarId *string `json:"CalendarId,omitnil,omitempty" name:"CalendarId"` -} \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index bb0214741a..9d69815e7c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1171,10 +1171,14 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016 <<<<<<< HEAD +<<<<<<< HEAD # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.31 ======= # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.23 >>>>>>> bb6625576 (add) +======= +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.35 +>>>>>>> e8250d1c6 (add) ## explicit; go 1.11 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors @@ -1212,7 +1216,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc/v20180410 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb v1.0.673 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb/v20180411 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.23 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.1.35 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.1056 diff --git a/website/docs/r/dlc_attach_data_mask_policy.html.markdown b/website/docs/r/dlc_attach_data_mask_policy.html.markdown new file mode 100644 index 0000000000..ac028ee436 --- /dev/null +++ b/website/docs/r/dlc_attach_data_mask_policy.html.markdown @@ -0,0 +1,69 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_attach_data_mask_policy" +sidebar_current: "docs-tencentcloud-resource-dlc_attach_data_mask_policy" +description: |- + Provides a resource to create a DLC attach data mask policy +--- + +# tencentcloud_dlc_attach_data_mask_policy + +Provides a resource to create a DLC attach data mask policy + +## Example Usage + +```hcl +resource "tencentcloud_dlc_data_mask_strategy" "example" { + strategy { + strategy_name = "tf-example" + strategy_desc = "description." + groups { + work_group_id = 70220 + strategy_type = "MASK" + } + } +} + +resource "tencentcloud_dlc_attach_data_mask_policy" "example" { + data_mask_strategy_policy_set { + policy_info { + database = "tf-example" + catalog = "DataLakeCatalog" + table = "tf-example" + column = "id" + } + + data_mask_strategy_id = tencentcloud_dlc_data_mask_strategy.example.id + column_type = "string" + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `data_mask_strategy_policy_set` - (Optional, List, ForceNew) A collection of data masking policy permission objects to be bound. + +The `data_mask_strategy_policy_set` object supports the following: + +* `column_type` - (Optional, String, ForceNew) The type of the bound field. +* `data_mask_strategy_id` - (Optional, String, ForceNew) The ID of the data masking strategy. +* `policy_info` - (Optional, List, ForceNew) Data masking permission object. + +The `policy_info` object of `data_mask_strategy_policy_set` supports the following: + +* `catalog` - (Required, String, ForceNew) The name of the data source to be authorized. For administrator-level authorization, only * is allowed (representing all resources at this level). For data source-level and database-level authorization, only COSDataCatalog or * is allowed. For table-level authorization, custom data sources can be specified. Defaults to DataLakeCatalog if not specified. Note: For custom data sources, DLC can only manage a subset of permissions provided by the user during data source integration. +* `database` - (Required, String, ForceNew) The name of the database to be authorized. Use * to represent all databases under the current Catalog. For administrator-level authorization, only * is allowed. For data connection-level authorization, leave it empty. For other types, specify the database name. +* `table` - (Required, String, ForceNew) The name of the table to be authorized. Use * to represent all tables under the current Database. For administrator-level authorization, only * is allowed. For data connection-level and database-level authorization, leave it empty. For other types, specify the table name. +* `column` - (Optional, String, ForceNew) The name of the column to be authorized. Use * to represent all columns. For administrator-level authorization, only * is allowed. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + diff --git a/website/docs/r/dlc_data_mask_strategy.html.markdown b/website/docs/r/dlc_data_mask_strategy.html.markdown new file mode 100644 index 0000000000..33ee8128e8 --- /dev/null +++ b/website/docs/r/dlc_data_mask_strategy.html.markdown @@ -0,0 +1,61 @@ +--- +subcategory: "Data Lake Compute(DLC)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dlc_data_mask_strategy" +sidebar_current: "docs-tencentcloud-resource-dlc_data_mask_strategy" +description: |- + Provides a resource to create a DLC data mask strategy +--- + +# tencentcloud_dlc_data_mask_strategy + +Provides a resource to create a DLC data mask strategy + +## Example Usage + +```hcl +resource "tencentcloud_dlc_data_mask_strategy" "example" { + strategy { + strategy_name = "tf-example" + strategy_desc = "description." + groups { + work_group_id = 70220 + strategy_type = "MASK" + } + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `strategy` - (Optional, List) The data masking strategy. + +The `groups` object of `strategy` supports the following: + +* `strategy_type` - (Optional, String) The type of the data masking strategy. Supported value: MASK/MASK_NONE/MASK_NULL/MASK_HASH/MASK_SHOW_LAST_4/MASK_SHOW_FIRST_4/MASK_DATE_SHOW_YEAR. +* `work_group_id` - (Optional, Int) The unique ID of the work group. + +The `strategy` object supports the following: + +* `groups` - (Optional, List) Collection of bound working groups. +* `strategy_desc` - (Optional, String) The description of the data masking strategy. +* `strategy_name` - (Optional, String) The name of the data masking strategy. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + +## Import + +DLC data mask strategy can be imported using the id, e.g. + +``` +terraform import tencentcloud_dlc_data_mask_strategy.example 2fcab650-11a8-44ef-bf58-19c22af601b6 +``` + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index a4c374ae24..8f582c53f1 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -2308,12 +2308,18 @@
  • tencentcloud_dlc_add_users_to_work_group_attachment
  • +
  • + tencentcloud_dlc_attach_data_mask_policy +
  • tencentcloud_dlc_bind_work_groups_to_user_attachment
  • tencentcloud_dlc_data_engine
  • +
  • + tencentcloud_dlc_data_mask_strategy +
  • tencentcloud_dlc_modify_data_engine_description_operation
  • From 783cad95f569c16eac061c0c6f298053b5e5a718 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Sat, 27 Sep 2025 21:50:38 +0800 Subject: [PATCH 11/13] add --- .changelog/3486.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.changelog/3486.txt b/.changelog/3486.txt index e15859cdd9..ff19eeb75c 100644 --- a/.changelog/3486.txt +++ b/.changelog/3486.txt @@ -17,3 +17,11 @@ tencentcloud_dlc_user_vpc_connection ```release-note:new-resource tencentcloud_dlc_standard_engine_resource_group ``` + +```release-note:new-resource +tencentcloud_dlc_data_mask_strategy +``` + +```release-note:new-resource +tencentcloud_dlc_attach_data_mask_policy +``` From 52b8c0a273fc190fe303e3db4c56c666b0731177 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Sat, 27 Sep 2025 21:53:44 +0800 Subject: [PATCH 12/13] add --- .../tencentcloud/common/http/request.go | 8 - .../tencentcloud/wedata/v20250806/client.go | 4240 +++++++ .../tencentcloud/wedata/v20250806/errors.go | 61 + .../tencentcloud/wedata/v20250806/models.go | 9928 +++++++++++++++++ vendor/modules.txt | 8 - 5 files changed, 14229 insertions(+), 16 deletions(-) create mode 100644 vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/client.go create mode 100644 vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/errors.go create mode 100644 vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/models.go diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go index 04b567f320..44211e6b93 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go @@ -265,15 +265,7 @@ func CompleteCommonParams(request Request, region string, requestClient string) params["Action"] = request.GetAction() params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10) params["Nonce"] = strconv.Itoa(rand.Int()) -<<<<<<< HEAD -<<<<<<< HEAD - params["RequestClient"] = "SDK_GO_1.1.31" -======= - params["RequestClient"] = "SDK_GO_1.1.23" ->>>>>>> bb6625576 (add) -======= params["RequestClient"] = "SDK_GO_1.1.35" ->>>>>>> e8250d1c6 (add) if requestClient != "" { params["RequestClient"] += ": " + requestClient } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/client.go new file mode 100644 index 0000000000..ff66fba6e8 --- /dev/null +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/client.go @@ -0,0 +1,4240 @@ +// Copyright (c) 2017-2025 Tencent. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package v20250806 + +import ( + "context" + "errors" + "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" + tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" + "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" +) + +const APIVersion = "2025-08-06" + +type Client struct { + common.Client +} + +// Deprecated +func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) { + cpf := profile.NewClientProfile() + client = &Client{} + client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf) + return +} + +func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) { + client = &Client{} + client.Init(region). + WithCredential(credential). + WithProfile(clientProfile) + return +} + + +func NewCreateCodeFileRequest() (request *CreateCodeFileRequest) { + request = &CreateCodeFileRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateCodeFile") + + + return +} + +func NewCreateCodeFileResponse() (response *CreateCodeFileResponse) { + response = &CreateCodeFileResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateCodeFile +// 新建代码文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateCodeFile(request *CreateCodeFileRequest) (response *CreateCodeFileResponse, err error) { + return c.CreateCodeFileWithContext(context.Background(), request) +} + +// CreateCodeFile +// 新建代码文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateCodeFileWithContext(ctx context.Context, request *CreateCodeFileRequest) (response *CreateCodeFileResponse, err error) { + if request == nil { + request = NewCreateCodeFileRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateCodeFile") + + if c.GetCredential() == nil { + return nil, errors.New("CreateCodeFile require credential") + } + + request.SetContext(ctx) + + response = NewCreateCodeFileResponse() + err = c.Send(request, response) + return +} + +func NewCreateCodeFolderRequest() (request *CreateCodeFolderRequest) { + request = &CreateCodeFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateCodeFolder") + + + return +} + +func NewCreateCodeFolderResponse() (response *CreateCodeFolderResponse) { + response = &CreateCodeFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateCodeFolder +// 新建代码文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateCodeFolder(request *CreateCodeFolderRequest) (response *CreateCodeFolderResponse, err error) { + return c.CreateCodeFolderWithContext(context.Background(), request) +} + +// CreateCodeFolder +// 新建代码文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateCodeFolderWithContext(ctx context.Context, request *CreateCodeFolderRequest) (response *CreateCodeFolderResponse, err error) { + if request == nil { + request = NewCreateCodeFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateCodeFolder") + + if c.GetCredential() == nil { + return nil, errors.New("CreateCodeFolder require credential") + } + + request.SetContext(ctx) + + response = NewCreateCodeFolderResponse() + err = c.Send(request, response) + return +} + +func NewCreateDataBackfillPlanRequest() (request *CreateDataBackfillPlanRequest) { + request = &CreateDataBackfillPlanRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateDataBackfillPlan") + + + return +} + +func NewCreateDataBackfillPlanResponse() (response *CreateDataBackfillPlanResponse) { + response = &CreateDataBackfillPlanResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateDataBackfillPlan +// 创建数据补录计划 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) CreateDataBackfillPlan(request *CreateDataBackfillPlanRequest) (response *CreateDataBackfillPlanResponse, err error) { + return c.CreateDataBackfillPlanWithContext(context.Background(), request) +} + +// CreateDataBackfillPlan +// 创建数据补录计划 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) CreateDataBackfillPlanWithContext(ctx context.Context, request *CreateDataBackfillPlanRequest) (response *CreateDataBackfillPlanResponse, err error) { + if request == nil { + request = NewCreateDataBackfillPlanRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateDataBackfillPlan") + + if c.GetCredential() == nil { + return nil, errors.New("CreateDataBackfillPlan require credential") + } + + request.SetContext(ctx) + + response = NewCreateDataBackfillPlanResponse() + err = c.Send(request, response) + return +} + +func NewCreateOpsAlarmRuleRequest() (request *CreateOpsAlarmRuleRequest) { + request = &CreateOpsAlarmRuleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateOpsAlarmRule") + + + return +} + +func NewCreateOpsAlarmRuleResponse() (response *CreateOpsAlarmRuleResponse) { + response = &CreateOpsAlarmRuleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateOpsAlarmRule +// 设置告警规则 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" +// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" +// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" +func (c *Client) CreateOpsAlarmRule(request *CreateOpsAlarmRuleRequest) (response *CreateOpsAlarmRuleResponse, err error) { + return c.CreateOpsAlarmRuleWithContext(context.Background(), request) +} + +// CreateOpsAlarmRule +// 设置告警规则 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" +// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" +// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" +func (c *Client) CreateOpsAlarmRuleWithContext(ctx context.Context, request *CreateOpsAlarmRuleRequest) (response *CreateOpsAlarmRuleResponse, err error) { + if request == nil { + request = NewCreateOpsAlarmRuleRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateOpsAlarmRule") + + if c.GetCredential() == nil { + return nil, errors.New("CreateOpsAlarmRule require credential") + } + + request.SetContext(ctx) + + response = NewCreateOpsAlarmRuleResponse() + err = c.Send(request, response) + return +} + +func NewCreateResourceFileRequest() (request *CreateResourceFileRequest) { + request = &CreateResourceFileRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateResourceFile") + + + return +} + +func NewCreateResourceFileResponse() (response *CreateResourceFileResponse) { + response = &CreateResourceFileResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateResourceFile +// 创建资源文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateResourceFile(request *CreateResourceFileRequest) (response *CreateResourceFileResponse, err error) { + return c.CreateResourceFileWithContext(context.Background(), request) +} + +// CreateResourceFile +// 创建资源文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateResourceFileWithContext(ctx context.Context, request *CreateResourceFileRequest) (response *CreateResourceFileResponse, err error) { + if request == nil { + request = NewCreateResourceFileRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateResourceFile") + + if c.GetCredential() == nil { + return nil, errors.New("CreateResourceFile require credential") + } + + request.SetContext(ctx) + + response = NewCreateResourceFileResponse() + err = c.Send(request, response) + return +} + +func NewCreateResourceFolderRequest() (request *CreateResourceFolderRequest) { + request = &CreateResourceFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateResourceFolder") + + + return +} + +func NewCreateResourceFolderResponse() (response *CreateResourceFolderResponse) { + response = &CreateResourceFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateResourceFolder +// 创建资源文件文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateResourceFolder(request *CreateResourceFolderRequest) (response *CreateResourceFolderResponse, err error) { + return c.CreateResourceFolderWithContext(context.Background(), request) +} + +// CreateResourceFolder +// 创建资源文件文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateResourceFolderWithContext(ctx context.Context, request *CreateResourceFolderRequest) (response *CreateResourceFolderResponse, err error) { + if request == nil { + request = NewCreateResourceFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateResourceFolder") + + if c.GetCredential() == nil { + return nil, errors.New("CreateResourceFolder require credential") + } + + request.SetContext(ctx) + + response = NewCreateResourceFolderResponse() + err = c.Send(request, response) + return +} + +func NewCreateSQLFolderRequest() (request *CreateSQLFolderRequest) { + request = &CreateSQLFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateSQLFolder") + + + return +} + +func NewCreateSQLFolderResponse() (response *CreateSQLFolderResponse) { + response = &CreateSQLFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateSQLFolder +// 创建数据探索脚本文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateSQLFolder(request *CreateSQLFolderRequest) (response *CreateSQLFolderResponse, err error) { + return c.CreateSQLFolderWithContext(context.Background(), request) +} + +// CreateSQLFolder +// 创建数据探索脚本文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateSQLFolderWithContext(ctx context.Context, request *CreateSQLFolderRequest) (response *CreateSQLFolderResponse, err error) { + if request == nil { + request = NewCreateSQLFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateSQLFolder") + + if c.GetCredential() == nil { + return nil, errors.New("CreateSQLFolder require credential") + } + + request.SetContext(ctx) + + response = NewCreateSQLFolderResponse() + err = c.Send(request, response) + return +} + +func NewCreateSQLScriptRequest() (request *CreateSQLScriptRequest) { + request = &CreateSQLScriptRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateSQLScript") + + + return +} + +func NewCreateSQLScriptResponse() (response *CreateSQLScriptResponse) { + response = &CreateSQLScriptResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateSQLScript +// 新增SQL脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateSQLScript(request *CreateSQLScriptRequest) (response *CreateSQLScriptResponse, err error) { + return c.CreateSQLScriptWithContext(context.Background(), request) +} + +// CreateSQLScript +// 新增SQL脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateSQLScriptWithContext(ctx context.Context, request *CreateSQLScriptRequest) (response *CreateSQLScriptResponse, err error) { + if request == nil { + request = NewCreateSQLScriptRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateSQLScript") + + if c.GetCredential() == nil { + return nil, errors.New("CreateSQLScript require credential") + } + + request.SetContext(ctx) + + response = NewCreateSQLScriptResponse() + err = c.Send(request, response) + return +} + +func NewCreateTaskRequest() (request *CreateTaskRequest) { + request = &CreateTaskRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateTask") + + + return +} + +func NewCreateTaskResponse() (response *CreateTaskResponse) { + response = &CreateTaskResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateTask +// 创建任务接口 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateTask(request *CreateTaskRequest) (response *CreateTaskResponse, err error) { + return c.CreateTaskWithContext(context.Background(), request) +} + +// CreateTask +// 创建任务接口 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateTaskWithContext(ctx context.Context, request *CreateTaskRequest) (response *CreateTaskResponse, err error) { + if request == nil { + request = NewCreateTaskRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateTask") + + if c.GetCredential() == nil { + return nil, errors.New("CreateTask require credential") + } + + request.SetContext(ctx) + + response = NewCreateTaskResponse() + err = c.Send(request, response) + return +} + +func NewCreateWorkflowRequest() (request *CreateWorkflowRequest) { + request = &CreateWorkflowRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateWorkflow") + + + return +} + +func NewCreateWorkflowResponse() (response *CreateWorkflowResponse) { + response = &CreateWorkflowResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateWorkflow +// 创建工作流 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) CreateWorkflow(request *CreateWorkflowRequest) (response *CreateWorkflowResponse, err error) { + return c.CreateWorkflowWithContext(context.Background(), request) +} + +// CreateWorkflow +// 创建工作流 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) CreateWorkflowWithContext(ctx context.Context, request *CreateWorkflowRequest) (response *CreateWorkflowResponse, err error) { + if request == nil { + request = NewCreateWorkflowRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateWorkflow") + + if c.GetCredential() == nil { + return nil, errors.New("CreateWorkflow require credential") + } + + request.SetContext(ctx) + + response = NewCreateWorkflowResponse() + err = c.Send(request, response) + return +} + +func NewCreateWorkflowFolderRequest() (request *CreateWorkflowFolderRequest) { + request = &CreateWorkflowFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateWorkflowFolder") + + + return +} + +func NewCreateWorkflowFolderResponse() (response *CreateWorkflowFolderResponse) { + response = &CreateWorkflowFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateWorkflowFolder +// 创建文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateWorkflowFolder(request *CreateWorkflowFolderRequest) (response *CreateWorkflowFolderResponse, err error) { + return c.CreateWorkflowFolderWithContext(context.Background(), request) +} + +// CreateWorkflowFolder +// 创建文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateWorkflowFolderWithContext(ctx context.Context, request *CreateWorkflowFolderRequest) (response *CreateWorkflowFolderResponse, err error) { + if request == nil { + request = NewCreateWorkflowFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateWorkflowFolder") + + if c.GetCredential() == nil { + return nil, errors.New("CreateWorkflowFolder require credential") + } + + request.SetContext(ctx) + + response = NewCreateWorkflowFolderResponse() + err = c.Send(request, response) + return +} + +func NewDeleteCodeFileRequest() (request *DeleteCodeFileRequest) { + request = &DeleteCodeFileRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteCodeFile") + + + return +} + +func NewDeleteCodeFileResponse() (response *DeleteCodeFileResponse) { + response = &DeleteCodeFileResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteCodeFile +// 删除代码文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteCodeFile(request *DeleteCodeFileRequest) (response *DeleteCodeFileResponse, err error) { + return c.DeleteCodeFileWithContext(context.Background(), request) +} + +// DeleteCodeFile +// 删除代码文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteCodeFileWithContext(ctx context.Context, request *DeleteCodeFileRequest) (response *DeleteCodeFileResponse, err error) { + if request == nil { + request = NewDeleteCodeFileRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteCodeFile") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteCodeFile require credential") + } + + request.SetContext(ctx) + + response = NewDeleteCodeFileResponse() + err = c.Send(request, response) + return +} + +func NewDeleteCodeFolderRequest() (request *DeleteCodeFolderRequest) { + request = &DeleteCodeFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteCodeFolder") + + + return +} + +func NewDeleteCodeFolderResponse() (response *DeleteCodeFolderResponse) { + response = &DeleteCodeFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteCodeFolder +// 数据探索删除文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteCodeFolder(request *DeleteCodeFolderRequest) (response *DeleteCodeFolderResponse, err error) { + return c.DeleteCodeFolderWithContext(context.Background(), request) +} + +// DeleteCodeFolder +// 数据探索删除文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteCodeFolderWithContext(ctx context.Context, request *DeleteCodeFolderRequest) (response *DeleteCodeFolderResponse, err error) { + if request == nil { + request = NewDeleteCodeFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteCodeFolder") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteCodeFolder require credential") + } + + request.SetContext(ctx) + + response = NewDeleteCodeFolderResponse() + err = c.Send(request, response) + return +} + +func NewDeleteOpsAlarmRuleRequest() (request *DeleteOpsAlarmRuleRequest) { + request = &DeleteOpsAlarmRuleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteOpsAlarmRule") + + + return +} + +func NewDeleteOpsAlarmRuleResponse() (response *DeleteOpsAlarmRuleResponse) { + response = &DeleteOpsAlarmRuleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteOpsAlarmRule +// 删除告警规则 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteOpsAlarmRule(request *DeleteOpsAlarmRuleRequest) (response *DeleteOpsAlarmRuleResponse, err error) { + return c.DeleteOpsAlarmRuleWithContext(context.Background(), request) +} + +// DeleteOpsAlarmRule +// 删除告警规则 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteOpsAlarmRuleWithContext(ctx context.Context, request *DeleteOpsAlarmRuleRequest) (response *DeleteOpsAlarmRuleResponse, err error) { + if request == nil { + request = NewDeleteOpsAlarmRuleRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteOpsAlarmRule") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteOpsAlarmRule require credential") + } + + request.SetContext(ctx) + + response = NewDeleteOpsAlarmRuleResponse() + err = c.Send(request, response) + return +} + +func NewDeleteResourceFileRequest() (request *DeleteResourceFileRequest) { + request = &DeleteResourceFileRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteResourceFile") + + + return +} + +func NewDeleteResourceFileResponse() (response *DeleteResourceFileResponse) { + response = &DeleteResourceFileResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteResourceFile +// 资源管理-删除资源文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DeleteResourceFile(request *DeleteResourceFileRequest) (response *DeleteResourceFileResponse, err error) { + return c.DeleteResourceFileWithContext(context.Background(), request) +} + +// DeleteResourceFile +// 资源管理-删除资源文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DeleteResourceFileWithContext(ctx context.Context, request *DeleteResourceFileRequest) (response *DeleteResourceFileResponse, err error) { + if request == nil { + request = NewDeleteResourceFileRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteResourceFile") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteResourceFile require credential") + } + + request.SetContext(ctx) + + response = NewDeleteResourceFileResponse() + err = c.Send(request, response) + return +} + +func NewDeleteResourceFolderRequest() (request *DeleteResourceFolderRequest) { + request = &DeleteResourceFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteResourceFolder") + + + return +} + +func NewDeleteResourceFolderResponse() (response *DeleteResourceFolderResponse) { + response = &DeleteResourceFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteResourceFolder +// 删除资源文件文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DeleteResourceFolder(request *DeleteResourceFolderRequest) (response *DeleteResourceFolderResponse, err error) { + return c.DeleteResourceFolderWithContext(context.Background(), request) +} + +// DeleteResourceFolder +// 删除资源文件文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DeleteResourceFolderWithContext(ctx context.Context, request *DeleteResourceFolderRequest) (response *DeleteResourceFolderResponse, err error) { + if request == nil { + request = NewDeleteResourceFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteResourceFolder") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteResourceFolder require credential") + } + + request.SetContext(ctx) + + response = NewDeleteResourceFolderResponse() + err = c.Send(request, response) + return +} + +func NewDeleteSQLFolderRequest() (request *DeleteSQLFolderRequest) { + request = &DeleteSQLFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteSQLFolder") + + + return +} + +func NewDeleteSQLFolderResponse() (response *DeleteSQLFolderResponse) { + response = &DeleteSQLFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteSQLFolder +// 删除SQL文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteSQLFolder(request *DeleteSQLFolderRequest) (response *DeleteSQLFolderResponse, err error) { + return c.DeleteSQLFolderWithContext(context.Background(), request) +} + +// DeleteSQLFolder +// 删除SQL文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteSQLFolderWithContext(ctx context.Context, request *DeleteSQLFolderRequest) (response *DeleteSQLFolderResponse, err error) { + if request == nil { + request = NewDeleteSQLFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteSQLFolder") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteSQLFolder require credential") + } + + request.SetContext(ctx) + + response = NewDeleteSQLFolderResponse() + err = c.Send(request, response) + return +} + +func NewDeleteSQLScriptRequest() (request *DeleteSQLScriptRequest) { + request = &DeleteSQLScriptRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteSQLScript") + + + return +} + +func NewDeleteSQLScriptResponse() (response *DeleteSQLScriptResponse) { + response = &DeleteSQLScriptResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteSQLScript +// 删除探索脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteSQLScript(request *DeleteSQLScriptRequest) (response *DeleteSQLScriptResponse, err error) { + return c.DeleteSQLScriptWithContext(context.Background(), request) +} + +// DeleteSQLScript +// 删除探索脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteSQLScriptWithContext(ctx context.Context, request *DeleteSQLScriptRequest) (response *DeleteSQLScriptResponse, err error) { + if request == nil { + request = NewDeleteSQLScriptRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteSQLScript") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteSQLScript require credential") + } + + request.SetContext(ctx) + + response = NewDeleteSQLScriptResponse() + err = c.Send(request, response) + return +} + +func NewDeleteTaskRequest() (request *DeleteTaskRequest) { + request = &DeleteTaskRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteTask") + + + return +} + +func NewDeleteTaskResponse() (response *DeleteTaskResponse) { + response = &DeleteTaskResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteTask +// 删除编排空间任务 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) DeleteTask(request *DeleteTaskRequest) (response *DeleteTaskResponse, err error) { + return c.DeleteTaskWithContext(context.Background(), request) +} + +// DeleteTask +// 删除编排空间任务 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) DeleteTaskWithContext(ctx context.Context, request *DeleteTaskRequest) (response *DeleteTaskResponse, err error) { + if request == nil { + request = NewDeleteTaskRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteTask") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteTask require credential") + } + + request.SetContext(ctx) + + response = NewDeleteTaskResponse() + err = c.Send(request, response) + return +} + +func NewDeleteWorkflowRequest() (request *DeleteWorkflowRequest) { + request = &DeleteWorkflowRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteWorkflow") + + + return +} + +func NewDeleteWorkflowResponse() (response *DeleteWorkflowResponse) { + response = &DeleteWorkflowResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteWorkflow +// 删除工作流 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) DeleteWorkflow(request *DeleteWorkflowRequest) (response *DeleteWorkflowResponse, err error) { + return c.DeleteWorkflowWithContext(context.Background(), request) +} + +// DeleteWorkflow +// 删除工作流 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) DeleteWorkflowWithContext(ctx context.Context, request *DeleteWorkflowRequest) (response *DeleteWorkflowResponse, err error) { + if request == nil { + request = NewDeleteWorkflowRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteWorkflow") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteWorkflow require credential") + } + + request.SetContext(ctx) + + response = NewDeleteWorkflowResponse() + err = c.Send(request, response) + return +} + +func NewDeleteWorkflowFolderRequest() (request *DeleteWorkflowFolderRequest) { + request = &DeleteWorkflowFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteWorkflowFolder") + + + return +} + +func NewDeleteWorkflowFolderResponse() (response *DeleteWorkflowFolderResponse) { + response = &DeleteWorkflowFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteWorkflowFolder +// 删除数据开发文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DeleteWorkflowFolder(request *DeleteWorkflowFolderRequest) (response *DeleteWorkflowFolderResponse, err error) { + return c.DeleteWorkflowFolderWithContext(context.Background(), request) +} + +// DeleteWorkflowFolder +// 删除数据开发文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DeleteWorkflowFolderWithContext(ctx context.Context, request *DeleteWorkflowFolderRequest) (response *DeleteWorkflowFolderResponse, err error) { + if request == nil { + request = NewDeleteWorkflowFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteWorkflowFolder") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteWorkflowFolder require credential") + } + + request.SetContext(ctx) + + response = NewDeleteWorkflowFolderResponse() + err = c.Send(request, response) + return +} + +func NewGetAlarmMessageRequest() (request *GetAlarmMessageRequest) { + request = &GetAlarmMessageRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetAlarmMessage") + + + return +} + +func NewGetAlarmMessageResponse() (response *GetAlarmMessageResponse) { + response = &GetAlarmMessageResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetAlarmMessage +// 查询告警信息详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GetAlarmMessage(request *GetAlarmMessageRequest) (response *GetAlarmMessageResponse, err error) { + return c.GetAlarmMessageWithContext(context.Background(), request) +} + +// GetAlarmMessage +// 查询告警信息详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GetAlarmMessageWithContext(ctx context.Context, request *GetAlarmMessageRequest) (response *GetAlarmMessageResponse, err error) { + if request == nil { + request = NewGetAlarmMessageRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetAlarmMessage") + + if c.GetCredential() == nil { + return nil, errors.New("GetAlarmMessage require credential") + } + + request.SetContext(ctx) + + response = NewGetAlarmMessageResponse() + err = c.Send(request, response) + return +} + +func NewGetCodeFileRequest() (request *GetCodeFileRequest) { + request = &GetCodeFileRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetCodeFile") + + + return +} + +func NewGetCodeFileResponse() (response *GetCodeFileResponse) { + response = &GetCodeFileResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetCodeFile +// 查看代码文件详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GetCodeFile(request *GetCodeFileRequest) (response *GetCodeFileResponse, err error) { + return c.GetCodeFileWithContext(context.Background(), request) +} + +// GetCodeFile +// 查看代码文件详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GetCodeFileWithContext(ctx context.Context, request *GetCodeFileRequest) (response *GetCodeFileResponse, err error) { + if request == nil { + request = NewGetCodeFileRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetCodeFile") + + if c.GetCredential() == nil { + return nil, errors.New("GetCodeFile require credential") + } + + request.SetContext(ctx) + + response = NewGetCodeFileResponse() + err = c.Send(request, response) + return +} + +func NewGetOpsAlarmRuleRequest() (request *GetOpsAlarmRuleRequest) { + request = &GetOpsAlarmRuleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsAlarmRule") + + + return +} + +func NewGetOpsAlarmRuleResponse() (response *GetOpsAlarmRuleResponse) { + response = &GetOpsAlarmRuleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetOpsAlarmRule +// 根据告警规则id/名称查询单个告警规则信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetOpsAlarmRule(request *GetOpsAlarmRuleRequest) (response *GetOpsAlarmRuleResponse, err error) { + return c.GetOpsAlarmRuleWithContext(context.Background(), request) +} + +// GetOpsAlarmRule +// 根据告警规则id/名称查询单个告警规则信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetOpsAlarmRuleWithContext(ctx context.Context, request *GetOpsAlarmRuleRequest) (response *GetOpsAlarmRuleResponse, err error) { + if request == nil { + request = NewGetOpsAlarmRuleRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsAlarmRule") + + if c.GetCredential() == nil { + return nil, errors.New("GetOpsAlarmRule require credential") + } + + request.SetContext(ctx) + + response = NewGetOpsAlarmRuleResponse() + err = c.Send(request, response) + return +} + +func NewGetOpsAsyncJobRequest() (request *GetOpsAsyncJobRequest) { + request = &GetOpsAsyncJobRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsAsyncJob") + + + return +} + +func NewGetOpsAsyncJobResponse() (response *GetOpsAsyncJobResponse) { + response = &GetOpsAsyncJobResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetOpsAsyncJob +// 查询运维中心异步操作详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetOpsAsyncJob(request *GetOpsAsyncJobRequest) (response *GetOpsAsyncJobResponse, err error) { + return c.GetOpsAsyncJobWithContext(context.Background(), request) +} + +// GetOpsAsyncJob +// 查询运维中心异步操作详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetOpsAsyncJobWithContext(ctx context.Context, request *GetOpsAsyncJobRequest) (response *GetOpsAsyncJobResponse, err error) { + if request == nil { + request = NewGetOpsAsyncJobRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsAsyncJob") + + if c.GetCredential() == nil { + return nil, errors.New("GetOpsAsyncJob require credential") + } + + request.SetContext(ctx) + + response = NewGetOpsAsyncJobResponse() + err = c.Send(request, response) + return +} + +func NewGetOpsTaskRequest() (request *GetOpsTaskRequest) { + request = &GetOpsTaskRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsTask") + + + return +} + +func NewGetOpsTaskResponse() (response *GetOpsTaskResponse) { + response = &GetOpsTaskResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetOpsTask +// 获取任务详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +func (c *Client) GetOpsTask(request *GetOpsTaskRequest) (response *GetOpsTaskResponse, err error) { + return c.GetOpsTaskWithContext(context.Background(), request) +} + +// GetOpsTask +// 获取任务详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +func (c *Client) GetOpsTaskWithContext(ctx context.Context, request *GetOpsTaskRequest) (response *GetOpsTaskResponse, err error) { + if request == nil { + request = NewGetOpsTaskRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsTask") + + if c.GetCredential() == nil { + return nil, errors.New("GetOpsTask require credential") + } + + request.SetContext(ctx) + + response = NewGetOpsTaskResponse() + err = c.Send(request, response) + return +} + +func NewGetOpsTaskCodeRequest() (request *GetOpsTaskCodeRequest) { + request = &GetOpsTaskCodeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsTaskCode") + + + return +} + +func NewGetOpsTaskCodeResponse() (response *GetOpsTaskCodeResponse) { + response = &GetOpsTaskCodeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetOpsTaskCode +// 获取任务代码 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GetOpsTaskCode(request *GetOpsTaskCodeRequest) (response *GetOpsTaskCodeResponse, err error) { + return c.GetOpsTaskCodeWithContext(context.Background(), request) +} + +// GetOpsTaskCode +// 获取任务代码 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GetOpsTaskCodeWithContext(ctx context.Context, request *GetOpsTaskCodeRequest) (response *GetOpsTaskCodeResponse, err error) { + if request == nil { + request = NewGetOpsTaskCodeRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsTaskCode") + + if c.GetCredential() == nil { + return nil, errors.New("GetOpsTaskCode require credential") + } + + request.SetContext(ctx) + + response = NewGetOpsTaskCodeResponse() + err = c.Send(request, response) + return +} + +func NewGetOpsWorkflowRequest() (request *GetOpsWorkflowRequest) { + request = &GetOpsWorkflowRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsWorkflow") + + + return +} + +func NewGetOpsWorkflowResponse() (response *GetOpsWorkflowResponse) { + response = &GetOpsWorkflowResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetOpsWorkflow +// 根据工作流id,获取工作流调度详情。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetOpsWorkflow(request *GetOpsWorkflowRequest) (response *GetOpsWorkflowResponse, err error) { + return c.GetOpsWorkflowWithContext(context.Background(), request) +} + +// GetOpsWorkflow +// 根据工作流id,获取工作流调度详情。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetOpsWorkflowWithContext(ctx context.Context, request *GetOpsWorkflowRequest) (response *GetOpsWorkflowResponse, err error) { + if request == nil { + request = NewGetOpsWorkflowRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsWorkflow") + + if c.GetCredential() == nil { + return nil, errors.New("GetOpsWorkflow require credential") + } + + request.SetContext(ctx) + + response = NewGetOpsWorkflowResponse() + err = c.Send(request, response) + return +} + +func NewGetResourceFileRequest() (request *GetResourceFileRequest) { + request = &GetResourceFileRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetResourceFile") + + + return +} + +func NewGetResourceFileResponse() (response *GetResourceFileResponse) { + response = &GetResourceFileResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetResourceFile +// 获取资源文件详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetResourceFile(request *GetResourceFileRequest) (response *GetResourceFileResponse, err error) { + return c.GetResourceFileWithContext(context.Background(), request) +} + +// GetResourceFile +// 获取资源文件详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetResourceFileWithContext(ctx context.Context, request *GetResourceFileRequest) (response *GetResourceFileResponse, err error) { + if request == nil { + request = NewGetResourceFileRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetResourceFile") + + if c.GetCredential() == nil { + return nil, errors.New("GetResourceFile require credential") + } + + request.SetContext(ctx) + + response = NewGetResourceFileResponse() + err = c.Send(request, response) + return +} + +func NewGetSQLScriptRequest() (request *GetSQLScriptRequest) { + request = &GetSQLScriptRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetSQLScript") + + + return +} + +func NewGetSQLScriptResponse() (response *GetSQLScriptResponse) { + response = &GetSQLScriptResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetSQLScript +// 查询脚本详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GetSQLScript(request *GetSQLScriptRequest) (response *GetSQLScriptResponse, err error) { + return c.GetSQLScriptWithContext(context.Background(), request) +} + +// GetSQLScript +// 查询脚本详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GetSQLScriptWithContext(ctx context.Context, request *GetSQLScriptRequest) (response *GetSQLScriptResponse, err error) { + if request == nil { + request = NewGetSQLScriptRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetSQLScript") + + if c.GetCredential() == nil { + return nil, errors.New("GetSQLScript require credential") + } + + request.SetContext(ctx) + + response = NewGetSQLScriptResponse() + err = c.Send(request, response) + return +} + +func NewGetTaskRequest() (request *GetTaskRequest) { + request = &GetTaskRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetTask") + + + return +} + +func NewGetTaskResponse() (response *GetTaskResponse) { + response = &GetTaskResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetTask +// 创建任务接口 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetTask(request *GetTaskRequest) (response *GetTaskResponse, err error) { + return c.GetTaskWithContext(context.Background(), request) +} + +// GetTask +// 创建任务接口 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetTaskWithContext(ctx context.Context, request *GetTaskRequest) (response *GetTaskResponse, err error) { + if request == nil { + request = NewGetTaskRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTask") + + if c.GetCredential() == nil { + return nil, errors.New("GetTask require credential") + } + + request.SetContext(ctx) + + response = NewGetTaskResponse() + err = c.Send(request, response) + return +} + +func NewGetTaskCodeRequest() (request *GetTaskCodeRequest) { + request = &GetTaskCodeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetTaskCode") + + + return +} + +func NewGetTaskCodeResponse() (response *GetTaskCodeResponse) { + response = &GetTaskCodeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetTaskCode +// 获取任务代码 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetTaskCode(request *GetTaskCodeRequest) (response *GetTaskCodeResponse, err error) { + return c.GetTaskCodeWithContext(context.Background(), request) +} + +// GetTaskCode +// 获取任务代码 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetTaskCodeWithContext(ctx context.Context, request *GetTaskCodeRequest) (response *GetTaskCodeResponse, err error) { + if request == nil { + request = NewGetTaskCodeRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskCode") + + if c.GetCredential() == nil { + return nil, errors.New("GetTaskCode require credential") + } + + request.SetContext(ctx) + + response = NewGetTaskCodeResponse() + err = c.Send(request, response) + return +} + +func NewGetTaskInstanceRequest() (request *GetTaskInstanceRequest) { + request = &GetTaskInstanceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetTaskInstance") + + + return +} + +func NewGetTaskInstanceResponse() (response *GetTaskInstanceResponse) { + response = &GetTaskInstanceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetTaskInstance +// 调度实例详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetTaskInstance(request *GetTaskInstanceRequest) (response *GetTaskInstanceResponse, err error) { + return c.GetTaskInstanceWithContext(context.Background(), request) +} + +// GetTaskInstance +// 调度实例详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetTaskInstanceWithContext(ctx context.Context, request *GetTaskInstanceRequest) (response *GetTaskInstanceResponse, err error) { + if request == nil { + request = NewGetTaskInstanceRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskInstance") + + if c.GetCredential() == nil { + return nil, errors.New("GetTaskInstance require credential") + } + + request.SetContext(ctx) + + response = NewGetTaskInstanceResponse() + err = c.Send(request, response) + return +} + +func NewGetTaskInstanceLogRequest() (request *GetTaskInstanceLogRequest) { + request = &GetTaskInstanceLogRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetTaskInstanceLog") + + + return +} + +func NewGetTaskInstanceLogResponse() (response *GetTaskInstanceLogResponse) { + response = &GetTaskInstanceLogResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetTaskInstanceLog +// 获取实例列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetTaskInstanceLog(request *GetTaskInstanceLogRequest) (response *GetTaskInstanceLogResponse, err error) { + return c.GetTaskInstanceLogWithContext(context.Background(), request) +} + +// GetTaskInstanceLog +// 获取实例列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetTaskInstanceLogWithContext(ctx context.Context, request *GetTaskInstanceLogRequest) (response *GetTaskInstanceLogResponse, err error) { + if request == nil { + request = NewGetTaskInstanceLogRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskInstanceLog") + + if c.GetCredential() == nil { + return nil, errors.New("GetTaskInstanceLog require credential") + } + + request.SetContext(ctx) + + response = NewGetTaskInstanceLogResponse() + err = c.Send(request, response) + return +} + +func NewGetTaskVersionRequest() (request *GetTaskVersionRequest) { + request = &GetTaskVersionRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetTaskVersion") + + + return +} + +func NewGetTaskVersionResponse() (response *GetTaskVersionResponse) { + response = &GetTaskVersionResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetTaskVersion +// 拉取任务版本列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetTaskVersion(request *GetTaskVersionRequest) (response *GetTaskVersionResponse, err error) { + return c.GetTaskVersionWithContext(context.Background(), request) +} + +// GetTaskVersion +// 拉取任务版本列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetTaskVersionWithContext(ctx context.Context, request *GetTaskVersionRequest) (response *GetTaskVersionResponse, err error) { + if request == nil { + request = NewGetTaskVersionRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskVersion") + + if c.GetCredential() == nil { + return nil, errors.New("GetTaskVersion require credential") + } + + request.SetContext(ctx) + + response = NewGetTaskVersionResponse() + err = c.Send(request, response) + return +} + +func NewGetWorkflowRequest() (request *GetWorkflowRequest) { + request = &GetWorkflowRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GetWorkflow") + + + return +} + +func NewGetWorkflowResponse() (response *GetWorkflowResponse) { + response = &GetWorkflowResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GetWorkflow +// 获取工作流信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetWorkflow(request *GetWorkflowRequest) (response *GetWorkflowResponse, err error) { + return c.GetWorkflowWithContext(context.Background(), request) +} + +// GetWorkflow +// 获取工作流信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetWorkflowWithContext(ctx context.Context, request *GetWorkflowRequest) (response *GetWorkflowResponse, err error) { + if request == nil { + request = NewGetWorkflowRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetWorkflow") + + if c.GetCredential() == nil { + return nil, errors.New("GetWorkflow require credential") + } + + request.SetContext(ctx) + + response = NewGetWorkflowResponse() + err = c.Send(request, response) + return +} + +func NewKillTaskInstancesAsyncRequest() (request *KillTaskInstancesAsyncRequest) { + request = &KillTaskInstancesAsyncRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "KillTaskInstancesAsync") + + + return +} + +func NewKillTaskInstancesAsyncResponse() (response *KillTaskInstancesAsyncResponse) { + response = &KillTaskInstancesAsyncResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// KillTaskInstancesAsync +// 实例批量终止操作-异步操作 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) KillTaskInstancesAsync(request *KillTaskInstancesAsyncRequest) (response *KillTaskInstancesAsyncResponse, err error) { + return c.KillTaskInstancesAsyncWithContext(context.Background(), request) +} + +// KillTaskInstancesAsync +// 实例批量终止操作-异步操作 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) KillTaskInstancesAsyncWithContext(ctx context.Context, request *KillTaskInstancesAsyncRequest) (response *KillTaskInstancesAsyncResponse, err error) { + if request == nil { + request = NewKillTaskInstancesAsyncRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "KillTaskInstancesAsync") + + if c.GetCredential() == nil { + return nil, errors.New("KillTaskInstancesAsync require credential") + } + + request.SetContext(ctx) + + response = NewKillTaskInstancesAsyncResponse() + err = c.Send(request, response) + return +} + +func NewListAlarmMessagesRequest() (request *ListAlarmMessagesRequest) { + request = &ListAlarmMessagesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListAlarmMessages") + + + return +} + +func NewListAlarmMessagesResponse() (response *ListAlarmMessagesResponse) { + response = &ListAlarmMessagesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListAlarmMessages +// 获取告警信息列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListAlarmMessages(request *ListAlarmMessagesRequest) (response *ListAlarmMessagesResponse, err error) { + return c.ListAlarmMessagesWithContext(context.Background(), request) +} + +// ListAlarmMessages +// 获取告警信息列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListAlarmMessagesWithContext(ctx context.Context, request *ListAlarmMessagesRequest) (response *ListAlarmMessagesResponse, err error) { + if request == nil { + request = NewListAlarmMessagesRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListAlarmMessages") + + if c.GetCredential() == nil { + return nil, errors.New("ListAlarmMessages require credential") + } + + request.SetContext(ctx) + + response = NewListAlarmMessagesResponse() + err = c.Send(request, response) + return +} + +func NewListCodeFolderContentsRequest() (request *ListCodeFolderContentsRequest) { + request = &ListCodeFolderContentsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListCodeFolderContents") + + + return +} + +func NewListCodeFolderContentsResponse() (response *ListCodeFolderContentsResponse) { + response = &ListCodeFolderContentsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListCodeFolderContents +// 获取文件夹内容 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListCodeFolderContents(request *ListCodeFolderContentsRequest) (response *ListCodeFolderContentsResponse, err error) { + return c.ListCodeFolderContentsWithContext(context.Background(), request) +} + +// ListCodeFolderContents +// 获取文件夹内容 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListCodeFolderContentsWithContext(ctx context.Context, request *ListCodeFolderContentsRequest) (response *ListCodeFolderContentsResponse, err error) { + if request == nil { + request = NewListCodeFolderContentsRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListCodeFolderContents") + + if c.GetCredential() == nil { + return nil, errors.New("ListCodeFolderContents require credential") + } + + request.SetContext(ctx) + + response = NewListCodeFolderContentsResponse() + err = c.Send(request, response) + return +} + +func NewListDataBackfillInstancesRequest() (request *ListDataBackfillInstancesRequest) { + request = &ListDataBackfillInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListDataBackfillInstances") + + + return +} + +func NewListDataBackfillInstancesResponse() (response *ListDataBackfillInstancesResponse) { + response = &ListDataBackfillInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListDataBackfillInstances +// 获取单次补录的所有实例详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListDataBackfillInstances(request *ListDataBackfillInstancesRequest) (response *ListDataBackfillInstancesResponse, err error) { + return c.ListDataBackfillInstancesWithContext(context.Background(), request) +} + +// ListDataBackfillInstances +// 获取单次补录的所有实例详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListDataBackfillInstancesWithContext(ctx context.Context, request *ListDataBackfillInstancesRequest) (response *ListDataBackfillInstancesResponse, err error) { + if request == nil { + request = NewListDataBackfillInstancesRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDataBackfillInstances") + + if c.GetCredential() == nil { + return nil, errors.New("ListDataBackfillInstances require credential") + } + + request.SetContext(ctx) + + response = NewListDataBackfillInstancesResponse() + err = c.Send(request, response) + return +} + +func NewListDownstreamOpsTasksRequest() (request *ListDownstreamOpsTasksRequest) { + request = &ListDownstreamOpsTasksRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListDownstreamOpsTasks") + + + return +} + +func NewListDownstreamOpsTasksResponse() (response *ListDownstreamOpsTasksResponse) { + response = &ListDownstreamOpsTasksResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListDownstreamOpsTasks +// 获取任务直接下游详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListDownstreamOpsTasks(request *ListDownstreamOpsTasksRequest) (response *ListDownstreamOpsTasksResponse, err error) { + return c.ListDownstreamOpsTasksWithContext(context.Background(), request) +} + +// ListDownstreamOpsTasks +// 获取任务直接下游详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListDownstreamOpsTasksWithContext(ctx context.Context, request *ListDownstreamOpsTasksRequest) (response *ListDownstreamOpsTasksResponse, err error) { + if request == nil { + request = NewListDownstreamOpsTasksRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDownstreamOpsTasks") + + if c.GetCredential() == nil { + return nil, errors.New("ListDownstreamOpsTasks require credential") + } + + request.SetContext(ctx) + + response = NewListDownstreamOpsTasksResponse() + err = c.Send(request, response) + return +} + +func NewListDownstreamTaskInstancesRequest() (request *ListDownstreamTaskInstancesRequest) { + request = &ListDownstreamTaskInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListDownstreamTaskInstances") + + + return +} + +func NewListDownstreamTaskInstancesResponse() (response *ListDownstreamTaskInstancesResponse) { + response = &ListDownstreamTaskInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListDownstreamTaskInstances +// 获取实例直接上游 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListDownstreamTaskInstances(request *ListDownstreamTaskInstancesRequest) (response *ListDownstreamTaskInstancesResponse, err error) { + return c.ListDownstreamTaskInstancesWithContext(context.Background(), request) +} + +// ListDownstreamTaskInstances +// 获取实例直接上游 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListDownstreamTaskInstancesWithContext(ctx context.Context, request *ListDownstreamTaskInstancesRequest) (response *ListDownstreamTaskInstancesResponse, err error) { + if request == nil { + request = NewListDownstreamTaskInstancesRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDownstreamTaskInstances") + + if c.GetCredential() == nil { + return nil, errors.New("ListDownstreamTaskInstances require credential") + } + + request.SetContext(ctx) + + response = NewListDownstreamTaskInstancesResponse() + err = c.Send(request, response) + return +} + +func NewListDownstreamTasksRequest() (request *ListDownstreamTasksRequest) { + request = &ListDownstreamTasksRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListDownstreamTasks") + + + return +} + +func NewListDownstreamTasksResponse() (response *ListDownstreamTasksResponse) { + response = &ListDownstreamTasksResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListDownstreamTasks +// 获取任务直接下游详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListDownstreamTasks(request *ListDownstreamTasksRequest) (response *ListDownstreamTasksResponse, err error) { + return c.ListDownstreamTasksWithContext(context.Background(), request) +} + +// ListDownstreamTasks +// 获取任务直接下游详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListDownstreamTasksWithContext(ctx context.Context, request *ListDownstreamTasksRequest) (response *ListDownstreamTasksResponse, err error) { + if request == nil { + request = NewListDownstreamTasksRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDownstreamTasks") + + if c.GetCredential() == nil { + return nil, errors.New("ListDownstreamTasks require credential") + } + + request.SetContext(ctx) + + response = NewListDownstreamTasksResponse() + err = c.Send(request, response) + return +} + +func NewListOpsAlarmRulesRequest() (request *ListOpsAlarmRulesRequest) { + request = &ListOpsAlarmRulesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListOpsAlarmRules") + + + return +} + +func NewListOpsAlarmRulesResponse() (response *ListOpsAlarmRulesResponse) { + response = &ListOpsAlarmRulesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListOpsAlarmRules +// 查询告警规则列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListOpsAlarmRules(request *ListOpsAlarmRulesRequest) (response *ListOpsAlarmRulesResponse, err error) { + return c.ListOpsAlarmRulesWithContext(context.Background(), request) +} + +// ListOpsAlarmRules +// 查询告警规则列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListOpsAlarmRulesWithContext(ctx context.Context, request *ListOpsAlarmRulesRequest) (response *ListOpsAlarmRulesResponse, err error) { + if request == nil { + request = NewListOpsAlarmRulesRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsAlarmRules") + + if c.GetCredential() == nil { + return nil, errors.New("ListOpsAlarmRules require credential") + } + + request.SetContext(ctx) + + response = NewListOpsAlarmRulesResponse() + err = c.Send(request, response) + return +} + +func NewListOpsTasksRequest() (request *ListOpsTasksRequest) { + request = &ListOpsTasksRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListOpsTasks") + + + return +} + +func NewListOpsTasksResponse() (response *ListOpsTasksResponse) { + response = &ListOpsTasksResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListOpsTasks +// 根据项目id获取任务列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListOpsTasks(request *ListOpsTasksRequest) (response *ListOpsTasksResponse, err error) { + return c.ListOpsTasksWithContext(context.Background(), request) +} + +// ListOpsTasks +// 根据项目id获取任务列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListOpsTasksWithContext(ctx context.Context, request *ListOpsTasksRequest) (response *ListOpsTasksResponse, err error) { + if request == nil { + request = NewListOpsTasksRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsTasks") + + if c.GetCredential() == nil { + return nil, errors.New("ListOpsTasks require credential") + } + + request.SetContext(ctx) + + response = NewListOpsTasksResponse() + err = c.Send(request, response) + return +} + +func NewListOpsWorkflowsRequest() (request *ListOpsWorkflowsRequest) { + request = &ListOpsWorkflowsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListOpsWorkflows") + + + return +} + +func NewListOpsWorkflowsResponse() (response *ListOpsWorkflowsResponse) { + response = &ListOpsWorkflowsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListOpsWorkflows +// 根据项目ID获取项目下工作流 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) ListOpsWorkflows(request *ListOpsWorkflowsRequest) (response *ListOpsWorkflowsResponse, err error) { + return c.ListOpsWorkflowsWithContext(context.Background(), request) +} + +// ListOpsWorkflows +// 根据项目ID获取项目下工作流 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) ListOpsWorkflowsWithContext(ctx context.Context, request *ListOpsWorkflowsRequest) (response *ListOpsWorkflowsResponse, err error) { + if request == nil { + request = NewListOpsWorkflowsRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsWorkflows") + + if c.GetCredential() == nil { + return nil, errors.New("ListOpsWorkflows require credential") + } + + request.SetContext(ctx) + + response = NewListOpsWorkflowsResponse() + err = c.Send(request, response) + return +} + +func NewListResourceFilesRequest() (request *ListResourceFilesRequest) { + request = &ListResourceFilesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListResourceFiles") + + + return +} + +func NewListResourceFilesResponse() (response *ListResourceFilesResponse) { + response = &ListResourceFilesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListResourceFiles +// 获取资源文件列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) ListResourceFiles(request *ListResourceFilesRequest) (response *ListResourceFilesResponse, err error) { + return c.ListResourceFilesWithContext(context.Background(), request) +} + +// ListResourceFiles +// 获取资源文件列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) ListResourceFilesWithContext(ctx context.Context, request *ListResourceFilesRequest) (response *ListResourceFilesResponse, err error) { + if request == nil { + request = NewListResourceFilesRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListResourceFiles") + + if c.GetCredential() == nil { + return nil, errors.New("ListResourceFiles require credential") + } + + request.SetContext(ctx) + + response = NewListResourceFilesResponse() + err = c.Send(request, response) + return +} + +func NewListResourceFoldersRequest() (request *ListResourceFoldersRequest) { + request = &ListResourceFoldersRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListResourceFolders") + + + return +} + +func NewListResourceFoldersResponse() (response *ListResourceFoldersResponse) { + response = &ListResourceFoldersResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListResourceFolders +// 查询资源文件文件夹列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) ListResourceFolders(request *ListResourceFoldersRequest) (response *ListResourceFoldersResponse, err error) { + return c.ListResourceFoldersWithContext(context.Background(), request) +} + +// ListResourceFolders +// 查询资源文件文件夹列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) ListResourceFoldersWithContext(ctx context.Context, request *ListResourceFoldersRequest) (response *ListResourceFoldersResponse, err error) { + if request == nil { + request = NewListResourceFoldersRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListResourceFolders") + + if c.GetCredential() == nil { + return nil, errors.New("ListResourceFolders require credential") + } + + request.SetContext(ctx) + + response = NewListResourceFoldersResponse() + err = c.Send(request, response) + return +} + +func NewListSQLFolderContentsRequest() (request *ListSQLFolderContentsRequest) { + request = &ListSQLFolderContentsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListSQLFolderContents") + + + return +} + +func NewListSQLFolderContentsResponse() (response *ListSQLFolderContentsResponse) { + response = &ListSQLFolderContentsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListSQLFolderContents +// 查询数据探索文件夹树,包括文件夹下的脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListSQLFolderContents(request *ListSQLFolderContentsRequest) (response *ListSQLFolderContentsResponse, err error) { + return c.ListSQLFolderContentsWithContext(context.Background(), request) +} + +// ListSQLFolderContents +// 查询数据探索文件夹树,包括文件夹下的脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListSQLFolderContentsWithContext(ctx context.Context, request *ListSQLFolderContentsRequest) (response *ListSQLFolderContentsResponse, err error) { + if request == nil { + request = NewListSQLFolderContentsRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListSQLFolderContents") + + if c.GetCredential() == nil { + return nil, errors.New("ListSQLFolderContents require credential") + } + + request.SetContext(ctx) + + response = NewListSQLFolderContentsResponse() + err = c.Send(request, response) + return +} + +func NewListSQLScriptRunsRequest() (request *ListSQLScriptRunsRequest) { + request = &ListSQLScriptRunsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListSQLScriptRuns") + + + return +} + +func NewListSQLScriptRunsResponse() (response *ListSQLScriptRunsResponse) { + response = &ListSQLScriptRunsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListSQLScriptRuns +// 查询SQL运行记录 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListSQLScriptRuns(request *ListSQLScriptRunsRequest) (response *ListSQLScriptRunsResponse, err error) { + return c.ListSQLScriptRunsWithContext(context.Background(), request) +} + +// ListSQLScriptRuns +// 查询SQL运行记录 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListSQLScriptRunsWithContext(ctx context.Context, request *ListSQLScriptRunsRequest) (response *ListSQLScriptRunsResponse, err error) { + if request == nil { + request = NewListSQLScriptRunsRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListSQLScriptRuns") + + if c.GetCredential() == nil { + return nil, errors.New("ListSQLScriptRuns require credential") + } + + request.SetContext(ctx) + + response = NewListSQLScriptRunsResponse() + err = c.Send(request, response) + return +} + +func NewListTaskInstanceExecutionsRequest() (request *ListTaskInstanceExecutionsRequest) { + request = &ListTaskInstanceExecutionsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListTaskInstanceExecutions") + + + return +} + +func NewListTaskInstanceExecutionsResponse() (response *ListTaskInstanceExecutionsResponse) { + response = &ListTaskInstanceExecutionsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListTaskInstanceExecutions +// 调度实例详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListTaskInstanceExecutions(request *ListTaskInstanceExecutionsRequest) (response *ListTaskInstanceExecutionsResponse, err error) { + return c.ListTaskInstanceExecutionsWithContext(context.Background(), request) +} + +// ListTaskInstanceExecutions +// 调度实例详情 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListTaskInstanceExecutionsWithContext(ctx context.Context, request *ListTaskInstanceExecutionsRequest) (response *ListTaskInstanceExecutionsResponse, err error) { + if request == nil { + request = NewListTaskInstanceExecutionsRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTaskInstanceExecutions") + + if c.GetCredential() == nil { + return nil, errors.New("ListTaskInstanceExecutions require credential") + } + + request.SetContext(ctx) + + response = NewListTaskInstanceExecutionsResponse() + err = c.Send(request, response) + return +} + +func NewListTaskInstancesRequest() (request *ListTaskInstancesRequest) { + request = &ListTaskInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListTaskInstances") + + + return +} + +func NewListTaskInstancesResponse() (response *ListTaskInstancesResponse) { + response = &ListTaskInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListTaskInstances +// 获取实例列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListTaskInstances(request *ListTaskInstancesRequest) (response *ListTaskInstancesResponse, err error) { + return c.ListTaskInstancesWithContext(context.Background(), request) +} + +// ListTaskInstances +// 获取实例列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListTaskInstancesWithContext(ctx context.Context, request *ListTaskInstancesRequest) (response *ListTaskInstancesResponse, err error) { + if request == nil { + request = NewListTaskInstancesRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTaskInstances") + + if c.GetCredential() == nil { + return nil, errors.New("ListTaskInstances require credential") + } + + request.SetContext(ctx) + + response = NewListTaskInstancesResponse() + err = c.Send(request, response) + return +} + +func NewListTaskVersionsRequest() (request *ListTaskVersionsRequest) { + request = &ListTaskVersionsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListTaskVersions") + + + return +} + +func NewListTaskVersionsResponse() (response *ListTaskVersionsResponse) { + response = &ListTaskVersionsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListTaskVersions +// 任务保存版本列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListTaskVersions(request *ListTaskVersionsRequest) (response *ListTaskVersionsResponse, err error) { + return c.ListTaskVersionsWithContext(context.Background(), request) +} + +// ListTaskVersions +// 任务保存版本列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListTaskVersionsWithContext(ctx context.Context, request *ListTaskVersionsRequest) (response *ListTaskVersionsResponse, err error) { + if request == nil { + request = NewListTaskVersionsRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTaskVersions") + + if c.GetCredential() == nil { + return nil, errors.New("ListTaskVersions require credential") + } + + request.SetContext(ctx) + + response = NewListTaskVersionsResponse() + err = c.Send(request, response) + return +} + +func NewListTasksRequest() (request *ListTasksRequest) { + request = &ListTasksRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListTasks") + + + return +} + +func NewListTasksResponse() (response *ListTasksResponse) { + response = &ListTasksResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListTasks +// 查询任务分页信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListTasks(request *ListTasksRequest) (response *ListTasksResponse, err error) { + return c.ListTasksWithContext(context.Background(), request) +} + +// ListTasks +// 查询任务分页信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListTasksWithContext(ctx context.Context, request *ListTasksRequest) (response *ListTasksResponse, err error) { + if request == nil { + request = NewListTasksRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTasks") + + if c.GetCredential() == nil { + return nil, errors.New("ListTasks require credential") + } + + request.SetContext(ctx) + + response = NewListTasksResponse() + err = c.Send(request, response) + return +} + +func NewListUpstreamOpsTasksRequest() (request *ListUpstreamOpsTasksRequest) { + request = &ListUpstreamOpsTasksRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListUpstreamOpsTasks") + + + return +} + +func NewListUpstreamOpsTasksResponse() (response *ListUpstreamOpsTasksResponse) { + response = &ListUpstreamOpsTasksResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListUpstreamOpsTasks +// 获取任务直接上游 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListUpstreamOpsTasks(request *ListUpstreamOpsTasksRequest) (response *ListUpstreamOpsTasksResponse, err error) { + return c.ListUpstreamOpsTasksWithContext(context.Background(), request) +} + +// ListUpstreamOpsTasks +// 获取任务直接上游 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListUpstreamOpsTasksWithContext(ctx context.Context, request *ListUpstreamOpsTasksRequest) (response *ListUpstreamOpsTasksResponse, err error) { + if request == nil { + request = NewListUpstreamOpsTasksRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListUpstreamOpsTasks") + + if c.GetCredential() == nil { + return nil, errors.New("ListUpstreamOpsTasks require credential") + } + + request.SetContext(ctx) + + response = NewListUpstreamOpsTasksResponse() + err = c.Send(request, response) + return +} + +func NewListUpstreamTaskInstancesRequest() (request *ListUpstreamTaskInstancesRequest) { + request = &ListUpstreamTaskInstancesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListUpstreamTaskInstances") + + + return +} + +func NewListUpstreamTaskInstancesResponse() (response *ListUpstreamTaskInstancesResponse) { + response = &ListUpstreamTaskInstancesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListUpstreamTaskInstances +// 获取实例直接上游 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListUpstreamTaskInstances(request *ListUpstreamTaskInstancesRequest) (response *ListUpstreamTaskInstancesResponse, err error) { + return c.ListUpstreamTaskInstancesWithContext(context.Background(), request) +} + +// ListUpstreamTaskInstances +// 获取实例直接上游 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListUpstreamTaskInstancesWithContext(ctx context.Context, request *ListUpstreamTaskInstancesRequest) (response *ListUpstreamTaskInstancesResponse, err error) { + if request == nil { + request = NewListUpstreamTaskInstancesRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListUpstreamTaskInstances") + + if c.GetCredential() == nil { + return nil, errors.New("ListUpstreamTaskInstances require credential") + } + + request.SetContext(ctx) + + response = NewListUpstreamTaskInstancesResponse() + err = c.Send(request, response) + return +} + +func NewListUpstreamTasksRequest() (request *ListUpstreamTasksRequest) { + request = &ListUpstreamTasksRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListUpstreamTasks") + + + return +} + +func NewListUpstreamTasksResponse() (response *ListUpstreamTasksResponse) { + response = &ListUpstreamTasksResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListUpstreamTasks +// 获取任务直接上游 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListUpstreamTasks(request *ListUpstreamTasksRequest) (response *ListUpstreamTasksResponse, err error) { + return c.ListUpstreamTasksWithContext(context.Background(), request) +} + +// ListUpstreamTasks +// 获取任务直接上游 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListUpstreamTasksWithContext(ctx context.Context, request *ListUpstreamTasksRequest) (response *ListUpstreamTasksResponse, err error) { + if request == nil { + request = NewListUpstreamTasksRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListUpstreamTasks") + + if c.GetCredential() == nil { + return nil, errors.New("ListUpstreamTasks require credential") + } + + request.SetContext(ctx) + + response = NewListUpstreamTasksResponse() + err = c.Send(request, response) + return +} + +func NewListWorkflowFoldersRequest() (request *ListWorkflowFoldersRequest) { + request = &ListWorkflowFoldersRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListWorkflowFolders") + + + return +} + +func NewListWorkflowFoldersResponse() (response *ListWorkflowFoldersResponse) { + response = &ListWorkflowFoldersResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListWorkflowFolders +// 查询文件夹列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) ListWorkflowFolders(request *ListWorkflowFoldersRequest) (response *ListWorkflowFoldersResponse, err error) { + return c.ListWorkflowFoldersWithContext(context.Background(), request) +} + +// ListWorkflowFolders +// 查询文件夹列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) ListWorkflowFoldersWithContext(ctx context.Context, request *ListWorkflowFoldersRequest) (response *ListWorkflowFoldersResponse, err error) { + if request == nil { + request = NewListWorkflowFoldersRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListWorkflowFolders") + + if c.GetCredential() == nil { + return nil, errors.New("ListWorkflowFolders require credential") + } + + request.SetContext(ctx) + + response = NewListWorkflowFoldersResponse() + err = c.Send(request, response) + return +} + +func NewListWorkflowsRequest() (request *ListWorkflowsRequest) { + request = &ListWorkflowsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListWorkflows") + + + return +} + +func NewListWorkflowsResponse() (response *ListWorkflowsResponse) { + response = &ListWorkflowsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListWorkflows +// 查询工作流列表 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListWorkflows(request *ListWorkflowsRequest) (response *ListWorkflowsResponse, err error) { + return c.ListWorkflowsWithContext(context.Background(), request) +} + +// ListWorkflows +// 查询工作流列表 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListWorkflowsWithContext(ctx context.Context, request *ListWorkflowsRequest) (response *ListWorkflowsResponse, err error) { + if request == nil { + request = NewListWorkflowsRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListWorkflows") + + if c.GetCredential() == nil { + return nil, errors.New("ListWorkflows require credential") + } + + request.SetContext(ctx) + + response = NewListWorkflowsResponse() + err = c.Send(request, response) + return +} + +func NewPauseOpsTasksAsyncRequest() (request *PauseOpsTasksAsyncRequest) { + request = &PauseOpsTasksAsyncRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "PauseOpsTasksAsync") + + + return +} + +func NewPauseOpsTasksAsyncResponse() (response *PauseOpsTasksAsyncResponse) { + response = &PauseOpsTasksAsyncResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// PauseOpsTasksAsync +// 异步批量暂停任务 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) PauseOpsTasksAsync(request *PauseOpsTasksAsyncRequest) (response *PauseOpsTasksAsyncResponse, err error) { + return c.PauseOpsTasksAsyncWithContext(context.Background(), request) +} + +// PauseOpsTasksAsync +// 异步批量暂停任务 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) PauseOpsTasksAsyncWithContext(ctx context.Context, request *PauseOpsTasksAsyncRequest) (response *PauseOpsTasksAsyncResponse, err error) { + if request == nil { + request = NewPauseOpsTasksAsyncRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "PauseOpsTasksAsync") + + if c.GetCredential() == nil { + return nil, errors.New("PauseOpsTasksAsync require credential") + } + + request.SetContext(ctx) + + response = NewPauseOpsTasksAsyncResponse() + err = c.Send(request, response) + return +} + +func NewRerunTaskInstancesAsyncRequest() (request *RerunTaskInstancesAsyncRequest) { + request = &RerunTaskInstancesAsyncRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "RerunTaskInstancesAsync") + + + return +} + +func NewRerunTaskInstancesAsyncResponse() (response *RerunTaskInstancesAsyncResponse) { + response = &RerunTaskInstancesAsyncResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// RerunTaskInstancesAsync +// 实例批量重跑-异步 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) RerunTaskInstancesAsync(request *RerunTaskInstancesAsyncRequest) (response *RerunTaskInstancesAsyncResponse, err error) { + return c.RerunTaskInstancesAsyncWithContext(context.Background(), request) +} + +// RerunTaskInstancesAsync +// 实例批量重跑-异步 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) RerunTaskInstancesAsyncWithContext(ctx context.Context, request *RerunTaskInstancesAsyncRequest) (response *RerunTaskInstancesAsyncResponse, err error) { + if request == nil { + request = NewRerunTaskInstancesAsyncRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "RerunTaskInstancesAsync") + + if c.GetCredential() == nil { + return nil, errors.New("RerunTaskInstancesAsync require credential") + } + + request.SetContext(ctx) + + response = NewRerunTaskInstancesAsyncResponse() + err = c.Send(request, response) + return +} + +func NewRunSQLScriptRequest() (request *RunSQLScriptRequest) { + request = &RunSQLScriptRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "RunSQLScript") + + + return +} + +func NewRunSQLScriptResponse() (response *RunSQLScriptResponse) { + response = &RunSQLScriptResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// RunSQLScript +// 运行SQL脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) RunSQLScript(request *RunSQLScriptRequest) (response *RunSQLScriptResponse, err error) { + return c.RunSQLScriptWithContext(context.Background(), request) +} + +// RunSQLScript +// 运行SQL脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) RunSQLScriptWithContext(ctx context.Context, request *RunSQLScriptRequest) (response *RunSQLScriptResponse, err error) { + if request == nil { + request = NewRunSQLScriptRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "RunSQLScript") + + if c.GetCredential() == nil { + return nil, errors.New("RunSQLScript require credential") + } + + request.SetContext(ctx) + + response = NewRunSQLScriptResponse() + err = c.Send(request, response) + return +} + +func NewSetSuccessTaskInstancesAsyncRequest() (request *SetSuccessTaskInstancesAsyncRequest) { + request = &SetSuccessTaskInstancesAsyncRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "SetSuccessTaskInstancesAsync") + + + return +} + +func NewSetSuccessTaskInstancesAsyncResponse() (response *SetSuccessTaskInstancesAsyncResponse) { + response = &SetSuccessTaskInstancesAsyncResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// SetSuccessTaskInstancesAsync +// 实例批量置成功-异步 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) SetSuccessTaskInstancesAsync(request *SetSuccessTaskInstancesAsyncRequest) (response *SetSuccessTaskInstancesAsyncResponse, err error) { + return c.SetSuccessTaskInstancesAsyncWithContext(context.Background(), request) +} + +// SetSuccessTaskInstancesAsync +// 实例批量置成功-异步 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) SetSuccessTaskInstancesAsyncWithContext(ctx context.Context, request *SetSuccessTaskInstancesAsyncRequest) (response *SetSuccessTaskInstancesAsyncResponse, err error) { + if request == nil { + request = NewSetSuccessTaskInstancesAsyncRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "SetSuccessTaskInstancesAsync") + + if c.GetCredential() == nil { + return nil, errors.New("SetSuccessTaskInstancesAsync require credential") + } + + request.SetContext(ctx) + + response = NewSetSuccessTaskInstancesAsyncResponse() + err = c.Send(request, response) + return +} + +func NewStopOpsTasksAsyncRequest() (request *StopOpsTasksAsyncRequest) { + request = &StopOpsTasksAsyncRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "StopOpsTasksAsync") + + + return +} + +func NewStopOpsTasksAsyncResponse() (response *StopOpsTasksAsyncResponse) { + response = &StopOpsTasksAsyncResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// StopOpsTasksAsync +// 异步批量下线任务 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) StopOpsTasksAsync(request *StopOpsTasksAsyncRequest) (response *StopOpsTasksAsyncResponse, err error) { + return c.StopOpsTasksAsyncWithContext(context.Background(), request) +} + +// StopOpsTasksAsync +// 异步批量下线任务 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) StopOpsTasksAsyncWithContext(ctx context.Context, request *StopOpsTasksAsyncRequest) (response *StopOpsTasksAsyncResponse, err error) { + if request == nil { + request = NewStopOpsTasksAsyncRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "StopOpsTasksAsync") + + if c.GetCredential() == nil { + return nil, errors.New("StopOpsTasksAsync require credential") + } + + request.SetContext(ctx) + + response = NewStopOpsTasksAsyncResponse() + err = c.Send(request, response) + return +} + +func NewStopSQLScriptRunRequest() (request *StopSQLScriptRunRequest) { + request = &StopSQLScriptRunRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "StopSQLScriptRun") + + + return +} + +func NewStopSQLScriptRunResponse() (response *StopSQLScriptRunResponse) { + response = &StopSQLScriptRunResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// StopSQLScriptRun +// 停止运行SQL脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) StopSQLScriptRun(request *StopSQLScriptRunRequest) (response *StopSQLScriptRunResponse, err error) { + return c.StopSQLScriptRunWithContext(context.Background(), request) +} + +// StopSQLScriptRun +// 停止运行SQL脚本 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) StopSQLScriptRunWithContext(ctx context.Context, request *StopSQLScriptRunRequest) (response *StopSQLScriptRunResponse, err error) { + if request == nil { + request = NewStopSQLScriptRunRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "StopSQLScriptRun") + + if c.GetCredential() == nil { + return nil, errors.New("StopSQLScriptRun require credential") + } + + request.SetContext(ctx) + + response = NewStopSQLScriptRunResponse() + err = c.Send(request, response) + return +} + +func NewSubmitTaskRequest() (request *SubmitTaskRequest) { + request = &SubmitTaskRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "SubmitTask") + + + return +} + +func NewSubmitTaskResponse() (response *SubmitTaskResponse) { + response = &SubmitTaskResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// SubmitTask +// 提交任务。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) SubmitTask(request *SubmitTaskRequest) (response *SubmitTaskResponse, err error) { + return c.SubmitTaskWithContext(context.Background(), request) +} + +// SubmitTask +// 提交任务。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) SubmitTaskWithContext(ctx context.Context, request *SubmitTaskRequest) (response *SubmitTaskResponse, err error) { + if request == nil { + request = NewSubmitTaskRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "SubmitTask") + + if c.GetCredential() == nil { + return nil, errors.New("SubmitTask require credential") + } + + request.SetContext(ctx) + + response = NewSubmitTaskResponse() + err = c.Send(request, response) + return +} + +func NewUpdateCodeFileRequest() (request *UpdateCodeFileRequest) { + request = &UpdateCodeFileRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateCodeFile") + + + return +} + +func NewUpdateCodeFileResponse() (response *UpdateCodeFileResponse) { + response = &UpdateCodeFileResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateCodeFile +// 更新代码文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateCodeFile(request *UpdateCodeFileRequest) (response *UpdateCodeFileResponse, err error) { + return c.UpdateCodeFileWithContext(context.Background(), request) +} + +// UpdateCodeFile +// 更新代码文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateCodeFileWithContext(ctx context.Context, request *UpdateCodeFileRequest) (response *UpdateCodeFileResponse, err error) { + if request == nil { + request = NewUpdateCodeFileRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateCodeFile") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateCodeFile require credential") + } + + request.SetContext(ctx) + + response = NewUpdateCodeFileResponse() + err = c.Send(request, response) + return +} + +func NewUpdateCodeFolderRequest() (request *UpdateCodeFolderRequest) { + request = &UpdateCodeFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateCodeFolder") + + + return +} + +func NewUpdateCodeFolderResponse() (response *UpdateCodeFolderResponse) { + response = &UpdateCodeFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateCodeFolder +// 重命名代码文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateCodeFolder(request *UpdateCodeFolderRequest) (response *UpdateCodeFolderResponse, err error) { + return c.UpdateCodeFolderWithContext(context.Background(), request) +} + +// UpdateCodeFolder +// 重命名代码文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateCodeFolderWithContext(ctx context.Context, request *UpdateCodeFolderRequest) (response *UpdateCodeFolderResponse, err error) { + if request == nil { + request = NewUpdateCodeFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateCodeFolder") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateCodeFolder require credential") + } + + request.SetContext(ctx) + + response = NewUpdateCodeFolderResponse() + err = c.Send(request, response) + return +} + +func NewUpdateOpsAlarmRuleRequest() (request *UpdateOpsAlarmRuleRequest) { + request = &UpdateOpsAlarmRuleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateOpsAlarmRule") + + + return +} + +func NewUpdateOpsAlarmRuleResponse() (response *UpdateOpsAlarmRuleResponse) { + response = &UpdateOpsAlarmRuleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateOpsAlarmRule +// 修改告警规则 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" +// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" +// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" +func (c *Client) UpdateOpsAlarmRule(request *UpdateOpsAlarmRuleRequest) (response *UpdateOpsAlarmRuleResponse, err error) { + return c.UpdateOpsAlarmRuleWithContext(context.Background(), request) +} + +// UpdateOpsAlarmRule +// 修改告警规则 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" +// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" +// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" +func (c *Client) UpdateOpsAlarmRuleWithContext(ctx context.Context, request *UpdateOpsAlarmRuleRequest) (response *UpdateOpsAlarmRuleResponse, err error) { + if request == nil { + request = NewUpdateOpsAlarmRuleRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateOpsAlarmRule") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateOpsAlarmRule require credential") + } + + request.SetContext(ctx) + + response = NewUpdateOpsAlarmRuleResponse() + err = c.Send(request, response) + return +} + +func NewUpdateOpsTasksOwnerRequest() (request *UpdateOpsTasksOwnerRequest) { + request = &UpdateOpsTasksOwnerRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateOpsTasksOwner") + + + return +} + +func NewUpdateOpsTasksOwnerResponse() (response *UpdateOpsTasksOwnerResponse) { + response = &UpdateOpsTasksOwnerResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateOpsTasksOwner +// 修改任务负责人 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" +// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" +// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" +func (c *Client) UpdateOpsTasksOwner(request *UpdateOpsTasksOwnerRequest) (response *UpdateOpsTasksOwnerResponse, err error) { + return c.UpdateOpsTasksOwnerWithContext(context.Background(), request) +} + +// UpdateOpsTasksOwner +// 修改任务负责人 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" +// INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" +// INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" +func (c *Client) UpdateOpsTasksOwnerWithContext(ctx context.Context, request *UpdateOpsTasksOwnerRequest) (response *UpdateOpsTasksOwnerResponse, err error) { + if request == nil { + request = NewUpdateOpsTasksOwnerRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateOpsTasksOwner") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateOpsTasksOwner require credential") + } + + request.SetContext(ctx) + + response = NewUpdateOpsTasksOwnerResponse() + err = c.Send(request, response) + return +} + +func NewUpdateResourceFileRequest() (request *UpdateResourceFileRequest) { + request = &UpdateResourceFileRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateResourceFile") + + + return +} + +func NewUpdateResourceFileResponse() (response *UpdateResourceFileResponse) { + response = &UpdateResourceFileResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateResourceFile +// 更新资源文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateResourceFile(request *UpdateResourceFileRequest) (response *UpdateResourceFileResponse, err error) { + return c.UpdateResourceFileWithContext(context.Background(), request) +} + +// UpdateResourceFile +// 更新资源文件 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateResourceFileWithContext(ctx context.Context, request *UpdateResourceFileRequest) (response *UpdateResourceFileResponse, err error) { + if request == nil { + request = NewUpdateResourceFileRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateResourceFile") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateResourceFile require credential") + } + + request.SetContext(ctx) + + response = NewUpdateResourceFileResponse() + err = c.Send(request, response) + return +} + +func NewUpdateResourceFolderRequest() (request *UpdateResourceFolderRequest) { + request = &UpdateResourceFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateResourceFolder") + + + return +} + +func NewUpdateResourceFolderResponse() (response *UpdateResourceFolderResponse) { + response = &UpdateResourceFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateResourceFolder +// 创建资源文件文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateResourceFolder(request *UpdateResourceFolderRequest) (response *UpdateResourceFolderResponse, err error) { + return c.UpdateResourceFolderWithContext(context.Background(), request) +} + +// UpdateResourceFolder +// 创建资源文件文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateResourceFolderWithContext(ctx context.Context, request *UpdateResourceFolderRequest) (response *UpdateResourceFolderResponse, err error) { + if request == nil { + request = NewUpdateResourceFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateResourceFolder") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateResourceFolder require credential") + } + + request.SetContext(ctx) + + response = NewUpdateResourceFolderResponse() + err = c.Send(request, response) + return +} + +func NewUpdateSQLFolderRequest() (request *UpdateSQLFolderRequest) { + request = &UpdateSQLFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateSQLFolder") + + + return +} + +func NewUpdateSQLFolderResponse() (response *UpdateSQLFolderResponse) { + response = &UpdateSQLFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateSQLFolder +// 重命名SQL文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateSQLFolder(request *UpdateSQLFolderRequest) (response *UpdateSQLFolderResponse, err error) { + return c.UpdateSQLFolderWithContext(context.Background(), request) +} + +// UpdateSQLFolder +// 重命名SQL文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateSQLFolderWithContext(ctx context.Context, request *UpdateSQLFolderRequest) (response *UpdateSQLFolderResponse, err error) { + if request == nil { + request = NewUpdateSQLFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateSQLFolder") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateSQLFolder require credential") + } + + request.SetContext(ctx) + + response = NewUpdateSQLFolderResponse() + err = c.Send(request, response) + return +} + +func NewUpdateSQLScriptRequest() (request *UpdateSQLScriptRequest) { + request = &UpdateSQLScriptRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateSQLScript") + + + return +} + +func NewUpdateSQLScriptResponse() (response *UpdateSQLScriptResponse) { + response = &UpdateSQLScriptResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateSQLScript +// 保存探索脚本内容 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateSQLScript(request *UpdateSQLScriptRequest) (response *UpdateSQLScriptResponse, err error) { + return c.UpdateSQLScriptWithContext(context.Background(), request) +} + +// UpdateSQLScript +// 保存探索脚本内容 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateSQLScriptWithContext(ctx context.Context, request *UpdateSQLScriptRequest) (response *UpdateSQLScriptResponse, err error) { + if request == nil { + request = NewUpdateSQLScriptRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateSQLScript") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateSQLScript require credential") + } + + request.SetContext(ctx) + + response = NewUpdateSQLScriptResponse() + err = c.Send(request, response) + return +} + +func NewUpdateTaskRequest() (request *UpdateTaskRequest) { + request = &UpdateTaskRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateTask") + + + return +} + +func NewUpdateTaskResponse() (response *UpdateTaskResponse) { + response = &UpdateTaskResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateTask +// 创建任务接口 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateTask(request *UpdateTaskRequest) (response *UpdateTaskResponse, err error) { + return c.UpdateTaskWithContext(context.Background(), request) +} + +// UpdateTask +// 创建任务接口 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateTaskWithContext(ctx context.Context, request *UpdateTaskRequest) (response *UpdateTaskResponse, err error) { + if request == nil { + request = NewUpdateTaskRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateTask") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateTask require credential") + } + + request.SetContext(ctx) + + response = NewUpdateTaskResponse() + err = c.Send(request, response) + return +} + +func NewUpdateWorkflowRequest() (request *UpdateWorkflowRequest) { + request = &UpdateWorkflowRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateWorkflow") + + + return +} + +func NewUpdateWorkflowResponse() (response *UpdateWorkflowResponse) { + response = &UpdateWorkflowResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateWorkflow +// 更新工作流(包括工作流基本信息与工作流参数) +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) UpdateWorkflow(request *UpdateWorkflowRequest) (response *UpdateWorkflowResponse, err error) { + return c.UpdateWorkflowWithContext(context.Background(), request) +} + +// UpdateWorkflow +// 更新工作流(包括工作流基本信息与工作流参数) +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) UpdateWorkflowWithContext(ctx context.Context, request *UpdateWorkflowRequest) (response *UpdateWorkflowResponse, err error) { + if request == nil { + request = NewUpdateWorkflowRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateWorkflow") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateWorkflow require credential") + } + + request.SetContext(ctx) + + response = NewUpdateWorkflowResponse() + err = c.Send(request, response) + return +} + +func NewUpdateWorkflowFolderRequest() (request *UpdateWorkflowFolderRequest) { + request = &UpdateWorkflowFolderRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateWorkflowFolder") + + + return +} + +func NewUpdateWorkflowFolderResponse() (response *UpdateWorkflowFolderResponse) { + response = &UpdateWorkflowFolderResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateWorkflowFolder +// 创建文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateWorkflowFolder(request *UpdateWorkflowFolderRequest) (response *UpdateWorkflowFolderResponse, err error) { + return c.UpdateWorkflowFolderWithContext(context.Background(), request) +} + +// UpdateWorkflowFolder +// 创建文件夹 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// LIMITEXCEEDED = "LimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED = "OperationDenied" +// RESOURCEINUSE = "ResourceInUse" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateWorkflowFolderWithContext(ctx context.Context, request *UpdateWorkflowFolderRequest) (response *UpdateWorkflowFolderResponse, err error) { + if request == nil { + request = NewUpdateWorkflowFolderRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateWorkflowFolder") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateWorkflowFolder require credential") + } + + request.SetContext(ctx) + + response = NewUpdateWorkflowFolderResponse() + err = c.Send(request, response) + return +} diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/errors.go new file mode 100644 index 0000000000..5e38c12c5e --- /dev/null +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/errors.go @@ -0,0 +1,61 @@ +// Copyright (c) 2017-2025 Tencent. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package v20250806 + +const ( + // 此产品的特有错误码 + + // CAM签名/鉴权错误。 + AUTHFAILURE = "AuthFailure" + + // 操作失败。 + FAILEDOPERATION = "FailedOperation" + + // 内部错误。 + INTERNALERROR = "InternalError" + + // 参数错误。 + INVALIDPARAMETER = "InvalidParameter" + + // ClientIp未被授权。 + INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" + + // Missing Servlet Request Parameter + INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" + + // 参数取值错误。 + INVALIDPARAMETERVALUE = "InvalidParameterValue" + + // 告警规则名称重复 + INVALIDPARAMETERVALUE_RULENAMEREPEATED = "InvalidParameterValue.RuleNameRepeated" + + // Param Validation Error + INVALIDPARAMETERVALUE_VALIDATIONERROR = "InvalidParameterValue.ValidationError" + + // 超过配额限制。 + LIMITEXCEEDED = "LimitExceeded" + + // 缺少参数错误。 + MISSINGPARAMETER = "MissingParameter" + + // 操作被拒绝。 + OPERATIONDENIED = "OperationDenied" + + // 资源被占用。 + RESOURCEINUSE = "ResourceInUse" + + // 资源不存在。 + RESOURCENOTFOUND = "ResourceNotFound" +) diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/models.go new file mode 100644 index 0000000000..f85e92b853 --- /dev/null +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806/models.go @@ -0,0 +1,9928 @@ +// Copyright (c) 2017-2025 Tencent. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package v20250806 + +import ( + tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" + tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" + "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json" +) + +type AlarmGroup struct { + // 告警升级人ID列表 + // 若告警接收人或上级升级人未在告警间隔时间内确认告警,则会发送告警给下一级升级人。 + AlarmEscalationRecipientIds []*string `json:"AlarmEscalationRecipientIds,omitnil,omitempty" name:"AlarmEscalationRecipientIds"` + + // 告警升级间隔 + AlarmEscalationInterval *int64 `json:"AlarmEscalationInterval,omitnil,omitempty" name:"AlarmEscalationInterval"` + + // 告警通知疲劳配置 + NotificationFatigue *NotificationFatigue `json:"NotificationFatigue,omitnil,omitempty" name:"NotificationFatigue"` + + // 告警渠道 1.邮件,2.短信,3.微信,4.语音,5.企业微信,6.Http,7.企业微信群 8 飞书群 9 钉钉群 10 Slack群 11 Teams群(默认1.邮件) 7.企业微信群 8 飞书群 9 钉钉群 10 Slack群 11 Teams群 只能选择一个渠道 + AlarmWays []*string `json:"AlarmWays,omitnil,omitempty" name:"AlarmWays"` + + // 企业微信群/飞书群/钉钉群 /Slack群/Teams群的webhook地址列表 + WebHooks []*AlarmWayWebHook `json:"WebHooks,omitnil,omitempty" name:"WebHooks"` + + // 告警接收人类型:1.指定人员,2.任务责任人,3.值班表(默认1.指定人员) + AlarmRecipientType *int64 `json:"AlarmRecipientType,omitnil,omitempty" name:"AlarmRecipientType"` + + // 根据AlarmRecipientType的类型该列表具有不同的业务id 1(指定人员): 告警接收人id列表 2(任务责任人):无需配置 3(值班表):值班表id列表 + AlarmRecipientIds []*string `json:"AlarmRecipientIds,omitnil,omitempty" name:"AlarmRecipientIds"` +} + +type AlarmMessage struct { + // 告警消息Id + AlarmMessageId *uint64 `json:"AlarmMessageId,omitnil,omitempty" name:"AlarmMessageId"` + + // 告警时间,同一条告警可能发送多次,只显示最新的告警时间 + AlarmTime *string `json:"AlarmTime,omitnil,omitempty" name:"AlarmTime"` + + // 任务名称 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务的实例数据时间 + CurRunDate *string `json:"CurRunDate,omitnil,omitempty" name:"CurRunDate"` + + // 告警原因 + AlarmReason *string `json:"AlarmReason,omitnil,omitempty" name:"AlarmReason"` + + // 告警级别,1.普通, 2.重要,3.紧急 + AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 告警规则Id + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` + + // 告警渠道 1.邮件,2.短信,3.微信,4.语音,5.企业微信,6.Http,7.企业微信群, 8.飞书群,9.钉钉群,10.Slack群,11.Teams群(默认1.邮件),7.企业微信群,8.飞书群,9.钉钉群,10.Slack群,11.Teams群 + AlarmWays []*string `json:"AlarmWays,omitnil,omitempty" name:"AlarmWays"` + + // 告警接收人 + AlarmRecipients []*string `json:"AlarmRecipients,omitnil,omitempty" name:"AlarmRecipients"` +} + +type AlarmQuietInterval struct { + // ISO标准,1表示周一,7表示周日。 + DaysOfWeek []*uint64 `json:"DaysOfWeek,omitnil,omitempty" name:"DaysOfWeek"` + + // 开始时间,精度时分秒,格式 HH:mm:ss + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 结束时间,精度时分秒,格式 HH:mm:ss + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` +} + +type AlarmRuleData struct { + // 告警规则id + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` + + // 告警规则名称 + AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` + + // 告警规则描述 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 监控对象类型, + // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) + // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 + MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` + + // 根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 + MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` + + // 告警规则监控类型 + // failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; + // 项目波动告警 + // projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; + // projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; + // + // 离线集成任务对账告警: + // reconciliationFailure: 离线对账任务失败告警 + // reconciliationOvertime: 离线对账任务运行超时告警 + // reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 + AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` + + // 告警规则是否启用 + // 0-- 禁用 1--启用 + Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` + + // 告警规则配置信息 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 + AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` + + // 告警级别 1.普通、2.重要、3.紧急 + AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 告警规则创建人uid + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // bundle 客户端绑定的告警规则: 为空是正常的告警规则,不为空则是对应bundle客户端绑定的规则 + // 注意:此字段可能返回 null,表示取不到有效值。 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // bundleId不为空 则表示绑定的bundle客户端名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` + + // 告警接收人配置列表 + AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` +} + +type AlarmRuleDetail struct { + // 失败触发时机  + // + // 1 – 首次失败触发 + // 2 --所有重试完成触发 (默认) + // 注意:此字段可能返回 null,表示取不到有效值。 + Trigger *int64 `json:"Trigger,omitnil,omitempty" name:"Trigger"` + + // 补录重跑触发时机 + // + // 1 –  首次失败触发 + // 2 – 所有重试完成触发 + // 注意:此字段可能返回 null,表示取不到有效值。 + DataBackfillOrRerunTrigger *int64 `json:"DataBackfillOrRerunTrigger,omitnil,omitempty" name:"DataBackfillOrRerunTrigger"` + + // 周期实例超时配置明细 + // 注意:此字段可能返回 null,表示取不到有效值。 + TimeOutExtInfo []*TimeOutStrategyInfo `json:"TimeOutExtInfo,omitnil,omitempty" name:"TimeOutExtInfo"` + + // 重跑补录实例超时配置明细 + // 注意:此字段可能返回 null,表示取不到有效值。 + DataBackfillOrRerunTimeOutExtInfo []*TimeOutStrategyInfo `json:"DataBackfillOrRerunTimeOutExtInfo,omitnil,omitempty" name:"DataBackfillOrRerunTimeOutExtInfo"` + + // 项目波动告警配置明细 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectInstanceStatisticsAlarmInfoList []*ProjectInstanceStatisticsAlarmInfo `json:"ProjectInstanceStatisticsAlarmInfoList,omitnil,omitempty" name:"ProjectInstanceStatisticsAlarmInfoList"` + + // 离线集成对账告警配置信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + ReconciliationExtInfo []*ReconciliationStrategyInfo `json:"ReconciliationExtInfo,omitnil,omitempty" name:"ReconciliationExtInfo"` +} + +type AlarmWayWebHook struct { + // 告警渠道值 + // 7.企业微信群,8 飞书群 9 钉钉群 10 Slack群 11 Teams群 + AlarmWay *string `json:"AlarmWay,omitnil,omitempty" name:"AlarmWay"` + + // 告警群的webhook地址列表 + WebHooks []*string `json:"WebHooks,omitnil,omitempty" name:"WebHooks"` +} + +type BackfillInstance struct { + // 任务名称 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 实例数据时间 + CurRunDate *string `json:"CurRunDate,omitnil,omitempty" name:"CurRunDate"` + + // 执行状态 + State *string `json:"State,omitnil,omitempty" name:"State"` + + // 开始时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 结束时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 执行时长 + // 注意:此字段可能返回 null,表示取不到有效值。 + CostTime *string `json:"CostTime,omitnil,omitempty" name:"CostTime"` +} + +type BackfillInstanceCollection struct { + // 分页页码 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 总页数 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 记录总数 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 补录实例列表 + Items []*BackfillInstance `json:"Items,omitnil,omitempty" name:"Items"` +} + +type ChildDependencyConfigPage struct { + // 结果总数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页数据 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*OpsTaskDepend `json:"Items,omitnil,omitempty" name:"Items"` +} + +type CodeFile struct { + // 脚本ID + // 注意:此字段可能返回 null,表示取不到有效值。 + CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` + + // 脚本名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + CodeFileName *string `json:"CodeFileName,omitnil,omitempty" name:"CodeFileName"` + + // 脚本所有者 uin + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 脚本配置 + // 注意:此字段可能返回 null,表示取不到有效值。 + CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` + + // 脚本内容 + // 注意:此字段可能返回 null,表示取不到有效值。 + CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` + + // 最近一次操作人 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` + + // 项目ID + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 更新时间 yyyy-MM-dd hh:mm:ss + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // 创建时间 yyyy-MM-dd hh:mm:ss + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 权限范围:SHARED, PRIVATE + // 注意:此字段可能返回 null,表示取不到有效值。 + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` + + // 节点全路径,/aaa/bbb/ccc.ipynb,由各个节点的名称组成 + // 注意:此字段可能返回 null,表示取不到有效值。 + Path *string `json:"Path,omitnil,omitempty" name:"Path"` +} + +type CodeFileConfig struct { + // 高级运行参数,变量替换,map-json String,String + // 注意:此字段可能返回 null,表示取不到有效值。 + Params *string `json:"Params,omitnil,omitempty" name:"Params"` + + // notebook kernel session信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + NotebookSessionInfo *NotebookSessionInfo `json:"NotebookSessionInfo,omitnil,omitempty" name:"NotebookSessionInfo"` +} + +type CodeFolderNode struct { + // 唯一标识 + Id *string `json:"Id,omitnil,omitempty" name:"Id"` + + // 名称 + Title *string `json:"Title,omitnil,omitempty" name:"Title"` + + // 类型 folder,script + Type *string `json:"Type,omitnil,omitempty" name:"Type"` + + // 是否叶子节点 + IsLeaf *bool `json:"IsLeaf,omitnil,omitempty" name:"IsLeaf"` + + // 业务参数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Params *string `json:"Params,omitnil,omitempty" name:"Params"` + + // 权限范围: SHARED, PRIVATE + // 注意:此字段可能返回 null,表示取不到有效值。 + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` + + // 节点路径 + Path *string `json:"Path,omitnil,omitempty" name:"Path"` + + // 目录/文件责任人uin + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 创建人 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 当前用户对节点拥有的权限 + // 注意:此字段可能返回 null,表示取不到有效值。 + NodePermission *string `json:"NodePermission,omitnil,omitempty" name:"NodePermission"` + + // 子节点列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Children []*CodeFolderNode `json:"Children,omitnil,omitempty" name:"Children"` +} + +type CodeStudioFileActionResult struct { + // 成功true,失败false + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` + + // 文件夹ID + // 注意:此字段可能返回 null,表示取不到有效值。 + CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` +} + +type CodeStudioFolderActionResult struct { + // 成功true,失败false + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` + + // 文件夹ID + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +type CodeStudioFolderResult struct { + // 文件夹ID + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +type CreateAlarmRuleData struct { + // 告警规则唯一id + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` +} + +// Predefined struct for user +type CreateCodeFileRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 代码文件名称 + CodeFileName *string `json:"CodeFileName,omitnil,omitempty" name:"CodeFileName"` + + // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 代码文件配置 + CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` + + // 代码文件内容 + CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` +} + +type CreateCodeFileRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 代码文件名称 + CodeFileName *string `json:"CodeFileName,omitnil,omitempty" name:"CodeFileName"` + + // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 代码文件配置 + CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` + + // 代码文件内容 + CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` +} + +func (r *CreateCodeFileRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateCodeFileRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "CodeFileName") + delete(f, "ParentFolderPath") + delete(f, "CodeFileConfig") + delete(f, "CodeFileContent") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateCodeFileRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateCodeFileResponseParams struct { + // 结果 + Data *CodeFile `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateCodeFileResponse struct { + *tchttp.BaseResponse + Response *CreateCodeFileResponseParams `json:"Response"` +} + +func (r *CreateCodeFileResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateCodeFileResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateCodeFolderRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` +} + +type CreateCodeFolderRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` +} + +func (r *CreateCodeFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateCodeFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "FolderName") + delete(f, "ParentFolderPath") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateCodeFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateCodeFolderResponseParams struct { + // 成功true,失败false + Data *CodeStudioFolderResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateCodeFolderResponse struct { + *tchttp.BaseResponse + Response *CreateCodeFolderResponseParams `json:"Response"` +} + +func (r *CreateCodeFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateCodeFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateDataBackfillPlanRequestParams struct { + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 补录任务集合 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 补录任务的数据时间配置 + DataBackfillRangeList []*DataBackfillRange `json:"DataBackfillRangeList,omitnil,omitempty" name:"DataBackfillRangeList"` + + // 时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // 数据补录计划名称,不填则由系统随机生成一串字符 + DataBackfillPlanName *string `json:"DataBackfillPlanName,omitnil,omitempty" name:"DataBackfillPlanName"` + + // 检查父任务类型,取值范围:- NONE-全部不检查- ALL-检查全部上游父任务- MAKE_SCOPE-只在(当前补录计划)选中任务中检查,默认NONE不检查 + CheckParentType *string `json:"CheckParentType,omitnil,omitempty" name:"CheckParentType"` + + // 补录是否忽略事件依赖,默认true + SkipEventListening *bool `json:"SkipEventListening,omitnil,omitempty" name:"SkipEventListening"` + + // 自定义的工作流自依赖,yes或者no;如果不配置,则使用工作流原有自依赖 + RedefineSelfWorkflowDependency *string `json:"RedefineSelfWorkflowDependency,omitnil,omitempty" name:"RedefineSelfWorkflowDependency"` + + // 自定义实例运行并发度, 如果不配置,则使用任务原有自依赖 + RedefineParallelNum *uint64 `json:"RedefineParallelNum,omitnil,omitempty" name:"RedefineParallelNum"` + + // 调度资源组id,为空则表示使用任务原有调度执行资源组 + SchedulerResourceGroupId *string `json:"SchedulerResourceGroupId,omitnil,omitempty" name:"SchedulerResourceGroupId"` + + // 集成任务资源组id,为空则表示使用任务原有调度执行资源组 + IntegrationResourceGroupId *string `json:"IntegrationResourceGroupId,omitnil,omitempty" name:"IntegrationResourceGroupId"` + + // 自定义参数,可以重新指定任务的参数,方便补录实例执行新的逻辑 + RedefineParamList []*KVPair `json:"RedefineParamList,omitnil,omitempty" name:"RedefineParamList"` + + // 补录是实例数据时间顺序,生效必须满足2个条件: + // 1. 必须同周期任务 + // 2. 优先按依赖关系执行,无依赖关系影响的情况下按配置执行顺序执行 + // + // 可选值 + // - NORMAL: 不设置 + // - ORDER: 顺序 + // - REVERSE: 逆序 + // 不设置默认为NORMAL + DataTimeOrder *string `json:"DataTimeOrder,omitnil,omitempty" name:"DataTimeOrder"` + + // 补录实例重新生成周期,如果设置会重新指定补录任务实例的生成周期,目前只会将天实例转换成每月1号生成的实例 + // * MONTH_CYCLE: 月 + RedefineCycleType *string `json:"RedefineCycleType,omitnil,omitempty" name:"RedefineCycleType"` +} + +type CreateDataBackfillPlanRequest struct { + *tchttp.BaseRequest + + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 补录任务集合 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 补录任务的数据时间配置 + DataBackfillRangeList []*DataBackfillRange `json:"DataBackfillRangeList,omitnil,omitempty" name:"DataBackfillRangeList"` + + // 时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // 数据补录计划名称,不填则由系统随机生成一串字符 + DataBackfillPlanName *string `json:"DataBackfillPlanName,omitnil,omitempty" name:"DataBackfillPlanName"` + + // 检查父任务类型,取值范围:- NONE-全部不检查- ALL-检查全部上游父任务- MAKE_SCOPE-只在(当前补录计划)选中任务中检查,默认NONE不检查 + CheckParentType *string `json:"CheckParentType,omitnil,omitempty" name:"CheckParentType"` + + // 补录是否忽略事件依赖,默认true + SkipEventListening *bool `json:"SkipEventListening,omitnil,omitempty" name:"SkipEventListening"` + + // 自定义的工作流自依赖,yes或者no;如果不配置,则使用工作流原有自依赖 + RedefineSelfWorkflowDependency *string `json:"RedefineSelfWorkflowDependency,omitnil,omitempty" name:"RedefineSelfWorkflowDependency"` + + // 自定义实例运行并发度, 如果不配置,则使用任务原有自依赖 + RedefineParallelNum *uint64 `json:"RedefineParallelNum,omitnil,omitempty" name:"RedefineParallelNum"` + + // 调度资源组id,为空则表示使用任务原有调度执行资源组 + SchedulerResourceGroupId *string `json:"SchedulerResourceGroupId,omitnil,omitempty" name:"SchedulerResourceGroupId"` + + // 集成任务资源组id,为空则表示使用任务原有调度执行资源组 + IntegrationResourceGroupId *string `json:"IntegrationResourceGroupId,omitnil,omitempty" name:"IntegrationResourceGroupId"` + + // 自定义参数,可以重新指定任务的参数,方便补录实例执行新的逻辑 + RedefineParamList []*KVPair `json:"RedefineParamList,omitnil,omitempty" name:"RedefineParamList"` + + // 补录是实例数据时间顺序,生效必须满足2个条件: + // 1. 必须同周期任务 + // 2. 优先按依赖关系执行,无依赖关系影响的情况下按配置执行顺序执行 + // + // 可选值 + // - NORMAL: 不设置 + // - ORDER: 顺序 + // - REVERSE: 逆序 + // 不设置默认为NORMAL + DataTimeOrder *string `json:"DataTimeOrder,omitnil,omitempty" name:"DataTimeOrder"` + + // 补录实例重新生成周期,如果设置会重新指定补录任务实例的生成周期,目前只会将天实例转换成每月1号生成的实例 + // * MONTH_CYCLE: 月 + RedefineCycleType *string `json:"RedefineCycleType,omitnil,omitempty" name:"RedefineCycleType"` +} + +func (r *CreateDataBackfillPlanRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateDataBackfillPlanRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskIds") + delete(f, "DataBackfillRangeList") + delete(f, "TimeZone") + delete(f, "DataBackfillPlanName") + delete(f, "CheckParentType") + delete(f, "SkipEventListening") + delete(f, "RedefineSelfWorkflowDependency") + delete(f, "RedefineParallelNum") + delete(f, "SchedulerResourceGroupId") + delete(f, "IntegrationResourceGroupId") + delete(f, "RedefineParamList") + delete(f, "DataTimeOrder") + delete(f, "RedefineCycleType") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDataBackfillPlanRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateDataBackfillPlanResponseParams struct { + // 数据补录计划创建结果 + Data *CreateDataReplenishmentPlan `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateDataBackfillPlanResponse struct { + *tchttp.BaseResponse + Response *CreateDataBackfillPlanResponseParams `json:"Response"` +} + +func (r *CreateDataBackfillPlanResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateDataBackfillPlanResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateDataReplenishmentPlan struct { + // 补录计划Id + DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` +} + +type CreateFolderResult struct { + // 创建成功的文件夹ID。如果创建失败则报错。 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +// Predefined struct for user +type CreateOpsAlarmRuleRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警规则名称 + AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` + + // 监控对象业务id列表,根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 + MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` + + // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; + // 项目波动告警 projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; + // 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 + AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` + + // 告警接收人配置信息 + AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` + + // 监控对象类型, + // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) + // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 + MonitorObjectType *uint64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` + + // 告警规则配置信息 + // 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 + AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` + + // 告警级别 1.普通、2.重要、3.紧急(默认1.普通) + AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 告警规则描述 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +type CreateOpsAlarmRuleRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警规则名称 + AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` + + // 监控对象业务id列表,根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 + MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` + + // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; + // 项目波动告警 projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; + // 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 + AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` + + // 告警接收人配置信息 + AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` + + // 监控对象类型, + // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) + // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 + MonitorObjectType *uint64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` + + // 告警规则配置信息 + // 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 + AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` + + // 告警级别 1.普通、2.重要、3.紧急(默认1.普通) + AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 告警规则描述 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +func (r *CreateOpsAlarmRuleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateOpsAlarmRuleRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "AlarmRuleName") + delete(f, "MonitorObjectIds") + delete(f, "AlarmTypes") + delete(f, "AlarmGroups") + delete(f, "MonitorObjectType") + delete(f, "AlarmRuleDetail") + delete(f, "AlarmLevel") + delete(f, "Description") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateOpsAlarmRuleRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateOpsAlarmRuleResponseParams struct { + // 告警规则唯一id + Data *CreateAlarmRuleData `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateOpsAlarmRuleResponse struct { + *tchttp.BaseResponse + Response *CreateOpsAlarmRuleResponseParams `json:"Response"` +} + +func (r *CreateOpsAlarmRuleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateOpsAlarmRuleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateResourceFileRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源文件名称, 尽可能和上传文件名保持一致 + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // cos存储桶名称, 可从GetResourceCosPath接口获取 + BucketName *string `json:"BucketName,omitnil,omitempty" name:"BucketName"` + + // BucketName桶对应的cos存储桶区域 + CosRegion *string `json:"CosRegion,omitnil,omitempty" name:"CosRegion"` + + // 项目中资源文件上传的路径, 取值示例: /wedata/qxxxm/, 根目录,请使用/即可 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // - 上传文件及手填两种方式只能选择其一,如果两者均提供,取值顺序为文件>手填值 + // - 手填值必须是存在的cos路径, /datastudio/resource/ 为固定前缀, projectId 为项目ID,需传入具体值, parentFolderPath为父文件夹路径, name为文件名, 手填值取值示例: /datastudio/resource/projectId/parentFolderPath/name + ResourceFile *string `json:"ResourceFile,omitnil,omitempty" name:"ResourceFile"` + + // bundle客户端ID + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // bundle客户端信息 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +type CreateResourceFileRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源文件名称, 尽可能和上传文件名保持一致 + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // cos存储桶名称, 可从GetResourceCosPath接口获取 + BucketName *string `json:"BucketName,omitnil,omitempty" name:"BucketName"` + + // BucketName桶对应的cos存储桶区域 + CosRegion *string `json:"CosRegion,omitnil,omitempty" name:"CosRegion"` + + // 项目中资源文件上传的路径, 取值示例: /wedata/qxxxm/, 根目录,请使用/即可 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // - 上传文件及手填两种方式只能选择其一,如果两者均提供,取值顺序为文件>手填值 + // - 手填值必须是存在的cos路径, /datastudio/resource/ 为固定前缀, projectId 为项目ID,需传入具体值, parentFolderPath为父文件夹路径, name为文件名, 手填值取值示例: /datastudio/resource/projectId/parentFolderPath/name + ResourceFile *string `json:"ResourceFile,omitnil,omitempty" name:"ResourceFile"` + + // bundle客户端ID + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // bundle客户端信息 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +func (r *CreateResourceFileRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateResourceFileRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ResourceName") + delete(f, "BucketName") + delete(f, "CosRegion") + delete(f, "ParentFolderPath") + delete(f, "ResourceFile") + delete(f, "BundleId") + delete(f, "BundleInfo") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateResourceFileRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateResourceFileResponseParams struct { + // 创建资源文件结果 + Data *CreateResourceFileResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateResourceFileResponse struct { + *tchttp.BaseResponse + Response *CreateResourceFileResponseParams `json:"Response"` +} + +func (r *CreateResourceFileResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateResourceFileResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateResourceFileResult struct { + // 资源文件ID + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` +} + +// Predefined struct for user +type CreateResourceFolderRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹绝对路径, 取值示例 /wedata/test, 根目录,请使用/即可 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +type CreateResourceFolderRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹绝对路径, 取值示例 /wedata/test, 根目录,请使用/即可 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +func (r *CreateResourceFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateResourceFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ParentFolderPath") + delete(f, "FolderName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateResourceFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateResourceFolderResponseParams struct { + // 创建文件夹结果,如果创建失败则报错。 + Data *CreateFolderResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateResourceFolderResponse struct { + *tchttp.BaseResponse + Response *CreateResourceFolderResponseParams `json:"Response"` +} + +func (r *CreateResourceFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateResourceFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateSQLFolderRequestParams struct { + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹path,/aaa/bbb/ccc,路径头需带斜杠,查询根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 权限范围:SHARED, PRIVATE + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` +} + +type CreateSQLFolderRequest struct { + *tchttp.BaseRequest + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹path,/aaa/bbb/ccc,路径头需带斜杠,查询根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 权限范围:SHARED, PRIVATE + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` +} + +func (r *CreateSQLFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateSQLFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "FolderName") + delete(f, "ProjectId") + delete(f, "ParentFolderPath") + delete(f, "AccessScope") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSQLFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateSQLFolderResponseParams struct { + // 成功true,失败false + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *SqlCreateResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateSQLFolderResponse struct { + *tchttp.BaseResponse + Response *CreateSQLFolderResponseParams `json:"Response"` +} + +func (r *CreateSQLFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateSQLFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateSQLScriptRequestParams struct { + // 脚本名称 + ScriptName *string `json:"ScriptName,omitnil,omitempty" name:"ScriptName"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹path,/aaa/bbb/ccc,根目录为空字符串或/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 数据探索脚本配置 + ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` + + // 脚本内容,如有值,则要将内容进行base64编码 + ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` + + // 权限范围:SHARED, PRIVATE + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` +} + +type CreateSQLScriptRequest struct { + *tchttp.BaseRequest + + // 脚本名称 + ScriptName *string `json:"ScriptName,omitnil,omitempty" name:"ScriptName"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹path,/aaa/bbb/ccc,根目录为空字符串或/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 数据探索脚本配置 + ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` + + // 脚本内容,如有值,则要将内容进行base64编码 + ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` + + // 权限范围:SHARED, PRIVATE + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` +} + +func (r *CreateSQLScriptRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateSQLScriptRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ScriptName") + delete(f, "ProjectId") + delete(f, "ParentFolderPath") + delete(f, "ScriptConfig") + delete(f, "ScriptContent") + delete(f, "AccessScope") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSQLScriptRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateSQLScriptResponseParams struct { + // 结果 + Data *SQLScript `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateSQLScriptResponse struct { + *tchttp.BaseResponse + Response *CreateSQLScriptResponseParams `json:"Response"` +} + +func (r *CreateSQLScriptResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateSQLScriptResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateTaskBaseAttribute struct { + // 任务名称 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 任务类型ID: + // + // * 21:JDBC SQL + // * 23:TDSQL-PostgreSQL + // * 26:OfflineSynchronization + // * 30:Python + // * 31:PySpark + // * 32:DLC SQL + // * 33:Impala + // * 34:Hive SQL + // * 35:Shell + // * 36:Spark SQL + // * 38:Shell Form Mode + // * 39:Spark + // * 40:TCHouse-P + // * 41:Kettle + // * 42:Tchouse-X + // * 43:TCHouse-X SQL + // * 46:DLC Spark + // * 47:TiOne + // * 48:Trino + // * 50:DLC PySpark + // * 92:MapReduce + // * 130:Branch Node + // * 131:Merged Node + // * 132:Notebook + // * 133:SSH + // * 134:StarRocks + // * 137:For-each + // * 138:Setats SQL + TaskTypeId *string `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 工作流ID + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 任务负责人ID,默认为当前用户 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 任务描述 + TaskDescription *string `json:"TaskDescription,omitnil,omitempty" name:"TaskDescription"` +} + +type CreateTaskConfiguration struct { + // 资源组ID: 需要通过 DescribeNormalSchedulerExecutorGroups 获取 ExecutorGroupId + ResourceGroup *string `json:"ResourceGroup,omitnil,omitempty" name:"ResourceGroup"` + + // 代码内容的Base64编码 + CodeContent *string `json:"CodeContent,omitnil,omitempty" name:"CodeContent"` + + // 任务扩展属性配置列表 + TaskExtConfigurationList []*TaskExtParameter `json:"TaskExtConfigurationList,omitnil,omitempty" name:"TaskExtConfigurationList"` + + // 集群ID + DataCluster *string `json:"DataCluster,omitnil,omitempty" name:"DataCluster"` + + // 指定的运行节点 + BrokerIp *string `json:"BrokerIp,omitnil,omitempty" name:"BrokerIp"` + + // 资源池队列名称,需要通过 DescribeProjectClusterQueues 获取 + YarnQueue *string `json:"YarnQueue,omitnil,omitempty" name:"YarnQueue"` + + // 来源数据源ID, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 + SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` + + // 目标数据源ID, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 + TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` + + // 调度参数 + TaskSchedulingParameterList []*TaskSchedulingParameter `json:"TaskSchedulingParameterList,omitnil,omitempty" name:"TaskSchedulingParameterList"` + + // Bundle使用的ID + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // Bundle信息 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +// Predefined struct for user +type CreateTaskRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务基本属性 + TaskBaseAttribute *CreateTaskBaseAttribute `json:"TaskBaseAttribute,omitnil,omitempty" name:"TaskBaseAttribute"` + + // 任务配置 + TaskConfiguration *CreateTaskConfiguration `json:"TaskConfiguration,omitnil,omitempty" name:"TaskConfiguration"` + + // 任务调度配置 + TaskSchedulerConfiguration *CreateTaskSchedulerConfiguration `json:"TaskSchedulerConfiguration,omitnil,omitempty" name:"TaskSchedulerConfiguration"` +} + +type CreateTaskRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务基本属性 + TaskBaseAttribute *CreateTaskBaseAttribute `json:"TaskBaseAttribute,omitnil,omitempty" name:"TaskBaseAttribute"` + + // 任务配置 + TaskConfiguration *CreateTaskConfiguration `json:"TaskConfiguration,omitnil,omitempty" name:"TaskConfiguration"` + + // 任务调度配置 + TaskSchedulerConfiguration *CreateTaskSchedulerConfiguration `json:"TaskSchedulerConfiguration,omitnil,omitempty" name:"TaskSchedulerConfiguration"` +} + +func (r *CreateTaskRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateTaskRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskBaseAttribute") + delete(f, "TaskConfiguration") + delete(f, "TaskSchedulerConfiguration") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTaskRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateTaskResponseParams struct { + // 任务ID + Data *CreateTaskResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateTaskResponse struct { + *tchttp.BaseResponse + Response *CreateTaskResponseParams `json:"Response"` +} + +func (r *CreateTaskResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateTaskResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateTaskResult struct { + // 任务ID + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` +} + +type CreateTaskSchedulerConfiguration struct { + // 周期类型:默认为 DAY_CYCLE + // + // 支持的类型为 + // + // * ONEOFF_CYCLE: 一次性 + // * YEAR_CYCLE: 年 + // * MONTH_CYCLE: 月 + // * WEEK_CYCLE: 周 + // * DAY_CYCLE: 天 + // * HOUR_CYCLE: 小时 + // * MINUTE_CYCLE: 分钟 + // * CRONTAB_CYCLE: crontab表达式类型 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 时区,默认为 UTC+8 + ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` + + // Cron表达式,默认为 0 0 0 * * ? * + CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` + + // 生效日期,默认为当前日期的 00:00:00 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 结束日期,默认为 2099-12-31 23:59:59 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 执行时间 左闭区间,默认 00:00 + ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` + + // 执行时间 右闭区间,默认 23:59 + ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` + + // 调度类型: 0 正常调度 1 空跑调度,默认为 0 + ScheduleRunType *string `json:"ScheduleRunType,omitnil,omitempty" name:"ScheduleRunType"` + + // 日历调度 取值为 0 和 1, 1为打开,0为关闭,默认为0 + CalendarOpen *string `json:"CalendarOpen,omitnil,omitempty" name:"CalendarOpen"` + + // 日历调度 日历 ID + CalendarId *string `json:"CalendarId,omitnil,omitempty" name:"CalendarId"` + + // 自依赖, 默认值 serial, 取值为:parallel(并行), serial(串行), orderly(有序) + SelfDepend *string `json:"SelfDepend,omitnil,omitempty" name:"SelfDepend"` + + // 上游依赖数组 + UpstreamDependencyConfigList []*DependencyTaskBrief `json:"UpstreamDependencyConfigList,omitnil,omitempty" name:"UpstreamDependencyConfigList"` + + // 事件数组 + EventListenerList []*EventListener `json:"EventListenerList,omitnil,omitempty" name:"EventListenerList"` + + // 任务调度优先级 运行优先级 4高 5中 6低 , 默认:6 + RunPriority *string `json:"RunPriority,omitnil,omitempty" name:"RunPriority"` + + // 重试策略 重试等待时间,单位分钟: 默认: 5 + RetryWait *string `json:"RetryWait,omitnil,omitempty" name:"RetryWait"` + + // 重试策略 最大尝试次数, 默认: 4 + MaxRetryAttempts *string `json:"MaxRetryAttempts,omitnil,omitempty" name:"MaxRetryAttempts"` + + // 超时处理策略 运行耗时超时(单位:分钟)默认为 -1 + ExecutionTTL *string `json:"ExecutionTTL,omitnil,omitempty" name:"ExecutionTTL"` + + // 超时处理策略 等待总时长耗时超时(单位:分钟)默认为 -1 + WaitExecutionTotalTTL *string `json:"WaitExecutionTotalTTL,omitnil,omitempty" name:"WaitExecutionTotalTTL"` + + // 重跑&补录配置, 默认为 ALL; , ALL 运行成功或失败后皆可重跑或补录, FAILURE 运行成功后不可重跑或补录,运行失败后可重跑或补录, NONE 运行成功或失败后皆不可重跑或补录; + AllowRedoType *string `json:"AllowRedoType,omitnil,omitempty" name:"AllowRedoType"` + + // 输出参数数组 + ParamTaskOutList []*OutTaskParameter `json:"ParamTaskOutList,omitnil,omitempty" name:"ParamTaskOutList"` + + // 输入参数数组 + ParamTaskInList []*InTaskParameter `json:"ParamTaskInList,omitnil,omitempty" name:"ParamTaskInList"` + + // 产出登记 + TaskOutputRegistryList []*TaskDataRegistry `json:"TaskOutputRegistryList,omitnil,omitempty" name:"TaskOutputRegistryList"` + + // **实例生成策略** + // * T_PLUS_0: T+0生成,默认策略 + // * T_PLUS_1: T+1生成 + InitStrategy *string `json:"InitStrategy,omitnil,omitempty" name:"InitStrategy"` +} + +// Predefined struct for user +type CreateWorkflowFolderRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹绝对路径,如/abc/de,如果是根目录则传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 要创建的文件夹名字 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +type CreateWorkflowFolderRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹绝对路径,如/abc/de,如果是根目录则传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 要创建的文件夹名字 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +func (r *CreateWorkflowFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateWorkflowFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ParentFolderPath") + delete(f, "FolderName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateWorkflowFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateWorkflowFolderResponseParams struct { + // 创建文件夹结果,如果创建失败则报错。 + Data *CreateFolderResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateWorkflowFolderResponse struct { + *tchttp.BaseResponse + Response *CreateWorkflowFolderResponseParams `json:"Response"` +} + +func (r *CreateWorkflowFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateWorkflowFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateWorkflowRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流名称 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 所属文件夹路径 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 工作流类型,取值示例:cycle 周期工作流;manual 手动工作流,默认传入cycle + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // 工作流描述 + WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` + + // 工作流负责人ID + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 工作流参数 + WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` + + // 统一调度信息 + WorkflowSchedulerConfiguration *WorkflowSchedulerConfigurationInfo `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` + + // BundleId项 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // Bundle信息 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +type CreateWorkflowRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流名称 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 所属文件夹路径 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 工作流类型,取值示例:cycle 周期工作流;manual 手动工作流,默认传入cycle + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // 工作流描述 + WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` + + // 工作流负责人ID + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 工作流参数 + WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` + + // 统一调度信息 + WorkflowSchedulerConfiguration *WorkflowSchedulerConfigurationInfo `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` + + // BundleId项 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // Bundle信息 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +func (r *CreateWorkflowRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateWorkflowRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "WorkflowName") + delete(f, "ParentFolderPath") + delete(f, "WorkflowType") + delete(f, "WorkflowDesc") + delete(f, "OwnerUin") + delete(f, "WorkflowParams") + delete(f, "WorkflowSchedulerConfiguration") + delete(f, "BundleId") + delete(f, "BundleInfo") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateWorkflowRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateWorkflowResponseParams struct { + // 返回工作流ID + Data *CreateWorkflowResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateWorkflowResponse struct { + *tchttp.BaseResponse + Response *CreateWorkflowResponseParams `json:"Response"` +} + +func (r *CreateWorkflowResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateWorkflowResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateWorkflowResult struct { + // 创建成功后的工作流id + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` +} + +type DataBackfillRange struct { + // 开始日期,格式yyyy-MM-dd 表示从指定日期的00:00:00开始 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartDate *string `json:"StartDate,omitnil,omitempty" name:"StartDate"` + + // 结束日期,格式yyyy-MM-dd,表示从指定日期的 23:59:59结束 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndDate *string `json:"EndDate,omitnil,omitempty" name:"EndDate"` + + // 在[StartDate, EndDate]之间每天的开始时间点,格式HH:mm,只针对小时及周期小于小时的任务生效 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` + + // 在[StartDate, EndDate]之间每天的结束时间点,格式HH:mm,只针对小时及周期小于小时的任务生效 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` +} + +type DeleteAlarmRuleResult struct { + // 是否删除成功 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +// Predefined struct for user +type DeleteCodeFileRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 代码文件ID,参数值来自CreateCodeFile接口的返回 + CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` +} + +type DeleteCodeFileRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 代码文件ID,参数值来自CreateCodeFile接口的返回 + CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` +} + +func (r *DeleteCodeFileRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteCodeFileRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "CodeFileId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteCodeFileRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteCodeFileResponseParams struct { + // 执行结果 + Data *CodeStudioFileActionResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteCodeFileResponse struct { + *tchttp.BaseResponse + Response *DeleteCodeFileResponseParams `json:"Response"` +} + +func (r *DeleteCodeFileResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteCodeFileResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteCodeFolderRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID,参数值来自CreateCodeFolder接口的返回 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +type DeleteCodeFolderRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID,参数值来自CreateCodeFolder接口的返回 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +func (r *DeleteCodeFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteCodeFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "FolderId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteCodeFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteCodeFolderResponseParams struct { + // 执行结果 + Data *CodeStudioFolderActionResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteCodeFolderResponse struct { + *tchttp.BaseResponse + Response *DeleteCodeFolderResponseParams `json:"Response"` +} + +func (r *DeleteCodeFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteCodeFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteFolderResult struct { + // 删除状态,true表示成功,false表示失败 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +// Predefined struct for user +type DeleteOpsAlarmRuleRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警规则唯一id,接口CreateAlarmRule返回 + // 与AlarmRuleName二选一 + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` +} + +type DeleteOpsAlarmRuleRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警规则唯一id,接口CreateAlarmRule返回 + // 与AlarmRuleName二选一 + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` +} + +func (r *DeleteOpsAlarmRuleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteOpsAlarmRuleRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "AlarmRuleId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteOpsAlarmRuleRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteOpsAlarmRuleResponseParams struct { + // 是否删除成功 + Data *DeleteAlarmRuleResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteOpsAlarmRuleResponse struct { + *tchttp.BaseResponse + Response *DeleteOpsAlarmRuleResponseParams `json:"Response"` +} + +func (r *DeleteOpsAlarmRuleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteOpsAlarmRuleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteResourceFileRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源ID, 可通过ListResourceFiles接口获取 + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` +} + +type DeleteResourceFileRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源ID, 可通过ListResourceFiles接口获取 + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` +} + +func (r *DeleteResourceFileRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteResourceFileRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ResourceId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteResourceFileRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteResourceFileResponseParams struct { + // 资源删除结果 + Data *DeleteResourceFileResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteResourceFileResponse struct { + *tchttp.BaseResponse + Response *DeleteResourceFileResponseParams `json:"Response"` +} + +func (r *DeleteResourceFileResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteResourceFileResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteResourceFileResult struct { + // true + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +// Predefined struct for user +type DeleteResourceFolderRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID, 可通过ListResourceFolders接口获取 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +type DeleteResourceFolderRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID, 可通过ListResourceFolders接口获取 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +func (r *DeleteResourceFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteResourceFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "FolderId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteResourceFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteResourceFolderResponseParams struct { + // true代表删除成功,false代表删除失败 + Data *DeleteFolderResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteResourceFolderResponse struct { + *tchttp.BaseResponse + Response *DeleteResourceFolderResponseParams `json:"Response"` +} + +func (r *DeleteResourceFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteResourceFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteSQLFolderRequestParams struct { + // 文件夹Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +type DeleteSQLFolderRequest struct { + *tchttp.BaseRequest + + // 文件夹Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +func (r *DeleteSQLFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteSQLFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "FolderId") + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSQLFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteSQLFolderResponseParams struct { + // 操作结果 + Data *SQLContentActionResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteSQLFolderResponse struct { + *tchttp.BaseResponse + Response *DeleteSQLFolderResponseParams `json:"Response"` +} + +func (r *DeleteSQLFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteSQLFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteSQLScriptRequestParams struct { + // 探索脚本Id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +type DeleteSQLScriptRequest struct { + *tchttp.BaseRequest + + // 探索脚本Id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +func (r *DeleteSQLScriptRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteSQLScriptRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ScriptId") + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSQLScriptRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteSQLScriptResponseParams struct { + // 执行结果 + Data *SQLContentActionResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteSQLScriptResponse struct { + *tchttp.BaseResponse + Response *DeleteSQLScriptResponseParams `json:"Response"` +} + +func (r *DeleteSQLScriptResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteSQLScriptResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteTaskRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + // 和VirtualTaskId选填一个 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务操作是否消息通知下游任务责任人true:通知 + // false:不通知 + // 不传默认false + OperateInform *bool `json:"OperateInform,omitnil,omitempty" name:"OperateInform"` + + // 任务删除方式 + // true:不针对下游任务实例进行强制失败 + // false:针对下游任务实例进行强制失败 + // 不传默认false + DeleteMode *bool `json:"DeleteMode,omitnil,omitempty" name:"DeleteMode"` +} + +type DeleteTaskRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + // 和VirtualTaskId选填一个 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务操作是否消息通知下游任务责任人true:通知 + // false:不通知 + // 不传默认false + OperateInform *bool `json:"OperateInform,omitnil,omitempty" name:"OperateInform"` + + // 任务删除方式 + // true:不针对下游任务实例进行强制失败 + // false:针对下游任务实例进行强制失败 + // 不传默认false + DeleteMode *bool `json:"DeleteMode,omitnil,omitempty" name:"DeleteMode"` +} + +func (r *DeleteTaskRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteTaskRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + delete(f, "OperateInform") + delete(f, "DeleteMode") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTaskRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteTaskResponseParams struct { + // 是否删除成功 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *DeleteTaskResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteTaskResponse struct { + *tchttp.BaseResponse + Response *DeleteTaskResponseParams `json:"Response"` +} + +func (r *DeleteTaskResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteTaskResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteTaskResult struct { + // 删除状态,true表示成功,false表示失败 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +// Predefined struct for user +type DeleteWorkflowFolderRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID,可通过ListWorkflowFolders接口获取 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +type DeleteWorkflowFolderRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID,可通过ListWorkflowFolders接口获取 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +func (r *DeleteWorkflowFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteWorkflowFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "FolderId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteWorkflowFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteWorkflowFolderResponseParams struct { + // 删除结果 + Data *DeleteFolderResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteWorkflowFolderResponse struct { + *tchttp.BaseResponse + Response *DeleteWorkflowFolderResponseParams `json:"Response"` +} + +func (r *DeleteWorkflowFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteWorkflowFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteWorkflowRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流id + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` +} + +type DeleteWorkflowRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流id + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` +} + +func (r *DeleteWorkflowRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteWorkflowRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "WorkflowId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteWorkflowRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteWorkflowResponseParams struct { + // 返回删除成功的工作流任务个数、失败个数、任务总数 + Data *DeleteWorkflowResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteWorkflowResponse struct { + *tchttp.BaseResponse + Response *DeleteWorkflowResponseParams `json:"Response"` +} + +func (r *DeleteWorkflowResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteWorkflowResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteWorkflowResult struct { + // 删除工作流是否成功 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +type DependencyConfigPage struct { + // 满足查询条件的数据总条数。 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 满足查询条件的数据总页数。 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 当前请求的数据页数。 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 当前请求的数据页条数。 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页数据 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*TaskDependDto `json:"Items,omitnil,omitempty" name:"Items"` +} + +type DependencyStrategyTask struct { + // 等待上游任务实例策略:EXECUTING(执行);WAITING(等待) + // + // 注意:此字段可能返回 null,表示取不到有效值。 + PollingNullStrategy *string `json:"PollingNullStrategy,omitnil,omitempty" name:"PollingNullStrategy"` + + // 仅当PollingNullStrategy为EXECUTING时才需要填本字段,List类型:NOT_EXIST(默认,在分钟依赖分钟/小时依赖小时的情况下,父实例不在下游实例调度时间范围内);PARENT_EXPIRED(父实例失败);PARENT_TIMEOUT(父实例超时)。以上场景满足任一条件即可通过该父任务实例依赖判断,除以上场景外均需等待父实例。 + // + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskDependencyExecutingStrategies []*string `json:"TaskDependencyExecutingStrategies,omitnil,omitempty" name:"TaskDependencyExecutingStrategies"` + + // 仅当TaskDependencyExecutingStrategies中包含PARENT_TIMEOUT时才需要填本字段,下游任务依赖父实例执行超时时间,单位:分钟。 + // + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskDependencyExecutingTimeoutValue *int64 `json:"TaskDependencyExecutingTimeoutValue,omitnil,omitempty" name:"TaskDependencyExecutingTimeoutValue"` +} + +type DependencyTaskBrief struct { + // 任务ID + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 主依赖配置,取值为: + // + // * CRONTAB + // * DAY + // * HOUR + // * LIST_DAY + // * LIST_HOUR + // * LIST_MINUTE + // * MINUTE + // * MONTH + // * RANGE_DAY + // * RANGE_HOUR + // * RANGE_MINUTE + // * WEEK + // * YEAR + // 注意:此字段可能返回 null,表示取不到有效值。 + MainCyclicConfig *string `json:"MainCyclicConfig,omitnil,omitempty" name:"MainCyclicConfig"` + + // 次依赖配置,取值为: + // * ALL_DAY_OF_YEAR + // * ALL_MONTH_OF_YEAR + // * CURRENT + // * CURRENT_DAY + // * CURRENT_HOUR + // * CURRENT_MINUTE + // * CURRENT_MONTH + // * CURRENT_WEEK + // * CURRENT_YEAR + // * PREVIOUS_BEGIN_OF_MONTH + // * PREVIOUS_DAY + // * PREVIOUS_DAY_LATER_OFFSET_HOUR + // * PREVIOUS_DAY_LATER_OFFSET_MINUTE + // * PREVIOUS_END_OF_MONTH + // * PREVIOUS_FRIDAY + // * PREVIOUS_HOUR + // * PREVIOUS_HOUR_CYCLE + // * PREVIOUS_HOUR_LATER_OFFSET_MINUTE + // * PREVIOUS_MINUTE_CYCLE + // * PREVIOUS_MONTH + // * PREVIOUS_WEEK + // * PREVIOUS_WEEKEND + // * RECENT_DATE + // 注意:此字段可能返回 null,表示取不到有效值。 + SubordinateCyclicConfig *string `json:"SubordinateCyclicConfig,omitnil,omitempty" name:"SubordinateCyclicConfig"` + + // 区间、列表模式下的偏移量 + // 注意:此字段可能返回 null,表示取不到有效值。 + Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"` + + // 依赖执行策略 + // 注意:此字段可能返回 null,表示取不到有效值。 + DependencyStrategy *DependencyStrategyTask `json:"DependencyStrategy,omitnil,omitempty" name:"DependencyStrategy"` +} + +type EventListener struct { + // 事件名 + // 注意:此字段可能返回 null,表示取不到有效值。 + EventName *string `json:"EventName,omitnil,omitempty" name:"EventName"` + + // 事件周期:SECOND, MIN, HOUR, DAY + // 注意:此字段可能返回 null,表示取不到有效值。 + EventSubType *string `json:"EventSubType,omitnil,omitempty" name:"EventSubType"` + + // 事件广播类型:SINGLE, BROADCAST + // 注意:此字段可能返回 null,表示取不到有效值。 + EventBroadcastType *string `json:"EventBroadcastType,omitnil,omitempty" name:"EventBroadcastType"` + + // 扩展信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + PropertiesList []*ParamInfo `json:"PropertiesList,omitnil,omitempty" name:"PropertiesList"` +} + +// Predefined struct for user +type GetAlarmMessageRequestParams struct { + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警消息Id + AlarmMessageId *string `json:"AlarmMessageId,omitnil,omitempty" name:"AlarmMessageId"` + + // 返回日期的时区, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` +} + +type GetAlarmMessageRequest struct { + *tchttp.BaseRequest + + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警消息Id + AlarmMessageId *string `json:"AlarmMessageId,omitnil,omitempty" name:"AlarmMessageId"` + + // 返回日期的时区, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` +} + +func (r *GetAlarmMessageRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetAlarmMessageRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "AlarmMessageId") + delete(f, "TimeZone") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetAlarmMessageRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetAlarmMessageResponseParams struct { + // 告警信息 + Data *AlarmMessage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetAlarmMessageResponse struct { + *tchttp.BaseResponse + Response *GetAlarmMessageResponseParams `json:"Response"` +} + +func (r *GetAlarmMessageResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetAlarmMessageResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetCodeFileRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 代码文件ID,参数值来自CreateCodeFile接口的返回 + CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` + + // true:返回文件内容+配置,false:不返回文件内容,只返回配置信息;默认为false + IncludeContent *bool `json:"IncludeContent,omitnil,omitempty" name:"IncludeContent"` +} + +type GetCodeFileRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 代码文件ID,参数值来自CreateCodeFile接口的返回 + CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` + + // true:返回文件内容+配置,false:不返回文件内容,只返回配置信息;默认为false + IncludeContent *bool `json:"IncludeContent,omitnil,omitempty" name:"IncludeContent"` +} + +func (r *GetCodeFileRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetCodeFileRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "CodeFileId") + delete(f, "IncludeContent") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetCodeFileRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetCodeFileResponseParams struct { + // 代码文件详情 + Data *CodeFile `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetCodeFileResponse struct { + *tchttp.BaseResponse + Response *GetCodeFileResponseParams `json:"Response"` +} + +func (r *GetCodeFileResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetCodeFileResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsAlarmRuleRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警规则唯一id + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` +} + +type GetOpsAlarmRuleRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警规则唯一id + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` +} + +func (r *GetOpsAlarmRuleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsAlarmRuleRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "AlarmRuleId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsAlarmRuleRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsAlarmRuleResponseParams struct { + // 告警规则详细信息 + Data *AlarmRuleData `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetOpsAlarmRuleResponse struct { + *tchttp.BaseResponse + Response *GetOpsAlarmRuleResponseParams `json:"Response"` +} + +func (r *GetOpsAlarmRuleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsAlarmRuleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsAsyncJobRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 异步操作id + AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` +} + +type GetOpsAsyncJobRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 异步操作id + AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` +} + +func (r *GetOpsAsyncJobRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsAsyncJobRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "AsyncId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsAsyncJobRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsAsyncJobResponseParams struct { + // 异步操作详情结果 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *OpsAsyncJobDetail `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetOpsAsyncJobResponse struct { + *tchttp.BaseResponse + Response *GetOpsAsyncJobResponseParams `json:"Response"` +} + +func (r *GetOpsAsyncJobResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsAsyncJobResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsTaskCodeRequestParams struct { + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` +} + +type GetOpsTaskCodeRequest struct { + *tchttp.BaseRequest + + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` +} + +func (r *GetOpsTaskCodeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsTaskCodeRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsTaskCodeRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsTaskCodeResponseParams struct { + // 获取任务代码结果 + Data *TaskCode `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetOpsTaskCodeResponse struct { + *tchttp.BaseResponse + Response *GetOpsTaskCodeResponseParams `json:"Response"` +} + +func (r *GetOpsTaskCodeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsTaskCodeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsTaskRequestParams struct { + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +type GetOpsTaskRequest struct { + *tchttp.BaseRequest + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +func (r *GetOpsTaskRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsTaskRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TaskId") + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsTaskRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsTaskResponseParams struct { + // 任务详情 + Data *Task `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetOpsTaskResponse struct { + *tchttp.BaseResponse + Response *GetOpsTaskResponseParams `json:"Response"` +} + +func (r *GetOpsTaskResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsTaskResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsWorkflowRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流Id,可以从ListOpsWorkflows接口获取 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` +} + +type GetOpsWorkflowRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流Id,可以从ListOpsWorkflows接口获取 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` +} + +func (r *GetOpsWorkflowRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsWorkflowRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "WorkflowId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsWorkflowRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetOpsWorkflowResponseParams struct { + // 工作流调度详情 + Data *OpsWorkflowDetail `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetOpsWorkflowResponse struct { + *tchttp.BaseResponse + Response *GetOpsWorkflowResponseParams `json:"Response"` +} + +func (r *GetOpsWorkflowResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetOpsWorkflowResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetResourceFileRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源文件ID,可通过ListResourceFiles接口获取 + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` +} + +type GetResourceFileRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源文件ID,可通过ListResourceFiles接口获取 + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` +} + +func (r *GetResourceFileRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetResourceFileRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ResourceId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetResourceFileRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetResourceFileResponseParams struct { + // 资源文件详情 + Data *ResourceFile `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetResourceFileResponse struct { + *tchttp.BaseResponse + Response *GetResourceFileResponseParams `json:"Response"` +} + +func (r *GetResourceFileResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetResourceFileResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetSQLScriptRequestParams struct { + // 探索脚本Id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +type GetSQLScriptRequest struct { + *tchttp.BaseRequest + + // 探索脚本Id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +func (r *GetSQLScriptRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetSQLScriptRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ScriptId") + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetSQLScriptRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetSQLScriptResponseParams struct { + // 脚本详情 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *SQLScript `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetSQLScriptResponse struct { + *tchttp.BaseResponse + Response *GetSQLScriptResponseParams `json:"Response"` +} + +func (r *GetSQLScriptResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetSQLScriptResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskCodeRequestParams struct { + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` +} + +type GetTaskCodeRequest struct { + *tchttp.BaseRequest + + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` +} + +func (r *GetTaskCodeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskCodeRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskCodeRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskCodeResponseParams struct { + // 获取任务代码结果 + Data *TaskCodeResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetTaskCodeResponse struct { + *tchttp.BaseResponse + Response *GetTaskCodeResponseParams `json:"Response"` +} + +func (r *GetTaskCodeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskCodeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskInstanceLogRequestParams struct { + // **项目ID** + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **实例唯一标识** + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **实例生命周期编号,标识实例的某一次执行**例如:周期实例第一次运行的编号为0,用户后期又重跑了该实例,第二次执行的编号为1; 默认最新一次 + LifeRoundNum *uint64 `json:"LifeRoundNum,omitnil,omitempty" name:"LifeRoundNum"` + + // **日志级别** 默认All - Info - Debug - Warn - Error - All + LogLevel *string `json:"LogLevel,omitnil,omitempty" name:"LogLevel"` + + // **分页查询日志时使用,无具体业务含义** 第一次查询时值为null 第二次及以后查询时使用上一次查询返回信息中的NextCursor字段值即可 + NextCursor *string `json:"NextCursor,omitnil,omitempty" name:"NextCursor"` +} + +type GetTaskInstanceLogRequest struct { + *tchttp.BaseRequest + + // **项目ID** + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **实例唯一标识** + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **实例生命周期编号,标识实例的某一次执行**例如:周期实例第一次运行的编号为0,用户后期又重跑了该实例,第二次执行的编号为1; 默认最新一次 + LifeRoundNum *uint64 `json:"LifeRoundNum,omitnil,omitempty" name:"LifeRoundNum"` + + // **日志级别** 默认All - Info - Debug - Warn - Error - All + LogLevel *string `json:"LogLevel,omitnil,omitempty" name:"LogLevel"` + + // **分页查询日志时使用,无具体业务含义** 第一次查询时值为null 第二次及以后查询时使用上一次查询返回信息中的NextCursor字段值即可 + NextCursor *string `json:"NextCursor,omitnil,omitempty" name:"NextCursor"` +} + +func (r *GetTaskInstanceLogRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskInstanceLogRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "InstanceKey") + delete(f, "LifeRoundNum") + delete(f, "LogLevel") + delete(f, "NextCursor") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskInstanceLogRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskInstanceLogResponseParams struct { + // 调度实例详情 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *InstanceLog `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetTaskInstanceLogResponse struct { + *tchttp.BaseResponse + Response *GetTaskInstanceLogResponseParams `json:"Response"` +} + +func (r *GetTaskInstanceLogResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskInstanceLogResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskInstanceRequestParams struct { + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例唯一标识,可以通过ListInstances获取 + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` +} + +type GetTaskInstanceRequest struct { + *tchttp.BaseRequest + + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例唯一标识,可以通过ListInstances获取 + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` +} + +func (r *GetTaskInstanceRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskInstanceRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "InstanceKey") + delete(f, "TimeZone") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskInstanceRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskInstanceResponseParams struct { + // 实例详情 + Data *TaskInstanceDetail `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetTaskInstanceResponse struct { + *tchttp.BaseResponse + Response *GetTaskInstanceResponseParams `json:"Response"` +} + +func (r *GetTaskInstanceResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskInstanceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` +} + +type GetTaskRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` +} + +func (r *GetTaskRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskResponseParams struct { + // 任务详情 + Data *Task `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetTaskResponse struct { + *tchttp.BaseResponse + Response *GetTaskResponseParams `json:"Response"` +} + +func (r *GetTaskResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskVersionRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 提交版本ID,不填默认拿最新提交版本 + VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` +} + +type GetTaskVersionRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 提交版本ID,不填默认拿最新提交版本 + VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` +} + +func (r *GetTaskVersionRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskVersionRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + delete(f, "VersionId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskVersionRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTaskVersionResponseParams struct { + // 版本详情 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *TaskVersionDetail `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetTaskVersionResponse struct { + *tchttp.BaseResponse + Response *GetTaskVersionResponseParams `json:"Response"` +} + +func (r *GetTaskVersionResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTaskVersionResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetWorkflowRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流ID 通过ListWorkflows接口获取 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` +} + +type GetWorkflowRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流ID 通过ListWorkflows接口获取 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` +} + +func (r *GetWorkflowRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetWorkflowRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "WorkflowId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetWorkflowRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetWorkflowResponseParams struct { + // 工作流详细信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *WorkflowDetail `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetWorkflowResponse struct { + *tchttp.BaseResponse + Response *GetWorkflowResponseParams `json:"Response"` +} + +func (r *GetWorkflowResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetWorkflowResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type InTaskParameter struct { + // 参数名 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` + + // 参数描述:格式为 项目标识.任务名称.参数名;例:project_wedata_1.sh_250820_104107.pp_out + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamDesc *string `json:"ParamDesc,omitnil,omitempty" name:"ParamDesc"` + + // 父任务ID + // 注意:此字段可能返回 null,表示取不到有效值。 + FromTaskId *string `json:"FromTaskId,omitnil,omitempty" name:"FromTaskId"` + + // 父任务参数key + // 注意:此字段可能返回 null,表示取不到有效值。 + FromParamKey *string `json:"FromParamKey,omitnil,omitempty" name:"FromParamKey"` +} + +type InstanceExecution struct { + // 实例唯一标识 + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **实例生命周期编号,标识实例的某一次执行** + // + // 例如:周期实例第一次运行的编号为0,用户后期又重跑了该实例,第二次执行的编号为1 + // 注意:此字段可能返回 null,表示取不到有效值。 + LifeRoundNum *uint64 `json:"LifeRoundNum,omitnil,omitempty" name:"LifeRoundNum"` + + // **实例状态** + // - WAIT_EVENT: 等待事件 + // - WAIT_UPSTREAM: 等待上游 + // - WAIT_RUN: 等待运行 + // - RUNNING: 运行中 + // - SKIP_RUNNING: 跳过运行 + // - FAILED_RETRY: 失败重试 + // - EXPIRED: 失败 + // - COMPLETED: 成功 + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` + + // **实例运行触发类型** + // + // - RERUN 表示重跑 + // - ADDITION 表示补录 + // - PERIODIC 表示周期 + // - APERIODIC 表示非周期 + // - RERUN_SKIP_RUN 表示重跑 - 空跑 + // - ADDITION_SKIP_RUN 表示补录 - 空跑 + // - PERIODIC_SKIP_RUN 表示周期 - 空跑 + // - APERIODIC_SKIP_RUN 表示非周期 - 空跑 + // - MANUAL_TRIGGER 表示手动触发 + // - RERUN_MANUAL_TRIGGER 表示手动触发 - 重跑 + // 注意:此字段可能返回 null,表示取不到有效值。 + RunType *string `json:"RunType,omitnil,omitempty" name:"RunType"` + + // 失败重试次数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Tries *uint64 `json:"Tries,omitnil,omitempty" name:"Tries"` + + // **实例执行生命周期列表** + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionPhaseList []*InstanceExecutionPhase `json:"ExecutionPhaseList,omitnil,omitempty" name:"ExecutionPhaseList"` + + // 耗费时间, 单位ms + // 注意:此字段可能返回 null,表示取不到有效值。 + CostTime *int64 `json:"CostTime,omitnil,omitempty" name:"CostTime"` +} + +type InstanceExecutionPhase struct { + // 该状态开始时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // **实例生命周期阶段状态** + // + // - WAIT_UPSTREAM 表示 等待事件/上游状态 + // - WAIT_RUN 表示 等待运行状态 + // - RUNNING 表示 运行中状态 + // - COMPLETE 表示 终态-完成 + // - FAILED 表示 终态-失败重试 + // - EXPIRED 表示 终态-失败 + // - SKIP_RUNNING 表示 终态-被上游分支节点跳过的分支 + // - HISTORY 表示 兼容2024-03-30之前的历史实例,之后实例无需关注次枚举类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + DetailState *string `json:"DetailState,omitnil,omitempty" name:"DetailState"` + + // 该状态结束时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` +} + +type InstanceLog struct { + // 实例唯一标识 + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // 项目ID + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **运行代码内容** + // 注意:此字段可能返回 null,表示取不到有效值。 + CodeContent *string `json:"CodeContent,omitnil,omitempty" name:"CodeContent"` + + // **日志内容** + // 注意:此字段可能返回 null,表示取不到有效值。 + LogInfo *string `json:"LogInfo,omitnil,omitempty" name:"LogInfo"` + + // **分页查询日志时使用,无具体业务含义** + // + // 第一次查询时值为null + // 第二次及以后查询时使用上一次查询返回信息中的NextCursor字段值即可 + // 注意:此字段可能返回 null,表示取不到有效值。 + NextCursor *string `json:"NextCursor,omitnil,omitempty" name:"NextCursor"` +} + +type JobDto struct { + // 数据探索任务ID + // 注意:此字段可能返回 null,表示取不到有效值。 + JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` + + // 数据探索任务名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + JobName *string `json:"JobName,omitnil,omitempty" name:"JobName"` + + // 任务类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"` + + // 脚本ID + // 注意:此字段可能返回 null,表示取不到有效值。 + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 子任务列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + JobExecutionList []*JobExecutionDto `json:"JobExecutionList,omitnil,omitempty" name:"JobExecutionList"` + + // 脚本内容 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` + + // 任务状态 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 任务创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 更新时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // 结束时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 云主账号UIN + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 账号UIN + // 注意:此字段可能返回 null,表示取不到有效值。 + UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` + + // 耗时 + // 注意:此字段可能返回 null,表示取不到有效值。 + TimeCost *int64 `json:"TimeCost,omitnil,omitempty" name:"TimeCost"` + + // 是否脚本内容被截断 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScriptContentTruncate *bool `json:"ScriptContentTruncate,omitnil,omitempty" name:"ScriptContentTruncate"` +} + +type JobExecutionDto struct { + // 数据探索任务ID + // 注意:此字段可能返回 null,表示取不到有效值。 + JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` + + // 子查询任务ID + // 注意:此字段可能返回 null,表示取不到有效值。 + JobExecutionId *string `json:"JobExecutionId,omitnil,omitempty" name:"JobExecutionId"` + + // 子查询名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + JobExecutionName *string `json:"JobExecutionName,omitnil,omitempty" name:"JobExecutionName"` + + // 子查询sql内容 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` + + // 子查询状态 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 执行阶段 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecuteStageInfo *string `json:"ExecuteStageInfo,omitnil,omitempty" name:"ExecuteStageInfo"` + + // 日志路径 + // 注意:此字段可能返回 null,表示取不到有效值。 + LogFilePath *string `json:"LogFilePath,omitnil,omitempty" name:"LogFilePath"` + + // 下载结果路径 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResultFilePath *string `json:"ResultFilePath,omitnil,omitempty" name:"ResultFilePath"` + + // 预览结果路径 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResultPreviewFilePath *string `json:"ResultPreviewFilePath,omitnil,omitempty" name:"ResultPreviewFilePath"` + + // 任务执行的结果总行数 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResultTotalCount *int64 `json:"ResultTotalCount,omitnil,omitempty" name:"ResultTotalCount"` + + // 更新时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // 结束时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 耗时 + // 注意:此字段可能返回 null,表示取不到有效值。 + TimeCost *int64 `json:"TimeCost,omitnil,omitempty" name:"TimeCost"` + + // 上下文SQL内容 + // 注意:此字段可能返回 null,表示取不到有效值。 + ContextScriptContent []*string `json:"ContextScriptContent,omitnil,omitempty" name:"ContextScriptContent"` + + // 任务执行的结果预览行数 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResultPreviewCount *int64 `json:"ResultPreviewCount,omitnil,omitempty" name:"ResultPreviewCount"` + + // 任务执行的结果影响行数 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResultEffectCount *int64 `json:"ResultEffectCount,omitnil,omitempty" name:"ResultEffectCount"` + + // 是否正在收集全量结果:默认false,true表示正在收集全量结果,用于前端判断是否需要继续轮询 + // 注意:此字段可能返回 null,表示取不到有效值。 + CollectingTotalResult *bool `json:"CollectingTotalResult,omitnil,omitempty" name:"CollectingTotalResult"` + + // 是否需要截断脚本内容 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScriptContentTruncate *bool `json:"ScriptContentTruncate,omitnil,omitempty" name:"ScriptContentTruncate"` +} + +type KVMap struct { + // k + // 注意:此字段可能返回 null,表示取不到有效值。 + K *string `json:"K,omitnil,omitempty" name:"K"` + + // v + // 注意:此字段可能返回 null,表示取不到有效值。 + V *string `json:"V,omitnil,omitempty" name:"V"` +} + +type KVPair struct { + // 键名 + // 注意:此字段可能返回 null,表示取不到有效值。 + K *string `json:"K,omitnil,omitempty" name:"K"` + + // 值,请勿传SQL(请求会被视为攻击接口),如果有需要,请将SQL进行Base64转码并解码。 + // 注意:此字段可能返回 null,表示取不到有效值。 + V *string `json:"V,omitnil,omitempty" name:"V"` +} + +// Predefined struct for user +type KillTaskInstancesAsyncRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例id列表,可以从ListInstances中获取 + InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` +} + +type KillTaskInstancesAsyncRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例id列表,可以从ListInstances中获取 + InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` +} + +func (r *KillTaskInstancesAsyncRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *KillTaskInstancesAsyncRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "InstanceKeyList") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "KillTaskInstancesAsyncRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type KillTaskInstancesAsyncResponseParams struct { + // 批量中止操作的返回的异步id, 可以在接口GetAsyncJob获取具体执行详情 + Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type KillTaskInstancesAsyncResponse struct { + *tchttp.BaseResponse + Response *KillTaskInstancesAsyncResponseParams `json:"Response"` +} + +func (r *KillTaskInstancesAsyncResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *KillTaskInstancesAsyncResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ListAlarmMessages struct { + // 页码 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 总条数 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页数 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 告警信息列表 + Items []*AlarmMessage `json:"Items,omitnil,omitempty" name:"Items"` +} + +// Predefined struct for user +type ListAlarmMessagesRequestParams struct { + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 页码数,用于翻页,最小值为 1。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的条数,最大 100 条 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 起始告警时间, 格式为yyyy-MM-dd HH:mm:ss + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 截止告警时间, 格式yyyy-MM-dd HH:mm:ss + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 告警级别 + AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 告警接收人Id + AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` + + // 对于传入和返回的过滤时区, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` +} + +type ListAlarmMessagesRequest struct { + *tchttp.BaseRequest + + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 页码数,用于翻页,最小值为 1。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的条数,最大 100 条 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 起始告警时间, 格式为yyyy-MM-dd HH:mm:ss + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 截止告警时间, 格式yyyy-MM-dd HH:mm:ss + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 告警级别 + AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 告警接收人Id + AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` + + // 对于传入和返回的过滤时区, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` +} + +func (r *ListAlarmMessagesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListAlarmMessagesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "StartTime") + delete(f, "EndTime") + delete(f, "AlarmLevel") + delete(f, "AlarmRecipientId") + delete(f, "TimeZone") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListAlarmMessagesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListAlarmMessagesResponseParams struct { + // 告警信息列表 + Data *ListAlarmMessages `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListAlarmMessagesResponse struct { + *tchttp.BaseResponse + Response *ListAlarmMessagesResponseParams `json:"Response"` +} + +func (r *ListAlarmMessagesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListAlarmMessagesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ListAlarmRulesResult struct { + // 分页的页数,当前页数 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的条数 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页总页数 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 所有的告警规则个数 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 告警规则信息列表 + Items []*AlarmRuleData `json:"Items,omitnil,omitempty" name:"Items"` +} + +// Predefined struct for user +type ListCodeFolderContentsRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 文件夹名称/代码文件名称搜索 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // 只查询文件夹 + OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` + + // 是否只查询用户自己创建的代码文件 + OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` +} + +type ListCodeFolderContentsRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 文件夹名称/代码文件名称搜索 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // 只查询文件夹 + OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` + + // 是否只查询用户自己创建的代码文件 + OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` +} + +func (r *ListCodeFolderContentsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListCodeFolderContentsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ParentFolderPath") + delete(f, "Keyword") + delete(f, "OnlyFolderNode") + delete(f, "OnlyUserSelfScript") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListCodeFolderContentsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListCodeFolderContentsResponseParams struct { + // 结果 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data []*CodeFolderNode `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListCodeFolderContentsResponse struct { + *tchttp.BaseResponse + Response *ListCodeFolderContentsResponseParams `json:"Response"` +} + +func (r *ListCodeFolderContentsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListCodeFolderContentsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListDataBackfillInstancesRequestParams struct { + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 补录计划Id + DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 页码 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListDataBackfillInstancesRequest struct { + *tchttp.BaseRequest + + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 补录计划Id + DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 页码 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListDataBackfillInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDataBackfillInstancesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "DataBackfillPlanId") + delete(f, "TaskId") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDataBackfillInstancesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListDataBackfillInstancesResponseParams struct { + // 单个补录计划下的所有补录实例 + Data *BackfillInstanceCollection `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListDataBackfillInstancesResponse struct { + *tchttp.BaseResponse + Response *ListDataBackfillInstancesResponseParams `json:"Response"` +} + +func (r *ListDataBackfillInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDataBackfillInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListDownstreamOpsTasksRequestParams struct { + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 分页页码 + PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListDownstreamOpsTasksRequest struct { + *tchttp.BaseRequest + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 分页页码 + PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListDownstreamOpsTasksRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDownstreamOpsTasksRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TaskId") + delete(f, "ProjectId") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamOpsTasksRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListDownstreamOpsTasksResponseParams struct { + // 下游依赖详情 + Data *ChildDependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListDownstreamOpsTasksResponse struct { + *tchttp.BaseResponse + Response *ListDownstreamOpsTasksResponseParams `json:"Response"` +} + +func (r *ListDownstreamOpsTasksResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDownstreamOpsTasksResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListDownstreamTaskInstancesRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **实例唯一标识** + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **时区** timeZone, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // **页码,整型**配合pageSize使用且不能小于1, 默认值1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // **每页显示的条数,默认为10,最小值为1、最大值为100 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListDownstreamTaskInstancesRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **实例唯一标识** + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **时区** timeZone, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // **页码,整型**配合pageSize使用且不能小于1, 默认值1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // **每页显示的条数,默认为10,最小值为1、最大值为100 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListDownstreamTaskInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDownstreamTaskInstancesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "InstanceKey") + delete(f, "TimeZone") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamTaskInstancesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListDownstreamTaskInstancesResponseParams struct { + // 直接下游实例列表 + Data *TaskInstancePage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListDownstreamTaskInstancesResponse struct { + *tchttp.BaseResponse + Response *ListDownstreamTaskInstancesResponseParams `json:"Response"` +} + +func (r *ListDownstreamTaskInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDownstreamTaskInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListDownstreamTasksRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 分页大小 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页页码 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListDownstreamTasksRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 分页大小 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页页码 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListDownstreamTasksRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDownstreamTasksRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamTasksRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListDownstreamTasksResponseParams struct { + // 下游依赖详情 + Data *DependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListDownstreamTasksResponse struct { + *tchttp.BaseResponse + Response *ListDownstreamTasksResponseParams `json:"Response"` +} + +func (r *ListDownstreamTasksResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDownstreamTasksResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListOpsAlarmRulesRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 分页的页数,默认为1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的条数,默认为20,最小值为1、最大值为200 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 监控对象类型, 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 + MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` + + // 根据任务id查询告警规则 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 查询配置对应告警类型的告警规则 + // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; + // 项目波动告警 + // projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; + // 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 + AlarmType *string `json:"AlarmType,omitnil,omitempty" name:"AlarmType"` + + // 查询配置了对应告警级别的告警规则 + // 告警级别 1.普通、2.重要、3.紧急 + AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 查询配置对应告警接收人的告警规则 + AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` + + // 根据告警规则id/规则名称查询对应的告警规则 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // 告警规则创建人过滤 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 告警规则创建时间范围起始时间, 格式如2025-08-17 00:00:00 + CreateTimeFrom *string `json:"CreateTimeFrom,omitnil,omitempty" name:"CreateTimeFrom"` + + // 告警规则创建时间范围结束时间,格式如"2025-08-26 23:59:59" + CreateTimeTo *string `json:"CreateTimeTo,omitnil,omitempty" name:"CreateTimeTo"` + + // 最后更新时间过滤告警规则, 格式如"2025-08-26 00:00:00" + UpdateTimeFrom *string `json:"UpdateTimeFrom,omitnil,omitempty" name:"UpdateTimeFrom"` + + // 最后更新时间过滤告警规则 格式如: "2025-08-26 23:59:59" + UpdateTimeTo *string `json:"UpdateTimeTo,omitnil,omitempty" name:"UpdateTimeTo"` +} + +type ListOpsAlarmRulesRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 分页的页数,默认为1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的条数,默认为20,最小值为1、最大值为200 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 监控对象类型, 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 + MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` + + // 根据任务id查询告警规则 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 查询配置对应告警类型的告警规则 + // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; + // 项目波动告警 + // projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; + // 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 + AlarmType *string `json:"AlarmType,omitnil,omitempty" name:"AlarmType"` + + // 查询配置了对应告警级别的告警规则 + // 告警级别 1.普通、2.重要、3.紧急 + AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 查询配置对应告警接收人的告警规则 + AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` + + // 根据告警规则id/规则名称查询对应的告警规则 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // 告警规则创建人过滤 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 告警规则创建时间范围起始时间, 格式如2025-08-17 00:00:00 + CreateTimeFrom *string `json:"CreateTimeFrom,omitnil,omitempty" name:"CreateTimeFrom"` + + // 告警规则创建时间范围结束时间,格式如"2025-08-26 23:59:59" + CreateTimeTo *string `json:"CreateTimeTo,omitnil,omitempty" name:"CreateTimeTo"` + + // 最后更新时间过滤告警规则, 格式如"2025-08-26 00:00:00" + UpdateTimeFrom *string `json:"UpdateTimeFrom,omitnil,omitempty" name:"UpdateTimeFrom"` + + // 最后更新时间过滤告警规则 格式如: "2025-08-26 23:59:59" + UpdateTimeTo *string `json:"UpdateTimeTo,omitnil,omitempty" name:"UpdateTimeTo"` +} + +func (r *ListOpsAlarmRulesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListOpsAlarmRulesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "MonitorObjectType") + delete(f, "TaskId") + delete(f, "AlarmType") + delete(f, "AlarmLevel") + delete(f, "AlarmRecipientId") + delete(f, "Keyword") + delete(f, "CreateUserUin") + delete(f, "CreateTimeFrom") + delete(f, "CreateTimeTo") + delete(f, "UpdateTimeFrom") + delete(f, "UpdateTimeTo") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsAlarmRulesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListOpsAlarmRulesResponseParams struct { + // 告警信息信息响应 + Data *ListAlarmRulesResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListOpsAlarmRulesResponse struct { + *tchttp.BaseResponse + Response *ListOpsAlarmRulesResponseParams `json:"Response"` +} + +func (r *ListOpsAlarmRulesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListOpsAlarmRulesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ListOpsTasksPage struct { + // 结果总数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 记录列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*TaskOpsInfo `json:"Items,omitnil,omitempty" name:"Items"` + + // 页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +// Predefined struct for user +type ListOpsTasksRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 分页大小 + PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码 + PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 任务类型Id + // - 20:通用数据同步 + // - 25:ETLTaskType + // - 26:ETLTaskType + // - 30:python + // - 31:pyspark + // - 34:HiveSQLTaskType + // - 35:shell + // - 36:SparkSQLTaskType + // - 21:JDBCSQLTaskType + // - 32:DLCTaskType + // - 33:ImpalaTaskType + // - 40:CDWTaskType + // - 41:kettle + // - 46:DLCSparkTaskType + // - 47:TiOne机器学习 + // - 48:TrinoTaskType + // - 50:DLCPyspark39:spark + // - 92:mr + // - 38:shell脚本 + // - 70:hivesql脚本 + // - 1000:自定义业务通用 + TaskTypeId *string `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 工作流Id + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 责任人id + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 文件夹Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 数据源id + SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` + + // 目标数据源id + TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` + + // 资源组id + ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + + // 任务周期类型 + // * ONEOFF_CYCLE: 一次性 + // * YEAR_CYCLE: 年 + // * MONTH_CYCLE: 月 + // * WEEK_CYCLE: 周 + // * DAY_CYCLE: 天 + // * HOUR_CYCLE: 小时 + // * MINUTE_CYCLE: 分钟 + // * CRONTAB_CYCLE: crontab表达式类型 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 任务状态: + // - Y: 运行 + // - F: 停止 + // - O: 冻结 + // - T: 停止中 + // - INVALID: 已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 时区, 默认默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` +} + +type ListOpsTasksRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 分页大小 + PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码 + PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 任务类型Id + // - 20:通用数据同步 + // - 25:ETLTaskType + // - 26:ETLTaskType + // - 30:python + // - 31:pyspark + // - 34:HiveSQLTaskType + // - 35:shell + // - 36:SparkSQLTaskType + // - 21:JDBCSQLTaskType + // - 32:DLCTaskType + // - 33:ImpalaTaskType + // - 40:CDWTaskType + // - 41:kettle + // - 46:DLCSparkTaskType + // - 47:TiOne机器学习 + // - 48:TrinoTaskType + // - 50:DLCPyspark39:spark + // - 92:mr + // - 38:shell脚本 + // - 70:hivesql脚本 + // - 1000:自定义业务通用 + TaskTypeId *string `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 工作流Id + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 责任人id + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 文件夹Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 数据源id + SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` + + // 目标数据源id + TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` + + // 资源组id + ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + + // 任务周期类型 + // * ONEOFF_CYCLE: 一次性 + // * YEAR_CYCLE: 年 + // * MONTH_CYCLE: 月 + // * WEEK_CYCLE: 周 + // * DAY_CYCLE: 天 + // * HOUR_CYCLE: 小时 + // * MINUTE_CYCLE: 分钟 + // * CRONTAB_CYCLE: crontab表达式类型 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 任务状态: + // - Y: 运行 + // - F: 停止 + // - O: 冻结 + // - T: 停止中 + // - INVALID: 已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 时区, 默认默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` +} + +func (r *ListOpsTasksRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListOpsTasksRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "PageSize") + delete(f, "PageNumber") + delete(f, "TaskTypeId") + delete(f, "WorkflowId") + delete(f, "WorkflowName") + delete(f, "OwnerUin") + delete(f, "FolderId") + delete(f, "SourceServiceId") + delete(f, "TargetServiceId") + delete(f, "ExecutorGroupId") + delete(f, "CycleType") + delete(f, "Status") + delete(f, "TimeZone") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsTasksRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListOpsTasksResponseParams struct { + // 任务列表 + Data *ListOpsTasksPage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListOpsTasksResponse struct { + *tchttp.BaseResponse + Response *ListOpsTasksResponseParams `json:"Response"` +} + +func (r *ListOpsTasksResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListOpsTasksResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListOpsWorkflowsRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 分页页码 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 文件Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 工作流状态筛选 + // * ALL_RUNNING : 全部调度中 + // * ALL_FREEZED : 全部已暂停 + // * ALL_STOPPTED : 全部已下线 + // * PART_RUNNING : 部分调度中 + // * ALL_NO_RUNNING : 全部未调度 + // * ALL_INVALID : 全部已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 负责人Id + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 工作流类型筛选, 支持值 Cycle或Manual. 默认只查询 Cycle + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // 工作流关键词过滤,支持工作流 Id/name 模糊匹配 + KeyWord *string `json:"KeyWord,omitnil,omitempty" name:"KeyWord"` + + // 排序项,可选CreateTime、TaskCount + SortItem *string `json:"SortItem,omitnil,omitempty" name:"SortItem"` + + // 排序方式,DESC或ASC, 大写 + SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` + + // 创建人Id + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 更新时间,格式yyyy-MM-dd HH:mm:ss + ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + + // 创建时间,格式yyyy-MM-dd HH:mm:ss + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` +} + +type ListOpsWorkflowsRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 分页页码 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 文件Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 工作流状态筛选 + // * ALL_RUNNING : 全部调度中 + // * ALL_FREEZED : 全部已暂停 + // * ALL_STOPPTED : 全部已下线 + // * PART_RUNNING : 部分调度中 + // * ALL_NO_RUNNING : 全部未调度 + // * ALL_INVALID : 全部已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 负责人Id + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 工作流类型筛选, 支持值 Cycle或Manual. 默认只查询 Cycle + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // 工作流关键词过滤,支持工作流 Id/name 模糊匹配 + KeyWord *string `json:"KeyWord,omitnil,omitempty" name:"KeyWord"` + + // 排序项,可选CreateTime、TaskCount + SortItem *string `json:"SortItem,omitnil,omitempty" name:"SortItem"` + + // 排序方式,DESC或ASC, 大写 + SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` + + // 创建人Id + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 更新时间,格式yyyy-MM-dd HH:mm:ss + ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + + // 创建时间,格式yyyy-MM-dd HH:mm:ss + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` +} + +func (r *ListOpsWorkflowsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListOpsWorkflowsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "FolderId") + delete(f, "Status") + delete(f, "OwnerUin") + delete(f, "WorkflowType") + delete(f, "KeyWord") + delete(f, "SortItem") + delete(f, "SortType") + delete(f, "CreateUserUin") + delete(f, "ModifyTime") + delete(f, "CreateTime") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsWorkflowsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListOpsWorkflowsResponseParams struct { + // 工作流列表 + Data *OpsWorkflows `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListOpsWorkflowsResponse struct { + *tchttp.BaseResponse + Response *ListOpsWorkflowsResponseParams `json:"Response"` +} + +func (r *ListOpsWorkflowsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListOpsWorkflowsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListResourceFilesRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据页数,大于等于1。默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数,最小为10条,最大为200 条。默认10 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 资源文件名称(模糊搜索关键词) + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // 资源文件所属文件夹路径(如/a/b/c,查询c文件夹下的资源文件) + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 创建人ID, 可通过DescribeCurrentUserInfo接口获取 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 更新时间范围,开始时间, 格式yyyy-MM-dd HH:mm:ss + ModifyTimeStart *string `json:"ModifyTimeStart,omitnil,omitempty" name:"ModifyTimeStart"` + + // 更新时间范围,结束时间, 格式yyyy-MM-dd HH:mm:ss + ModifyTimeEnd *string `json:"ModifyTimeEnd,omitnil,omitempty" name:"ModifyTimeEnd"` + + // 创建时间范围,开始时间, 格式yyyy-MM-dd HH:mm:ss + CreateTimeStart *string `json:"CreateTimeStart,omitnil,omitempty" name:"CreateTimeStart"` + + // 创建时间范围,结束时间, 格式yyyy-MM-dd HH:mm:ss + CreateTimeEnd *string `json:"CreateTimeEnd,omitnil,omitempty" name:"CreateTimeEnd"` +} + +type ListResourceFilesRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据页数,大于等于1。默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数,最小为10条,最大为200 条。默认10 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 资源文件名称(模糊搜索关键词) + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // 资源文件所属文件夹路径(如/a/b/c,查询c文件夹下的资源文件) + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 创建人ID, 可通过DescribeCurrentUserInfo接口获取 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 更新时间范围,开始时间, 格式yyyy-MM-dd HH:mm:ss + ModifyTimeStart *string `json:"ModifyTimeStart,omitnil,omitempty" name:"ModifyTimeStart"` + + // 更新时间范围,结束时间, 格式yyyy-MM-dd HH:mm:ss + ModifyTimeEnd *string `json:"ModifyTimeEnd,omitnil,omitempty" name:"ModifyTimeEnd"` + + // 创建时间范围,开始时间, 格式yyyy-MM-dd HH:mm:ss + CreateTimeStart *string `json:"CreateTimeStart,omitnil,omitempty" name:"CreateTimeStart"` + + // 创建时间范围,结束时间, 格式yyyy-MM-dd HH:mm:ss + CreateTimeEnd *string `json:"CreateTimeEnd,omitnil,omitempty" name:"CreateTimeEnd"` +} + +func (r *ListResourceFilesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListResourceFilesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "ResourceName") + delete(f, "ParentFolderPath") + delete(f, "CreateUserUin") + delete(f, "ModifyTimeStart") + delete(f, "ModifyTimeEnd") + delete(f, "CreateTimeStart") + delete(f, "CreateTimeEnd") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListResourceFilesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListResourceFilesResponseParams struct { + // 获取资源文件列表 + Data *ResourceFilePage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListResourceFilesResponse struct { + *tchttp.BaseResponse + Response *ListResourceFilesResponseParams `json:"Response"` +} + +func (r *ListResourceFilesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListResourceFilesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListResourceFoldersRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源文件夹绝对路径,取值示例 + // /wedata/test + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 数据页数,大于等于1。默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数,最小为10条,最大为200 条。默认10 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListResourceFoldersRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源文件夹绝对路径,取值示例 + // /wedata/test + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 数据页数,大于等于1。默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数,最小为10条,最大为200 条。默认10 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListResourceFoldersRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListResourceFoldersRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ParentFolderPath") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListResourceFoldersRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListResourceFoldersResponseParams struct { + // 分页的资源文件夹查询结果 + Data *ResourceFolderPage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListResourceFoldersResponse struct { + *tchttp.BaseResponse + Response *ListResourceFoldersResponseParams `json:"Response"` +} + +func (r *ListResourceFoldersResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListResourceFoldersResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListSQLFolderContentsRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹path,/aaa/bbb/ccc,路径头需带斜杠,查询根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 文件夹名称/脚本名称搜索 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // 只查询文件夹 + OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` + + // 是否只查询用户自己创建的脚本 + OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` + + // 权限范围:SHARED, PRIVATE + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` +} + +type ListSQLFolderContentsRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹path,/aaa/bbb/ccc,路径头需带斜杠,查询根目录传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 文件夹名称/脚本名称搜索 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // 只查询文件夹 + OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` + + // 是否只查询用户自己创建的脚本 + OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` + + // 权限范围:SHARED, PRIVATE + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` +} + +func (r *ListSQLFolderContentsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListSQLFolderContentsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ParentFolderPath") + delete(f, "Keyword") + delete(f, "OnlyFolderNode") + delete(f, "OnlyUserSelfScript") + delete(f, "AccessScope") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListSQLFolderContentsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListSQLFolderContentsResponseParams struct { + // 结果列表 + Data []*SQLFolderNode `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListSQLFolderContentsResponse struct { + *tchttp.BaseResponse + Response *ListSQLFolderContentsResponseParams `json:"Response"` +} + +func (r *ListSQLFolderContentsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListSQLFolderContentsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListSQLScriptRunsRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 脚本id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 任务id + JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` + + // 搜索关键词 + SearchWord *string `json:"SearchWord,omitnil,omitempty" name:"SearchWord"` + + // 执行人 + ExecuteUserUin *string `json:"ExecuteUserUin,omitnil,omitempty" name:"ExecuteUserUin"` + + // 开始时间 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 结束时间 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` +} + +type ListSQLScriptRunsRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 脚本id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 任务id + JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` + + // 搜索关键词 + SearchWord *string `json:"SearchWord,omitnil,omitempty" name:"SearchWord"` + + // 执行人 + ExecuteUserUin *string `json:"ExecuteUserUin,omitnil,omitempty" name:"ExecuteUserUin"` + + // 开始时间 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 结束时间 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` +} + +func (r *ListSQLScriptRunsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListSQLScriptRunsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ScriptId") + delete(f, "JobId") + delete(f, "SearchWord") + delete(f, "ExecuteUserUin") + delete(f, "StartTime") + delete(f, "EndTime") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListSQLScriptRunsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListSQLScriptRunsResponseParams struct { + // 数据探索任务 + Data []*JobDto `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListSQLScriptRunsResponse struct { + *tchttp.BaseResponse + Response *ListSQLScriptRunsResponseParams `json:"Response"` +} + +func (r *ListSQLScriptRunsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListSQLScriptRunsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ListTaskInfo struct { + // 任务数组 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*TaskBaseAttribute `json:"Items,omitnil,omitempty" name:"Items"` + + // 当前请求的数据页数 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 当前请求的数据页条数 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 满足查询条件的数据总条数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 满足查询条件的数据总页数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` +} + +// Predefined struct for user +type ListTaskInstanceExecutionsRequestParams struct { + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例唯一标识,可以通过ListInstances获取 + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // 每页大小,默认10, 最大200 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码,默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` +} + +type ListTaskInstanceExecutionsRequest struct { + *tchttp.BaseRequest + + // 所属项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例唯一标识,可以通过ListInstances获取 + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // 每页大小,默认10, 最大200 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码,默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` +} + +func (r *ListTaskInstanceExecutionsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTaskInstanceExecutionsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "InstanceKey") + delete(f, "TimeZone") + delete(f, "PageSize") + delete(f, "PageNumber") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTaskInstanceExecutionsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListTaskInstanceExecutionsResponseParams struct { + // 实例详情 + Data *TaskInstanceExecutions `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListTaskInstanceExecutionsResponse struct { + *tchttp.BaseResponse + Response *ListTaskInstanceExecutionsResponseParams `json:"Response"` +} + +func (r *ListTaskInstanceExecutionsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTaskInstanceExecutionsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListTaskInstancesRequestParams struct { + // **项目ID** + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **页码,整型** + // 配合pageSize使用且不能小于1, 默认值1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // **每页显示的条数,默认为10,最小值为1、最大值为100 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // **任务名称 或 任务ID** + // 支持模糊搜索过滤, 多个用 英文逗号, 分割 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // **实例类型** + // - 0 表示补录类型 + // - 1 表示周期实例 + // - 2 表示非周期实例 + InstanceType *uint64 `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` + + // **实例状态** - WAIT_EVENT: 等待事件 - WAIT_UPSTREAM: 等待上游 - WAIT_RUN: 等待运行 - RUNNING: 运行中 - SKIP_RUNNING: 跳过运行 - FAILED_RETRY: 失败重试 - EXPIRED: 失败 - COMPLETED: 成功 + InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` + + // **任务类型Id** + TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // **任务周期类型** * ONEOFF_CYCLE: 一次性 * YEAR_CYCLE: 年 * MONTH_CYCLE: 月 * WEEK_CYCLE: 周 * DAY_CYCLE: 天 * HOUR_CYCLE: 小时 * MINUTE_CYCLE: 分钟 * CRONTAB_CYCLE: crontab表达式类型 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // **任务负责人id** + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // **任务所属文件id** + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // **任务所属工作流id** + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // **执行资源组Id** + ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + + // **实例计划调度时间过滤条件**过滤起始时间,时间格式为 yyyy-MM-dd HH:mm:ss + ScheduleTimeFrom *string `json:"ScheduleTimeFrom,omitnil,omitempty" name:"ScheduleTimeFrom"` + + // **实例计划调度时间过滤条件**过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss + ScheduleTimeTo *string `json:"ScheduleTimeTo,omitnil,omitempty" name:"ScheduleTimeTo"` + + // **实例执行开始时间过滤条件**过滤起始时间,时间格式为 yyyy-MM-dd HH:mm:ss + StartTimeFrom *string `json:"StartTimeFrom,omitnil,omitempty" name:"StartTimeFrom"` + + // **实例执行开始时间过滤条件** + // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss + StartTimeTo *string `json:"StartTimeTo,omitnil,omitempty" name:"StartTimeTo"` + + // **实例最近更新时间过滤条件** + // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss + LastUpdateTimeFrom *string `json:"LastUpdateTimeFrom,omitnil,omitempty" name:"LastUpdateTimeFrom"` + + // **实例最近更新时间过滤条件** + // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss + LastUpdateTimeTo *string `json:"LastUpdateTimeTo,omitnil,omitempty" name:"LastUpdateTimeTo"` + + // **查询结果排序字段**- SCHEDULE_DATE 表示 根据计划调度时间排序- START_TIME 表示 根据实例开始执行时间排序- END_TIME 表示 根据实例结束执行时间排序- COST_TIME 表示 根据实例执行时长排序 + SortColumn *string `json:"SortColumn,omitnil,omitempty" name:"SortColumn"` + + // **实例排序方式** + // + // - ASC + // - DESC + SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` +} + +type ListTaskInstancesRequest struct { + *tchttp.BaseRequest + + // **项目ID** + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **页码,整型** + // 配合pageSize使用且不能小于1, 默认值1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // **每页显示的条数,默认为10,最小值为1、最大值为100 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // **任务名称 或 任务ID** + // 支持模糊搜索过滤, 多个用 英文逗号, 分割 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // **时区**timeZone, 传入的时间字符串的所在时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // **实例类型** + // - 0 表示补录类型 + // - 1 表示周期实例 + // - 2 表示非周期实例 + InstanceType *uint64 `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` + + // **实例状态** - WAIT_EVENT: 等待事件 - WAIT_UPSTREAM: 等待上游 - WAIT_RUN: 等待运行 - RUNNING: 运行中 - SKIP_RUNNING: 跳过运行 - FAILED_RETRY: 失败重试 - EXPIRED: 失败 - COMPLETED: 成功 + InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` + + // **任务类型Id** + TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // **任务周期类型** * ONEOFF_CYCLE: 一次性 * YEAR_CYCLE: 年 * MONTH_CYCLE: 月 * WEEK_CYCLE: 周 * DAY_CYCLE: 天 * HOUR_CYCLE: 小时 * MINUTE_CYCLE: 分钟 * CRONTAB_CYCLE: crontab表达式类型 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // **任务负责人id** + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // **任务所属文件id** + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // **任务所属工作流id** + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // **执行资源组Id** + ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + + // **实例计划调度时间过滤条件**过滤起始时间,时间格式为 yyyy-MM-dd HH:mm:ss + ScheduleTimeFrom *string `json:"ScheduleTimeFrom,omitnil,omitempty" name:"ScheduleTimeFrom"` + + // **实例计划调度时间过滤条件**过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss + ScheduleTimeTo *string `json:"ScheduleTimeTo,omitnil,omitempty" name:"ScheduleTimeTo"` + + // **实例执行开始时间过滤条件**过滤起始时间,时间格式为 yyyy-MM-dd HH:mm:ss + StartTimeFrom *string `json:"StartTimeFrom,omitnil,omitempty" name:"StartTimeFrom"` + + // **实例执行开始时间过滤条件** + // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss + StartTimeTo *string `json:"StartTimeTo,omitnil,omitempty" name:"StartTimeTo"` + + // **实例最近更新时间过滤条件** + // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss + LastUpdateTimeFrom *string `json:"LastUpdateTimeFrom,omitnil,omitempty" name:"LastUpdateTimeFrom"` + + // **实例最近更新时间过滤条件** + // 过滤截止时间,时间格式为 yyyy-MM-dd HH:mm:ss + LastUpdateTimeTo *string `json:"LastUpdateTimeTo,omitnil,omitempty" name:"LastUpdateTimeTo"` + + // **查询结果排序字段**- SCHEDULE_DATE 表示 根据计划调度时间排序- START_TIME 表示 根据实例开始执行时间排序- END_TIME 表示 根据实例结束执行时间排序- COST_TIME 表示 根据实例执行时长排序 + SortColumn *string `json:"SortColumn,omitnil,omitempty" name:"SortColumn"` + + // **实例排序方式** + // + // - ASC + // - DESC + SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` +} + +func (r *ListTaskInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTaskInstancesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "Keyword") + delete(f, "TimeZone") + delete(f, "InstanceType") + delete(f, "InstanceState") + delete(f, "TaskTypeId") + delete(f, "CycleType") + delete(f, "OwnerUin") + delete(f, "FolderId") + delete(f, "WorkflowId") + delete(f, "ExecutorGroupId") + delete(f, "ScheduleTimeFrom") + delete(f, "ScheduleTimeTo") + delete(f, "StartTimeFrom") + delete(f, "StartTimeTo") + delete(f, "LastUpdateTimeFrom") + delete(f, "LastUpdateTimeTo") + delete(f, "SortColumn") + delete(f, "SortType") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTaskInstancesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListTaskInstancesResponseParams struct { + // 实例结果集 + Data *TaskInstancePage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListTaskInstancesResponse struct { + *tchttp.BaseResponse + Response *ListTaskInstancesResponseParams `json:"Response"` +} + +func (r *ListTaskInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTaskInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ListTaskVersions struct { + // 记录列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*TaskVersion `json:"Items,omitnil,omitempty" name:"Items"` + + // 满足查询条件的数据总条数。 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 满足查询条件的数据总页数。 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 当前页记录数 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageCount *uint64 `json:"PageCount,omitnil,omitempty" name:"PageCount"` + + // 当前请求的数据页条数。 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 当前请求的数据页数。 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` +} + +// Predefined struct for user +type ListTaskVersionsRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 保存版本:SAVE + // 提交版本:SUBMIT + // 默认为SAVE + TaskVersionType *string `json:"TaskVersionType,omitnil,omitempty" name:"TaskVersionType"` + + // 请求的数据页数。默认值为1,取值大于等于1。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListTaskVersionsRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 保存版本:SAVE + // 提交版本:SUBMIT + // 默认为SAVE + TaskVersionType *string `json:"TaskVersionType,omitnil,omitempty" name:"TaskVersionType"` + + // 请求的数据页数。默认值为1,取值大于等于1。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListTaskVersionsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTaskVersionsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + delete(f, "TaskVersionType") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTaskVersionsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListTaskVersionsResponseParams struct { + // 版本列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *ListTaskVersions `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListTaskVersionsResponse struct { + *tchttp.BaseResponse + Response *ListTaskVersionsResponseParams `json:"Response"` +} + +func (r *ListTaskVersionsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTaskVersionsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListTasksRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 请求的数据页数。默认值为1,取值大于等于1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 任务名称 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 所属工作流ID + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 责任人ID + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 任务类型 + TaskTypeId *int64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 任务状态 + // * N: 新建 + // * Y: 调度中 + // * F: 已下线 + // * O: 已暂停 + // * T: 下线中 + // * INVALID: 已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 提交状态 + Submit *bool `json:"Submit,omitnil,omitempty" name:"Submit"` + + // BundleId信息 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // 创建人ID + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 修改时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 + ModifyTime []*string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + + // 创建时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 + CreateTime []*string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` +} + +type ListTasksRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 请求的数据页数。默认值为1,取值大于等于1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 任务名称 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 所属工作流ID + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 责任人ID + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 任务类型 + TaskTypeId *int64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 任务状态 + // * N: 新建 + // * Y: 调度中 + // * F: 已下线 + // * O: 已暂停 + // * T: 下线中 + // * INVALID: 已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 提交状态 + Submit *bool `json:"Submit,omitnil,omitempty" name:"Submit"` + + // BundleId信息 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // 创建人ID + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 修改时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 + ModifyTime []*string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + + // 创建时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 + CreateTime []*string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` +} + +func (r *ListTasksRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTasksRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "TaskName") + delete(f, "WorkflowId") + delete(f, "OwnerUin") + delete(f, "TaskTypeId") + delete(f, "Status") + delete(f, "Submit") + delete(f, "BundleId") + delete(f, "CreateUserUin") + delete(f, "ModifyTime") + delete(f, "CreateTime") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTasksRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListTasksResponseParams struct { + // 任务分页信息 + Data *ListTaskInfo `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListTasksResponse struct { + *tchttp.BaseResponse + Response *ListTasksResponseParams `json:"Response"` +} + +func (r *ListTasksResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTasksResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListUpstreamOpsTasksRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 分页页码 + PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListUpstreamOpsTasksRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 分页页码 + PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListUpstreamOpsTasksRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListUpstreamOpsTasksRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListUpstreamOpsTasksRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListUpstreamOpsTasksResponseParams struct { + // 上游任务详情 + Data *ParentDependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListUpstreamOpsTasksResponse struct { + *tchttp.BaseResponse + Response *ListUpstreamOpsTasksResponseParams `json:"Response"` +} + +func (r *ListUpstreamOpsTasksResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListUpstreamOpsTasksResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListUpstreamTaskInstancesRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **实例唯一标识** + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **时区** timeZone, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // **页码,整型**配合pageSize使用且不能小于1, 默认值1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // **每页显示的条数,默认为10,最小值为1、最大值为100 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListUpstreamTaskInstancesRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **实例唯一标识** + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // **时区** timeZone, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + + // **页码,整型**配合pageSize使用且不能小于1, 默认值1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // **每页显示的条数,默认为10,最小值为1、最大值为100 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListUpstreamTaskInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListUpstreamTaskInstancesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "InstanceKey") + delete(f, "TimeZone") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListUpstreamTaskInstancesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListUpstreamTaskInstancesResponseParams struct { + // 上游实例列表 + Data *TaskInstancePage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListUpstreamTaskInstancesResponse struct { + *tchttp.BaseResponse + Response *ListUpstreamTaskInstancesResponseParams `json:"Response"` +} + +func (r *ListUpstreamTaskInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListUpstreamTaskInstancesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListUpstreamTasksRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 请求的数据页数。默认值为1,取值大于等于1。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 请求的数据页数。默认值为1,取值大于等于1。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListUpstreamTasksRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 请求的数据页数。默认值为1,取值大于等于1。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 请求的数据页数。默认值为1,取值大于等于1。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListUpstreamTasksRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListUpstreamTasksRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListUpstreamTasksRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListUpstreamTasksResponseParams struct { + // 上游任务详情 + Data *DependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListUpstreamTasksResponse struct { + *tchttp.BaseResponse + Response *ListUpstreamTasksResponseParams `json:"Response"` +} + +func (r *ListUpstreamTasksResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListUpstreamTasksResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListWorkflowFoldersRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹绝对路径,如/abc/de,如果是根目录则传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 数据页数,大于等于1。默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数,最小为10条,最大为200 条。默认10 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ListWorkflowFoldersRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 父文件夹绝对路径,如/abc/de,如果是根目录则传/ + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 数据页数,大于等于1。默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数,最小为10条,最大为200 条。默认10 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +func (r *ListWorkflowFoldersRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListWorkflowFoldersRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ParentFolderPath") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListWorkflowFoldersRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListWorkflowFoldersResponseParams struct { + // 分页的文件夹查询结果 + Data *WorkflowFolderPage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListWorkflowFoldersResponse struct { + *tchttp.BaseResponse + Response *ListWorkflowFoldersResponseParams `json:"Response"` +} + +func (r *ListWorkflowFoldersResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListWorkflowFoldersResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ListWorkflowInfo struct { + // 列表item + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*WorkflowInfo `json:"Items,omitnil,omitempty" name:"Items"` + + // 满足查询条件的数据总页数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 当前请求的数据页数 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 当前请求的数据页条数 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 满足查询条件的数据总条数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` +} + +// Predefined struct for user +type ListWorkflowsRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 请求的数据页数。默认值为1,取值大于等于1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 搜索关键词 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // 工作流所属文件夹 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 工作流类型,cycle和manual + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // bundleId项 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // 负责人ID + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 创建人ID + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 修改时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 + ModifyTime []*string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + + // 创建时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 + CreateTime []*string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` +} + +type ListWorkflowsRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 请求的数据页数。默认值为1,取值大于等于1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数。默认值为10 ,最小值为10,最大值为200 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 搜索关键词 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + + // 工作流所属文件夹 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 工作流类型,cycle和manual + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // bundleId项 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // 负责人ID + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 创建人ID + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 修改时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 + ModifyTime []*string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + + // 创建时间区间 yyyy-MM-dd HH:mm:ss,需要在数组填入两个时间 + CreateTime []*string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` +} + +func (r *ListWorkflowsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListWorkflowsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "Keyword") + delete(f, "ParentFolderPath") + delete(f, "WorkflowType") + delete(f, "BundleId") + delete(f, "OwnerUin") + delete(f, "CreateUserUin") + delete(f, "ModifyTime") + delete(f, "CreateTime") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListWorkflowsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListWorkflowsResponseParams struct { + // 查询工作流分页信息 + Data *ListWorkflowInfo `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListWorkflowsResponse struct { + *tchttp.BaseResponse + Response *ListWorkflowsResponseParams `json:"Response"` +} + +func (r *ListWorkflowsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListWorkflowsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyAlarmRuleResult struct { + // 是否更新成功 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +type NotebookSessionInfo struct { + // 会话ID + NotebookSessionId *string `json:"NotebookSessionId,omitnil,omitempty" name:"NotebookSessionId"` + + // 会话名称 + NotebookSessionName *string `json:"NotebookSessionName,omitnil,omitempty" name:"NotebookSessionName"` +} + +type NotificationFatigue struct { + // 告警次数 + NotifyCount *uint64 `json:"NotifyCount,omitnil,omitempty" name:"NotifyCount"` + + // 告警间隔,分钟 + NotifyInterval *uint64 `json:"NotifyInterval,omitnil,omitempty" name:"NotifyInterval"` + + // 免打扰时间,例如示例值 + // [{DaysOfWeek: [1, 2], StartTime: "00:00:00", EndTime: "09:00:00"}] + // 每周一、周二的00:00到09:00免打扰 + // 注意:此字段可能返回 null,表示取不到有效值。 + QuietIntervals []*AlarmQuietInterval `json:"QuietIntervals,omitnil,omitempty" name:"QuietIntervals"` +} + +type OpsAsyncJobDetail struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 操作id + AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` + + // 异步操作类型 + AsyncType *string `json:"AsyncType,omitnil,omitempty" name:"AsyncType"` + + // 异步操作状态:初始状态: INIT; 运行中: RUNNING; 成功: SUCCESS; 失败: FAIL; 部分成功: PART_SUCCESS + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 错误信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + ErrorDesc *string `json:"ErrorDesc,omitnil,omitempty" name:"ErrorDesc"` + + // 子操作总数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalSubProcessCount *uint64 `json:"TotalSubProcessCount,omitnil,omitempty" name:"TotalSubProcessCount"` + + // 已完成的子操作个数 + // 注意:此字段可能返回 null,表示取不到有效值。 + FinishedSubProcessCount *uint64 `json:"FinishedSubProcessCount,omitnil,omitempty" name:"FinishedSubProcessCount"` + + // 已成功的子操作个数 + // 注意:此字段可能返回 null,表示取不到有效值。 + SuccessSubProcessCount *uint64 `json:"SuccessSubProcessCount,omitnil,omitempty" name:"SuccessSubProcessCount"` + + // 操作人id + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 操作创建时间 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 更新时间 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` +} + +type OpsAsyncResponse struct { + // 异步执行记录Id + AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` +} + +type OpsTaskDepend struct { + // 任务Id + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 工作流id + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 项目id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 项目名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` + + // 任务状态: + // - Y: 调度中 + // - F: 已下线 + // - O: 已暂停 + // - T: 下线中 + // - INVALID: 已失效 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 任务类型Id: + // * 21:JDBC SQL + // * 23:TDSQL-PostgreSQL + // * 26:OfflineSynchronization + // * 30:Python + // * 31:PySpark + // * 33:Impala + // * 34:Hive SQL + // * 35:Shell + // * 36:Spark SQL + // * 38:Shell Form Mode + // * 39:Spark + // * 40:TCHouse-P + // * 41:Kettle + // * 42:Tchouse-X + // * 43:TCHouse-X SQL + // * 46:DLC Spark + // * 47:TiOne + // * 48:Trino + // * 50:DLC PySpark + // * 92:MapReduce + // * 130:Branch Node + // * 131:Merged Node + // * 132:Notebook + // * 133:SSH + // * 134:StarRocks + // * 137:For-each + // * 138:Setats SQL + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 任务类型描述 + // - 20 : 通用数据同步 + // - 25 : ETLTaskType + // - 26 : ETLTaskType + // - 30 : python + // - 31 : pyspark + // - 34 : hivesql + // - 35 : shell + // - 36 : sparksql + // - 21 : jdbcsql + // - 32 : dlc + // - 33 : ImpalaTaskType + // - 40 : CDWTaskType + // - 41 : kettle + // - 42 : TCHouse-X + // - 43 : TCHouse-X SQL + // - 46 : dlcsparkTaskType + // - 47 : TiOneMachineLearningTaskType + // - 48 : Trino + // - 50 : DLCPyspark + // - 23 : TencentDistributedSQL + // - 39 : spark + // - 92 : MRTaskType + // - 38 : ShellScript + // - 70 : HiveSQLScrip + // - 130 : 分支 + // - 131 : 归并 + // - 132 : Notebook探索 + // - 133 : SSH节点 + // - 134 : StarRocks + // - 137 : For-each + // - 10000 : 自定义业务通用 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskTypeDesc *string `json:"TaskTypeDesc,omitnil,omitempty" name:"TaskTypeDesc"` + + // 文件夹名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 文件夹id + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 最近提交时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + FirstSubmitTime *string `json:"FirstSubmitTime,omitnil,omitempty" name:"FirstSubmitTime"` + + // 首次运行时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + FirstRunTime *string `json:"FirstRunTime,omitnil,omitempty" name:"FirstRunTime"` + + // 调度计划展示描述信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScheduleDesc *string `json:"ScheduleDesc,omitnil,omitempty" name:"ScheduleDesc"` + + // 任务周期类型 + // * ONEOFF_CYCLE: 一次性 + // * YEAR_CYCLE: 年 + // * MONTH_CYCLE: 月 + // * WEEK_CYCLE: 周 + // * DAY_CYCLE: 天 + // * HOUR_CYCLE: 小时 + // * MINUTE_CYCLE: 分钟 + // * CRONTAB_CYCLE: crontab表达式类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 负责人 + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 执行开始时间, 格式HH:mm, 如00:00 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` + + // 执行结束时间, 格式HH:mm, 如23:59 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` +} + +type OpsWorkflow struct { + // 任务数量 + TaskCount *uint64 `json:"TaskCount,omitnil,omitempty" name:"TaskCount"` + + // 文件名 + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 工作流文件id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 工作流id + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 工作流类型 + // - cycle周期 + // - manual手动 + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // 工作流描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` + + // 负责人userId,多个‘;’隔开 + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 项目名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` + + // 工作流状态 + // * ALL_RUNNING : 全部调度中 + // * ALL_FREEZED : 全部已暂停 + // * ALL_STOPPTED : 全部已下线 + // * PART_RUNNING : 部分调度中 + // * ALL_NO_RUNNING : 全部未调度 + // * ALL_INVALID : 全部已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 工作流创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 最近更新时间, 包含开发、生产变更 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // 最近更新人,包含开发、生产变更 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` +} + +type OpsWorkflowDetail struct { + // 工作流ID + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` + + // 工作流类型: + // - cycle 周期; + // - manual手动 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // 创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 创建人 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 修改时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // 延时执行时间,unit=minute + // 注意:此字段可能返回 null,表示取不到有效值。 + StartupTime *uint64 `json:"StartupTime,omitnil,omitempty" name:"StartupTime"` + + // 配置生效日期 开始日期 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 配置结束日期 结束日期 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 任务周期类型 + // * ONEOFF_CYCLE: 一次性 + // * YEAR_CYCLE: 年 + // * MONTH_CYCLE: 月 + // * WEEK_CYCLE: 周 + // * DAY_CYCLE: 天 + // * HOUR_CYCLE: 小时 + // * MINUTE_CYCLE: 分钟 + // * CRONTAB_CYCLE: crontab表达式类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 文件夹Id + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 任务实例初始化策略 + // - T_PLUS_1(T+1):延迟一天初始化 + // - T_PLUS_0(T+0):当天初始化 + // - T_MINUS_1(T-1):提前一天初始化 + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceInitStrategy *string `json:"InstanceInitStrategy,omitnil,omitempty" name:"InstanceInitStrategy"` + + // 调度计划释义 + // 注意:此字段可能返回 null,表示取不到有效值。 + SchedulerDesc *string `json:"SchedulerDesc,omitnil,omitempty" name:"SchedulerDesc"` + + // 工作流首次提交时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + FirstSubmitTime *string `json:"FirstSubmitTime,omitnil,omitempty" name:"FirstSubmitTime"` + + // 工作流最近提交时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + LatestSubmitTime *string `json:"LatestSubmitTime,omitnil,omitempty" name:"LatestSubmitTime"` + + // 工作流状态 + // * ALL_RUNNING : 全部调度中 + // * ALL_FREEZED : 全部已暂停 + // * ALL_STOPPTED : 全部已下线 + // * PART_RUNNING : 部分调度中 + // * ALL_NO_RUNNING : 全部未调度 + // * ALL_INVALID : 全部已失效 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 负责人, 多个以‘;’隔开 + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 工作流名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` +} + +type OpsWorkflows struct { + // 记录列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*OpsWorkflow `json:"Items,omitnil,omitempty" name:"Items"` + + // 结果总数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 分页大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` +} + +type OutTaskParameter struct { + // 参数名 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` + + // 参数定义 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"` +} + +type ParamInfo struct { + // 参数名 + ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` + + // 参数值 + ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"` +} + +type ParentDependencyConfigPage struct { + // 结果总数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页数据 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*OpsTaskDepend `json:"Items,omitnil,omitempty" name:"Items"` +} + +// Predefined struct for user +type PauseOpsTasksAsyncRequestParams struct { + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id列表 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 是否需要终止已生成实例 + KillInstance *bool `json:"KillInstance,omitnil,omitempty" name:"KillInstance"` +} + +type PauseOpsTasksAsyncRequest struct { + *tchttp.BaseRequest + + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id列表 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 是否需要终止已生成实例 + KillInstance *bool `json:"KillInstance,omitnil,omitempty" name:"KillInstance"` +} + +func (r *PauseOpsTasksAsyncRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *PauseOpsTasksAsyncRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskIds") + delete(f, "KillInstance") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PauseOpsTasksAsyncRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type PauseOpsTasksAsyncResponseParams struct { + // 异步操作结果 + Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type PauseOpsTasksAsyncResponse struct { + *tchttp.BaseResponse + Response *PauseOpsTasksAsyncResponseParams `json:"Response"` +} + +func (r *PauseOpsTasksAsyncResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *PauseOpsTasksAsyncResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ProjectInstanceStatisticsAlarmInfo struct { + // 告警类型  + // + // projectFailureInstanceUpwardFluctuationAlarm: 失败实例向上波动告警 + // + // projectSuccessInstanceDownwardFluctuationAlarm: 成功实例向下波动告警 + AlarmType *string `json:"AlarmType,omitnil,omitempty" name:"AlarmType"` + + // 实例成功数向下波动比例告警阀值;实例失败数向上波动比例告警阀值 + InstanceThresholdCountPercent *uint64 `json:"InstanceThresholdCountPercent,omitnil,omitempty" name:"InstanceThresholdCountPercent"` + + // 累计实例数波动阀值 + InstanceThresholdCount *uint64 `json:"InstanceThresholdCount,omitnil,omitempty" name:"InstanceThresholdCount"` + + // 稳定性次数阈值(防抖动配置统计周期数) + StabilizeThreshold *uint64 `json:"StabilizeThreshold,omitnil,omitempty" name:"StabilizeThreshold"` + + // 稳定性统计周期(防抖动配置统计周期数) + StabilizeStatisticsCycle *uint64 `json:"StabilizeStatisticsCycle,omitnil,omitempty" name:"StabilizeStatisticsCycle"` + + // 是否累计计算,false:连续,true:累计 + IsCumulant *bool `json:"IsCumulant,omitnil,omitempty" name:"IsCumulant"` + + // 当日累计实例数; + // 当天失败实例数向下波动量 + InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"` +} + +type ReconciliationStrategyInfo struct { + // 离线告警规则类型 + // reconciliationFailure: 离线对账失败告警 + // reconciliationOvertime: 离线对账任务运行超时告警(需配置超时时间) + // reconciliationMismatch: 离线对账不一致条数告警(需配置不一致条数阀值) + // 注意:此字段可能返回 null,表示取不到有效值。 + RuleType *string `json:"RuleType,omitnil,omitempty" name:"RuleType"` + + // 对账不一致条数阀值, RuleType=reconciliationMismatch对账不一致条数类型,需要配置该字段,无默认值 + // 注意:此字段可能返回 null,表示取不到有效值。 + MismatchCount *uint64 `json:"MismatchCount,omitnil,omitempty" name:"MismatchCount"` + + // 对账任务运行超时阀值: 小时, 默认为0 + // 注意:此字段可能返回 null,表示取不到有效值。 + Hour *int64 `json:"Hour,omitnil,omitempty" name:"Hour"` + + // 对账任务运行超时阀值: 分钟, 默认为1 + // 注意:此字段可能返回 null,表示取不到有效值。 + Min *int64 `json:"Min,omitnil,omitempty" name:"Min"` +} + +// Predefined struct for user +type RerunTaskInstancesAsyncRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例id列表,可以从ListInstances中获取 + InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` + + // 重跑类型, 1: 自身; 3: 孩子; 2: 自身以及孩子,默认1 + RerunType *string `json:"RerunType,omitnil,omitempty" name:"RerunType"` + + // 是否检查上游任务: ALL(全部)、 MAKE_SCOPE(选中)、NONE (全部不检查),默认NONE + CheckParentType *string `json:"CheckParentType,omitnil,omitempty" name:"CheckParentType"` + + // 下游实例范围 WORKFLOW: 所在工作流 PROJECT: 所在项目 ALL: 所有跨工作流依赖的项目,默认WORKFLOW + SonRangeType *string `json:"SonRangeType,omitnil,omitempty" name:"SonRangeType"` + + // 重跑是否忽略事件监听 + SkipEventListening *bool `json:"SkipEventListening,omitnil,omitempty" name:"SkipEventListening"` + + // 自定义实例运行并发度, 如果不配置,则使用任务原有自依赖 + RedefineParallelNum *int64 `json:"RedefineParallelNum,omitnil,omitempty" name:"RedefineParallelNum"` + + // 自定义的工作流自依赖: yes开启,no关闭,如果不配置,则使用工作流原有自依赖 + RedefineSelfWorkflowDependency *string `json:"RedefineSelfWorkflowDependency,omitnil,omitempty" name:"RedefineSelfWorkflowDependency"` + + // 重跑实例自定义参数 + RedefineParamList *KVMap `json:"RedefineParamList,omitnil,omitempty" name:"RedefineParamList"` +} + +type RerunTaskInstancesAsyncRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例id列表,可以从ListInstances中获取 + InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` + + // 重跑类型, 1: 自身; 3: 孩子; 2: 自身以及孩子,默认1 + RerunType *string `json:"RerunType,omitnil,omitempty" name:"RerunType"` + + // 是否检查上游任务: ALL(全部)、 MAKE_SCOPE(选中)、NONE (全部不检查),默认NONE + CheckParentType *string `json:"CheckParentType,omitnil,omitempty" name:"CheckParentType"` + + // 下游实例范围 WORKFLOW: 所在工作流 PROJECT: 所在项目 ALL: 所有跨工作流依赖的项目,默认WORKFLOW + SonRangeType *string `json:"SonRangeType,omitnil,omitempty" name:"SonRangeType"` + + // 重跑是否忽略事件监听 + SkipEventListening *bool `json:"SkipEventListening,omitnil,omitempty" name:"SkipEventListening"` + + // 自定义实例运行并发度, 如果不配置,则使用任务原有自依赖 + RedefineParallelNum *int64 `json:"RedefineParallelNum,omitnil,omitempty" name:"RedefineParallelNum"` + + // 自定义的工作流自依赖: yes开启,no关闭,如果不配置,则使用工作流原有自依赖 + RedefineSelfWorkflowDependency *string `json:"RedefineSelfWorkflowDependency,omitnil,omitempty" name:"RedefineSelfWorkflowDependency"` + + // 重跑实例自定义参数 + RedefineParamList *KVMap `json:"RedefineParamList,omitnil,omitempty" name:"RedefineParamList"` +} + +func (r *RerunTaskInstancesAsyncRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *RerunTaskInstancesAsyncRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "InstanceKeyList") + delete(f, "RerunType") + delete(f, "CheckParentType") + delete(f, "SonRangeType") + delete(f, "SkipEventListening") + delete(f, "RedefineParallelNum") + delete(f, "RedefineSelfWorkflowDependency") + delete(f, "RedefineParamList") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RerunTaskInstancesAsyncRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type RerunTaskInstancesAsyncResponseParams struct { + // 批量重跑操作的返回的异步id, 可以在接口GetAsyncJob获取具体执行详情 + Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type RerunTaskInstancesAsyncResponse struct { + *tchttp.BaseResponse + Response *RerunTaskInstancesAsyncResponseParams `json:"Response"` +} + +func (r *RerunTaskInstancesAsyncResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *RerunTaskInstancesAsyncResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ResourceFile struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源文件ID + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` + + // 资源文件名称 + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // 资源文件路径 + LocalPath *string `json:"LocalPath,omitnil,omitempty" name:"LocalPath"` + + // 资源对象COS存储路径 + RemotePath *string `json:"RemotePath,omitnil,omitempty" name:"RemotePath"` + + // 资源文件类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + FileExtensionType *string `json:"FileExtensionType,omitnil,omitempty" name:"FileExtensionType"` + + // 资源大小 + Size *string `json:"Size,omitnil,omitempty" name:"Size"` + + // 创建用户ID + CreatorUserUin *string `json:"CreatorUserUin,omitnil,omitempty" name:"CreatorUserUin"` + + // 创建用户名称 + CreatorUserName *string `json:"CreatorUserName,omitnil,omitempty" name:"CreatorUserName"` + + // 最后更新用户名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateUserName *string `json:"UpdateUserName,omitnil,omitempty" name:"UpdateUserName"` + + // 最后更新用户ID + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` + + // COS 桶 + BucketName *string `json:"BucketName,omitnil,omitempty" name:"BucketName"` + + // COS 地域 + CosRegion *string `json:"CosRegion,omitnil,omitempty" name:"CosRegion"` + + // 资源来源模式 + ResourceSourceMode *string `json:"ResourceSourceMode,omitnil,omitempty" name:"ResourceSourceMode"` + + // 本地工程ID + // 注意:此字段可能返回 null,表示取不到有效值。 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // 本地工程信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +type ResourceFileItem struct { + // 资源文件ID + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` + + // 资源文件名称 + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // 资源文件类型 + FileExtensionType *string `json:"FileExtensionType,omitnil,omitempty" name:"FileExtensionType"` + + // 资源路径 + LocalPath *string `json:"LocalPath,omitnil,omitempty" name:"LocalPath"` +} + +type ResourceFilePage struct { + // 任务集合信息 + Items []*ResourceFileItem `json:"Items,omitnil,omitempty" name:"Items"` + + // 总页数 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 总数量 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 当前页 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示数 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type ResourceFolder struct { + // 资源文件夹ID + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 创建人ID + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 创建人名称 + CreateUserName *string `json:"CreateUserName,omitnil,omitempty" name:"CreateUserName"` + + // 文件夹路径 + FolderPath *string `json:"FolderPath,omitnil,omitempty" name:"FolderPath"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +type ResourceFolderPage struct { + // 资源文件夹集合信息 + Items []*ResourceFolder `json:"Items,omitnil,omitempty" name:"Items"` + + // 总页数 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 总数量 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 当前页 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示数 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +// Predefined struct for user +type RunSQLScriptRequestParams struct { + // 脚本id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 脚本内容,不传则默认执行已保存的全量脚本内容;若传递则要用Base64编码 + ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` + + // 高级运行参数,JSON格式base64编码 + Params *string `json:"Params,omitnil,omitempty" name:"Params"` +} + +type RunSQLScriptRequest struct { + *tchttp.BaseRequest + + // 脚本id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 脚本内容,不传则默认执行已保存的全量脚本内容;若传递则要用Base64编码 + ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` + + // 高级运行参数,JSON格式base64编码 + Params *string `json:"Params,omitnil,omitempty" name:"Params"` +} + +func (r *RunSQLScriptRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *RunSQLScriptRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ScriptId") + delete(f, "ProjectId") + delete(f, "ScriptContent") + delete(f, "Params") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RunSQLScriptRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type RunSQLScriptResponseParams struct { + // 数据探索任务 + Data *JobDto `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type RunSQLScriptResponse struct { + *tchttp.BaseResponse + Response *RunSQLScriptResponseParams `json:"Response"` +} + +func (r *RunSQLScriptResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *RunSQLScriptResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type SQLContentActionResult struct { + // 操作是否成功 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` + + // 文件夹ID + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +type SQLFolderNode struct { + // 唯一标识 + // 注意:此字段可能返回 null,表示取不到有效值。 + Id *string `json:"Id,omitnil,omitempty" name:"Id"` + + // 名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 类型 folder,script + // 注意:此字段可能返回 null,表示取不到有效值。 + Type *string `json:"Type,omitnil,omitempty" name:"Type"` + + // 父文件夹path,/aaa/bbb/ccc + // 注意:此字段可能返回 null,表示取不到有效值。 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 是否叶子节点 + // 注意:此字段可能返回 null,表示取不到有效值。 + IsLeaf *bool `json:"IsLeaf,omitnil,omitempty" name:"IsLeaf"` + + // 业务参数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Params *string `json:"Params,omitnil,omitempty" name:"Params"` + + // 权限范围: SHARED, PRIVATE + // 注意:此字段可能返回 null,表示取不到有效值。 + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` + + // 节点路径 + // 注意:此字段可能返回 null,表示取不到有效值。 + Path *string `json:"Path,omitnil,omitempty" name:"Path"` + + // 创建人 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 当前用户对节点拥有的权限 + // 注意:此字段可能返回 null,表示取不到有效值。 + NodePermission *string `json:"NodePermission,omitnil,omitempty" name:"NodePermission"` + + // 子节点列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Children []*SQLFolderNode `json:"Children,omitnil,omitempty" name:"Children"` + + // 文件责任人 + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` +} + +type SQLScript struct { + // 脚本id + // 注意:此字段可能返回 null,表示取不到有效值。 + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 脚本名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScriptName *string `json:"ScriptName,omitnil,omitempty" name:"ScriptName"` + + // 脚本所有者 uin + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 父文件夹path,/aaa/bbb/ccc + // 注意:此字段可能返回 null,表示取不到有效值。 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + + // 脚本配置 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` + + // 脚本内容 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` + + // 最近一次操作人 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` + + // 项目id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 更新时间 yyyy-MM-dd hh:mm:ss + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // 创建时间 yyyy-MM-dd hh:mm:ss + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 权限范围:SHARED, PRIVATE + // 注意:此字段可能返回 null,表示取不到有效值。 + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` + + // 节点全路径,/aaa/bbb/ccc.ipynb,由各个节点的名称组成 + // 注意:此字段可能返回 null,表示取不到有效值。 + Path *string `json:"Path,omitnil,omitempty" name:"Path"` +} + +type SQLScriptConfig struct { + // 数据源Id + // 注意:此字段可能返回 null,表示取不到有效值。 + DatasourceId *string `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` + + // 数据源环境 + // 注意:此字段可能返回 null,表示取不到有效值。 + DatasourceEnv *string `json:"DatasourceEnv,omitnil,omitempty" name:"DatasourceEnv"` + + // 计算资源 + // 注意:此字段可能返回 null,表示取不到有效值。 + ComputeResource *string `json:"ComputeResource,omitnil,omitempty" name:"ComputeResource"` + + // 执行资源组 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + + // 高级运行参数,变量替换,map-json String,String + // 注意:此字段可能返回 null,表示取不到有效值。 + Params *string `json:"Params,omitnil,omitempty" name:"Params"` + + // 高级设置,执行配置参数,map-json String,String. 采用Base64编码 + // 注意:此字段可能返回 null,表示取不到有效值。 + AdvanceConfig *string `json:"AdvanceConfig,omitnil,omitempty" name:"AdvanceConfig"` +} + +type SQLStopResult struct { + // 是否成功 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +// Predefined struct for user +type SetSuccessTaskInstancesAsyncRequestParams struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例id列表,可以从ListInstances中获取 + InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` +} + +type SetSuccessTaskInstancesAsyncRequest struct { + *tchttp.BaseRequest + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 实例id列表,可以从ListInstances中获取 + InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` +} + +func (r *SetSuccessTaskInstancesAsyncRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *SetSuccessTaskInstancesAsyncRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "InstanceKeyList") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetSuccessTaskInstancesAsyncRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type SetSuccessTaskInstancesAsyncResponseParams struct { + // 批量置成功操作的返回的异步id, 可以在接口GetAsyncJob获取具体执行详情 + Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type SetSuccessTaskInstancesAsyncResponse struct { + *tchttp.BaseResponse + Response *SetSuccessTaskInstancesAsyncResponseParams `json:"Response"` +} + +func (r *SetSuccessTaskInstancesAsyncResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *SetSuccessTaskInstancesAsyncResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type SqlCreateResult struct { + // 文件夹id + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +} + +// Predefined struct for user +type StopOpsTasksAsyncRequestParams struct { + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id列表 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 是否终止已生成实例,默认false + KillInstance *bool `json:"KillInstance,omitnil,omitempty" name:"KillInstance"` +} + +type StopOpsTasksAsyncRequest struct { + *tchttp.BaseRequest + + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id列表 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 是否终止已生成实例,默认false + KillInstance *bool `json:"KillInstance,omitnil,omitempty" name:"KillInstance"` +} + +func (r *StopOpsTasksAsyncRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *StopOpsTasksAsyncRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskIds") + delete(f, "KillInstance") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StopOpsTasksAsyncRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type StopOpsTasksAsyncResponseParams struct { + // AsyncId + Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type StopOpsTasksAsyncResponse struct { + *tchttp.BaseResponse + Response *StopOpsTasksAsyncResponseParams `json:"Response"` +} + +func (r *StopOpsTasksAsyncResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *StopOpsTasksAsyncResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type StopSQLScriptRunRequestParams struct { + // 查询id + JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +type StopSQLScriptRunRequest struct { + *tchttp.BaseRequest + + // 查询id + JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +func (r *StopSQLScriptRunRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *StopSQLScriptRunRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "JobId") + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StopSQLScriptRunRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type StopSQLScriptRunResponseParams struct { + // 执行结果 + Data *SQLStopResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type StopSQLScriptRunResponse struct { + *tchttp.BaseResponse + Response *StopSQLScriptRunResponseParams `json:"Response"` +} + +func (r *StopSQLScriptRunResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *StopSQLScriptRunResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type SubmitTaskRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 版本备注 + VersionRemark *string `json:"VersionRemark,omitnil,omitempty" name:"VersionRemark"` +} + +type SubmitTaskRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 版本备注 + VersionRemark *string `json:"VersionRemark,omitnil,omitempty" name:"VersionRemark"` +} + +func (r *SubmitTaskRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *SubmitTaskRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + delete(f, "VersionRemark") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SubmitTaskRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type SubmitTaskResponseParams struct { + // 成功或者失败 + Data *SubmitTaskResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type SubmitTaskResponse struct { + *tchttp.BaseResponse + Response *SubmitTaskResponseParams `json:"Response"` +} + +func (r *SubmitTaskResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *SubmitTaskResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type SubmitTaskResult struct { + // 生成的任务版本ID + // 注意:此字段可能返回 null,表示取不到有效值。 + VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` + + // 提交状态 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +type Task struct { + // 任务基本属性 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskBaseAttribute *TaskBaseAttribute `json:"TaskBaseAttribute,omitnil,omitempty" name:"TaskBaseAttribute"` + + // 任务配置 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskConfiguration *TaskConfiguration `json:"TaskConfiguration,omitnil,omitempty" name:"TaskConfiguration"` + + // 任务调度配置 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskSchedulerConfiguration *TaskSchedulerConfiguration `json:"TaskSchedulerConfiguration,omitnil,omitempty" name:"TaskSchedulerConfiguration"` +} + +type TaskBaseAttribute struct { + // 任务ID + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务类型ID: + // + // * 21:JDBC SQL + // * 23:TDSQL-PostgreSQL + // * 26:OfflineSynchronization + // * 30:Python + // * 31:PySpark + // * 33:Impala + // * 34:Hive SQL + // * 35:Shell + // * 36:Spark SQL + // * 38:Shell Form Mode + // * 39:Spark + // * 40:TCHouse-P + // * 41:Kettle + // * 42:Tchouse-X + // * 43:TCHouse-X SQL + // * 46:DLC Spark + // * 47:TiOne + // * 48:Trino + // * 50:DLC PySpark + // * 92:MapReduce + // * 130:Branch Node + // * 131:Merged Node + // * 132:Notebook + // * 133:SSH + // * 134:StarRocks + // * 137:For-each + // * 138:Setats SQL + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 工作流ID + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 任务名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 最近一次保存版本号 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskLatestVersionNo *string `json:"TaskLatestVersionNo,omitnil,omitempty" name:"TaskLatestVersionNo"` + + // 最近一次提交版本号 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskLatestSubmitVersionNo *string `json:"TaskLatestSubmitVersionNo,omitnil,omitempty" name:"TaskLatestSubmitVersionNo"` + + // 工作流名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 任务状态: + // * N: 新建 + // * Y: 调度中 + // * F: 已下线 + // * O: 已暂停 + // * T: 下线中 + // * INVALID: 已失效 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 任务最新提交状态,任务是否已经提交:true/false + // 注意:此字段可能返回 null,表示取不到有效值。 + Submit *bool `json:"Submit,omitnil,omitempty" name:"Submit"` + + // 任务创建时间,示例:2022-02-12 11:13:41 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 最后更新时间,示例:2025-08-13 16:34:06 + // 注意:此字段可能返回 null,表示取不到有效值。 + LastUpdateTime *string `json:"LastUpdateTime,omitnil,omitempty" name:"LastUpdateTime"` + + // 最后更新人名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + LastUpdateUserName *string `json:"LastUpdateUserName,omitnil,omitempty" name:"LastUpdateUserName"` + + // 最后运维时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + LastOpsTime *string `json:"LastOpsTime,omitnil,omitempty" name:"LastOpsTime"` + + // 最后运维人名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + LastOpsUserName *string `json:"LastOpsUserName,omitnil,omitempty" name:"LastOpsUserName"` + + // 任务负责人ID + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 任务描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskDescription *string `json:"TaskDescription,omitnil,omitempty" name:"TaskDescription"` + + // 最近一次更新用户ID + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` + + // 创建用户ID + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` +} + +type TaskCode struct { + // 代码内容 + CodeContent *string `json:"CodeContent,omitnil,omitempty" name:"CodeContent"` + + // 代码文件大小,单位bytes + CodeFileSize *uint64 `json:"CodeFileSize,omitnil,omitempty" name:"CodeFileSize"` +} + +type TaskCodeResult struct { + // 代码内容 + // 注意:此字段可能返回 null,表示取不到有效值。 + CodeInfo *string `json:"CodeInfo,omitnil,omitempty" name:"CodeInfo"` + + // 代码文件大小,单位KB + // 注意:此字段可能返回 null,表示取不到有效值。 + CodeFileSize *string `json:"CodeFileSize,omitnil,omitempty" name:"CodeFileSize"` +} + +type TaskConfiguration struct { + // 代码内容的Base64编码 + // 注意:此字段可能返回 null,表示取不到有效值。 + CodeContent *string `json:"CodeContent,omitnil,omitempty" name:"CodeContent"` + + // 任务扩展属性配置列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskExtConfigurationList []*TaskExtParameter `json:"TaskExtConfigurationList,omitnil,omitempty" name:"TaskExtConfigurationList"` + + // 集群ID + // 注意:此字段可能返回 null,表示取不到有效值。 + DataCluster *string `json:"DataCluster,omitnil,omitempty" name:"DataCluster"` + + // 指定的运行节点 + // 注意:此字段可能返回 null,表示取不到有效值。 + BrokerIp *string `json:"BrokerIp,omitnil,omitempty" name:"BrokerIp"` + + // 资源池队列名称,需要通过 DescribeProjectClusterQueues 获取 + // 注意:此字段可能返回 null,表示取不到有效值。 + YarnQueue *string `json:"YarnQueue,omitnil,omitempty" name:"YarnQueue"` + + // 来源数据源ID, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 + // 注意:此字段可能返回 null,表示取不到有效值。 + SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` + + // 来源数据源类型, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 + // 注意:此字段可能返回 null,表示取不到有效值。 + SourceServiceType *string `json:"SourceServiceType,omitnil,omitempty" name:"SourceServiceType"` + + // 来源数据源名称, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 + // 注意:此字段可能返回 null,表示取不到有效值。 + SourceServiceName *string `json:"SourceServiceName,omitnil,omitempty" name:"SourceServiceName"` + + // 目标数据源ID, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 + // 注意:此字段可能返回 null,表示取不到有效值。 + TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` + + // 目标数据源类型, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 + // 注意:此字段可能返回 null,表示取不到有效值。 + TargetServiceType *string `json:"TargetServiceType,omitnil,omitempty" name:"TargetServiceType"` + + // 目标数据源名称, 使用 ; 分隔, 需要通过 DescribeDataSourceWithoutInfo 获取 + // 注意:此字段可能返回 null,表示取不到有效值。 + TargetServiceName *string `json:"TargetServiceName,omitnil,omitempty" name:"TargetServiceName"` + + // 资源组ID: 需要通过 DescribeNormalSchedulerExecutorGroups 获取 ExecutorGroupId + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceGroup *string `json:"ResourceGroup,omitnil,omitempty" name:"ResourceGroup"` + + // 资源组名称: 需要通过 DescribeNormalSchedulerExecutorGroups 获取 ExecutorGroupName + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceGroupName *string `json:"ResourceGroupName,omitnil,omitempty" name:"ResourceGroupName"` + + // 调度参数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskSchedulingParameterList []*TaskSchedulingParameter `json:"TaskSchedulingParameterList,omitnil,omitempty" name:"TaskSchedulingParameterList"` + + // Bundle使用的ID + // 注意:此字段可能返回 null,表示取不到有效值。 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // Bundle信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +type TaskDataRegistry struct { + // 数据源ID + // 注意:此字段可能返回 null,表示取不到有效值。 + DatasourceId *string `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` + + // 数据库名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 表名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + TableName *string `json:"TableName,omitnil,omitempty" name:"TableName"` + + // 分区名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + PartitionName *string `json:"PartitionName,omitnil,omitempty" name:"PartitionName"` + + // 输入输出表类型 + // 输入流 + // UPSTREAM, + // 输出流 + // DOWNSTREAM; + // 注意:此字段可能返回 null,表示取不到有效值。 + DataFlowType *string `json:"DataFlowType,omitnil,omitempty" name:"DataFlowType"` + + // 表物理唯一ID + // 注意:此字段可能返回 null,表示取不到有效值。 + TablePhysicalId *string `json:"TablePhysicalId,omitnil,omitempty" name:"TablePhysicalId"` + + // 库唯一标识 + // 注意:此字段可能返回 null,表示取不到有效值。 + DbGuid *string `json:"DbGuid,omitnil,omitempty" name:"DbGuid"` + + // 表唯一标识 + // 注意:此字段可能返回 null,表示取不到有效值。 + TableGuid *string `json:"TableGuid,omitnil,omitempty" name:"TableGuid"` +} + +type TaskDependDto struct { + // 任务Id + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 工作流id + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 项目id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务状态: + // - Y: 运行 + // - F: 停止 + // - O: 冻结 + // - T: 停止中 + // - INVALID: 已失效 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 任务类型id + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 任务类型描述 + // - 20 : 通用数据同步 + // - 25 : ETLTaskType + // - 26 : ETLTaskType + // - 30 : python + // - 31 : pyspark + // - 34 : hivesql + // - 35 : shell + // - 36 : sparksql + // - 21 : jdbcsql + // - 32 : dlc + // - 33 : ImpalaTaskType + // - 40 : CDWTaskType + // - 41 : kettle + // - 42 : TCHouse-X + // - 43 : TCHouse-X SQL + // - 46 : dlcsparkTaskType + // - 47 : TiOneMachineLearningTaskType + // - 48 : Trino + // - 50 : DLCPyspark + // - 23 : TencentDistributedSQL + // - 39 : spark + // - 92 : MRTaskType + // - 38 : ShellScript + // - 70 : HiveSQLScrip + // - 130 : 分支 + // - 131 : 归并 + // - 132 : Notebook探索 + // - 133 : SSH节点 + // - 134 : StarRocks + // - 137 : For-each + // - 10000 : 自定义业务通用 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskTypeDesc *string `json:"TaskTypeDesc,omitnil,omitempty" name:"TaskTypeDesc"` + + // 调度计划展示描述信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScheduleDesc *string `json:"ScheduleDesc,omitnil,omitempty" name:"ScheduleDesc"` + + // 任务开始时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 任务结束时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 延迟时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + DelayTime *uint64 `json:"DelayTime,omitnil,omitempty" name:"DelayTime"` + + // 周期类型:默认为 D + // + // 支持的类型为 + // + // * O: 一次性 + // * Y: 年 + // * M: 月 + // * W: 周 + // * D: 天 + // * H: 小时 + // * I: 分钟 + // * C: crontab表达式类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 负责人 + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 弹性周期配置 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskAction *string `json:"TaskAction,omitnil,omitempty" name:"TaskAction"` + + // 调度初始化策略 + // 注意:此字段可能返回 null,表示取不到有效值。 + InitStrategy *string `json:"InitStrategy,omitnil,omitempty" name:"InitStrategy"` + + // crontab表达式 + // 注意:此字段可能返回 null,表示取不到有效值。 + CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` +} + +type TaskExtParameter struct { + // 参数名 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` + + // 参数值 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"` +} + +type TaskInstance struct { + // 所属项目id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **实例唯一标识** + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // 文件夹ID + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 工作流ID + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 任务ID + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 实例数据时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CurRunDate *string `json:"CurRunDate,omitnil,omitempty" name:"CurRunDate"` + + // **实例状态** + // - WAIT_EVENT: 等待事件 + // - WAIT_UPSTREAM: 等待上游 + // - WAIT_RUN: 等待运行 + // - RUNNING: 运行中 + // - SKIP_RUNNING: 跳过运行 + // - FAILED_RETRY: 失败重试 + // - EXPIRED: 失败 + // - COMPLETED: 成功 + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` + + // **实例类型** + // + // - 0 表示补录类型 + // - 1 表示周期实例 + // - 2 表示非周期实例 + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceType *uint64 `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` + + // 负责人列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUinList []*string `json:"OwnerUinList,omitnil,omitempty" name:"OwnerUinList"` + + // 累计运行次数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalRunNum *uint64 `json:"TotalRunNum,omitnil,omitempty" name:"TotalRunNum"` + + // 任务类型描述 + TaskType *string `json:"TaskType,omitnil,omitempty" name:"TaskType"` + + // 任务类型id + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskTypeId *int64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // **任务周期类型** + // 支持过滤多个,条件间为 或 的过滤关系 + // * O: ONEOFF_CYCLE + // * Y: YEAR_CYCLE + // * M: MONTH_CYCLE + // * W: WEEK_CYCLE + // * D: DAY_CYCLE + // * H: HOUR_CYCLE + // * I: MINUTE_CYCLE + // * C: CRONTAB_CYCLE + // 注意:此字段可能返回 null,表示取不到有效值。 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 每次运行失败,下发重试次数限制 + // 注意:此字段可能返回 null,表示取不到有效值。 + TryLimit *uint64 `json:"TryLimit,omitnil,omitempty" name:"TryLimit"` + + // **失败重试次数** + // 再次使用 手动重跑 或 补录实例等方式触发运行时,会被重置为 0 后重新计数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Tries *uint64 `json:"Tries,omitnil,omitempty" name:"Tries"` + + // 运行开始时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 运行完成时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 耗费时间, 单位ms + // 注意:此字段可能返回 null,表示取不到有效值。 + CostTime *int64 `json:"CostTime,omitnil,omitempty" name:"CostTime"` + + // 计划调度时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + SchedulerTime *string `json:"SchedulerTime,omitnil,omitempty" name:"SchedulerTime"` + + // 实例最近更新时间, 时间格式为 yyyy-MM-dd HH:mm:ss + // 注意:此字段可能返回 null,表示取不到有效值。 + LastUpdateTime *string `json:"LastUpdateTime,omitnil,omitempty" name:"LastUpdateTime"` + + // 执行资源组ID + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + + // 资源组名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutorGroupName *string `json:"ExecutorGroupName,omitnil,omitempty" name:"ExecutorGroupName"` +} + +type TaskInstanceDetail struct { + // 所属项目id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // **实例唯一标识** + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + + // 文件夹ID + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 工作流ID + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 任务ID + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // taskType对应的id + TaskTypeId *int64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 任务类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskType *string `json:"TaskType,omitnil,omitempty" name:"TaskType"` + + // **任务周期类型** + // * ONEOFF_CYCLE: 一次性 + // * YEAR_CYCLE: 年 + // * MONTH_CYCLE: 月 + // * WEEK_CYCLE: 周 + // * DAY_CYCLE: 天 + // * HOUR_CYCLE: 小时 + // * MINUTE_CYCLE: 分钟 + // * CRONTAB_CYCLE: crontab表达式类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 实例数据时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CurRunDate *string `json:"CurRunDate,omitnil,omitempty" name:"CurRunDate"` + + // **实例状态** + // - WAIT_EVENT: 等待事件 + // - WAIT_UPSTREAM: 等待上游 + // - WAIT_RUN: 等待运行 + // - RUNNING: 运行中 + // - SKIP_RUNNING: 跳过运行 + // - FAILED_RETRY: 失败重试 + // - EXPIRED: 失败 + // - COMPLETED: 成功 + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` + + // **实例类型** + // + // - 0 表示补录类型 + // - 1 表示周期实例 + // - 2 表示非周期实例 + // 注意:此字段可能返回 null,表示取不到有效值。 + InstanceType *uint64 `json:"InstanceType,omitnil,omitempty" name:"InstanceType"` + + // 负责人列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUinList []*string `json:"OwnerUinList,omitnil,omitempty" name:"OwnerUinList"` + + // 累计运行次数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalRunNum *uint64 `json:"TotalRunNum,omitnil,omitempty" name:"TotalRunNum"` + + // 每次运行失败,下发重试次数限制 + // 注意:此字段可能返回 null,表示取不到有效值。 + TryLimit *uint64 `json:"TryLimit,omitnil,omitempty" name:"TryLimit"` + + // **失败重试次数** + // 再次使用 手动重跑 或 补录实例等方式触发运行时,会被重置为 0 后重新计数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Tries *uint64 `json:"Tries,omitnil,omitempty" name:"Tries"` + + // 耗费时间, 单位ms + // 注意:此字段可能返回 null,表示取不到有效值。 + CostTime *int64 `json:"CostTime,omitnil,omitempty" name:"CostTime"` + + // 运行开始时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 运行完成时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 计划调度时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + SchedulerTime *string `json:"SchedulerTime,omitnil,omitempty" name:"SchedulerTime"` + + // 实例最近更新时间, 时间格式为 yyyy-MM-dd HH:mm:ss + // 注意:此字段可能返回 null,表示取不到有效值。 + LastUpdateTime *string `json:"LastUpdateTime,omitnil,omitempty" name:"LastUpdateTime"` + + // 执行资源组ID + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + + // 资源组名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutorGroupName *string `json:"ExecutorGroupName,omitnil,omitempty" name:"ExecutorGroupName"` + + // 简要的任务失败信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + JobErrorMsg *string `json:"JobErrorMsg,omitnil,omitempty" name:"JobErrorMsg"` +} + +type TaskInstanceExecutions struct { + // 结果总数 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页数 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 记录列表 + Items []*InstanceExecution `json:"Items,omitnil,omitempty" name:"Items"` + + // 页码 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} + +type TaskInstancePage struct { + // **总条数** + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // **总分页数** + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页条目数 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 数据列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*TaskInstance `json:"Items,omitnil,omitempty" name:"Items"` +} + +type TaskOpsInfo struct { + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务名 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 负责人Id + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 任务状态: + // - Y: 调度中 + // - F: 已下线 + // - O: 已暂停 + // - T: 下线中 + // - INVALID: 已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 文件夹id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹名字 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 工作流id + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 项目名称 + ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` + + // 更新人名称 + UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` + + // 任务类型Id: + // * 21:JDBC SQL + // * 23:TDSQL-PostgreSQL + // * 26:OfflineSynchronization + // * 30:Python + // * 31:PySpark + // * 33:Impala + // * 34:Hive SQL + // * 35:Shell + // * 36:Spark SQL + // * 38:Shell Form Mode + // * 39:Spark + // * 40:TCHouse-P + // * 41:Kettle + // * 42:Tchouse-X + // * 43:TCHouse-X SQL + // * 46:DLC Spark + // * 47:TiOne + // * 48:Trino + // * 50:DLC PySpark + // * 92:MapReduce + // * 130:Branch Node + // * 131:Merged Node + // * 132:Notebook + // * 133:SSH + // * 134:StarRocks + // * 137:For-each + // * 138:Setats SQL + TaskTypeId *uint64 `json:"TaskTypeId,omitnil,omitempty" name:"TaskTypeId"` + + // 任务类型描述 + // - 通用数据同步 + // - ETLTaskType + // - ETLTaskType + // - python + // - pyspark + // - HiveSQLTaskType + // - shell + // - SparkSQLTaskType + // - JDBCSQLTaskType + // - DLCTaskType + // - ImpalaTaskType + // - CDWTaskType + // - kettle + // - DLCSparkTaskType + // - TiOne机器学习 + // - TrinoTaskType + // - DLCPyspark + // - spark + // - mr + // - shell脚本 + // - hivesql脚本 + // - 自定义业务通用 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskTypeDesc *string `json:"TaskTypeDesc,omitnil,omitempty" name:"TaskTypeDesc"` + + // 任务周期类型 + // * ONEOFF_CYCLE: 一次性 + // * YEAR_CYCLE: 年 + // * MONTH_CYCLE: 月 + // * WEEK_CYCLE: 周 + // * DAY_CYCLE: 天 + // * HOUR_CYCLE: 小时 + // * MINUTE_CYCLE: 分钟 + // * CRONTAB_CYCLE: crontab表达式类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 资源组id + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + + // 调度描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScheduleDesc *string `json:"ScheduleDesc,omitnil,omitempty" name:"ScheduleDesc"` + + // 资源组名称 + ExecutorGroupName *string `json:"ExecutorGroupName,omitnil,omitempty" name:"ExecutorGroupName"` + + // 最新调度提交时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + LastSchedulerCommitTime *string `json:"LastSchedulerCommitTime,omitnil,omitempty" name:"LastSchedulerCommitTime"` + + // 首次执行时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + FirstRunTime *string `json:"FirstRunTime,omitnil,omitempty" name:"FirstRunTime"` + + // 最近一次提交时间 + FirstSubmitTime *string `json:"FirstSubmitTime,omitnil,omitempty" name:"FirstSubmitTime"` + + // 创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 最近更新时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + LastUpdateTime *string `json:"LastUpdateTime,omitnil,omitempty" name:"LastUpdateTime"` +} + +type TaskSchedulerConfiguration struct { + // 周期类型:支持的类型为 + // + // ONEOFF_CYCLE: 一次性 + // YEAR_CYCLE: 年 + // MONTH_CYCLE: 月 + // WEEK_CYCLE: 周 + // DAY_CYCLE: 天 + // HOUR_CYCLE: 小时 + // MINUTE_CYCLE: 分钟 + // CRONTAB_CYCLE: crontab表达式类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 时区 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` + + // 0 2 3 1,L,2 * ? + // 注意:此字段可能返回 null,表示取不到有效值。 + CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` + + // 生效日期 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 结束日期 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 执行时间 左闭区间 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` + + // 执行时间 右闭区间 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` + + // 调度类型: 0 正常调度 1 空跑调度 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScheduleRunType *int64 `json:"ScheduleRunType,omitnil,omitempty" name:"ScheduleRunType"` + + // 日历调度 取值为 0 和 1, 1为打开,0为关闭,默认为0 + // 注意:此字段可能返回 null,表示取不到有效值。 + CalendarOpen *string `json:"CalendarOpen,omitnil,omitempty" name:"CalendarOpen"` + + // 日历调度 日历 ID + // 注意:此字段可能返回 null,表示取不到有效值。 + CalendarId *string `json:"CalendarId,omitnil,omitempty" name:"CalendarId"` + + // 日历调度 日历名称, 需要从 DescribeScheduleCalendarPageList 中获取 + // 注意:此字段可能返回 null,表示取不到有效值。 + CalendarName *string `json:"CalendarName,omitnil,omitempty" name:"CalendarName"` + + // 自依赖, 默认值 serial, 取值为:parallel(并行), serial(串行), orderly(有序) + // 注意:此字段可能返回 null,表示取不到有效值。 + SelfDepend *string `json:"SelfDepend,omitnil,omitempty" name:"SelfDepend"` + + // 上游依赖数组 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpstreamDependencyConfigList []*DependencyTaskBrief `json:"UpstreamDependencyConfigList,omitnil,omitempty" name:"UpstreamDependencyConfigList"` + + // 下游依赖数组 + // 注意:此字段可能返回 null,表示取不到有效值。 + DownStreamDependencyConfigList []*DependencyTaskBrief `json:"DownStreamDependencyConfigList,omitnil,omitempty" name:"DownStreamDependencyConfigList"` + + // 事件数组 + // 注意:此字段可能返回 null,表示取不到有效值。 + EventListenerList []*EventListener `json:"EventListenerList,omitnil,omitempty" name:"EventListenerList"` + + // 任务调度优先级 运行优先级 4高 5中 6低 , 默认:6 + // 注意:此字段可能返回 null,表示取不到有效值。 + RunPriority *uint64 `json:"RunPriority,omitnil,omitempty" name:"RunPriority"` + + // 重试策略 重试等待时间,单位分钟: 默认: 5 + // 注意:此字段可能返回 null,表示取不到有效值。 + RetryWait *int64 `json:"RetryWait,omitnil,omitempty" name:"RetryWait"` + + // 重试策略 最大尝试次数, 默认: 4 + // 注意:此字段可能返回 null,表示取不到有效值。 + MaxRetryAttempts *int64 `json:"MaxRetryAttempts,omitnil,omitempty" name:"MaxRetryAttempts"` + + // 超时处理策略 运行耗时超时(单位:分钟)默认为 -1 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionTTL *int64 `json:"ExecutionTTL,omitnil,omitempty" name:"ExecutionTTL"` + + // 超时处理策略 等待总时长耗时超时(单位:分钟)默认为 -1 + // 注意:此字段可能返回 null,表示取不到有效值。 + WaitExecutionTotalTTL *string `json:"WaitExecutionTotalTTL,omitnil,omitempty" name:"WaitExecutionTotalTTL"` + + // 重跑&补录配置, 默认为 ALL; , ALL 运行成功或失败后皆可重跑或补录, FAILURE 运行成功后不可重跑或补录,运行失败后可重跑或补录, NONE 运行成功或失败后皆不可重跑或补录; + // 注意:此字段可能返回 null,表示取不到有效值。 + AllowRedoType *string `json:"AllowRedoType,omitnil,omitempty" name:"AllowRedoType"` + + // 输出参数数组 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamTaskOutList []*OutTaskParameter `json:"ParamTaskOutList,omitnil,omitempty" name:"ParamTaskOutList"` + + // 输入参数数组 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamTaskInList []*InTaskParameter `json:"ParamTaskInList,omitnil,omitempty" name:"ParamTaskInList"` + + // 产出登记 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskOutputRegistryList []*TaskDataRegistry `json:"TaskOutputRegistryList,omitnil,omitempty" name:"TaskOutputRegistryList"` + + // **实例生成策略** + // * T_PLUS_0: T+0生成,默认策略 + // * T_PLUS_1: T+1生成 + // 注意:此字段可能返回 null,表示取不到有效值。 + InitStrategy *string `json:"InitStrategy,omitnil,omitempty" name:"InitStrategy"` +} + +type TaskSchedulingParameter struct { + // 参数名 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` + + // 参数值 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"` +} + +type TaskVersion struct { + // 保存时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 版本号 + // 注意:此字段可能返回 null,表示取不到有效值。 + VersionNum *string `json:"VersionNum,omitnil,omitempty" name:"VersionNum"` + + // 创建人 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 保存版本id + // 注意:此字段可能返回 null,表示取不到有效值。 + VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` + + // 版本描述信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + VersionRemark *string `json:"VersionRemark,omitnil,omitempty" name:"VersionRemark"` + + // 审批状态(只有提交版本有) + // 注意:此字段可能返回 null,表示取不到有效值。 + ApproveStatus *string `json:"ApproveStatus,omitnil,omitempty" name:"ApproveStatus"` + + // 生产状态(只有提交版本有) + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 审批人(只有提交版本有) + // 注意:此字段可能返回 null,表示取不到有效值。 + ApproveUserUin *string `json:"ApproveUserUin,omitnil,omitempty" name:"ApproveUserUin"` +} + +type TaskVersionDetail struct { + // 保存时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 版本号 + // 注意:此字段可能返回 null,表示取不到有效值。 + VersionNum *string `json:"VersionNum,omitnil,omitempty" name:"VersionNum"` + + // 版本创建人 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 保存版本Id + // 注意:此字段可能返回 null,表示取不到有效值。 + VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` + + // 版本描述信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + VersionRemark *string `json:"VersionRemark,omitnil,omitempty" name:"VersionRemark"` + + // 审批状态(只有提交版本有) + // 注意:此字段可能返回 null,表示取不到有效值。 + ApproveStatus *string `json:"ApproveStatus,omitnil,omitempty" name:"ApproveStatus"` + + // 生产状态(只有提交版本有) + // 注意:此字段可能返回 null,表示取不到有效值。 + ApproveTime *string `json:"ApproveTime,omitnil,omitempty" name:"ApproveTime"` + + // 版本的任务详情 + // 注意:此字段可能返回 null,表示取不到有效值。 + Task *Task `json:"Task,omitnil,omitempty" name:"Task"` + + // 审批人Id + // 注意:此字段可能返回 null,表示取不到有效值。 + ApproveUserUin *string `json:"ApproveUserUin,omitnil,omitempty" name:"ApproveUserUin"` +} + +type TimeOutStrategyInfo struct { + // 超时告警超时配置: + // + // 1.预计运行耗时超时,2.预计完成时间超时,3.预计等待调度耗时超时,4.预计周期内完成但实际未完成 + // 注意:此字段可能返回 null,表示取不到有效值。 + RuleType *int64 `json:"RuleType,omitnil,omitempty" name:"RuleType"` + + // 超时值配置类型 + // + // 1--指定值 + // 2--平均值 + // 注意:此字段可能返回 null,表示取不到有效值。 + Type *int64 `json:"Type,omitnil,omitempty" name:"Type"` + + // 超时指定值小时, 默认 为0 + // 注意:此字段可能返回 null,表示取不到有效值。 + Hour *uint64 `json:"Hour,omitnil,omitempty" name:"Hour"` + + // 超时指定值分钟, 默认为1 + // 注意:此字段可能返回 null,表示取不到有效值。 + Min *int64 `json:"Min,omitnil,omitempty" name:"Min"` + + // 超时时间对应的时区配置, 如 UTC+7, 默认为UTC+8 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` +} + +// Predefined struct for user +type UpdateCodeFileRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 代码文件ID,参数值来自CreateCodeFile接口的返回 + CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` + + // 代码文件配置 + CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` + + // 代码文件内容 + CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` +} + +type UpdateCodeFileRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 代码文件ID,参数值来自CreateCodeFile接口的返回 + CodeFileId *string `json:"CodeFileId,omitnil,omitempty" name:"CodeFileId"` + + // 代码文件配置 + CodeFileConfig *CodeFileConfig `json:"CodeFileConfig,omitnil,omitempty" name:"CodeFileConfig"` + + // 代码文件内容 + CodeFileContent *string `json:"CodeFileContent,omitnil,omitempty" name:"CodeFileContent"` +} + +func (r *UpdateCodeFileRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateCodeFileRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "CodeFileId") + delete(f, "CodeFileConfig") + delete(f, "CodeFileContent") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateCodeFileRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateCodeFileResponseParams struct { + // 结果 + Data *CodeFile `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateCodeFileResponse struct { + *tchttp.BaseResponse + Response *UpdateCodeFileResponseParams `json:"Response"` +} + +func (r *UpdateCodeFileResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateCodeFileResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateCodeFolderRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID,参数值来自CreateCodeFolder接口的返回 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +type UpdateCodeFolderRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID,参数值来自CreateCodeFolder接口的返回 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +func (r *UpdateCodeFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateCodeFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "FolderId") + delete(f, "FolderName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateCodeFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateCodeFolderResponseParams struct { + // 执行结果 + Data *CodeStudioFolderActionResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateCodeFolderResponse struct { + *tchttp.BaseResponse + Response *UpdateCodeFolderResponseParams `json:"Response"` +} + +func (r *UpdateCodeFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateCodeFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UpdateFolderResult struct { + // 更新状态,true表示更新成功,false表示更新失败 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +// Predefined struct for user +type UpdateOpsAlarmRuleRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警规则唯一id,通过接口GetAlarmRule/ListAlarmRule获取 + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` + + // 告警规则新的规则名称 + AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` + + // 监控对象类型, + // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) + // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 + MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` + + // 根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 + MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` + + // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; 项目波动告警 projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectFailureInstanceUpwardVolatilityAlarm:当天失败实例数向上波动量超过阀值告警 projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; projectSuccessInstanceDownwardVolatilityAlarm: 当天成功实例数向下波动量超过阀值告警 projectFailureInstanceCountAlarm: 当天失败实例数超过阀值告警 projectFailureInstanceProportionAlarm: 当天失败实例数占比超过阀值告警 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 + AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` + + // 告警规则配置信息 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 + AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` + + // 告警规则的启用状态0--禁用1--启用 + Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` + + // 告警级别 1.普通、2.重要、3.紧急 + AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 告警接收人配置信息 + AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` + + // 告警描述信息 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +type UpdateOpsAlarmRuleRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 告警规则唯一id,通过接口GetAlarmRule/ListAlarmRule获取 + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` + + // 告警规则新的规则名称 + AlarmRuleName *string `json:"AlarmRuleName,omitnil,omitempty" name:"AlarmRuleName"` + + // 监控对象类型, + // 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) + // 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 + MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` + + // 根据MonitorType 的设置传入不同的业务id,如下1(任务): MonitorObjectIds为任务id列表2(工作流): MonitorObjectIds 为工作流id列表(工作流id可从接口ListWorkflows获取)3(项目): MonitorObjectIds为项目id列表 + MonitorObjectIds []*string `json:"MonitorObjectIds,omitnil,omitempty" name:"MonitorObjectIds"` + + // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; 项目波动告警 projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectFailureInstanceUpwardVolatilityAlarm:当天失败实例数向上波动量超过阀值告警 projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; projectSuccessInstanceDownwardVolatilityAlarm: 当天成功实例数向下波动量超过阀值告警 projectFailureInstanceCountAlarm: 当天失败实例数超过阀值告警 projectFailureInstanceProportionAlarm: 当天失败实例数占比超过阀值告警 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 + AlarmTypes []*string `json:"AlarmTypes,omitnil,omitempty" name:"AlarmTypes"` + + // 告警规则配置信息 成功告警无需配置;失败告警可以配置首次失败告警或者所有重试失败告警;超时配置需要配置超时类型及超时阀值;项目波动告警需要配置波动率及防抖周期配置 + AlarmRuleDetail *AlarmRuleDetail `json:"AlarmRuleDetail,omitnil,omitempty" name:"AlarmRuleDetail"` + + // 告警规则的启用状态0--禁用1--启用 + Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` + + // 告警级别 1.普通、2.重要、3.紧急 + AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + + // 告警接收人配置信息 + AlarmGroups []*AlarmGroup `json:"AlarmGroups,omitnil,omitempty" name:"AlarmGroups"` + + // 告警描述信息 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +func (r *UpdateOpsAlarmRuleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateOpsAlarmRuleRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "AlarmRuleId") + delete(f, "AlarmRuleName") + delete(f, "MonitorObjectType") + delete(f, "MonitorObjectIds") + delete(f, "AlarmTypes") + delete(f, "AlarmRuleDetail") + delete(f, "Status") + delete(f, "AlarmLevel") + delete(f, "AlarmGroups") + delete(f, "Description") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateOpsAlarmRuleRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateOpsAlarmRuleResponseParams struct { + // 更新结果是否成功 + // true: 更新成功 false:更新失败/未更新 + Data *ModifyAlarmRuleResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateOpsAlarmRuleResponse struct { + *tchttp.BaseResponse + Response *UpdateOpsAlarmRuleResponseParams `json:"Response"` +} + +func (r *UpdateOpsAlarmRuleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateOpsAlarmRuleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateOpsTasksOwnerRequestParams struct { + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id列表 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 任务负责人Id + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` +} + +type UpdateOpsTasksOwnerRequest struct { + *tchttp.BaseRequest + + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id列表 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 任务负责人Id + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` +} + +func (r *UpdateOpsTasksOwnerRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateOpsTasksOwnerRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskIds") + delete(f, "OwnerUin") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateOpsTasksOwnerRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateOpsTasksOwnerResponseParams struct { + // 操作结果 + Data *UpdateTasksOwner `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateOpsTasksOwnerResponse struct { + *tchttp.BaseResponse + Response *UpdateOpsTasksOwnerResponseParams `json:"Response"` +} + +func (r *UpdateOpsTasksOwnerResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateOpsTasksOwnerResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateResourceFileRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源文件ID,可通过ListResourceFiles接口获取 + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` + + // - 上传文件及手填两种方式只能选择其一,如果两者均提供,取值顺序为文件>手填值 + // - 手填值必须是存在的cos路径, /datastudio/resource/ 为固定前缀, projectId 为项目ID,需传入具体值, parentFolderPath为父文件夹路径, name为文件名, 手填值取值示例: + // /datastudio/resource/projectId/parentFolderPath/name + ResourceFile *string `json:"ResourceFile,omitnil,omitempty" name:"ResourceFile"` + + // 资源名称, 尽可能和文件名保持一致 + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // bundle客户端ID + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // bundle客户端名称 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +type UpdateResourceFileRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 资源文件ID,可通过ListResourceFiles接口获取 + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` + + // - 上传文件及手填两种方式只能选择其一,如果两者均提供,取值顺序为文件>手填值 + // - 手填值必须是存在的cos路径, /datastudio/resource/ 为固定前缀, projectId 为项目ID,需传入具体值, parentFolderPath为父文件夹路径, name为文件名, 手填值取值示例: + // /datastudio/resource/projectId/parentFolderPath/name + ResourceFile *string `json:"ResourceFile,omitnil,omitempty" name:"ResourceFile"` + + // 资源名称, 尽可能和文件名保持一致 + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // bundle客户端ID + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // bundle客户端名称 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +func (r *UpdateResourceFileRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateResourceFileRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "ResourceId") + delete(f, "ResourceFile") + delete(f, "ResourceName") + delete(f, "BundleId") + delete(f, "BundleInfo") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateResourceFileRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateResourceFileResponseParams struct { + // 更新状态 + Data *UpdateResourceFileResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateResourceFileResponse struct { + *tchttp.BaseResponse + Response *UpdateResourceFileResponseParams `json:"Response"` +} + +func (r *UpdateResourceFileResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateResourceFileResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UpdateResourceFileResult struct { + // true + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +// Predefined struct for user +type UpdateResourceFolderRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID, 可通过ListResourceFolders接口获取 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +type UpdateResourceFolderRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID, 可通过ListResourceFolders接口获取 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +func (r *UpdateResourceFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateResourceFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "FolderId") + delete(f, "FolderName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateResourceFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateResourceFolderResponseParams struct { + // 更新文件夹结果,如果更新失败则报错。 + Data *UpdateFolderResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateResourceFolderResponse struct { + *tchttp.BaseResponse + Response *UpdateResourceFolderResponseParams `json:"Response"` +} + +func (r *UpdateResourceFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateResourceFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateSQLFolderRequestParams struct { + // 文件夹Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 权限范围:SHARED, PRIVATE + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` +} + +type UpdateSQLFolderRequest struct { + *tchttp.BaseRequest + + // 文件夹Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 权限范围:SHARED, PRIVATE + AccessScope *string `json:"AccessScope,omitnil,omitempty" name:"AccessScope"` +} + +func (r *UpdateSQLFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateSQLFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "FolderId") + delete(f, "FolderName") + delete(f, "ProjectId") + delete(f, "AccessScope") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateSQLFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateSQLFolderResponseParams struct { + // 成功true,失败false + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *SQLContentActionResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateSQLFolderResponse struct { + *tchttp.BaseResponse + Response *UpdateSQLFolderResponseParams `json:"Response"` +} + +func (r *UpdateSQLFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateSQLFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateSQLScriptRequestParams struct { + // 探索脚本Id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据探索脚本配置 + ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` + + // 脚本内容, 需要用Base64编码 + ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` +} + +type UpdateSQLScriptRequest struct { + *tchttp.BaseRequest + + // 探索脚本Id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据探索脚本配置 + ScriptConfig *SQLScriptConfig `json:"ScriptConfig,omitnil,omitempty" name:"ScriptConfig"` + + // 脚本内容, 需要用Base64编码 + ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` +} + +func (r *UpdateSQLScriptRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateSQLScriptRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ScriptId") + delete(f, "ProjectId") + delete(f, "ScriptConfig") + delete(f, "ScriptContent") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateSQLScriptRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateSQLScriptResponseParams struct { + // 结果 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *SQLScript `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateSQLScriptResponse struct { + *tchttp.BaseResponse + Response *UpdateSQLScriptResponseParams `json:"Response"` +} + +func (r *UpdateSQLScriptResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateSQLScriptResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UpdateTaskBaseAttribute struct { + // 任务名称 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 任务负责人ID + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 任务描述 + TaskDescription *string `json:"TaskDescription,omitnil,omitempty" name:"TaskDescription"` +} + +type UpdateTaskBrief struct { + // 任务基本属性 + TaskBaseAttribute *UpdateTaskBaseAttribute `json:"TaskBaseAttribute,omitnil,omitempty" name:"TaskBaseAttribute"` + + // 任务配置 + TaskConfiguration *TaskConfiguration `json:"TaskConfiguration,omitnil,omitempty" name:"TaskConfiguration"` + + // 任务调度配置 + TaskSchedulerConfiguration *TaskSchedulerConfiguration `json:"TaskSchedulerConfiguration,omitnil,omitempty" name:"TaskSchedulerConfiguration"` +} + +// Predefined struct for user +type UpdateTaskRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务基本属性 + Task *UpdateTaskBrief `json:"Task,omitnil,omitempty" name:"Task"` +} + +type UpdateTaskRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务ID + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务基本属性 + Task *UpdateTaskBrief `json:"Task,omitnil,omitempty" name:"Task"` +} + +func (r *UpdateTaskRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateTaskRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "TaskId") + delete(f, "Task") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateTaskRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateTaskResponseParams struct { + // 任务ID + Data *UpdateTaskResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateTaskResponse struct { + *tchttp.BaseResponse + Response *UpdateTaskResponseParams `json:"Response"` +} + +func (r *UpdateTaskResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateTaskResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UpdateTaskResult struct { + // 处理结果,成功返回 true,不成功返回 false + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +type UpdateTasksOwner struct { + // 修改任务责任人结果 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +// Predefined struct for user +type UpdateWorkflowFolderRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID,可通过ListWorkflowFolders接口获取 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 更新后的文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +type UpdateWorkflowFolderRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID,可通过ListWorkflowFolders接口获取 + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 更新后的文件夹名称 + FolderName *string `json:"FolderName,omitnil,omitempty" name:"FolderName"` +} + +func (r *UpdateWorkflowFolderRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateWorkflowFolderRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "FolderId") + delete(f, "FolderName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateWorkflowFolderRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateWorkflowFolderResponseParams struct { + // 更新文件夹结果,如果更新失败则报错。 + Data *UpdateFolderResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateWorkflowFolderResponse struct { + *tchttp.BaseResponse + Response *UpdateWorkflowFolderResponseParams `json:"Response"` +} + +func (r *UpdateWorkflowFolderResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateWorkflowFolderResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateWorkflowRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流ID + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 责任人ID + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 备注 + WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` + + // 工作流参数列表 + WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` + + // 统一调度参数 + WorkflowSchedulerConfiguration *WorkflowSchedulerConfigurationInfo `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` + + // BundleId项 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // Bundle信息 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +type UpdateWorkflowRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 工作流ID + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 责任人ID + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 备注 + WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` + + // 工作流参数列表 + WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` + + // 统一调度参数 + WorkflowSchedulerConfiguration *WorkflowSchedulerConfigurationInfo `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` + + // BundleId项 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // Bundle信息 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +func (r *UpdateWorkflowRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateWorkflowRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "WorkflowId") + delete(f, "WorkflowName") + delete(f, "OwnerUin") + delete(f, "WorkflowDesc") + delete(f, "WorkflowParams") + delete(f, "WorkflowSchedulerConfiguration") + delete(f, "BundleId") + delete(f, "BundleInfo") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateWorkflowRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateWorkflowResponseParams struct { + // true代表成功,false代表失败 + Data *UpdateWorkflowResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateWorkflowResponse struct { + *tchttp.BaseResponse + Response *UpdateWorkflowResponseParams `json:"Response"` +} + +func (r *UpdateWorkflowResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateWorkflowResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UpdateWorkflowResult struct { + // 更新工作流结果 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +type WorkflowDetail struct { + // 工作流名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 责任人ID + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 创建人ID + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 工作流类型,cycle和manual + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // 工作流参数数组 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowParams []*ParamInfo `json:"WorkflowParams,omitnil,omitempty" name:"WorkflowParams"` + + // 统一调度参数 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowSchedulerConfiguration *WorkflowSchedulerConfiguration `json:"WorkflowSchedulerConfiguration,omitnil,omitempty" name:"WorkflowSchedulerConfiguration"` + + // 工作流描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` + + // 工作流所属路径 + // 注意:此字段可能返回 null,表示取不到有效值。 + Path *string `json:"Path,omitnil,omitempty" name:"Path"` + + // BundleId项 + // 注意:此字段可能返回 null,表示取不到有效值。 + BundleId *string `json:"BundleId,omitnil,omitempty" name:"BundleId"` + + // BundleInfo项 + // 注意:此字段可能返回 null,表示取不到有效值。 + BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` +} + +type WorkflowFolder struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 文件夹ID + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + + // 文件夹绝对路径 + FolderPath *string `json:"FolderPath,omitnil,omitempty" name:"FolderPath"` + + // 创建人ID + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` +} + +type WorkflowFolderPage struct { + // 数据页数,大于等于1 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的数据条数,最小为10条,最大为200 条 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 文件夹总数 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页数 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + + // 文件夹列表 + Items []*WorkflowFolder `json:"Items,omitnil,omitempty" name:"Items"` +} + +type WorkflowInfo struct { + // 工作流ID + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + + // 工作流名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + + // 工作流类型,cycle及manual + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + + // 负责人ID + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + + // 创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 最新修改时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + + // 最后更新人ID + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateUserUin *string `json:"UpdateUserUin,omitnil,omitempty" name:"UpdateUserUin"` + + // 工作流描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + WorkflowDesc *string `json:"WorkflowDesc,omitnil,omitempty" name:"WorkflowDesc"` + + // 创建人ID + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` +} + +type WorkflowSchedulerConfiguration struct { + // 时区 + // 注意:此字段可能返回 null,表示取不到有效值。 + ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` + + // 周期类型:支持的类型为 + // ONEOFF_CYCLE: 一次性 + // YEAR_CYCLE: 年 + // MONTH_CYCLE: 月 + // WEEK_CYCLE: 周 + // DAY_CYCLE: 天 + // HOUR_CYCLE: 小时 + // MINUTE_CYCLE: 分钟 + // CRONTAB_CYCLE: crontab表达式类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 自依赖, 默认值 serial, 取值为:parallel(并行), serial(串行), orderly(有序) + // 注意:此字段可能返回 null,表示取不到有效值。 + SelfDepend *string `json:"SelfDepend,omitnil,omitempty" name:"SelfDepend"` + + // 生效开始时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 生效结束时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 工作流依赖,yes or no + // 注意:此字段可能返回 null,表示取不到有效值。 + DependencyWorkflow *string `json:"DependencyWorkflow,omitnil,omitempty" name:"DependencyWorkflow"` + + // 执行时间左闭区间,示例:00:00 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` + + // 执行时间右闭区间,示例:23:59 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` + + // cron表达式 + // 注意:此字段可能返回 null,表示取不到有效值。 + CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` + + // 是否开启日历调度 1 开启 0关闭 + // 注意:此字段可能返回 null,表示取不到有效值。 + CalendarOpen *string `json:"CalendarOpen,omitnil,omitempty" name:"CalendarOpen"` + + // 日历名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + CalendarName *string `json:"CalendarName,omitnil,omitempty" name:"CalendarName"` + + // 日历id + // 注意:此字段可能返回 null,表示取不到有效值。 + CalendarId *string `json:"CalendarId,omitnil,omitempty" name:"CalendarId"` +} + +type WorkflowSchedulerConfigurationInfo struct { + // 时区 + ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` + + // 周期类型:支持的类型为 + // ONEOFF_CYCLE: 一次性 + // YEAR_CYCLE: 年 + // MONTH_CYCLE: 月 + // WEEK_CYCLE: 周 + // DAY_CYCLE: 天 + // HOUR_CYCLE: 小时 + // MINUTE_CYCLE: 分钟 + // CRONTAB_CYCLE: crontab表达式类型 + CycleType *string `json:"CycleType,omitnil,omitempty" name:"CycleType"` + + // 自依赖, 默认值 serial, 取值为:parallel(并行), serial(串行), orderly(有序) + SelfDepend *string `json:"SelfDepend,omitnil,omitempty" name:"SelfDepend"` + + // 生效开始时间 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 生效结束时间 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // cron表达式 + CrontabExpression *string `json:"CrontabExpression,omitnil,omitempty" name:"CrontabExpression"` + + // 工作流依赖,yes or no + DependencyWorkflow *string `json:"DependencyWorkflow,omitnil,omitempty" name:"DependencyWorkflow"` + + // 0:不修改 1:将任务的上游依赖配置改为默认值 + ModifyCycleValue *string `json:"ModifyCycleValue,omitnil,omitempty" name:"ModifyCycleValue"` + + // 工作流存在跨工作流依赖且使用cron表达式调度。如果保存统一调度,会断开不支持的依赖关系 + ClearLink *bool `json:"ClearLink,omitnil,omitempty" name:"ClearLink"` + + // ModifyCycleValue为1的时候生效,表示默认修改的上游依赖-时间维度,取值为: + // * CRONTAB + // * DAY + // * HOUR + // * LIST_DAY + // * LIST_HOUR + // * LIST_MINUTE + // * MINUTE + // * MONTH + // * RANGE_DAY + // * RANGE_HOUR + // * RANGE_MINUTE + // * WEEK + // * YEAR + // + // https://capi.woa.com/object/detail?product=wedata&env=api_dev&version=2025-08-06&name=WorkflowSchedulerConfigurationInfo + MainCyclicConfig *string `json:"MainCyclicConfig,omitnil,omitempty" name:"MainCyclicConfig"` + + // ModifyCycleValue为1的时候生效,表示默认修改的上游依赖-实例范围 + // 取值为: + // * ALL_DAY_OF_YEAR + // * ALL_MONTH_OF_YEAR + // * CURRENT + // * CURRENT_DAY + // * CURRENT_HOUR + // * CURRENT_MINUTE + // * CURRENT_MONTH + // * CURRENT_WEEK + // * CURRENT_YEAR + // * PREVIOUS_BEGIN_OF_MONTH + // * PREVIOUS_DAY + // * PREVIOUS_DAY_LATER_OFFSET_HOUR + // * PREVIOUS_DAY_LATER_OFFSET_MINUTE + // * PREVIOUS_END_OF_MONTH + // * PREVIOUS_FRIDAY + // * PREVIOUS_HOUR + // * PREVIOUS_HOUR_CYCLE + // * PREVIOUS_HOUR_LATER_OFFSET_MINUTE + // * PREVIOUS_MINUTE_CYCLE + // * PREVIOUS_MONTH + // * PREVIOUS_WEEK + // * PREVIOUS_WEEKEND + // * RECENT_DATE + // + // https://capi.woa.com/object/detail?product=wedata&env=api_dev&version=2025-08-06&name=WorkflowSchedulerConfigurationInfo + SubordinateCyclicConfig *string `json:"SubordinateCyclicConfig,omitnil,omitempty" name:"SubordinateCyclicConfig"` + + // 执行时间左闭区间,示例:00:00,只有周期类型为MINUTE_CYCLE才需要填入 + ExecutionStartTime *string `json:"ExecutionStartTime,omitnil,omitempty" name:"ExecutionStartTime"` + + // 执行时间右闭区间,示例:23:59,只有周期类型为MINUTE_CYCLE才需要填入 + ExecutionEndTime *string `json:"ExecutionEndTime,omitnil,omitempty" name:"ExecutionEndTime"` + + // 是否开启日历调度 1 开启 0关闭 + CalendarOpen *string `json:"CalendarOpen,omitnil,omitempty" name:"CalendarOpen"` + + // 日历id + CalendarId *string `json:"CalendarId,omitnil,omitempty" name:"CalendarId"` +} \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index 9d69815e7c..049fb642ad 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1170,15 +1170,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1148 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016 -<<<<<<< HEAD -<<<<<<< HEAD -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.31 -======= -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.23 ->>>>>>> bb6625576 (add) -======= # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.35 ->>>>>>> e8250d1c6 (add) ## explicit; go 1.11 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors From bb396ca05b06b673852ce4b9818ef4ef51292c42 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Sun, 28 Sep 2025 11:35:52 +0800 Subject: [PATCH 13/13] add --- ...e_tc_dlc_standard_engine_resource_group.go | 159 +++++++++++++++++- ...e_tc_dlc_standard_engine_resource_group.md | 2 + ...dlc_standard_engine_resource_group_test.go | 38 +++++ .../resource_tc_dlc_user_vpc_connection.md | 12 ++ ...andard_engine_resource_group.html.markdown | 8 +- .../r/dlc_user_vpc_connection.html.markdown | 12 ++ 6 files changed, 224 insertions(+), 7 deletions(-) diff --git a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go index f7fdb9998a..ee78f4ecdb 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.go @@ -162,7 +162,7 @@ func ResourceTencentCloudDlcStandardEngineResourceGroup() *schema.Resource { "image_name": { Type: schema.TypeString, Optional: true, - Description: "Image name.\nmachine-learning: pytorch-v2.5.1, scikit-learn-v1.6.0, tensorflow-v2.18.0\nspark-ml: Standard-S 1.1\npython: python-v3.10.", + Description: "Image Name. \nExample value: image-xxx. If using a built-in image (ImageType is built-in), the ImageName for different frameworks is: machine-learning: pytorch-v2.5.1, scikit-learn-v1.6.0, tensorflow-v2.18.0, python: python-v3.10, spark-m: Standard-S 1.1.", }, "image_version": { @@ -560,7 +560,7 @@ func resourceTencentCloudDlcStandardEngineResourceGroupUpdate(d *schema.Resource engineResourceGroupName = d.Id() ) - immutableArgs := []string{"engine_resource_group_name", "data_engine_name", "auto_launch", "auto_pause", "auto_pause_time", "static_config_pairs", "dynamic_config_pairs", "max_concurrency", "resource_group_scene"} + immutableArgs := []string{"engine_resource_group_name", "data_engine_name", "static_config_pairs", "dynamic_config_pairs", "resource_group_scene"} for _, v := range immutableArgs { if d.HasChange(v) { return fmt.Errorf("argument `%s` cannot be changed", v) @@ -782,6 +782,94 @@ func resourceTencentCloudDlcStandardEngineResourceGroupUpdate(d *schema.Resource } } + if d.HasChange("auto_pause") || d.HasChange("auto_launch") || d.HasChange("auto_pause_time") || d.HasChange("max_concurrency") { + var ( + autoPause int + autoLaunch int + ) + + request := dlcv20210125.NewUpdateStandardEngineResourceGroupBaseInfoRequest() + if v, ok := d.GetOkExists("auto_pause"); ok { + autoPause = v.(int) + } + + if v, ok := d.GetOkExists("auto_launch"); ok { + autoLaunch = v.(int) + } + + if v, ok := d.GetOkExists("auto_pause_time"); ok { + request.AutoPauseTime = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOkExists("max_concurrency"); ok { + request.MaxConcurrency = helper.IntInt64(v.(int)) + } + + request.AutoPause = helper.IntInt64(autoPause) + request.AutoLaunch = helper.IntInt64(autoLaunch) + request.EngineResourceGroupName = &engineResourceGroupName + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().UpdateStandardEngineResourceGroupBaseInfoWithContext(ctx, request) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s update dlc standard engine resource group base info failed, reason:%+v", logId, reqErr) + return reqErr + } + + // wait + waitErr := resource.Retry(tccommon.WriteRetryTimeout*4, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, &dlcv20210125.DescribeStandardEngineResourceGroupsRequest{ + Filters: []*dlcv20210125.Filter{ + { + Name: helper.String("engine-resource-group-name-unique"), + Values: helper.Strings([]string{engineResourceGroupName}), + }, + }, + }) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe dlc standard engine resource groups failed, Response is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) + } + + if len(result.Response.UserEngineResourceGroupInfos) != 1 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not 1.")) + } + + state := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState + if state != nil { + if *state == 2 { + return nil + } + } else { + return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) + } + + return resource.RetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not ready, state:%d", *state)) + }) + + if waitErr != nil { + log.Printf("[CRITAL]%s wait for dlc standard engine resource group failed, reason:%+v", logId, waitErr) + return waitErr + } + } + return resourceTencentCloudDlcStandardEngineResourceGroupRead(d, meta) } @@ -796,8 +884,73 @@ func resourceTencentCloudDlcStandardEngineResourceGroupDelete(d *schema.Resource engineResourceGroupName = d.Id() ) - request.EngineResourceGroupName = &engineResourceGroupName + // pause first + pauseRequest := dlcv20210125.NewPauseStandardEngineResourceGroupsRequest() + pauseRequest.EngineResourceGroupNames = helper.Strings([]string{engineResourceGroupName}) reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().PauseStandardEngineResourceGroupsWithContext(ctx, pauseRequest) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + return nil + }) + + if reqErr != nil { + log.Printf("[CRITAL]%s pause dlc standard engine resource group failed, reason:%+v", logId, reqErr) + return reqErr + } + + // wait + waitErr := resource.Retry(tccommon.WriteRetryTimeout*4, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DescribeStandardEngineResourceGroupsWithContext(ctx, &dlcv20210125.DescribeStandardEngineResourceGroupsRequest{ + Filters: []*dlcv20210125.Filter{ + { + Name: helper.String("engine-resource-group-name-unique"), + Values: helper.Strings([]string{engineResourceGroupName}), + }, + }, + }) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + + if result == nil || result.Response == nil { + return resource.NonRetryableError(fmt.Errorf("Describe dlc standard engine resource groups failed, Response is nil.")) + } + + if result.Response.UserEngineResourceGroupInfos == nil || len(result.Response.UserEngineResourceGroupInfos) == 0 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is nil.")) + } + + if len(result.Response.UserEngineResourceGroupInfos) != 1 { + return resource.NonRetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not 1.")) + } + + state := result.Response.UserEngineResourceGroupInfos[0].ResourceGroupState + if state != nil { + if *state == 3 { + return nil + } + } else { + return resource.NonRetryableError(fmt.Errorf("ResourceGroupState is nil.")) + } + + return resource.RetryableError(fmt.Errorf("UserEngineResourceGroupInfos is not pause, state:%d", *state)) + }) + + if waitErr != nil { + log.Printf("[CRITAL]%s wait for dlc standard engine resource group pause failed, reason:%+v", logId, waitErr) + return waitErr + } + + // delete end + request.EngineResourceGroupName = &engineResourceGroupName + reqErr = resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseDlcClient().DeleteStandardEngineResourceGroupWithContext(ctx, request) if e != nil { return tccommon.RetryError(e) diff --git a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md index 1b5211aee4..90bfe7f26c 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md +++ b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group.md @@ -2,6 +2,8 @@ Provides a resource to create a DLC standard engine resource group ~> **NOTE:** If you are creating a machine learning resource group for the first time, you need to contact DLC product for whitelisting. +~> **NOTE:** Field `auto_pause_time` is meaningful only when the values ​​of fields `auto_launch` and `auto_pause` are 0. + Example Usage Only SQL analysis resource group diff --git a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go index 43b762c6c6..fa0569eabd 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go +++ b/tencentcloud/services/dlc/resource_tc_dlc_standard_engine_resource_group_test.go @@ -31,6 +31,21 @@ func TestAccTencentCloudDlcStandardEngineResourceGroupResource_basic(t *testing. resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "spark_size"), ), }, + { + Config: testAccDlcStandardEngineResourceGroupUpdate, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "id"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "engine_resource_group_name"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "data_engine_name"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "auto_launch"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "auto_pause"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "auto_pause_time"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "max_concurrency"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "resource_group_scene"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "spark_spec_mode"), + resource.TestCheckResourceAttrSet("tencentcloud_dlc_standard_engine_resource_group.example", "spark_size"), + ), + }, }, }) } @@ -57,3 +72,26 @@ resource "tencentcloud_dlc_standard_engine_resource_group" "example" { spark_size = 16 } ` + +const testAccDlcStandardEngineResourceGroupUpdate = ` +resource "tencentcloud_dlc_standard_engine_resource_group" "example" { + engine_resource_group_name = "tf-example" + data_engine_name = "tf-engine" + auto_launch = 0 + auto_pause = 0 + auto_pause_time = 20 + static_config_pairs { + config_item = "key" + config_value = "value" + } + + dynamic_config_pairs { + config_item = "key" + config_value = "value" + } + max_concurrency = 10 + resource_group_scene = "SparkSQL" + spark_spec_mode = "fast" + spark_size = 16 +} +` diff --git a/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.md b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.md index b165a5d8cb..6b633ab909 100644 --- a/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.md +++ b/tencentcloud/services/dlc/resource_tc_dlc_user_vpc_connection.md @@ -10,3 +10,15 @@ resource "tencentcloud_dlc_user_vpc_connection" "example" { engine_network_id = "DataEngine-Network-2mfg9icb" } ``` + +Or + +```hcl +resource "tencentcloud_dlc_user_vpc_connection" "example" { + user_vpc_id = "vpc-f7fa1fu5" + user_subnet_id = "subnet-ds2t3udw" + user_vpc_endpoint_name = "tf-example" + engine_network_id = "DataEngine-Network-2mfg9icb" + user_vpc_endpoint_vip = "10.0.1.10" +} +``` diff --git a/website/docs/r/dlc_standard_engine_resource_group.html.markdown b/website/docs/r/dlc_standard_engine_resource_group.html.markdown index bea6e665e4..a645ccdca7 100644 --- a/website/docs/r/dlc_standard_engine_resource_group.html.markdown +++ b/website/docs/r/dlc_standard_engine_resource_group.html.markdown @@ -13,6 +13,8 @@ Provides a resource to create a DLC standard engine resource group ~> **NOTE:** If you are creating a machine learning resource group for the first time, you need to contact DLC product for whitelisting. +~> **NOTE:** Field `auto_pause_time` is meaningful only when the values ​​of fields `auto_launch` and `auto_pause` are 0. + ## Example Usage ### Only SQL analysis resource group @@ -72,10 +74,8 @@ The following arguments are supported: * `dynamic_config_pairs` - (Optional, List) Dynamic parameters of the resource group, effective in the next task. * `executor_cu_spec` - (Optional, String) Executor CU specifications: Currently supported: small (default, 1 CU), medium (2 CU), large (4 CU), xlarge (8 CU). Memory CUs are CPUs with a ratio of 1:8, m.small (1 CU memory), m.medium (2 CU memory), m.large (4 CU memory), and m.xlarge (8 CU memory). * `frame_type` - (Optional, String) The framework type of the AI type resource group, machine-learning, python, spark-ml, if not filled in, the default is machine-learning. -* `image_name` - (Optional, String) Image name. -machine-learning: pytorch-v2.5.1, scikit-learn-v1.6.0, tensorflow-v2.18.0 -spark-ml: Standard-S 1.1 -python: python-v3.10. +* `image_name` - (Optional, String) Image Name. +Example value: image-xxx. If using a built-in image (ImageType is built-in), the ImageName for different frameworks is: machine-learning: pytorch-v2.5.1, scikit-learn-v1.6.0, tensorflow-v2.18.0, python: python-v3.10, spark-m: Standard-S 1.1. * `image_type` - (Optional, String) Image type, build-in: built-in, custom: custom, if not filled in, the default is build-in. * `image_version` - (Optional, String) Image ID. * `max_concurrency` - (Optional, Int) The number of concurrent tasks is 5 by default. diff --git a/website/docs/r/dlc_user_vpc_connection.html.markdown b/website/docs/r/dlc_user_vpc_connection.html.markdown index 18ab008529..0aa243906e 100644 --- a/website/docs/r/dlc_user_vpc_connection.html.markdown +++ b/website/docs/r/dlc_user_vpc_connection.html.markdown @@ -22,6 +22,18 @@ resource "tencentcloud_dlc_user_vpc_connection" "example" { } ``` +### Or + +```hcl +resource "tencentcloud_dlc_user_vpc_connection" "example" { + user_vpc_id = "vpc-f7fa1fu5" + user_subnet_id = "subnet-ds2t3udw" + user_vpc_endpoint_name = "tf-example" + engine_network_id = "DataEngine-Network-2mfg9icb" + user_vpc_endpoint_vip = "10.0.1.10" +} +``` + ## Argument Reference The following arguments are supported: