UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,831 lines (1,543 loc) • 451 kB
/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. 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"); /** * Detailed user information * @class */ class UserDetailInfo extends AbstractModel { constructor(){ super(); /** * User ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserId = null; /** * Types of returned information. Group: returned information about the working group where the current user is; DataAuth: returned information about the current user's data permission; EngineAuth: returned information about the current user's engine permission Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Type = null; /** * Types of users. ADMIN: administrators; COMMON: general users Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserType = null; /** * User description Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserDescription = null; /** * Collection of data permission information Note: This field may return null, indicating that no valid values can be obtained. * @type {Policys || null} */ this.DataPolicyInfo = null; /** * Collection of engine permissions Note: This field may return null, indicating that no valid values can be obtained. * @type {Policys || null} */ this.EnginePolicyInfo = null; /** * Information about collections of working groups bound to the user Note: This field may return null, indicating that no valid values can be obtained. * @type {WorkGroups || null} */ this.WorkGroupInfo = null; /** * User alias Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserAlias = null; /** * Collection of filtered rows Note: This field may return null, indicating that no valid values can be obtained. * @type {Policys || null} */ this.RowFilterInfo = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserId = 'UserId' in params ? params.UserId : null; this.Type = 'Type' in params ? params.Type : null; this.UserType = 'UserType' in params ? params.UserType : null; this.UserDescription = 'UserDescription' in params ? params.UserDescription : null; if (params.DataPolicyInfo) { let obj = new Policys(); obj.deserialize(params.DataPolicyInfo) this.DataPolicyInfo = obj; } if (params.EnginePolicyInfo) { let obj = new Policys(); obj.deserialize(params.EnginePolicyInfo) this.EnginePolicyInfo = obj; } if (params.WorkGroupInfo) { let obj = new WorkGroups(); obj.deserialize(params.WorkGroupInfo) this.WorkGroupInfo = obj; } this.UserAlias = 'UserAlias' in params ? params.UserAlias : null; if (params.RowFilterInfo) { let obj = new Policys(); obj.deserialize(params.RowFilterInfo) this.RowFilterInfo = obj; } } } /** * CheckDataEngineConfigPairsValidity response structure. * @class */ class CheckDataEngineConfigPairsValidityResponse extends AbstractModel { constructor(){ super(); /** * Validity of parameters. true: valid; false: There is at least one invalid parameter. * @type {boolean || null} */ this.IsAvailable = null; /** * Collection of invalid parameters Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.UnavailableConfig = 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; } this.IsAvailable = 'IsAvailable' in params ? params.IsAvailable : null; this.UnavailableConfig = 'UnavailableConfig' in params ? params.UnavailableConfig : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeResultDownload response structure. * @class */ class DescribeResultDownloadResponse extends AbstractModel { constructor(){ super(); /** * The file save path. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Path = null; /** * The task status. Valid values: `init`, `queue`, `format`, `compress`, `success`, `timeout`, and `error`. * @type {string || null} */ this.Status = null; /** * The task exception cause. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Reason = null; /** * The temporary secret ID. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SecretId = null; /** * The temporary secret key. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SecretKey = null; /** * The temporary token. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Token = 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; } this.Path = 'Path' in params ? params.Path : null; this.Status = 'Status' in params ? params.Status : null; this.Reason = 'Reason' in params ? params.Reason : null; this.SecretId = 'SecretId' in params ? params.SecretId : null; this.SecretKey = 'SecretKey' in params ? params.SecretKey : null; this.Token = 'Token' in params ? params.Token : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Information about visits to the engine * @class */ class AccessInfo extends AbstractModel { constructor(){ super(); /** * Methods to visit the engine Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.AccessType = null; /** * URL that visits the engine and part of internal parameters should be taken place according to the actual situation. Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.AccessConnectionInfos = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AccessType = 'AccessType' in params ? params.AccessType : null; this.AccessConnectionInfos = 'AccessConnectionInfos' in params ? params.AccessConnectionInfos : null; } } /** * Presto monitoring metrics * @class */ class PrestoMonitorMetrics extends AbstractModel { constructor(){ super(); /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.LocalCacheHitRate = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.FragmentCacheHitRate = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.LocalCacheHitRate = 'LocalCacheHitRate' in params ? params.LocalCacheHitRate : null; this.FragmentCacheHitRate = 'FragmentCacheHitRate' in params ? params.FragmentCacheHitRate : null; } } /** * ModifyDataEngineDescription request structure. * @class */ class ModifyDataEngineDescriptionRequest extends AbstractModel { constructor(){ super(); /** * Name of the engine to be modified * @type {string || null} */ this.DataEngineName = null; /** * Engine description and its maximum length is 250 characters. * @type {string || null} */ this.Message = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DataEngineName = 'DataEngineName' in params ? params.DataEngineName : null; this.Message = 'Message' in params ? params.Message : null; } } /** * Statement information * @class */ class StatementInformation extends AbstractModel { constructor(){ super(); /** * Unique ID of the SQL task Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.TaskId = null; /** * SQL content Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SQL = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TaskId = 'TaskId' in params ? params.TaskId : null; this.SQL = 'SQL' in params ? params.SQL : null; } } /** * DescribeUpdatableDataEngines response structure. * @class */ class DescribeUpdatableDataEnginesResponse extends AbstractModel { constructor(){ super(); /** * Basic cluster information * @type {Array.<DataEngineBasicInfo> || null} */ this.DataEngineBasicInfos = null; /** * Number of clusters * @type {number || null} */ this.TotalCount = 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.DataEngineBasicInfos) { this.DataEngineBasicInfos = new Array(); for (let z in params.DataEngineBasicInfos) { let obj = new DataEngineBasicInfo(); obj.deserialize(params.DataEngineBasicInfos[z]); this.DataEngineBasicInfos.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteUser request structure. * @class */ class DeleteUserRequest extends AbstractModel { constructor(){ super(); /** * ID of the user to be deleted * @type {Array.<string> || null} */ this.UserIds = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UserIds = 'UserIds' in params ? params.UserIds : null; } } /** * DescribeUserDataEngineConfig response structure. * @class */ class DescribeUserDataEngineConfigResponse extends AbstractModel { constructor(){ super(); /** * List of custom configuration items of the user's engine Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<DataEngineConfigInstanceInfo> || null} */ this.DataEngineConfigInstanceInfos = null; /** * Total configuration items * @type {number || null} */ this.TotalCount = 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.DataEngineConfigInstanceInfos) { this.DataEngineConfigInstanceInfos = new Array(); for (let z in params.DataEngineConfigInstanceInfos) { let obj = new DataEngineConfigInstanceInfo(); obj.deserialize(params.DataEngineConfigInstanceInfos[z]); this.DataEngineConfigInstanceInfos.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Basic metadata object * @class */ class Asset extends AbstractModel { constructor(){ super(); /** * Primary key Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Id = null; /** * Name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Name = null; /** * Object GUID value Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Guid = null; /** * Data directory Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Catalog = null; /** * Description information * @type {string || null} */ this.Description = null; /** * Object owner * @type {string || null} */ this.Owner = null; /** * Object owner account * @type {string || null} */ this.OwnerAccount = null; /** * Permission * @type {Array.<KVPair> || null} */ this.PermValues = null; /** * Additional attributes * @type {Array.<KVPair> || null} */ this.Params = null; /** * Additional business attributes * @type {Array.<KVPair> || null} */ this.BizParams = null; /** * Data version * @type {number || null} */ this.DataVersion = null; /** * Creation time * @type {string || null} */ this.CreateTime = null; /** * Modification time * @type {string || null} */ this.ModifiedTime = null; /** * Data source primary key * @type {number || null} */ this.DatasourceId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in params ? params.Id : null; this.Name = 'Name' in params ? params.Name : null; this.Guid = 'Guid' in params ? params.Guid : null; this.Catalog = 'Catalog' in params ? params.Catalog : null; this.Description = 'Description' in params ? params.Description : null; this.Owner = 'Owner' in params ? params.Owner : null; this.OwnerAccount = 'OwnerAccount' in params ? params.OwnerAccount : null; if (params.PermValues) { this.PermValues = new Array(); for (let z in params.PermValues) { let obj = new KVPair(); obj.deserialize(params.PermValues[z]); this.PermValues.push(obj); } } if (params.Params) { this.Params = new Array(); for (let z in params.Params) { let obj = new KVPair(); obj.deserialize(params.Params[z]); this.Params.push(obj); } } if (params.BizParams) { this.BizParams = new Array(); for (let z in params.BizParams) { let obj = new KVPair(); obj.deserialize(params.BizParams[z]); this.BizParams.push(obj); } } this.DataVersion = 'DataVersion' in params ? params.DataVersion : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.ModifiedTime = 'ModifiedTime' in params ? params.ModifiedTime : null; this.DatasourceId = 'DatasourceId' in params ? params.DatasourceId : null; } } /** * Engine specification details * @class */ class DataEngineScaleInfoDetail extends AbstractModel { constructor(){ super(); /** * Start time of counting in the format of yyyy-MM-dd HH:mm:ss Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.StartTime = null; /** * End time of counting in the format of yyyy-MM-dd HH:mm:ss Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.EndTime = null; /** * Current statistical time period and engine specifications Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.CU = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; this.CU = 'CU' in params ? params.CU : null; } } /** * Operation information in the logs of a Spark SQL batch job * @class */ class SparkSessionBatchLogOperate extends AbstractModel { constructor(){ super(); /** * The operation message. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Text = null; /** * The operation type. Valid values: `COPY`, `LOG`, `UI`, `RESULT`, `List`, and `TAB`. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Operate = null; /** * Additional information, such as taskid, sessionid, and sparkui. Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<KVPair> || null} */ this.Supplement = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Text = 'Text' in params ? params.Text : null; this.Operate = 'Operate' in params ? params.Operate : null; if (params.Supplement) { this.Supplement = new Array(); for (let z in params.Supplement) { let obj = new KVPair(); obj.deserialize(params.Supplement[z]); this.Supplement.push(obj); } } } } /** * DescribeTaskResult response structure. * @class */ class DescribeTaskResultResponse extends AbstractModel { constructor(){ super(); /** * The queried task information. If the returned value is empty, the task with the entered task ID does not exist. The task result will be returned only if the task status is `2` (succeeded). Note: This field may return null, indicating that no valid values can be obtained. * @type {TaskResultInfo || null} */ this.TaskInfo = 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.TaskInfo) { let obj = new TaskResultInfo(); obj.deserialize(params.TaskInfo) this.TaskInfo = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteDataEngine response structure. * @class */ class DeleteDataEngineResponse extends AbstractModel { constructor(){ super(); /** * 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; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeDMSDatabaseList request structure. * @class */ class DescribeDMSDatabaseListRequest extends AbstractModel { constructor(){ super(); /** * Database name * @type {string || null} */ this.Name = null; /** * Schema name * @type {string || null} */ this.SchemaName = null; /** * Match rules * @type {string || null} */ this.Pattern = null; /** * Pagination parameters, indicating the size of a single page. * @type {number || null} */ this.Limit = null; /** * Pagination parameters * @type {number || null} */ this.Offset = null; /** * Sorting fields * @type {string || null} */ this.Sort = null; /** * Sorting fields: true for ascending order; false for descending order * @type {boolean || null} */ this.Asc = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.SchemaName = 'SchemaName' in params ? params.SchemaName : null; this.Pattern = 'Pattern' in params ? params.Pattern : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Sort = 'Sort' in params ? params.Sort : null; this.Asc = 'Asc' in params ? params.Asc : null; } } /** * DropDLCTable request structure. * @class */ class DropDLCTableRequest extends AbstractModel { constructor(){ super(); /** * Engine name * @type {string || null} */ this.DataEngineName = null; /** * Database name * @type {string || null} */ this.DbName = null; /** * Data table name * @type {string || null} */ this.Name = null; /** * Whether to delete the data * @type {boolean || null} */ this.DeleteData = null; /** * Resource group name * @type {string || null} */ this.ResourceGroupName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DataEngineName = 'DataEngineName' in params ? params.DataEngineName : null; this.DbName = 'DbName' in params ? params.DbName : null; this.Name = 'Name' in params ? params.Name : null; this.DeleteData = 'DeleteData' in params ? params.DeleteData : null; this.ResourceGroupName = 'ResourceGroupName' in params ? params.ResourceGroupName : null; } } /** * COS permissions * @class */ class CosPermission extends AbstractModel { constructor(){ super(); /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CosPath = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.Permissions = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CosPath = 'CosPath' in params ? params.CosPath : null; this.Permissions = 'Permissions' in params ? params.Permissions : null; } } /** * CreateDLCTable response structure. * @class */ class CreateDLCTableResponse extends AbstractModel { constructor(){ super(); /** * DLC table information object Note: This field may return null, indicating that no valid values can be obtained. * @type {DLCTable || null} */ this.DLCTable = null; /** * The SQL statement for creating a managed storage internal table * @type {string || null} */ this.Execution = 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.DLCTable) { let obj = new DLCTable(); obj.deserialize(params.DLCTable) this.DLCTable = obj; } this.Execution = 'Execution' in params ? params.Execution : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyGovernEventRule response structure. * @class */ class ModifyGovernEventRuleResponse extends AbstractModel { constructor(){ super(); /** * 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; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeQuery request structure. * @class */ class DescribeQueryRequest 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; } } /** * Spark monitoring metrics * @class */ class SparkMonitorMetrics extends AbstractModel { constructor(){ super(); /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.ShuffleWriteBytesCos = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.ShuffleWriteBytesTotal = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ShuffleWriteBytesCos = 'ShuffleWriteBytesCos' in params ? params.ShuffleWriteBytesCos : null; this.ShuffleWriteBytesTotal = 'ShuffleWriteBytesTotal' in params ? params.ShuffleWriteBytesTotal : null; } } /** * RestartDataEngine request structure. * @class */ class RestartDataEngineRequest extends AbstractModel { constructor(){ super(); /** * Engine ID * @type {string || null} */ this.DataEngineId = null; /** * Whether to restart by force and ignore tasks * @type {boolean || null} */ this.ForcedOperation = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DataEngineId = 'DataEngineId' in params ? params.DataEngineId : null; this.ForcedOperation = 'ForcedOperation' in params ? params.ForcedOperation : null; } } /** * CreateDMSDatabase response structure. * @class */ class CreateDMSDatabaseResponse extends AbstractModel { constructor(){ super(); /** * 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; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateStoreLocation response structure. * @class */ class CreateStoreLocationResponse extends AbstractModel { constructor(){ super(); /** * 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; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeDMSDatabase response structure. * @class */ class DescribeDMSDatabaseResponse extends AbstractModel { constructor(){ super(); /** * Database name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Name = null; /** * Schema name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SchemaName = null; /** * Storage address Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Location = null; /** * Data object Note: This field may return null, indicating that no valid values can be obtained. * @type {Asset || null} */ this.Asset = 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; } this.Name = 'Name' in params ? params.Name : null; this.SchemaName = 'SchemaName' in params ? params.SchemaName : null; this.Location = 'Location' in params ? params.Location : null; if (params.Asset) { let obj = new Asset(); obj.deserialize(params.Asset) this.Asset = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeTablesName request structure. * @class */ class DescribeTablesNameRequest extends AbstractModel { constructor(){ super(); /** * List all the data tables in the database. * @type {string || null} */ this.DatabaseName = null; /** * Quantity of returns. It is 10 by default, and the maximum value is 100. * @type {number || null} */ this.Limit = null; /** * Data offset. It starts from 0 and is 0 by default. * @type {number || null} */ this.Offset = null; /** * Filter criteria. The following filter types are supported. The Name should be one of them. Table-name - String - (filter criteria) data table name, such as table-001. table-id - String - (filter criteria) table id, such as 12342. * @type {Array.<Filter> || null} */ this.Filters = null; /** * Specified data source name to be queried, and it is DataLakeCatalog by default. * @type {string || null} */ this.DatasourceConnectionName = null; /** * Start time: It is used to filter the update time, and the format is yyyy-mm-dd HH:MM:SS. * @type {string || null} */ this.StartTime = null; /** * End time: It is used to filter the update time, and the format is yyyy-mm-dd HH:MM:SS. * @type {string || null} */ this.EndTime = null; /** * Sorting fields, and they support CreateTime (creation time), UpdateTime (update time), StorageSize (storage space), RecordCount (number of rows), and Name (table name) (The ascending order according to names will be adopted if it is not passed). * @type {string || null} */ this.Sort = null; /** * Sorting fields, and false means the descending order (by default) while true means the ascending order. * @type {boolean || null} */ this.Asc = null; /** * Table type, query of the table type, and the available value is EXTERNAL_TABLE,INDEX_TABLE,MANAGED_TABLE,MATERIALIZED_VIEW,TABLE,VIEW,VIRTUAL_VIEW * @type {string || null} */ this.TableType = null; /** * Filter fields - table format: If no criteria are specified, all the items will be checked; LAKEFS: managed table; ICEBERG: non-managed iceberg table; HIVE: non-managed hive table; OTHER: other non-managed tables. * @type {string || null} */ this.TableFormat = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DatabaseName = 'DatabaseName' in params ? params.DatabaseName : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.DatasourceConnectionName = 'DatasourceConnectionName' in params ? params.DatasourceConnectionName : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; this.Sort = 'Sort' in params ? params.Sort : null; this.Asc = 'Asc' in params ? params.Asc : null; this.TableType = 'TableType' in params ? params.TableType : null; this.TableFormat = 'TableFormat' in params ? params.TableFormat : null; } } /** * Collection of policies * @class */ class Policys extends AbstractModel { constructor(){ super(); /** * Collection of policies Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<Policy> || null} */ this.PolicySet = null; /** * Total policies Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TotalCount = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.PolicySet) { this.PolicySet = new Array(); for (let z in params.PolicySet) { let obj = new Policy(); obj.deserialize(params.PolicySet[z]); this.PolicySet.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; } } /** * DescribeOtherCHDFSBindingList request structure. * @class */ class DescribeOtherCHDFSBindingListRequest extends AbstractModel { constructor(){ super(); /** * Bucket name * @type {string || null} */ this.BucketId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.BucketId = 'BucketId' in params ? params.BucketId : null; } } /** * ModifyWorkGroup response structure. * @class */ class ModifyWorkGroupResponse extends AbstractModel { constructor(){ super(); /** * 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; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DetachUserPolicy response structure. * @class */ class DetachUserPolicyResponse extends AbstractModel { constructor(){ super(); /** * 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; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Spark job details * @class */ class SparkJobInfo extends AbstractModel { constructor(){ super(); /** * Spark job ID * @type {string || null} */ this.JobId = null; /** * Spark job name * @type {string || null} */ this.JobName = null; /** * Spark job type. Valid values: `1` (batch job), `2` (streaming job). * @type {number || null} */ this.JobType = null; /** * Engine name * @type {string || null} */ this.DataEngine = null; /** * This field has been disused. Use the `Datasource` field instead. * @type {string || null} */ this.Eni = null; /** * Whether the program package is uploaded locally. Valid values: `cos`, `lakefs`. * @type {string || null} */ this.IsLocal = null; /** * Program package path * @type {string || null} */ this.JobFile = null; /** * Role ID * @type {number || null} */ this.RoleArn = null; /** * Main class of Spark job execution * @type {string || null} */ this.MainClass = null; /** * Command line parameters of the Spark job separated by space * @type {string || null} */ this.CmdArgs = null; /** * Native Spark configurations separated by line break * @type {string || null} */ this.JobConf = null; /** * Whether the dependency JAR packages are uploaded locally. Valid values: `cos`, `lakefs`. * @type {string || null} */ this.IsLocalJars = null; /** * Dependency JAR packages of the Spark job separated by comma * @type {string || null} */ this.JobJars = null; /** * Whether the dependency file is uploaded locally. Valid values: `cos`, `lakefs`. * @type {string || null} */ this.IsLocalFiles = null; /** * Dependency files of the Spark job separated by comma * @type {string || null} */ this.JobFiles = null; /** * Driver resource size of the Spark job * @type {string || null} */ this.JobDriverSize = null; /** * Executor resource size of the Spark job * @type {string || null} */ this.JobExecutorSize = null; /** * Number of Spark job executors * @type {number || null} */ this.JobExecutorNums = null; /** * Maximum number of retries of the Spark flow task * @type {number || null} */ this.JobMaxAttempts = null; /** * Spark job creator * @type {string || null} */ this.JobCreator = null; /** * Spark job creation time * @type {number || null} */ this.JobCreateTime = null; /** * Spark job update time * @type {number || null} */ this.JobUpdateTime = null; /** * Last task ID of the Spark job * @type {string || null} */ this.CurrentTaskId = null; /** * Last status of the Spark job * @type {number || null} */ this.JobStatus = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {StreamingStatistics || null} */ this.StreamingStat = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DataSource = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IsLocalPythonFiles = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.AppPythonFiles = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IsLocalArchives = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.JobArchives = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SparkImage = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.JobPythonFiles = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TaskNum = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.DataEngineStatus = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.JobExecutorMaxNumbers = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SparkImageVersion = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SessionId = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DataEngineClusterType = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DataEngineImageVersion = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.IsInherit = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.IsSessionStarted = null; /** * Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.EngineTypeDetail = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; this.JobName = 'JobName' in params ? params.JobName : null; this.JobType = 'JobType' in params ? params.JobType : null; this.DataEngine = 'DataEngine' in params ? params.DataEngine : null; this.Eni = 'Eni' in params ? params.Eni : null; this.IsLocal = 'IsLocal' in params ? params.IsLocal : null; this.JobFile = 'JobFile' in params ? params.JobFile : null; this.RoleArn = 'RoleArn' in params ? params.RoleArn : null; this.MainClass = 'MainClass' in params ? params.MainClass : null; this.CmdArgs = 'CmdArgs' in params ? params.CmdArgs : null; this.JobConf = 'JobConf' in params ? params.JobConf : null; this.IsLocalJars = 'IsLocalJars' in params ? params.IsLocalJars : null; this.JobJars = 'JobJars' in params ? params.JobJars : null; this.IsLocalFiles = 'IsLocalFiles' in params ? params.IsLocalFiles : null; this.JobFiles = 'JobFiles' in params ? params.JobFiles : null; this.JobDriverSize = 'JobDriverSize' in params ? params.JobDriverSize : null; this.JobExecutorSize = 'JobExecutorSize' in params ? params.JobExecutorSize : null; this.JobExecutorNums = 'JobExecutorNums' in params ? params.JobExecutorNums : null; this.JobMaxAttempts = 'JobMaxAttempts' in params ? params.JobMaxAttempts : null; this.JobCreator = 'JobCreator' in params ? params.JobCreator : null; this.JobCreateTime = 'JobCreateTime' in params ? params.JobCreateTime : null; this.JobUpdateTime = 'JobUpdateTime' in params ? params.JobUpdateTime : null; this.CurrentTaskId = 'CurrentTaskId' in params ? params.CurrentTaskId : null; this.JobStatus = 'JobStatus' in params ? params.JobStatus : null; if (params.StreamingStat) { let obj = new StreamingStatistics(); obj.deserialize(params.StreamingStat) this.StreamingStat = obj; } this.DataSource = 'DataSource' in params ? params.DataSource : null; this.IsLocalPythonFiles = 'IsLocalPythonFiles' in params ? params.IsLocalPythonFiles : null; this.AppPythonFiles = 'AppPy