UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,881 lines (1,575 loc) • 375 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"); /** * ModifyCompareTask response structure. * @class */ class ModifyCompareTaskResponse 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; } } /** * DescribeSyncJobs response structure. * @class */ class DescribeSyncJobsResponse extends AbstractModel { constructor(){ super(); /** * Number of tasks Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TotalCount = null; /** * Array of task details Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<SyncJobInfo> || null} */ this.JobList = 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.JobList) { this.JobList = new Array(); for (let z in params.JobList) { let obj = new SyncJobInfo(); obj.deserialize(params.JobList[z]); this.JobList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyMigrationJob response structure. * @class */ class ModifyMigrationJobResponse 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; } } /** * ResetConsumerGroupOffset response structure. * @class */ class ResetConsumerGroupOffsetResponse 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; } } /** * ModifyMigrateRateLimit response structure. * @class */ class ModifyMigrateRateLimitResponse 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; } } /** * IsolateMigrateJob response structure. * @class */ class IsolateMigrateJobResponse 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; } } /** * ModifyMigrateJobSpec request structure. * @class */ class ModifyMigrateJobSpecRequest extends AbstractModel { constructor(){ super(); /** * Task ID * @type {string || null} */ this.JobId = null; /** * New instance specification. Valid values: `micro`, `small`, `medium`, `large`, `xlarge`, `2xlarge`. * @type {string || null} */ this.NewInstanceClass = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; this.NewInstanceClass = 'NewInstanceClass' in params ? params.NewInstanceClass : null; } } /** * IsolateSubscribe response structure. * @class */ class IsolateSubscribeResponse 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; } } /** * ModifyConsumerGroupPassword request structure. * @class */ class ModifyConsumerGroupPasswordRequest extends AbstractModel { constructor(){ super(); /** * Data subscription instance ID * @type {string || null} */ this.SubscribeId = null; /** * Account name. The full name of the actual account is in the form: account-#{SubscribeId}-#{AccountName}. * @type {string || null} */ this.AccountName = null; /** * Consumer group name. The full name of the actual consumer group is in the form: consumer-grp-#{SubscribeId}-#{ConsumerGroupName}. * @type {string || null} */ this.ConsumerGroupName = null; /** * Old Password. * @type {string || null} */ this.OldPassword = null; /** * New password. The character length is no less than 3 and no more than 32. * @type {string || null} */ this.NewPassword = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null; this.AccountName = 'AccountName' in params ? params.AccountName : null; this.ConsumerGroupName = 'ConsumerGroupName' in params ? params.ConsumerGroupName : null; this.OldPassword = 'OldPassword' in params ? params.OldPassword : null; this.NewPassword = 'NewPassword' in params ? params.NewPassword : null; } } /** * Error or warning information in the current step * @class */ class StepTip extends AbstractModel { constructor(){ super(); /** * Error code Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Code = null; /** * Error message Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Message = null; /** * Solution Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Solution = null; /** * Help document Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.HelpDoc = null; /** * Whether the current step is skipped Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SkipInfo = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Code = 'Code' in params ? params.Code : null; this.Message = 'Message' in params ? params.Message : null; this.Solution = 'Solution' in params ? params.Solution : null; this.HelpDoc = 'HelpDoc' in params ? params.HelpDoc : null; this.SkipInfo = 'SkipInfo' in params ? params.SkipInfo : null; } } /** * ModifySyncRateLimit response structure. * @class */ class ModifySyncRateLimitResponse 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; } } /** * DestroyMigrateJob request structure. * @class */ class DestroyMigrateJobRequest extends AbstractModel { constructor(){ super(); /** * Task ID * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * ModifySubscribeName request structure. * @class */ class ModifySubscribeNameRequest extends AbstractModel { constructor(){ super(); /** * Data subscription instance ID * @type {string || null} */ this.SubscribeId = null; /** * Modified data subscription instance name. Value range: 1-60. * @type {string || null} */ this.SubscribeName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null; this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null; } } /** * Checkpoint information in Kafka partition for data subscription. * @class */ class OffsetTimeMap extends AbstractModel { constructor(){ super(); /** * Kafka partition numberNote: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.PartitionNo = null; /** * Kafka offsetNote: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Offset = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PartitionNo = 'PartitionNo' in params ? params.PartitionNo : null; this.Offset = 'Offset' in params ? params.Offset : null; } } /** * SkipCheckItem response structure. * @class */ class SkipCheckItemResponse extends AbstractModel { constructor(){ super(); /** * Message prompted for skipping the check item Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Message = 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.Message = 'Message' in params ? params.Message : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ResumeSyncJob request structure. * @class */ class ResumeSyncJobRequest extends AbstractModel { constructor(){ super(); /** * Sync task ID * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * The partition allocation of Kafka consumer groups in data subscriptions. This data is queried in real time. If you need the latest data, you need to call the interface again. * @class */ class PartitionAssignment extends AbstractModel { constructor(){ super(); /** * The clientId of the consumer * @type {string || null} */ this.ClientId = null; /** * The partition is being consumed by this consumer.Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<number> || null} */ this.PartitionNo = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ClientId = 'ClientId' in params ? params.ClientId : null; this.PartitionNo = 'PartitionNo' in params ? params.PartitionNo : null; } } /** * ResizeSyncJob response structure. * @class */ class ResizeSyncJobResponse 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; } } /** * CreateSubscribeCheckJob request structure. * @class */ class CreateSubscribeCheckJobRequest extends AbstractModel { constructor(){ super(); /** * Data subscription instance ID * @type {string || null} */ this.SubscribeId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null; } } /** * ResumeMigrateJob response structure. * @class */ class ResumeMigrateJobResponse 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; } } /** * Details of inconsistent tables * @class */ class DifferenceItem extends AbstractModel { constructor(){ super(); /** * Database name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Db = null; /** * Table name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Table = null; /** * Chunk ID Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Chunk = null; /** * Source database value Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SrcItem = null; /** * Target database value Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DstItem = null; /** * Index name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IndexName = null; /** * First index key Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LowerBoundary = null; /** * Last index key Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.UpperBoundary = null; /** * Comparison time in ms Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.CostTime = null; /** * Completion time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.FinishedAt = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Db = 'Db' in params ? params.Db : null; this.Table = 'Table' in params ? params.Table : null; this.Chunk = 'Chunk' in params ? params.Chunk : null; this.SrcItem = 'SrcItem' in params ? params.SrcItem : null; this.DstItem = 'DstItem' in params ? params.DstItem : null; this.IndexName = 'IndexName' in params ? params.IndexName : null; this.LowerBoundary = 'LowerBoundary' in params ? params.LowerBoundary : null; this.UpperBoundary = 'UpperBoundary' in params ? params.UpperBoundary : null; this.CostTime = 'CostTime' in params ? params.CostTime : null; this.FinishedAt = 'FinishedAt' in params ? params.FinishedAt : null; } } /** * CreateModifyCheckSyncJob request structure. * @class */ class CreateModifyCheckSyncJobRequest extends AbstractModel { constructor(){ super(); /** * Sync task ID * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * IsolateSyncJob request structure. * @class */ class IsolateSyncJobRequest extends AbstractModel { constructor(){ super(); /** * Sync task ID * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * PauseMigrateJob request structure. * @class */ class PauseMigrateJobRequest extends AbstractModel { constructor(){ super(); /** * Data migration task ID * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * ContinueMigrateJob request structure. * @class */ class ContinueMigrateJobRequest extends AbstractModel { constructor(){ super(); /** * Data migration task ID * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * ResetConsumerGroupOffset request structure. * @class */ class ResetConsumerGroupOffsetRequest extends AbstractModel { constructor(){ super(); /** * Subscription instance ID * @type {string || null} */ this.SubscribeId = null; /** * Subscribed Kafka topic * @type {string || null} */ this.TopicName = null; /** * Consumer group name. The full name of the actual consumer group is in the form: consumer-grp-#{SubscribeId}-#{ConsumerGroupName}. * @type {string || null} */ this.ConsumerGroupName = null; /** * The partition number of offset needs to be modified. * @type {Array.<number> || null} */ this.PartitionNos = null; /** * Reset mode. Valid values: earliest (start consumption from the earliest position); latest (start consumption from the latest position); datetime (start consumption from the most recent checkpoint before the specified time). * @type {string || null} */ this.ResetMode = null; /** * When ResetMode is datetime, this field needs to be filled in, the format is: Y-m-d h:m:s. If not filled in, the default time is 0, and the effect is the same as earliest. * @type {string || null} */ this.ResetDatetime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null; this.TopicName = 'TopicName' in params ? params.TopicName : null; this.ConsumerGroupName = 'ConsumerGroupName' in params ? params.ConsumerGroupName : null; this.PartitionNos = 'PartitionNos' in params ? params.PartitionNos : null; this.ResetMode = 'ResetMode' in params ? params.ResetMode : null; this.ResetDatetime = 'ResetDatetime' in params ? params.ResetDatetime : null; } } /** * ModifySyncRateLimit request structure. * @class */ class ModifySyncRateLimitRequest extends AbstractModel { constructor(){ super(); /** * Migration task ID * @type {string || null} */ this.JobId = null; /** * Number of full export threads for sync task. Value range: 1-16. * @type {number || null} */ this.DumpThread = null; /** * The full export Rps for sync task. The value needs to be greater than 0. * @type {number || null} */ this.DumpRps = null; /** * Number of full import threads for sync task. Value range: 1-16. * @type {number || null} */ this.LoadThread = null; /** * Number of incremental import threads for sync task. Value range: 1-128. * @type {number || null} */ this.SinkerThread = null; /** * The full import Rps for sync task. * @type {number || null} */ this.LoadRps = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; this.DumpThread = 'DumpThread' in params ? params.DumpThread : null; this.DumpRps = 'DumpRps' in params ? params.DumpRps : null; this.LoadThread = 'LoadThread' in params ? params.LoadThread : null; this.SinkerThread = 'SinkerThread' in params ? params.SinkerThread : null; this.LoadRps = 'LoadRps' in params ? params.LoadRps : null; } } /** * DescribeCheckSyncJobResult request structure. * @class */ class DescribeCheckSyncJobResultRequest extends AbstractModel { constructor(){ super(); /** * Sync task instance ID in the format of `sync-werwfs23`, which is used to identify a sync task. This parameter is required. * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * ModifySubscribeAutoRenewFlag response structure. * @class */ class ModifySubscribeAutoRenewFlagResponse 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; } } /** * DestroySyncJob response structure. * @class */ class DestroySyncJobResponse 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; } } /** * Task error information * @class */ class ErrorInfoItem extends AbstractModel { constructor(){ super(); /** * Error code Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Code = null; /** * Solution Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Solution = null; /** * Error log Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ErrorLog = null; /** * Help document Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.HelpDoc = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Code = 'Code' in params ? params.Code : null; this.Solution = 'Solution' in params ? params.Solution : null; this.ErrorLog = 'ErrorLog' in params ? params.ErrorLog : null; this.HelpDoc = 'HelpDoc' in params ? params.HelpDoc : null; } } /** * IsolateMigrateJob request structure. * @class */ class IsolateMigrateJobRequest extends AbstractModel { constructor(){ super(); /** * Task ID * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * StopMigrateJob response structure. * @class */ class StopMigrateJobResponse 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; } } /** * The set of table objects, which is required if `TableMode` is `partial`. * @class */ class TableItem extends AbstractModel { constructor(){ super(); /** * Name of the migrated table, which is case-sensitive Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.TableName = null; /** * New name of the migrated table. This parameter is required when `TableEditMode` is `rename`. It is mutually exclusive with `TmpTables`. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.NewTableName = null; /** * The temp tables to be migrated. This parameter is mutually exclusive with `NewTableName`. It is valid only when the configured migration objects are table-level ones and `TableEditMode` is `pt`. To migrate temp tables generated when pt-osc or other tools are used during the migration process, you must configure this parameter first. For example, if you want to perform the pt-osc operation on a table named "t1", configure this parameter as ["_t1_new","_t1_old"]; to perform the gh-ost operation on t1, configure it as ["_t1_ghc","_t1_gho","_t1_del"]. Temp tables generated by pt-osc and gh-ost operations can be configured at the same time. Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.TmpTables = null; /** * Table editing type. Valid values: `rename` (table mapping); `pt` (additional table sync). Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.TableEditMode = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TableName = 'TableName' in params ? params.TableName : null; this.NewTableName = 'NewTableName' in params ? params.NewTableName : null; this.TmpTables = 'TmpTables' in params ? params.TmpTables : null; this.TableEditMode = 'TableEditMode' in params ? params.TableEditMode : null; } } /** * Subscription instance information * @class */ class SubscribeInfo extends AbstractModel { constructor(){ super(); /** * Data subscription instance ID * @type {string || null} */ this.SubscribeId = null; /** * Data subscription instance name * @type {string || null} */ this.SubscribeName = null; /** * Kafka topic for data sent by the subscription instance Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Topic = null; /** * Subscription instance type. Currently, cynosdbmysql, mariadb, mongodb, mysql, percona, tdpg, tdsqlpercona are supported. * @type {string || null} */ this.Product = null; /** * The subscribed database instance ID (if the subscription is a cloud database). If the instance is not on Tencent Cloud, this value is empty.Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.InstanceId = null; /** * Cloud database status: running, isolated, offline. If it is not on the cloud, this value is empty.Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.InstanceStatus = null; /** * Data subscription lifecycle status. Valid values: normal (normal), isolating (isolating), isolated (isolated), offlining (offlining), post2PrePayIng (changing from pay-as-you-go to monthly subscription). * @type {string || null} */ this.Status = null; /** * Data subscription status. Valid values: notStarted, checking, checkNotPass, checkPass, starting, running, error. * @type {string || null} */ this.SubsStatus = null; /** * Last modification time, the format is: Y-m-d h:m:s.Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ModifyTime = null; /** * Creation time, the format is: Y-m-d h:m:s.Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CreateTime = null; /** * Isolation time, the format is: Y-m-d h:m:s. Default time: 0000-00-00 00:00:00.Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.IsolateTime = null; /** * Expiration time for monthly subscription tasks, the format is: Y-m-d h:m:s. Default time: 0000-00-00 00:00:00.Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ExpireTime = null; /** * Offline time, the format is: Y-m-d h:m:s. Default time: 0000-00-00 00:00:00.Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.OfflineTime = null; /** * Billing mode. 1: pay-as-you-go * @type {number || null} */ this.PayType = null; /** * Auto-renewal flag. It is meaningful only when PayType=0. Valid values: 0 (auto-renewal disabled); 1 (auto-renewal enabled). * @type {number || null} */ this.AutoRenewFlag = null; /** * Data subscription instance region * @type {string || null} */ this.Region = null; /** * Access type. Valid values: extranet (public network); vpncloud (VPN access); dcg (Direct Connect); ccn (CCN); cdb (database); cvm (self-build on CVM); intranet (intranet); vpc (VPC).Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.AccessType = null; /** * Database node information Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<EndpointItem> || null} */ this.Endpoints = null; /** * Data subscription version, only Kafka version is currently supported.Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SubscribeVersion = null; /** * TagNote: This field may return null, indicating that no valid values can be obtained. * @type {Array.<TagItem> || null} */ this.Tags = null; /** * Task error messageNote: This field may return null, indicating that no valid values can be obtained. * @type {Array.<SubsErr> || null} */ this.Errors = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null; this.SubscribeName = 'SubscribeName' in params ? params.SubscribeName : null; this.Topic = 'Topic' in params ? params.Topic : null; this.Product = 'Product' in params ? params.Product : null; this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.InstanceStatus = 'InstanceStatus' in params ? params.InstanceStatus : null; this.Status = 'Status' in params ? params.Status : null; this.SubsStatus = 'SubsStatus' in params ? params.SubsStatus : null; this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.IsolateTime = 'IsolateTime' in params ? params.IsolateTime : null; this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null; this.OfflineTime = 'OfflineTime' in params ? params.OfflineTime : null; this.PayType = 'PayType' in params ? params.PayType : null; this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null; this.Region = 'Region' in params ? params.Region : null; this.AccessType = 'AccessType' in params ? params.AccessType : null; if (params.Endpoints) { this.Endpoints = new Array(); for (let z in params.Endpoints) { let obj = new EndpointItem(); obj.deserialize(params.Endpoints[z]); this.Endpoints.push(obj); } } this.SubscribeVersion = 'SubscribeVersion' in params ? params.SubscribeVersion : null; if (params.Tags) { this.Tags = new Array(); for (let z in params.Tags) { let obj = new TagItem(); obj.deserialize(params.Tags[z]); this.Tags.push(obj); } } if (params.Errors) { this.Errors = new Array(); for (let z in params.Errors) { let obj = new SubsErr(); obj.deserialize(params.Errors[z]); this.Errors.push(obj); } } } } /** * ModifyCompareTaskName request structure. * @class */ class ModifyCompareTaskNameRequest extends AbstractModel { constructor(){ super(); /** * Migration task ID * @type {string || null} */ this.JobId = null; /** * Data consistency check task ID in the format of `dts-8yv4w2i1-cmp-37skmii9` * @type {string || null} */ this.CompareTaskId = null; /** * Data consistency check task name * @type {string || null} */ this.TaskName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; this.CompareTaskId = 'CompareTaskId' in params ? params.CompareTaskId : null; this.TaskName = 'TaskName' in params ? params.TaskName : null; } } /** * CompleteMigrateJob response structure. * @class */ class CompleteMigrateJobResponse 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; } } /** * DescribeMigrateDBInstances response structure. * @class */ class DescribeMigrateDBInstancesResponse extends AbstractModel { constructor(){ super(); /** * Number of eligible items Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TotalCount = null; /** * Instance list Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<MigrateDBItem> || null} */ this.Instances = 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.Instances) { this.Instances = new Array(); for (let z in params.Instances) { let obj = new MigrateDBItem(); obj.deserialize(params.Instances[z]); this.Instances.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Additional configuration information * @class */ class KeyValuePairOption extends AbstractModel { constructor(){ super(); /** * Option key Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Key = null; /** * Option value 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.Key = 'Key' in params ? params.Key : null; this.Value = 'Value' in params ? params.Value : null; } } /** * CreateCheckSyncJob request structure. * @class */ class CreateCheckSyncJobRequest extends AbstractModel { constructor(){ super(); /** * Sync task ID * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * DescribeModifyCheckSyncJobResult response structure. * @class */ class DescribeModifyCheckSyncJobResultResponse extends AbstractModel { constructor(){ super(); /** * Execution status of the check task Valid values: `notStarted` (Not started), `running` (Running), `failed` (Failed), `success` (Successful). * @type {string || null} */ this.Status = null; /** * Number of check steps Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.StepCount = null; /** * Current step Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.StepCur = null; /** * Overall progress. Value range: 0-100. Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Progress = null; /** * Step details Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<StepInfo> || null} */ this.StepInfos = 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.Status = 'Status' in params ? params.Status : null; this.StepCount = 'StepCount' in params ? params.StepCount : null; this.StepCur = 'StepCur' in params ? params.StepCur : null; this.Progress = 'Progress' in params ? params.Progress : null; if (params.StepInfos) { this.StepInfos = new Array(); for (let z in params.StepInfos) { let obj = new StepInfo(); obj.deserialize(params.StepInfos[z]); this.StepInfos.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * StartSubscribe response structure. * @class */ class StartSubscribeResponse 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; } } /** * DescribeSubscribeReturnable request structure. * @class */ class DescribeSubscribeReturnableRequest extends AbstractModel { constructor(){ super(); /** * Data subscription instance ID * @type {string || null} */ this.SubscribeId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null; } } /** * DescribeMigrationDetail request structure. * @class */ class DescribeMigrationDetailRequest extends AbstractModel { constructor(){ super(); /** * Data migration task ID * @type {string || null} */ this.JobId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; } } /** * CreateConsumerGroup request structure. * @class */ class CreateConsumerGroupRequest extends AbstractModel { constructor(){ super(); /** * Subscription instance ID * @type {string || null} */ this.SubscribeId = null; /** * Consumer group name, which consists of numbers, letters (upper and lower case), or begins with _ - . Ends with numbers, letters (upper and lower case). The full name of the actually generated consumer group is in the form: consumer-grp-#{SubscribeId}-#{ConsumerGroupName}. * @type {string || null} */ this.ConsumerGroupName = null; /** * Account name, which consists of numbers, letters (upper and lower case), or begins with _-.. Ends with numbers, letters (upper and lower case). The full name of the actually generated account is in the form: account-#{SubscribeId}-#{AccountName}. * @type {string || null} */ this.AccountName = null; /** * Consumer group password, which should be longer than 3 characters. * @type {string || null} */ this.Password = null; /** * Consumer group description * @type {string || null} */ this.Description = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubscribeId = 'SubscribeId' in params ? params.SubscribeId : null; this.ConsumerGroupName = 'ConsumerGroupName' in params ? params.ConsumerGroupName : null; this.AccountName = 'AccountName' in params ? params.AccountName : null; this.Password = 'Password' in params ? params.Password : null; this.Description = 'Description' in params ? params.Description : null; } } /** * ResizeSyncJob request structure. * @class */ class ResizeSy