UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,977 lines (1,664 loc) • 103 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"); /** * DeleteVolumeData request structure. * @class */ class DeleteVolumeDataRequest extends AbstractModel { constructor(){ super(); /** * Volume ID * @type {string || null} */ this.VolumeId = null; /** * Path to be deleted * @type {string || null} */ this.Path = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VolumeId = 'VolumeId' in params ? params.VolumeId : null; this.Path = 'Path' in params ? params.Path : null; } } /** * RetryRuns response structure. * @class */ class RetryRunsResponse extends AbstractModel { constructor(){ super(); /** * New run group ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.RunGroupId = 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.RunGroupId = 'RunGroupId' in params ? params.RunGroupId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * RunApplication response structure. * @class */ class RunApplicationResponse extends AbstractModel { constructor(){ super(); /** * Run group ID * @type {string || null} */ this.RunGroupId = 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.RunGroupId = 'RunGroupId' in params ? params.RunGroupId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Execution time * @class */ class ExecutionTime extends AbstractModel { constructor(){ super(); /** * Submission time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SubmitTime = null; /** * Start time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.StartTime = null; /** * End time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.EndTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubmitTime = 'SubmitTime' in params ? params.SubmitTime : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; } } /** * Run running status * @class */ class RunStatusCount extends AbstractModel { constructor(){ super(); /** * Status * @type {string || null} */ this.Status = null; /** * Quantity * @type {number || null} */ this.Count = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Status = 'Status' in params ? params.Status : null; this.Count = 'Count' in params ? params.Count : null; } } /** * GetRunStatus request structure. * @class */ class GetRunStatusRequest extends AbstractModel { constructor(){ super(); /** * Run UUID * @type {string || null} */ this.RunUuid = null; /** * Project ID (If you leave it blank, the default item in the specified region will be used.) * @type {string || null} */ this.ProjectId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RunUuid = 'RunUuid' in params ? params.RunUuid : null; this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; } } /** * DescribeRuns response structure. * @class */ class DescribeRunsResponse extends AbstractModel { constructor(){ super(); /** * Number of qualified items * @type {number || null} */ this.TotalCount = null; /** * Run list * @type {Array.<Run> || null} */ this.Runs = 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null; if (params.Runs) { this.Runs = new Array(); for (let z in params.Runs) { let obj = new Run(); obj.deserialize(params.Runs[z]); this.Runs.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ImportTableFile response structure. * @class */ class ImportTableFileResponse extends AbstractModel { constructor(){ super(); /** * Table ID * @type {string || null} */ this.TableId = 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.TableId = 'TableId' in params ? params.TableId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * RunApplication request structure. * @class */ class RunApplicationRequest extends AbstractModel { constructor(){ super(); /** * Application ID * @type {string || null} */ this.ApplicationId = null; /** * Run group name * @type {string || null} */ this.Name = null; /** * Delivery environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Project ID. (If you leave it blank, the default item in the specified region will be used.) * @type {string || null} */ this.ProjectId = null; /** * Run group description * @type {string || null} */ this.Description = null; /** * Run input COS path. (Either InputBase64 or InputCosUri must be selected.) * @type {string || null} */ this.InputCosUri = null; /** * Run input JSON. Base64 encoding is required. (Either InputBase64 or InputCosUri must be selected.) * @type {string || null} */ this.InputBase64 = null; /** * Batch deliver table ID. Leaving it blank indicates delivery in singleton mode. * @type {string || null} */ this.TableId = null; /** * Batch deliver table row UUID. Leaving it blank indicates all rows of the table. * @type {Array.<string> || null} */ this.TableRowUuids = null; /** * Run cache cleanup time (hours). Leaving it blank or entering 0 indicates no cleanup. * @type {number || null} */ this.CacheClearDelay = null; /** * Application version ID. Leaving it blank indicates that the latest version is used. * @type {string || null} */ this.ApplicationVersionId = null; /** * WDL running option * @type {RunOption || null} */ this.Option = null; /** * Nextflow running option * @type {NFOption || null} */ this.NFOption = null; /** * Working directory. You can fill in the absolute path in the specified volume. If you leave it blank, the default path in the default volume will be used. Currently, only Nextflow is supported. * @type {string || null} */ this.WorkDir = null; /** * Access mode. Leaving it blank indicates it is private by default. Valid values: - PRIVATE: Private application - PUBLIC: Public application * @type {string || null} */ this.AccessMode = null; /** * Volume ID. If you leave it blank, the default volume will be used. Currently, only Nextflow is supported. * @type {Array.<string> || null} */ this.VolumeIds = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.Name = 'Name' in params ? params.Name : null; this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.Description = 'Description' in params ? params.Description : null; this.InputCosUri = 'InputCosUri' in params ? params.InputCosUri : null; this.InputBase64 = 'InputBase64' in params ? params.InputBase64 : null; this.TableId = 'TableId' in params ? params.TableId : null; this.TableRowUuids = 'TableRowUuids' in params ? params.TableRowUuids : null; this.CacheClearDelay = 'CacheClearDelay' in params ? params.CacheClearDelay : null; this.ApplicationVersionId = 'ApplicationVersionId' in params ? params.ApplicationVersionId : null; if (params.Option) { let obj = new RunOption(); obj.deserialize(params.Option) this.Option = obj; } if (params.NFOption) { let obj = new NFOption(); obj.deserialize(params.NFOption) this.NFOption = obj; } this.WorkDir = 'WorkDir' in params ? params.WorkDir : null; this.AccessMode = 'AccessMode' in params ? params.AccessMode : null; this.VolumeIds = 'VolumeIds' in params ? params.VolumeIds : null; } } /** * GetRunMetadataFile response structure. * @class */ class GetRunMetadataFileResponse extends AbstractModel { constructor(){ super(); /** * Document pre-signed link that works in a minute * @type {string || null} */ this.CosSignedUrl = null; /** * Batch document pre-signed link that works in a minute Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.CosSignedUrls = 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.CosSignedUrl = 'CosSignedUrl' in params ? params.CosSignedUrl : null; this.CosSignedUrls = 'CosSignedUrls' in params ? params.CosSignedUrls : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateVolume response structure. * @class */ class CreateVolumeResponse extends AbstractModel { constructor(){ super(); /** * Volume ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.VolumeId = 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.VolumeId = 'VolumeId' in params ? params.VolumeId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteEnvironment response structure. * @class */ class DeleteEnvironmentResponse extends AbstractModel { constructor(){ super(); /** * Workflow UUID * @type {string || null} */ this.WorkflowUuid = 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.WorkflowUuid = 'WorkflowUuid' in params ? params.WorkflowUuid : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Tencent Healthcare Omics Platform environment details * @class */ class Environment extends AbstractModel { constructor(){ super(); /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Environment name * @type {string || null} */ this.Name = null; /** * Environment description information * @type {string || null} */ this.Description = null; /** * Environment region * @type {string || null} */ this.Region = null; /** * Environment type. Valid values: - KUBERNETES: Kubernetes container cluster - HPC:HPC HCC * @type {string || null} */ this.Type = null; /** * Environment status. Valid values: - INITIALIZING: Creating - INITIALIZATION_ERROR: Creation failed - RUNNING: Running - ERROR: Exceptional - DELETING: Deleting - DELETE_ERROR: Deletion failed. * @type {string || null} */ this.Status = null; /** * Whether the environment is available. The environment needs to be available before computing runs can be delivered. * @type {boolean || null} */ this.Available = null; /** * Whether the environment is the default environment. * @type {boolean || null} */ this.IsDefault = null; /** * Whether the environment is a managed environment. * @type {boolean || null} */ this.IsManaged = null; /** * Environment information * @type {string || null} */ this.Message = null; /** * Cloud resource ID * @type {ResourceIds || null} */ this.ResourceIds = null; /** * The UUID of the previous workflow Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LastWorkflowUuid = null; /** * Creation time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CreationTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.Name = 'Name' in params ? params.Name : null; this.Description = 'Description' in params ? params.Description : null; this.Region = 'Region' in params ? params.Region : null; this.Type = 'Type' in params ? params.Type : null; this.Status = 'Status' in params ? params.Status : null; this.Available = 'Available' in params ? params.Available : null; this.IsDefault = 'IsDefault' in params ? params.IsDefault : null; this.IsManaged = 'IsManaged' in params ? params.IsManaged : null; this.Message = 'Message' in params ? params.Message : null; if (params.ResourceIds) { let obj = new ResourceIds(); obj.deserialize(params.ResourceIds) this.ResourceIds = obj; } this.LastWorkflowUuid = 'LastWorkflowUuid' in params ? params.LastWorkflowUuid : null; this.CreationTime = 'CreationTime' in params ? params.CreationTime : null; } } /** * GetRunCalls request structure. * @class */ class GetRunCallsRequest extends AbstractModel { constructor(){ super(); /** * Run UUID * @type {string || null} */ this.RunUuid = null; /** * Job path * @type {string || null} */ this.Path = null; /** * Project ID (If you leave it blank, the default item in the specified region will be used.) * @type {string || null} */ this.ProjectId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RunUuid = 'RunUuid' in params ? params.RunUuid : null; this.Path = 'Path' in params ? params.Path : null; this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; } } /** * RunWorkflow request structure. * @class */ class RunWorkflowRequest extends AbstractModel { constructor(){ super(); /** * Run group name * @type {string || null} */ this.Name = null; /** * Delivery environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Workflow Git repository information * @type {GitInfo || null} */ this.GitSource = null; /** * Workflow type Supported type: - NEXTFLOW * @type {string || null} */ this.Type = null; /** * Nextflow option * @type {NFOption || null} */ this.NFOption = null; /** * Project ID (If you leave it blank, the default item in the specified region will be used.) * @type {string || null} */ this.ProjectId = null; /** * Run group description * @type {string || null} */ this.Description = null; /** * Run input JSON. Base64 encoding is required. (Either InputBase64 or InputCosUri must be selected.) * @type {string || null} */ this.InputBase64 = null; /** * Run input COS path (Either InputBase64 or InputCosUri must be selected.) * @type {string || null} */ this.InputCosUri = null; /** * Run cache cleanup time (hours). Leaving it blank or entering 0 indicates no cleanup. * @type {number || null} */ this.CacheClearDelay = null; /** * Working directory. You can fill in the absolute path in the specified volume. If you leave it blank, the default path in the default volume will be used. Currently, only Nextflow is supported. * @type {string || null} */ this.WorkDir = null; /** * Volume ID. If you leave it blank, the default volume will be used. Currently, only Nextflow is supported. * @type {Array.<string> || null} */ this.VolumeIds = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; if (params.GitSource) { let obj = new GitInfo(); obj.deserialize(params.GitSource) this.GitSource = obj; } this.Type = 'Type' in params ? params.Type : null; if (params.NFOption) { let obj = new NFOption(); obj.deserialize(params.NFOption) this.NFOption = obj; } this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.Description = 'Description' in params ? params.Description : null; this.InputBase64 = 'InputBase64' in params ? params.InputBase64 : null; this.InputCosUri = 'InputCosUri' in params ? params.InputCosUri : null; this.CacheClearDelay = 'CacheClearDelay' in params ? params.CacheClearDelay : null; this.WorkDir = 'WorkDir' in params ? params.WorkDir : null; this.VolumeIds = 'VolumeIds' in params ? params.VolumeIds : null; } } /** * DescribeRuns request structure. * @class */ class DescribeRunsRequest extends AbstractModel { constructor(){ super(); /** * Project ID (If you leave it blank, the default item in the specified region will be used.) * @type {string || null} */ this.ProjectId = null; /** * Quantity of returns. It is 10 by default, and the maximum value is 100. * @type {number || null} */ this.Limit = null; /** * Offset, which defaults to 0. * @type {number || null} */ this.Offset = null; /** * Filter, which supports filtering fields: - RunGroupId: run group ID - Status: run status - RunUuid: run UUID - UserDefinedId: user-defined ID * @type {Array.<Filter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ProjectId = 'ProjectId' in params ? params.ProjectId : 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); } } } } /** * Run * @class */ class Run extends AbstractModel { constructor(){ super(); /** * Run UUID * @type {string || null} */ this.RunUuid = null; /** * Project ID * @type {string || null} */ this.ProjectId = null; /** * Application ID * @type {string || null} */ this.ApplicationId = null; /** * Run group ID * @type {string || null} */ this.RunGroupId = null; /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; /** * User-defined ID. Null for running in singleton mode. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UserDefinedId = null; /** * Table ID. Null for running in singleton mode. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.TableId = null; /** * Table row UUID. Null for running in singleton mode. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.TableRowUuid = null; /** * Run status * @type {string || null} */ this.Status = null; /** * Run input * @type {string || null} */ this.Input = null; /** * Running option * @type {RunOption || null} */ this.Option = null; /** * Execution time * @type {ExecutionTime || null} */ this.ExecutionTime = null; /** * Cache information Note: This field may return null, indicating that no valid values can be obtained. * @type {CacheInfo || null} */ this.Cache = null; /** * Error message * @type {string || null} */ this.ErrorMessage = null; /** * Creation time * @type {string || null} */ this.CreateTime = null; /** * Update time * @type {string || null} */ this.UpdateTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RunUuid = 'RunUuid' in params ? params.RunUuid : null; this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.ApplicationId = 'ApplicationId' in params ? params.ApplicationId : null; this.RunGroupId = 'RunGroupId' in params ? params.RunGroupId : null; this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.UserDefinedId = 'UserDefinedId' in params ? params.UserDefinedId : null; this.TableId = 'TableId' in params ? params.TableId : null; this.TableRowUuid = 'TableRowUuid' in params ? params.TableRowUuid : null; this.Status = 'Status' in params ? params.Status : null; this.Input = 'Input' in params ? params.Input : null; if (params.Option) { let obj = new RunOption(); obj.deserialize(params.Option) this.Option = obj; } if (params.ExecutionTime) { let obj = new ExecutionTime(); obj.deserialize(params.ExecutionTime) this.ExecutionTime = obj; } if (params.Cache) { let obj = new CacheInfo(); obj.deserialize(params.Cache) this.Cache = obj; } this.ErrorMessage = 'ErrorMessage' in params ? params.ErrorMessage : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null; } } /** * Table column * @class */ class TableColumn extends AbstractModel { constructor(){ super(); /** * Column name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Header = null; /** * Column data type Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DataType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Header = 'Header' in params ? params.Header : null; this.DataType = 'DataType' in params ? params.DataType : null; } } /** * CreateVolume request structure. * @class */ class CreateVolumeRequest extends AbstractModel { constructor(){ super(); /** * Environment ID * @type {string || null} */ this.EnvironmentId = null; /** * Name * @type {string || null} */ this.Name = null; /** * Volume type. Valid values: * SHARED: Multi-point mount shared storage * @type {string || null} */ this.Type = null; /** * Volume specifications. Valid values: - SD: standard - HP: high-performance - TB: standard Turbo - TP: high-performance Turbo * @type {string || null} */ this.Spec = null; /** * Description * @type {string || null} */ this.Description = null; /** * Volume size (GB), which is required to be specified for the Turbo series. * @type {number || null} */ this.Capacity = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EnvironmentId = 'EnvironmentId' in params ? params.EnvironmentId : null; this.Name = 'Name' in params ? params.Name : null; this.Type = 'Type' in params ? params.Type : null; this.Spec = 'Spec' in params ? params.Spec : null; this.Description = 'Description' in params ? params.Description : null; this.Capacity = 'Capacity' in params ? params.Capacity : null; } } /** * Security group configuration * @class */ class SecurityGroupOption extends AbstractModel { constructor(){ super(); /** * Security group ID * @type {string || null} */ this.SecurityGroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SecurityGroupId = 'SecurityGroupId' in params ? params.SecurityGroupId : null; } } /** * DescribeTablesRows request structure. * @class */ class DescribeTablesRowsRequest extends AbstractModel { constructor(){ super(); /** * Project ID * @type {string || null} */ this.ProjectId = null; /** * Table ID * @type {string || null} */ this.TableId = null; /** * Quantity of returns. It is 10 by default, and the maximum value is 100. * @type {number || null} */ this.Limit = null; /** * Offset, which defaults to 0. * @type {number || null} */ this.Offset = null; /** * Filter, which supports filtering fields: - Tr: Table data, which supports fuzzy query. - TableRowUuid: table row UUID * @type {Array.<Filter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.TableId = 'TableId' in params ? params.TableId : 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); } } } } /** * DescribeEnvironments response structure. * @class */ class DescribeEnvironmentsResponse extends AbstractModel { constructor(){ super(); /** * Number of qualified items * @type {number || null} */ this.TotalCount = null; /** * List of Environment details * @type {Array.<Environment> || null} */ this.Environments = 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null; if (params.Environments) { this.Environments = new Array(); for (let z in params.Environments) { let obj = new Environment(); obj.deserialize(params.Environments[z]); this.Environments.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyVolume response structure. * @class */ class ModifyVolumeResponse 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; } } /** * Resource limit scope * @class */ class LimitRange extends AbstractModel { constructor(){ super(); /** * Maximum CPU setting Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.MaxCPU = null; /** * Maximum memory setting (unit: Mi, Gi, Ti, M, G, and T) Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.MaxMemory = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.MaxCPU = 'MaxCPU' in params ? params.MaxCPU : null; this.MaxMemory = 'MaxMemory' in params ? params.MaxMemory : null; } } /** * DescribeTables response structure. * @class */ class DescribeTablesResponse extends AbstractModel { constructor(){ super(); /** * Total number of results * @type {number || null} */ this.TotalCount = null; /** * Table list * @type {Array.<Table> || null} */ this.Tables = 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null; if (params.Tables) { this.Tables = new Array(); for (let z in params.Tables) { let obj = new Table(); obj.deserialize(params.Tables[z]); this.Tables.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * VPC configuration * @class */ class VPCOption extends AbstractModel { constructor(){ super(); /** * VPC ID (Either VPCId or VPCCIDRBlock must be selected. If VPCId is selected, the existing VPCs will be used; if VPCCIDRBlock is selected, a new VPC will be created.) * @type {string || null} */ this.VPCId = null; /** * Subnet ID (Either SubnetId or SubnetZone&SubnetCIDRBlock must be selected. If SubnetId is selected, the existing subnet will be used; if SubnetZone&SubnetCIDRBlock is selected, a new subnet will be created.) * @type {string || null} */ this.SubnetId = null; /** * Subnet availability zone * @type {string || null} */ this.SubnetZone = null; /** * VPC CIDR. * @type {string || null} */ this.VPCCIDRBlock = null; /** * Subnet CIDR * @type {string || null} */ this.SubnetCIDRBlock = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VPCId = 'VPCId' in params ? params.VPCId : null; this.SubnetId = 'SubnetId' in params ? params.SubnetId : null; this.SubnetZone = 'SubnetZone' in params ? params.SubnetZone : null; this.VPCCIDRBlock = 'VPCCIDRBlock' in params ? params.VPCCIDRBlock : null; this.SubnetCIDRBlock = 'SubnetCIDRBlock' in params ? params.SubnetCIDRBlock : null; } } /** * Resource quota * @class */ class ResourceQuota extends AbstractModel { constructor(){ super(); /** * CPU limit setting Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CPULimit = null; /** * Memory limit setting (Unit: Mi, Gi, Ti, M, G, and T) Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.MemoryLimit = null; /** * Pod quantity setting Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Pods = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CPULimit = 'CPULimit' in params ? params.CPULimit : null; this.MemoryLimit = 'MemoryLimit' in params ? params.MemoryLimit : null; this.Pods = 'Pods' in params ? params.Pods : null; } } /** * RetryRuns request structure. * @class */ class RetryRunsRequest extends AbstractModel { constructor(){ super(); /** * Project ID. (If you leave it blank, the default item in the specified region will be used.) * @type {string || null} */ this.ProjectId = null; /** * The run group ID that needs to be retried * @type {string || null} */ this.RunGroupId = null; /** * The run UUID that needs to be retried * @type {Array.<string> || null} */ this.RunUuids = null; /** * WDL running option. If you leave it blank, the retried run group running option will be used. * @type {RunOption || null} */ this.WDLOption = null; /** * Nextflow running option. If you leave it blank, the retried run group running option will be used. * @type {NFOption || null} */ this.NFOption = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.RunGroupId = 'RunGroupId' in params ? params.RunGroupId : null; this.RunUuids = 'RunUuids' in params ? params.RunUuids : null; if (params.WDLOption) { let obj = new RunOption(); obj.deserialize(params.WDLOption) this.WDLOption = obj; } if (params.NFOption) { let obj = new NFOption(); obj.deserialize(params.NFOption) this.NFOption = obj; } } } /** * ImportTableFile request structure. * @class */ class ImportTableFileRequest extends AbstractModel { constructor(){ super(); /** * Project ID associated with the table * @type {string || null} */ this.ProjectId = null; /** * Table name: Up to 200 characters in length is supported. * @type {string || null} */ this.Name = null; /** * Table file COS object path * @type {string || null} */ this.CosUri = null; /** * Data type of each column in the table file. Supported types include Int, Float, String, File, Boolean, Array[Int], Array[Float], Array[String], Array[File], and Array[Boolean]. * @type {Array.<string> || null} */ this.DataType = null; /** * Table description: Up to 500 characters in length is supported. * @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.CosUri = 'CosUri' in params ? params.CosUri : null; this.DataType = 'DataType' in params ? params.DataType : null; this.Description = 'Description' in params ? params.Description : null; } } /** * DeleteVolume response structure. * @class */ class DeleteVolumeResponse 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; } } /** * Cache information * @class */ class CacheInfo extends AbstractModel { constructor(){ super(); /** * Cache cleanup time (hours) Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.CacheClearDelay = null; /** * Cache cleanup schedule time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CacheClearTime = null; /** * Whether the cache has been cleaned up Note: This field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.CacheCleared = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CacheClearDelay = 'CacheClearDelay' in params ? params.CacheClearDelay : null; this.CacheClearTime = 'CacheClearTime' in params ? params.CacheClearTime : null; this.CacheCleared = 'CacheCleared' in params ? params.CacheCleared : null; } } /** * Computing cluster configuration * @class */ class ClusterOption extends AbstractModel { constructor(){ super(); /** * Computing cluster availability zone * @type {string || null} */ this.Zone = null; /** * Computing cluster type. Valid values: - KUBERNETES * @type {string || null} */ this.Type = null; /** * Computing cluster Service CIDR. It must not overlap with the VPC IP range. * @type {string || null} */ this.ServiceCidr = null; /** * Resource quota * @type {ResourceQuota || null} */ this.ResourceQuota = null; /** * Limit scope * @type {LimitRange || null} */ this.LimitRange = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Zone = 'Zone' in params ? params.Zone : null; this.Type = 'Type' in params ? params.Type : null; this.ServiceCidr = 'ServiceCidr' in params ? params.ServiceCidr : null; if (params.ResourceQuota) { let obj = new ResourceQuota(); obj.deserialize(params.ResourceQuota) this.ResourceQuota = obj; } if (params.LimitRange) { let obj = new LimitRange(); obj.deserialize(params.LimitRange) this.LimitRange = obj; } } } /** * TerminateRunGroup response structure. * @class */ class TerminateRunGroupResponse 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; } } /** * DescribeVolumes response structure. * @class */ class DescribeVolumesResponse extends AbstractModel { constructor(){ super(); /** * Volume Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<Volume> || null} */ this.Volumes = null; /** * Number of qualified items Note: This field may return null, indicating that no valid values can be obtained. * @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.Volumes) { this.Volumes = new Array(); for (let z in params.Volumes) { let obj = new Volume(); obj.deserialize(params.Volumes[z]); this.Volumes.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Git information * @class */ class GitInfo extends AbstractModel { constructor(){ super(); /** * Git URL * @type {string || null} */ this.GitHttpPath = null; /** * Git username . * @type {string || null} */ this.GitUserName = null; /** * Git password or Token * @type {string || null} */ this.GitTokenOrPassword = null; /** * Branch * @type {string || null} */ this.Branch = null; /** * Tag * @type {string || null} */ this.Tag = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GitHttpPath = 'GitHttpPath' in params ? params.GitHttpPath : null; this.GitUserName = 'GitUserName' in params ? params.GitUserName : null; this.GitTokenOrPassword = 'GitTokenOrPassword' in params ? params.GitTokenOrPassword : null; this.Branch = 'Branch' in params ? params.Branch : null; this.Tag = 'Tag' in params ? params.Tag : null; } } /** * Application version * @class */ class ApplicationVersion extends AbstractModel { constructor(){ super(); /** * Version type Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Type = null; /** * Version ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ApplicationVersionId = null; /**