tencentcloud-sdk-nodejs-intl-en
Version:
2,018 lines (1,713 loc) • 1 MB
JavaScript
/*
* Copyright (c) 2018 Tencent. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const AbstractModel = require("../../common/abstract_model");
/**
* Create task return format.
* @class
*/
class CreateTaskResult extends AbstractModel {
constructor(){
super();
/**
* Task ID
* @type {string || null}
*/
this.TaskId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TaskId = 'TaskId' in params ? params.TaskId : null;
}
}
/**
* Role object.
* @class
*/
class SystemRole extends AbstractModel {
constructor(){
super();
/**
* Role id.
* @type {string || null}
*/
this.RoleId = null;
/**
* Role name
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.RoleName = null;
/**
* Display name of the role.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.RoleDisplayName = null;
/**
* Description
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Description = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RoleId = 'RoleId' in params ? params.RoleId : null;
this.RoleName = 'RoleName' in params ? params.RoleName : null;
this.RoleDisplayName = 'RoleDisplayName' in params ? params.RoleDisplayName : null;
this.Description = 'Description' in params ? params.Description : null;
}
}
/**
* ListOpsTriggerWorkflows response structure.
* @class
*/
class ListOpsTriggerWorkflowsResponse extends AbstractModel {
constructor(){
super();
/**
* Workflow query result.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {TriggerWorkflowResult || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new TriggerWorkflowResult();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ListWorkflowPermissions response structure.
* @class
*/
class ListWorkflowPermissionsResponse extends AbstractModel {
constructor(){
super();
/**
* Paginated authorization information inquiry results.
* @type {WorkflowPermissionPage || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new WorkflowPermissionPage();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ListProcessLineage response structure.
* @class
*/
class ListProcessLineageResponse extends AbstractModel {
constructor(){
super();
/**
* Paging data
* @type {ListProcessLineagePage || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new ListProcessLineagePage();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* GetWorkflowFolder request structure.
* @class
*/
class GetWorkflowFolderRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Folder ID
* @type {string || null}
*/
this.FolderId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.FolderId = 'FolderId' in params ? params.FolderId : null;
}
}
/**
* Retrieves workflow list information item.
* @class
*/
class WorkflowInfo extends AbstractModel {
constructor(){
super();
/**
* Workflow ID.
* @type {string || null}
*/
this.WorkflowId = null;
/**
* Workflow name.
* @type {string || null}
*/
this.WorkflowName = null;
/**
* Workflow type: cycle or manual.
* @type {string || null}
*/
this.WorkflowType = null;
/**
* Owner ID
* @type {string || null}
*/
this.OwnerUin = null;
/**
* Creation time.
* @type {string || null}
*/
this.CreateTime = null;
/**
* Last Modification Time
* @type {string || null}
*/
this.ModifyTime = null;
/**
* Last updated user ID.
* @type {string || null}
*/
this.UpdateUserUin = null;
/**
* Workflow description.
* @type {string || null}
*/
this.WorkflowDesc = null;
/**
* Creator ID.
* @type {string || null}
*/
this.CreateUserUin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.WorkflowId = 'WorkflowId' in params ? params.WorkflowId : null;
this.WorkflowName = 'WorkflowName' in params ? params.WorkflowName : null;
this.WorkflowType = 'WorkflowType' in params ? params.WorkflowType : null;
this.OwnerUin = 'OwnerUin' in params ? params.OwnerUin : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null;
this.UpdateUserUin = 'UpdateUserUin' in params ? params.UpdateUserUin : null;
this.WorkflowDesc = 'WorkflowDesc' in params ? params.WorkflowDesc : null;
this.CreateUserUin = 'CreateUserUin' in params ? params.CreateUserUin : null;
}
}
/**
* RevokePrivileges request structure.
* @class
*/
class RevokePrivilegesRequest extends AbstractModel {
constructor(){
super();
/**
* Resource array. data source is ResourceType and ResourceUri in the Resource of the ListPermissions API response.
* @type {Array.<PrivilegeResource> || null}
*/
this.Resources = null;
/**
* Authorization revoked principal array. need to pay attention to parameter assembly.
1. for SubjectType and SubjectValues, refer to SubjectType and SubjectValue in SubjectDetails returned by the ListPermissions api.
2. during batch reclamation, the length of the Subjects array must match the length of the Privileges permission point, and the data must have a one-to-one correspondence.
* @type {Array.<Subject> || null}
*/
this.Subjects = null;
/**
* Permission point, Name originates from the Name in PermissionDetails of the ListPermissions API response, such as BROWSE, GRANT_PRIVILEGES.
* @type {Array.<PrivilegeInfo> || null}
*/
this.Privileges = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Resources) {
this.Resources = new Array();
for (let z in params.Resources) {
let obj = new PrivilegeResource();
obj.deserialize(params.Resources[z]);
this.Resources.push(obj);
}
}
if (params.Subjects) {
this.Subjects = new Array();
for (let z in params.Subjects) {
let obj = new Subject();
obj.deserialize(params.Subjects[z]);
this.Subjects.push(obj);
}
}
if (params.Privileges) {
this.Privileges = new Array();
for (let z in params.Privileges) {
let obj = new PrivilegeInfo();
obj.deserialize(params.Privileges[z]);
this.Privileges.push(obj);
}
}
}
}
/**
* ListTable response structure.
* @class
*/
class ListTableResponse extends AbstractModel {
constructor(){
super();
/**
* Paging data
* @type {ListTablePage || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new ListTablePage();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateDataSource request structure.
* @class
*/
class CreateDataSourceRequest extends AbstractModel {
constructor(){
super();
/**
* Data source item ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Data source name
* @type {string || null}
*/
this.Name = null;
/**
* Data source type: enumeration value.
- 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
- FileSystem
* @type {string || null}
*/
this.Type = null;
/**
* Configuration message of data sources is stored in JSON KV, based on data source type, KV storage information varies.
> deployType:
CONNSTR_PUBLICDB (public network instance).
CONNSTR_CVMDB (self-built instance).
Cloud INSTANCE.
```
mysql: self-built instance.
{
"deployType": "CONNSTR_CVMDB",
"url": "jdbc:mysql://1.1.1.1:1111/example#test#123456",
"username": "root",
"password": "example#test#123456",
"region": "ap-shanghai",
"vpcId": "vpc-kprq42yo",
"type": "MYSQL"
}
mysql: cloud instance.
{
"instanceid": "cdb-12uxdo5e",
"db": "db",
"region": "ap-shanghai",
"username": "msyql",
"password": "example#test#123456",
"deployType": "INSTANCE",
"type": "TENCENT_MYSQL"
}
sql_server:
{
"deployType": "CONNSTR_PUBLICDB",
"url": "jdbc:sqlserver://1.1.1.1:223;example#test#123456",
"username": "user_1",
"password": "example#test#123456",
"type": "SQLSERVER"
}
redis:
redisType:
-Account-Free.
-SELF_ACCOUNT (custom account).
{
"deployType": "CONNSTR_PUBLICDB",
"username":""
"password": "example#test#123456",
"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:example#test#123456",
"username": "oracle",
"password": "example#test#123456",
"region": "ap-shanghai",
"vpcId": "vpc-kprq42yo",
"type": "ORACLE"
}
mongodb:
advanceParams (custom parameters, which will be appended to the url).
{
"advanceParams": [
{
"key": "authSource",
"value": "auth"
}
],
"db": "admin",
"deployType": "CONNSTR_PUBLICDB",
"username": "user",
"password": "example#test#123456",
"type": "MONGODB",
"host": "1.1.1.1:9200"
}
postgresql:
{
"deployType": "CONNSTR_PUBLICDB",
"url": "jdbc:postgresql://1.1.1.1:1921/example#test#123456",
"username": "user",
"password": "example#test#123456",
"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": "example#test#123456",
"bucket": "aaa",
"type": "COS"
}
```
* @type {string || null}
*/
this.ProdConProperties = null;
/**
* Development environment data source configuration info. if the project is in standard mode, this field is required.
* @type {string || null}
*/
this.DevConProperties = null;
/**
* Upload data source file in production environment.
* @type {DataSourceFileUpload || null}
*/
this.ProdFileUpload = null;
/**
* Upload the data source file in the development environment.
* @type {DataSourceFileUpload || null}
*/
this.DevFileUpload = null;
/**
* Data source display name for visual inspection.
* @type {string || null}
*/
this.DisplayName = null;
/**
* Data source description information
* @type {string || null}
*/
this.Description = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.Name = 'Name' in params ? params.Name : null;
this.Type = 'Type' in params ? params.Type : null;
this.ProdConProperties = 'ProdConProperties' in params ? params.ProdConProperties : null;
this.DevConProperties = 'DevConProperties' in params ? params.DevConProperties : null;
if (params.ProdFileUpload) {
let obj = new DataSourceFileUpload();
obj.deserialize(params.ProdFileUpload)
this.ProdFileUpload = obj;
}
if (params.DevFileUpload) {
let obj = new DataSourceFileUpload();
obj.deserialize(params.DevFileUpload)
this.DevFileUpload = obj;
}
this.DisplayName = 'DisplayName' in params ? params.DisplayName : null;
this.Description = 'Description' in params ? params.Description : null;
}
}
/**
* GetResourceGroupMetrics response structure.
* @class
*/
class GetResourceGroupMetricsResponse extends AbstractModel {
constructor(){
super();
/**
* Execute group metric information.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ResourceGroupMetrics || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new ResourceGroupMetrics();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DeleteWorkflow response structure.
* @class
*/
class DeleteWorkflowResponse extends AbstractModel {
constructor(){
super();
/**
* Whether deletion succeeded.
* @type {DeleteWorkflowResult || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new DeleteWorkflowResult();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ListDataSources request structure.
* @class
*/
class ListDataSourcesRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Number of returned results. default: 10.
* @type {number || null}
*/
this.PageSize = null;
/**
* Page number, which is 1 by default.
* @type {number || null}
*/
this.PageNumber = null;
/**
* Data source name
* @type {string || null}
*/
this.Name = null;
/**
* Data source display name.
* @type {string || null}
*/
this.DisplayName = null;
/**
* Data source type: enumeration value.
- 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 {Array.<string> || null}
*/
this.Type = null;
/**
* Creator
* @type {string || null}
*/
this.Creator = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
this.Name = 'Name' in params ? params.Name : null;
this.DisplayName = 'DisplayName' in params ? params.DisplayName : null;
this.Type = 'Type' in params ? params.Type : null;
this.Creator = 'Creator' in params ? params.Creator : null;
}
}
/**
* Query workflow pagination list.
* @class
*/
class OpsWorkflows extends AbstractModel {
constructor(){
super();
/**
* Record list
* @type {Array.<OpsWorkflow> || null}
*/
this.Items = null;
/**
* Total number of results
* @type {number || null}
*/
this.TotalCount = null;
/**
* Total pages
* @type {number || null}
*/
this.TotalPageNumber = null;
/**
* Pagination size.
* @type {number || null}
*/
this.PageSize = null;
/**
* Page number
* @type {number || null}
*/
this.PageNumber = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Items) {
this.Items = new Array();
for (let z in params.Items) {
let obj = new OpsWorkflow();
obj.deserialize(params.Items[z]);
this.Items.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.TotalPageNumber = 'TotalPageNumber' in params ? params.TotalPageNumber : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
}
}
/**
* This API is used to obtain project information.
* @class
*/
class ProjectRequest extends AbstractModel {
constructor(){
super();
/**
* Project id, english name, starts with a letter, can contain letters, numbers, and underscores, and must not exceed 32 characters.
* @type {string || null}
*/
this.ProjectName = null;
/**
* The project display name can be a chinese name, starts with a letter, and can contain letters, numbers, and underscores, with a maximum of 32 characters.
* @type {string || null}
*/
this.DisplayName = null;
/**
* Project mode, SIMPLE (default): SIMPLE mode STANDARD: STANDARD mode.
* @type {string || null}
*/
this.ProjectModel = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectName = 'ProjectName' in params ? params.ProjectName : null;
this.DisplayName = 'DisplayName' in params ? params.DisplayName : null;
this.ProjectModel = 'ProjectModel' in params ? params.ProjectModel : null;
}
}
/**
* SQL parameter of the SPARK workflow.
* @class
*/
class WorkflowGeneralTaskParam extends AbstractModel {
constructor(){
super();
/**
* Common task parameter type, currently only support SPARK_SQL.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Type = null;
/**
* Common task parameter content. different parameters are separated by semicolons.
Split.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Value = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Type = 'Type' in params ? params.Type : null;
this.Value = 'Value' in params ? params.Value : null;
}
}
/**
* GetMyCodeMaxPermission request structure.
* @class
*/
class GetMyCodeMaxPermissionRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Authorized resource unique id, folder id, or file id.
* @type {string || null}
*/
this.ResourceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.ResourceId = 'ResourceId' in params ? params.ResourceId : null;
}
}
/**
* DeleteResourceFolder response structure.
* @class
*/
class DeleteResourceFolderResponse extends AbstractModel {
constructor(){
super();
/**
* true represents successful deletion. false represents failure.
* @type {DeleteFolderResult || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new DeleteFolderResult();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* UpdateTask request structure.
* @class
*/
class UpdateTaskRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Task ID
* @type {string || null}
*/
this.TaskId = null;
/**
* Describes the basic attributes of the task.
* @type {UpdateTaskBrief || null}
*/
this.Task = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.TaskId = 'TaskId' in params ? params.TaskId : null;
if (params.Task) {
let obj = new UpdateTaskBrief();
obj.deserialize(params.Task)
this.Task = obj;
}
}
}
/**
* map
* @class
*/
class KVMap extends AbstractModel {
constructor(){
super();
/**
* k
* @type {string || null}
*/
this.K = null;
/**
* v
* @type {string || null}
*/
this.V = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.K = 'K' in params ? params.K : null;
this.V = 'V' in params ? params.V : null;
}
}
/**
* CreateTriggerWorkflowRun response structure.
* @class
*/
class CreateTriggerWorkflowRunResponse extends AbstractModel {
constructor(){
super();
/**
* Operation Result Information
Note: This field may return null, indicating that no valid values can be obtained.
* @type {CreateTriggerWorkflowRunResult || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new CreateTriggerWorkflowRunResult();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ListResourceFiles response structure.
* @class
*/
class ListResourceFilesResponse extends AbstractModel {
constructor(){
super();
/**
* Retrieve the resource file list.
* @type {ResourceFilePage || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new ResourceFilePage();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ListDownstreamTaskInstances request structure.
* @class
*/
class ListDownstreamTaskInstancesRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* **Instance unique id**.
* @type {string || null}
*/
this.InstanceKey = null;
/**
* **Time zone** timeZone, default UTC+8.
* @type {string || null}
*/
this.TimeZone = null;
/**
* **Page number, int** used in conjunction with pageSize and cannot be less than 1. default value: 1.
* @type {number || null}
*/
this.PageNumber = null;
/**
* Specifies the number of items to display per page. default: 10. value range: 1-100.
* @type {number || null}
*/
this.PageSize = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.InstanceKey = 'InstanceKey' in params ? params.InstanceKey : null;
this.TimeZone = 'TimeZone' in params ? params.TimeZone : null;
this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
}
}
/**
* UpdateProject request structure.
* @class
*/
class UpdateProjectRequest extends AbstractModel {
constructor(){
super();
/**
* Modify the project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Project display name can be a chinese name and must be unique within the tenant scope.
* @type {string || null}
*/
this.DisplayName = null;
/**
* Remarks
* @type {string || null}
*/
this.Description = null;
/**
* Project leader id.
* @type {string || null}
*/
this.ProjectOwnerUin = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.DisplayName = 'DisplayName' in params ? params.DisplayName : null;
this.Description = 'Description' in params ? params.Description : null;
this.ProjectOwnerUin = 'ProjectOwnerUin' in params ? params.ProjectOwnerUin : null;
}
}
/**
* DeleteWorkflow request structure.
* @class
*/
class DeleteWorkflowRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Workflow id.
* @type {string || null}
*/
this.WorkflowId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.WorkflowId = 'WorkflowId' in params ? params.WorkflowId : null;
}
}
/**
* ListProjectMembers request structure.
* @class
*/
class ListProjectMembersRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Filter by member name with fuzzy query support.
* @type {string || null}
*/
this.UserName = null;
/**
* Filter by member id. supports fuzzy query.
* @type {string || null}
*/
this.UserUin = null;
/**
* Page size, default first page.
* @type {number || null}
*/
this.PageSize = null;
/**
* Number of items per page. default value is `10`.
* @type {number || null}
*/
this.PageNumber = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.UserName = 'UserName' in params ? params.UserName : null;
this.UserUin = 'UserUin' in params ? params.UserUin : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
this.PageNumber = 'PageNumber' in params ? params.PageNumber : null;
}
}
/**
* DeleteDataBackfillPlanAsync request structure.
* @class
*/
class DeleteDataBackfillPlanAsyncRequest extends AbstractModel {
constructor(){
super();
/**
* Project ID.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Supplemental plan id.
* @type {string || null}
*/
this.DataBackfillPlanId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.DataBackfillPlanId = 'DataBackfillPlanId' in params ? params.DataBackfillPlanId : null;
}
}
/**
* DeleteTriggerWorkflow response structure.
* @class
*/
class DeleteTriggerWorkflowResponse extends AbstractModel {
constructor(){
super();
/**
* Whether deletion succeeded.
* @type {DeleteTriggerWorkflowResult || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
let obj = new DeleteTriggerWorkflowResult();
obj.deserialize(params.Data)
this.Data = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Summary information of task running in workflow scheduling mode.
* @class
*/
class TriggerTaskRunBrief extends AbstractModel {
constructor(){
super();
/**
* Running ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExecutionId = null;
/**
* Execution status: FAILED (FAILED to run), SUCCESS (executed successfully), PENDING (waiting), SKIP (SKIP RUNNING), RUNNING (RUNNING).
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExecutionState = null;
/**
* Project ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ProjectId = null;
/**
* Workflow ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WorkflowId = null;
/**
* Running ID of the workflow.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WorkflowExecutionId = null;
/**
* Task ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TaskId = null;
/**
* Task type
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TaskType = null;
/**
* Task version.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TaskVersionId = null;
/**
* Trigger Type
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TriggerType = null;
/**
* Waiting duration, in seconds.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WaitTime = null;
/**
* Associated resource group.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ResourceGroup = null;
/**
* Error code
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ErrorCode = null;
/**
* Operating account.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExecuteUserUin = null;
/**
* Creator ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreaterUin = null;
/**
* Execution ID of the execution platform.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.JobId = null;
/**
* Creation Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreateTime = null;
/**
* Update Timestamp
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UpdateTime = null;
/**
* Task completion time dependency.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.DependenceFinishedTime = null;
/**
* Task delivery time to the execution platform.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.QueueStartTime = null;
/**
* Started waiting for source time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.PendingStartTime = null;
/**
* Start time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExecutionStartTime = null;
/**
* Running end time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExecutionEndTime = null;
/**
* Queuing time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.QueueCostTime = null;
/**
* Running time
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExecutionTime = null;
/**
* Total time spent.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.AllCostTime = null;
/**
* Time zone.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TimeZone = null;
/**
* Depends on the upstream task ID list.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.DependOnList = null;
/**
* Running parameter.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.RunParams = null;
/**
* Task extension information, including script path.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TaskTypeExtensions = null;
/**
* Retry count. it indicates the first run when set to 0.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.RetryTimes = null;
/**
* Left coordinate.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.LeftCoordinate = null;
/**
* Top coordinate.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TopCoordinate = null;
/**
* Resource group ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ResourceGroupId = null;
/**
* Error code description
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ErrorCodeStr = null;
/**
* Creator UIN.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreateUin = null;
/**
* Issue the execution platform time.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.IssueTime = null;
/**
* Task name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TaskName = null;
/**
* Workflow name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WorkflowName = null;
/**
* Operator name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExecuteUserName = null;
/**
* Number of retries.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.RerunTimes = null;
/**
* Whether it is the most recent run.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.IsLatestExecution = null;
/**
* Task running status.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TaskExecutionState = null;
/**
* Cycle type.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CycleType = null;
/**
* Responsible person's name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UserNameInCharge = null;
/**
* Responsible person id.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UserUinInCharge = null;
/**
* Resource group name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ResourceGroupName = null;
/**
* Time zone.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Timezone = null;
/**
* Folder ID
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.FolderId = null;
/**
* Folder name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.FolderName = null;
/**
* Project name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ProjectName = null;
/**
* Task type id.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TaskTypeId = null;
/**
* Workflow running parameter.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WorkflowParams = null;
/**
* Whether rerun is supported.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.SupportRerun = null;
/**
* Workflow execution status.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.WorkflowExecutionState = null;
/**
* Task execution result.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ExecutionResult = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ExecutionId = 'ExecutionId' in params ? params.ExecutionId : null;
this.ExecutionState = 'ExecutionState' in params ? params.ExecutionState : null;
this.ProjectId = 'ProjectId' in params ? params.ProjectId : null;
this.WorkflowId = 'WorkflowId' in params ? params.WorkflowId : null;
this.WorkflowExecutionId = 'WorkflowExecutionId' in params ? params.WorkflowExecutionId : null;
this.TaskId = 'TaskId' in params ? params.TaskId : null;
this.TaskType = 'TaskType' in params ? params.TaskType : null;
this.TaskVersionId = 'TaskVersionId' in params ? params.TaskVersionId : null;
this.TriggerType = 'TriggerType' in params ? params.TriggerType : null;
this.WaitTime = 'WaitTime' in params ? params.WaitTime : null;
this.ResourceGroup = 'ResourceGroup' in params ? params.ResourceGroup : null;
this.ErrorCode = 'ErrorCode' in params ? params.ErrorCode : null;
this.ExecuteUserUin = 'ExecuteUserUin' in params ? params.ExecuteUserUin : null;
this.CreaterUin = 'CreaterUin' in params ? params.CreaterUin : null;
this.JobId = 'JobId' in params ? params.JobId : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
this.DependenceFinishedTime = 'DependenceFinishedTime' in params ? params.DependenceFinishedTime : null;
this.QueueStartTime = 'QueueStartTime' in params ? params.QueueStartTime : null;
this.PendingStartTime = 'PendingStartTime' in params ? params.PendingStartTime : null;
this.ExecutionStartTime = 'ExecutionStartTime' in params ? params.ExecutionStartTime : null;
this.ExecutionEndTime = 'ExecutionEndTime' in params ? params.ExecutionEndTime : null;
this.QueueCostTime = 'QueueCostTime' in params ? params.QueueCostTime