diff --git a/.changelog/3553.txt b/.changelog/3553.txt new file mode 100644 index 0000000000..e06f8442fd --- /dev/null +++ b/.changelog/3553.txt @@ -0,0 +1,35 @@ +```release-note:new-data-source +tencentcloud_wedata_ops_downstream_tasks +``` + +```release-note:new-data-source +tencentcloud_wedata_ops_task_code +``` + +```release-note:new-data-source +tencentcloud_wedata_ops_tasks +``` + +```release-note:new-data-source +tencentcloud_wedata_ops_alarm_message +``` + +```release-note:new-data-source +tencentcloud_wedata_ops_alarm_messages +``` + +```release-note:new-data-source +tencentcloud_wedata_ops_upstream_tasks +``` + +```release-note:new-data-source +tencentcloud_wedata_data_backfill_instances +``` + +```release-note:new-data-source +tencentcloud_wedata_data_backfill_plan +``` + +```release-note:new-resource +tencentcloud_wedata_ops_task +``` \ No newline at end of file diff --git a/go.mod b/go.mod index 9a419e929f..8f05d9d07c 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.36 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.40 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 @@ -98,7 +98,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vod v1.0.860 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/waf v1.0.1170 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.1.31 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.1.40 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 github.com/tencentyun/cos-go-sdk-v5 v0.7.66 github.com/yangwenmai/ratelimit v0.0.0-20180104140304-44221c2292e1 diff --git a/go.sum b/go.sum index 50f42ddcd8..9690122c33 100644 --- a/go.sum +++ b/go.sum @@ -957,6 +957,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.35 h1:gcnqn github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.35/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.36 h1:9zBwuj7prOhpObcw8idPnTn78TbNeK2RfAYoUaB6O/o= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.36/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.40 h1:mNP6SgjUucirQfsAtChZ0bG6Cd2XcgJvHXW8IaChxtM= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.40/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= @@ -1090,6 +1092,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.0.792 h1:NLgK github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.0.792/go.mod h1:Xz6vPV3gHlzPwtEcmWdWO1EUXJDgn2p7UMCXbJiVioQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.1.31 h1:5mDWm86NA0etP4ictillWtZgyCHiK9hpCmj+qEYeowc= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.1.31/go.mod h1:+DhuFrNBquvUs+QSbtVMe1tzJZq5donfipnzo3Luo9Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.1.40 h1:ZHESnPRiyV9+HYSArZKPmliSjy85/El899LKGSsyxSw= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.1.40/go.mod h1:ROVq1WJulfJonhjNE6olW+xEBHPxqgAoYhpMZ7gFHO8= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 h1:hMBLtiJPnZ9GvA677cTB6ELBR6B68wCR2QY1sNoGQc4= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199/go.mod h1:nnY91/H3j/Gu7V/oCA6Zeg8T5D3q36EUdBh4EjmHwqY= github.com/tencentyun/cos-go-sdk-v5 v0.7.66 h1:O4O6EsozBoDjxWbltr3iULgkI7WPj/BFNlYTXDuE64E= diff --git a/tencentcloud/provider.go b/tencentcloud/provider.go index 6b9233410e..0a5df158b7 100644 --- a/tencentcloud/provider.go +++ b/tencentcloud/provider.go @@ -1168,10 +1168,18 @@ func Provider() *schema.Provider { "tencentcloud_wedata_task_code": wedata.DataSourceTencentCloudWedataTaskCode(), "tencentcloud_wedata_task_version": wedata.DataSourceTencentCloudWedataTaskVersion(), "tencentcloud_wedata_rule_templates": wedata.DataSourceTencentCloudWedataRuleTemplates(), + "tencentcloud_wedata_data_backfill_plan": wedata.DataSourceTencentCloudWedataDataBackfillPlan(), + "tencentcloud_wedata_data_backfill_instances": wedata.DataSourceTencentCloudWedataDataBackfillInstances(), "tencentcloud_wedata_ops_workflows": wedata.DataSourceTencentCloudWedataOpsWorkflows(), "tencentcloud_wedata_ops_workflow": wedata.DataSourceTencentCloudWedataOpsWorkflow(), "tencentcloud_wedata_ops_async_job": wedata.DataSourceTencentCloudWedataOpsAsyncJob(), "tencentcloud_wedata_ops_alarm_rules": wedata.DataSourceTencentCloudWedataOpsAlarmRules(), + "tencentcloud_wedata_ops_alarm_message": wedata.DataSourceTencentCloudWedataOpsAlarmMessage(), + "tencentcloud_wedata_ops_alarm_messages": wedata.DataSourceTencentCloudWedataOpsAlarmMessages(), + "tencentcloud_wedata_ops_downstream_tasks": wedata.DataSourceTencentCloudWedataOpsDownstreamTasks(), + "tencentcloud_wedata_ops_task_code": wedata.DataSourceTencentCloudWedataOpsTaskCode(), + "tencentcloud_wedata_ops_tasks": wedata.DataSourceTencentCloudWedataOpsTasks(), + "tencentcloud_wedata_ops_upstream_tasks": wedata.DataSourceTencentCloudWedataOpsUpstreamTasks(), "tencentcloud_wedata_task_instance": wedata.DataSourceTencentCloudWedataTaskInstance(), "tencentcloud_wedata_task_instances": wedata.DataSourceTencentCloudWedataTaskInstances(), "tencentcloud_wedata_task_instance_log": wedata.DataSourceTencentCloudWedataTaskInstanceLog(), @@ -2311,6 +2319,7 @@ func Provider() *schema.Provider { "tencentcloud_wedata_task_kill_instance_async": wedata.ResourceTencentCloudWedataTaskKillInstanceAsync(), "tencentcloud_wedata_task_rerun_instance_async": wedata.ResourceTencentCloudWedataTaskRerunInstanceAsync(), "tencentcloud_wedata_task_set_success_instance_async": wedata.ResourceTencentCloudWedataTaskSetSuccessInstanceAsync(), + "tencentcloud_wedata_ops_task": wedata.ResourceTencentCloudWedataOpsTask(), "tencentcloud_wedata_integration_offline_task": wedata.ResourceTencentCloudWedataIntegrationOfflineTask(), "tencentcloud_wedata_integration_realtime_task": wedata.ResourceTencentCloudWedataIntegrationRealtimeTask(), "tencentcloud_wedata_integration_task_node": wedata.ResourceTencentCloudWedataIntegrationTaskNode(), diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index d3e7f52c32..91226e9318 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -2230,9 +2230,17 @@ tencentcloud_wedata_downstream_tasks tencentcloud_wedata_task_code tencentcloud_wedata_task_version tencentcloud_wedata_rule_templates +tencentcloud_wedata_data_backfill_plan +tencentcloud_wedata_data_backfill_instances tencentcloud_wedata_ops_workflows tencentcloud_wedata_ops_workflow tencentcloud_wedata_ops_alarm_rules +tencentcloud_wedata_ops_alarm_message +tencentcloud_wedata_ops_alarm_messages +tencentcloud_wedata_ops_downstream_tasks +tencentcloud_wedata_ops_task_code +tencentcloud_wedata_ops_tasks +tencentcloud_wedata_ops_upstream_tasks tencentcloud_wedata_task_instance tencentcloud_wedata_task_instances tencentcloud_wedata_task_instance_log @@ -2259,6 +2267,7 @@ tencentcloud_wedata_ops_alarm_rule tencentcloud_wedata_task_kill_instance_async tencentcloud_wedata_task_rerun_instance_async tencentcloud_wedata_task_set_success_instance_async +tencentcloud_wedata_ops_task tencentcloud_wedata_integration_offline_task tencentcloud_wedata_integration_realtime_task tencentcloud_wedata_integration_task_node diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances.go b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances.go new file mode 100644 index 0000000000..e474250755 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances.go @@ -0,0 +1,228 @@ +// Code generated by iacg; DO NOT EDIT. +package wedata + +import ( + "context" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + wedatav20250806 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806" + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudWedataDataBackfillInstances() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudWedataDataBackfillInstancesRead, + Schema: map[string]*schema.Schema{ + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + + "data_backfill_plan_id": { + Type: schema.TypeString, + Required: true, + Description: "Backfill plan Id.", + }, + + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + + "data": { + Type: schema.TypeList, + Computed: true, + Description: "All backfill instances under one backfill plan.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Page number.", + }, + "page_size": { + Type: schema.TypeInt, + Required: true, + Description: "Pagination size.", + }, + "total_page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Total pages.", + }, + "total_count": { + Type: schema.TypeInt, + Required: true, + Description: "Total number of records.", + }, + "items": { + Type: schema.TypeList, + Required: true, + Description: "Specifies the backfill instance list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "task_name": { + Type: schema.TypeString, + Required: true, + Description: "Task name.", + }, + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + "cur_run_date": { + Type: schema.TypeString, + Required: true, + Description: "Specifies the instance data time.", + }, + "state": { + Type: schema.TypeString, + Required: true, + Description: "Execution status.", + }, + "start_time": { + Type: schema.TypeString, + Required: true, + Description: "Start time.\n\n", + }, + "end_time": { + Type: schema.TypeString, + Required: true, + Description: "End time.\n\n", + }, + "cost_time": { + Type: schema.TypeString, + Required: true, + Description: "Execution duration.\n\n", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudWedataDataBackfillInstancesRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_wedata_data_backfill_instances.read")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(nil) + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + service := WedataService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("project_id"); ok { + paramMap["ProjectId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("data_backfill_plan_id"); ok { + paramMap["DataBackfillPlanId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("task_id"); ok { + paramMap["TaskId"] = helper.String(v.(string)) + } + + var respData *wedatav20250806.ListDataBackfillInstancesResponseParams + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeWedataDataBackfillInstancesByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + respData = result + return nil + }) + if reqErr != nil { + return reqErr + } + + var projectId string + var taskId string + var dataBackfillPlanId string + dataMap := map[string]interface{}{} + + if respData.Data != nil { + if respData.Data.PageNumber != nil { + dataMap["page_number"] = respData.Data.PageNumber + } + + if respData.Data.PageSize != nil { + dataMap["page_size"] = respData.Data.PageSize + } + + if respData.Data.TotalPageNumber != nil { + dataMap["total_page_number"] = respData.Data.TotalPageNumber + } + + if respData.Data.TotalCount != nil { + dataMap["total_count"] = respData.Data.TotalCount + } + + itemsList := make([]map[string]interface{}, 0, len(respData.Data.Items)) + if respData.Data.Items != nil { + for _, items := range respData.Data.Items { + itemsMap := map[string]interface{}{} + + if items.TaskName != nil { + itemsMap["task_name"] = items.TaskName + } + + if items.TaskId != nil { + itemsMap["task_id"] = items.TaskId + } + + if items.CurRunDate != nil { + itemsMap["cur_run_date"] = items.CurRunDate + } + + if items.State != nil { + itemsMap["state"] = items.State + } + + if items.StartTime != nil { + itemsMap["start_time"] = items.StartTime + } + + if items.EndTime != nil { + itemsMap["end_time"] = items.EndTime + } + + if items.CostTime != nil { + itemsMap["cost_time"] = items.CostTime + } + + itemsList = append(itemsList, itemsMap) + } + + dataMap["items"] = itemsList + } + _ = d.Set("data", []interface{}{dataMap}) + } + + d.SetId(strings.Join([]string{projectId, taskId, dataBackfillPlanId}, tccommon.FILED_SP)) + + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), dataMap); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances.md b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances.md new file mode 100644 index 0000000000..e0b82212fc --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances.md @@ -0,0 +1,11 @@ +Use this data source to query detailed information of wedata data backfill instances + +Example Usage + +```hcl +data "tencentcloud_wedata_data_backfill_instances" "wedata_data_backfill_instances" { + project_id = "1859317240494305280" + data_backfill_plan_id = "deb71ea1-f708-47ab-8eb6-491ce5b9c011" + task_id = "20231011152006462" +} +``` \ No newline at end of file diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances_extension.go b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances_extension.go new file mode 100644 index 0000000000..4a61b9ede3 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances_extension.go @@ -0,0 +1 @@ +package wedata diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances_test.go b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances_test.go new file mode 100644 index 0000000000..27d3303a64 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_instances_test.go @@ -0,0 +1,37 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudWedataDataBackfillInstancesDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccWedataDataBackfillInstancesDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_wedata_data_backfill_instances.wedata_data_backfill_instances"), + resource.TestCheckResourceAttrSet("data.tencentcloud_wedata_data_backfill_instances.wedata_data_backfill_instances", "id"), + resource.TestCheckResourceAttr("data.tencentcloud_wedata_data_backfill_instances.wedata_data_backfill_instances", "data.#", "1"), + ), + }, + }, + }) +} + +const testAccWedataDataBackfillInstancesDataSource = ` + +data "tencentcloud_wedata_data_backfill_instances" "wedata_data_backfill_instances" { + project_id = "1859317240494305280" + data_backfill_plan_id = "deb71ea1-f708-47ab-8eb6-491ce5b9c011" + task_id = "20231011152006462" +} +` diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan.go b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan.go new file mode 100644 index 0000000000..dde8dceaf6 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan.go @@ -0,0 +1,357 @@ +// Code generated by iacg; DO NOT EDIT. +package wedata + +import ( + "context" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + wedatav20250806 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806" + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudWedataDataBackfillPlan() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudWedataDataBackfillPlanRead, + Schema: map[string]*schema.Schema{ + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + + "data_backfill_plan_id": { + Type: schema.TypeString, + Required: true, + Description: "Backfill Plan ID.", + }, + + "time_zone": { + Type: schema.TypeString, + Optional: true, + Description: "Display time zone, default UTC+8.", + }, + + "data": { + Type: schema.TypeList, + Computed: true, + Description: "Backfill details.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + "data_backfill_plan_id": { + Type: schema.TypeString, + Required: true, + Description: "Data Backfill Plan ID.", + }, + "data_backfill_plan_name": { + Type: schema.TypeString, + Required: true, + Description: "Data Backfill Plan Name.", + }, + "task_ids": { + Type: schema.TypeSet, + Required: true, + Description: "Set of backfill tasks.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "data_backfill_range_list": { + Type: schema.TypeList, + Required: true, + Description: "List of data configuration for backfill tasks.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "start_date": { + Type: schema.TypeString, + Optional: true, + Description: "Start date, format yyyy-MM-dd, indicating start from 00:00:00 of the specified date.", + }, + "end_date": { + Type: schema.TypeString, + Optional: true, + Description: "End date, format yyyy-MM-dd, indicating end at 23:59:59 of the specified date.", + }, + "execution_start_time": { + Type: schema.TypeString, + Optional: true, + Description: "Daily start time point within [StartDate, EndDate], format HH:mm, only effective for tasks with hour or sub-hour cycles.", + }, + "execution_end_time": { + Type: schema.TypeString, + Optional: true, + Description: "Daily end time point within [StartDate, EndDate], format HH:mm, only effective for tasks with hour or sub-hour cycles.", + }, + }, + }, + }, + "check_parent_type": { + Type: schema.TypeString, + Required: true, + Description: "Parent task check type, valid values: - NONE - Do not check all - ALL - Check all upstream parent tasks - MAKE_SCOPE - Only check within the tasks selected in (the current backfill plan).", + }, + "skip_event_listening": { + Type: schema.TypeBool, + Required: true, + Description: "Whether the backfill ignores event dependencies.", + }, + "redefine_parallel_num": { + Type: schema.TypeInt, + Required: true, + Description: "Custom instance run concurrency, returns null or not returned indicates the task's original self-dependency.", + }, + "redefine_self_workflow_dependency": { + Type: schema.TypeString, + Required: true, + Description: "Custom workflow self-dependency, yes or no; if not configured, the workflow's original self-dependency is used.", + }, + "scheduler_resource_group_id": { + Type: schema.TypeString, + Required: true, + Description: "Scheduler resource group ID.", + }, + "integration_resource_group_id": { + Type: schema.TypeString, + Required: true, + Description: "Integration resource group ID.", + }, + "redefine_cycle_type": { + Type: schema.TypeString, + Required: true, + Description: "Backfill custom generation cycle.", + }, + "redefine_param_list": { + Type: schema.TypeList, + Required: true, + Description: "Custom parameters.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "k": { + Type: schema.TypeString, + Optional: true, + Description: "Key name.", + }, + "v": { + Type: schema.TypeString, + Optional: true, + Description: "Value, do not pass SQL (request will be treated as an attack interface). If necessary, Base64 encode and decode the SQL.", + }, + }, + }, + }, + "start_time": { + Type: schema.TypeString, + Required: true, + Description: "Execution start time of the backfill task.", + }, + "end_time": { + Type: schema.TypeString, + Required: true, + Description: "Execution end time of the backfill task.", + }, + "create_user_uin": { + Type: schema.TypeString, + Required: true, + Description: "Creator user ID.", + }, + "complete_percent": { + Type: schema.TypeInt, + Required: true, + Description: "Backfill plan instance completion percentage.", + }, + "success_percent": { + Type: schema.TypeInt, + Required: true, + Description: "Backfill plan instance success percentage.", + }, + "data_time_order": { + Type: schema.TypeString, + Required: true, + Description: "Data time order of backfill instances. Effective only if two conditions are met: 1. Must be same-cycle tasks. 2. Prioritize execution based on dependencies; if no dependency impact, execute according to the configured order. Valid values: - NORMAL: Not set - ORDER: Sequential - REVERSE: Reverse order. Default is NORMAL if not set.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudWedataDataBackfillPlanRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_wedata_data_backfill_plan.read")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(nil) + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + service := WedataService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("project_id"); ok { + paramMap["ProjectId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("data_backfill_plan_id"); ok { + paramMap["DataBackfillPlanId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("time_zone"); ok { + paramMap["TimeZone"] = helper.String(v.(string)) + } + + var respData *wedatav20250806.GetDataBackfillPlanResponseParams + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeWedataDataBackfillPlanByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + respData = result + return nil + }) + if reqErr != nil { + return reqErr + } + + var projectId string + var dataBackfillPlanId string + dataMap := map[string]interface{}{} + + if respData.Data != nil { + if respData.Data.ProjectId != nil { + dataMap["project_id"] = respData.Data.ProjectId + } + + if respData.Data.DataBackfillPlanId != nil { + dataMap["data_backfill_plan_id"] = respData.Data.DataBackfillPlanId + } + + if respData.Data.DataBackfillPlanName != nil { + dataMap["data_backfill_plan_name"] = respData.Data.DataBackfillPlanName + } + + if respData.Data.TaskIds != nil { + dataMap["task_ids"] = respData.Data.TaskIds + } + + dataBackfillRangeListList := make([]map[string]interface{}, 0, len(respData.Data.DataBackfillRangeList)) + if respData.Data.DataBackfillRangeList != nil { + for _, dataBackfillRangeList := range respData.Data.DataBackfillRangeList { + dataBackfillRangeListMap := map[string]interface{}{} + + if dataBackfillRangeList.StartDate != nil { + dataBackfillRangeListMap["start_date"] = dataBackfillRangeList.StartDate + } + + if dataBackfillRangeList.EndDate != nil { + dataBackfillRangeListMap["end_date"] = dataBackfillRangeList.EndDate + } + + if dataBackfillRangeList.ExecutionStartTime != nil { + dataBackfillRangeListMap["execution_start_time"] = dataBackfillRangeList.ExecutionStartTime + } + + if dataBackfillRangeList.ExecutionEndTime != nil { + dataBackfillRangeListMap["execution_end_time"] = dataBackfillRangeList.ExecutionEndTime + } + + dataBackfillRangeListList = append(dataBackfillRangeListList, dataBackfillRangeListMap) + } + + dataMap["data_backfill_range_list"] = dataBackfillRangeListList + } + if respData.Data.CheckParentType != nil { + dataMap["check_parent_type"] = respData.Data.CheckParentType + } + + if respData.Data.SkipEventListening != nil { + dataMap["skip_event_listening"] = respData.Data.SkipEventListening + } + + if respData.Data.RedefineParallelNum != nil { + dataMap["redefine_parallel_num"] = respData.Data.RedefineParallelNum + } + + if respData.Data.RedefineSelfWorkflowDependency != nil { + dataMap["redefine_self_workflow_dependency"] = respData.Data.RedefineSelfWorkflowDependency + } + + if respData.Data.SchedulerResourceGroupId != nil { + dataMap["scheduler_resource_group_id"] = respData.Data.SchedulerResourceGroupId + } + + if respData.Data.IntegrationResourceGroupId != nil { + dataMap["integration_resource_group_id"] = respData.Data.IntegrationResourceGroupId + } + + if respData.Data.RedefineCycleType != nil { + dataMap["redefine_cycle_type"] = respData.Data.RedefineCycleType + } + + redefineParamListList := make([]map[string]interface{}, 0, len(respData.Data.RedefineParamList)) + if respData.Data.RedefineParamList != nil { + for _, redefineParamList := range respData.Data.RedefineParamList { + redefineParamListMap := map[string]interface{}{} + + if redefineParamList.K != nil { + redefineParamListMap["k"] = redefineParamList.K + } + + if redefineParamList.V != nil { + redefineParamListMap["v"] = redefineParamList.V + } + + redefineParamListList = append(redefineParamListList, redefineParamListMap) + } + + dataMap["redefine_param_list"] = redefineParamListList + } + if respData.Data.StartTime != nil { + dataMap["start_time"] = respData.Data.StartTime + } + + if respData.Data.EndTime != nil { + dataMap["end_time"] = respData.Data.EndTime + } + + if respData.Data.CreateUserUin != nil { + dataMap["create_user_uin"] = respData.Data.CreateUserUin + } + + if respData.Data.CompletePercent != nil { + dataMap["complete_percent"] = respData.Data.CompletePercent + } + + if respData.Data.SuccessPercent != nil { + dataMap["success_percent"] = respData.Data.SuccessPercent + } + + if respData.Data.DataTimeOrder != nil { + dataMap["data_time_order"] = respData.Data.DataTimeOrder + } + + _ = d.Set("data", []interface{}{dataMap}) + } + + d.SetId(strings.Join([]string{projectId, dataBackfillPlanId}, tccommon.FILED_SP)) + + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), dataMap); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan.md b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan.md new file mode 100644 index 0000000000..6633f09557 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of wedata data backfill plan + +Example Usage + +```hcl +data "tencentcloud_wedata_data_backfill_plan" "wedata_data_backfill_plan" { + project_id = "1859317240494305280" + data_backfill_plan_id = "deb71ea1-f708-47ab-8eb6-491ce5b9c011" +} +``` \ No newline at end of file diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan_extension.go b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan_extension.go new file mode 100644 index 0000000000..4a61b9ede3 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan_extension.go @@ -0,0 +1 @@ +package wedata diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan_test.go b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan_test.go new file mode 100644 index 0000000000..2846ca3e2f --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_data_backfill_plan_test.go @@ -0,0 +1,36 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudWedataDataBackfillPlanDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccWedataDataBackfillPlanDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_wedata_data_backfill_plan.wedata_data_backfill_plan"), + resource.TestCheckResourceAttrSet("data.tencentcloud_wedata_data_backfill_plan.wedata_data_backfill_plan", "id"), + resource.TestCheckResourceAttr("data.tencentcloud_wedata_data_backfill_plan.wedata_data_backfill_plan", "data.#", "1"), + ), + }, + }, + }) +} + +const testAccWedataDataBackfillPlanDataSource = ` + +data "tencentcloud_wedata_data_backfill_plan" "wedata_data_backfill_plan" { + project_id = "1859317240494305280" + data_backfill_plan_id = "deb71ea1-f708-47ab-8eb6-491ce5b9c011" +} +` diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message.go new file mode 100644 index 0000000000..731cb6a71e --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message.go @@ -0,0 +1,207 @@ +// Code generated by iacg; DO NOT EDIT. +package wedata + +import ( + "context" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + wedatav20250806 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806" + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudWedataOpsAlarmMessage() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudWedataOpsAlarmMessageRead, + Schema: map[string]*schema.Schema{ + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + + "alarm_message_id": { + Type: schema.TypeString, + Required: true, + Description: "Alarm message Id.", + }, + + "time_zone": { + Type: schema.TypeString, + Optional: true, + Description: "Specifies the time zone of the return date. default UTC+8.", + }, + + "data": { + Type: schema.TypeList, + Computed: true, + Description: "Alarm information.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "alarm_message_id": { + Type: schema.TypeInt, + Required: true, + Description: "Alarm message Id.", + }, + "alarm_time": { + Type: schema.TypeString, + Required: true, + Description: "Alarm time. the same Alarm may be sent multiple times, only the latest Alarm time is displayed.", + }, + "task_name": { + Type: schema.TypeString, + Required: true, + Description: "Task name.", + }, + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + "cur_run_date": { + Type: schema.TypeString, + Required: true, + Description: "Instance data time of the task.", + }, + "alarm_reason": { + Type: schema.TypeString, + Required: true, + Description: "Indicates the Alarm cause.", + }, + "alarm_level": { + Type: schema.TypeInt, + Required: true, + Description: "Alarm level. 1. ordinary, 2. important, 3. critical.", + }, + "alarm_rule_id": { + Type: schema.TypeString, + Required: true, + Description: "Specifies the Id of the Alarm rule.", + }, + "alarm_ways": { + Type: schema.TypeSet, + Required: true, + Description: "Alarm channel specifies the notification methods: 1. mail, 2. sms, 3. wechat, 4. voice, 5. wecom, 6. Http, 7. wecom group, 8. lark group, 9. dingtalk group, 10. Slack group, 11. Teams group (default: 1. mail).", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "alarm_recipients": { + Type: schema.TypeSet, + Required: true, + Description: "Alarm recipient.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudWedataOpsAlarmMessageRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_wedata_ops_alarm_message.read")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(nil) + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + service := WedataService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + + var projectId string + var alarmMessageId string + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("project_id"); ok { + paramMap["ProjectId"] = helper.String(v.(string)) + projectId = v.(string) + } + + if v, ok := d.GetOk("alarm_message_id"); ok { + paramMap["AlarmMessageId"] = helper.String(v.(string)) + alarmMessageId = v.(string) + } + + if v, ok := d.GetOk("time_zone"); ok { + paramMap["TimeZone"] = helper.String(v.(string)) + } + + var respData *wedatav20250806.GetAlarmMessageResponseParams + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeWedataOpsAlarmMessageByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + respData = result + return nil + }) + if reqErr != nil { + return reqErr + } + + dataMap := map[string]interface{}{} + + if respData.Data != nil { + if respData.Data.AlarmMessageId != nil { + dataMap["alarm_message_id"] = respData.Data.AlarmMessageId + } + + if respData.Data.AlarmTime != nil { + dataMap["alarm_time"] = respData.Data.AlarmTime + } + + if respData.Data.TaskName != nil { + dataMap["task_name"] = respData.Data.TaskName + } + + if respData.Data.TaskId != nil { + dataMap["task_id"] = respData.Data.TaskId + } + + if respData.Data.CurRunDate != nil { + dataMap["cur_run_date"] = respData.Data.CurRunDate + } + + if respData.Data.AlarmReason != nil { + dataMap["alarm_reason"] = respData.Data.AlarmReason + } + + if respData.Data.AlarmLevel != nil { + dataMap["alarm_level"] = respData.Data.AlarmLevel + } + + if respData.Data.AlarmRuleId != nil { + dataMap["alarm_rule_id"] = respData.Data.AlarmRuleId + } + + if respData.Data.AlarmWays != nil { + dataMap["alarm_ways"] = respData.Data.AlarmWays + } + + if respData.Data.AlarmRecipients != nil { + dataMap["alarm_recipients"] = respData.Data.AlarmRecipients + } + + _ = d.Set("data", []interface{}{dataMap}) + } + + d.SetId(strings.Join([]string{projectId, alarmMessageId}, tccommon.FILED_SP)) + + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), dataMap); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message.md b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message.md new file mode 100644 index 0000000000..230e3b6fe8 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of wedata ops alarm message + +Example Usage + +```hcl +data "tencentcloud_wedata_ops_alarm_message" "wedata_ops_alarm_message" { + project_id = "1859317240494305280" + alarm_message_id = 263840 +} +``` \ No newline at end of file diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message_extension.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message_extension.go new file mode 100644 index 0000000000..4a61b9ede3 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message_extension.go @@ -0,0 +1 @@ +package wedata diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message_test.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message_test.go new file mode 100644 index 0000000000..0ea3637e0e --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_message_test.go @@ -0,0 +1,36 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudWedataOpsAlarmMessageDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccWedataOpsAlarmMessageDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_wedata_ops_alarm_message.wedata_ops_alarm_message"), + resource.TestCheckResourceAttrSet("data.tencentcloud_wedata_ops_alarm_message.wedata_ops_alarm_message", "id"), + resource.TestCheckResourceAttr("data.tencentcloud_wedata_ops_alarm_message.wedata_ops_alarm_message", "data.#", "1"), + ), + }, + }, + }) +} + +const testAccWedataOpsAlarmMessageDataSource = ` + +data "tencentcloud_wedata_ops_alarm_message" "wedata_ops_alarm_message" { + project_id = "1859317240494305280" + alarm_message_id = 263840 +} +` diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages.go new file mode 100644 index 0000000000..f02fa78d49 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages.go @@ -0,0 +1,294 @@ +// Code generated by iacg; DO NOT EDIT. +package wedata + +import ( + "context" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + wedatav20250806 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806" + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudWedataOpsAlarmMessages() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudWedataOpsAlarmMessagesRead, + Schema: map[string]*schema.Schema{ + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project id.", + }, + + "start_time": { + Type: schema.TypeString, + Optional: true, + Description: "Starting Alarm time. format: yyyy-MM-dd HH:MM:ss.", + }, + + "end_time": { + Type: schema.TypeString, + Optional: true, + Description: "Specifies the Alarm end time in the format yyyy-MM-dd HH:MM:ss.", + }, + + "alarm_level": { + Type: schema.TypeInt, + Optional: true, + Description: "Alarm level.", + }, + + "alarm_recipient_id": { + Type: schema.TypeString, + Optional: true, + Description: "Alert recipient Id.", + }, + + "time_zone": { + Type: schema.TypeString, + Optional: true, + Description: "For incoming and returned filter time zone, default UTC+8.", + }, + + "data": { + Type: schema.TypeList, + Computed: true, + Description: "Alarm information list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Page number.", + }, + "page_size": { + Type: schema.TypeInt, + Required: true, + Description: "Pagination size.", + }, + "total_count": { + Type: schema.TypeInt, + Required: true, + Description: "Total number of entries.", + }, + "total_page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Total pages.", + }, + "items": { + Type: schema.TypeList, + Required: true, + Description: "Alarm information list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "alarm_message_id": { + Type: schema.TypeInt, + Required: true, + Description: "Alarm message Id.", + }, + "alarm_time": { + Type: schema.TypeString, + Required: true, + Description: "Alarm time. the same Alarm may be sent multiple times, only the latest Alarm time is displayed.", + }, + "task_name": { + Type: schema.TypeString, + Required: true, + Description: "Task name.", + }, + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + "cur_run_date": { + Type: schema.TypeString, + Required: true, + Description: "Instance data time of the task.", + }, + "alarm_reason": { + Type: schema.TypeString, + Required: true, + Description: "Indicates the Alarm cause.", + }, + "alarm_level": { + Type: schema.TypeInt, + Required: true, + Description: "Alarm level. 1. ordinary, 2. important, 3. critical.", + }, + "alarm_rule_id": { + Type: schema.TypeString, + Required: true, + Description: "Specifies the Id of the Alarm rule.", + }, + "alarm_ways": { + Type: schema.TypeSet, + Required: true, + Description: "Alarm channel specifies the notification methods: 1. mail, 2. sms, 3. wechat, 4. voice, 5. wecom, 6. Http, 7. wecom group, 8. lark group, 9. dingtalk group, 10. Slack group, 11. Teams group (default: 1. mail).", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + "alarm_recipients": { + Type: schema.TypeSet, + Required: true, + Description: "Alarm recipient.", + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudWedataOpsAlarmMessagesRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_wedata_ops_alarm_messages.read")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(nil) + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + service := WedataService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + + var projectId string + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("project_id"); ok { + paramMap["ProjectId"] = helper.String(v.(string)) + projectId = v.(string) + } + + if v, ok := d.GetOk("start_time"); ok { + paramMap["StartTime"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("end_time"); ok { + paramMap["EndTime"] = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("alarm_level"); ok { + paramMap["AlarmLevel"] = helper.IntUint64(v.(int)) + } + + if v, ok := d.GetOk("alarm_recipient_id"); ok { + paramMap["AlarmRecipientId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("time_zone"); ok { + paramMap["TimeZone"] = helper.String(v.(string)) + } + + var respData *wedatav20250806.ListAlarmMessagesResponseParams + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeWedataOpsAlarmMessagesByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + respData = result + return nil + }) + if reqErr != nil { + return reqErr + } + + var alarmMessageId string + dataMap := map[string]interface{}{} + ids := []string{} + + if respData.Data != nil { + if respData.Data.PageNumber != nil { + dataMap["page_number"] = respData.Data.PageNumber + } + + if respData.Data.PageSize != nil { + dataMap["page_size"] = respData.Data.PageSize + } + + if respData.Data.TotalCount != nil { + dataMap["total_count"] = respData.Data.TotalCount + } + + if respData.Data.TotalPageNumber != nil { + dataMap["total_page_number"] = respData.Data.TotalPageNumber + } + + itemsList := make([]map[string]interface{}, 0, len(respData.Data.Items)) + if respData.Data.Items != nil { + for _, items := range respData.Data.Items { + itemsMap := map[string]interface{}{} + + if items.AlarmMessageId != nil { + itemsMap["alarm_message_id"] = items.AlarmMessageId + alarmMessageId = helper.UInt64ToStr(*items.AlarmMessageId) + } + + if items.AlarmTime != nil { + itemsMap["alarm_time"] = items.AlarmTime + } + + if items.TaskName != nil { + itemsMap["task_name"] = items.TaskName + } + + if items.TaskId != nil { + itemsMap["task_id"] = items.TaskId + } + + if items.CurRunDate != nil { + itemsMap["cur_run_date"] = items.CurRunDate + } + + if items.AlarmReason != nil { + itemsMap["alarm_reason"] = items.AlarmReason + } + + if items.AlarmLevel != nil { + itemsMap["alarm_level"] = items.AlarmLevel + } + + if items.AlarmRuleId != nil { + itemsMap["alarm_rule_id"] = items.AlarmRuleId + } + + if items.AlarmWays != nil { + itemsMap["alarm_ways"] = items.AlarmWays + } + + if items.AlarmRecipients != nil { + itemsMap["alarm_recipients"] = items.AlarmRecipients + } + + itemsList = append(itemsList, itemsMap) + } + + ids = append(ids, strings.Join([]string{projectId, alarmMessageId}, tccommon.FILED_SP)) + dataMap["items"] = itemsList + } + _ = d.Set("data", []interface{}{dataMap}) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), dataMap); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages.md b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages.md new file mode 100644 index 0000000000..d1b63309f8 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages.md @@ -0,0 +1,13 @@ +Use this data source to query detailed information of wedata ops alarm messages + +Example Usage + +```hcl +data "tencentcloud_wedata_ops_alarm_messages" "wedata_ops_alarm_messages" { + project_id = "1859317240494305280" + start_time = "2025-10-14 21:09:26" + end_time = "2025-10-14 21:10:26" + alarm_level = 1 + time_zone = "UTC+8" +} +``` \ No newline at end of file diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages_extension.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages_extension.go new file mode 100644 index 0000000000..4a61b9ede3 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages_extension.go @@ -0,0 +1 @@ +package wedata diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages_test.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages_test.go new file mode 100644 index 0000000000..082a425607 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_alarm_messages_test.go @@ -0,0 +1,40 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudWedataOpsAlarmMessagesDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccWedataOpsAlarmMessagesDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_wedata_ops_alarm_messages.wedata_ops_alarm_messages"), + resource.TestCheckResourceAttrSet("data.tencentcloud_wedata_ops_alarm_messages.wedata_ops_alarm_messages", "id"), + resource.TestCheckResourceAttr("data.tencentcloud_wedata_ops_alarm_messages.wedata_ops_alarm_messages", "data.#", "1"), + resource.TestCheckResourceAttr("data.tencentcloud_wedata_ops_alarm_messages.wedata_ops_alarm_messages", "data.0.items.#", "1"), + ), + }, + }, + }) +} + +const testAccWedataOpsAlarmMessagesDataSource = ` + +data "tencentcloud_wedata_ops_alarm_messages" "wedata_ops_alarm_messages" { + project_id = "1859317240494305280" + start_time = "2025-10-14 21:09:26" + end_time = "2025-10-14 21:10:26" + alarm_level = 1 + time_zone = "UTC+8" +} +` diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks.go new file mode 100644 index 0000000000..30c0ef1e04 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks.go @@ -0,0 +1,320 @@ +// Code generated by iacg; DO NOT EDIT. +package wedata + +import ( + "context" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + wedatav20250806 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806" + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudWedataOpsDownstreamTasks() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudWedataOpsDownstreamTasksRead, + Schema: map[string]*schema.Schema{ + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + + "data": { + Type: schema.TypeList, + Computed: true, + Description: "Downstream dependency description.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "total_count": { + Type: schema.TypeInt, + Required: true, + Description: "Total number of results.", + }, + "total_page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Total pages.", + }, + "page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Page number.", + }, + "page_size": { + Type: schema.TypeInt, + Required: true, + Description: "Pagination size.", + }, + "items": { + Type: schema.TypeList, + Required: true, + Description: "Paging data.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + "task_name": { + Type: schema.TypeString, + Required: true, + Description: "Task name.", + }, + "workflow_id": { + Type: schema.TypeString, + Required: true, + Description: "Workflow id.", + }, + "workflow_name": { + Type: schema.TypeString, + Required: true, + Description: "Workflow name.", + }, + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + "project_name": { + Type: schema.TypeString, + Required: true, + Description: "Project name.", + }, + "status": { + Type: schema.TypeString, + Required: true, + Description: "Task Status: -N: New, -Y: Scheduling, -F: Offline, -O: Paused, -T: Offlining, -INVALID: Invalid.", + }, + "task_type_id": { + Type: schema.TypeInt, + Required: true, + Description: "Task type 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. Note: This field may return null, indicating that no valid values can be obtained.", + }, + "task_type_desc": { + Type: schema.TypeString, + Required: true, + Description: "Task type description. -20 : universal data synchronization, - 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: specifies the branch, -131: specifies the merge, -132: specifies the Notebook explore, -133: specifies the SSH node, - 134 : StarRocks, - 137 : For-each, -10000: common custom business. Note: This field may return null, indicating that no valid values can be obtained.", + }, + "folder_name": { + Type: schema.TypeString, + Required: true, + Description: "Folder name.", + }, + "folder_id": { + Type: schema.TypeString, + Required: true, + Description: "Folder ID.", + }, + "first_submit_time": { + Type: schema.TypeString, + Required: true, + Description: "Latest submission time.", + }, + "first_run_time": { + Type: schema.TypeString, + Required: true, + Description: "First running time.", + }, + "schedule_desc": { + Type: schema.TypeString, + Required: true, + Description: "Describes the scheduling plan display description information.", + }, + "cycle_type": { + Type: schema.TypeString, + Required: true, + Description: "Task Cycle Type: ONEOFF_CYCLE: One-time, YEAR_CYCLE: Yearly, MONTH_CYCLE: Monthly, WEEK_CYCLE: Weekly, DAY_CYCLE: Daily, HOUR_CYCLE: Hourly, MINUTE_CYCLE: Minute-level, CRONTAB_CYCLE: Crontab expression-based.", + }, + "owner_uin": { + Type: schema.TypeString, + Required: true, + Description: "Specifies the person in charge.", + }, + "execution_start_time": { + Type: schema.TypeString, + Required: true, + Description: "Execution start time. format: HH:mm, for example 00:00.", + }, + "execution_end_time": { + Type: schema.TypeString, + Required: true, + Description: "Execution end time. format: HH:mm, for example 23:59.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudWedataOpsDownstreamTasksRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_wedata_ops_downstream_tasks.read")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(nil) + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + service := WedataService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("task_id"); ok { + paramMap["TaskId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("project_id"); ok { + paramMap["ProjectId"] = helper.String(v.(string)) + } + + var respData *wedatav20250806.ListDownstreamOpsTasksResponseParams + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeWedataOpsDownstreamTasksByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + respData = result + return nil + }) + if reqErr != nil { + return reqErr + } + + var projectId string + var taskId string + dataMap := map[string]interface{}{} + ids := []string{} + + if respData.Data != nil { + if respData.Data.TotalCount != nil { + dataMap["total_count"] = respData.Data.TotalCount + } + + if respData.Data.TotalPageNumber != nil { + dataMap["total_page_number"] = respData.Data.TotalPageNumber + } + + if respData.Data.PageNumber != nil { + dataMap["page_number"] = respData.Data.PageNumber + } + + if respData.Data.PageSize != nil { + dataMap["page_size"] = respData.Data.PageSize + } + + itemsList := make([]map[string]interface{}, 0, len(respData.Data.Items)) + if respData.Data.Items != nil { + for _, items := range respData.Data.Items { + itemsMap := map[string]interface{}{} + + if items.TaskId != nil { + itemsMap["task_id"] = items.TaskId + taskId = *items.TaskId + } + + if items.TaskName != nil { + itemsMap["task_name"] = items.TaskName + } + + if items.WorkflowId != nil { + itemsMap["workflow_id"] = items.WorkflowId + } + + if items.WorkflowName != nil { + itemsMap["workflow_name"] = items.WorkflowName + } + + if items.ProjectId != nil { + itemsMap["project_id"] = items.ProjectId + projectId = *items.ProjectId + } + + if items.ProjectName != nil { + itemsMap["project_name"] = items.ProjectName + } + + if items.Status != nil { + itemsMap["status"] = items.Status + } + + if items.TaskTypeId != nil { + itemsMap["task_type_id"] = items.TaskTypeId + } + + if items.TaskTypeDesc != nil { + itemsMap["task_type_desc"] = items.TaskTypeDesc + } + + if items.FolderName != nil { + itemsMap["folder_name"] = items.FolderName + } + + if items.FolderId != nil { + itemsMap["folder_id"] = items.FolderId + } + + if items.FirstSubmitTime != nil { + itemsMap["first_submit_time"] = items.FirstSubmitTime + } + + if items.FirstRunTime != nil { + itemsMap["first_run_time"] = items.FirstRunTime + } + + if items.ScheduleDesc != nil { + itemsMap["schedule_desc"] = items.ScheduleDesc + } + + if items.CycleType != nil { + itemsMap["cycle_type"] = items.CycleType + } + + if items.OwnerUin != nil { + itemsMap["owner_uin"] = items.OwnerUin + } + + if items.ExecutionStartTime != nil { + itemsMap["execution_start_time"] = items.ExecutionStartTime + } + + if items.ExecutionEndTime != nil { + itemsMap["execution_end_time"] = items.ExecutionEndTime + } + + ids = append(ids, strings.Join([]string{projectId, taskId}, tccommon.FILED_SP)) + itemsList = append(itemsList, itemsMap) + } + + dataMap["items"] = itemsList + } + _ = d.Set("data", []interface{}{dataMap}) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), dataMap); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks.md b/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks.md new file mode 100644 index 0000000000..1f64f31ca8 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of wedata ops downstream task + +Example Usage + +```hcl +data "tencentcloud_wedata_ops_downstream_tasks" "wedata_ops_downstream_tasks" { + project_id = "1859317240494305280" + task_id = "20250820150144998" +} +``` \ No newline at end of file diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks_extension.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks_extension.go new file mode 100644 index 0000000000..4a61b9ede3 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks_extension.go @@ -0,0 +1 @@ +package wedata diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks_test.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks_test.go new file mode 100644 index 0000000000..41e277b750 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_downstream_tasks_test.go @@ -0,0 +1,36 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudWedataOpsDownstreamTasksDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccWedataOpsDownstreamTasksDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_wedata_ops_downstream_tasks.wedata_ops_downstream_tasks"), + resource.TestCheckResourceAttrSet("data.tencentcloud_wedata_ops_downstream_tasks.wedata_ops_downstream_tasks", "id"), + resource.TestCheckResourceAttr("data.tencentcloud_wedata_ops_downstream_tasks.wedata_ops_downstream_tasks", "data.#", "1"), + ), + }, + }, + }) +} + +const testAccWedataOpsDownstreamTasksDataSource = ` + +data "tencentcloud_wedata_ops_downstream_tasks" "wedata_ops_downstream_tasks" { + project_id = "1859317240494305280" + task_id = "20250820150144998" +} +` diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code.go new file mode 100644 index 0000000000..37d67ebea4 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code.go @@ -0,0 +1,119 @@ +// Code generated by iacg; DO NOT EDIT. +package wedata + +import ( + "context" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + wedatav20250806 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806" + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudWedataOpsTaskCode() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudWedataOpsTaskCodeRead, + Schema: map[string]*schema.Schema{ + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project id.", + }, + + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + + "data": { + Type: schema.TypeList, + Computed: true, + Description: "Retrieves the task code result.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "code_content": { + Type: schema.TypeString, + Required: true, + Description: "Specifies the code content.", + }, + "code_file_size": { + Type: schema.TypeInt, + Required: true, + Description: "Specifies the size of the code file in bytes.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudWedataOpsTaskCodeRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_wedata_ops_task_code.read")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(nil) + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + service := WedataService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + + var projectId string + var taskId string + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("project_id"); ok { + projectId = v.(string) + paramMap["ProjectId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("task_id"); ok { + taskId = v.(string) + paramMap["TaskId"] = helper.String(v.(string)) + } + + var respData *wedatav20250806.GetOpsTaskCodeResponseParams + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeWedataOpsTaskCodeByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + respData = result + return nil + }) + if reqErr != nil { + return reqErr + } + + dataMap := map[string]interface{}{} + + if respData.Data != nil { + if respData.Data.CodeContent != nil { + dataMap["code_content"] = respData.Data.CodeContent + } + + if respData.Data.CodeFileSize != nil { + dataMap["code_file_size"] = respData.Data.CodeFileSize + } + + _ = d.Set("data", []interface{}{dataMap}) + } + + d.SetId(strings.Join([]string{projectId, taskId}, tccommon.FILED_SP)) + + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), dataMap); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code.md b/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code.md new file mode 100644 index 0000000000..15fcf6ddd5 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of wedata ops task code + +Example Usage + +```hcl +data "tencentcloud_wedata_ops_task_code" "wedata_ops_task_code" { + project_id = "1859317240494305280" + task_id = "20230901114849281" +} +``` \ No newline at end of file diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code_extension.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code_extension.go new file mode 100644 index 0000000000..4a61b9ede3 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code_extension.go @@ -0,0 +1 @@ +package wedata diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code_test.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code_test.go new file mode 100644 index 0000000000..6609b00f30 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_task_code_test.go @@ -0,0 +1,36 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudWedataOpsTaskCodeDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccWedataOpsTaskCodeDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_wedata_ops_task_code.wedata_ops_task_code"), + resource.TestCheckResourceAttrSet("data.tencentcloud_wedata_ops_task_code.wedata_ops_task_code", "id"), + resource.TestCheckResourceAttr("data.tencentcloud_wedata_ops_task_code.wedata_ops_task_code", "data.#", "1"), + ), + }, + }, + }) +} + +const testAccWedataOpsTaskCodeDataSource = ` + +data "tencentcloud_wedata_ops_task_code" "wedata_ops_task_code" { + project_id = "1859317240494305280" + task_id = "20230901114849281" +} +` diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks.go new file mode 100644 index 0000000000..12a830fd28 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks.go @@ -0,0 +1,456 @@ +// Code generated by iacg; DO NOT EDIT. +package wedata + +import ( + "context" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + wedatav20250806 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806" + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudWedataOpsTasks() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudWedataOpsTasksRead, + Schema: map[string]*schema.Schema{ + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + + "task_type_id": { + Type: schema.TypeString, + Optional: true, + Description: "Task type Id. -20: common data sync, - 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 machine learning, - 48:TrinoTaskType, - 50:DLCPyspark39:spark, - 92:mr, -38: shell script, -70: hivesql script, -1000: common custom business.", + }, + + "workflow_id": { + Type: schema.TypeString, + Optional: true, + Description: "Workflow ID.", + }, + + "workflow_name": { + Type: schema.TypeString, + Optional: true, + Description: "Workflow name.", + }, + + "owner_uin": { + Type: schema.TypeString, + Optional: true, + Description: "Owner id.", + }, + + "folder_id": { + Type: schema.TypeString, + Optional: true, + Description: "Folder ID.", + }, + + "source_service_id": { + Type: schema.TypeString, + Optional: true, + Description: "Data source ID.", + }, + + "target_service_id": { + Type: schema.TypeString, + Optional: true, + Description: "Target data source id.", + }, + + "executor_group_id": { + Type: schema.TypeString, + Optional: true, + Description: "Executor Group ID.", + }, + + "cycle_type": { + Type: schema.TypeString, + Optional: true, + Description: "Task Cycle Type: ONEOFF_CYCLE: One-time, YEAR_CYCLE: Yearly, MONTH_CYCLE: Monthly, WEEK_CYCLE: Weekly, DAY_CYCLE: Daily, HOUR_CYCLE: Hourly, MINUTE_CYCLE: Minute-level, CRONTAB_CYCLE: Crontab expression-based.", + }, + + "status": { + Type: schema.TypeString, + Optional: true, + Description: "Task Status: -Y: Running, -F: Stopped, -O: Frozen, -T: Stopping, -INVALID: Invalid.", + }, + + "time_zone": { + Type: schema.TypeString, + Optional: true, + Description: "Time zone. defaults to UTC+8.", + }, + + "data": { + Type: schema.TypeList, + Computed: true, + Description: "Task list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "total_count": { + Type: schema.TypeInt, + Required: true, + Description: "Total number of results.", + }, + "total_page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Total pages.", + }, + "items": { + Type: schema.TypeList, + Required: true, + Description: "Record list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + "task_name": { + Type: schema.TypeString, + Required: true, + Description: "Task name.", + }, + "owner_uin": { + Type: schema.TypeString, + Required: true, + Description: "Owner id.", + }, + "status": { + Type: schema.TypeString, + Required: true, + Description: "Task Status: -N: New, -Y: Scheduling, -F: Offline, -O: Paused, -T: Offlining, -INVALID: Invalid..", + }, + "folder_id": { + Type: schema.TypeString, + Required: true, + Description: "Folder ID.", + }, + "folder_name": { + Type: schema.TypeString, + Required: true, + Description: "Folder name.", + }, + "workflow_id": { + Type: schema.TypeString, + Required: true, + Description: "Workflow id.", + }, + "workflow_name": { + Type: schema.TypeString, + Required: true, + Description: "Workflow name.", + }, + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + "project_name": { + Type: schema.TypeString, + Required: true, + Description: "Project name.", + }, + "update_user_uin": { + Type: schema.TypeString, + Required: true, + Description: "Specifies the name of the updater.", + }, + "task_type_id": { + Type: schema.TypeInt, + Required: true, + Description: "Task type 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.", + }, + "task_type_desc": { + Type: schema.TypeString, + Required: true, + Description: "Task type description. -Universal data synchronization, - ETLTaskType, - ETLTaskType, - python, - pyspark, - HiveSQLTaskType, - shell, - SparkSQLTaskType, - JDBCSQLTaskType, - DLCTaskType, - ImpalaTaskType, - CDWTaskType, - kettle, - DLCSparkTaskType, -TiOne machine learning, - TrinoTaskType, - DLCPyspark, - spark, - mr, -Specifies the shell script, -hivesql script, -Specifies common custom business.", + }, + "cycle_type": { + Type: schema.TypeString, + Required: true, + Description: "Task Cycle Type: ONEOFF_CYCLE: One-time, YEAR_CYCLE: Yearly, MONTH_CYCLE: Monthly, WEEK_CYCLE: Weekly, DAY_CYCLE: Daily, HOUR_CYCLE: Hourly, MINUTE_CYCLE: Minute-level, CRONTAB_CYCLE: Crontab expression-based.", + }, + "executor_group_id": { + Type: schema.TypeString, + Required: true, + Description: "Resource group ID.", + }, + "schedule_desc": { + Type: schema.TypeString, + Required: true, + Description: "Scheduling description.", + }, + "executor_group_name": { + Type: schema.TypeString, + Required: true, + Description: "Resource group name.", + }, + "last_scheduler_commit_time": { + Type: schema.TypeString, + Required: true, + Description: "Latest scheduling submission time.", + }, + "first_run_time": { + Type: schema.TypeString, + Required: true, + Description: "First execution time.", + }, + "first_submit_time": { + Type: schema.TypeString, + Required: true, + Description: "Most recent submission time.", + }, + "create_time": { + Type: schema.TypeString, + Required: true, + Description: "Creation time.", + }, + "last_update_time": { + Type: schema.TypeString, + Required: true, + Description: "Latest update time.", + }, + }, + }, + }, + "page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Page number.", + }, + "page_size": { + Type: schema.TypeInt, + Required: true, + Description: "Pagination size.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudWedataOpsTasksRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_wedata_ops_tasks.read")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(nil) + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + service := WedataService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("project_id"); ok { + paramMap["ProjectId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("task_type_id"); ok { + paramMap["TaskTypeId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("workflow_id"); ok { + paramMap["WorkflowId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("workflow_name"); ok { + paramMap["WorkflowName"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("owner_uin"); ok { + paramMap["OwnerUin"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("folder_id"); ok { + paramMap["FolderId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("source_service_id"); ok { + paramMap["SourceServiceId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("target_service_id"); ok { + paramMap["TargetServiceId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("executor_group_id"); ok { + paramMap["ExecutorGroupId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("cycle_type"); ok { + paramMap["CycleType"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("status"); ok { + paramMap["Status"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("time_zone"); ok { + paramMap["TimeZone"] = helper.String(v.(string)) + } + + var respData *wedatav20250806.ListOpsTasksResponseParams + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeWedataOpsTasksByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + respData = result + return nil + }) + if reqErr != nil { + return reqErr + } + + var projectId string + var taskId string + dataMap := map[string]interface{}{} + ids := []string{} + + if respData.Data != nil { + if respData.Data.TotalCount != nil { + dataMap["total_count"] = respData.Data.TotalCount + } + + if respData.Data.TotalPageNumber != nil { + dataMap["total_page_number"] = respData.Data.TotalPageNumber + } + + itemsList := make([]map[string]interface{}, 0, len(respData.Data.Items)) + if respData.Data.Items != nil { + for _, items := range respData.Data.Items { + itemsMap := map[string]interface{}{} + + if items.TaskId != nil { + itemsMap["task_id"] = items.TaskId + taskId = *items.TaskId + } + + if items.TaskName != nil { + itemsMap["task_name"] = items.TaskName + } + + if items.OwnerUin != nil { + itemsMap["owner_uin"] = items.OwnerUin + } + + if items.Status != nil { + itemsMap["status"] = items.Status + } + + if items.FolderId != nil { + itemsMap["folder_id"] = items.FolderId + } + + if items.FolderName != nil { + itemsMap["folder_name"] = items.FolderName + } + + if items.WorkflowId != nil { + itemsMap["workflow_id"] = items.WorkflowId + } + + if items.WorkflowName != nil { + itemsMap["workflow_name"] = items.WorkflowName + } + + if items.ProjectId != nil { + itemsMap["project_id"] = items.ProjectId + projectId = *items.ProjectId + } + + if items.ProjectName != nil { + itemsMap["project_name"] = items.ProjectName + } + + if items.UpdateUserUin != nil { + itemsMap["update_user_uin"] = items.UpdateUserUin + } + + if items.TaskTypeId != nil { + itemsMap["task_type_id"] = items.TaskTypeId + } + + if items.TaskTypeDesc != nil { + itemsMap["task_type_desc"] = items.TaskTypeDesc + } + + if items.CycleType != nil { + itemsMap["cycle_type"] = items.CycleType + } + + if items.ExecutorGroupId != nil { + itemsMap["executor_group_id"] = items.ExecutorGroupId + } + + if items.ScheduleDesc != nil { + itemsMap["schedule_desc"] = items.ScheduleDesc + } + + if items.ExecutorGroupName != nil { + itemsMap["executor_group_name"] = items.ExecutorGroupName + } + + if items.LastSchedulerCommitTime != nil { + itemsMap["last_scheduler_commit_time"] = items.LastSchedulerCommitTime + } + + if items.FirstRunTime != nil { + itemsMap["first_run_time"] = items.FirstRunTime + } + + if items.FirstSubmitTime != nil { + itemsMap["first_submit_time"] = items.FirstSubmitTime + } + + if items.CreateTime != nil { + itemsMap["create_time"] = items.CreateTime + } + + if items.LastUpdateTime != nil { + itemsMap["last_update_time"] = items.LastUpdateTime + } + + itemsList = append(itemsList, itemsMap) + } + + ids = append(ids, strings.Join([]string{projectId, taskId}, tccommon.FILED_SP)) + dataMap["items"] = itemsList + } + if respData.Data.PageNumber != nil { + dataMap["page_number"] = respData.Data.PageNumber + } + + if respData.Data.PageSize != nil { + dataMap["page_size"] = respData.Data.PageSize + } + + _ = d.Set("data", []interface{}{dataMap}) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), dataMap); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks.md b/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks.md new file mode 100644 index 0000000000..53ceb796ef --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks.md @@ -0,0 +1,16 @@ +Use this data source to query detailed information of wedata ops tasks + +Example Usage + +```hcl +data "tencentcloud_wedata_ops_tasks" "wedata_ops_tasks" { + project_id = "1859317240494305280" + task_type_id = 34 + workflow_id = "d7184172-4879-11ee-ba36-b8cef6a5af5c" + workflow_name = "test1" + folder_id = "cee5780a-4879-11ee-ba36-b8cef6a5af5c" + executor_group_id = "20230830105723839685" + cycle_type = "MINUTE_CYCLE" + status = "F" +} +``` \ No newline at end of file diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks_extension.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks_extension.go new file mode 100644 index 0000000000..4a61b9ede3 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks_extension.go @@ -0,0 +1 @@ +package wedata diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks_test.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks_test.go new file mode 100644 index 0000000000..83c93c7a58 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_tasks_test.go @@ -0,0 +1,42 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudWedataOpsTasksDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccWedataOpsTasksDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_wedata_ops_tasks.wedata_ops_tasks"), + resource.TestCheckResourceAttrSet("data.tencentcloud_wedata_ops_tasks.wedata_ops_tasks", "id"), + resource.TestCheckResourceAttr("data.tencentcloud_wedata_ops_tasks.wedata_ops_tasks", "data.#", "1"), + ), + }, + }, + }) +} + +const testAccWedataOpsTasksDataSource = ` + +data "tencentcloud_wedata_ops_tasks" "wedata_ops_tasks" { + project_id = "1859317240494305280" + task_type_id = 34 + workflow_id = "d7184172-4879-11ee-ba36-b8cef6a5af5c" + workflow_name = "test1" + folder_id = "cee5780a-4879-11ee-ba36-b8cef6a5af5c" + executor_group_id = "20230830105723839685" + cycle_type = "MINUTE_CYCLE" + status = "F" +} +` diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks.go new file mode 100644 index 0000000000..48e66af6ae --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks.go @@ -0,0 +1,320 @@ +// Code generated by iacg; DO NOT EDIT. +package wedata + +import ( + "context" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + wedatav20250806 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806" + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func DataSourceTencentCloudWedataOpsUpstreamTasks() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudWedataOpsUpstreamTasksRead, + Schema: map[string]*schema.Schema{ + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + + "data": { + Type: schema.TypeList, + Computed: true, + Description: "Upstream task details.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "total_count": { + Type: schema.TypeInt, + Required: true, + Description: "Total number of results.", + }, + "total_page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Total pages.", + }, + "page_number": { + Type: schema.TypeInt, + Required: true, + Description: "Page number.", + }, + "page_size": { + Type: schema.TypeInt, + Required: true, + Description: "Pagination size.", + }, + "items": { + Type: schema.TypeList, + Required: true, + Description: "Paging data.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "task_id": { + Type: schema.TypeString, + Required: true, + Description: "Task ID.", + }, + "task_name": { + Type: schema.TypeString, + Required: true, + Description: "Task name.", + }, + "workflow_id": { + Type: schema.TypeString, + Required: true, + Description: "Workflow id.", + }, + "workflow_name": { + Type: schema.TypeString, + Required: true, + Description: "Workflow name.", + }, + "project_id": { + Type: schema.TypeString, + Required: true, + Description: "Project ID.", + }, + "project_name": { + Type: schema.TypeString, + Required: true, + Description: "Project name.", + }, + "status": { + Type: schema.TypeString, + Required: true, + Description: "Task Status: -N: New, -Y: Scheduling, -F: Offline, -O: Paused, -T: Offlining, -INVALID: Invalid.", + }, + "task_type_id": { + Type: schema.TypeInt, + Required: true, + Description: "Task type 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. Note: This field may return null, indicating that no valid values can be obtained.", + }, + "task_type_desc": { + Type: schema.TypeString, + Required: true, + Description: "Task type description. -20 : universal data synchronization, - 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: specifies the branch, -131: specifies the merge, -132: specifies the Notebook explore, -133: specifies the SSH node, - 134 : StarRocks, - 137 : For-each, -10000: common custom business. Note: This field may return null, indicating that no valid values can be obtained.", + }, + "folder_name": { + Type: schema.TypeString, + Required: true, + Description: "Folder name.", + }, + "folder_id": { + Type: schema.TypeString, + Required: true, + Description: "Folder ID.", + }, + "first_submit_time": { + Type: schema.TypeString, + Required: true, + Description: "Latest submission time.", + }, + "first_run_time": { + Type: schema.TypeString, + Required: true, + Description: "First running time.", + }, + "schedule_desc": { + Type: schema.TypeString, + Required: true, + Description: "Describes the scheduling plan display description information.", + }, + "cycle_type": { + Type: schema.TypeString, + Required: true, + Description: "Task Cycle Type: ONEOFF_CYCLE: One-time, YEAR_CYCLE: Yearly, MONTH_CYCLE: Monthly, WEEK_CYCLE: Weekly, DAY_CYCLE: Daily, HOUR_CYCLE: Hourly, MINUTE_CYCLE: Minute-level, CRONTAB_CYCLE: Crontab expression-based.", + }, + "owner_uin": { + Type: schema.TypeString, + Required: true, + Description: "Specifies the person in charge.", + }, + "execution_start_time": { + Type: schema.TypeString, + Required: true, + Description: "Execution start time. format: HH:mm, for example 00:00.", + }, + "execution_end_time": { + Type: schema.TypeString, + Required: true, + Description: "Execution end time. format: HH:mm, for example 23:59.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudWedataOpsUpstreamTasksRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("data_source.tencentcloud_wedata_ops_upstream_tasks.read")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(nil) + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + service := WedataService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()} + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("project_id"); ok { + paramMap["ProjectId"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("task_id"); ok { + paramMap["TaskId"] = helper.String(v.(string)) + } + + var respData *wedatav20250806.ListUpstreamOpsTasksResponseParams + reqErr := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeWedataOpsUpstreamTasksByFilter(ctx, paramMap) + if e != nil { + return tccommon.RetryError(e) + } + respData = result + return nil + }) + if reqErr != nil { + return reqErr + } + + var projectId string + var taskId string + dataMap := map[string]interface{}{} + ids := []string{} + + if respData.Data != nil { + if respData.Data.TotalCount != nil { + dataMap["total_count"] = respData.Data.TotalCount + } + + if respData.Data.TotalPageNumber != nil { + dataMap["total_page_number"] = respData.Data.TotalPageNumber + } + + if respData.Data.PageNumber != nil { + dataMap["page_number"] = respData.Data.PageNumber + } + + if respData.Data.PageSize != nil { + dataMap["page_size"] = respData.Data.PageSize + } + + itemsList := make([]map[string]interface{}, 0, len(respData.Data.Items)) + if respData.Data.Items != nil { + for _, items := range respData.Data.Items { + itemsMap := map[string]interface{}{} + + if items.TaskId != nil { + itemsMap["task_id"] = items.TaskId + taskId = *items.TaskId + } + + if items.TaskName != nil { + itemsMap["task_name"] = items.TaskName + } + + if items.WorkflowId != nil { + itemsMap["workflow_id"] = items.WorkflowId + } + + if items.WorkflowName != nil { + itemsMap["workflow_name"] = items.WorkflowName + } + + if items.ProjectId != nil { + itemsMap["project_id"] = items.ProjectId + projectId = *items.ProjectId + } + + if items.ProjectName != nil { + itemsMap["project_name"] = items.ProjectName + } + + if items.Status != nil { + itemsMap["status"] = items.Status + } + + if items.TaskTypeId != nil { + itemsMap["task_type_id"] = items.TaskTypeId + } + + if items.TaskTypeDesc != nil { + itemsMap["task_type_desc"] = items.TaskTypeDesc + } + + if items.FolderName != nil { + itemsMap["folder_name"] = items.FolderName + } + + if items.FolderId != nil { + itemsMap["folder_id"] = items.FolderId + } + + if items.FirstSubmitTime != nil { + itemsMap["first_submit_time"] = items.FirstSubmitTime + } + + if items.FirstRunTime != nil { + itemsMap["first_run_time"] = items.FirstRunTime + } + + if items.ScheduleDesc != nil { + itemsMap["schedule_desc"] = items.ScheduleDesc + } + + if items.CycleType != nil { + itemsMap["cycle_type"] = items.CycleType + } + + if items.OwnerUin != nil { + itemsMap["owner_uin"] = items.OwnerUin + } + + if items.ExecutionStartTime != nil { + itemsMap["execution_start_time"] = items.ExecutionStartTime + } + + if items.ExecutionEndTime != nil { + itemsMap["execution_end_time"] = items.ExecutionEndTime + } + + ids = append(ids, strings.Join([]string{projectId, taskId}, tccommon.FILED_SP)) + itemsList = append(itemsList, itemsMap) + } + + dataMap["items"] = itemsList + } + _ = d.Set("data", []interface{}{dataMap}) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := tccommon.WriteToFile(output.(string), dataMap); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks.md b/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks.md new file mode 100644 index 0000000000..46479644cc --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks.md @@ -0,0 +1,10 @@ +Use this data source to query detailed information of wedata ops upstream task + +Example Usage + +```hcl +data "tencentcloud_wedata_ops_upstream_tasks" "wedata_ops_upstream_tasks" { + project_id = "1859317240494305280" + task_id = "20250820150144998" +} +``` \ No newline at end of file diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks_extension.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks_extension.go new file mode 100644 index 0000000000..4a61b9ede3 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks_extension.go @@ -0,0 +1 @@ +package wedata diff --git a/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks_test.go b/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks_test.go new file mode 100644 index 0000000000..5035769aa6 --- /dev/null +++ b/tencentcloud/services/wedata/data_source_tc_wedata_ops_upstream_tasks_test.go @@ -0,0 +1,36 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudWedataOpsUpstreamTasksDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccWedataOpsUpstreamTasksDataSource, + Check: resource.ComposeTestCheckFunc( + tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_wedata_ops_upstream_tasks.wedata_ops_upstream_tasks"), + resource.TestCheckResourceAttrSet("data.tencentcloud_wedata_ops_upstream_tasks.wedata_ops_upstream_tasks", "id"), + resource.TestCheckResourceAttr("data.tencentcloud_wedata_ops_upstream_tasks.wedata_ops_upstream_tasks", "data.#", "1"), + ), + }, + }, + }) +} + +const testAccWedataOpsUpstreamTasksDataSource = ` + +data "tencentcloud_wedata_ops_upstream_tasks" "wedata_ops_upstream_tasks" { + project_id = "1859317240494305280" + task_id = "20250820150144998" +} +` diff --git a/tencentcloud/services/wedata/resource_tc_wedata_ops_task.go b/tencentcloud/services/wedata/resource_tc_wedata_ops_task.go new file mode 100644 index 0000000000..4dd8b61827 --- /dev/null +++ b/tencentcloud/services/wedata/resource_tc_wedata_ops_task.go @@ -0,0 +1,295 @@ +// Code generated by iacg; DO NOT EDIT. +package wedata + +import ( + "context" + "fmt" + "log" + "strings" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + wedatav20250806 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806" + tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func ResourceTencentCloudWedataOpsTask() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudWedataOpsTaskCreate, + Read: resourceTencentCloudWedataOpsTaskRead, + Update: resourceTencentCloudWedataOpsTaskUpdate, + Delete: resourceTencentCloudWedataOpsTaskDelete, + Schema: map[string]*schema.Schema{ + "project_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Project Id.", + }, + + "task_id": { + Type: schema.TypeString, + Required: true, + ForceNew: true, + Description: "Task id.", + }, + + "action": { + Type: schema.TypeString, + Required: true, + Description: "Action. Valid values: `START`, `PAUSE`.", + }, + + "enable_data_backfill": { + Type: schema.TypeBool, + Optional: true, + Description: "Whether to re-record the intermediate instance from the last pause to the current one when starting. The default value is false, which means no re-recording.", + }, + + "kill_instance": { + Type: schema.TypeBool, + Optional: true, + Description: "Whether required to terminate the generated instance.", + }, + + "status": { + Type: schema.TypeString, + Computed: true, + Description: "Task status.", + }, + }, + } +} + +func resourceTencentCloudWedataOpsTaskCreate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_wedata_ops_task.create")() + defer tccommon.InconsistentCheck(d, meta)() + + var ( + projectId string + taskId string + ) + + if v, ok := d.GetOk("project_id"); ok { + projectId = v.(string) + } + + if v, ok := d.GetOk("task_id"); ok { + taskId = v.(string) + } + + d.SetId(strings.Join([]string{projectId, taskId}, tccommon.FILED_SP)) + + return resourceTencentCloudWedataOpsTaskUpdate(d, meta) +} + +func resourceTencentCloudWedataOpsTaskRead(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_wedata_ops_task.read")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(tccommon.ContextNil) + + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + service := WedataService{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()) + } + projectId := idSplit[0] + taskId := idSplit[1] + + respData, err := service.DescribeWedataOpsTaskById(ctx, projectId, taskId) + if err != nil { + return err + } + + if respData == nil { + d.SetId("") + log.Printf("[WARN]%s resource `wedata_ops_task` [%s] not found, please check if it has been deleted.\n", logId, d.Id()) + return nil + } + + _ = d.Set("project_id", projectId) + _ = d.Set("task_id", taskId) + + if respData.TaskBaseAttribute != nil { + if respData.TaskBaseAttribute.Status != nil { + _ = d.Set("status", respData.TaskBaseAttribute.Status) + } + } + + return nil +} + +func resourceTencentCloudWedataOpsTaskUpdate(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_wedata_ops_task.update")() + defer tccommon.InconsistentCheck(d, meta)() + + logId := tccommon.GetLogId(tccommon.ContextNil) + + ctx := tccommon.NewResourceLifeCycleHandleFuncContext(context.Background(), logId, d, meta) + + idSplit := strings.Split(d.Id(), tccommon.FILED_SP) + if len(idSplit) != 2 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + projectId := idSplit[0] + taskId := idSplit[1] + + var action string + if v, ok := d.GetOk("action"); ok { + action = v.(string) + if action != "START" && action != "PAUSE" { + return fmt.Errorf("action only support `START` or `PAUSE`") + } + } + + needChange := false + mutableArgs := []string{"action", "enable_data_backfill"} + for _, v := range mutableArgs { + if d.HasChange(v) && action == "START" { + needChange = true + break + } + } + + if needChange { + request := wedatav20250806.NewStartOpsTasksRequest() + response := wedatav20250806.NewStartOpsTasksResponse() + + if v, ok := d.GetOk("project_id"); ok { + request.ProjectId = helper.String(v.(string)) + } + + if v, ok := d.GetOk("task_id"); ok { + request.TaskIds = append(request.TaskIds, helper.String(v.(string))) + } + + if v, ok := d.GetOkExists("enable_data_backfill"); ok { + request.EnableDataBackfill = helper.Bool(v.(bool)) + } + + reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseWedataV20250806Client().StartOpsTasksWithContext(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()) + } + response = result + return nil + }) + if reqErr != nil { + log.Printf("[CRITAL]%s update wedata ops task failed, reason:%+v", logId, reqErr) + return reqErr + } + if response.Response.Data.Status == nil { + return fmt.Errorf("status is empty") + } + + if !*response.Response.Data.Status { + return fmt.Errorf("start ops task failed, please check the task status") + } + } + + needChange1 := false + mutableArgs1 := []string{"action", "kill_instance"} + for _, v := range mutableArgs1 { + if d.HasChange(v) && action == "PAUSE" { + needChange1 = true + break + } + } + + if needChange1 { + request1 := wedatav20250806.NewPauseOpsTasksAsyncRequest() + response1 := wedatav20250806.NewPauseOpsTasksAsyncResponse() + + if v, ok := d.GetOk("project_id"); ok { + request1.ProjectId = helper.String(v.(string)) + } + + if v, ok := d.GetOk("task_id"); ok { + request1.TaskIds = append(request1.TaskIds, helper.String(v.(string))) + } + + if v, ok := d.GetOkExists("kill_instance"); ok { + request1.KillInstance = helper.Bool(v.(bool)) + } + + reqErr1 := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { + result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseWedataV20250806Client().PauseOpsTasksAsyncWithContext(ctx, request1) + if e != nil { + return tccommon.RetryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request1.GetAction(), request1.ToJsonString(), result.ToJsonString()) + } + response1 = result + return nil + }) + if reqErr1 != nil { + log.Printf("[CRITAL]%s update wedata ops task failed, reason:%+v", logId, reqErr1) + return reqErr1 + } + + if response1.Response.Data.AsyncId == nil { + return fmt.Errorf("async id is empty") + } + + asyncId := *response1.Response.Data.AsyncId + if _, err := (&resource.StateChangeConf{ + Delay: 1 * time.Second, + MinTimeout: 3 * time.Second, + Pending: []string{"INIT", "RUNNING"}, + Refresh: resourceWedataOpsTaskUpdateStateRefreshFunc_1_0(ctx, projectId, asyncId), + Target: []string{"SUCCESS"}, + Timeout: 3600 * time.Second, + }).WaitForStateContext(ctx); err != nil { + return err + } + } + + _ = projectId + _ = taskId + return resourceTencentCloudWedataOpsTaskRead(d, meta) +} + +func resourceTencentCloudWedataOpsTaskDelete(d *schema.ResourceData, meta interface{}) error { + defer tccommon.LogElapsed("resource.tencentcloud_wedata_ops_task.delete")() + defer tccommon.InconsistentCheck(d, meta)() + + return nil +} + +func resourceWedataOpsTaskUpdateStateRefreshFunc_1_0(ctx context.Context, projectId string, asyncId string) resource.StateRefreshFunc { + var req *wedatav20250806.GetOpsAsyncJobRequest + return func() (interface{}, string, error) { + meta := tccommon.ProviderMetaFromContext(ctx) + if meta == nil { + return nil, "", fmt.Errorf("resource data can not be nil") + } + if req == nil { + d := tccommon.ResourceDataFromContext(ctx) + if d == nil { + return nil, "", fmt.Errorf("resource data can not be nil") + } + _ = d + req = wedatav20250806.NewGetOpsAsyncJobRequest() + req.ProjectId = helper.String(projectId) + req.AsyncId = helper.String(asyncId) + } + resp, err := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseWedataV20250806Client().GetOpsAsyncJobWithContext(ctx, req) + if err != nil { + return nil, "", err + } + if resp == nil || resp.Response == nil { + return nil, "", nil + } + state := fmt.Sprintf("%v", *resp.Response.Data.Status) + return resp.Response, state, nil + } +} diff --git a/tencentcloud/services/wedata/resource_tc_wedata_ops_task.md b/tencentcloud/services/wedata/resource_tc_wedata_ops_task.md new file mode 100644 index 0000000000..5b43df1b11 --- /dev/null +++ b/tencentcloud/services/wedata/resource_tc_wedata_ops_task.md @@ -0,0 +1,11 @@ +Provides a resource to create a wedata ops task + +Example Usage + +```hcl +resource "tencentcloud_wedata_ops_task" "wedata_ops_task" { + project_id = "1859317240494305280" + task_id = "20251013154418424" + action = "START" +} +``` diff --git a/tencentcloud/services/wedata/resource_tc_wedata_ops_task_extension.go b/tencentcloud/services/wedata/resource_tc_wedata_ops_task_extension.go new file mode 100644 index 0000000000..4a61b9ede3 --- /dev/null +++ b/tencentcloud/services/wedata/resource_tc_wedata_ops_task_extension.go @@ -0,0 +1 @@ +package wedata diff --git a/tencentcloud/services/wedata/resource_tc_wedata_ops_task_test.go b/tencentcloud/services/wedata/resource_tc_wedata_ops_task_test.go new file mode 100644 index 0000000000..1658aae495 --- /dev/null +++ b/tencentcloud/services/wedata/resource_tc_wedata_ops_task_test.go @@ -0,0 +1,54 @@ +package wedata_test + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest" +) + +func TestAccTencentCloudWedataOpsTaskResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + tcacctest.AccPreCheck(t) + }, + Providers: tcacctest.AccProviders, + Steps: []resource.TestStep{ + { + Config: testAccWedataOpsTask, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_wedata_ops_task.wedata_ops_task", "id"), + resource.TestCheckResourceAttr("tencentcloud_wedata_ops_task.wedata_ops_task", "action", "PAUSE"), + resource.TestCheckResourceAttr("tencentcloud_wedata_ops_task.wedata_ops_task", "status", "O"), + ), + }, + { + Config: testAccWedataOpsTaskUp, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("tencentcloud_wedata_ops_task.wedata_ops_task", "id"), + resource.TestCheckResourceAttr("tencentcloud_wedata_ops_task.wedata_ops_task", "action", "START"), + resource.TestCheckResourceAttr("tencentcloud_wedata_ops_task.wedata_ops_task", "status", "Y"), + ), + }, + }, + }) +} + +const testAccWedataOpsTask = ` + +resource "tencentcloud_wedata_ops_task" "wedata_ops_task" { + project_id = "1859317240494305280" + task_id = "20251013154418424" + action = "PAUSE" +} +` + +const testAccWedataOpsTaskUp = ` + +resource "tencentcloud_wedata_ops_task" "wedata_ops_task" { + project_id = "1859317240494305280" + task_id = "20251013154418424" + action = "START" +} +` diff --git a/tencentcloud/services/wedata/service_tencentcloud_wedata.go b/tencentcloud/services/wedata/service_tencentcloud_wedata.go index 2d881d5f3b..2d98744f58 100644 --- a/tencentcloud/services/wedata/service_tencentcloud_wedata.go +++ b/tencentcloud/services/wedata/service_tencentcloud_wedata.go @@ -697,6 +697,391 @@ func (me *WedataService) DescribeWedataOpsAlarmRulesByFilter(ctx context.Context return } +func (me *WedataService) DescribeWedataOpsTaskCodeByFilter(ctx context.Context, param map[string]interface{}) (ret *wedatav20250806.GetOpsTaskCodeResponseParams, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = wedatav20250806.NewGetOpsTaskCodeRequest() + ) + + 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 == "ProjectId" { + request.ProjectId = v.(*string) + } + if k == "TaskId" { + request.TaskId = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseWedataV20250806Client().GetOpsTaskCode(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 || response.Response == nil { + return + } + + ret = response.Response + return +} + +func (me *WedataService) DescribeWedataOpsUpstreamTasksByFilter(ctx context.Context, param map[string]interface{}) (ret *wedatav20250806.ListUpstreamOpsTasksResponseParams, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = wedatav20250806.NewListUpstreamOpsTasksRequest() + ) + + 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 == "ProjectId" { + request.ProjectId = v.(*string) + } + if k == "TaskId" { + request.TaskId = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseWedataV20250806Client().ListUpstreamOpsTasks(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 || response.Response == nil { + return + } + + ret = response.Response + return +} + +func (me *WedataService) DescribeWedataOpsDownstreamTasksByFilter(ctx context.Context, param map[string]interface{}) (ret *wedatav20250806.ListDownstreamOpsTasksResponseParams, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = wedatav20250806.NewListDownstreamOpsTasksRequest() + ) + + 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 == "TaskId" { + request.TaskId = v.(*string) + } + if k == "ProjectId" { + request.ProjectId = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseWedataV20250806Client().ListDownstreamOpsTasks(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 || response.Response == nil { + return + } + + ret = response.Response + return +} + +func (me *WedataService) DescribeWedataOpsTasksByFilter(ctx context.Context, param map[string]interface{}) (ret *wedatav20250806.ListOpsTasksResponseParams, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = wedatav20250806.NewListOpsTasksRequest() + ) + + 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 == "ProjectId" { + request.ProjectId = v.(*string) + } + if k == "TaskTypeId" { + request.TaskTypeId = v.(*string) + } + if k == "WorkflowId" { + request.WorkflowId = v.(*string) + } + if k == "WorkflowName" { + request.WorkflowName = v.(*string) + } + if k == "OwnerUin" { + request.OwnerUin = v.(*string) + } + if k == "FolderId" { + request.FolderId = v.(*string) + } + if k == "SourceServiceId" { + request.SourceServiceId = v.(*string) + } + if k == "TargetServiceId" { + request.TargetServiceId = v.(*string) + } + if k == "ExecutorGroupId" { + request.ExecutorGroupId = v.(*string) + } + if k == "CycleType" { + request.CycleType = v.(*string) + } + if k == "Status" { + request.Status = v.(*string) + } + if k == "TimeZone" { + request.TimeZone = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseWedataV20250806Client().ListOpsTasks(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 || response.Response == nil { + return + } + + ret = response.Response + return +} + +func (me *WedataService) DescribeWedataOpsTaskById(ctx context.Context, projectId, taskId string) (ret *wedatav20250806.Task, errRet error) { + logId := tccommon.GetLogId(ctx) + + request := wedatav20250806.NewGetOpsTaskRequest() + request.ProjectId = &projectId + request.TaskId = &taskId + + 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()) + } + }() + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseWedataV20250806Client().GetOpsTask(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.Response == nil { + return + } + + ret = response.Response.Data + return +} + +func (me *WedataService) DescribeWedataOpsAlarmMessageByFilter(ctx context.Context, param map[string]interface{}) (ret *wedatav20250806.GetAlarmMessageResponseParams, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = wedatav20250806.NewGetAlarmMessageRequest() + ) + + 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 == "ProjectId" { + request.ProjectId = v.(*string) + } + if k == "AlarmMessageId" { + request.AlarmMessageId = v.(*string) + } + if k == "TimeZone" { + request.TimeZone = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseWedataV20250806Client().GetAlarmMessage(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 || response.Response == nil { + return + } + + ret = response.Response + return +} + +func (me *WedataService) DescribeWedataOpsAlarmMessagesByFilter(ctx context.Context, param map[string]interface{}) (ret *wedatav20250806.ListAlarmMessagesResponseParams, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = wedatav20250806.NewListAlarmMessagesRequest() + ) + + 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 == "ProjectId" { + request.ProjectId = v.(*string) + } + if k == "StartTime" { + request.StartTime = v.(*string) + } + if k == "EndTime" { + request.EndTime = v.(*string) + } + if k == "AlarmLevel" { + request.AlarmLevel = v.(*uint64) + } + if k == "AlarmRecipientId" { + request.AlarmRecipientId = v.(*string) + } + if k == "TimeZone" { + request.TimeZone = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseWedataV20250806Client().ListAlarmMessages(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 || response.Response == nil { + return + } + + ret = response.Response + return +} + +func (me *WedataService) DescribeWedataDataBackfillInstancesByFilter(ctx context.Context, param map[string]interface{}) (ret *wedatav20250806.ListDataBackfillInstancesResponseParams, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = wedatav20250806.NewListDataBackfillInstancesRequest() + ) + + 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 == "ProjectId" { + request.ProjectId = v.(*string) + } + if k == "DataBackfillPlanId" { + request.DataBackfillPlanId = v.(*string) + } + if k == "TaskId" { + request.TaskId = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseWedataV20250806Client().ListDataBackfillInstances(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 || response.Response == nil { + return + } + + ret = response.Response + return +} + +func (me *WedataService) DescribeWedataDataBackfillPlanByFilter(ctx context.Context, param map[string]interface{}) (ret *wedatav20250806.GetDataBackfillPlanResponseParams, errRet error) { + var ( + logId = tccommon.GetLogId(ctx) + request = wedatav20250806.NewGetDataBackfillPlanRequest() + ) + + 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 == "ProjectId" { + request.ProjectId = v.(*string) + } + if k == "DataBackfillPlanId" { + request.DataBackfillPlanId = v.(*string) + } + if k == "TimeZone" { + request.TimeZone = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseWedataV20250806Client().GetDataBackfillPlan(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 || response.Response == nil { + return + } + + ret = response.Response + return +} + func (me *WedataService) DescribeWedataDataSourceListByFilter(ctx context.Context, param map[string]interface{}) (dataSourceList []*wedata.DataSourceInfo, errRet error) { var ( logId = tccommon.GetLogId(ctx) 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 a95a7a13e9..6806eef77a 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,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()) - params["RequestClient"] = "SDK_GO_1.1.36" + params["RequestClient"] = "SDK_GO_1.1.40" 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 index ff66fba6e8..364cd81d22 100644 --- 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 @@ -45,6 +45,116 @@ func NewClient(credential common.CredentialIface, region string, clientProfile * } +func NewAddCalcEnginesToProjectRequest() (request *AddCalcEnginesToProjectRequest) { + request = &AddCalcEnginesToProjectRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "AddCalcEnginesToProject") + + + return +} + +func NewAddCalcEnginesToProjectResponse() (response *AddCalcEnginesToProjectResponse) { + response = &AddCalcEnginesToProjectResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// AddCalcEnginesToProject +// 关联项目集群 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_WORKSPACENOTEXIST = "InvalidParameter.WorkspaceNotExist" +func (c *Client) AddCalcEnginesToProject(request *AddCalcEnginesToProjectRequest) (response *AddCalcEnginesToProjectResponse, err error) { + return c.AddCalcEnginesToProjectWithContext(context.Background(), request) +} + +// AddCalcEnginesToProject +// 关联项目集群 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_WORKSPACENOTEXIST = "InvalidParameter.WorkspaceNotExist" +func (c *Client) AddCalcEnginesToProjectWithContext(ctx context.Context, request *AddCalcEnginesToProjectRequest) (response *AddCalcEnginesToProjectResponse, err error) { + if request == nil { + request = NewAddCalcEnginesToProjectRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "AddCalcEnginesToProject") + + if c.GetCredential() == nil { + return nil, errors.New("AddCalcEnginesToProject require credential") + } + + request.SetContext(ctx) + + response = NewAddCalcEnginesToProjectResponse() + err = c.Send(request, response) + return +} + +func NewAssociateResourceGroupToProjectRequest() (request *AssociateResourceGroupToProjectRequest) { + request = &AssociateResourceGroupToProjectRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "AssociateResourceGroupToProject") + + + return +} + +func NewAssociateResourceGroupToProjectResponse() (response *AssociateResourceGroupToProjectResponse) { + response = &AssociateResourceGroupToProjectResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// AssociateResourceGroupToProject +// 该接口用于将指定执行资源组绑定到项目 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_EXECUTORCLUSTERSTATUSERROR = "FailedOperation.ExecutorClusterStatusError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) AssociateResourceGroupToProject(request *AssociateResourceGroupToProjectRequest) (response *AssociateResourceGroupToProjectResponse, err error) { + return c.AssociateResourceGroupToProjectWithContext(context.Background(), request) +} + +// AssociateResourceGroupToProject +// 该接口用于将指定执行资源组绑定到项目 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_EXECUTORCLUSTERSTATUSERROR = "FailedOperation.ExecutorClusterStatusError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) AssociateResourceGroupToProjectWithContext(ctx context.Context, request *AssociateResourceGroupToProjectRequest) (response *AssociateResourceGroupToProjectResponse, err error) { + if request == nil { + request = NewAssociateResourceGroupToProjectRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "AssociateResourceGroupToProject") + + if c.GetCredential() == nil { + return nil, errors.New("AssociateResourceGroupToProject require credential") + } + + request.SetContext(ctx) + + response = NewAssociateResourceGroupToProjectResponse() + err = c.Send(request, response) + return +} + func NewCreateCodeFileRequest() (request *CreateCodeFileRequest) { request = &CreateCodeFileRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -197,6 +307,56 @@ func (c *Client) CreateDataBackfillPlanWithContext(ctx context.Context, request return } +func NewCreateDataSourceRequest() (request *CreateDataSourceRequest) { + request = &CreateDataSourceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateDataSource") + + + return +} + +func NewCreateDataSourceResponse() (response *CreateDataSourceResponse) { + response = &CreateDataSourceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateDataSource +// 该接口用于在指定项目中创建数据源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateDataSource(request *CreateDataSourceRequest) (response *CreateDataSourceResponse, err error) { + return c.CreateDataSourceWithContext(context.Background(), request) +} + +// CreateDataSource +// 该接口用于在指定项目中创建数据源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateDataSourceWithContext(ctx context.Context, request *CreateDataSourceRequest) (response *CreateDataSourceResponse, err error) { + if request == nil { + request = NewCreateDataSourceRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateDataSource") + + if c.GetCredential() == nil { + return nil, errors.New("CreateDataSource require credential") + } + + request.SetContext(ctx) + + response = NewCreateDataSourceResponse() + err = c.Send(request, response) + return +} + func NewCreateOpsAlarmRuleRequest() (request *CreateOpsAlarmRuleRequest) { request = &CreateOpsAlarmRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -253,6 +413,110 @@ func (c *Client) CreateOpsAlarmRuleWithContext(ctx context.Context, request *Cre return } +func NewCreateProjectRequest() (request *CreateProjectRequest) { + request = &CreateProjectRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateProject") + + + return +} + +func NewCreateProjectResponse() (response *CreateProjectResponse) { + response = &CreateProjectResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateProject +// 创建项目,创建时包含集群信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_QUOTAEXCEEDERROR = "InvalidParameter.QuotaExceedError" +func (c *Client) CreateProject(request *CreateProjectRequest) (response *CreateProjectResponse, err error) { + return c.CreateProjectWithContext(context.Background(), request) +} + +// CreateProject +// 创建项目,创建时包含集群信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_QUOTAEXCEEDERROR = "InvalidParameter.QuotaExceedError" +func (c *Client) CreateProjectWithContext(ctx context.Context, request *CreateProjectRequest) (response *CreateProjectResponse, err error) { + if request == nil { + request = NewCreateProjectRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateProject") + + if c.GetCredential() == nil { + return nil, errors.New("CreateProject require credential") + } + + request.SetContext(ctx) + + response = NewCreateProjectResponse() + err = c.Send(request, response) + return +} + +func NewCreateProjectMemberRequest() (request *CreateProjectMemberRequest) { + request = &CreateProjectMemberRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateProjectMember") + + + return +} + +func NewCreateProjectMemberResponse() (response *CreateProjectMemberResponse) { + response = &CreateProjectMemberResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateProjectMember +// 添加项目用户角色 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateProjectMember(request *CreateProjectMemberRequest) (response *CreateProjectMemberResponse, err error) { + return c.CreateProjectMemberWithContext(context.Background(), request) +} + +// CreateProjectMember +// 添加项目用户角色 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) CreateProjectMemberWithContext(ctx context.Context, request *CreateProjectMemberRequest) (response *CreateProjectMemberResponse, err error) { + if request == nil { + request = NewCreateProjectMemberRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateProjectMember") + + if c.GetCredential() == nil { + return nil, errors.New("CreateProjectMember require credential") + } + + request.SetContext(ctx) + + response = NewCreateProjectMemberResponse() + err = c.Send(request, response) + return +} + func NewCreateResourceFileRequest() (request *CreateResourceFileRequest) { request = &CreateResourceFileRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -369,6 +633,64 @@ func (c *Client) CreateResourceFolderWithContext(ctx context.Context, request *C return } +func NewCreateResourceGroupRequest() (request *CreateResourceGroupRequest) { + request = &CreateResourceGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "CreateResourceGroup") + + + return +} + +func NewCreateResourceGroupResponse() (response *CreateResourceGroupResponse) { + response = &CreateResourceGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// CreateResourceGroup +// 该接口用于购买资源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateResourceGroup(request *CreateResourceGroupRequest) (response *CreateResourceGroupResponse, err error) { + return c.CreateResourceGroupWithContext(context.Background(), request) +} + +// CreateResourceGroup +// 该接口用于购买资源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) CreateResourceGroupWithContext(ctx context.Context, request *CreateResourceGroupRequest) (response *CreateResourceGroupResponse, err error) { + if request == nil { + request = NewCreateResourceGroupRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "CreateResourceGroup") + + if c.GetCredential() == nil { + return nil, errors.New("CreateResourceGroup require credential") + } + + request.SetContext(ctx) + + response = NewCreateResourceGroupResponse() + err = c.Send(request, response) + return +} + func NewCreateSQLFolderRequest() (request *CreateSQLFolderRequest) { request = &CreateSQLFolderRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -745,98 +1067,248 @@ func (c *Client) DeleteCodeFolderWithContext(ctx context.Context, request *Delet return } -func NewDeleteOpsAlarmRuleRequest() (request *DeleteOpsAlarmRuleRequest) { - request = &DeleteOpsAlarmRuleRequest{ +func NewDeleteDataSourceRequest() (request *DeleteDataSourceRequest) { + request = &DeleteDataSourceRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "DeleteOpsAlarmRule") + request.Init().WithApiInfo("wedata", APIVersion, "DeleteDataSource") return } -func NewDeleteOpsAlarmRuleResponse() (response *DeleteOpsAlarmRuleResponse) { - response = &DeleteOpsAlarmRuleResponse{ +func NewDeleteDataSourceResponse() (response *DeleteDataSourceResponse) { + response = &DeleteDataSourceResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DeleteOpsAlarmRule -// 删除告警规则 +// DeleteDataSource +// 该接口用于删除数据源 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteOpsAlarmRule(request *DeleteOpsAlarmRuleRequest) (response *DeleteOpsAlarmRuleResponse, err error) { - return c.DeleteOpsAlarmRuleWithContext(context.Background(), request) +func (c *Client) DeleteDataSource(request *DeleteDataSourceRequest) (response *DeleteDataSourceResponse, err error) { + return c.DeleteDataSourceWithContext(context.Background(), request) } -// DeleteOpsAlarmRule -// 删除告警规则 +// DeleteDataSource +// 该接口用于删除数据源 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) DeleteOpsAlarmRuleWithContext(ctx context.Context, request *DeleteOpsAlarmRuleRequest) (response *DeleteOpsAlarmRuleResponse, err error) { +func (c *Client) DeleteDataSourceWithContext(ctx context.Context, request *DeleteDataSourceRequest) (response *DeleteDataSourceResponse, err error) { if request == nil { - request = NewDeleteOpsAlarmRuleRequest() + request = NewDeleteDataSourceRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteOpsAlarmRule") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteDataSource") if c.GetCredential() == nil { - return nil, errors.New("DeleteOpsAlarmRule require credential") + return nil, errors.New("DeleteDataSource require credential") } request.SetContext(ctx) - response = NewDeleteOpsAlarmRuleResponse() + response = NewDeleteDataSourceResponse() err = c.Send(request, response) return } -func NewDeleteResourceFileRequest() (request *DeleteResourceFileRequest) { - request = &DeleteResourceFileRequest{ +func NewDeleteLineageRequest() (request *DeleteLineageRequest) { + request = &DeleteLineageRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "DeleteResourceFile") + request.Init().WithApiInfo("wedata", APIVersion, "DeleteLineage") return } -func NewDeleteResourceFileResponse() (response *DeleteResourceFileResponse) { - response = &DeleteResourceFileResponse{ +func NewDeleteLineageResponse() (response *DeleteLineageResponse) { + response = &DeleteLineageResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DeleteResourceFile -// 资源管理-删除资源文件 +// DeleteLineage +// RegisterLineage // // 可能返回的错误码: // 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) +func (c *Client) DeleteLineage(request *DeleteLineageRequest) (response *DeleteLineageResponse, err error) { + return c.DeleteLineageWithContext(context.Background(), request) } -// DeleteResourceFile -// 资源管理-删除资源文件 +// DeleteLineage +// RegisterLineage // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) DeleteResourceFileWithContext(ctx context.Context, request *DeleteResourceFileRequest) (response *DeleteResourceFileResponse, err error) { +func (c *Client) DeleteLineageWithContext(ctx context.Context, request *DeleteLineageRequest) (response *DeleteLineageResponse, err error) { + if request == nil { + request = NewDeleteLineageRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteLineage") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteLineage require credential") + } + + request.SetContext(ctx) + + response = NewDeleteLineageResponse() + 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 NewDeleteProjectMemberRequest() (request *DeleteProjectMemberRequest) { + request = &DeleteProjectMemberRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteProjectMember") + + + return +} + +func NewDeleteProjectMemberResponse() (response *DeleteProjectMemberResponse) { + response = &DeleteProjectMemberResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteProjectMember +// 删除项目用户 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteProjectMember(request *DeleteProjectMemberRequest) (response *DeleteProjectMemberResponse, err error) { + return c.DeleteProjectMemberWithContext(context.Background(), request) +} + +// DeleteProjectMember +// 删除项目用户 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) DeleteProjectMemberWithContext(ctx context.Context, request *DeleteProjectMemberRequest) (response *DeleteProjectMemberResponse, err error) { + if request == nil { + request = NewDeleteProjectMemberRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteProjectMember") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteProjectMember require credential") + } + + request.SetContext(ctx) + + response = NewDeleteProjectMemberResponse() + 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() } @@ -911,6 +1383,64 @@ func (c *Client) DeleteResourceFolderWithContext(ctx context.Context, request *D return } +func NewDeleteResourceGroupRequest() (request *DeleteResourceGroupRequest) { + request = &DeleteResourceGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "DeleteResourceGroup") + + + return +} + +func NewDeleteResourceGroupResponse() (response *DeleteResourceGroupResponse) { + response = &DeleteResourceGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// DeleteResourceGroup +// 该接口用于销毁资源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DeleteResourceGroup(request *DeleteResourceGroupRequest) (response *DeleteResourceGroupResponse, err error) { + return c.DeleteResourceGroupWithContext(context.Background(), request) +} + +// DeleteResourceGroup +// 该接口用于销毁资源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DeleteResourceGroupWithContext(ctx context.Context, request *DeleteResourceGroupRequest) (response *DeleteResourceGroupResponse, err error) { + if request == nil { + request = NewDeleteResourceGroupRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DeleteResourceGroup") + + if c.GetCredential() == nil { + return nil, errors.New("DeleteResourceGroup require credential") + } + + request.SetContext(ctx) + + response = NewDeleteResourceGroupResponse() + err = c.Send(request, response) + return +} + func NewDeleteSQLFolderRequest() (request *DeleteSQLFolderRequest) { request = &DeleteSQLFolderRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -1187,1348 +1717,2480 @@ func (c *Client) DeleteWorkflowFolderWithContext(ctx context.Context, request *D return } -func NewGetAlarmMessageRequest() (request *GetAlarmMessageRequest) { - request = &GetAlarmMessageRequest{ +func NewDisableProjectRequest() (request *DisableProjectRequest) { + request = &DisableProjectRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetAlarmMessage") + request.Init().WithApiInfo("wedata", APIVersion, "DisableProject") return } -func NewGetAlarmMessageResponse() (response *GetAlarmMessageResponse) { - response = &GetAlarmMessageResponse{ +func NewDisableProjectResponse() (response *DisableProjectResponse) { + response = &DisableProjectResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetAlarmMessage -// 查询告警信息详情 +// DisableProject +// 禁用项目 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetAlarmMessage(request *GetAlarmMessageRequest) (response *GetAlarmMessageResponse, err error) { - return c.GetAlarmMessageWithContext(context.Background(), request) +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DisableProject(request *DisableProjectRequest) (response *DisableProjectResponse, err error) { + return c.DisableProjectWithContext(context.Background(), request) } -// GetAlarmMessage -// 查询告警信息详情 +// DisableProject +// 禁用项目 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -func (c *Client) GetAlarmMessageWithContext(ctx context.Context, request *GetAlarmMessageRequest) (response *GetAlarmMessageResponse, err error) { +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DisableProjectWithContext(ctx context.Context, request *DisableProjectRequest) (response *DisableProjectResponse, err error) { if request == nil { - request = NewGetAlarmMessageRequest() + request = NewDisableProjectRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetAlarmMessage") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DisableProject") if c.GetCredential() == nil { - return nil, errors.New("GetAlarmMessage require credential") + return nil, errors.New("DisableProject require credential") } request.SetContext(ctx) - response = NewGetAlarmMessageResponse() + response = NewDisableProjectResponse() err = c.Send(request, response) return } -func NewGetCodeFileRequest() (request *GetCodeFileRequest) { - request = &GetCodeFileRequest{ +func NewDissociateResourceGroupFromProjectRequest() (request *DissociateResourceGroupFromProjectRequest) { + request = &DissociateResourceGroupFromProjectRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetCodeFile") + request.Init().WithApiInfo("wedata", APIVersion, "DissociateResourceGroupFromProject") return } -func NewGetCodeFileResponse() (response *GetCodeFileResponse) { - response = &GetCodeFileResponse{ +func NewDissociateResourceGroupFromProjectResponse() (response *DissociateResourceGroupFromProjectResponse) { + response = &DissociateResourceGroupFromProjectResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetCodeFile -// 查看代码文件详情 +// DissociateResourceGroupFromProject +// 该接口用于将指定执行资源组解除与项目的绑定 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) GetCodeFile(request *GetCodeFileRequest) (response *GetCodeFileResponse, err error) { - return c.GetCodeFileWithContext(context.Background(), request) +func (c *Client) DissociateResourceGroupFromProject(request *DissociateResourceGroupFromProjectRequest) (response *DissociateResourceGroupFromProjectResponse, err error) { + return c.DissociateResourceGroupFromProjectWithContext(context.Background(), request) } -// GetCodeFile -// 查看代码文件详情 +// DissociateResourceGroupFromProject +// 该接口用于将指定执行资源组解除与项目的绑定 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) GetCodeFileWithContext(ctx context.Context, request *GetCodeFileRequest) (response *GetCodeFileResponse, err error) { +func (c *Client) DissociateResourceGroupFromProjectWithContext(ctx context.Context, request *DissociateResourceGroupFromProjectRequest) (response *DissociateResourceGroupFromProjectResponse, err error) { if request == nil { - request = NewGetCodeFileRequest() + request = NewDissociateResourceGroupFromProjectRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetCodeFile") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "DissociateResourceGroupFromProject") if c.GetCredential() == nil { - return nil, errors.New("GetCodeFile require credential") + return nil, errors.New("DissociateResourceGroupFromProject require credential") } request.SetContext(ctx) - response = NewGetCodeFileResponse() + response = NewDissociateResourceGroupFromProjectResponse() err = c.Send(request, response) return } -func NewGetOpsAlarmRuleRequest() (request *GetOpsAlarmRuleRequest) { - request = &GetOpsAlarmRuleRequest{ +func NewEnableProjectRequest() (request *EnableProjectRequest) { + request = &EnableProjectRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsAlarmRule") + request.Init().WithApiInfo("wedata", APIVersion, "EnableProject") return } -func NewGetOpsAlarmRuleResponse() (response *GetOpsAlarmRuleResponse) { - response = &GetOpsAlarmRuleResponse{ +func NewEnableProjectResponse() (response *EnableProjectResponse) { + response = &EnableProjectResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetOpsAlarmRule -// 根据告警规则id/名称查询单个告警规则信息 +// EnableProject +// 启用项目 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetOpsAlarmRule(request *GetOpsAlarmRuleRequest) (response *GetOpsAlarmRuleResponse, err error) { - return c.GetOpsAlarmRuleWithContext(context.Background(), request) +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) EnableProject(request *EnableProjectRequest) (response *EnableProjectResponse, err error) { + return c.EnableProjectWithContext(context.Background(), request) } -// GetOpsAlarmRule -// 根据告警规则id/名称查询单个告警规则信息 +// EnableProject +// 启用项目 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetOpsAlarmRuleWithContext(ctx context.Context, request *GetOpsAlarmRuleRequest) (response *GetOpsAlarmRuleResponse, err error) { +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) EnableProjectWithContext(ctx context.Context, request *EnableProjectRequest) (response *EnableProjectResponse, err error) { if request == nil { - request = NewGetOpsAlarmRuleRequest() + request = NewEnableProjectRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsAlarmRule") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "EnableProject") if c.GetCredential() == nil { - return nil, errors.New("GetOpsAlarmRule require credential") + return nil, errors.New("EnableProject require credential") } request.SetContext(ctx) - response = NewGetOpsAlarmRuleResponse() + response = NewEnableProjectResponse() err = c.Send(request, response) return } -func NewGetOpsAsyncJobRequest() (request *GetOpsAsyncJobRequest) { - request = &GetOpsAsyncJobRequest{ +func NewGetAlarmMessageRequest() (request *GetAlarmMessageRequest) { + request = &GetAlarmMessageRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsAsyncJob") + request.Init().WithApiInfo("wedata", APIVersion, "GetAlarmMessage") return } -func NewGetOpsAsyncJobResponse() (response *GetOpsAsyncJobResponse) { - response = &GetOpsAsyncJobResponse{ +func NewGetAlarmMessageResponse() (response *GetAlarmMessageResponse) { + response = &GetAlarmMessageResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetOpsAsyncJob -// 查询运维中心异步操作详情 +// GetAlarmMessage +// 查询告警信息详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetOpsAsyncJob(request *GetOpsAsyncJobRequest) (response *GetOpsAsyncJobResponse, err error) { - return c.GetOpsAsyncJobWithContext(context.Background(), request) +func (c *Client) GetAlarmMessage(request *GetAlarmMessageRequest) (response *GetAlarmMessageResponse, err error) { + return c.GetAlarmMessageWithContext(context.Background(), request) } -// GetOpsAsyncJob -// 查询运维中心异步操作详情 +// GetAlarmMessage +// 查询告警信息详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetOpsAsyncJobWithContext(ctx context.Context, request *GetOpsAsyncJobRequest) (response *GetOpsAsyncJobResponse, err error) { +func (c *Client) GetAlarmMessageWithContext(ctx context.Context, request *GetAlarmMessageRequest) (response *GetAlarmMessageResponse, err error) { if request == nil { - request = NewGetOpsAsyncJobRequest() + request = NewGetAlarmMessageRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsAsyncJob") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetAlarmMessage") if c.GetCredential() == nil { - return nil, errors.New("GetOpsAsyncJob require credential") + return nil, errors.New("GetAlarmMessage require credential") } request.SetContext(ctx) - response = NewGetOpsAsyncJobResponse() + response = NewGetAlarmMessageResponse() err = c.Send(request, response) return } -func NewGetOpsTaskRequest() (request *GetOpsTaskRequest) { - request = &GetOpsTaskRequest{ +func NewGetCodeFileRequest() (request *GetCodeFileRequest) { + request = &GetCodeFileRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsTask") + request.Init().WithApiInfo("wedata", APIVersion, "GetCodeFile") return } -func NewGetOpsTaskResponse() (response *GetOpsTaskResponse) { - response = &GetOpsTaskResponse{ +func NewGetCodeFileResponse() (response *GetCodeFileResponse) { + response = &GetCodeFileResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetOpsTask -// 获取任务详情 +// GetCodeFile +// 查看代码文件详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -func (c *Client) GetOpsTask(request *GetOpsTaskRequest) (response *GetOpsTaskResponse, err error) { - return c.GetOpsTaskWithContext(context.Background(), request) +func (c *Client) GetCodeFile(request *GetCodeFileRequest) (response *GetCodeFileResponse, err error) { + return c.GetCodeFileWithContext(context.Background(), request) } -// GetOpsTask -// 获取任务详情 +// GetCodeFile +// 查看代码文件详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -func (c *Client) GetOpsTaskWithContext(ctx context.Context, request *GetOpsTaskRequest) (response *GetOpsTaskResponse, err error) { +func (c *Client) GetCodeFileWithContext(ctx context.Context, request *GetCodeFileRequest) (response *GetCodeFileResponse, err error) { if request == nil { - request = NewGetOpsTaskRequest() + request = NewGetCodeFileRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsTask") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetCodeFile") if c.GetCredential() == nil { - return nil, errors.New("GetOpsTask require credential") + return nil, errors.New("GetCodeFile require credential") } request.SetContext(ctx) - response = NewGetOpsTaskResponse() + response = NewGetCodeFileResponse() err = c.Send(request, response) return } -func NewGetOpsTaskCodeRequest() (request *GetOpsTaskCodeRequest) { - request = &GetOpsTaskCodeRequest{ +func NewGetCodeFolderRequest() (request *GetCodeFolderRequest) { + request = &GetCodeFolderRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsTaskCode") + request.Init().WithApiInfo("wedata", APIVersion, "GetCodeFolder") return } -func NewGetOpsTaskCodeResponse() (response *GetOpsTaskCodeResponse) { - response = &GetOpsTaskCodeResponse{ +func NewGetCodeFolderResponse() (response *GetCodeFolderResponse) { + response = &GetCodeFolderResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetOpsTaskCode -// 获取任务代码 +// GetCodeFolder +// 获取sql文件夹详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) GetOpsTaskCode(request *GetOpsTaskCodeRequest) (response *GetOpsTaskCodeResponse, err error) { - return c.GetOpsTaskCodeWithContext(context.Background(), request) +func (c *Client) GetCodeFolder(request *GetCodeFolderRequest) (response *GetCodeFolderResponse, err error) { + return c.GetCodeFolderWithContext(context.Background(), request) } -// GetOpsTaskCode -// 获取任务代码 +// GetCodeFolder +// 获取sql文件夹详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) GetOpsTaskCodeWithContext(ctx context.Context, request *GetOpsTaskCodeRequest) (response *GetOpsTaskCodeResponse, err error) { +func (c *Client) GetCodeFolderWithContext(ctx context.Context, request *GetCodeFolderRequest) (response *GetCodeFolderResponse, err error) { if request == nil { - request = NewGetOpsTaskCodeRequest() + request = NewGetCodeFolderRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsTaskCode") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetCodeFolder") if c.GetCredential() == nil { - return nil, errors.New("GetOpsTaskCode require credential") + return nil, errors.New("GetCodeFolder require credential") } request.SetContext(ctx) - response = NewGetOpsTaskCodeResponse() + response = NewGetCodeFolderResponse() err = c.Send(request, response) return } -func NewGetOpsWorkflowRequest() (request *GetOpsWorkflowRequest) { - request = &GetOpsWorkflowRequest{ +func NewGetDataBackfillPlanRequest() (request *GetDataBackfillPlanRequest) { + request = &GetDataBackfillPlanRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetOpsWorkflow") + request.Init().WithApiInfo("wedata", APIVersion, "GetDataBackfillPlan") return } -func NewGetOpsWorkflowResponse() (response *GetOpsWorkflowResponse) { - response = &GetOpsWorkflowResponse{ +func NewGetDataBackfillPlanResponse() (response *GetDataBackfillPlanResponse) { + response = &GetDataBackfillPlanResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetOpsWorkflow -// 根据工作流id,获取工作流调度详情。 +// GetDataBackfillPlan +// 获取补录计划详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetOpsWorkflow(request *GetOpsWorkflowRequest) (response *GetOpsWorkflowResponse, err error) { - return c.GetOpsWorkflowWithContext(context.Background(), request) +func (c *Client) GetDataBackfillPlan(request *GetDataBackfillPlanRequest) (response *GetDataBackfillPlanResponse, err error) { + return c.GetDataBackfillPlanWithContext(context.Background(), request) } -// GetOpsWorkflow -// 根据工作流id,获取工作流调度详情。 +// GetDataBackfillPlan +// 获取补录计划详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetOpsWorkflowWithContext(ctx context.Context, request *GetOpsWorkflowRequest) (response *GetOpsWorkflowResponse, err error) { +func (c *Client) GetDataBackfillPlanWithContext(ctx context.Context, request *GetDataBackfillPlanRequest) (response *GetDataBackfillPlanResponse, err error) { if request == nil { - request = NewGetOpsWorkflowRequest() + request = NewGetDataBackfillPlanRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsWorkflow") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetDataBackfillPlan") if c.GetCredential() == nil { - return nil, errors.New("GetOpsWorkflow require credential") + return nil, errors.New("GetDataBackfillPlan require credential") } request.SetContext(ctx) - response = NewGetOpsWorkflowResponse() + response = NewGetDataBackfillPlanResponse() err = c.Send(request, response) return } -func NewGetResourceFileRequest() (request *GetResourceFileRequest) { - request = &GetResourceFileRequest{ +func NewGetDataSourceRequest() (request *GetDataSourceRequest) { + request = &GetDataSourceRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetResourceFile") + request.Init().WithApiInfo("wedata", APIVersion, "GetDataSource") return } -func NewGetResourceFileResponse() (response *GetResourceFileResponse) { - response = &GetResourceFileResponse{ +func NewGetDataSourceResponse() (response *GetDataSourceResponse) { + response = &GetDataSourceResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetResourceFile -// 获取资源文件详情 +// GetDataSource +// 该接口用于查看指定数据源的详细信息 // // 可能返回的错误码: // 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) +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) GetDataSource(request *GetDataSourceRequest) (response *GetDataSourceResponse, err error) { + return c.GetDataSourceWithContext(context.Background(), request) } -// GetResourceFile -// 获取资源文件详情 +// GetDataSource +// 该接口用于查看指定数据源的详细信息 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetResourceFileWithContext(ctx context.Context, request *GetResourceFileRequest) (response *GetResourceFileResponse, err error) { +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) GetDataSourceWithContext(ctx context.Context, request *GetDataSourceRequest) (response *GetDataSourceResponse, err error) { if request == nil { - request = NewGetResourceFileRequest() + request = NewGetDataSourceRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetResourceFile") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetDataSource") if c.GetCredential() == nil { - return nil, errors.New("GetResourceFile require credential") + return nil, errors.New("GetDataSource require credential") } request.SetContext(ctx) - response = NewGetResourceFileResponse() + response = NewGetDataSourceResponse() err = c.Send(request, response) return } -func NewGetSQLScriptRequest() (request *GetSQLScriptRequest) { - request = &GetSQLScriptRequest{ +func NewGetDataSourceRelatedTasksRequest() (request *GetDataSourceRelatedTasksRequest) { + request = &GetDataSourceRelatedTasksRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetSQLScript") + request.Init().WithApiInfo("wedata", APIVersion, "GetDataSourceRelatedTasks") return } -func NewGetSQLScriptResponse() (response *GetSQLScriptResponse) { - response = &GetSQLScriptResponse{ +func NewGetDataSourceRelatedTasksResponse() (response *GetDataSourceRelatedTasksResponse) { + response = &GetDataSourceRelatedTasksResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetSQLScript -// 查询脚本详情 +// GetDataSourceRelatedTasks +// 数据源关联任务详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) GetSQLScript(request *GetSQLScriptRequest) (response *GetSQLScriptResponse, err error) { - return c.GetSQLScriptWithContext(context.Background(), request) +func (c *Client) GetDataSourceRelatedTasks(request *GetDataSourceRelatedTasksRequest) (response *GetDataSourceRelatedTasksResponse, err error) { + return c.GetDataSourceRelatedTasksWithContext(context.Background(), request) } -// GetSQLScript -// 查询脚本详情 +// GetDataSourceRelatedTasks +// 数据源关联任务详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) GetSQLScriptWithContext(ctx context.Context, request *GetSQLScriptRequest) (response *GetSQLScriptResponse, err error) { +func (c *Client) GetDataSourceRelatedTasksWithContext(ctx context.Context, request *GetDataSourceRelatedTasksRequest) (response *GetDataSourceRelatedTasksResponse, err error) { if request == nil { - request = NewGetSQLScriptRequest() + request = NewGetDataSourceRelatedTasksRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetSQLScript") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetDataSourceRelatedTasks") if c.GetCredential() == nil { - return nil, errors.New("GetSQLScript require credential") + return nil, errors.New("GetDataSourceRelatedTasks require credential") } request.SetContext(ctx) - response = NewGetSQLScriptResponse() + response = NewGetDataSourceRelatedTasksResponse() err = c.Send(request, response) return } -func NewGetTaskRequest() (request *GetTaskRequest) { - request = &GetTaskRequest{ +func NewGetOpsAlarmRuleRequest() (request *GetOpsAlarmRuleRequest) { + request = &GetOpsAlarmRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetTask") + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsAlarmRule") return } -func NewGetTaskResponse() (response *GetTaskResponse) { - response = &GetTaskResponse{ +func NewGetOpsAlarmRuleResponse() (response *GetOpsAlarmRuleResponse) { + response = &GetOpsAlarmRuleResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetTask -// 创建任务接口 +// GetOpsAlarmRule +// 根据告警规则id/名称查询单个告警规则信息 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTask(request *GetTaskRequest) (response *GetTaskResponse, err error) { - return c.GetTaskWithContext(context.Background(), request) +func (c *Client) GetOpsAlarmRule(request *GetOpsAlarmRuleRequest) (response *GetOpsAlarmRuleResponse, err error) { + return c.GetOpsAlarmRuleWithContext(context.Background(), request) } -// GetTask -// 创建任务接口 +// GetOpsAlarmRule +// 根据告警规则id/名称查询单个告警规则信息 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTaskWithContext(ctx context.Context, request *GetTaskRequest) (response *GetTaskResponse, err error) { +func (c *Client) GetOpsAlarmRuleWithContext(ctx context.Context, request *GetOpsAlarmRuleRequest) (response *GetOpsAlarmRuleResponse, err error) { if request == nil { - request = NewGetTaskRequest() + request = NewGetOpsAlarmRuleRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTask") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsAlarmRule") if c.GetCredential() == nil { - return nil, errors.New("GetTask require credential") + return nil, errors.New("GetOpsAlarmRule require credential") } request.SetContext(ctx) - response = NewGetTaskResponse() + response = NewGetOpsAlarmRuleResponse() err = c.Send(request, response) return } -func NewGetTaskCodeRequest() (request *GetTaskCodeRequest) { - request = &GetTaskCodeRequest{ +func NewGetOpsAsyncJobRequest() (request *GetOpsAsyncJobRequest) { + request = &GetOpsAsyncJobRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetTaskCode") + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsAsyncJob") return } -func NewGetTaskCodeResponse() (response *GetTaskCodeResponse) { - response = &GetTaskCodeResponse{ +func NewGetOpsAsyncJobResponse() (response *GetOpsAsyncJobResponse) { + response = &GetOpsAsyncJobResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetTaskCode -// 获取任务代码 +// GetOpsAsyncJob +// 查询运维中心异步操作详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTaskCode(request *GetTaskCodeRequest) (response *GetTaskCodeResponse, err error) { - return c.GetTaskCodeWithContext(context.Background(), request) +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetOpsAsyncJob(request *GetOpsAsyncJobRequest) (response *GetOpsAsyncJobResponse, err error) { + return c.GetOpsAsyncJobWithContext(context.Background(), request) } -// GetTaskCode -// 获取任务代码 +// GetOpsAsyncJob +// 查询运维中心异步操作详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTaskCodeWithContext(ctx context.Context, request *GetTaskCodeRequest) (response *GetTaskCodeResponse, err error) { +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) GetOpsAsyncJobWithContext(ctx context.Context, request *GetOpsAsyncJobRequest) (response *GetOpsAsyncJobResponse, err error) { if request == nil { - request = NewGetTaskCodeRequest() + request = NewGetOpsAsyncJobRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskCode") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsAsyncJob") if c.GetCredential() == nil { - return nil, errors.New("GetTaskCode require credential") + return nil, errors.New("GetOpsAsyncJob require credential") } request.SetContext(ctx) - response = NewGetTaskCodeResponse() + response = NewGetOpsAsyncJobResponse() err = c.Send(request, response) return } -func NewGetTaskInstanceRequest() (request *GetTaskInstanceRequest) { - request = &GetTaskInstanceRequest{ +func NewGetOpsTaskRequest() (request *GetOpsTaskRequest) { + request = &GetOpsTaskRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetTaskInstance") + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsTask") return } -func NewGetTaskInstanceResponse() (response *GetTaskInstanceResponse) { - response = &GetTaskInstanceResponse{ +func NewGetOpsTaskResponse() (response *GetOpsTaskResponse) { + response = &GetOpsTaskResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetTaskInstance -// 调度实例详情 +// GetOpsTask +// 获取任务详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetTaskInstance(request *GetTaskInstanceRequest) (response *GetTaskInstanceResponse, err error) { - return c.GetTaskInstanceWithContext(context.Background(), request) +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +func (c *Client) GetOpsTask(request *GetOpsTaskRequest) (response *GetOpsTaskResponse, err error) { + return c.GetOpsTaskWithContext(context.Background(), request) } -// GetTaskInstance -// 调度实例详情 +// GetOpsTask +// 获取任务详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetTaskInstanceWithContext(ctx context.Context, request *GetTaskInstanceRequest) (response *GetTaskInstanceResponse, err error) { +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +func (c *Client) GetOpsTaskWithContext(ctx context.Context, request *GetOpsTaskRequest) (response *GetOpsTaskResponse, err error) { if request == nil { - request = NewGetTaskInstanceRequest() + request = NewGetOpsTaskRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskInstance") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsTask") if c.GetCredential() == nil { - return nil, errors.New("GetTaskInstance require credential") + return nil, errors.New("GetOpsTask require credential") } request.SetContext(ctx) - response = NewGetTaskInstanceResponse() + response = NewGetOpsTaskResponse() err = c.Send(request, response) return } -func NewGetTaskInstanceLogRequest() (request *GetTaskInstanceLogRequest) { - request = &GetTaskInstanceLogRequest{ +func NewGetOpsTaskCodeRequest() (request *GetOpsTaskCodeRequest) { + request = &GetOpsTaskCodeRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetTaskInstanceLog") + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsTaskCode") return } -func NewGetTaskInstanceLogResponse() (response *GetTaskInstanceLogResponse) { - response = &GetTaskInstanceLogResponse{ +func NewGetOpsTaskCodeResponse() (response *GetOpsTaskCodeResponse) { + response = &GetOpsTaskCodeResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetTaskInstanceLog -// 获取实例列表 +// GetOpsTaskCode +// 获取任务代码 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetTaskInstanceLog(request *GetTaskInstanceLogRequest) (response *GetTaskInstanceLogResponse, err error) { - return c.GetTaskInstanceLogWithContext(context.Background(), request) +func (c *Client) GetOpsTaskCode(request *GetOpsTaskCodeRequest) (response *GetOpsTaskCodeResponse, err error) { + return c.GetOpsTaskCodeWithContext(context.Background(), request) } -// GetTaskInstanceLog -// 获取实例列表 +// GetOpsTaskCode +// 获取任务代码 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetTaskInstanceLogWithContext(ctx context.Context, request *GetTaskInstanceLogRequest) (response *GetTaskInstanceLogResponse, err error) { +func (c *Client) GetOpsTaskCodeWithContext(ctx context.Context, request *GetOpsTaskCodeRequest) (response *GetOpsTaskCodeResponse, err error) { if request == nil { - request = NewGetTaskInstanceLogRequest() + request = NewGetOpsTaskCodeRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskInstanceLog") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsTaskCode") if c.GetCredential() == nil { - return nil, errors.New("GetTaskInstanceLog require credential") + return nil, errors.New("GetOpsTaskCode require credential") } request.SetContext(ctx) - response = NewGetTaskInstanceLogResponse() + response = NewGetOpsTaskCodeResponse() err = c.Send(request, response) return } -func NewGetTaskVersionRequest() (request *GetTaskVersionRequest) { - request = &GetTaskVersionRequest{ +func NewGetOpsWorkflowRequest() (request *GetOpsWorkflowRequest) { + request = &GetOpsWorkflowRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetTaskVersion") + request.Init().WithApiInfo("wedata", APIVersion, "GetOpsWorkflow") return } -func NewGetTaskVersionResponse() (response *GetTaskVersionResponse) { - response = &GetTaskVersionResponse{ +func NewGetOpsWorkflowResponse() (response *GetOpsWorkflowResponse) { + response = &GetOpsWorkflowResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetTaskVersion -// 拉取任务版本列表 +// GetOpsWorkflow +// 根据工作流id,获取工作流调度详情。 // // 可能返回的错误码: // 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) +func (c *Client) GetOpsWorkflow(request *GetOpsWorkflowRequest) (response *GetOpsWorkflowResponse, err error) { + return c.GetOpsWorkflowWithContext(context.Background(), request) } -// GetTaskVersion -// 拉取任务版本列表 +// GetOpsWorkflow +// 根据工作流id,获取工作流调度详情。 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) GetTaskVersionWithContext(ctx context.Context, request *GetTaskVersionRequest) (response *GetTaskVersionResponse, err error) { +func (c *Client) GetOpsWorkflowWithContext(ctx context.Context, request *GetOpsWorkflowRequest) (response *GetOpsWorkflowResponse, err error) { if request == nil { - request = NewGetTaskVersionRequest() + request = NewGetOpsWorkflowRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTaskVersion") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetOpsWorkflow") if c.GetCredential() == nil { - return nil, errors.New("GetTaskVersion require credential") + return nil, errors.New("GetOpsWorkflow require credential") } request.SetContext(ctx) - response = NewGetTaskVersionResponse() + response = NewGetOpsWorkflowResponse() err = c.Send(request, response) return } -func NewGetWorkflowRequest() (request *GetWorkflowRequest) { - request = &GetWorkflowRequest{ +func NewGetProjectRequest() (request *GetProjectRequest) { + request = &GetProjectRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "GetWorkflow") + request.Init().WithApiInfo("wedata", APIVersion, "GetProject") return } -func NewGetWorkflowResponse() (response *GetWorkflowResponse) { - response = &GetWorkflowResponse{ +func NewGetProjectResponse() (response *GetProjectResponse) { + response = &GetProjectResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// GetWorkflow -// 获取工作流信息 +// GetProject +// 获取项目信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_WORKSPACENOTEXIST = "InvalidParameter.WorkspaceNotExist" +func (c *Client) GetProject(request *GetProjectRequest) (response *GetProjectResponse, err error) { + return c.GetProjectWithContext(context.Background(), request) +} + +// GetProject +// 获取项目信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_WORKSPACENOTEXIST = "InvalidParameter.WorkspaceNotExist" +func (c *Client) GetProjectWithContext(ctx context.Context, request *GetProjectRequest) (response *GetProjectResponse, err error) { + if request == nil { + request = NewGetProjectRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetProject") + + if c.GetCredential() == nil { + return nil, errors.New("GetProject require credential") + } + + request.SetContext(ctx) + + response = NewGetProjectResponse() + 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" -func (c *Client) GetWorkflow(request *GetWorkflowRequest) (response *GetWorkflowResponse, err error) { - return c.GetWorkflowWithContext(context.Background(), request) +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetResourceFile(request *GetResourceFileRequest) (response *GetResourceFileResponse, err error) { + return c.GetResourceFileWithContext(context.Background(), request) } -// GetWorkflow -// 获取工作流信息 +// GetResourceFile +// 获取资源文件详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" -func (c *Client) GetWorkflowWithContext(ctx context.Context, request *GetWorkflowRequest) (response *GetWorkflowResponse, err error) { +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) GetResourceFileWithContext(ctx context.Context, request *GetResourceFileRequest) (response *GetResourceFileResponse, err error) { if request == nil { - request = NewGetWorkflowRequest() + request = NewGetResourceFileRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetWorkflow") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetResourceFile") if c.GetCredential() == nil { - return nil, errors.New("GetWorkflow require credential") + return nil, errors.New("GetResourceFile require credential") } request.SetContext(ctx) - response = NewGetWorkflowResponse() + response = NewGetResourceFileResponse() err = c.Send(request, response) return } -func NewKillTaskInstancesAsyncRequest() (request *KillTaskInstancesAsyncRequest) { - request = &KillTaskInstancesAsyncRequest{ +func NewGetResourceGroupMetricsRequest() (request *GetResourceGroupMetricsRequest) { + request = &GetResourceGroupMetricsRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "KillTaskInstancesAsync") + request.Init().WithApiInfo("wedata", APIVersion, "GetResourceGroupMetrics") return } -func NewKillTaskInstancesAsyncResponse() (response *KillTaskInstancesAsyncResponse) { - response = &KillTaskInstancesAsyncResponse{ +func NewGetResourceGroupMetricsResponse() (response *GetResourceGroupMetricsResponse) { + response = &GetResourceGroupMetricsResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// KillTaskInstancesAsync -// 实例批量终止操作-异步操作 +// GetResourceGroupMetrics +// 该接口用于查看指定执行资源组的监控指标 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) KillTaskInstancesAsync(request *KillTaskInstancesAsyncRequest) (response *KillTaskInstancesAsyncResponse, err error) { - return c.KillTaskInstancesAsyncWithContext(context.Background(), request) +func (c *Client) GetResourceGroupMetrics(request *GetResourceGroupMetricsRequest) (response *GetResourceGroupMetricsResponse, err error) { + return c.GetResourceGroupMetricsWithContext(context.Background(), request) } -// KillTaskInstancesAsync -// 实例批量终止操作-异步操作 +// GetResourceGroupMetrics +// 该接口用于查看指定执行资源组的监控指标 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// MISSINGPARAMETER = "MissingParameter" -func (c *Client) KillTaskInstancesAsyncWithContext(ctx context.Context, request *KillTaskInstancesAsyncRequest) (response *KillTaskInstancesAsyncResponse, err error) { +func (c *Client) GetResourceGroupMetricsWithContext(ctx context.Context, request *GetResourceGroupMetricsRequest) (response *GetResourceGroupMetricsResponse, err error) { if request == nil { - request = NewKillTaskInstancesAsyncRequest() + request = NewGetResourceGroupMetricsRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "KillTaskInstancesAsync") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetResourceGroupMetrics") if c.GetCredential() == nil { - return nil, errors.New("KillTaskInstancesAsync require credential") + return nil, errors.New("GetResourceGroupMetrics require credential") } request.SetContext(ctx) - response = NewKillTaskInstancesAsyncResponse() + response = NewGetResourceGroupMetricsResponse() err = c.Send(request, response) return } -func NewListAlarmMessagesRequest() (request *ListAlarmMessagesRequest) { - request = &ListAlarmMessagesRequest{ +func NewGetSQLFolderRequest() (request *GetSQLFolderRequest) { + request = &GetSQLFolderRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListAlarmMessages") + request.Init().WithApiInfo("wedata", APIVersion, "GetSQLFolder") return } -func NewListAlarmMessagesResponse() (response *ListAlarmMessagesResponse) { - response = &ListAlarmMessagesResponse{ +func NewGetSQLFolderResponse() (response *GetSQLFolderResponse) { + response = &GetSQLFolderResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ListAlarmMessages -// 获取告警信息列表 +// GetSQLFolder +// 获取sql文件夹详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListAlarmMessages(request *ListAlarmMessagesRequest) (response *ListAlarmMessagesResponse, err error) { - return c.ListAlarmMessagesWithContext(context.Background(), request) +func (c *Client) GetSQLFolder(request *GetSQLFolderRequest) (response *GetSQLFolderResponse, err error) { + return c.GetSQLFolderWithContext(context.Background(), request) } -// ListAlarmMessages -// 获取告警信息列表 +// GetSQLFolder +// 获取sql文件夹详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListAlarmMessagesWithContext(ctx context.Context, request *ListAlarmMessagesRequest) (response *ListAlarmMessagesResponse, err error) { +func (c *Client) GetSQLFolderWithContext(ctx context.Context, request *GetSQLFolderRequest) (response *GetSQLFolderResponse, err error) { if request == nil { - request = NewListAlarmMessagesRequest() + request = NewGetSQLFolderRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListAlarmMessages") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetSQLFolder") if c.GetCredential() == nil { - return nil, errors.New("ListAlarmMessages require credential") + return nil, errors.New("GetSQLFolder require credential") } request.SetContext(ctx) - response = NewListAlarmMessagesResponse() + response = NewGetSQLFolderResponse() err = c.Send(request, response) return } -func NewListCodeFolderContentsRequest() (request *ListCodeFolderContentsRequest) { - request = &ListCodeFolderContentsRequest{ +func NewGetSQLScriptRequest() (request *GetSQLScriptRequest) { + request = &GetSQLScriptRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListCodeFolderContents") + request.Init().WithApiInfo("wedata", APIVersion, "GetSQLScript") return } -func NewListCodeFolderContentsResponse() (response *ListCodeFolderContentsResponse) { - response = &ListCodeFolderContentsResponse{ +func NewGetSQLScriptResponse() (response *GetSQLScriptResponse) { + response = &GetSQLScriptResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ListCodeFolderContents -// 获取文件夹内容 +// GetSQLScript +// 查询脚本详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListCodeFolderContents(request *ListCodeFolderContentsRequest) (response *ListCodeFolderContentsResponse, err error) { - return c.ListCodeFolderContentsWithContext(context.Background(), request) +func (c *Client) GetSQLScript(request *GetSQLScriptRequest) (response *GetSQLScriptResponse, err error) { + return c.GetSQLScriptWithContext(context.Background(), request) } -// ListCodeFolderContents -// 获取文件夹内容 +// GetSQLScript +// 查询脚本详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListCodeFolderContentsWithContext(ctx context.Context, request *ListCodeFolderContentsRequest) (response *ListCodeFolderContentsResponse, err error) { +func (c *Client) GetSQLScriptWithContext(ctx context.Context, request *GetSQLScriptRequest) (response *GetSQLScriptResponse, err error) { if request == nil { - request = NewListCodeFolderContentsRequest() + request = NewGetSQLScriptRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListCodeFolderContents") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetSQLScript") if c.GetCredential() == nil { - return nil, errors.New("ListCodeFolderContents require credential") + return nil, errors.New("GetSQLScript require credential") } request.SetContext(ctx) - response = NewListCodeFolderContentsResponse() + response = NewGetSQLScriptResponse() err = c.Send(request, response) return } -func NewListDataBackfillInstancesRequest() (request *ListDataBackfillInstancesRequest) { - request = &ListDataBackfillInstancesRequest{ +func NewGetTableRequest() (request *GetTableRequest) { + request = &GetTableRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListDataBackfillInstances") + request.Init().WithApiInfo("wedata", APIVersion, "GetTable") return } -func NewListDataBackfillInstancesResponse() (response *ListDataBackfillInstancesResponse) { - response = &ListDataBackfillInstancesResponse{ +func NewGetTableResponse() (response *GetTableResponse) { + response = &GetTableResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ListDataBackfillInstances -// 获取单次补录的所有实例详情 +// GetTable +// 查询表详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListDataBackfillInstances(request *ListDataBackfillInstancesRequest) (response *ListDataBackfillInstancesResponse, err error) { - return c.ListDataBackfillInstancesWithContext(context.Background(), request) +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) GetTable(request *GetTableRequest) (response *GetTableResponse, err error) { + return c.GetTableWithContext(context.Background(), request) } -// ListDataBackfillInstances -// 获取单次补录的所有实例详情 +// GetTable +// 查询表详情 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListDataBackfillInstancesWithContext(ctx context.Context, request *ListDataBackfillInstancesRequest) (response *ListDataBackfillInstancesResponse, err error) { +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) GetTableWithContext(ctx context.Context, request *GetTableRequest) (response *GetTableResponse, err error) { if request == nil { - request = NewListDataBackfillInstancesRequest() + request = NewGetTableRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDataBackfillInstances") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTable") if c.GetCredential() == nil { - return nil, errors.New("ListDataBackfillInstances require credential") + return nil, errors.New("GetTable require credential") } request.SetContext(ctx) - response = NewListDataBackfillInstancesResponse() + response = NewGetTableResponse() err = c.Send(request, response) return } -func NewListDownstreamOpsTasksRequest() (request *ListDownstreamOpsTasksRequest) { - request = &ListDownstreamOpsTasksRequest{ +func NewGetTableColumnsRequest() (request *GetTableColumnsRequest) { + request = &GetTableColumnsRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListDownstreamOpsTasks") + request.Init().WithApiInfo("wedata", APIVersion, "GetTableColumns") return } -func NewListDownstreamOpsTasksResponse() (response *ListDownstreamOpsTasksResponse) { - response = &ListDownstreamOpsTasksResponse{ +func NewGetTableColumnsResponse() (response *GetTableColumnsResponse) { + response = &GetTableColumnsResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ListDownstreamOpsTasks -// 获取任务直接下游详情 +// GetTableColumns +// 查询表所有字段列表 // // 可能返回的错误码: // 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) +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) GetTableColumns(request *GetTableColumnsRequest) (response *GetTableColumnsResponse, err error) { + return c.GetTableColumnsWithContext(context.Background(), request) } -// ListDownstreamOpsTasks -// 获取任务直接下游详情 +// GetTableColumns +// 查询表所有字段列表 // // 可能返回的错误码: // 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) { +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) GetTableColumnsWithContext(ctx context.Context, request *GetTableColumnsRequest) (response *GetTableColumnsResponse, err error) { if request == nil { - request = NewListDownstreamOpsTasksRequest() + request = NewGetTableColumnsRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDownstreamOpsTasks") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GetTableColumns") if c.GetCredential() == nil { - return nil, errors.New("ListDownstreamOpsTasks require credential") + return nil, errors.New("GetTableColumns require credential") } request.SetContext(ctx) - response = NewListDownstreamOpsTasksResponse() + response = NewGetTableColumnsResponse() err = c.Send(request, response) return } -func NewListDownstreamTaskInstancesRequest() (request *ListDownstreamTaskInstancesRequest) { - request = &ListDownstreamTaskInstancesRequest{ +func NewGetTaskRequest() (request *GetTaskRequest) { + request = &GetTaskRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListDownstreamTaskInstances") + request.Init().WithApiInfo("wedata", APIVersion, "GetTask") return } -func NewListDownstreamTaskInstancesResponse() (response *ListDownstreamTaskInstancesResponse) { - response = &ListDownstreamTaskInstancesResponse{ +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 NewGrantMemberProjectRoleRequest() (request *GrantMemberProjectRoleRequest) { + request = &GrantMemberProjectRoleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "GrantMemberProjectRole") + + + return +} + +func NewGrantMemberProjectRoleResponse() (response *GrantMemberProjectRoleResponse) { + response = &GrantMemberProjectRoleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// GrantMemberProjectRole +// 修改项目用户角色 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GrantMemberProjectRole(request *GrantMemberProjectRoleRequest) (response *GrantMemberProjectRoleResponse, err error) { + return c.GrantMemberProjectRoleWithContext(context.Background(), request) +} + +// GrantMemberProjectRole +// 修改项目用户角色 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) GrantMemberProjectRoleWithContext(ctx context.Context, request *GrantMemberProjectRoleRequest) (response *GrantMemberProjectRoleResponse, err error) { + if request == nil { + request = NewGrantMemberProjectRoleRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "GrantMemberProjectRole") + + if c.GetCredential() == nil { + return nil, errors.New("GrantMemberProjectRole require credential") + } + + request.SetContext(ctx) + + response = NewGrantMemberProjectRoleResponse() + 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 NewListCatalogRequest() (request *ListCatalogRequest) { + request = &ListCatalogRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListCatalog") + + + return +} + +func NewListCatalogResponse() (response *ListCatalogResponse) { + response = &ListCatalogResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListCatalog +// 获取资产目录信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListCatalog(request *ListCatalogRequest) (response *ListCatalogResponse, err error) { + return c.ListCatalogWithContext(context.Background(), request) +} + +// ListCatalog +// 获取资产目录信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListCatalogWithContext(ctx context.Context, request *ListCatalogRequest) (response *ListCatalogResponse, err error) { + if request == nil { + request = NewListCatalogRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListCatalog") + + if c.GetCredential() == nil { + return nil, errors.New("ListCatalog require credential") + } + + request.SetContext(ctx) + + response = NewListCatalogResponse() + 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 NewListColumnLineageRequest() (request *ListColumnLineageRequest) { + request = &ListColumnLineageRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListColumnLineage") + + + return +} + +func NewListColumnLineageResponse() (response *ListColumnLineageResponse) { + response = &ListColumnLineageResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListColumnLineage +// 获取表字段血缘信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListColumnLineage(request *ListColumnLineageRequest) (response *ListColumnLineageResponse, err error) { + return c.ListColumnLineageWithContext(context.Background(), request) +} + +// ListColumnLineage +// 获取表字段血缘信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListColumnLineageWithContext(ctx context.Context, request *ListColumnLineageRequest) (response *ListColumnLineageResponse, err error) { + if request == nil { + request = NewListColumnLineageRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListColumnLineage") + + if c.GetCredential() == nil { + return nil, errors.New("ListColumnLineage require credential") + } + + request.SetContext(ctx) + + response = NewListColumnLineageResponse() + 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 NewListDataSourcesRequest() (request *ListDataSourcesRequest) { + request = &ListDataSourcesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListDataSources") + + + return +} + +func NewListDataSourcesResponse() (response *ListDataSourcesResponse) { + response = &ListDataSourcesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListDataSources +// 该接口用于查询指定项目中的数据源列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) ListDataSources(request *ListDataSourcesRequest) (response *ListDataSourcesResponse, err error) { + return c.ListDataSourcesWithContext(context.Background(), request) +} + +// ListDataSources +// 该接口用于查询指定项目中的数据源列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) ListDataSourcesWithContext(ctx context.Context, request *ListDataSourcesRequest) (response *ListDataSourcesResponse, err error) { + if request == nil { + request = NewListDataSourcesRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDataSources") + + if c.GetCredential() == nil { + return nil, errors.New("ListDataSources require credential") + } + + request.SetContext(ctx) + + response = NewListDataSourcesResponse() + err = c.Send(request, response) + return +} + +func NewListDatabaseRequest() (request *ListDatabaseRequest) { + request = &ListDatabaseRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListDatabase") + + + return +} + +func NewListDatabaseResponse() (response *ListDatabaseResponse) { + response = &ListDatabaseResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListDatabase +// 获取资产数据库信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) ListDatabase(request *ListDatabaseRequest) (response *ListDatabaseResponse, err error) { + return c.ListDatabaseWithContext(context.Background(), request) +} + +// ListDatabase +// 获取资产数据库信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) ListDatabaseWithContext(ctx context.Context, request *ListDatabaseRequest) (response *ListDatabaseResponse, err error) { + if request == nil { + request = NewListDatabaseRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDatabase") + + if c.GetCredential() == nil { + return nil, errors.New("ListDatabase require credential") + } + + request.SetContext(ctx) + + response = NewListDatabaseResponse() + 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 NewListLineageRequest() (request *ListLineageRequest) { + request = &ListLineageRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListLineage") + + + return +} + +func NewListLineageResponse() (response *ListLineageResponse) { + response = &ListLineageResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListLineage +// 获取资产血缘信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListLineage(request *ListLineageRequest) (response *ListLineageResponse, err error) { + return c.ListLineageWithContext(context.Background(), request) +} + +// ListLineage +// 获取资产血缘信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CLIENTIPNOTAUTHORIZED = "InvalidParameter.ClientIpNotAuthorized" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +func (c *Client) ListLineageWithContext(ctx context.Context, request *ListLineageRequest) (response *ListLineageResponse, err error) { + if request == nil { + request = NewListLineageRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListLineage") + + if c.GetCredential() == nil { + return nil, errors.New("ListLineage require credential") + } + + request.SetContext(ctx) + + response = NewListLineageResponse() + 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 } -// ListDownstreamTaskInstances -// 获取实例直接上游 +// ListOpsWorkflows +// 根据项目ID获取项目下工作流 // // 可能返回的错误码: // 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) +func (c *Client) ListOpsWorkflows(request *ListOpsWorkflowsRequest) (response *ListOpsWorkflowsResponse, err error) { + return c.ListOpsWorkflowsWithContext(context.Background(), request) } -// ListDownstreamTaskInstances -// 获取实例直接上游 +// ListOpsWorkflows +// 根据项目ID获取项目下工作流 // // 可能返回的错误码: // 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) { +func (c *Client) ListOpsWorkflowsWithContext(ctx context.Context, request *ListOpsWorkflowsRequest) (response *ListOpsWorkflowsResponse, err error) { if request == nil { - request = NewListDownstreamTaskInstancesRequest() + request = NewListOpsWorkflowsRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDownstreamTaskInstances") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsWorkflows") if c.GetCredential() == nil { - return nil, errors.New("ListDownstreamTaskInstances require credential") + return nil, errors.New("ListOpsWorkflows require credential") } request.SetContext(ctx) - response = NewListDownstreamTaskInstancesResponse() + response = NewListOpsWorkflowsResponse() err = c.Send(request, response) return } -func NewListDownstreamTasksRequest() (request *ListDownstreamTasksRequest) { - request = &ListDownstreamTasksRequest{ +func NewListProcessLineageRequest() (request *ListProcessLineageRequest) { + request = &ListProcessLineageRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListDownstreamTasks") + request.Init().WithApiInfo("wedata", APIVersion, "ListProcessLineage") return } -func NewListDownstreamTasksResponse() (response *ListDownstreamTasksResponse) { - response = &ListDownstreamTasksResponse{ +func NewListProcessLineageResponse() (response *ListProcessLineageResponse) { + response = &ListProcessLineageResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ListDownstreamTasks -// 获取任务直接下游详情 +// ListProcessLineage +// 获取资产血缘信息 // // 可能返回的错误码: // 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) +func (c *Client) ListProcessLineage(request *ListProcessLineageRequest) (response *ListProcessLineageResponse, err error) { + return c.ListProcessLineageWithContext(context.Background(), request) } -// ListDownstreamTasks -// 获取任务直接下游详情 +// ListProcessLineage +// 获取资产血缘信息 // // 可能返回的错误码: // 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) { +func (c *Client) ListProcessLineageWithContext(ctx context.Context, request *ListProcessLineageRequest) (response *ListProcessLineageResponse, err error) { if request == nil { - request = NewListDownstreamTasksRequest() + request = NewListProcessLineageRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListDownstreamTasks") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListProcessLineage") if c.GetCredential() == nil { - return nil, errors.New("ListDownstreamTasks require credential") + return nil, errors.New("ListProcessLineage require credential") } request.SetContext(ctx) - response = NewListDownstreamTasksResponse() + response = NewListProcessLineageResponse() err = c.Send(request, response) return } -func NewListOpsAlarmRulesRequest() (request *ListOpsAlarmRulesRequest) { - request = &ListOpsAlarmRulesRequest{ +func NewListProjectMembersRequest() (request *ListProjectMembersRequest) { + request = &ListProjectMembersRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListOpsAlarmRules") + request.Init().WithApiInfo("wedata", APIVersion, "ListProjectMembers") return } -func NewListOpsAlarmRulesResponse() (response *ListOpsAlarmRulesResponse) { - response = &ListOpsAlarmRulesResponse{ +func NewListProjectMembersResponse() (response *ListProjectMembersResponse) { + response = &ListProjectMembersResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ListOpsAlarmRules -// 查询告警规则列表 +// ListProjectMembers +// 获取项目下的用户,分页返回 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListOpsAlarmRules(request *ListOpsAlarmRulesRequest) (response *ListOpsAlarmRulesResponse, err error) { - return c.ListOpsAlarmRulesWithContext(context.Background(), request) +func (c *Client) ListProjectMembers(request *ListProjectMembersRequest) (response *ListProjectMembersResponse, err error) { + return c.ListProjectMembersWithContext(context.Background(), request) } -// ListOpsAlarmRules -// 查询告警规则列表 +// ListProjectMembers +// 获取项目下的用户,分页返回 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListOpsAlarmRulesWithContext(ctx context.Context, request *ListOpsAlarmRulesRequest) (response *ListOpsAlarmRulesResponse, err error) { +func (c *Client) ListProjectMembersWithContext(ctx context.Context, request *ListProjectMembersRequest) (response *ListProjectMembersResponse, err error) { if request == nil { - request = NewListOpsAlarmRulesRequest() + request = NewListProjectMembersRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsAlarmRules") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListProjectMembers") if c.GetCredential() == nil { - return nil, errors.New("ListOpsAlarmRules require credential") + return nil, errors.New("ListProjectMembers require credential") } request.SetContext(ctx) - response = NewListOpsAlarmRulesResponse() + response = NewListProjectMembersResponse() err = c.Send(request, response) return } -func NewListOpsTasksRequest() (request *ListOpsTasksRequest) { - request = &ListOpsTasksRequest{ +func NewListProjectRolesRequest() (request *ListProjectRolesRequest) { + request = &ListProjectRolesRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListOpsTasks") + request.Init().WithApiInfo("wedata", APIVersion, "ListProjectRoles") return } -func NewListOpsTasksResponse() (response *ListOpsTasksResponse) { - response = &ListOpsTasksResponse{ +func NewListProjectRolesResponse() (response *ListProjectRolesResponse) { + response = &ListProjectRolesResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ListOpsTasks -// 根据项目id获取任务列表 +// ListProjectRoles +// 获取角色列表信息 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListOpsTasks(request *ListOpsTasksRequest) (response *ListOpsTasksResponse, err error) { - return c.ListOpsTasksWithContext(context.Background(), request) +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) ListProjectRoles(request *ListProjectRolesRequest) (response *ListProjectRolesResponse, err error) { + return c.ListProjectRolesWithContext(context.Background(), request) } -// ListOpsTasks -// 根据项目id获取任务列表 +// ListProjectRoles +// 获取角色列表信息 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -func (c *Client) ListOpsTasksWithContext(ctx context.Context, request *ListOpsTasksRequest) (response *ListOpsTasksResponse, err error) { +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) ListProjectRolesWithContext(ctx context.Context, request *ListProjectRolesRequest) (response *ListProjectRolesResponse, err error) { if request == nil { - request = NewListOpsTasksRequest() + request = NewListProjectRolesRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsTasks") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListProjectRoles") if c.GetCredential() == nil { - return nil, errors.New("ListOpsTasks require credential") + return nil, errors.New("ListProjectRoles require credential") } request.SetContext(ctx) - response = NewListOpsTasksResponse() + response = NewListProjectRolesResponse() err = c.Send(request, response) return } -func NewListOpsWorkflowsRequest() (request *ListOpsWorkflowsRequest) { - request = &ListOpsWorkflowsRequest{ +func NewListProjectsRequest() (request *ListProjectsRequest) { + request = &ListProjectsRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListOpsWorkflows") + request.Init().WithApiInfo("wedata", APIVersion, "ListProjects") return } -func NewListOpsWorkflowsResponse() (response *ListOpsWorkflowsResponse) { - response = &ListOpsWorkflowsResponse{ +func NewListProjectsResponse() (response *ListProjectsResponse) { + response = &ListProjectsResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ListOpsWorkflows -// 根据项目ID获取项目下工作流 +// ListProjects +// 租户全局范围的项目列表,与用户查看范围无关. // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -func (c *Client) ListOpsWorkflows(request *ListOpsWorkflowsRequest) (response *ListOpsWorkflowsResponse, err error) { - return c.ListOpsWorkflowsWithContext(context.Background(), request) +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) ListProjects(request *ListProjectsRequest) (response *ListProjectsResponse, err error) { + return c.ListProjectsWithContext(context.Background(), request) } -// ListOpsWorkflows -// 根据项目ID获取项目下工作流 +// ListProjects +// 租户全局范围的项目列表,与用户查看范围无关. // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" -// INVALIDPARAMETER = "InvalidParameter" -func (c *Client) ListOpsWorkflowsWithContext(ctx context.Context, request *ListOpsWorkflowsRequest) (response *ListOpsWorkflowsResponse, err error) { +// OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" +func (c *Client) ListProjectsWithContext(ctx context.Context, request *ListProjectsRequest) (response *ListProjectsResponse, err error) { if request == nil { - request = NewListOpsWorkflowsRequest() + request = NewListProjectsRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListOpsWorkflows") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListProjects") if c.GetCredential() == nil { - return nil, errors.New("ListOpsWorkflows require credential") + return nil, errors.New("ListProjects require credential") } request.SetContext(ctx) - response = NewListOpsWorkflowsResponse() + response = NewListProjectsResponse() err = c.Send(request, response) return } @@ -2649,6 +4311,56 @@ func (c *Client) ListResourceFoldersWithContext(ctx context.Context, request *Li return } +func NewListResourceGroupsRequest() (request *ListResourceGroupsRequest) { + request = &ListResourceGroupsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListResourceGroups") + + + return +} + +func NewListResourceGroupsResponse() (response *ListResourceGroupsResponse) { + response = &ListResourceGroupsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListResourceGroups +// 该接口用于查询执行资源组列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListResourceGroups(request *ListResourceGroupsRequest) (response *ListResourceGroupsResponse, err error) { + return c.ListResourceGroupsWithContext(context.Background(), request) +} + +// ListResourceGroups +// 该接口用于查询执行资源组列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListResourceGroupsWithContext(ctx context.Context, request *ListResourceGroupsRequest) (response *ListResourceGroupsResponse, err error) { + if request == nil { + request = NewListResourceGroupsRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListResourceGroups") + + if c.GetCredential() == nil { + return nil, errors.New("ListResourceGroups require credential") + } + + request.SetContext(ctx) + + response = NewListResourceGroupsResponse() + err = c.Send(request, response) + return +} + func NewListSQLFolderContentsRequest() (request *ListSQLFolderContentsRequest) { request = &ListSQLFolderContentsRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -2749,6 +4461,106 @@ func (c *Client) ListSQLScriptRunsWithContext(ctx context.Context, request *List return } +func NewListSchemaRequest() (request *ListSchemaRequest) { + request = &ListSchemaRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListSchema") + + + return +} + +func NewListSchemaResponse() (response *ListSchemaResponse) { + response = &ListSchemaResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListSchema +// 获取资产数据库Schema信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListSchema(request *ListSchemaRequest) (response *ListSchemaResponse, err error) { + return c.ListSchemaWithContext(context.Background(), request) +} + +// ListSchema +// 获取资产数据库Schema信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListSchemaWithContext(ctx context.Context, request *ListSchemaRequest) (response *ListSchemaResponse, err error) { + if request == nil { + request = NewListSchemaRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListSchema") + + if c.GetCredential() == nil { + return nil, errors.New("ListSchema require credential") + } + + request.SetContext(ctx) + + response = NewListSchemaResponse() + err = c.Send(request, response) + return +} + +func NewListTableRequest() (request *ListTableRequest) { + request = &ListTableRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "ListTable") + + + return +} + +func NewListTableResponse() (response *ListTableResponse) { + response = &ListTableResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// ListTable +// 获取资产表信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListTable(request *ListTableRequest) (response *ListTableResponse, err error) { + return c.ListTableWithContext(context.Background(), request) +} + +// ListTable +// 获取资产表信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) ListTableWithContext(ctx context.Context, request *ListTableRequest) (response *ListTableResponse, err error) { + if request == nil { + request = NewListTableRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTable") + + if c.GetCredential() == nil { + return nil, errors.New("ListTable require credential") + } + + request.SetContext(ctx) + + response = NewListTableResponse() + err = c.Send(request, response) + return +} + func NewListTaskInstanceExecutionsRequest() (request *ListTaskInstanceExecutionsRequest) { request = &ListTaskInstanceExecutionsRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -2888,87 +4700,143 @@ func NewListTaskVersionsResponse() (response *ListTaskVersionsResponse) { // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTaskVersions(request *ListTaskVersionsRequest) (response *ListTaskVersionsResponse, err error) { - return c.ListTaskVersionsWithContext(context.Background(), request) +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) } -// ListTaskVersions -// 任务保存版本列表 +// ListTasks +// 查询任务分页信息 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTaskVersionsWithContext(ctx context.Context, request *ListTaskVersionsRequest) (response *ListTaskVersionsResponse, err error) { +func (c *Client) ListTasksWithContext(ctx context.Context, request *ListTasksRequest) (response *ListTasksResponse, err error) { if request == nil { - request = NewListTaskVersionsRequest() + request = NewListTasksRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTaskVersions") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTasks") if c.GetCredential() == nil { - return nil, errors.New("ListTaskVersions require credential") + return nil, errors.New("ListTasks require credential") } request.SetContext(ctx) - response = NewListTaskVersionsResponse() + response = NewListTasksResponse() err = c.Send(request, response) return } -func NewListTasksRequest() (request *ListTasksRequest) { - request = &ListTasksRequest{ +func NewListTenantRolesRequest() (request *ListTenantRolesRequest) { + request = &ListTenantRolesRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("wedata", APIVersion, "ListTasks") + request.Init().WithApiInfo("wedata", APIVersion, "ListTenantRoles") return } -func NewListTasksResponse() (response *ListTasksResponse) { - response = &ListTasksResponse{ +func NewListTenantRolesResponse() (response *ListTenantRolesResponse) { + response = &ListTenantRolesResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ListTasks -// 查询任务分页信息 +// ListTenantRoles +// 获取所有主账号角色列表 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTasks(request *ListTasksRequest) (response *ListTasksResponse, err error) { - return c.ListTasksWithContext(context.Background(), request) +func (c *Client) ListTenantRoles(request *ListTenantRolesRequest) (response *ListTenantRolesResponse, err error) { + return c.ListTenantRolesWithContext(context.Background(), request) } -// ListTasks -// 查询任务分页信息 +// ListTenantRoles +// 获取所有主账号角色列表 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" -func (c *Client) ListTasksWithContext(ctx context.Context, request *ListTasksRequest) (response *ListTasksResponse, err error) { +func (c *Client) ListTenantRolesWithContext(ctx context.Context, request *ListTenantRolesRequest) (response *ListTenantRolesResponse, err error) { if request == nil { - request = NewListTasksRequest() + request = NewListTenantRolesRequest() } - c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTasks") + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "ListTenantRoles") if c.GetCredential() == nil { - return nil, errors.New("ListTasks require credential") + return nil, errors.New("ListTenantRoles require credential") } request.SetContext(ctx) - response = NewListTasksResponse() + response = NewListTenantRolesResponse() err = c.Send(request, response) return } @@ -3323,6 +5191,110 @@ func (c *Client) PauseOpsTasksAsyncWithContext(ctx context.Context, request *Pau return } +func NewRegisterLineageRequest() (request *RegisterLineageRequest) { + request = &RegisterLineageRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "RegisterLineage") + + + return +} + +func NewRegisterLineageResponse() (response *RegisterLineageResponse) { + response = &RegisterLineageResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// RegisterLineage +// RegisterLineage +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) RegisterLineage(request *RegisterLineageRequest) (response *RegisterLineageResponse, err error) { + return c.RegisterLineageWithContext(context.Background(), request) +} + +// RegisterLineage +// RegisterLineage +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) RegisterLineageWithContext(ctx context.Context, request *RegisterLineageRequest) (response *RegisterLineageResponse, err error) { + if request == nil { + request = NewRegisterLineageRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "RegisterLineage") + + if c.GetCredential() == nil { + return nil, errors.New("RegisterLineage require credential") + } + + request.SetContext(ctx) + + response = NewRegisterLineageResponse() + err = c.Send(request, response) + return +} + +func NewRemoveMemberProjectRoleRequest() (request *RemoveMemberProjectRoleRequest) { + request = &RemoveMemberProjectRoleRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "RemoveMemberProjectRole") + + + return +} + +func NewRemoveMemberProjectRoleResponse() (response *RemoveMemberProjectRoleResponse) { + response = &RemoveMemberProjectRoleResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// RemoveMemberProjectRole +// 删除项目用户角色 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) RemoveMemberProjectRole(request *RemoveMemberProjectRoleRequest) (response *RemoveMemberProjectRoleResponse, err error) { + return c.RemoveMemberProjectRoleWithContext(context.Background(), request) +} + +// RemoveMemberProjectRole +// 删除项目用户角色 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) RemoveMemberProjectRoleWithContext(ctx context.Context, request *RemoveMemberProjectRoleRequest) (response *RemoveMemberProjectRoleResponse, err error) { + if request == nil { + request = NewRemoveMemberProjectRoleRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "RemoveMemberProjectRole") + + if c.GetCredential() == nil { + return nil, errors.New("RemoveMemberProjectRole require credential") + } + + request.SetContext(ctx) + + response = NewRemoveMemberProjectRoleResponse() + err = c.Send(request, response) + return +} + func NewRerunTaskInstancesAsyncRequest() (request *RerunTaskInstancesAsyncRequest) { request = &RerunTaskInstancesAsyncRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -3473,6 +5445,56 @@ func (c *Client) SetSuccessTaskInstancesAsyncWithContext(ctx context.Context, re return } +func NewStartOpsTasksRequest() (request *StartOpsTasksRequest) { + request = &StartOpsTasksRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "StartOpsTasks") + + + return +} + +func NewStartOpsTasksResponse() (response *StartOpsTasksResponse) { + response = &StartOpsTasksResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// StartOpsTasks +// 异步批量启动任务 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) StartOpsTasks(request *StartOpsTasksRequest) (response *StartOpsTasksResponse, err error) { + return c.StartOpsTasksWithContext(context.Background(), request) +} + +// StartOpsTasks +// 异步批量启动任务 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) StartOpsTasksWithContext(ctx context.Context, request *StartOpsTasksRequest) (response *StartOpsTasksResponse, err error) { + if request == nil { + request = NewStartOpsTasksRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "StartOpsTasks") + + if c.GetCredential() == nil { + return nil, errors.New("StartOpsTasks require credential") + } + + request.SetContext(ctx) + + response = NewStartOpsTasksResponse() + err = c.Send(request, response) + return +} + func NewStopOpsTasksAsyncRequest() (request *StopOpsTasksAsyncRequest) { request = &StopOpsTasksAsyncRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -3735,6 +5757,56 @@ func (c *Client) UpdateCodeFolderWithContext(ctx context.Context, request *Updat return } +func NewUpdateDataSourceRequest() (request *UpdateDataSourceRequest) { + request = &UpdateDataSourceRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateDataSource") + + + return +} + +func NewUpdateDataSourceResponse() (response *UpdateDataSourceResponse) { + response = &UpdateDataSourceResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateDataSource +// 该接口用于更新数据源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateDataSource(request *UpdateDataSourceRequest) (response *UpdateDataSourceResponse, err error) { + return c.UpdateDataSourceWithContext(context.Background(), request) +} + +// UpdateDataSource +// 该接口用于更新数据源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +func (c *Client) UpdateDataSourceWithContext(ctx context.Context, request *UpdateDataSourceRequest) (response *UpdateDataSourceResponse, err error) { + if request == nil { + request = NewUpdateDataSourceRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateDataSource") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateDataSource require credential") + } + + request.SetContext(ctx) + + response = NewUpdateDataSourceResponse() + err = c.Send(request, response) + return +} + func NewUpdateOpsAlarmRuleRequest() (request *UpdateOpsAlarmRuleRequest) { request = &UpdateOpsAlarmRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -3847,6 +5919,60 @@ func (c *Client) UpdateOpsTasksOwnerWithContext(ctx context.Context, request *Up return } +func NewUpdateProjectRequest() (request *UpdateProjectRequest) { + request = &UpdateProjectRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateProject") + + + return +} + +func NewUpdateProjectResponse() (response *UpdateProjectResponse) { + response = &UpdateProjectResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateProject +// 修改项目基础信息。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_WORKSPACENAMEDUPLICATION = "InvalidParameter.WorkspaceNameDuplication" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +func (c *Client) UpdateProject(request *UpdateProjectRequest) (response *UpdateProjectResponse, err error) { + return c.UpdateProjectWithContext(context.Background(), request) +} + +// UpdateProject +// 修改项目基础信息。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER_WORKSPACENAMEDUPLICATION = "InvalidParameter.WorkspaceNameDuplication" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +func (c *Client) UpdateProjectWithContext(ctx context.Context, request *UpdateProjectRequest) (response *UpdateProjectResponse, err error) { + if request == nil { + request = NewUpdateProjectRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateProject") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateProject require credential") + } + + request.SetContext(ctx) + + response = NewUpdateProjectResponse() + err = c.Send(request, response) + return +} + func NewUpdateResourceFileRequest() (request *UpdateResourceFileRequest) { request = &UpdateResourceFileRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -3925,7 +6051,7 @@ func NewUpdateResourceFolderResponse() (response *UpdateResourceFolderResponse) } // UpdateResourceFolder -// 创建资源文件文件夹 +// 更新资源文件夹 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" @@ -3938,7 +6064,7 @@ func (c *Client) UpdateResourceFolder(request *UpdateResourceFolderRequest) (res } // UpdateResourceFolder -// 创建资源文件文件夹 +// 更新资源文件夹 // // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" @@ -3963,6 +6089,64 @@ func (c *Client) UpdateResourceFolderWithContext(ctx context.Context, request *U return } +func NewUpdateResourceGroupRequest() (request *UpdateResourceGroupRequest) { + request = &UpdateResourceGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("wedata", APIVersion, "UpdateResourceGroup") + + + return +} + +func NewUpdateResourceGroupResponse() (response *UpdateResourceGroupResponse) { + response = &UpdateResourceGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return + +} + +// UpdateResourceGroup +// 该接口用于变配/续费资源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateResourceGroup(request *UpdateResourceGroupRequest) (response *UpdateResourceGroupResponse, err error) { + return c.UpdateResourceGroupWithContext(context.Background(), request) +} + +// UpdateResourceGroup +// 该接口用于变配/续费资源 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UpdateResourceGroupWithContext(ctx context.Context, request *UpdateResourceGroupRequest) (response *UpdateResourceGroupResponse, err error) { + if request == nil { + request = NewUpdateResourceGroupRequest() + } + c.InitBaseRequest(&request.BaseRequest, "wedata", APIVersion, "UpdateResourceGroup") + + if c.GetCredential() == nil { + return nil, errors.New("UpdateResourceGroup require credential") + } + + request.SetContext(ctx) + + response = NewUpdateResourceGroupResponse() + err = c.Send(request, response) + return +} + func NewUpdateSQLFolderRequest() (request *UpdateSQLFolderRequest) { request = &UpdateSQLFolderRequest{ BaseRequest: &tchttp.BaseRequest{}, 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 index 5e38c12c5e..a2b143afc0 100644 --- 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 @@ -23,6 +23,9 @@ const ( // 操作失败。 FAILEDOPERATION = "FailedOperation" + // 当前操作的资源状态不合法。 + FAILEDOPERATION_EXECUTORCLUSTERSTATUSERROR = "FailedOperation.ExecutorClusterStatusError" + // 内部错误。 INTERNALERROR = "InternalError" @@ -35,6 +38,15 @@ const ( // Missing Servlet Request Parameter INVALIDPARAMETER_MISSINGREQUESTPARAMETER = "InvalidParameter.MissingRequestParameter" + // 已超过系统安全配额。 + INVALIDPARAMETER_QUOTAEXCEEDERROR = "InvalidParameter.QuotaExceedError" + + // 项目名重复。 + INVALIDPARAMETER_WORKSPACENAMEDUPLICATION = "InvalidParameter.WorkspaceNameDuplication" + + // 工作空间不存在。 + INVALIDPARAMETER_WORKSPACENOTEXIST = "InvalidParameter.WorkspaceNotExist" + // 参数取值错误。 INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -53,9 +65,15 @@ const ( // 操作被拒绝。 OPERATIONDENIED = "OperationDenied" + // 用户不在白名单。 + OPERATIONDENIED_USERNOTINWHITELISTERROR = "OperationDenied.UserNotInWhitelistError" + // 资源被占用。 RESOURCEINUSE = "ResourceInUse" // 资源不存在。 RESOURCENOTFOUND = "ResourceNotFound" + + // 未授权操作。 + UNAUTHORIZEDOPERATION = "UnauthorizedOperation" ) 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 index f85e92b853..2b6e51c34d 100644 --- 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 @@ -20,6 +20,67 @@ import ( "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json" ) +// Predefined struct for user +type AddCalcEnginesToProjectRequestParams struct { + // 修改的项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // DLC集群信息 + DLCInfo []*DLCClusterInfo `json:"DLCInfo,omitnil,omitempty" name:"DLCInfo"` +} + +type AddCalcEnginesToProjectRequest struct { + *tchttp.BaseRequest + + // 修改的项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // DLC集群信息 + DLCInfo []*DLCClusterInfo `json:"DLCInfo,omitnil,omitempty" name:"DLCInfo"` +} + +func (r *AddCalcEnginesToProjectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *AddCalcEnginesToProjectRequest) 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, "DLCInfo") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AddCalcEnginesToProjectRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type AddCalcEnginesToProjectResponseParams struct { + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type AddCalcEnginesToProjectResponse struct { + *tchttp.BaseResponse + Response *AddCalcEnginesToProjectResponseParams `json:"Response"` +} + +func (r *AddCalcEnginesToProjectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *AddCalcEnginesToProjectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + type AlarmGroup struct { // 告警升级人ID列表 // 若告警接收人或上级升级人未在告警间隔时间内确认告警,则会发送告警给下一级升级人。 @@ -183,6 +244,71 @@ type AlarmWayWebHook struct { WebHooks []*string `json:"WebHooks,omitnil,omitempty" name:"WebHooks"` } +// Predefined struct for user +type AssociateResourceGroupToProjectRequestParams struct { + // 资源组id + ResourceGroupId *string `json:"ResourceGroupId,omitnil,omitempty" name:"ResourceGroupId"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +type AssociateResourceGroupToProjectRequest struct { + *tchttp.BaseRequest + + // 资源组id + ResourceGroupId *string `json:"ResourceGroupId,omitnil,omitempty" name:"ResourceGroupId"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +func (r *AssociateResourceGroupToProjectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *AssociateResourceGroupToProjectRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ResourceGroupId") + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AssociateResourceGroupToProjectRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type AssociateResourceGroupToProjectResponseParams struct { + // 输出 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *ResourceStatus `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type AssociateResourceGroupToProjectResponse struct { + *tchttp.BaseResponse + Response *AssociateResourceGroupToProjectResponseParams `json:"Response"` +} + +func (r *AssociateResourceGroupToProjectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *AssociateResourceGroupToProjectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + type BackfillInstance struct { // 任务名称 TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` @@ -226,6 +352,49 @@ type BackfillInstanceCollection struct { Items []*BackfillInstance `json:"Items,omitnil,omitempty" name:"Items"` } +type BindProject struct { + // 项目id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 项目名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` + + // 项目展示名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectDisplayName *string `json:"ProjectDisplayName,omitnil,omitempty" name:"ProjectDisplayName"` +} + +type BriefTask struct { + // 任务id + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 任务名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskName *string `json:"TaskName,omitnil,omitempty" name:"TaskName"` + + // 任务创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 任务责任人id,一个任务可能有多个责任人 + // 注意:此字段可能返回 null,表示取不到有效值。 + OwnerUinList []*string `json:"OwnerUinList,omitnil,omitempty" name:"OwnerUinList"` +} + +type BusinessMetadata struct { + // 标签名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + TagNames []*string `json:"TagNames,omitnil,omitempty" name:"TagNames"` +} + +type CatalogInfo struct { + // 目录名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` +} + type ChildDependencyConfigPage struct { // 结果总数 // 注意:此字段可能返回 null,表示取不到有效值。 @@ -292,6 +461,10 @@ type CodeFile struct { // 节点全路径,/aaa/bbb/ccc.ipynb,由各个节点的名称组成 // 注意:此字段可能返回 null,表示取不到有效值。 Path *string `json:"Path,omitnil,omitempty" name:"Path"` + + // 父文件夹路径 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` } type CodeFileConfig struct { @@ -341,6 +514,10 @@ type CodeFolderNode struct { // 子节点列表 // 注意:此字段可能返回 null,表示取不到有效值。 Children []*CodeFolderNode `json:"Children,omitnil,omitempty" name:"Children"` + + // 父文件夹路径 + // 注意:此字段可能返回 null,表示取不到有效值。 + ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` } type CodeStudioFileActionResult struct { @@ -369,6 +546,31 @@ type CodeStudioFolderResult struct { FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` } +type ColumnInfo struct { + // 字段类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + Type *string `json:"Type,omitnil,omitempty" name:"Type"` + + // 字段名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 字段长度 + // 注意:此字段可能返回 null,表示取不到有效值。 + Length *int64 `json:"Length,omitnil,omitempty" name:"Length"` + + // 字段描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 字段的顺序 + // 注意:此字段可能返回 null,表示取不到有效值。 + Position *int64 `json:"Position,omitnil,omitempty" name:"Position"` + + // 是否为分区字段 + // 注意:此字段可能返回 null,表示取不到有效值。 + IsPartition *bool `json:"IsPartition,omitnil,omitempty" name:"IsPartition"` +} + type CreateAlarmRuleData struct { // 告警规则唯一id AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` @@ -701,6 +903,460 @@ type CreateDataReplenishmentPlan struct { DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` } +// Predefined struct for user +type CreateDataSourceRequestParams struct { + // 数据源项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据源名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据源类型:枚举值 + // + // - MYSQL + // - TENCENT_MYSQL + // - POSTGRE + // - ORACLE + // - SQLSERVER + // - FTP + // - HIVE + // - HUDI + // - HDFS + // - ICEBERG + // - KAFKA + // - DTS_KAFKA + // - HBASE + // - SPARK + // - TBASE + // - DB2 + // - DM + // - GAUSSDB + // - GBASE + // - IMPALA + // - ES + // - TENCENT_ES + // - GREENPLUM + // - SAP_HANA + // - SFTP + // - OCEANBASE + // - CLICKHOUSE + // - KUDU + // - VERTICA + // - REDIS + // - COS + // - DLC + // - DORIS + // - CKAFKA + // - S3_DATAINSIGHT + // - TDSQL + // - TDSQL_MYSQL + // - MONGODB + // - TENCENT_MONGODB + // - REST_API + // - TiDB + // - StarRocks + // - Trino + // - Kyuubi + // - TCHOUSE_X + // - TCHOUSE_P + // - TCHOUSE_C + // - TCHOUSE_D + // - INFLUXDB + // - BIG_QUERY + // - SSH + // - BLOB + // - TDSQL_POSTGRE + // - GDB + // - TDENGINE + // - TDSQLC + Type *string `json:"Type,omitnil,omitempty" name:"Type"` + + // 数据源的配置信息,以JSON KV存储,根据每个数据源类型不同,而KV存储信息不同 + // + // > deployType: + // CONNSTR_PUBLICDB(公网实例) + // CONNSTR_CVMDB(自建实例) + // INSTANCE(云实例) + // + // ``` + // mysql: 自建实例 + // { + // "deployType": "CONNSTR_CVMDB", + // "url": "jdbc:mysql://1.1.1.1:1111/database", + // "username": "root", + // "password": "root", + // "region": "ap-shanghai", + // "vpcId": "vpc-kprq42yo", + // "type": "MYSQL" + // } + // mysql: 云实例 + // { + // "instanceid": "cdb-12uxdo5e", + // "db": "db", + // "region": "ap-shanghai", + // "username": "msyql", + // "password": "mysql", + // "deployType": "INSTANCE", + // "type": "TENCENT_MYSQL" + // } + // sql_server: + // { + // "deployType": "CONNSTR_PUBLICDB", + // "url": "jdbc:sqlserver://1.1.1.1:223;DatabaseName=database", + // "username": "user_1", + // "password": "pass_2", + // "type": "SQLSERVER" + // } + // redis: + // redisType: + // -NO_ACCOUT(免账号) + // -SELF_ACCOUNT(自定义账号) + // { + // "deployType": "CONNSTR_PUBLICDB", + // "username":"" + // "password": "pass", + // "ip": "1.1.1.1", + // "port": "6379", + // "redisType": "NO_ACCOUT", + // "type": "REDIS" + // } + // oracle: + // { + // "deployType": "CONNSTR_CVMDB", + // "url": "jdbc:oracle:thin:@1.1.1.1:1521:prod", + // "username": "oracle", + // "password": "pass", + // "region": "ap-shanghai", + // "vpcId": "vpc-kprq42yo", + // "type": "ORACLE" + // } + // mongodb: + // advanceParams(自定义参数,会拼接至url后) + // { + // "advanceParams": [ + // { + // "key": "authSource", + // "value": "auth" + // } + // ], + // "db": "admin", + // "deployType": "CONNSTR_PUBLICDB", + // "username": "user", + // "password": "pass", + // "type": "MONGODB", + // "host": "1.1.1.1:9200" + // } + // postgresql: + // { + // "deployType": "CONNSTR_PUBLICDB", + // "url": "jdbc:postgresql://1.1.1.1:1921/database", + // "username": "user", + // "password": "pass", + // "type": "POSTGRE" + // } + // kafka: + // authType: + // - sasl + // - jaas + // - sasl_plaintext + // - sasl_ssl + // - GSSAPI + // ssl: + // -PLAIN + // -GSSAPI + // { + // "deployType": "CONNSTR_PUBLICDB", + // "host": "1.1.1.1:9092", + // "ssl": "GSSAPI", + // "authType": "sasl", + // "type": "KAFKA", + // "principal": "aaaa", + // "serviceName": "kafka" + // } + // + // cos: + // { + // "region": "ap-shanghai", + // "deployType": "INSTANCE", + // "secretId": "aaaaa", + // "secretKey": "sssssss", + // "bucket": "aaa", + // "type": "COS" + // } + // + // ``` + ProdConProperties *string `json:"ProdConProperties,omitnil,omitempty" name:"ProdConProperties"` + + // 开发环境数据源配置信息,若项目为标准模式,则此字段必填 + DevConProperties *string `json:"DevConProperties,omitnil,omitempty" name:"DevConProperties"` + + // 生产环境数据源文件上传 + ProdFileUpload *DataSourceFileUpload `json:"ProdFileUpload,omitnil,omitempty" name:"ProdFileUpload"` + + // 开发环境数据源文件上传 + DevFileUpload *DataSourceFileUpload `json:"DevFileUpload,omitnil,omitempty" name:"DevFileUpload"` + + // 数据源展示名,为了可视化查看 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 数据源描述信息 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +type CreateDataSourceRequest struct { + *tchttp.BaseRequest + + // 数据源项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据源名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据源类型:枚举值 + // + // - MYSQL + // - TENCENT_MYSQL + // - POSTGRE + // - ORACLE + // - SQLSERVER + // - FTP + // - HIVE + // - HUDI + // - HDFS + // - ICEBERG + // - KAFKA + // - DTS_KAFKA + // - HBASE + // - SPARK + // - TBASE + // - DB2 + // - DM + // - GAUSSDB + // - GBASE + // - IMPALA + // - ES + // - TENCENT_ES + // - GREENPLUM + // - SAP_HANA + // - SFTP + // - OCEANBASE + // - CLICKHOUSE + // - KUDU + // - VERTICA + // - REDIS + // - COS + // - DLC + // - DORIS + // - CKAFKA + // - S3_DATAINSIGHT + // - TDSQL + // - TDSQL_MYSQL + // - MONGODB + // - TENCENT_MONGODB + // - REST_API + // - TiDB + // - StarRocks + // - Trino + // - Kyuubi + // - TCHOUSE_X + // - TCHOUSE_P + // - TCHOUSE_C + // - TCHOUSE_D + // - INFLUXDB + // - BIG_QUERY + // - SSH + // - BLOB + // - TDSQL_POSTGRE + // - GDB + // - TDENGINE + // - TDSQLC + Type *string `json:"Type,omitnil,omitempty" name:"Type"` + + // 数据源的配置信息,以JSON KV存储,根据每个数据源类型不同,而KV存储信息不同 + // + // > deployType: + // CONNSTR_PUBLICDB(公网实例) + // CONNSTR_CVMDB(自建实例) + // INSTANCE(云实例) + // + // ``` + // mysql: 自建实例 + // { + // "deployType": "CONNSTR_CVMDB", + // "url": "jdbc:mysql://1.1.1.1:1111/database", + // "username": "root", + // "password": "root", + // "region": "ap-shanghai", + // "vpcId": "vpc-kprq42yo", + // "type": "MYSQL" + // } + // mysql: 云实例 + // { + // "instanceid": "cdb-12uxdo5e", + // "db": "db", + // "region": "ap-shanghai", + // "username": "msyql", + // "password": "mysql", + // "deployType": "INSTANCE", + // "type": "TENCENT_MYSQL" + // } + // sql_server: + // { + // "deployType": "CONNSTR_PUBLICDB", + // "url": "jdbc:sqlserver://1.1.1.1:223;DatabaseName=database", + // "username": "user_1", + // "password": "pass_2", + // "type": "SQLSERVER" + // } + // redis: + // redisType: + // -NO_ACCOUT(免账号) + // -SELF_ACCOUNT(自定义账号) + // { + // "deployType": "CONNSTR_PUBLICDB", + // "username":"" + // "password": "pass", + // "ip": "1.1.1.1", + // "port": "6379", + // "redisType": "NO_ACCOUT", + // "type": "REDIS" + // } + // oracle: + // { + // "deployType": "CONNSTR_CVMDB", + // "url": "jdbc:oracle:thin:@1.1.1.1:1521:prod", + // "username": "oracle", + // "password": "pass", + // "region": "ap-shanghai", + // "vpcId": "vpc-kprq42yo", + // "type": "ORACLE" + // } + // mongodb: + // advanceParams(自定义参数,会拼接至url后) + // { + // "advanceParams": [ + // { + // "key": "authSource", + // "value": "auth" + // } + // ], + // "db": "admin", + // "deployType": "CONNSTR_PUBLICDB", + // "username": "user", + // "password": "pass", + // "type": "MONGODB", + // "host": "1.1.1.1:9200" + // } + // postgresql: + // { + // "deployType": "CONNSTR_PUBLICDB", + // "url": "jdbc:postgresql://1.1.1.1:1921/database", + // "username": "user", + // "password": "pass", + // "type": "POSTGRE" + // } + // kafka: + // authType: + // - sasl + // - jaas + // - sasl_plaintext + // - sasl_ssl + // - GSSAPI + // ssl: + // -PLAIN + // -GSSAPI + // { + // "deployType": "CONNSTR_PUBLICDB", + // "host": "1.1.1.1:9092", + // "ssl": "GSSAPI", + // "authType": "sasl", + // "type": "KAFKA", + // "principal": "aaaa", + // "serviceName": "kafka" + // } + // + // cos: + // { + // "region": "ap-shanghai", + // "deployType": "INSTANCE", + // "secretId": "aaaaa", + // "secretKey": "sssssss", + // "bucket": "aaa", + // "type": "COS" + // } + // + // ``` + ProdConProperties *string `json:"ProdConProperties,omitnil,omitempty" name:"ProdConProperties"` + + // 开发环境数据源配置信息,若项目为标准模式,则此字段必填 + DevConProperties *string `json:"DevConProperties,omitnil,omitempty" name:"DevConProperties"` + + // 生产环境数据源文件上传 + ProdFileUpload *DataSourceFileUpload `json:"ProdFileUpload,omitnil,omitempty" name:"ProdFileUpload"` + + // 开发环境数据源文件上传 + DevFileUpload *DataSourceFileUpload `json:"DevFileUpload,omitnil,omitempty" name:"DevFileUpload"` + + // 数据源展示名,为了可视化查看 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 数据源描述信息 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +func (r *CreateDataSourceRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateDataSourceRequest) 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, "Name") + delete(f, "Type") + delete(f, "ProdConProperties") + delete(f, "DevConProperties") + delete(f, "ProdFileUpload") + delete(f, "DevFileUpload") + delete(f, "DisplayName") + delete(f, "Description") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDataSourceRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateDataSourceResponseParams struct { + // 主键ID + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *DataSourceResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateDataSourceResponse struct { + *tchttp.BaseResponse + Response *CreateDataSourceResponseParams `json:"Response"` +} + +func (r *CreateDataSourceResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateDataSourceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + type CreateFolderResult struct { // 创建成功的文件夹ID。如果创建失败则报错。 FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` @@ -830,44 +1486,192 @@ func (r *CreateOpsAlarmRuleResponse) FromJsonString(s string) error { } // Predefined struct for user -type CreateResourceFileRequestParams struct { - // 项目ID +type CreateProjectMemberRequestParams 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"` + // 用户id + UseUins []*string `json:"UseUins,omitnil,omitempty" name:"UseUins"` - // bundle客户端信息 - BundleInfo *string `json:"BundleInfo,omitnil,omitempty" name:"BundleInfo"` + // 角色id + RoleIds []*string `json:"RoleIds,omitnil,omitempty" name:"RoleIds"` } -type CreateResourceFileRequest struct { +type CreateProjectMemberRequest struct { *tchttp.BaseRequest - // 项目ID + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 资源文件名称, 尽可能和上传文件名保持一致 - ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + // 用户id + UseUins []*string `json:"UseUins,omitnil,omitempty" name:"UseUins"` - // cos存储桶名称, 可从GetResourceCosPath接口获取 - BucketName *string `json:"BucketName,omitnil,omitempty" name:"BucketName"` + // 角色id + RoleIds []*string `json:"RoleIds,omitnil,omitempty" name:"RoleIds"` +} + +func (r *CreateProjectMemberRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateProjectMemberRequest) 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, "UseUins") + delete(f, "RoleIds") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateProjectMemberRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateProjectMemberResponseParams struct { + // 返回数据 + Data *ProjectResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateProjectMemberResponse struct { + *tchttp.BaseResponse + Response *CreateProjectMemberResponseParams `json:"Response"` +} + +func (r *CreateProjectMemberResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateProjectMemberResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateProjectRequestParams struct { + // 项目基本信息 + Project *ProjectRequest `json:"Project,omitnil,omitempty" name:"Project"` + + // DLC绑定集群信息 + DLCInfo *DLCClusterInfo `json:"DLCInfo,omitnil,omitempty" name:"DLCInfo"` + + // 绑定资源组的id列表 + ResourceIds []*string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"` +} + +type CreateProjectRequest struct { + *tchttp.BaseRequest + + // 项目基本信息 + Project *ProjectRequest `json:"Project,omitnil,omitempty" name:"Project"` + + // DLC绑定集群信息 + DLCInfo *DLCClusterInfo `json:"DLCInfo,omitnil,omitempty" name:"DLCInfo"` + + // 绑定资源组的id列表 + ResourceIds []*string `json:"ResourceIds,omitnil,omitempty" name:"ResourceIds"` +} + +func (r *CreateProjectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateProjectRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Project") + delete(f, "DLCInfo") + delete(f, "ResourceIds") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateProjectRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateProjectResponseParams struct { + // 创建项目结果 + Data *CreateProjectResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateProjectResponse struct { + *tchttp.BaseResponse + Response *CreateProjectResponseParams `json:"Response"` +} + +func (r *CreateProjectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateProjectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateProjectResult struct { + // 项目id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +// 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"` @@ -1013,6 +1817,119 @@ func (r *CreateResourceFolderResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateResourceGroupRequestParams struct { + // 资源组名称。创建通用资源组的名称,必须以字母开头,可包含字母、数字、下划线(_),最多 64 个字符。 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 开通的资源组信息 + Type *ResourceType `json:"Type,omitnil,omitempty" name:"Type"` + + // 是否自动续费 + AutoRenewEnabled *bool `json:"AutoRenewEnabled,omitnil,omitempty" name:"AutoRenewEnabled"` + + // 购买时长,单位月 + PurchasePeriod *int64 `json:"PurchasePeriod,omitnil,omitempty" name:"PurchasePeriod"` + + // vpcId + VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"` + + // 子网 + SubNet *string `json:"SubNet,omitnil,omitempty" name:"SubNet"` + + // 资源购买地域 + ResourceRegion *string `json:"ResourceRegion,omitnil,omitempty" name:"ResourceRegion"` + + // 关联项目空间项目id + AssociatedProjectId *string `json:"AssociatedProjectId,omitnil,omitempty" name:"AssociatedProjectId"` + + // 资源组描述 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +type CreateResourceGroupRequest struct { + *tchttp.BaseRequest + + // 资源组名称。创建通用资源组的名称,必须以字母开头,可包含字母、数字、下划线(_),最多 64 个字符。 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 开通的资源组信息 + Type *ResourceType `json:"Type,omitnil,omitempty" name:"Type"` + + // 是否自动续费 + AutoRenewEnabled *bool `json:"AutoRenewEnabled,omitnil,omitempty" name:"AutoRenewEnabled"` + + // 购买时长,单位月 + PurchasePeriod *int64 `json:"PurchasePeriod,omitnil,omitempty" name:"PurchasePeriod"` + + // vpcId + VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"` + + // 子网 + SubNet *string `json:"SubNet,omitnil,omitempty" name:"SubNet"` + + // 资源购买地域 + ResourceRegion *string `json:"ResourceRegion,omitnil,omitempty" name:"ResourceRegion"` + + // 关联项目空间项目id + AssociatedProjectId *string `json:"AssociatedProjectId,omitnil,omitempty" name:"AssociatedProjectId"` + + // 资源组描述 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +func (r *CreateResourceGroupRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateResourceGroupRequest) 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, "Type") + delete(f, "AutoRenewEnabled") + delete(f, "PurchasePeriod") + delete(f, "VpcId") + delete(f, "SubNet") + delete(f, "ResourceRegion") + delete(f, "AssociatedProjectId") + delete(f, "Description") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateResourceGroupRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateResourceGroupResponseParams struct { + // 是否开启成功 + Data *ResourceResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type CreateResourceGroupResponse struct { + *tchttp.BaseResponse + Response *CreateResourceGroupResponseParams `json:"Response"` +} + +func (r *CreateResourceGroupResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateResourceGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type CreateSQLFolderRequestParams struct { // 文件夹名称 @@ -1629,6 +2546,107 @@ type CreateWorkflowResult struct { WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` } +type DLCClusterInfo struct { + // dlc资源名称(需要添加角色Uin到dlc中,否则可能获取不到资源) + // 注意:此字段可能返回 null,表示取不到有效值。 + ComputeResources []*string `json:"ComputeResources,omitnil,omitempty" name:"ComputeResources"` + + // dlc地域 + // 注意:此字段可能返回 null,表示取不到有效值。 + Region *string `json:"Region,omitnil,omitempty" name:"Region"` + + // 指定DLC集群的默认数据库 + // 注意:此字段可能返回 null,表示取不到有效值。 + DefaultDatabase *string `json:"DefaultDatabase,omitnil,omitempty" name:"DefaultDatabase"` + + // 集群配置标记( 仅对标准模式的项目生效并且标准模式必填),枚举值: + // - Prod (生产环境) + // - Dev (开发环境) + StandardModeEnvTag *string `json:"StandardModeEnvTag,omitnil,omitempty" name:"StandardModeEnvTag"` + + // 访问账号( 仅对标准模式的项目生效并且标准模式必填),用于提交dlc任务的账号 + // 建议使用指定子账号,给子账号设置对应库表的权限;任务负责人模式在负责人离职后容易造成任务失败;主账号模式在多个项目权限不同的情况下不易做权限控制。 + // + // 枚举值: + // - TASK_RUNNER (任务负责人) + // - OWNER (主账号模式) + // - SUB (子账号模式) + AccessAccount *string `json:"AccessAccount,omitnil,omitempty" name:"AccessAccount"` + + // 子账号id( 仅对标准模式的项目生效),AccessAccount为子账号模式时,需要指定子账号的id信息,其他模式不需要指定 + SubAccountUin *string `json:"SubAccountUin,omitnil,omitempty" name:"SubAccountUin"` +} + +type DataBackfill struct { + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据补录计划id + DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` + + // 数据补录计划名称 + DataBackfillPlanName *string `json:"DataBackfillPlanName,omitnil,omitempty" name:"DataBackfillPlanName"` + + // 补录任务集合 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 补录任务的数据配置列表 + DataBackfillRangeList []*DataBackfillRange `json:"DataBackfillRangeList,omitnil,omitempty" name:"DataBackfillRangeList"` + + // 检查父任务类型,取值范围:- NONE-全部不检查- ALL-检查全部上游父任务- MAKE_SCOPE-只在(当前补录计划)选中任务中检查 + // 注意:此字段可能返回 null,表示取不到有效值。 + CheckParentType *string `json:"CheckParentType,omitnil,omitempty" name:"CheckParentType"` + + // 补录是否忽略事件依赖 + // 注意:此字段可能返回 null,表示取不到有效值。 + SkipEventListening *bool `json:"SkipEventListening,omitnil,omitempty" name:"SkipEventListening"` + + // 自定义实例运行并发度, 返回为null或者不返回,则表示任务原有自依赖 + // 注意:此字段可能返回 null,表示取不到有效值。 + RedefineParallelNum *uint64 `json:"RedefineParallelNum,omitnil,omitempty" name:"RedefineParallelNum"` + + // 自定义的工作流自依赖,yes或者no;如果不配置,则使用工作流原有自依赖 + // 注意:此字段可能返回 null,表示取不到有效值。 + RedefineSelfWorkflowDependency *string `json:"RedefineSelfWorkflowDependency,omitnil,omitempty" name:"RedefineSelfWorkflowDependency"` + + // 调度资源组id + // 注意:此字段可能返回 null,表示取不到有效值。 + SchedulerResourceGroupId *string `json:"SchedulerResourceGroupId,omitnil,omitempty" name:"SchedulerResourceGroupId"` + + // 集成资源组id + // 注意:此字段可能返回 null,表示取不到有效值。 + IntegrationResourceGroupId *string `json:"IntegrationResourceGroupId,omitnil,omitempty" name:"IntegrationResourceGroupId"` + + // 补录自定义的生成周期 + // 注意:此字段可能返回 null,表示取不到有效值。 + RedefineCycleType *string `json:"RedefineCycleType,omitnil,omitempty" name:"RedefineCycleType"` + + // 自定义参数 + // 注意:此字段可能返回 null,表示取不到有效值。 + RedefineParamList []*KVPair `json:"RedefineParamList,omitnil,omitempty" name:"RedefineParamList"` + + // 补录任务的执行开始时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` + + // 补录任务的执行结束时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 创建用户id + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + + // 补录计划实例完成百分数 + CompletePercent *uint64 `json:"CompletePercent,omitnil,omitempty" name:"CompletePercent"` + + // 补录计划实例成功百分数 + SuccessPercent *uint64 `json:"SuccessPercent,omitnil,omitempty" name:"SuccessPercent"` + + // 补录是实例数据时间顺序,生效必须满足2个条件:1. 必须同周期任务2. 优先按依赖关系执行,无依赖关系影响的情况下按配置执行顺序执行 可选值- NORMAL: 不设置- ORDER: 顺序- REVERSE: 逆序不设置默认为NORMAL + // 注意:此字段可能返回 null,表示取不到有效值。 + DataTimeOrder *string `json:"DataTimeOrder,omitnil,omitempty" name:"DataTimeOrder"` +} + type DataBackfillRange struct { // 开始日期,格式yyyy-MM-dd 表示从指定日期的00:00:00开始 // 注意:此字段可能返回 null,表示取不到有效值。 @@ -1647,17 +2665,188 @@ type DataBackfillRange struct { 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 +type DataSource struct { + // 归属项目ID + // 注意:此字段可能返回 null,表示取不到有效值。 ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 代码文件ID,参数值来自CreateCodeFile接口的返回 + // 数据源ID + // 注意:此字段可能返回 null,表示取不到有效值。 + Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"` + + // 数据源类型:枚举值 + // 注意:此字段可能返回 null,表示取不到有效值。 + Type *string `json:"Type,omitnil,omitempty" name:"Type"` + + // 数据源名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据源展示名,为了可视化查看 + // 注意:此字段可能返回 null,表示取不到有效值。 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 数据源描述信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 归属项目Name + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` + + // 数据源创建人 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateUser *string `json:"CreateUser,omitnil,omitempty" name:"CreateUser"` + + // 时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 更新人 + // 注意:此字段可能返回 null,表示取不到有效值。 + ModifyUser *string `json:"ModifyUser,omitnil,omitempty" name:"ModifyUser"` + + // 更新时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + + // 数据源的配置信息,以JSON KV存储,根据每个数据源类型不同,而KV存储信息不同 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProdConProperties *string `json:"ProdConProperties,omitnil,omitempty" name:"ProdConProperties"` + + // 同params 内容为开发数据源的数据 + // 注意:此字段可能返回 null,表示取不到有效值。 + DevConProperties *string `json:"DevConProperties,omitnil,omitempty" name:"DevConProperties"` + + // 数据源类别: + // + // - DB ---自定义源 + // - CLUSTER --- 系统源 + // 注意:此字段可能返回 null,表示取不到有效值。 + Category *string `json:"Category,omitnil,omitempty" name:"Category"` +} + +type DataSourceFileUpload struct { + // Truststore认证文件,默认文件名truststore.jks + TrustStore *string `json:"TrustStore,omitnil,omitempty" name:"TrustStore"` + + // Keystore认证文件,默认文件名keystore.jks + KeyStore *string `json:"KeyStore,omitnil,omitempty" name:"KeyStore"` + + // core-site.xml文件 + CoreSite *string `json:"CoreSite,omitnil,omitempty" name:"CoreSite"` + + // hdfs-site.xml文件 + HdfsSite *string `json:"HdfsSite,omitnil,omitempty" name:"HdfsSite"` + + // hive-site.xml文件 + HiveSite *string `json:"HiveSite,omitnil,omitempty" name:"HiveSite"` + + // hbase-site文件 + HBASESite *string `json:"HBASESite,omitnil,omitempty" name:"HBASESite"` + + // keytab文件,默认文件名[数据源名].keytab + KeyTab *string `json:"KeyTab,omitnil,omitempty" name:"KeyTab"` + + // krb5.conf文件 + KRB5Conf *string `json:"KRB5Conf,omitnil,omitempty" name:"KRB5Conf"` + + // 私钥,默认文件名private_key.pem + PrivateKey *string `json:"PrivateKey,omitnil,omitempty" name:"PrivateKey"` + + // 公钥,默认文件名public_key.pem + PublicKey *string `json:"PublicKey,omitnil,omitempty" name:"PublicKey"` +} + +type DataSourceInfo struct { + // 分页页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 数据源列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*DataSource `json:"Items,omitnil,omitempty" name:"Items"` + + // 总数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总分页页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` +} + +type DataSourceResult struct { + // 操作是否成功 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` + + // 数据源id + // 注意:此字段可能返回 null,表示取不到有效值。 + DataSourceId *int64 `json:"DataSourceId,omitnil,omitempty" name:"DataSourceId"` +} + +type DataSourceStatus struct { + // 数据源操作状态 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +type DatabaseInfo struct { + // 数据库GUID + // 注意:此字段可能返回 null,表示取不到有效值。 + Guid *string `json:"Guid,omitnil,omitempty" name:"Guid"` + + // 数据库名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据库目录 + // 注意:此字段可能返回 null,表示取不到有效值。 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` + + // 数据库描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 数据库位置 + // 注意:此字段可能返回 null,表示取不到有效值。 + Location *string `json:"Location,omitnil,omitempty" name:"Location"` + + // 数据库存储大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + StorageSize *int64 `json:"StorageSize,omitnil,omitempty" name:"StorageSize"` +} + +type DatasourceRelationTaskInfo struct { + // 项目id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 项目名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` + + // 数据源关联任务信息,本期仅支持数据开发任务接口返回数据 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskInfo []*RelateTask `json:"TaskInfo,omitnil,omitempty" name:"TaskInfo"` +} + +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"` } @@ -1780,11 +2969,132 @@ func (r *DeleteCodeFolderResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDataSourceRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据源id + Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"` +} + +type DeleteDataSourceRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据源id + Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"` +} + +func (r *DeleteDataSourceRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteDataSourceRequest) 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, "Id") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteDataSourceRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteDataSourceResponseParams struct { + // 是否删除成功 + Data *DataSourceStatus `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteDataSourceResponse struct { + *tchttp.BaseResponse + Response *DeleteDataSourceResponseParams `json:"Response"` +} + +func (r *DeleteDataSourceResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteDataSourceResponse) 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 DeleteLineageRequestParams struct { + // 需要删除的血缘关系列表 + Relations []*LineagePair `json:"Relations,omitnil,omitempty" name:"Relations"` +} + +type DeleteLineageRequest struct { + *tchttp.BaseRequest + + // 需要删除的血缘关系列表 + Relations []*LineagePair `json:"Relations,omitnil,omitempty" name:"Relations"` +} + +func (r *DeleteLineageRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteLineageRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Relations") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteLineageRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteLineageResponseParams struct { + // 删除结果 + Data *OperateResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteLineageResponse struct { + *tchttp.BaseResponse + Response *DeleteLineageResponseParams `json:"Response"` +} + +func (r *DeleteLineageResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteLineageResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type DeleteOpsAlarmRuleRequestParams struct { // 项目id @@ -1851,6 +3161,67 @@ func (r *DeleteOpsAlarmRuleResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteProjectMemberRequestParams struct { + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 用户ID列表 + UserUins []*string `json:"UserUins,omitnil,omitempty" name:"UserUins"` +} + +type DeleteProjectMemberRequest struct { + *tchttp.BaseRequest + + // 项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 用户ID列表 + UserUins []*string `json:"UserUins,omitnil,omitempty" name:"UserUins"` +} + +func (r *DeleteProjectMemberRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteProjectMemberRequest) 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, "UserUins") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteProjectMemberRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteProjectMemberResponseParams struct { + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteProjectMemberResponse struct { + *tchttp.BaseResponse + Response *DeleteProjectMemberResponseParams `json:"Response"` +} + +func (r *DeleteProjectMemberResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteProjectMemberResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type DeleteResourceFileRequestParams struct { // 项目ID @@ -1985,11 +3356,68 @@ func (r *DeleteResourceFolderResponse) FromJsonString(s string) error { } // Predefined struct for user -type DeleteSQLFolderRequestParams struct { - // 文件夹Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - - // 项目id +type DeleteResourceGroupRequestParams struct { + // 资源组id + Id *string `json:"Id,omitnil,omitempty" name:"Id"` +} + +type DeleteResourceGroupRequest struct { + *tchttp.BaseRequest + + // 资源组id + Id *string `json:"Id,omitnil,omitempty" name:"Id"` +} + +func (r *DeleteResourceGroupRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteResourceGroupRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Id") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteResourceGroupRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteResourceGroupResponseParams struct { + // 是否销毁成功 + Data *ResourceStatus `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DeleteResourceGroupResponse struct { + *tchttp.BaseResponse + Response *DeleteResourceGroupResponseParams `json:"Response"` +} + +func (r *DeleteResourceGroupResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteResourceGroupResponse) 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"` } @@ -2314,7 +3742,7 @@ func (r *DeleteWorkflowRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteWorkflowResponseParams struct { - // 返回删除成功的工作流任务个数、失败个数、任务总数 + // 是否删除成功 Data *DeleteWorkflowResult `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 @@ -2440,6 +3868,184 @@ type DependencyTaskBrief struct { DependencyStrategy *DependencyStrategyTask `json:"DependencyStrategy,omitnil,omitempty" name:"DependencyStrategy"` } +// Predefined struct for user +type DisableProjectRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +type DisableProjectRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +func (r *DisableProjectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DisableProjectRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisableProjectRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DisableProjectResponseParams struct { + // 无 + Data *ProjectResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DisableProjectResponse struct { + *tchttp.BaseResponse + Response *DisableProjectResponseParams `json:"Response"` +} + +func (r *DisableProjectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DisableProjectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DissociateResourceGroupFromProjectRequestParams struct { + // 资源组id + ResourceGroupId *string `json:"ResourceGroupId,omitnil,omitempty" name:"ResourceGroupId"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +type DissociateResourceGroupFromProjectRequest struct { + *tchttp.BaseRequest + + // 资源组id + ResourceGroupId *string `json:"ResourceGroupId,omitnil,omitempty" name:"ResourceGroupId"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +func (r *DissociateResourceGroupFromProjectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DissociateResourceGroupFromProjectRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ResourceGroupId") + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DissociateResourceGroupFromProjectRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DissociateResourceGroupFromProjectResponseParams struct { + // 是否绑定成功,失败返回异常 + Data *ResourceStatus `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type DissociateResourceGroupFromProjectResponse struct { + *tchttp.BaseResponse + Response *DissociateResourceGroupFromProjectResponseParams `json:"Response"` +} + +func (r *DissociateResourceGroupFromProjectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DissociateResourceGroupFromProjectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type EnableProjectRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +type EnableProjectRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} + +func (r *EnableProjectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *EnableProjectRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "EnableProjectRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type EnableProjectResponseParams struct { + // 无 + Data *ProjectResult `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type EnableProjectResponse struct { + *tchttp.BaseResponse + Response *EnableProjectResponseParams `json:"Response"` +} + +func (r *EnableProjectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *EnableProjectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + type EventListener struct { // 事件名 // 注意:此字段可能返回 null,表示取不到有效值。 @@ -2458,6 +4064,69 @@ type EventListener struct { PropertiesList []*ParamInfo `json:"PropertiesList,omitnil,omitempty" name:"PropertiesList"` } +type ExecutorResourceGroupData struct { + // 结果list + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*ExecutorResourceGroupInfo `json:"Items,omitnil,omitempty" name:"Items"` + + // 总条数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 页数 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 页大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 总分页页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *int64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` +} + +type ExecutorResourceGroupInfo struct { + // 资源组唯一标识 + Id *string `json:"Id,omitnil,omitempty" name:"Id"` + + // 资源组名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 资源组描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 执行资源组类型,不能为空 + // + // - Schedule --- 调度资源组 + // - Integration --- 集成资源组 + // - DataService -- 数据服务资源组 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceGroupType *string `json:"ResourceGroupType,omitnil,omitempty" name:"ResourceGroupType"` + + // 项目集合 + // 注意:此字段可能返回 null,表示取不到有效值。 + AssociateProjects []*BindProject `json:"AssociateProjects,omitnil,omitempty" name:"AssociateProjects"` + + // 区域 + // 注意:此字段可能返回 null,表示取不到有效值。 + Region *string `json:"Region,omitnil,omitempty" name:"Region"` + + // vpcId + // 注意:此字段可能返回 null,表示取不到有效值。 + VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"` + + // 子网id + // 注意:此字段可能返回 null,表示取不到有效值。 + SubNet *string `json:"SubNet,omitnil,omitempty" name:"SubNet"` + + // 是否自动续费 + // 注意:此字段可能返回 null,表示取不到有效值。 + AutoRenewEnabled *bool `json:"AutoRenewEnabled,omitnil,omitempty" name:"AutoRenewEnabled"` +} + // Predefined struct for user type GetAlarmMessageRequestParams struct { // 所属项目Id @@ -2601,1875 +4270,3721 @@ func (r *GetCodeFileResponse) FromJsonString(s string) error { } // Predefined struct for user -type GetOpsAlarmRuleRequestParams struct { +type GetCodeFolderRequestParams struct { // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 告警规则唯一id - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` + // 文件夹id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` } -type GetOpsAlarmRuleRequest struct { +type GetCodeFolderRequest struct { *tchttp.BaseRequest // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 告警规则唯一id - AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` + // 文件夹id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` } -func (r *GetOpsAlarmRuleRequest) ToJsonString() string { +func (r *GetCodeFolderRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetCodeFolderRequest) 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, "FolderId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsAlarmRuleRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetCodeFolderRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetOpsAlarmRuleResponseParams struct { - // 告警规则详细信息 - Data *AlarmRuleData `json:"Data,omitnil,omitempty" name:"Data"` +type GetCodeFolderResponseParams struct { + // codestudio文件夹 + Data *CodeFolderNode `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetOpsAlarmRuleResponse struct { +type GetCodeFolderResponse struct { *tchttp.BaseResponse - Response *GetOpsAlarmRuleResponseParams `json:"Response"` + Response *GetCodeFolderResponseParams `json:"Response"` } -func (r *GetOpsAlarmRuleResponse) ToJsonString() string { +func (r *GetCodeFolderResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetCodeFolderResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetOpsAsyncJobRequestParams struct { +type GetDataBackfillPlanRequestParams struct { // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 异步操作id - AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` + // 补录计划id + DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` + + // 展示时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` } -type GetOpsAsyncJobRequest struct { +type GetDataBackfillPlanRequest struct { *tchttp.BaseRequest // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 异步操作id - AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` + // 补录计划id + DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` + + // 展示时区,默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` } -func (r *GetOpsAsyncJobRequest) ToJsonString() string { +func (r *GetDataBackfillPlanRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetDataBackfillPlanRequest) 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") + delete(f, "DataBackfillPlanId") + delete(f, "TimeZone") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsAsyncJobRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetDataBackfillPlanRequest 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"` +type GetDataBackfillPlanResponseParams struct { + // 补录详情 + Data *DataBackfill `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetOpsAsyncJobResponse struct { +type GetDataBackfillPlanResponse struct { *tchttp.BaseResponse - Response *GetOpsAsyncJobResponseParams `json:"Response"` + Response *GetDataBackfillPlanResponseParams `json:"Response"` } -func (r *GetOpsAsyncJobResponse) ToJsonString() string { +func (r *GetDataBackfillPlanResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetDataBackfillPlanResponse) 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 GetDataSourceRelatedTasksRequestParams struct { + // 数据源id + Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"` } -type GetOpsTaskCodeRequest struct { +type GetDataSourceRelatedTasksRequest struct { *tchttp.BaseRequest - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + // 数据源id + Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"` } -func (r *GetOpsTaskCodeRequest) ToJsonString() string { +func (r *GetDataSourceRelatedTasksRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetDataSourceRelatedTasksRequest) 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, "Id") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsTaskCodeRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetDataSourceRelatedTasksRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetOpsTaskCodeResponseParams struct { - // 获取任务代码结果 - Data *TaskCode `json:"Data,omitnil,omitempty" name:"Data"` +type GetDataSourceRelatedTasksResponseParams struct { + // 无 + Data []*DatasourceRelationTaskInfo `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetOpsTaskCodeResponse struct { +type GetDataSourceRelatedTasksResponse struct { *tchttp.BaseResponse - Response *GetOpsTaskCodeResponseParams `json:"Response"` + Response *GetDataSourceRelatedTasksResponseParams `json:"Response"` } -func (r *GetOpsTaskCodeResponse) ToJsonString() string { +func (r *GetDataSourceRelatedTasksResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetDataSourceRelatedTasksResponse) 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 +type GetDataSourceRequestParams struct { + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据源id + Id *int64 `json:"Id,omitnil,omitempty" name:"Id"` } -type GetOpsTaskRequest struct { +type GetDataSourceRequest struct { *tchttp.BaseRequest - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - - // 项目Id + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据源id + Id *int64 `json:"Id,omitnil,omitempty" name:"Id"` } -func (r *GetOpsTaskRequest) ToJsonString() string { +func (r *GetDataSourceRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetDataSourceRequest) 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, "Id") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsTaskRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetDataSourceRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetOpsTaskResponseParams struct { - // 任务详情 - Data *Task `json:"Data,omitnil,omitempty" name:"Data"` +type GetDataSourceResponseParams struct { + // 数据源列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *DataSource `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetOpsTaskResponse struct { +type GetDataSourceResponse struct { *tchttp.BaseResponse - Response *GetOpsTaskResponseParams `json:"Response"` + Response *GetDataSourceResponseParams `json:"Response"` } -func (r *GetOpsTaskResponse) ToJsonString() string { +func (r *GetDataSourceResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetDataSourceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetOpsWorkflowRequestParams struct { - // 项目Id +type GetOpsAlarmRuleRequestParams struct { + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 工作流Id,可以从ListOpsWorkflows接口获取 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + // 告警规则唯一id + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` } -type GetOpsWorkflowRequest struct { +type GetOpsAlarmRuleRequest struct { *tchttp.BaseRequest - // 项目Id + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 工作流Id,可以从ListOpsWorkflows接口获取 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + // 告警规则唯一id + AlarmRuleId *string `json:"AlarmRuleId,omitnil,omitempty" name:"AlarmRuleId"` } -func (r *GetOpsWorkflowRequest) ToJsonString() string { +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 *GetOpsWorkflowRequest) FromJsonString(s string) error { +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, "WorkflowId") + delete(f, "AlarmRuleId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsWorkflowRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsAlarmRuleRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetOpsWorkflowResponseParams struct { - // 工作流调度详情 - Data *OpsWorkflowDetail `json:"Data,omitnil,omitempty" name:"Data"` +type GetOpsAlarmRuleResponseParams struct { + // 告警规则详细信息 + Data *AlarmRuleData `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetOpsWorkflowResponse struct { +type GetOpsAlarmRuleResponse struct { *tchttp.BaseResponse - Response *GetOpsWorkflowResponseParams `json:"Response"` + Response *GetOpsAlarmRuleResponseParams `json:"Response"` } -func (r *GetOpsWorkflowResponse) ToJsonString() string { +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 *GetOpsWorkflowResponse) FromJsonString(s string) error { +func (r *GetOpsAlarmRuleResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetResourceFileRequestParams struct { - // 项目ID +type GetOpsAsyncJobRequestParams struct { + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 资源文件ID,可通过ListResourceFiles接口获取 - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` + // 异步操作id + AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` } -type GetResourceFileRequest struct { +type GetOpsAsyncJobRequest struct { *tchttp.BaseRequest - // 项目ID + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 资源文件ID,可通过ListResourceFiles接口获取 - ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` + // 异步操作id + AsyncId *string `json:"AsyncId,omitnil,omitempty" name:"AsyncId"` } -func (r *GetResourceFileRequest) ToJsonString() string { +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 *GetResourceFileRequest) FromJsonString(s string) error { +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, "ResourceId") + delete(f, "AsyncId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetResourceFileRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsAsyncJobRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetResourceFileResponseParams struct { - // 资源文件详情 - Data *ResourceFile `json:"Data,omitnil,omitempty" name:"Data"` +type GetOpsAsyncJobResponseParams struct { + // 异步操作详情结果 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *OpsAsyncJobDetail `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetResourceFileResponse struct { +type GetOpsAsyncJobResponse struct { *tchttp.BaseResponse - Response *GetResourceFileResponseParams `json:"Response"` + Response *GetOpsAsyncJobResponseParams `json:"Response"` } -func (r *GetResourceFileResponse) ToJsonString() string { +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 *GetResourceFileResponse) FromJsonString(s string) error { +func (r *GetOpsAsyncJobResponse) 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 +type GetOpsTaskCodeRequestParams struct { + // 所属项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` } -type GetSQLScriptRequest struct { +type GetOpsTaskCodeRequest struct { *tchttp.BaseRequest - // 探索脚本Id - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - - // 项目Id + // 所属项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` } -func (r *GetSQLScriptRequest) ToJsonString() string { +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 *GetSQLScriptRequest) FromJsonString(s string) error { +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, "ScriptId") delete(f, "ProjectId") + delete(f, "TaskId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetSQLScriptRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsTaskCodeRequest 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"` +type GetOpsTaskCodeResponseParams struct { + // 获取任务代码结果 + Data *TaskCode `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetSQLScriptResponse struct { +type GetOpsTaskCodeResponse struct { *tchttp.BaseResponse - Response *GetSQLScriptResponseParams `json:"Response"` + Response *GetOpsTaskCodeResponseParams `json:"Response"` } -func (r *GetSQLScriptResponse) ToJsonString() string { +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 *GetSQLScriptResponse) FromJsonString(s string) error { +func (r *GetOpsTaskCodeResponse) 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 +type GetOpsTaskRequestParams struct { + // 任务Id TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` } -type GetTaskCodeRequest struct { +type GetOpsTaskRequest struct { *tchttp.BaseRequest - // 所属项目id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - - // 任务Id + // 任务Id TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` } -func (r *GetTaskCodeRequest) ToJsonString() string { +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 *GetTaskCodeRequest) FromJsonString(s string) error { +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, "ProjectId") delete(f, "TaskId") + delete(f, "ProjectId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskCodeRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsTaskRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetTaskCodeResponseParams struct { - // 获取任务代码结果 - Data *TaskCodeResult `json:"Data,omitnil,omitempty" name:"Data"` +type GetOpsTaskResponseParams struct { + // 任务详情 + Data *Task `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetTaskCodeResponse struct { +type GetOpsTaskResponse struct { *tchttp.BaseResponse - Response *GetTaskCodeResponseParams `json:"Response"` + Response *GetOpsTaskResponseParams `json:"Response"` } -func (r *GetTaskCodeResponse) ToJsonString() string { +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 *GetTaskCodeResponse) FromJsonString(s string) error { +func (r *GetOpsTaskResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetTaskInstanceLogRequestParams struct { - // **项目ID** +type GetOpsWorkflowRequestParams 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"` + // 工作流Id,可以从ListOpsWorkflows接口获取 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` } -type GetTaskInstanceLogRequest struct { +type GetOpsWorkflowRequest struct { *tchttp.BaseRequest - // **项目ID** + // 项目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"` + // 工作流Id,可以从ListOpsWorkflows接口获取 + WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` } -func (r *GetTaskInstanceLogRequest) ToJsonString() string { +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 *GetTaskInstanceLogRequest) FromJsonString(s string) error { +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, "InstanceKey") - delete(f, "LifeRoundNum") - delete(f, "LogLevel") - delete(f, "NextCursor") + delete(f, "WorkflowId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskInstanceLogRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetOpsWorkflowRequest 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"` +type GetOpsWorkflowResponseParams struct { + // 工作流调度详情 + Data *OpsWorkflowDetail `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetTaskInstanceLogResponse struct { +type GetOpsWorkflowResponse struct { *tchttp.BaseResponse - Response *GetTaskInstanceLogResponseParams `json:"Response"` + Response *GetOpsWorkflowResponseParams `json:"Response"` } -func (r *GetTaskInstanceLogResponse) ToJsonString() string { +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 *GetTaskInstanceLogResponse) FromJsonString(s string) error { +func (r *GetOpsWorkflowResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetTaskInstanceRequestParams struct { - // 所属项目id +type GetProjectRequestParams struct { + // 项目id。一般使用项目Id来查询,与projectName必须存在一个。 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 { +type GetProjectRequest struct { *tchttp.BaseRequest - // 所属项目id + // 项目id。一般使用项目Id来查询,与projectName必须存在一个。 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 { +func (r *GetProjectRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetProjectRequest) 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 tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetProjectRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetTaskInstanceResponseParams struct { - // 实例详情 - Data *TaskInstanceDetail `json:"Data,omitnil,omitempty" name:"Data"` +type GetProjectResponseParams struct { + // 项目信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Data *Project `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetTaskInstanceResponse struct { +type GetProjectResponse struct { *tchttp.BaseResponse - Response *GetTaskInstanceResponseParams `json:"Response"` + Response *GetProjectResponseParams `json:"Response"` } -func (r *GetTaskInstanceResponse) ToJsonString() string { +func (r *GetProjectResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetProjectResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetTaskRequestParams struct { +type GetResourceFileRequestParams struct { // 项目ID ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + // 资源文件ID,可通过ListResourceFiles接口获取 + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` } -type GetTaskRequest struct { +type GetResourceFileRequest struct { *tchttp.BaseRequest // 项目ID ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + // 资源文件ID,可通过ListResourceFiles接口获取 + ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` } -func (r *GetTaskRequest) ToJsonString() string { +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 *GetTaskRequest) FromJsonString(s string) error { +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, "TaskId") + delete(f, "ResourceId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetResourceFileRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetTaskResponseParams struct { - // 任务详情 - Data *Task `json:"Data,omitnil,omitempty" name:"Data"` +type GetResourceFileResponseParams struct { + // 资源文件详情 + Data *ResourceFile `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetTaskResponse struct { +type GetResourceFileResponse struct { *tchttp.BaseResponse - Response *GetTaskResponseParams `json:"Response"` + Response *GetResourceFileResponseParams `json:"Response"` } -func (r *GetTaskResponse) ToJsonString() string { +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 *GetTaskResponse) FromJsonString(s string) error { +func (r *GetResourceFileResponse) 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"` +type GetResourceGroupMetricsRequestParams struct { + // 执行资源组id + ResourceGroupId *string `json:"ResourceGroupId,omitnil,omitempty" name:"ResourceGroupId"` - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + // 使用趋势开始时间(毫秒),默认最近一小时 + StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"` - // 提交版本ID,不填默认拿最新提交版本 - VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` + // 使用趋势结束时间(毫秒),默认当前 + EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 指标维度 + // + // - all --- 全部 + // - task --- 任务指标 + // - system --- 系统指标 + MetricType *string `json:"MetricType,omitnil,omitempty" name:"MetricType"` + + // 指标采集粒度,单位分钟,默认 1分钟 + Granularity *uint64 `json:"Granularity,omitnil,omitempty" name:"Granularity"` } -type GetTaskVersionRequest struct { +type GetResourceGroupMetricsRequest struct { *tchttp.BaseRequest - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + // 执行资源组id + ResourceGroupId *string `json:"ResourceGroupId,omitnil,omitempty" name:"ResourceGroupId"` - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + // 使用趋势开始时间(毫秒),默认最近一小时 + StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"` - // 提交版本ID,不填默认拿最新提交版本 - VersionId *string `json:"VersionId,omitnil,omitempty" name:"VersionId"` + // 使用趋势结束时间(毫秒),默认当前 + EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"` + + // 指标维度 + // + // - all --- 全部 + // - task --- 任务指标 + // - system --- 系统指标 + MetricType *string `json:"MetricType,omitnil,omitempty" name:"MetricType"` + + // 指标采集粒度,单位分钟,默认 1分钟 + Granularity *uint64 `json:"Granularity,omitnil,omitempty" name:"Granularity"` } -func (r *GetTaskVersionRequest) ToJsonString() string { +func (r *GetResourceGroupMetricsRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetResourceGroupMetricsRequest) 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") + delete(f, "ResourceGroupId") + delete(f, "StartTime") + delete(f, "EndTime") + delete(f, "MetricType") + delete(f, "Granularity") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTaskVersionRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetResourceGroupMetricsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetTaskVersionResponseParams struct { - // 版本详情 +type GetResourceGroupMetricsResponseParams struct { + // 执行组指标信息 // 注意:此字段可能返回 null,表示取不到有效值。 - Data *TaskVersionDetail `json:"Data,omitnil,omitempty" name:"Data"` + Data *ResourceGroupMetrics `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetTaskVersionResponse struct { +type GetResourceGroupMetricsResponse struct { *tchttp.BaseResponse - Response *GetTaskVersionResponseParams `json:"Response"` + Response *GetResourceGroupMetricsResponseParams `json:"Response"` } -func (r *GetTaskVersionResponse) ToJsonString() string { +func (r *GetResourceGroupMetricsResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetResourceGroupMetricsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type GetWorkflowRequestParams struct { - // 项目ID +type GetSQLFolderRequestParams struct { + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 工作流ID 通过ListWorkflows接口获取 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + // 文件夹id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` } -type GetWorkflowRequest struct { +type GetSQLFolderRequest struct { *tchttp.BaseRequest - // 项目ID + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 工作流ID 通过ListWorkflows接口获取 - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + // 文件夹id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` } -func (r *GetWorkflowRequest) ToJsonString() string { +func (r *GetSQLFolderRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetSQLFolderRequest) 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, "FolderId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetWorkflowRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetSQLFolderRequest 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"` +type GetSQLFolderResponseParams struct { + // sql文件夹 + Data *SQLFolderNode `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type GetWorkflowResponse struct { +type GetSQLFolderResponse struct { *tchttp.BaseResponse - Response *GetWorkflowResponseParams `json:"Response"` + Response *GetSQLFolderResponseParams `json:"Response"` } -func (r *GetWorkflowResponse) ToJsonString() string { +func (r *GetSQLFolderResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *GetSQLFolderResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type InTaskParameter struct { - // 参数名 - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` +// Predefined struct for user +type GetSQLScriptRequestParams struct { + // 探索脚本Id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - // 参数描述:格式为 项目标识.任务名称.参数名;例:project_wedata_1.sh_250820_104107.pp_out - // 注意:此字段可能返回 null,表示取不到有效值。 - ParamDesc *string `json:"ParamDesc,omitnil,omitempty" name:"ParamDesc"` + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +} - // 父任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - FromTaskId *string `json:"FromTaskId,omitnil,omitempty" name:"FromTaskId"` +type GetSQLScriptRequest struct { + *tchttp.BaseRequest + + // 探索脚本Id + ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` - // 父任务参数key - // 注意:此字段可能返回 null,表示取不到有效值。 - FromParamKey *string `json:"FromParamKey,omitnil,omitempty" name:"FromParamKey"` + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` } -type InstanceExecution struct { - // 实例唯一标识 - // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` +func (r *GetSQLScriptRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // **实例生命周期编号,标识实例的某一次执行** - // - // 例如:周期实例第一次运行的编号为0,用户后期又重跑了该实例,第二次执行的编号为1 - // 注意:此字段可能返回 null,表示取不到有效值。 - LifeRoundNum *uint64 `json:"LifeRoundNum,omitnil,omitempty" name:"LifeRoundNum"` +// 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) +} - // **实例状态** - // - WAIT_EVENT: 等待事件 - // - WAIT_UPSTREAM: 等待上游 - // - WAIT_RUN: 等待运行 - // - RUNNING: 运行中 - // - SKIP_RUNNING: 跳过运行 - // - FAILED_RETRY: 失败重试 - // - EXPIRED: 失败 - // - COMPLETED: 成功 +// Predefined struct for user +type GetSQLScriptResponseParams struct { + // 脚本详情 // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceState *string `json:"InstanceState,omitnil,omitempty" name:"InstanceState"` + Data *SQLScript `json:"Data,omitnil,omitempty" name:"Data"` - // **实例运行触发类型** - // - // - 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"` + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} - // 失败重试次数 - // 注意:此字段可能返回 null,表示取不到有效值。 - Tries *uint64 `json:"Tries,omitnil,omitempty" name:"Tries"` +type GetSQLScriptResponse struct { + *tchttp.BaseResponse + Response *GetSQLScriptResponseParams `json:"Response"` +} - // **实例执行生命周期列表** - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecutionPhaseList []*InstanceExecutionPhase `json:"ExecutionPhaseList,omitnil,omitempty" name:"ExecutionPhaseList"` +func (r *GetSQLScriptResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 耗费时间, 单位ms - // 注意:此字段可能返回 null,表示取不到有效值。 - CostTime *int64 `json:"CostTime,omitnil,omitempty" name:"CostTime"` +// 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) } -type InstanceExecutionPhase struct { - // 该状态开始时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` +// Predefined struct for user +type GetTableColumnsRequestParams struct { + // 数据表GUID + TableGuid *string `json:"TableGuid,omitnil,omitempty" name:"TableGuid"` +} - // **实例生命周期阶段状态** - // - // - WAIT_UPSTREAM 表示 等待事件/上游状态 - // - WAIT_RUN 表示 等待运行状态 - // - RUNNING 表示 运行中状态 - // - COMPLETE 表示 终态-完成 - // - FAILED 表示 终态-失败重试 - // - EXPIRED 表示 终态-失败 - // - SKIP_RUNNING 表示 终态-被上游分支节点跳过的分支 - // - HISTORY 表示 兼容2024-03-30之前的历史实例,之后实例无需关注次枚举类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - DetailState *string `json:"DetailState,omitnil,omitempty" name:"DetailState"` +type GetTableColumnsRequest struct { + *tchttp.BaseRequest + + // 数据表GUID + TableGuid *string `json:"TableGuid,omitnil,omitempty" name:"TableGuid"` +} - // 该状态结束时间 +func (r *GetTableColumnsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTableColumnsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TableGuid") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTableColumnsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTableColumnsResponseParams struct { + // 表字段列表 // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + Data []*ColumnInfo `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type InstanceLog struct { - // 实例唯一标识 +type GetTableColumnsResponse struct { + *tchttp.BaseResponse + Response *GetTableColumnsResponseParams `json:"Response"` +} + +func (r *GetTableColumnsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTableColumnsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTableRequestParams struct { + // 表GUID + TableGuid *string `json:"TableGuid,omitnil,omitempty" name:"TableGuid"` +} + +type GetTableRequest struct { + *tchttp.BaseRequest + + // 表GUID + TableGuid *string `json:"TableGuid,omitnil,omitempty" name:"TableGuid"` +} + +func (r *GetTableRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTableRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TableGuid") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetTableRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GetTableResponseParams struct { + // 数据表详情 // 注意:此字段可能返回 null,表示取不到有效值。 + Data *TableInfo `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GetTableResponse struct { + *tchttp.BaseResponse + Response *GetTableResponseParams `json:"Response"` +} + +func (r *GetTableResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GetTableResponse) 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"` - // 项目ID - // 注意:此字段可能返回 null,表示取不到有效值。 + // **实例生命周期编号,标识实例的某一次执行**例如:周期实例第一次运行的编号为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"` - // **运行代码内容** - // 注意:此字段可能返回 null,表示取不到有效值。 - CodeContent *string `json:"CodeContent,omitnil,omitempty" name:"CodeContent"` + // **实例唯一标识** + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - // **日志内容** - // 注意:此字段可能返回 null,表示取不到有效值。 - LogInfo *string `json:"LogInfo,omitnil,omitempty" name:"LogInfo"` + // **实例生命周期编号,标识实例的某一次执行**例如:周期实例第一次运行的编号为0,用户后期又重跑了该实例,第二次执行的编号为1; 默认最新一次 + LifeRoundNum *uint64 `json:"LifeRoundNum,omitnil,omitempty" name:"LifeRoundNum"` - // **分页查询日志时使用,无具体业务含义** - // - // 第一次查询时值为null - // 第二次及以后查询时使用上一次查询返回信息中的NextCursor字段值即可 - // 注意:此字段可能返回 null,表示取不到有效值。 + // **日志级别** 默认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 JobDto struct { - // 数据探索任务ID +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,表示取不到有效值。 - JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` + 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) +} + +// Predefined struct for user +type GrantMemberProjectRoleRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 用户id + UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` + + // 角色id列表,目前支持的项目角色有 + // - 308335260274237440 (项目管理员) + // - 308335260676890624 (数据工程师) + // - 308335260844662784 (运维工程师) + // - 308335260945326080 (普通成员) + RoleIds []*string `json:"RoleIds,omitnil,omitempty" name:"RoleIds"` +} + +type GrantMemberProjectRoleRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 用户id + UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` + + // 角色id列表,目前支持的项目角色有 + // - 308335260274237440 (项目管理员) + // - 308335260676890624 (数据工程师) + // - 308335260844662784 (运维工程师) + // - 308335260945326080 (普通成员) + RoleIds []*string `json:"RoleIds,omitnil,omitempty" name:"RoleIds"` +} + +func (r *GrantMemberProjectRoleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GrantMemberProjectRoleRequest) 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, "UserUin") + delete(f, "RoleIds") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GrantMemberProjectRoleRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type GrantMemberProjectRoleResponseParams struct { + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type GrantMemberProjectRoleResponse struct { + *tchttp.BaseResponse + Response *GrantMemberProjectRoleResponseParams `json:"Response"` +} + +func (r *GrantMemberProjectRoleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *GrantMemberProjectRoleResponse) 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 IntegrationResource struct { + // 实时集成资源组 + // + // - i32c(实时数据同步-16C64G) + RealTimeDataSync *ResourceGroupSpecification `json:"RealTimeDataSync,omitnil,omitempty" name:"RealTimeDataSync"` + + // 离线集成资源组 + // + // - integrated(离线数据同步-8C16G) + // - i16(离线数据同步-8C32G) + OfflineDataSync *ResourceGroupSpecification `json:"OfflineDataSync,omitnil,omitempty" name:"OfflineDataSync"` +} + +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 LineageNodeInfo struct { + // 当前资源 + // 注意:此字段可能返回 null,表示取不到有效值。 + Resource *LineageResource `json:"Resource,omitnil,omitempty" name:"Resource"` + + // 关系 + // 注意:此字段可能返回 null,表示取不到有效值。 + Relation *LineageRelation `json:"Relation,omitnil,omitempty" name:"Relation"` +} + +type LineagePair struct { + // 来源 + Source *LineageResouce `json:"Source,omitnil,omitempty" name:"Source"` + + // 目标 + Target *LineageResouce `json:"Target,omitnil,omitempty" name:"Target"` + + // 血缘加工过程 + Processes []*LineageProcess `json:"Processes,omitnil,omitempty" name:"Processes"` +} + +type LineageProcess struct { + // 原始唯一ID + // 注意:此字段可能返回 null,表示取不到有效值。 + ProcessId *string `json:"ProcessId,omitnil,omitempty" name:"ProcessId"` + + // 任务类型 + // //调度任务 + // SCHEDULE_TASK, + // //集成任务 + // INTEGRATION_TASK, + // //第三方上报 + // THIRD_REPORT, + // //数据建模 + // TABLE_MODEL, + // //模型创建指标 + // MODEL_METRIC, + // //原子指标创建衍生指标 + // METRIC_METRIC, + // //数据服务 + // DATA_SERVICE + // 注意:此字段可能返回 null,表示取不到有效值。 + ProcessType *string `json:"ProcessType,omitnil,omitempty" name:"ProcessType"` + + // WEDATA, THIRD; + // 注意:此字段可能返回 null,表示取不到有效值。 + Platform *string `json:"Platform,omitnil,omitempty" name:"Platform"` + + // 任务子类型 + // SQL_TASK, + // //集成实时任务血缘 + // INTEGRATED_STREAM, + // //集成离线任务血缘 + // INTEGRATED_OFFLINE; + // 注意:此字段可能返回 null,表示取不到有效值。 + ProcessSubType *string `json:"ProcessSubType,omitnil,omitempty" name:"ProcessSubType"` + + // 额外扩展参数 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProcessProperties []*LineageProperty `json:"ProcessProperties,omitnil,omitempty" name:"ProcessProperties"` + + // 血缘任务唯一节点ID + LineageNodeId *string `json:"LineageNodeId,omitnil,omitempty" name:"LineageNodeId"` +} + +type LineageProperty struct { + // 属性名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 属性值 + // 注意:此字段可能返回 null,表示取不到有效值。 + Value *string `json:"Value,omitnil,omitempty" name:"Value"` +} + +type LineageRelation struct { + // 关联ID + // 注意:此字段可能返回 null,表示取不到有效值。 + RelationId *string `json:"RelationId,omitnil,omitempty" name:"RelationId"` + + // 源端唯一血缘ID + // 注意:此字段可能返回 null,表示取不到有效值。 + SourceUniqueId *string `json:"SourceUniqueId,omitnil,omitempty" name:"SourceUniqueId"` + + // 目标端唯一血缘ID + // 注意:此字段可能返回 null,表示取不到有效值。 + TargetUniqueId *string `json:"TargetUniqueId,omitnil,omitempty" name:"TargetUniqueId"` + + // 血缘加工过程 + // 注意:此字段可能返回 null,表示取不到有效值。 + Processes []*LineageProcess `json:"Processes,omitnil,omitempty" name:"Processes"` +} + +type LineageResouce struct { + // 实体原始唯一ID\n + // 备注:当血缘为表的列时候 唯一ID传表ResourceUniqueId::字段名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceUniqueId *string `json:"ResourceUniqueId,omitnil,omitempty" name:"ResourceUniqueId"` + + // 实体类型 + // TABLE|METRIC|MODEL|SERVICE|COLUMN + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceType *string `json:"ResourceType,omitnil,omitempty" name:"ResourceType"` + + // 来源:WEDATA|THIRD + // 默认wedata + // 注意:此字段可能返回 null,表示取不到有效值。 + Platform *string `json:"Platform,omitnil,omitempty" name:"Platform"` + + // 业务名称:库名.表名|指标名称|模型名称|字段名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // 描述:表类型|指标描述|模型描述|字段描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 更新时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // resource 额外扩展参数 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceProperties []*LineageProperty `json:"ResourceProperties,omitnil,omitempty" name:"ResourceProperties"` + + // 血缘节点唯一标识符号 + LineageNodeId *string `json:"LineageNodeId,omitnil,omitempty" name:"LineageNodeId"` +} + +type LineageResource struct { + // 实体原始唯一ID + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceUniqueId *string `json:"ResourceUniqueId,omitnil,omitempty" name:"ResourceUniqueId"` + + // 业务名称:库名.表名|指标名称|模型名称|字段名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceName *string `json:"ResourceName,omitnil,omitempty" name:"ResourceName"` + + // 实体类型 + // TABLE|METRIC|MODEL|SERVICE|COLUMN + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceType *string `json:"ResourceType,omitnil,omitempty" name:"ResourceType"` + + // 血缘节点唯一标识符号 + // 注意:此字段可能返回 null,表示取不到有效值。 + LineageNodeId *string `json:"LineageNodeId,omitnil,omitempty" name:"LineageNodeId"` + + // 描述:表类型|指标描述|模型描述|字段描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 来源:WEDATA|THIRD + // 默认wedata + // 注意:此字段可能返回 null,表示取不到有效值。 + Platform *string `json:"Platform,omitnil,omitempty" name:"Platform"` + + // 创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 更新时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // resource 额外扩展参数 + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceProperties []*LineageProperty `json:"ResourceProperties,omitnil,omitempty" name:"ResourceProperties"` +} + +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"` +} + +type ListCatalogPage struct { + // 目录记录列表 + Items []*CatalogInfo `json:"Items,omitnil,omitempty" name:"Items"` + + // 分页总页数 + PageCount *int64 `json:"PageCount,omitnil,omitempty" name:"PageCount"` + + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 记录总数 + TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` +} + +// Predefined struct for user +type ListCatalogRequestParams struct { + // 页码,从1开始 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小,最大500 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 父目录ID + ParentCatalogId *string `json:"ParentCatalogId,omitnil,omitempty" name:"ParentCatalogId"` +} + +type ListCatalogRequest struct { + *tchttp.BaseRequest + + // 页码,从1开始 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小,最大500 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 父目录ID + ParentCatalogId *string `json:"ParentCatalogId,omitnil,omitempty" name:"ParentCatalogId"` +} + +func (r *ListCatalogRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListCatalogRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "ParentCatalogId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListCatalogRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListCatalogResponseParams struct { + // 分页数据 + Data *ListCatalogPage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListCatalogResponse struct { + *tchttp.BaseResponse + Response *ListCatalogResponseParams `json:"Response"` +} + +func (r *ListCatalogResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListCatalogResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// 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 ListColumnLineageRequestParams struct { + // 表唯一ID + TableUniqueId *string `json:"TableUniqueId,omitnil,omitempty" name:"TableUniqueId"` + + // 血缘方向 INPUT|OUTPUT + Direction *string `json:"Direction,omitnil,omitempty" name:"Direction"` + + // 页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 列名称 + ColumnName *string `json:"ColumnName,omitnil,omitempty" name:"ColumnName"` + + // 来源:WEDATA|THIRD 默认WEDATA + Platform *string `json:"Platform,omitnil,omitempty" name:"Platform"` +} + +type ListColumnLineageRequest struct { + *tchttp.BaseRequest + + // 表唯一ID + TableUniqueId *string `json:"TableUniqueId,omitnil,omitempty" name:"TableUniqueId"` + + // 血缘方向 INPUT|OUTPUT + Direction *string `json:"Direction,omitnil,omitempty" name:"Direction"` + + // 页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 列名称 + ColumnName *string `json:"ColumnName,omitnil,omitempty" name:"ColumnName"` + + // 来源:WEDATA|THIRD 默认WEDATA + Platform *string `json:"Platform,omitnil,omitempty" name:"Platform"` +} + +func (r *ListColumnLineageRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListColumnLineageRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TableUniqueId") + delete(f, "Direction") + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "ColumnName") + delete(f, "Platform") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListColumnLineageRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListColumnLineageResponseParams struct { + // 分页数据 + Data *ListLineagePage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListColumnLineageResponse struct { + *tchttp.BaseResponse + Response *ListColumnLineageResponseParams `json:"Response"` +} + +func (r *ListColumnLineageResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListColumnLineageResponse) 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"` - // 数据探索任务名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - JobName *string `json:"JobName,omitnil,omitempty" name:"JobName"` + // 页码 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 任务类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - JobType *string `json:"JobType,omitnil,omitempty" name:"JobType"` + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} - // 脚本ID - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptId *string `json:"ScriptId,omitnil,omitempty" name:"ScriptId"` +type ListDataBackfillInstancesRequest struct { + *tchttp.BaseRequest + + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 子任务列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - JobExecutionList []*JobExecutionDto `json:"JobExecutionList,omitnil,omitempty" name:"JobExecutionList"` + // 补录计划Id + DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` - // 脚本内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - // 任务状态 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` + // 页码 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 任务创建时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} - // 更新时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` +func (r *ListDataBackfillInstancesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 结束时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` +// 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) +} - // 云主账号UIN - // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` +// Predefined struct for user +type ListDataBackfillInstancesResponseParams struct { + // 单个补录计划下的所有补录实例 + Data *BackfillInstanceCollection `json:"Data,omitnil,omitempty" name:"Data"` - // 账号UIN - // 注意:此字段可能返回 null,表示取不到有效值。 - UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} - // 耗时 - // 注意:此字段可能返回 null,表示取不到有效值。 - TimeCost *int64 `json:"TimeCost,omitnil,omitempty" name:"TimeCost"` +type ListDataBackfillInstancesResponse struct { + *tchttp.BaseResponse + Response *ListDataBackfillInstancesResponseParams `json:"Response"` +} - // 是否脚本内容被截断 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptContentTruncate *bool `json:"ScriptContentTruncate,omitnil,omitempty" name:"ScriptContentTruncate"` +func (r *ListDataBackfillInstancesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) } -type JobExecutionDto struct { - // 数据探索任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - JobId *string `json:"JobId,omitnil,omitempty" name:"JobId"` +// 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) +} - // 子查询任务ID - // 注意:此字段可能返回 null,表示取不到有效值。 - JobExecutionId *string `json:"JobExecutionId,omitnil,omitempty" name:"JobExecutionId"` +// Predefined struct for user +type ListDataSourcesRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 子查询名称 - // 注意:此字段可能返回 null,表示取不到有效值。 - JobExecutionName *string `json:"JobExecutionName,omitnil,omitempty" name:"JobExecutionName"` + // 返回数量,默认10 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - // 子查询sql内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptContent *string `json:"ScriptContent,omitnil,omitempty" name:"ScriptContent"` + // 页码,默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 子查询状态 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` + // 数据源名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` - // 创建时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + // 数据源展示名 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` - // 执行阶段 - // 注意:此字段可能返回 null,表示取不到有效值。 - ExecuteStageInfo *string `json:"ExecuteStageInfo,omitnil,omitempty" name:"ExecuteStageInfo"` + // 数据源类型:枚举值 + // + // - MYSQL + // - TENCENT_MYSQL + // - POSTGRE + // - ORACLE + // - SQLSERVER + // - FTP + // - HIVE + // - HUDI + // - HDFS + // - ICEBERG + // - KAFKA + // - HBASE + // - SPARK + // - VIRTUAL + // - TBASE + // - DB2 + // - DM + // - GAUSSDB + // - GBASE + // - IMPALA + // - ES + // - TENCENT_ES + // - GREENPLUM + // - PHOENIX + // - SAP_HANA + // - SFTP + // - OCEANBASE + // - CLICKHOUSE + // - KUDU + // - VERTICA + // - REDIS + // - COS + // - DLC + // - DORIS + // - CKAFKA + // - S3 + // - TDSQL + // - TDSQL_MYSQL + // - MONGODB + // - TENCENT_MONGODB + // - REST_API + // - SuperSQL + // - PRESTO + // - TiDB + // - StarRocks + // - Trino + // - Kyuubi + // - TCHOUSE_X + // - TCHOUSE_P + // - TCHOUSE_C + // - TCHOUSE_D + // - INFLUXDB + // - BIG_QUERY + // - SSH + // - BLOB + Type []*string `json:"Type,omitnil,omitempty" name:"Type"` - // 日志路径 - // 注意:此字段可能返回 null,表示取不到有效值。 - LogFilePath *string `json:"LogFilePath,omitnil,omitempty" name:"LogFilePath"` + // 创建人 + Creator *string `json:"Creator,omitnil,omitempty" name:"Creator"` +} - // 下载结果路径 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultFilePath *string `json:"ResultFilePath,omitnil,omitempty" name:"ResultFilePath"` +type ListDataSourcesRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 预览结果路径 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultPreviewFilePath *string `json:"ResultPreviewFilePath,omitnil,omitempty" name:"ResultPreviewFilePath"` + // 返回数量,默认10 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - // 任务执行的结果总行数 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultTotalCount *int64 `json:"ResultTotalCount,omitnil,omitempty" name:"ResultTotalCount"` + // 页码,默认1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 更新时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + // 数据源名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` - // 结束时间 - // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` + // 数据源展示名 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` - // 耗时 - // 注意:此字段可能返回 null,表示取不到有效值。 - TimeCost *int64 `json:"TimeCost,omitnil,omitempty" name:"TimeCost"` + // 数据源类型:枚举值 + // + // - MYSQL + // - TENCENT_MYSQL + // - POSTGRE + // - ORACLE + // - SQLSERVER + // - FTP + // - HIVE + // - HUDI + // - HDFS + // - ICEBERG + // - KAFKA + // - HBASE + // - SPARK + // - VIRTUAL + // - TBASE + // - DB2 + // - DM + // - GAUSSDB + // - GBASE + // - IMPALA + // - ES + // - TENCENT_ES + // - GREENPLUM + // - PHOENIX + // - SAP_HANA + // - SFTP + // - OCEANBASE + // - CLICKHOUSE + // - KUDU + // - VERTICA + // - REDIS + // - COS + // - DLC + // - DORIS + // - CKAFKA + // - S3 + // - TDSQL + // - TDSQL_MYSQL + // - MONGODB + // - TENCENT_MONGODB + // - REST_API + // - SuperSQL + // - PRESTO + // - TiDB + // - StarRocks + // - Trino + // - Kyuubi + // - TCHOUSE_X + // - TCHOUSE_P + // - TCHOUSE_C + // - TCHOUSE_D + // - INFLUXDB + // - BIG_QUERY + // - SSH + // - BLOB + Type []*string `json:"Type,omitnil,omitempty" name:"Type"` - // 上下文SQL内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - ContextScriptContent []*string `json:"ContextScriptContent,omitnil,omitempty" name:"ContextScriptContent"` + // 创建人 + Creator *string `json:"Creator,omitnil,omitempty" name:"Creator"` +} - // 任务执行的结果预览行数 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultPreviewCount *int64 `json:"ResultPreviewCount,omitnil,omitempty" name:"ResultPreviewCount"` +func (r *ListDataSourcesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 任务执行的结果影响行数 - // 注意:此字段可能返回 null,表示取不到有效值。 - ResultEffectCount *int64 `json:"ResultEffectCount,omitnil,omitempty" name:"ResultEffectCount"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDataSourcesRequest) 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, "Name") + delete(f, "DisplayName") + delete(f, "Type") + delete(f, "Creator") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDataSourcesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} - // 是否正在收集全量结果:默认false,true表示正在收集全量结果,用于前端判断是否需要继续轮询 +// Predefined struct for user +type ListDataSourcesResponseParams struct { + // 数据源列表 // 注意:此字段可能返回 null,表示取不到有效值。 - CollectingTotalResult *bool `json:"CollectingTotalResult,omitnil,omitempty" name:"CollectingTotalResult"` + Data *DataSourceInfo `json:"Data,omitnil,omitempty" name:"Data"` - // 是否需要截断脚本内容 - // 注意:此字段可能返回 null,表示取不到有效值。 - ScriptContentTruncate *bool `json:"ScriptContentTruncate,omitnil,omitempty" name:"ScriptContentTruncate"` + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type KVMap struct { - // k - // 注意:此字段可能返回 null,表示取不到有效值。 - K *string `json:"K,omitnil,omitempty" name:"K"` +type ListDataSourcesResponse struct { + *tchttp.BaseResponse + Response *ListDataSourcesResponseParams `json:"Response"` +} - // v - // 注意:此字段可能返回 null,表示取不到有效值。 - V *string `json:"V,omitnil,omitempty" name:"V"` +func (r *ListDataSourcesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) } -type KVPair struct { - // 键名 - // 注意:此字段可能返回 null,表示取不到有效值。 - K *string `json:"K,omitnil,omitempty" name:"K"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListDataSourcesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} - // 值,请勿传SQL(请求会被视为攻击接口),如果有需要,请将SQL进行Base64转码并解码。 - // 注意:此字段可能返回 null,表示取不到有效值。 - V *string `json:"V,omitnil,omitempty" name:"V"` +type ListDatabasePage struct { + // 数据库记录列表 + Items []*DatabaseInfo `json:"Items,omitnil,omitempty" name:"Items"` + + // 分页总页数 + PageCount *int64 `json:"PageCount,omitnil,omitempty" name:"PageCount"` + + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 记录总数 + TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` } // Predefined struct for user -type KillTaskInstancesAsyncRequestParams struct { - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +type ListDatabaseRequestParams struct { + // 页码,从1开始 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 实例id列表,可以从ListInstances中获取 - InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` + // 分页大小,最大500 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 目录名称 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` + + // 数据源ID + DatasourceId *int64 `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` + + // 数据库名称搜索关键字 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` } -type KillTaskInstancesAsyncRequest struct { +type ListDatabaseRequest struct { *tchttp.BaseRequest - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + // 页码,从1开始 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 实例id列表,可以从ListInstances中获取 - InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` + // 分页大小,最大500 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 目录名称 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` + + // 数据源ID + DatasourceId *int64 `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` + + // 数据库名称搜索关键字 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` } -func (r *KillTaskInstancesAsyncRequest) ToJsonString() string { +func (r *ListDatabaseRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListDatabaseRequest) 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, "PageNumber") + delete(f, "PageSize") + delete(f, "CatalogName") + delete(f, "DatasourceId") + delete(f, "Keyword") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "KillTaskInstancesAsyncRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDatabaseRequest 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"` +type ListDatabaseResponseParams struct { + // 分页数据 + Data *ListDatabasePage `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type KillTaskInstancesAsyncResponse struct { +type ListDatabaseResponse struct { *tchttp.BaseResponse - Response *KillTaskInstancesAsyncResponseParams `json:"Response"` + Response *ListDatabaseResponseParams `json:"Response"` } -func (r *KillTaskInstancesAsyncResponse) ToJsonString() string { +func (r *ListDatabaseResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListDatabaseResponse) 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"` +type ListDownstreamOpsTasksRequestParams struct { + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - // 告警级别 - AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 告警接收人Id - AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` + // 分页页码 + PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 对于传入和返回的过滤时区, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + // 分页大小 + PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` } -type ListAlarmMessagesRequest struct { +type ListDownstreamOpsTasksRequest 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"` + // 任务Id + TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` - // 告警级别 - AlarmLevel *uint64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + // 项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 告警接收人Id - AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` + // 分页页码 + PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 对于传入和返回的过滤时区, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + // 分页大小 + PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` } -func (r *ListAlarmMessagesRequest) ToJsonString() string { +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 *ListAlarmMessagesRequest) FromJsonString(s string) error { +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") - 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 tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamOpsTasksRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListAlarmMessagesResponseParams struct { - // 告警信息列表 - Data *ListAlarmMessages `json:"Data,omitnil,omitempty" name:"Data"` +type ListDownstreamOpsTasksResponseParams struct { + // 下游依赖详情 + Data *ChildDependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListAlarmMessagesResponse struct { +type ListDownstreamOpsTasksResponse struct { *tchttp.BaseResponse - Response *ListAlarmMessagesResponseParams `json:"Response"` + Response *ListDownstreamOpsTasksResponseParams `json:"Response"` } -func (r *ListAlarmMessagesResponse) ToJsonString() string { +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 *ListAlarmMessagesResponse) FromJsonString(s string) error { +func (r *ListDownstreamOpsTasksResponse) 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 +type ListDownstreamTaskInstancesRequestParams struct { + // 项目Id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + // **实例唯一标识** + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - // 文件夹名称/代码文件名称搜索 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + // **时区** timeZone, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - // 只查询文件夹 - OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` + // **页码,整型**配合pageSize使用且不能小于1, 默认值1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 是否只查询用户自己创建的代码文件 - OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` + // **每页显示的条数,默认为10,最小值为1、最大值为100 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` } -type ListCodeFolderContentsRequest struct { +type ListDownstreamTaskInstancesRequest struct { *tchttp.BaseRequest - // 项目ID + // 项目Id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 父文件夹path,例如/aaa/bbb/ccc,路径头需带斜杠,根目录传/ - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + // **实例唯一标识** + InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` - // 文件夹名称/代码文件名称搜索 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + // **时区** timeZone, 默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` - // 只查询文件夹 - OnlyFolderNode *bool `json:"OnlyFolderNode,omitnil,omitempty" name:"OnlyFolderNode"` + // **页码,整型**配合pageSize使用且不能小于1, 默认值1 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 是否只查询用户自己创建的代码文件 - OnlyUserSelfScript *bool `json:"OnlyUserSelfScript,omitnil,omitempty" name:"OnlyUserSelfScript"` + // **每页显示的条数,默认为10,最小值为1、最大值为100 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` } -func (r *ListCodeFolderContentsRequest) ToJsonString() string { +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 *ListCodeFolderContentsRequest) FromJsonString(s string) error { +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, "ParentFolderPath") - delete(f, "Keyword") - delete(f, "OnlyFolderNode") - delete(f, "OnlyUserSelfScript") + delete(f, "InstanceKey") + delete(f, "TimeZone") + delete(f, "PageNumber") + delete(f, "PageSize") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListCodeFolderContentsRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamTaskInstancesRequest 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"` +type ListDownstreamTaskInstancesResponseParams struct { + // 直接下游实例列表 + Data *TaskInstancePage `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListCodeFolderContentsResponse struct { +type ListDownstreamTaskInstancesResponse struct { *tchttp.BaseResponse - Response *ListCodeFolderContentsResponseParams `json:"Response"` + Response *ListDownstreamTaskInstancesResponseParams `json:"Response"` } -func (r *ListCodeFolderContentsResponse) ToJsonString() string { +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 *ListCodeFolderContentsResponse) FromJsonString(s string) error { +func (r *ListDownstreamTaskInstancesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListDataBackfillInstancesRequestParams struct { - // 所属项目Id +type ListDownstreamTasksRequestParams struct { + // 项目ID ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 补录计划Id - DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` - - // 任务Id + // 任务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 { +type ListDownstreamTasksRequest struct { *tchttp.BaseRequest - // 所属项目Id + // 项目ID ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 补录计划Id - DataBackfillPlanId *string `json:"DataBackfillPlanId,omitnil,omitempty" name:"DataBackfillPlanId"` - - // 任务Id + // 任务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 { +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 *ListDataBackfillInstancesRequest) FromJsonString(s string) error { +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, "DataBackfillPlanId") delete(f, "TaskId") delete(f, "PageNumber") delete(f, "PageSize") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDataBackfillInstancesRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamTasksRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListDataBackfillInstancesResponseParams struct { - // 单个补录计划下的所有补录实例 - Data *BackfillInstanceCollection `json:"Data,omitnil,omitempty" name:"Data"` +type ListDownstreamTasksResponseParams struct { + // 下游依赖详情 + Data *DependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListDataBackfillInstancesResponse struct { +type ListDownstreamTasksResponse struct { *tchttp.BaseResponse - Response *ListDataBackfillInstancesResponseParams `json:"Response"` + Response *ListDownstreamTasksResponseParams `json:"Response"` } -func (r *ListDataBackfillInstancesResponse) ToJsonString() string { +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 *ListDataBackfillInstancesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) +// 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) +} + +type ListLineagePage struct { + // 血缘记录列表 + Items []*LineageNodeInfo `json:"Items,omitnil,omitempty" name:"Items"` + + // 分页总页数 + PageCount *int64 `json:"PageCount,omitnil,omitempty" name:"PageCount"` + + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 记录总数 + TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` } // Predefined struct for user -type ListDownstreamOpsTasksRequestParams struct { - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` +type ListLineageRequestParams struct { + // 实体唯一ID + ResourceUniqueId *string `json:"ResourceUniqueId,omitnil,omitempty" name:"ResourceUniqueId"` - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + // 实体类型 TABLE|METRIC|MODEL|SERVICE|COLUMN + ResourceType *string `json:"ResourceType,omitnil,omitempty" name:"ResourceType"` - // 分页页码 - PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 血缘方向 INPUT|OUTPUT + Direction *string `json:"Direction,omitnil,omitempty" name:"Direction"` + + // 页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` // 分页大小 - PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 来源:WEDATA|THIRD 默认WEDATA + Platform *string `json:"Platform,omitnil,omitempty" name:"Platform"` } -type ListDownstreamOpsTasksRequest struct { +type ListLineageRequest struct { *tchttp.BaseRequest - // 任务Id - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + // 实体唯一ID + ResourceUniqueId *string `json:"ResourceUniqueId,omitnil,omitempty" name:"ResourceUniqueId"` - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + // 实体类型 TABLE|METRIC|MODEL|SERVICE|COLUMN + ResourceType *string `json:"ResourceType,omitnil,omitempty" name:"ResourceType"` - // 分页页码 - PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 血缘方向 INPUT|OUTPUT + Direction *string `json:"Direction,omitnil,omitempty" name:"Direction"` + + // 页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` // 分页大小 - PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 来源:WEDATA|THIRD 默认WEDATA + Platform *string `json:"Platform,omitnil,omitempty" name:"Platform"` } -func (r *ListDownstreamOpsTasksRequest) ToJsonString() string { +func (r *ListLineageRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListLineageRequest) 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, "ResourceUniqueId") + delete(f, "ResourceType") + delete(f, "Direction") delete(f, "PageNumber") delete(f, "PageSize") + delete(f, "Platform") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListDownstreamOpsTasksRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListLineageRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListDownstreamOpsTasksResponseParams struct { - // 下游依赖详情 - Data *ChildDependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` +type ListLineageResponseParams struct { + // 分页数据 + Data *ListLineagePage `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListDownstreamOpsTasksResponse struct { +type ListLineageResponse struct { *tchttp.BaseResponse - Response *ListDownstreamOpsTasksResponseParams `json:"Response"` + Response *ListLineageResponseParams `json:"Response"` } -func (r *ListDownstreamOpsTasksResponse) ToJsonString() string { +func (r *ListLineageResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListLineageResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListDownstreamTaskInstancesRequestParams struct { - // 项目Id +type ListOpsAlarmRulesRequestParams struct { + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // **实例唯一标识** - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + // 分页的页数,默认为1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // **时区** timeZone, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + // 每页显示的条数,默认为20,最小值为1、最大值为200 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - // **页码,整型**配合pageSize使用且不能小于1, 默认值1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 监控对象类型, 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 + MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` - // **每页显示的条数,默认为10,最小值为1、最大值为100 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + // 根据任务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 ListDownstreamTaskInstancesRequest struct { +type ListOpsAlarmRulesRequest struct { *tchttp.BaseRequest - // 项目Id + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // **实例唯一标识** - InstanceKey *string `json:"InstanceKey,omitnil,omitempty" name:"InstanceKey"` + // 分页的页数,默认为1 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // **时区** timeZone, 默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + // 每页显示的条数,默认为20,最小值为1、最大值为200 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - // **页码,整型**配合pageSize使用且不能小于1, 默认值1 - PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 监控对象类型, 任务维度监控: 可按照任务/工作流/项目来配置:1.任务、2.工作流、3.项目(默认为1.任务) 项目维度监控: 项目整体任务波动告警, 7:项目波动监控告警 + MonitorObjectType *int64 `json:"MonitorObjectType,omitnil,omitempty" name:"MonitorObjectType"` - // **每页显示的条数,默认为10,最小值为1、最大值为100 - PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + // 根据任务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 *ListDownstreamTaskInstancesRequest) ToJsonString() string { +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 *ListDownstreamTaskInstancesRequest) FromJsonString(s string) error { +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, "InstanceKey") - delete(f, "TimeZone") 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", "ListDownstreamTaskInstancesRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsAlarmRulesRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListDownstreamTaskInstancesResponseParams struct { - // 直接下游实例列表 - Data *TaskInstancePage `json:"Data,omitnil,omitempty" name:"Data"` +type ListOpsAlarmRulesResponseParams struct { + // 告警信息信息响应 + Data *ListAlarmRulesResult `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListDownstreamTaskInstancesResponse struct { +type ListOpsAlarmRulesResponse struct { *tchttp.BaseResponse - Response *ListDownstreamTaskInstancesResponseParams `json:"Response"` + Response *ListOpsAlarmRulesResponseParams `json:"Response"` } -func (r *ListDownstreamTaskInstancesResponse) ToJsonString() string { +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 *ListDownstreamTaskInstancesResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) -} +// 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"` -// Predefined struct for user -type ListDownstreamTasksRequestParams struct { - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + // 目标数据源id + TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` - // 任务ID - TaskId *string `json:"TaskId,omitnil,omitempty" name:"TaskId"` + // 资源组id + ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` - // 分页大小 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 任务周期类型 + // * 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"` - // 分页页码 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + // 任务状态: + // - Y: 运行 + // - F: 停止 + // - O: 冻结 + // - T: 停止中 + // - INVALID: 已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` + + // 时区, 默认默认UTC+8 + TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` } -type ListDownstreamTasksRequest struct { +type ListOpsTasksRequest struct { *tchttp.BaseRequest - // 项目ID + // 项目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 *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` // 分页页码 - PageSize *uint64 `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 *ListDownstreamTasksRequest) ToJsonString() string { +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 *ListDownstreamTasksRequest) FromJsonString(s string) error { +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, "TaskId") - delete(f, "PageNumber") 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", "ListDownstreamTasksRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsTasksRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListDownstreamTasksResponseParams struct { - // 下游依赖详情 - Data *DependencyConfigPage `json:"Data,omitnil,omitempty" name:"Data"` +type ListOpsTasksResponseParams struct { + // 任务列表 + Data *ListOpsTasksPage `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListDownstreamTasksResponse struct { +type ListOpsTasksResponse struct { *tchttp.BaseResponse - Response *ListDownstreamTasksResponseParams `json:"Response"` + Response *ListOpsTasksResponseParams `json:"Response"` } -func (r *ListDownstreamTasksResponse) ToJsonString() string { +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 *ListDownstreamTasksResponse) FromJsonString(s string) error { +func (r *ListOpsTasksResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListOpsAlarmRulesRequestParams struct { - // 项目id +type ListOpsWorkflowsRequestParams 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"` + // 文件Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - // 查询配置对应告警类型的告警规则 - // 告警规则监控类型 failure:失败告警 ;overtime:超时告警 success:成功告警; backTrackingOrRerunSuccess: 补录重跑成功告警 backTrackingOrRerunFailure:补录重跑失败告警; - // 项目波动告警 - // projectFailureInstanceUpwardFluctuationAlarm: 当天失败实例数向上波动率超过阀值告警; projectSuccessInstanceDownwardFluctuationAlarm:当天成功实例数向下波动率超过阀值告警; - // 离线集成任务对账告警: reconciliationFailure: 离线对账任务失败告警 reconciliationOvertime: 离线对账任务运行超时告警 reconciliationMismatch: 数据对账任务不一致条数超过阀值告警 - AlarmType *string `json:"AlarmType,omitnil,omitempty" name:"AlarmType"` + // 工作流状态筛选 + // * ALL_RUNNING : 全部调度中 + // * ALL_FREEZED : 全部已暂停 + // * ALL_STOPPTED : 全部已下线 + // * PART_RUNNING : 部分调度中 + // * ALL_NO_RUNNING : 全部未调度 + // * ALL_INVALID : 全部已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` - // 查询配置了对应告警级别的告警规则 - // 告警级别 1.普通、2.重要、3.紧急 - AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + // 负责人Id + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - // 查询配置对应告警接收人的告警规则 - AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` + // 工作流类型筛选, 支持值 Cycle或Manual. 默认只查询 Cycle + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - // 根据告警规则id/规则名称查询对应的告警规则 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + // 工作流关键词过滤,支持工作流 Id/name 模糊匹配 + KeyWord *string `json:"KeyWord,omitnil,omitempty" name:"KeyWord"` - // 告警规则创建人过滤 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + // 排序项,可选CreateTime、TaskCount + SortItem *string `json:"SortItem,omitnil,omitempty" name:"SortItem"` - // 告警规则创建时间范围起始时间, 格式如2025-08-17 00:00:00 - CreateTimeFrom *string `json:"CreateTimeFrom,omitnil,omitempty" name:"CreateTimeFrom"` + // 排序方式,DESC或ASC, 大写 + SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` - // 告警规则创建时间范围结束时间,格式如"2025-08-26 23:59:59" - CreateTimeTo *string `json:"CreateTimeTo,omitnil,omitempty" name:"CreateTimeTo"` + // 创建人Id + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - // 最后更新时间过滤告警规则, 格式如"2025-08-26 00:00:00" - UpdateTimeFrom *string `json:"UpdateTimeFrom,omitnil,omitempty" name:"UpdateTimeFrom"` + // 更新时间,格式yyyy-MM-dd HH:mm:ss + ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` - // 最后更新时间过滤告警规则 格式如: "2025-08-26 23:59:59" - UpdateTimeTo *string `json:"UpdateTimeTo,omitnil,omitempty" name:"UpdateTimeTo"` + // 创建时间,格式yyyy-MM-dd HH:mm:ss + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` } -type ListOpsAlarmRulesRequest struct { +type ListOpsWorkflowsRequest struct { *tchttp.BaseRequest - // 项目id + // 项目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"` + // 文件Id + FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` - // 查询配置了对应告警级别的告警规则 - // 告警级别 1.普通、2.重要、3.紧急 - AlarmLevel *int64 `json:"AlarmLevel,omitnil,omitempty" name:"AlarmLevel"` + // 工作流状态筛选 + // * ALL_RUNNING : 全部调度中 + // * ALL_FREEZED : 全部已暂停 + // * ALL_STOPPTED : 全部已下线 + // * PART_RUNNING : 部分调度中 + // * ALL_NO_RUNNING : 全部未调度 + // * ALL_INVALID : 全部已失效 + Status *string `json:"Status,omitnil,omitempty" name:"Status"` - // 查询配置对应告警接收人的告警规则 - AlarmRecipientId *string `json:"AlarmRecipientId,omitnil,omitempty" name:"AlarmRecipientId"` + // 负责人Id + OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` - // 根据告警规则id/规则名称查询对应的告警规则 - Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` + // 工作流类型筛选, 支持值 Cycle或Manual. 默认只查询 Cycle + WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` - // 告警规则创建人过滤 - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + // 工作流关键词过滤,支持工作流 Id/name 模糊匹配 + KeyWord *string `json:"KeyWord,omitnil,omitempty" name:"KeyWord"` - // 告警规则创建时间范围起始时间, 格式如2025-08-17 00:00:00 - CreateTimeFrom *string `json:"CreateTimeFrom,omitnil,omitempty" name:"CreateTimeFrom"` + // 排序项,可选CreateTime、TaskCount + SortItem *string `json:"SortItem,omitnil,omitempty" name:"SortItem"` - // 告警规则创建时间范围结束时间,格式如"2025-08-26 23:59:59" - CreateTimeTo *string `json:"CreateTimeTo,omitnil,omitempty" name:"CreateTimeTo"` + // 排序方式,DESC或ASC, 大写 + SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` - // 最后更新时间过滤告警规则, 格式如"2025-08-26 00:00:00" - UpdateTimeFrom *string `json:"UpdateTimeFrom,omitnil,omitempty" name:"UpdateTimeFrom"` + // 创建人Id + CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` - // 最后更新时间过滤告警规则 格式如: "2025-08-26 23:59:59" - UpdateTimeTo *string `json:"UpdateTimeTo,omitnil,omitempty" name:"UpdateTimeTo"` + // 更新时间,格式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 *ListOpsAlarmRulesRequest) ToJsonString() string { +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 *ListOpsAlarmRulesRequest) FromJsonString(s string) error { +func (r *ListOpsWorkflowsRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err @@ -4477,436 +7992,401 @@ func (r *ListOpsAlarmRulesRequest) FromJsonString(s string) error { 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, "FolderId") + delete(f, "Status") + delete(f, "OwnerUin") + delete(f, "WorkflowType") + delete(f, "KeyWord") + delete(f, "SortItem") + delete(f, "SortType") delete(f, "CreateUserUin") - delete(f, "CreateTimeFrom") - delete(f, "CreateTimeTo") - delete(f, "UpdateTimeFrom") - delete(f, "UpdateTimeTo") + delete(f, "ModifyTime") + delete(f, "CreateTime") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsAlarmRulesRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListOpsWorkflowsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListOpsAlarmRulesResponseParams struct { - // 告警信息信息响应 - Data *ListAlarmRulesResult `json:"Data,omitnil,omitempty" name:"Data"` +type ListOpsWorkflowsResponseParams struct { + // 工作流列表 + Data *OpsWorkflows `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListOpsAlarmRulesResponse struct { +type ListOpsWorkflowsResponse struct { *tchttp.BaseResponse - Response *ListOpsAlarmRulesResponseParams `json:"Response"` + Response *ListOpsWorkflowsResponseParams `json:"Response"` } -func (r *ListOpsAlarmRulesResponse) ToJsonString() string { +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 *ListOpsAlarmRulesResponse) FromJsonString(s string) error { +func (r *ListOpsWorkflowsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ListOpsTasksPage struct { - // 结果总数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` +type ListProcessLineagePage struct { + // 血缘pair列表 + Items []*LineagePair `json:"Items,omitnil,omitempty" name:"Items"` - // 总页数 - // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + // 分页总页数 + PageCount *int64 `json:"PageCount,omitnil,omitempty" name:"PageCount"` - // 记录列表 - // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*TaskOpsInfo `json:"Items,omitnil,omitempty" name:"Items"` + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - // 页码 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 分页页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 分页大小 - // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + // 记录总数 + TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` } // 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"` +type ListProcessLineageRequestParams struct { + // 任务唯一ID + ProcessId *string `json:"ProcessId,omitnil,omitempty" name:"ProcessId"` - // 工作流Id - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` + // 任务类型 //调度任务 SCHEDULE_TASK, //集成任务 INTEGRATION_TASK, //第三方上报 THIRD_REPORT, //数据建模 TABLE_MODEL, //模型创建指标 MODEL_METRIC, //原子指标创建衍生指标 METRIC_METRIC, //数据服务 DATA_SERVICE + ProcessType *string `json:"ProcessType,omitnil,omitempty" name:"ProcessType"` - // 工作流名称 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` + // 页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 责任人id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - // 文件夹Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + // 来源:WEDATA|THIRD 默认WEDATA + Platform *string `json:"Platform,omitnil,omitempty" name:"Platform"` +} - // 数据源id - SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` +type ListProcessLineageRequest struct { + *tchttp.BaseRequest + + // 任务唯一ID + ProcessId *string `json:"ProcessId,omitnil,omitempty" name:"ProcessId"` - // 目标数据源id - TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` + // 任务类型 //调度任务 SCHEDULE_TASK, //集成任务 INTEGRATION_TASK, //第三方上报 THIRD_REPORT, //数据建模 TABLE_MODEL, //模型创建指标 MODEL_METRIC, //原子指标创建衍生指标 METRIC_METRIC, //数据服务 DATA_SERVICE + ProcessType *string `json:"ProcessType,omitnil,omitempty" name:"ProcessType"` - // 资源组id - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + // 页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 任务周期类型 - // * 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"` + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - // 任务状态: - // - Y: 运行 - // - F: 停止 - // - O: 冻结 - // - T: 停止中 - // - INVALID: 已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` + // 来源:WEDATA|THIRD 默认WEDATA + Platform *string `json:"Platform,omitnil,omitempty" name:"Platform"` +} - // 时区, 默认默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` +func (r *ListProcessLineageRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) } -type ListOpsTasksRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListProcessLineageRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProcessId") + delete(f, "ProcessType") + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "Platform") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListProcessLineageRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} - // 分页大小 - PageSize *string `json:"PageSize,omitnil,omitempty" name:"PageSize"` +// Predefined struct for user +type ListProcessLineageResponseParams struct { + // 分页数据 + Data *ListProcessLineagePage `json:"Data,omitnil,omitempty" name:"Data"` - // 分页页码 - PageNumber *string `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} - // 任务类型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"` +type ListProcessLineageResponse struct { + *tchttp.BaseResponse + Response *ListProcessLineageResponseParams `json:"Response"` +} - // 工作流Id - WorkflowId *string `json:"WorkflowId,omitnil,omitempty" name:"WorkflowId"` +func (r *ListProcessLineageResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 工作流名称 - WorkflowName *string `json:"WorkflowName,omitnil,omitempty" name:"WorkflowName"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListProcessLineageResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} - // 责任人id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` +// Predefined struct for user +type ListProjectMembersRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 文件夹Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + // 使用成员名过滤,支持模糊查询 + UserName *string `json:"UserName,omitnil,omitempty" name:"UserName"` - // 数据源id - SourceServiceId *string `json:"SourceServiceId,omitnil,omitempty" name:"SourceServiceId"` + // 使用成员id过滤,支持模糊查询 + UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` - // 目标数据源id - TargetServiceId *string `json:"TargetServiceId,omitnil,omitempty" name:"TargetServiceId"` + // 分页大小,默认第一页 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` - // 资源组id - ExecutorGroupId *string `json:"ExecutorGroupId,omitnil,omitempty" name:"ExecutorGroupId"` + // 分页条数,默认10条 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` +} - // 任务周期类型 - // * 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"` +type ListProjectMembersRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 任务状态: - // - Y: 运行 - // - F: 停止 - // - O: 冻结 - // - T: 停止中 - // - INVALID: 已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` + // 使用成员名过滤,支持模糊查询 + UserName *string `json:"UserName,omitnil,omitempty" name:"UserName"` - // 时区, 默认默认UTC+8 - TimeZone *string `json:"TimeZone,omitnil,omitempty" name:"TimeZone"` + // 使用成员id过滤,支持模糊查询 + UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` + + // 分页大小,默认第一页 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页条数,默认10条 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` } -func (r *ListOpsTasksRequest) ToJsonString() string { +func (r *ListProjectMembersRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListProjectMembersRequest) 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, "UserName") + delete(f, "UserUin") 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 tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListProjectMembersRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListOpsTasksResponseParams struct { - // 任务列表 - Data *ListOpsTasksPage `json:"Data,omitnil,omitempty" name:"Data"` +type ListProjectMembersResponseParams struct { + // 项目列表 + Data *ProjectUsersBrief `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListOpsTasksResponse struct { +type ListProjectMembersResponse struct { *tchttp.BaseResponse - Response *ListOpsTasksResponseParams `json:"Response"` + Response *ListProjectMembersResponseParams `json:"Response"` } -func (r *ListOpsTasksResponse) ToJsonString() string { +func (r *ListProjectMembersResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListProjectMembersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListOpsWorkflowsRequestParams struct { - // 项目Id +type ListProjectRolesRequestParams struct { + // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 分页页码 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 角色中文展示名模糊查询,只能传一个值 + RoleDisplayName *string `json:"RoleDisplayName,omitnil,omitempty" name:"RoleDisplayName"` - // 分页大小 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + // 页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 文件Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + // 分页信息 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} - // 工作流状态筛选 - // * ALL_RUNNING : 全部调度中 - // * ALL_FREEZED : 全部已暂停 - // * ALL_STOPPTED : 全部已下线 - // * PART_RUNNING : 部分调度中 - // * ALL_NO_RUNNING : 全部未调度 - // * ALL_INVALID : 全部已失效 - Status *string `json:"Status,omitnil,omitempty" name:"Status"` +type ListProjectRolesRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 负责人Id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + // 角色中文展示名模糊查询,只能传一个值 + RoleDisplayName *string `json:"RoleDisplayName,omitnil,omitempty" name:"RoleDisplayName"` - // 工作流类型筛选, 支持值 Cycle或Manual. 默认只查询 Cycle - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + // 页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 工作流关键词过滤,支持工作流 Id/name 模糊匹配 - KeyWord *string `json:"KeyWord,omitnil,omitempty" name:"KeyWord"` + // 分页信息 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} - // 排序项,可选CreateTime、TaskCount - SortItem *string `json:"SortItem,omitnil,omitempty" name:"SortItem"` +func (r *ListProjectRolesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 排序方式,DESC或ASC, 大写 - SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListProjectRolesRequest) 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, "RoleDisplayName") + delete(f, "PageNumber") + delete(f, "PageSize") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListProjectRolesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} - // 创建人Id - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` +// Predefined struct for user +type ListProjectRolesResponseParams struct { + // 角色列表 + Data *PageRoles `json:"Data,omitnil,omitempty" name:"Data"` - // 更新时间,格式yyyy-MM-dd HH:mm:ss - ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} - // 创建时间,格式yyyy-MM-dd HH:mm:ss - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` +type ListProjectRolesResponse struct { + *tchttp.BaseResponse + Response *ListProjectRolesResponseParams `json:"Response"` } -type ListOpsWorkflowsRequest struct { - *tchttp.BaseRequest - - // 项目Id - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` +func (r *ListProjectRolesResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 分页页码 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListProjectRolesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} - // 分页大小 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +// Predefined struct for user +type ListProjectsRequestParams struct { + // 项目id列表 + ProjectIds []*string `json:"ProjectIds,omitnil,omitempty" name:"ProjectIds"` - // 文件Id - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` + // 项目名或项目唯一标识名,支持模糊搜索 + 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"` + // 项目状态,可选值:0(禁用)、1(正常) + Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` - // 负责人Id - OwnerUin *string `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"` + // 项目模式,可选值:SIMPLE、STANDARD + ProjectModel *string `json:"ProjectModel,omitnil,omitempty" name:"ProjectModel"` - // 工作流类型筛选, 支持值 Cycle或Manual. 默认只查询 Cycle - WorkflowType *string `json:"WorkflowType,omitnil,omitempty" name:"WorkflowType"` + // 请求的数据页数,用于翻页 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` - // 工作流关键词过滤,支持工作流 Id/name 模糊匹配 - KeyWord *string `json:"KeyWord,omitnil,omitempty" name:"KeyWord"` + // 每页显示的条数,默认为 10 条 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` +} - // 排序项,可选CreateTime、TaskCount - SortItem *string `json:"SortItem,omitnil,omitempty" name:"SortItem"` +type ListProjectsRequest struct { + *tchttp.BaseRequest + + // 项目id列表 + ProjectIds []*string `json:"ProjectIds,omitnil,omitempty" name:"ProjectIds"` - // 排序方式,DESC或ASC, 大写 - SortType *string `json:"SortType,omitnil,omitempty" name:"SortType"` + // 项目名或项目唯一标识名,支持模糊搜索 + ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` - // 创建人Id - CreateUserUin *string `json:"CreateUserUin,omitnil,omitempty" name:"CreateUserUin"` + // 项目状态,可选值:0(禁用)、1(正常) + Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` - // 更新时间,格式yyyy-MM-dd HH:mm:ss - ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"` + // 项目模式,可选值:SIMPLE、STANDARD + ProjectModel *string `json:"ProjectModel,omitnil,omitempty" name:"ProjectModel"` - // 创建时间,格式yyyy-MM-dd HH:mm:ss - CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + // 请求的数据页数,用于翻页 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 每页显示的条数,默认为 10 条 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` } -func (r *ListOpsWorkflowsRequest) ToJsonString() string { +func (r *ListProjectsRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListProjectsRequest) 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, "ProjectIds") + delete(f, "ProjectName") + delete(f, "Status") + delete(f, "ProjectModel") 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 tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListProjectsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListOpsWorkflowsResponseParams struct { - // 工作流列表 - Data *OpsWorkflows `json:"Data,omitnil,omitempty" name:"Data"` +type ListProjectsResponseParams struct { + // 项目列表 + Data *ProjectBrief `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListOpsWorkflowsResponse struct { +type ListProjectsResponse struct { *tchttp.BaseResponse - Response *ListOpsWorkflowsResponseParams `json:"Response"` + Response *ListProjectsResponseParams `json:"Response"` } -func (r *ListOpsWorkflowsResponse) ToJsonString() string { +func (r *ListProjectsResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListProjectsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } @@ -5014,99 +8494,199 @@ type ListResourceFilesResponseParams struct { RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListResourceFilesResponse struct { +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 *ListResourceFilesResponseParams `json:"Response"` + Response *ListResourceFoldersResponseParams `json:"Response"` } -func (r *ListResourceFilesResponse) ToJsonString() string { +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 *ListResourceFilesResponse) FromJsonString(s string) error { +func (r *ListResourceFoldersResponse) 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"` +type ListResourceGroupsRequestParams struct { + // 执行资源组类型,不能为空 + // + // - Schedule --- 调度资源组 + // - Integration --- 集成资源组 + // - DataService -- 数据服务资源组 + Type *string `json:"Type,omitnil,omitempty" name:"Type"` - // 资源文件夹绝对路径,取值示例 - // /wedata/test - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + // 资源组id + Id *string `json:"Id,omitnil,omitempty" name:"Id"` - // 数据页数,大于等于1。默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 搜索的执行资源组名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` - // 每页显示的数据条数,最小为10条,最大为200 条。默认10 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + // 项目空间id查询列表 + ProjectIds []*string `json:"ProjectIds,omitnil,omitempty" name:"ProjectIds"` + + // 页数 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` } -type ListResourceFoldersRequest struct { +type ListResourceGroupsRequest struct { *tchttp.BaseRequest - // 项目ID - ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + // 执行资源组类型,不能为空 + // + // - Schedule --- 调度资源组 + // - Integration --- 集成资源组 + // - DataService -- 数据服务资源组 + Type *string `json:"Type,omitnil,omitempty" name:"Type"` - // 资源文件夹绝对路径,取值示例 - // /wedata/test - ParentFolderPath *string `json:"ParentFolderPath,omitnil,omitempty" name:"ParentFolderPath"` + // 资源组id + Id *string `json:"Id,omitnil,omitempty" name:"Id"` - // 数据页数,大于等于1。默认1 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + // 搜索的执行资源组名称 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` - // 每页显示的数据条数,最小为10条,最大为200 条。默认10 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + // 项目空间id查询列表 + ProjectIds []*string `json:"ProjectIds,omitnil,omitempty" name:"ProjectIds"` + + // 页数 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` } -func (r *ListResourceFoldersRequest) ToJsonString() string { +func (r *ListResourceGroupsRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListResourceGroupsRequest) 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, "Type") + delete(f, "Id") + delete(f, "Name") + delete(f, "ProjectIds") delete(f, "PageNumber") delete(f, "PageSize") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListResourceFoldersRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListResourceGroupsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListResourceFoldersResponseParams struct { - // 分页的资源文件夹查询结果 - Data *ResourceFolderPage `json:"Data,omitnil,omitempty" name:"Data"` +type ListResourceGroupsResponseParams struct { + // 分页结果 + Data *ExecutorResourceGroupData `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListResourceFoldersResponse struct { +type ListResourceGroupsResponse struct { *tchttp.BaseResponse - Response *ListResourceFoldersResponseParams `json:"Response"` + Response *ListResourceGroupsResponseParams `json:"Response"` } -func (r *ListResourceFoldersResponse) ToJsonString() string { +func (r *ListResourceGroupsResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListResourceGroupsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } @@ -5301,6 +8881,231 @@ func (r *ListSQLScriptRunsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +type ListSchemaPage struct { + // Schema记录列表 + Items []*SchemaInfo `json:"Items,omitnil,omitempty" name:"Items"` + + // 分页总页数 + PageCount *int64 `json:"PageCount,omitnil,omitempty" name:"PageCount"` + + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 记录总数 + TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` +} + +// Predefined struct for user +type ListSchemaRequestParams struct { + // 页码,从1开始 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小,最大500 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 目录名称 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` + + // 数据源ID + DatasourceId *int64 `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` + + // 数据库名称 + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 数据库模式搜索关键字 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` +} + +type ListSchemaRequest struct { + *tchttp.BaseRequest + + // 页码,从1开始 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小,最大500 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 目录名称 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` + + // 数据源ID + DatasourceId *int64 `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` + + // 数据库名称 + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 数据库模式搜索关键字 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` +} + +func (r *ListSchemaRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListSchemaRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "CatalogName") + delete(f, "DatasourceId") + delete(f, "DatabaseName") + delete(f, "Keyword") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListSchemaRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListSchemaResponseParams struct { + // 分页数据 + Data *ListSchemaPage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListSchemaResponse struct { + *tchttp.BaseResponse + Response *ListSchemaResponseParams `json:"Response"` +} + +func (r *ListSchemaResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListSchemaResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ListTablePage struct { + // Schema记录列表 + Items []*TableInfo `json:"Items,omitnil,omitempty" name:"Items"` + + // 分页总页数 + PageCount *int64 `json:"PageCount,omitnil,omitempty" name:"PageCount"` + + // 分页大小 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 记录总数 + TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` +} + +// Predefined struct for user +type ListTableRequestParams struct { + // 页码,从1开始 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小,最大500 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 目录名称 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` + + // 数据源ID + DatasourceId *int64 `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` + + // 数据库名称 + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 数据库Schema名称 + SchemaName *string `json:"SchemaName,omitnil,omitempty" name:"SchemaName"` + + // 表搜索关键字 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` +} + +type ListTableRequest struct { + *tchttp.BaseRequest + + // 页码,从1开始 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小,最大500 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 目录名称 + CatalogName *string `json:"CatalogName,omitnil,omitempty" name:"CatalogName"` + + // 数据源ID + DatasourceId *int64 `json:"DatasourceId,omitnil,omitempty" name:"DatasourceId"` + + // 数据库名称 + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 数据库Schema名称 + SchemaName *string `json:"SchemaName,omitnil,omitempty" name:"SchemaName"` + + // 表搜索关键字 + Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` +} + +func (r *ListTableRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTableRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "PageNumber") + delete(f, "PageSize") + delete(f, "CatalogName") + delete(f, "DatasourceId") + delete(f, "DatabaseName") + delete(f, "SchemaName") + delete(f, "Keyword") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTableRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ListTableResponseParams struct { + // 分页数据 + Data *ListTablePage `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type ListTableResponse struct { + *tchttp.BaseResponse + Response *ListTableResponseParams `json:"Response"` +} + +func (r *ListTableResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTableResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + type ListTaskInfo struct { // 任务数组 // 注意:此字段可能返回 null,表示取不到有效值。 @@ -5866,33 +9671,90 @@ func (r *ListTasksRequest) FromJsonString(s string) error { delete(f, "ModifyTime") delete(f, "CreateTime") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTasksRequest has unknown keys!", "") + 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 ListTenantRolesRequestParams struct { + // 角色中文展示名模糊查询,只能传一个值 + RoleDisplayName *string `json:"RoleDisplayName,omitnil,omitempty" name:"RoleDisplayName"` +} + +type ListTenantRolesRequest struct { + *tchttp.BaseRequest + + // 角色中文展示名模糊查询,只能传一个值 + RoleDisplayName *string `json:"RoleDisplayName,omitnil,omitempty" name:"RoleDisplayName"` +} + +func (r *ListTenantRolesRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ListTenantRolesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "RoleDisplayName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTenantRolesRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ListTasksResponseParams struct { - // 任务分页信息 - Data *ListTaskInfo `json:"Data,omitnil,omitempty" name:"Data"` +type ListTenantRolesResponseParams struct { + // 主账号角色列表 + Data []*SystemRole `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type ListTasksResponse struct { +type ListTenantRolesResponse struct { *tchttp.BaseResponse - Response *ListTasksResponseParams `json:"Response"` + Response *ListTenantRolesResponseParams `json:"Response"` } -func (r *ListTasksResponse) ToJsonString() string { +func (r *ListTenantRolesResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *ListTenantRolesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } @@ -6364,6 +10226,32 @@ func (r *ListWorkflowsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +type MetricData struct { + // 指标名称 + // + // - ConcurrencyUsage --- 并发使用率 + // - CpuCoreUsage --- cpu使用率 + // - CpuLoad --- cpu负载 + // - DevelopQueueTask --- 正在队列中的开发任务数量 + // - DevelopRunningTask --- 正在运行的开发任务数量 + // - DevelopSchedulingTask --- 正在调度的开发任务数量 + // - DiskUsage --- 磁盘使用情况 + // - DiskUsed --- 磁盘已用量 + // - MaximumConcurrency --- 最大并发 + // - MemoryLoad --- 内存负载 + // - MemoryUsage --- 内存使用量 + // 注意:此字段可能返回 null,表示取不到有效值。 + MetricName *string `json:"MetricName,omitnil,omitempty" name:"MetricName"` + + // 当前值 + // 注意:此字段可能返回 null,表示取不到有效值。 + SnapshotValue *uint64 `json:"SnapshotValue,omitnil,omitempty" name:"SnapshotValue"` + + // 指标趋势 + // 注意:此字段可能返回 null,表示取不到有效值。 + TrendList []*TrendData `json:"TrendList,omitnil,omitempty" name:"TrendList"` +} + type ModifyAlarmRuleResult struct { // 是否更新成功 Status *bool `json:"Status,omitnil,omitempty" name:"Status"` @@ -6391,6 +10279,11 @@ type NotificationFatigue struct { QuietIntervals []*AlarmQuietInterval `json:"QuietIntervals,omitnil,omitempty" name:"QuietIntervals"` } +type OperateResult struct { + // 操作结果1 成功 其他失败 + Status *int64 `json:"Status,omitnil,omitempty" name:"Status"` +} + type OpsAsyncJobDetail struct { // 项目id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` @@ -6766,6 +10659,28 @@ type OutTaskParameter struct { ParamValue *string `json:"ParamValue,omitnil,omitempty" name:"ParamValue"` } +type PageRoles struct { + // 角色信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*SystemRole `json:"Items,omitnil,omitempty" name:"Items"` + + // 页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 总个数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *int64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` +} + type ParamInfo struct { // 参数名 ParamKey *string `json:"ParamKey,omitnil,omitempty" name:"ParamKey"` @@ -6781,139 +10696,434 @@ type ParentDependencyConfigPage struct { // 总页数 // 注意:此字段可能返回 null,表示取不到有效值。 - TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` + 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 Project struct { + // 项目id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 项目标识,英文名 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` + + // 项目显示名称,可以为中文名 + // 注意:此字段可能返回 null,表示取不到有效值。 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 备注 + // 注意:此字段可能返回 null,表示取不到有效值。 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 项目创建人id + // 注意:此字段可能返回 null,表示取不到有效值。 + CreatorUin *string `json:"CreatorUin,omitnil,omitempty" name:"CreatorUin"` + + // 项目责任人id + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectOwnerUin *string `json:"ProjectOwnerUin,omitnil,omitempty" name:"ProjectOwnerUin"` + + // 项目状态:0:禁用,1:启用,-3:禁用中,2:启用中 + Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"` + + // 项目模式,SIMPLE:简单模式 STANDARD:标准模式 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProjectModel *string `json:"ProjectModel,omitnil,omitempty" name:"ProjectModel"` +} + +type ProjectBrief struct { + // 分页页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 分页大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 数据源列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*Project `json:"Items,omitnil,omitempty" name:"Items"` + + // 总数 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` +} + +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 ProjectRequest struct { + // 项目标识,英文名,以字母开头,可包含字母、数字和下划线,不能超过32个字符 + ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"` + + // 项目显示名称,可以为中文名,以字母开头,可包含字母、数字和下划线,不能超过32个字符 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 项目模式,SIMPLE(默认):简单模式 STANDARD:标准模式 + ProjectModel *string `json:"ProjectModel,omitnil,omitempty" name:"ProjectModel"` +} + +type ProjectResult struct { + // 返回的结果 true/false + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +type ProjectUserRole struct { + // 租户id + // 注意:此字段可能返回 null,表示取不到有效值。 + AppId *string `json:"AppId,omitnil,omitempty" name:"AppId"` + + // 主账号id + // 注意:此字段可能返回 null,表示取不到有效值。 + RootAccountId *string `json:"RootAccountId,omitnil,omitempty" name:"RootAccountId"` + + // 用户id + // 注意:此字段可能返回 null,表示取不到有效值。 + UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` + + // 用户名 + // 注意:此字段可能返回 null,表示取不到有效值。 + UserName *string `json:"UserName,omitnil,omitempty" name:"UserName"` + + // 显示名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 用户角色对象 + // 注意:此字段可能返回 null,表示取不到有效值。 + Roles []*SystemRole `json:"Roles,omitnil,omitempty" name:"Roles"` + + // 是否创建者 + // 注意:此字段可能返回 null,表示取不到有效值。 + IsCreator *bool `json:"IsCreator,omitnil,omitempty" name:"IsCreator"` + + // 创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 是否项目负责人 + // 注意:此字段可能返回 null,表示取不到有效值。 + IsProjectOwner *bool `json:"IsProjectOwner,omitnil,omitempty" name:"IsProjectOwner"` + + // 手机号 + // 注意:此字段可能返回 null,表示取不到有效值。 + PhoneNum *string `json:"PhoneNum,omitnil,omitempty" name:"PhoneNum"` + + // 邮箱 + // 注意:此字段可能返回 null,表示取不到有效值。 + Email *string `json:"Email,omitnil,omitempty" name:"Email"` +} + +type ProjectUsersBrief struct { + // 用户集合 + // 注意:此字段可能返回 null,表示取不到有效值。 + Items []*ProjectUserRole `json:"Items,omitnil,omitempty" name:"Items"` + + // 分页大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + + // 分页页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + + // 总数量 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` + + // 总页码 + // 注意:此字段可能返回 null,表示取不到有效值。 + TotalPageNumber *uint64 `json:"TotalPageNumber,omitnil,omitempty" name:"TotalPageNumber"` +} + +type ReconciliationStrategyInfo struct { + // 离线告警规则类型 + // reconciliationFailure: 离线对账失败告警 + // reconciliationOvertime: 离线对账任务运行超时告警(需配置超时时间) + // reconciliationMismatch: 离线对账不一致条数告警(需配置不一致条数阀值) + // 注意:此字段可能返回 null,表示取不到有效值。 + RuleType *string `json:"RuleType,omitnil,omitempty" name:"RuleType"` - // 页码 + // 对账不一致条数阀值, RuleType=reconciliationMismatch对账不一致条数类型,需要配置该字段,无默认值 // 注意:此字段可能返回 null,表示取不到有效值。 - PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"` + MismatchCount *uint64 `json:"MismatchCount,omitnil,omitempty" name:"MismatchCount"` - // 分页大小 + // 对账任务运行超时阀值: 小时, 默认为0 // 注意:此字段可能返回 null,表示取不到有效值。 - PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` + Hour *int64 `json:"Hour,omitnil,omitempty" name:"Hour"` - // 分页数据 + // 对账任务运行超时阀值: 分钟, 默认为1 // 注意:此字段可能返回 null,表示取不到有效值。 - Items []*OpsTaskDepend `json:"Items,omitnil,omitempty" name:"Items"` + Min *int64 `json:"Min,omitnil,omitempty" name:"Min"` } // 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 RegisterLineageRequestParams struct { + // 需要注册的血缘关系列表 + Relations []*LineagePair `json:"Relations,omitnil,omitempty" name:"Relations"` } -type PauseOpsTasksAsyncRequest struct { +type RegisterLineageRequest 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"` + // 需要注册的血缘关系列表 + Relations []*LineagePair `json:"Relations,omitnil,omitempty" name:"Relations"` } -func (r *PauseOpsTasksAsyncRequest) ToJsonString() string { +func (r *RegisterLineageRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *RegisterLineageRequest) 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") + delete(f, "Relations") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PauseOpsTasksAsyncRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RegisterLineageRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type PauseOpsTasksAsyncResponseParams struct { - // 异步操作结果 - Data *OpsAsyncResponse `json:"Data,omitnil,omitempty" name:"Data"` +type RegisterLineageResponseParams struct { + // 注册结果 + Data *OperateResult `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type PauseOpsTasksAsyncResponse struct { +type RegisterLineageResponse struct { *tchttp.BaseResponse - Response *PauseOpsTasksAsyncResponseParams `json:"Response"` + Response *RegisterLineageResponseParams `json:"Response"` } -func (r *PauseOpsTasksAsyncResponse) ToJsonString() string { +func (r *RegisterLineageResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *RegisterLineageResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ProjectInstanceStatisticsAlarmInfo struct { - // 告警类型  - // - // projectFailureInstanceUpwardFluctuationAlarm: 失败实例向上波动告警 +type RelateTask struct { + // 任务类型 // - // projectSuccessInstanceDownwardFluctuationAlarm: 成功实例向下波动告警 - AlarmType *string `json:"AlarmType,omitnil,omitempty" name:"AlarmType"` + // - OfflineIntegration --- 离线集成任务 + // - RealtimeIntegration --- 实时集成任务 + // - DataDevelopment --- 数据开发任务 + // - DataQuality --- 数据质量任务 + // - DataService --- 数据服务任务 + // - MetadataCollection --- 元数据采集任务 + TaskType *string `json:"TaskType,omitnil,omitempty" name:"TaskType"` - // 实例成功数向下波动比例告警阀值;实例失败数向上波动比例告警阀值 - InstanceThresholdCountPercent *uint64 `json:"InstanceThresholdCountPercent,omitnil,omitempty" name:"InstanceThresholdCountPercent"` + // 任务数量 + TaskNum *int64 `json:"TaskNum,omitnil,omitempty" name:"TaskNum"` - // 累计实例数波动阀值 - InstanceThresholdCount *uint64 `json:"InstanceThresholdCount,omitnil,omitempty" name:"InstanceThresholdCount"` + // 任务详情 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskList []*BriefTask `json:"TaskList,omitnil,omitempty" name:"TaskList"` +} - // 稳定性次数阈值(防抖动配置统计周期数) - StabilizeThreshold *uint64 `json:"StabilizeThreshold,omitnil,omitempty" name:"StabilizeThreshold"` +// Predefined struct for user +type RemoveMemberProjectRoleRequestParams struct { + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 稳定性统计周期(防抖动配置统计周期数) - StabilizeStatisticsCycle *uint64 `json:"StabilizeStatisticsCycle,omitnil,omitempty" name:"StabilizeStatisticsCycle"` + // 用户id + UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` - // 是否累计计算,false:连续,true:累计 - IsCumulant *bool `json:"IsCumulant,omitnil,omitempty" name:"IsCumulant"` + // 角色id列表,目前支持的项目角色有 + // - 308335260274237440 (项目管理员) + // - 308335260676890624 (数据工程师) + // - 308335260844662784 (运维工程师) + // - 308335260945326080 (普通成员) + RoleIds []*string `json:"RoleIds,omitnil,omitempty" name:"RoleIds"` +} - // 当日累计实例数; - // 当天失败实例数向下波动量 - InstanceCount *uint64 `json:"InstanceCount,omitnil,omitempty" name:"InstanceCount"` +type RemoveMemberProjectRoleRequest struct { + *tchttp.BaseRequest + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 用户id + UserUin *string `json:"UserUin,omitnil,omitempty" name:"UserUin"` + + // 角色id列表,目前支持的项目角色有 + // - 308335260274237440 (项目管理员) + // - 308335260676890624 (数据工程师) + // - 308335260844662784 (运维工程师) + // - 308335260945326080 (普通成员) + RoleIds []*string `json:"RoleIds,omitnil,omitempty" name:"RoleIds"` } -type ReconciliationStrategyInfo struct { - // 离线告警规则类型 - // reconciliationFailure: 离线对账失败告警 - // reconciliationOvertime: 离线对账任务运行超时告警(需配置超时时间) - // reconciliationMismatch: 离线对账不一致条数告警(需配置不一致条数阀值) - // 注意:此字段可能返回 null,表示取不到有效值。 - RuleType *string `json:"RuleType,omitnil,omitempty" name:"RuleType"` +func (r *RemoveMemberProjectRoleRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 对账不一致条数阀值, RuleType=reconciliationMismatch对账不一致条数类型,需要配置该字段,无默认值 - // 注意:此字段可能返回 null,表示取不到有效值。 - MismatchCount *uint64 `json:"MismatchCount,omitnil,omitempty" name:"MismatchCount"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *RemoveMemberProjectRoleRequest) 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, "UserUin") + delete(f, "RoleIds") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RemoveMemberProjectRoleRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} - // 对账任务运行超时阀值: 小时, 默认为0 - // 注意:此字段可能返回 null,表示取不到有效值。 - Hour *int64 `json:"Hour,omitnil,omitempty" name:"Hour"` +// Predefined struct for user +type RemoveMemberProjectRoleResponseParams struct { + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} - // 对账任务运行超时阀值: 分钟, 默认为1 - // 注意:此字段可能返回 null,表示取不到有效值。 - Min *int64 `json:"Min,omitnil,omitempty" name:"Min"` +type RemoveMemberProjectRoleResponse struct { + *tchttp.BaseResponse + Response *RemoveMemberProjectRoleResponseParams `json:"Response"` +} + +func (r *RemoveMemberProjectRoleResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *RemoveMemberProjectRoleResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) } // Predefined struct for user @@ -7153,6 +11363,114 @@ type ResourceFolderPage struct { PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"` } +type ResourceGroupMetrics struct { + // 资源组规格相关:cpu个数 + // 注意:此字段可能返回 null,表示取不到有效值。 + CpuNum *uint64 `json:"CpuNum,omitnil,omitempty" name:"CpuNum"` + + // 资源组规格相关:磁盘规格 + // 注意:此字段可能返回 null,表示取不到有效值。 + DiskVolume *uint64 `json:"DiskVolume,omitnil,omitempty" name:"DiskVolume"` + + // 资源组规格相关:内存大小,单位:G + // 注意:此字段可能返回 null,表示取不到有效值。 + MemSize *uint64 `json:"MemSize,omitnil,omitempty" name:"MemSize"` + + // 资源组生命周期, 单位:天 + // 注意:此字段可能返回 null,表示取不到有效值。 + LifeCycle *uint64 `json:"LifeCycle,omitnil,omitempty" name:"LifeCycle"` + + // 资源组规格相关:最高并发 + // 注意:此字段可能返回 null,表示取不到有效值。 + MaximumConcurrency *uint64 `json:"MaximumConcurrency,omitnil,omitempty" name:"MaximumConcurrency"` + + // 资源组状态 + // + // - 0 --- 初始化中 + // - 1 --- 运行中 + // - 2 --- 运行异常 + // - 3 --- 释放中 + // - 4 --- 已释放 + // - 5 --- 创建中 + // - 6 --- 创建失败 + // - 7 --- 更新中 + // - 8 --- 更新失败 + // - 9 --- 已到期 + // - 10 --- 释放失败 + // - 11 --- 使用中 + // - 12 --- 未使用 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"` + + // 指标详情 + MetricSnapshots []*MetricData `json:"MetricSnapshots,omitnil,omitempty" name:"MetricSnapshots"` +} + +type ResourceGroupSpecification struct { + // 资源组规格 + Specification *string `json:"Specification,omitnil,omitempty" name:"Specification"` + + // 数量 + Number *int64 `json:"Number,omitnil,omitempty" name:"Number"` +} + +type ResourceNumber struct { + // 增加/减少枚举 + // + // - ADD -- 增加 + // - DELETE -- 减少 + Type *string `json:"Type,omitnil,omitempty" name:"Type"` + + // 增加/减少资源包的数量 + Quantity *int64 `json:"Quantity,omitnil,omitempty" name:"Quantity"` +} + +type ResourceResult struct { + // 是否成功 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` + + // 资源组id + // 注意:此字段可能返回 null,表示取不到有效值。 + ResourceGroupId *string `json:"ResourceGroupId,omitnil,omitempty" name:"ResourceGroupId"` +} + +type ResourceStatus struct { + // 资源组操作状态 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` +} + +type ResourceType struct { + // 资源组类型 + // + // - Schedule --- 调度资源组 + // - Integration --- 集成资源组 + // - DataService -- 数据服务资源组 + ResourceGroupType *string `json:"ResourceGroupType,omitnil,omitempty" name:"ResourceGroupType"` + + // 集成资源组,细分实时资源组和离线资源组(集成、调度、数据服务资源组不可以同时购买) + Integration *IntegrationResource `json:"Integration,omitnil,omitempty" name:"Integration"` + + // 调度资源组(集成、调度、数据服务资源组不可以同时购买) + // + // - s_test(测试规格) + // - s_small(基础规格) + // - s_medium(普及规格) + // - s_large(专业规格) + // + // + Schedule *ResourceGroupSpecification `json:"Schedule,omitnil,omitempty" name:"Schedule"` + + // 数据服务资源组(集成、调度、数据服务资源组不可以同时购买) + // + // - ds_t(测试规格) + // - ds_s(基础规格) + // - ds_m(普及规格) + // - ds_l(专业规格) + DataService *ResourceGroupSpecification `json:"DataService,omitnil,omitempty" name:"DataService"` +} + // Predefined struct for user type RunSQLScriptRequestParams struct { // 脚本id @@ -7373,6 +11691,20 @@ type SQLStopResult struct { Status *bool `json:"Status,omitnil,omitempty" name:"Status"` } +type SchemaInfo struct { + // Schema GUID + // 注意:此字段可能返回 null,表示取不到有效值。 + Guid *string `json:"Guid,omitnil,omitempty" name:"Guid"` + + // Schema名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据库名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` +} + // Predefined struct for user type SetSuccessTaskInstancesAsyncRequestParams struct { // 项目Id @@ -7388,59 +11720,135 @@ type SetSuccessTaskInstancesAsyncRequest struct { // 项目Id ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` - // 实例id列表,可以从ListInstances中获取 - InstanceKeyList []*string `json:"InstanceKeyList,omitnil,omitempty" name:"InstanceKeyList"` + // 实例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 StartOpsTasksRequestParams struct { + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id列表 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 启动时是否补录上次暂停到当前的中间实例,默认false即不补录 + EnableDataBackfill *bool `json:"EnableDataBackfill,omitnil,omitempty" name:"EnableDataBackfill"` +} + +type StartOpsTasksRequest struct { + *tchttp.BaseRequest + + // 所属项目Id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 任务Id列表 + TaskIds []*string `json:"TaskIds,omitnil,omitempty" name:"TaskIds"` + + // 启动时是否补录上次暂停到当前的中间实例,默认false即不补录 + EnableDataBackfill *bool `json:"EnableDataBackfill,omitnil,omitempty" name:"EnableDataBackfill"` } -func (r *SetSuccessTaskInstancesAsyncRequest) ToJsonString() string { +func (r *StartOpsTasksRequest) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *StartOpsTasksRequest) 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, "TaskIds") + delete(f, "EnableDataBackfill") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetSuccessTaskInstancesAsyncRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "StartOpsTasksRequest 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"` +type StartOpsTasksResponseParams struct { + // 异步操作结果 + Data *StartTasks `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` } -type SetSuccessTaskInstancesAsyncResponse struct { +type StartOpsTasksResponse struct { *tchttp.BaseResponse - Response *SetSuccessTaskInstancesAsyncResponseParams `json:"Response"` + Response *StartOpsTasksResponseParams `json:"Response"` } -func (r *SetSuccessTaskInstancesAsyncResponse) ToJsonString() string { +func (r *StartOpsTasksResponse) ToJsonString() string { b, _ := json.Marshal(r) return 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 { +func (r *StartOpsTasksResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type SqlCreateResult struct { - // 文件夹id - // 注意:此字段可能返回 null,表示取不到有效值。 - FolderId *string `json:"FolderId,omitnil,omitempty" name:"FolderId"` +type StartTasks struct { + // 任务启动是否成功 + Status *bool `json:"Status,omitnil,omitempty" name:"Status"` } // Predefined struct for user @@ -7659,6 +12067,65 @@ type SubmitTaskResult struct { Status *bool `json:"Status,omitnil,omitempty" name:"Status"` } +type SystemRole struct { + // 角色id + RoleId *string `json:"RoleId,omitnil,omitempty" name:"RoleId"` + + // 角色名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + RoleName *string `json:"RoleName,omitnil,omitempty" name:"RoleName"` + + // 角色展示名 + // 注意:此字段可能返回 null,表示取不到有效值。 + RoleDisplayName *string `json:"RoleDisplayName,omitnil,omitempty" name:"RoleDisplayName"` + + // 描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +type TableInfo struct { + // 数据表GUID + // 注意:此字段可能返回 null,表示取不到有效值。 + Guid *string `json:"Guid,omitnil,omitempty" name:"Guid"` + + // 数据表名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + Name *string `json:"Name,omitnil,omitempty" name:"Name"` + + // 数据表描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 数据库名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + DatabaseName *string `json:"DatabaseName,omitnil,omitempty" name:"DatabaseName"` + + // 数据库Schema名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + SchemaName *string `json:"SchemaName,omitnil,omitempty" name:"SchemaName"` + + // 表类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + TableType *string `json:"TableType,omitnil,omitempty" name:"TableType"` + + // 创建时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"` + + // 更新时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *string `json:"UpdateTime,omitnil,omitempty" name:"UpdateTime"` + + // 表的技术元数据 + // 注意:此字段可能返回 null,表示取不到有效值。 + TechnicalMetadata *TechnicalMetadata `json:"TechnicalMetadata,omitnil,omitempty" name:"TechnicalMetadata"` + + // 表的业务元数据 + // 注意:此字段可能返回 null,表示取不到有效值。 + BusinessMetadata *BusinessMetadata `json:"BusinessMetadata,omitnil,omitempty" name:"BusinessMetadata"` +} + type Task struct { // 任务基本属性 // 注意:此字段可能返回 null,表示取不到有效值。 @@ -8652,6 +13119,20 @@ type TaskVersionDetail struct { ApproveUserUin *string `json:"ApproveUserUin,omitnil,omitempty" name:"ApproveUserUin"` } +type TechnicalMetadata struct { + // 责任人 + // 注意:此字段可能返回 null,表示取不到有效值。 + Owner *string `json:"Owner,omitnil,omitempty" name:"Owner"` + + // 数据表位置 + // 注意:此字段可能返回 null,表示取不到有效值。 + Location *string `json:"Location,omitnil,omitempty" name:"Location"` + + // 存储大小 + // 注意:此字段可能返回 null,表示取不到有效值。 + StorageSize *int64 `json:"StorageSize,omitnil,omitempty" name:"StorageSize"` +} + type TimeOutStrategyInfo struct { // 超时告警超时配置: // @@ -8679,6 +13160,14 @@ type TimeOutStrategyInfo struct { ScheduleTimeZone *string `json:"ScheduleTimeZone,omitnil,omitempty" name:"ScheduleTimeZone"` } +type TrendData struct { + // 时间戳 + Timestamp *uint64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"` + + // 指标值 + Value *uint64 `json:"Value,omitnil,omitempty" name:"Value"` +} + // Predefined struct for user type UpdateCodeFileRequestParams struct { // 项目ID @@ -8828,6 +13317,338 @@ func (r *UpdateCodeFolderResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UpdateDataSourceRequestParams struct { + // 数据源id + Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据源的配置信息,以JSON KV存储,根据每个数据源类型不同,而KV存储信息不同 + // + // > deployType: + // CONNSTR_PUBLICDB(公网实例) + // CONNSTR_CVMDB(自建实例) + // INSTANCE(云实例) + // + // ``` + // mysql: 自建实例 + // { + // "deployType": "CONNSTR_CVMDB", + // "url": "jdbc:mysql://1.1.1.1:1111/database", + // "username": "root", + // "password": "root", + // "region": "ap-shanghai", + // "vpcId": "vpc-kprq42yo", + // "type": "MYSQL" + // } + // mysql: 云实例 + // { + // "instanceid": "cdb-12uxdo5e", + // "db": "db", + // "region": "ap-shanghai", + // "username": "msyql", + // "password": "mysql", + // "deployType": "INSTANCE", + // "type": "TENCENT_MYSQL" + // } + // sql_server: + // { + // "deployType": "CONNSTR_PUBLICDB", + // "url": "jdbc:sqlserver://1.1.1.1:223;DatabaseName=database", + // "username": "user_1", + // "password": "pass_2", + // "type": "SQLSERVER" + // } + // redis: + // redisType: + // -NO_ACCOUT(免账号) + // -SELF_ACCOUNT(自定义账号) + // { + // "deployType": "CONNSTR_PUBLICDB", + // "username":"" + // "password": "pass", + // "ip": "1.1.1.1", + // "port": "6379", + // "redisType": "NO_ACCOUT", + // "type": "REDIS" + // } + // oracle: + // { + // "deployType": "CONNSTR_CVMDB", + // "url": "jdbc:oracle:thin:@1.1.1.1:1521:prod", + // "username": "oracle", + // "password": "pass", + // "region": "ap-shanghai", + // "vpcId": "vpc-kprq42yo", + // "type": "ORACLE" + // } + // mongodb: + // advanceParams(自定义参数,会拼接至url后) + // { + // "advanceParams": [ + // { + // "key": "authSource", + // "value": "auth" + // } + // ], + // "db": "admin", + // "deployType": "CONNSTR_PUBLICDB", + // "username": "user", + // "password": "pass", + // "type": "MONGODB", + // "host": "1.1.1.1:9200" + // } + // postgresql: + // { + // "deployType": "CONNSTR_PUBLICDB", + // "url": "jdbc:postgresql://1.1.1.1:1921/database", + // "username": "user", + // "password": "pass", + // "type": "POSTGRE" + // } + // kafka: + // authType: + // - sasl + // - jaas + // - sasl_plaintext + // - sasl_ssl + // - GSSAPI + // ssl: + // -PLAIN + // -GSSAPI + // { + // "deployType": "CONNSTR_PUBLICDB", + // "host": "1.1.1.1:9092", + // "ssl": "GSSAPI", + // "authType": "sasl", + // "type": "KAFKA", + // "principal": "aaaa", + // "serviceName": "kafka" + // } + // + // cos: + // { + // "region": "ap-shanghai", + // "deployType": "INSTANCE", + // "secretId": "aaaaa", + // "secretKey": "sssssss", + // "bucket": "aaa", + // "type": "COS" + // } + // + // ``` + ProdConProperties *string `json:"ProdConProperties,omitnil,omitempty" name:"ProdConProperties"` + + // 若项目为标准模式,则此字段必填 + DevConProperties *string `json:"DevConProperties,omitnil,omitempty" name:"DevConProperties"` + + // 生产环境数据源文件上传 + ProdFileUpload *DataSourceFileUpload `json:"ProdFileUpload,omitnil,omitempty" name:"ProdFileUpload"` + + // 开发环境数据源文件上传 + DevFileUpload *DataSourceFileUpload `json:"DevFileUpload,omitnil,omitempty" name:"DevFileUpload"` + + // 数据源展示名,为了可视化查看 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 数据源描述信息 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +type UpdateDataSourceRequest struct { + *tchttp.BaseRequest + + // 数据源id + Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"` + + // 项目id + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 数据源的配置信息,以JSON KV存储,根据每个数据源类型不同,而KV存储信息不同 + // + // > deployType: + // CONNSTR_PUBLICDB(公网实例) + // CONNSTR_CVMDB(自建实例) + // INSTANCE(云实例) + // + // ``` + // mysql: 自建实例 + // { + // "deployType": "CONNSTR_CVMDB", + // "url": "jdbc:mysql://1.1.1.1:1111/database", + // "username": "root", + // "password": "root", + // "region": "ap-shanghai", + // "vpcId": "vpc-kprq42yo", + // "type": "MYSQL" + // } + // mysql: 云实例 + // { + // "instanceid": "cdb-12uxdo5e", + // "db": "db", + // "region": "ap-shanghai", + // "username": "msyql", + // "password": "mysql", + // "deployType": "INSTANCE", + // "type": "TENCENT_MYSQL" + // } + // sql_server: + // { + // "deployType": "CONNSTR_PUBLICDB", + // "url": "jdbc:sqlserver://1.1.1.1:223;DatabaseName=database", + // "username": "user_1", + // "password": "pass_2", + // "type": "SQLSERVER" + // } + // redis: + // redisType: + // -NO_ACCOUT(免账号) + // -SELF_ACCOUNT(自定义账号) + // { + // "deployType": "CONNSTR_PUBLICDB", + // "username":"" + // "password": "pass", + // "ip": "1.1.1.1", + // "port": "6379", + // "redisType": "NO_ACCOUT", + // "type": "REDIS" + // } + // oracle: + // { + // "deployType": "CONNSTR_CVMDB", + // "url": "jdbc:oracle:thin:@1.1.1.1:1521:prod", + // "username": "oracle", + // "password": "pass", + // "region": "ap-shanghai", + // "vpcId": "vpc-kprq42yo", + // "type": "ORACLE" + // } + // mongodb: + // advanceParams(自定义参数,会拼接至url后) + // { + // "advanceParams": [ + // { + // "key": "authSource", + // "value": "auth" + // } + // ], + // "db": "admin", + // "deployType": "CONNSTR_PUBLICDB", + // "username": "user", + // "password": "pass", + // "type": "MONGODB", + // "host": "1.1.1.1:9200" + // } + // postgresql: + // { + // "deployType": "CONNSTR_PUBLICDB", + // "url": "jdbc:postgresql://1.1.1.1:1921/database", + // "username": "user", + // "password": "pass", + // "type": "POSTGRE" + // } + // kafka: + // authType: + // - sasl + // - jaas + // - sasl_plaintext + // - sasl_ssl + // - GSSAPI + // ssl: + // -PLAIN + // -GSSAPI + // { + // "deployType": "CONNSTR_PUBLICDB", + // "host": "1.1.1.1:9092", + // "ssl": "GSSAPI", + // "authType": "sasl", + // "type": "KAFKA", + // "principal": "aaaa", + // "serviceName": "kafka" + // } + // + // cos: + // { + // "region": "ap-shanghai", + // "deployType": "INSTANCE", + // "secretId": "aaaaa", + // "secretKey": "sssssss", + // "bucket": "aaa", + // "type": "COS" + // } + // + // ``` + ProdConProperties *string `json:"ProdConProperties,omitnil,omitempty" name:"ProdConProperties"` + + // 若项目为标准模式,则此字段必填 + DevConProperties *string `json:"DevConProperties,omitnil,omitempty" name:"DevConProperties"` + + // 生产环境数据源文件上传 + ProdFileUpload *DataSourceFileUpload `json:"ProdFileUpload,omitnil,omitempty" name:"ProdFileUpload"` + + // 开发环境数据源文件上传 + DevFileUpload *DataSourceFileUpload `json:"DevFileUpload,omitnil,omitempty" name:"DevFileUpload"` + + // 数据源展示名,为了可视化查看 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 数据源描述信息 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` +} + +func (r *UpdateDataSourceRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateDataSourceRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Id") + delete(f, "ProjectId") + delete(f, "ProdConProperties") + delete(f, "DevConProperties") + delete(f, "ProdFileUpload") + delete(f, "DevFileUpload") + delete(f, "DisplayName") + delete(f, "Description") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateDataSourceRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateDataSourceResponseParams struct { + // 操作是否成功 + Data *DataSourceStatus `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateDataSourceResponse struct { + *tchttp.BaseResponse + Response *UpdateDataSourceResponseParams `json:"Response"` +} + +func (r *UpdateDataSourceResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateDataSourceResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + type UpdateFolderResult struct { // 更新状态,true表示更新成功,false表示更新失败 Status *bool `json:"Status,omitnil,omitempty" name:"Status"` @@ -9036,6 +13857,81 @@ func (r *UpdateOpsTasksOwnerResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UpdateProjectRequestParams struct { + // 目标修改的项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 项目显示名称,可以为中文名,需要租户范围内唯一 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 备注 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 项目负责人id + ProjectOwnerUin *string `json:"ProjectOwnerUin,omitnil,omitempty" name:"ProjectOwnerUin"` +} + +type UpdateProjectRequest struct { + *tchttp.BaseRequest + + // 目标修改的项目ID + ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"` + + // 项目显示名称,可以为中文名,需要租户范围内唯一 + DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"` + + // 备注 + Description *string `json:"Description,omitnil,omitempty" name:"Description"` + + // 项目负责人id + ProjectOwnerUin *string `json:"ProjectOwnerUin,omitnil,omitempty" name:"ProjectOwnerUin"` +} + +func (r *UpdateProjectRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateProjectRequest) 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, "DisplayName") + delete(f, "Description") + delete(f, "ProjectOwnerUin") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateProjectRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateProjectResponseParams struct { + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateProjectResponse struct { + *tchttp.BaseResponse + Response *UpdateProjectResponseParams `json:"Response"` +} + +func (r *UpdateProjectResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateProjectResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type UpdateResourceFileRequestParams struct { // 项目ID @@ -9208,6 +14104,129 @@ func (r *UpdateResourceFolderResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type UpdateResourceGroupRequestParams struct { + // 资源组id + Id *string `json:"Id,omitnil,omitempty" name:"Id"` + + // **变更配置(变配、续费、修改资源包数量 不能同时操作), 变配无法修改资源组类型** + // + // 实时集成资源组 + // - i32c(实时数据同步-16C64G) + // + // 离线集成资源组 + // - integrated(离线数据同步-8C16G) + // - i16(离线数据同步-8C32G) + // + // 调度资源组 + // - s_test(测试规格) + // - s_small(基础规格) + // - s_medium(普及规格) + // - s_large(专业规格) + // + // 数据服务资源组 + // - ds_t(测试规格) + // - ds_s(基础规格) + // - ds_m(普及规格) + // - ds_l(专业规格) + Type *string `json:"Type,omitnil,omitempty" name:"Type"` + + // 续费时长,单位月(变配、续费、修改资源包数量 不能同时操作) + PurchasePeriod *int64 `json:"PurchasePeriod,omitnil,omitempty" name:"PurchasePeriod"` + + // 增加/减少资源包的数量(变配、续费、修改资源包数量 不能同时操作) + Number *ResourceNumber `json:"Number,omitnil,omitempty" name:"Number"` + + // 是否自动续费,续费参数PurchasePeriod不为空时可以生效 + AutoRenewEnabled *bool `json:"AutoRenewEnabled,omitnil,omitempty" name:"AutoRenewEnabled"` +} + +type UpdateResourceGroupRequest struct { + *tchttp.BaseRequest + + // 资源组id + Id *string `json:"Id,omitnil,omitempty" name:"Id"` + + // **变更配置(变配、续费、修改资源包数量 不能同时操作), 变配无法修改资源组类型** + // + // 实时集成资源组 + // - i32c(实时数据同步-16C64G) + // + // 离线集成资源组 + // - integrated(离线数据同步-8C16G) + // - i16(离线数据同步-8C32G) + // + // 调度资源组 + // - s_test(测试规格) + // - s_small(基础规格) + // - s_medium(普及规格) + // - s_large(专业规格) + // + // 数据服务资源组 + // - ds_t(测试规格) + // - ds_s(基础规格) + // - ds_m(普及规格) + // - ds_l(专业规格) + Type *string `json:"Type,omitnil,omitempty" name:"Type"` + + // 续费时长,单位月(变配、续费、修改资源包数量 不能同时操作) + PurchasePeriod *int64 `json:"PurchasePeriod,omitnil,omitempty" name:"PurchasePeriod"` + + // 增加/减少资源包的数量(变配、续费、修改资源包数量 不能同时操作) + Number *ResourceNumber `json:"Number,omitnil,omitempty" name:"Number"` + + // 是否自动续费,续费参数PurchasePeriod不为空时可以生效 + AutoRenewEnabled *bool `json:"AutoRenewEnabled,omitnil,omitempty" name:"AutoRenewEnabled"` +} + +func (r *UpdateResourceGroupRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateResourceGroupRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Id") + delete(f, "Type") + delete(f, "PurchasePeriod") + delete(f, "Number") + delete(f, "AutoRenewEnabled") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateResourceGroupRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type UpdateResourceGroupResponseParams struct { + // 是否修改成功 + Data *ResourceStatus `json:"Data,omitnil,omitempty" name:"Data"` + + // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` +} + +type UpdateResourceGroupResponse struct { + *tchttp.BaseResponse + Response *UpdateResourceGroupResponseParams `json:"Response"` +} + +func (r *UpdateResourceGroupResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateResourceGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type UpdateSQLFolderRequestParams struct { // 文件夹Id diff --git a/vendor/modules.txt b/vendor/modules.txt index 8a208cf2b4..ac92df79b7 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1170,7 +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 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.36 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.1.40 ## explicit; go 1.11 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors @@ -1359,7 +1359,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc/v20170312 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/waf v1.0.1170 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/waf/v20180125 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.1.31 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.1.40 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20210820 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata/v20250806 diff --git a/website/docs/d/wedata_data_backfill_instances.html.markdown b/website/docs/d/wedata_data_backfill_instances.html.markdown new file mode 100644 index 0000000000..cc2d58a70a --- /dev/null +++ b/website/docs/d/wedata_data_backfill_instances.html.markdown @@ -0,0 +1,39 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_data_backfill_instances" +sidebar_current: "docs-tencentcloud-datasource-wedata_data_backfill_instances" +description: |- + Use this data source to query detailed information of wedata data backfill instances +--- + +# tencentcloud_wedata_data_backfill_instances + +Use this data source to query detailed information of wedata data backfill instances + +## Example Usage + +```hcl +data "tencentcloud_wedata_data_backfill_instances" "wedata_data_backfill_instances" { + project_id = "1859317240494305280" + data_backfill_plan_id = "deb71ea1-f708-47ab-8eb6-491ce5b9c011" + task_id = "20231011152006462" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `data_backfill_plan_id` - (Required, String) Backfill plan Id. +* `project_id` - (Required, String) Project ID. +* `task_id` - (Required, String) Task ID. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `data` - All backfill instances under one backfill plan. + + diff --git a/website/docs/d/wedata_data_backfill_plan.html.markdown b/website/docs/d/wedata_data_backfill_plan.html.markdown new file mode 100644 index 0000000000..bb1ea5c44d --- /dev/null +++ b/website/docs/d/wedata_data_backfill_plan.html.markdown @@ -0,0 +1,38 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_data_backfill_plan" +sidebar_current: "docs-tencentcloud-datasource-wedata_data_backfill_plan" +description: |- + Use this data source to query detailed information of wedata data backfill plan +--- + +# tencentcloud_wedata_data_backfill_plan + +Use this data source to query detailed information of wedata data backfill plan + +## Example Usage + +```hcl +data "tencentcloud_wedata_data_backfill_plan" "wedata_data_backfill_plan" { + project_id = "1859317240494305280" + data_backfill_plan_id = "deb71ea1-f708-47ab-8eb6-491ce5b9c011" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `data_backfill_plan_id` - (Required, String) Backfill Plan ID. +* `project_id` - (Required, String) Project ID. +* `result_output_file` - (Optional, String) Used to save results. +* `time_zone` - (Optional, String) Display time zone, default UTC+8. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `data` - Backfill details. + + diff --git a/website/docs/d/wedata_ops_alarm_message.html.markdown b/website/docs/d/wedata_ops_alarm_message.html.markdown new file mode 100644 index 0000000000..9d93517f3f --- /dev/null +++ b/website/docs/d/wedata_ops_alarm_message.html.markdown @@ -0,0 +1,38 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_ops_alarm_message" +sidebar_current: "docs-tencentcloud-datasource-wedata_ops_alarm_message" +description: |- + Use this data source to query detailed information of wedata ops alarm message +--- + +# tencentcloud_wedata_ops_alarm_message + +Use this data source to query detailed information of wedata ops alarm message + +## Example Usage + +```hcl +data "tencentcloud_wedata_ops_alarm_message" "wedata_ops_alarm_message" { + project_id = "1859317240494305280" + alarm_message_id = 263840 +} +``` + +## Argument Reference + +The following arguments are supported: + +* `alarm_message_id` - (Required, String) Alarm message Id. +* `project_id` - (Required, String) Project ID. +* `result_output_file` - (Optional, String) Used to save results. +* `time_zone` - (Optional, String) Specifies the time zone of the return date. default UTC+8. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `data` - Alarm information. + + diff --git a/website/docs/d/wedata_ops_alarm_messages.html.markdown b/website/docs/d/wedata_ops_alarm_messages.html.markdown new file mode 100644 index 0000000000..8d90fe03a3 --- /dev/null +++ b/website/docs/d/wedata_ops_alarm_messages.html.markdown @@ -0,0 +1,44 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_ops_alarm_messages" +sidebar_current: "docs-tencentcloud-datasource-wedata_ops_alarm_messages" +description: |- + Use this data source to query detailed information of wedata ops alarm messages +--- + +# tencentcloud_wedata_ops_alarm_messages + +Use this data source to query detailed information of wedata ops alarm messages + +## Example Usage + +```hcl +data "tencentcloud_wedata_ops_alarm_messages" "wedata_ops_alarm_messages" { + project_id = "1859317240494305280" + start_time = "2025-10-14 21:09:26" + end_time = "2025-10-14 21:10:26" + alarm_level = 1 + time_zone = "UTC+8" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `project_id` - (Required, String) Project id. +* `alarm_level` - (Optional, Int) Alarm level. +* `alarm_recipient_id` - (Optional, String) Alert recipient Id. +* `end_time` - (Optional, String) Specifies the Alarm end time in the format yyyy-MM-dd HH:MM:ss. +* `result_output_file` - (Optional, String) Used to save results. +* `start_time` - (Optional, String) Starting Alarm time. format: yyyy-MM-dd HH:MM:ss. +* `time_zone` - (Optional, String) For incoming and returned filter time zone, default UTC+8. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `data` - Alarm information list. + + diff --git a/website/docs/d/wedata_ops_downstream_tasks.html.markdown b/website/docs/d/wedata_ops_downstream_tasks.html.markdown new file mode 100644 index 0000000000..af47523ef5 --- /dev/null +++ b/website/docs/d/wedata_ops_downstream_tasks.html.markdown @@ -0,0 +1,37 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_ops_downstream_tasks" +sidebar_current: "docs-tencentcloud-datasource-wedata_ops_downstream_tasks" +description: |- + Use this data source to query detailed information of wedata ops downstream task +--- + +# tencentcloud_wedata_ops_downstream_tasks + +Use this data source to query detailed information of wedata ops downstream task + +## Example Usage + +```hcl +data "tencentcloud_wedata_ops_downstream_tasks" "wedata_ops_downstream_tasks" { + project_id = "1859317240494305280" + task_id = "20250820150144998" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `project_id` - (Required, String) Project ID. +* `task_id` - (Required, String) Task ID. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `data` - Downstream dependency description. + + diff --git a/website/docs/d/wedata_ops_task_code.html.markdown b/website/docs/d/wedata_ops_task_code.html.markdown new file mode 100644 index 0000000000..4f8cf2a7ee --- /dev/null +++ b/website/docs/d/wedata_ops_task_code.html.markdown @@ -0,0 +1,37 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_ops_task_code" +sidebar_current: "docs-tencentcloud-datasource-wedata_ops_task_code" +description: |- + Use this data source to query detailed information of wedata ops task code +--- + +# tencentcloud_wedata_ops_task_code + +Use this data source to query detailed information of wedata ops task code + +## Example Usage + +```hcl +data "tencentcloud_wedata_ops_task_code" "wedata_ops_task_code" { + project_id = "1859317240494305280" + task_id = "20230901114849281" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `project_id` - (Required, String) Project id. +* `task_id` - (Required, String) Task ID. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `data` - Retrieves the task code result. + + diff --git a/website/docs/d/wedata_ops_tasks.html.markdown b/website/docs/d/wedata_ops_tasks.html.markdown new file mode 100644 index 0000000000..1653785da7 --- /dev/null +++ b/website/docs/d/wedata_ops_tasks.html.markdown @@ -0,0 +1,53 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_ops_tasks" +sidebar_current: "docs-tencentcloud-datasource-wedata_ops_tasks" +description: |- + Use this data source to query detailed information of wedata ops tasks +--- + +# tencentcloud_wedata_ops_tasks + +Use this data source to query detailed information of wedata ops tasks + +## Example Usage + +```hcl +data "tencentcloud_wedata_ops_tasks" "wedata_ops_tasks" { + project_id = "1859317240494305280" + task_type_id = 34 + workflow_id = "d7184172-4879-11ee-ba36-b8cef6a5af5c" + workflow_name = "test1" + folder_id = "cee5780a-4879-11ee-ba36-b8cef6a5af5c" + executor_group_id = "20230830105723839685" + cycle_type = "MINUTE_CYCLE" + status = "F" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `project_id` - (Required, String) Project ID. +* `cycle_type` - (Optional, String) Task Cycle Type: ONEOFF_CYCLE: One-time, YEAR_CYCLE: Yearly, MONTH_CYCLE: Monthly, WEEK_CYCLE: Weekly, DAY_CYCLE: Daily, HOUR_CYCLE: Hourly, MINUTE_CYCLE: Minute-level, CRONTAB_CYCLE: Crontab expression-based. +* `executor_group_id` - (Optional, String) Executor Group ID. +* `folder_id` - (Optional, String) Folder ID. +* `owner_uin` - (Optional, String) Owner id. +* `result_output_file` - (Optional, String) Used to save results. +* `source_service_id` - (Optional, String) Data source ID. +* `status` - (Optional, String) Task Status: -Y: Running, -F: Stopped, -O: Frozen, -T: Stopping, -INVALID: Invalid. +* `target_service_id` - (Optional, String) Target data source id. +* `task_type_id` - (Optional, String) Task type Id. -20: common data sync, - 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 machine learning, - 48:TrinoTaskType, - 50:DLCPyspark39:spark, - 92:mr, -38: shell script, -70: hivesql script, -1000: common custom business. +* `time_zone` - (Optional, String) Time zone. defaults to UTC+8. +* `workflow_id` - (Optional, String) Workflow ID. +* `workflow_name` - (Optional, String) Workflow name. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `data` - Task list. + + diff --git a/website/docs/d/wedata_ops_upstream_tasks.html.markdown b/website/docs/d/wedata_ops_upstream_tasks.html.markdown new file mode 100644 index 0000000000..938a5c8064 --- /dev/null +++ b/website/docs/d/wedata_ops_upstream_tasks.html.markdown @@ -0,0 +1,37 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_ops_upstream_tasks" +sidebar_current: "docs-tencentcloud-datasource-wedata_ops_upstream_tasks" +description: |- + Use this data source to query detailed information of wedata ops upstream task +--- + +# tencentcloud_wedata_ops_upstream_tasks + +Use this data source to query detailed information of wedata ops upstream task + +## Example Usage + +```hcl +data "tencentcloud_wedata_ops_upstream_tasks" "wedata_ops_upstream_tasks" { + project_id = "1859317240494305280" + task_id = "20250820150144998" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `project_id` - (Required, String) Project ID. +* `task_id` - (Required, String) Task ID. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `data` - Upstream task details. + + diff --git a/website/docs/r/wedata_ops_task.html.markdown b/website/docs/r/wedata_ops_task.html.markdown new file mode 100644 index 0000000000..0559084a8f --- /dev/null +++ b/website/docs/r/wedata_ops_task.html.markdown @@ -0,0 +1,41 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_ops_task" +sidebar_current: "docs-tencentcloud-resource-wedata_ops_task" +description: |- + Provides a resource to create a wedata ops task +--- + +# tencentcloud_wedata_ops_task + +Provides a resource to create a wedata ops task + +## Example Usage + +```hcl +resource "tencentcloud_wedata_ops_task" "wedata_ops_task" { + project_id = "1859317240494305280" + task_id = "20251013154418424" + action = "START" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `action` - (Required, String) Action. Valid values: `START`, `PAUSE`. +* `project_id` - (Required, String, ForceNew) Project Id. +* `task_id` - (Required, String, ForceNew) Task id. +* `enable_data_backfill` - (Optional, Bool) Whether to re-record the intermediate instance from the last pause to the current one when starting. The default value is false, which means no re-recording. +* `kill_instance` - (Optional, Bool) Whether required to terminate the generated instance. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. +* `status` - Task status. + + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index 00fdd7dd47..c1831a21c0 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -7009,6 +7009,12 @@
  • Data Sources