UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,837 lines (1,539 loc) 345 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"); /** * CreateDBInstances request structure. * @class */ class CreateDBInstancesRequest extends AbstractModel { constructor(){ super(); /** * Instance AZ, such as ap-guangzhou-1 (Guangzhou Zone 1). Purchasable AZs for an instance can be obtained through the `DescribeZones` API * @type {string || null} */ this.Zone = null; /** * Instance memory size in GB * @type {number || null} */ this.Memory = null; /** * Instance storage capacity in GB * @type {number || null} */ this.Storage = null; /** * Billing mode. Valid value: POSTPAID (pay-as-you-go). * @type {string || null} */ this.InstanceChargeType = null; /** * Project ID * @type {number || null} */ this.ProjectId = null; /** * Number of instances purchased this time. Default value: 1. Maximum value: 10 * @type {number || null} */ this.GoodsNum = null; /** * VPC subnet ID in the format of subnet-bdoe83fa. `SubnetId` and `VpcId` should be set or ignored simultaneously * @type {string || null} */ this.SubnetId = null; /** * VPC ID in the format of vpc-dsp338hz. `SubnetId` and `VpcId` should be set or ignored simultaneously * @type {string || null} */ this.VpcId = null; /** * Length of purchase of instance. The default value is 1, indicating one month. The value cannot exceed 48 * @type {number || null} */ this.Period = null; /** * Whether to automatically use voucher. 0: no, 1: yes. Default value: no * @type {number || null} */ this.AutoVoucher = null; /** * Array of voucher IDs (currently, only one voucher can be used per order) * @type {Array.<string> || null} */ this.VoucherIds = null; /** * SQL Server version. Valid values: `2008R2` (SQL Server 2008 R2 Enterprise), `2012SP3` (SQL Server 2012 Enterprise), `201202` (SQL Server 2012 Standard), `2014SP2` (SQL Server 2014 Enterprise), 201402 (SQL Server 2014 Standard), `2016SP1` (SQL Server 2016 Enterprise), `201602` (SQL Server 2016 Standard), `2017` (SQL Server 2017 Enterprise), `201702` (SQL Server 2017 Standard), `2019` (SQL Server 2019 Enterprise), `201902` (SQL Server 2019 Standard). Default value: `2008R2`. The available version varies by region, and you can pull the version information by calling the `DescribeProductConfig` API. * @type {string || null} */ this.DBVersion = null; /** * Auto-renewal flag. 0: normal renewal, 1: auto-renewal. Default value: 1. * @type {number || null} */ this.AutoRenewFlag = null; /** * Security group list, which contains security group IDs in the format of sg-xxx. * @type {Array.<string> || null} */ this.SecurityGroupList = null; /** * Configuration of the maintenance window, which specifies the day of the week when maintenance can be performed. Valid values: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). * @type {Array.<number> || null} */ this.Weekly = null; /** * Configuration of the maintenance window, which specifies the start time of daily maintenance. * @type {string || null} */ this.StartTime = null; /** * Configuration of the maintenance window, which specifies the maintenance duration in hours. * @type {number || null} */ this.Span = null; /** * The type of purchased high-availability instance. Valid values: DUAL (dual-server high availability), CLUSTER (cluster). Default value: DUAL. * @type {string || null} */ this.HAType = null; /** * Whether to deploy across availability zones. Default value: false. * @type {boolean || null} */ this.MultiZones = null; /** * Tags associated with the instances to be created * @type {Array.<ResourceTag> || null} */ this.ResourceTags = null; /** * Collation of system character sets. Default value: `Chinese_PRC_CI_AS`. * @type {string || null} */ this.Collation = null; /** * System time zone. Default value: `China Standard Time`. * @type {string || null} */ this.TimeZone = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Zone = 'Zone' in params ? params.Zone : null; this.Memory = 'Memory' in params ? params.Memory : null; this.Storage = 'Storage' in params ? params.Storage : null; this.InstanceChargeType = 'InstanceChargeType' in params ? params.InstanceChargeType : null; this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.GoodsNum = 'GoodsNum' in params ? params.GoodsNum : null; this.SubnetId = 'SubnetId' in params ? params.SubnetId : null; this.VpcId = 'VpcId' in params ? params.VpcId : null; this.Period = 'Period' in params ? params.Period : null; this.AutoVoucher = 'AutoVoucher' in params ? params.AutoVoucher : null; this.VoucherIds = 'VoucherIds' in params ? params.VoucherIds : null; this.DBVersion = 'DBVersion' in params ? params.DBVersion : null; this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null; this.SecurityGroupList = 'SecurityGroupList' in params ? params.SecurityGroupList : null; this.Weekly = 'Weekly' in params ? params.Weekly : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.Span = 'Span' in params ? params.Span : null; this.HAType = 'HAType' in params ? params.HAType : null; this.MultiZones = 'MultiZones' in params ? params.MultiZones : null; if (params.ResourceTags) { this.ResourceTags = new Array(); for (let z in params.ResourceTags) { let obj = new ResourceTag(); obj.deserialize(params.ResourceTags[z]); this.ResourceTags.push(obj); } } this.Collation = 'Collation' in params ? params.Collation : null; this.TimeZone = 'TimeZone' in params ? params.TimeZone : null; } } /** * CloneDB response structure. * @class */ class CloneDBResponse extends AbstractModel { constructor(){ super(); /** * Async task request ID, which can be used in the `DescribeFlowStatus` API to query the execution result of an async task * @type {number || null} */ this.FlowId = 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.FlowId = 'FlowId' in params ? params.FlowId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Order information * @class */ class DealInfo extends AbstractModel { constructor(){ super(); /** * Order name * @type {string || null} */ this.DealName = null; /** * Number of items * @type {number || null} */ this.Count = null; /** * ID of associated flow, which can be used to query the flow execution status * @type {number || null} */ this.FlowId = null; /** * This field is required only for an order that creates an instance, indicating the ID of the instance created by the order * @type {Array.<string> || null} */ this.InstanceIdSet = null; /** * Account * @type {string || null} */ this.OwnerUin = null; /** * Instance billing type * @type {string || null} */ this.InstanceChargeType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DealName = 'DealName' in params ? params.DealName : null; this.Count = 'Count' in params ? params.Count : null; this.FlowId = 'FlowId' in params ? params.FlowId : null; this.InstanceIdSet = 'InstanceIdSet' in params ? params.InstanceIdSet : null; this.OwnerUin = 'OwnerUin' in params ? params.OwnerUin : null; this.InstanceChargeType = 'InstanceChargeType' in params ? params.InstanceChargeType : null; } } /** * ModifyDBEncryptAttributes response structure. * @class */ class ModifyDBEncryptAttributesResponse extends AbstractModel { constructor(){ super(); /** * Task flow ID * @type {number || null} */ this.FlowId = 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.FlowId = 'FlowId' in params ? params.FlowId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyBackupStrategy request structure. * @class */ class ModifyBackupStrategyRequest extends AbstractModel { constructor(){ super(); /** * Instance ID. * @type {string || null} */ this.InstanceId = null; /** * Backup type. Valid values: `weekly` (when length(BackupDay) <=7 && length(BackupDay) >=2), `daily` (when length(BackupDay)=1). Default value: `daily`. * @type {string || null} */ this.BackupType = null; /** * Backup time. Value range: an integer from 0 to 23. * @type {number || null} */ this.BackupTime = null; /** * Backup interval in days when the `BackupType` is `daily`. Valid value: 1. * @type {number || null} */ this.BackupDay = null; /** * Backup mode. Valid values: `master_pkg` (archive the backup files of the primary node), `master_no_pkg` (do not archive the backup files of the primary node), `slave_pkg` (archive the backup files of the replica node), `slave_no_pkg` (do not archive the backup files of the replica node). Backup files of the replica node are supported only when Always On disaster recovery is enabled. * @type {string || null} */ this.BackupModel = null; /** * The days of the week on which backup will be performed when “BackupType” is `weekly`. If data backup retention period is less than 7 days, the values will be 1-7, indicating that backup will be performed everyday by default; if data backup retention period is greater than or equal to 7 days, the values will be at least any two days, indicating that backup will be performed at least twice in a week by default. * @type {Array.<number> || null} */ this.BackupCycle = null; /** * Data (log) backup retention period. Value range: 3-1830 days, default value: 7 days. * @type {number || null} */ this.BackupSaveDays = null; /** * Archive backup status. Valid values: `enable` (enabled); `disable` (disabled). Default value: `disable`. * @type {string || null} */ this.RegularBackupEnable = null; /** * Archive backup retention days. Value range: 90–3650 days. Default value: 365 days. * @type {number || null} */ this.RegularBackupSaveDays = null; /** * Archive backup policy. Valid values: `years` (yearly); `quarters (quarterly); `months` (monthly); Default value: `months`. * @type {string || null} */ this.RegularBackupStrategy = null; /** * The number of retained archive backups. Default value: `1`. * @type {number || null} */ this.RegularBackupCounts = null; /** * Archive backup start date in YYYY-MM-DD format, which is the current time by default. * @type {string || null} */ this.RegularBackupStartTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.BackupType = 'BackupType' in params ? params.BackupType : null; this.BackupTime = 'BackupTime' in params ? params.BackupTime : null; this.BackupDay = 'BackupDay' in params ? params.BackupDay : null; this.BackupModel = 'BackupModel' in params ? params.BackupModel : null; this.BackupCycle = 'BackupCycle' in params ? params.BackupCycle : null; this.BackupSaveDays = 'BackupSaveDays' in params ? params.BackupSaveDays : null; this.RegularBackupEnable = 'RegularBackupEnable' in params ? params.RegularBackupEnable : null; this.RegularBackupSaveDays = 'RegularBackupSaveDays' in params ? params.RegularBackupSaveDays : null; this.RegularBackupStrategy = 'RegularBackupStrategy' in params ? params.RegularBackupStrategy : null; this.RegularBackupCounts = 'RegularBackupCounts' in params ? params.RegularBackupCounts : null; this.RegularBackupStartTime = 'RegularBackupStartTime' in params ? params.RegularBackupStartTime : null; } } /** * RestoreInstance request structure. * @class */ class RestoreInstanceRequest extends AbstractModel { constructor(){ super(); /** * Instance ID in the format of mssql-j8kv137v * @type {string || null} */ this.InstanceId = null; /** * Backup file ID, which can be obtained through the `Id` field in the returned value of the `DescribeBackups` API * @type {number || null} */ this.BackupId = null; /** * ID of the target instance to which the backup is restored. The target instance should be under the same `APPID`. If this parameter is left empty, ID of the source instance will be used. * @type {string || null} */ this.TargetInstanceId = null; /** * Restore the databases listed in `ReNameRestoreDatabase` and rename them after restoration. If this parameter is left empty, all databases will be restored and renamed in the default format. * @type {Array.<RenameRestoreDatabase> || null} */ this.RenameRestore = null; /** * Rollback type. Valid values: `0` (overwriting), `1` (renaming). * @type {number || null} */ this.Type = null; /** * Database to be overwritten, which is required when overwriting a rollback database. * @type {Array.<string> || null} */ this.DBList = null; /** * Group ID of unarchived backup files grouped by backup task * @type {string || null} */ this.GroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.BackupId = 'BackupId' in params ? params.BackupId : null; this.TargetInstanceId = 'TargetInstanceId' in params ? params.TargetInstanceId : null; if (params.RenameRestore) { this.RenameRestore = new Array(); for (let z in params.RenameRestore) { let obj = new RenameRestoreDatabase(); obj.deserialize(params.RenameRestore[z]); this.RenameRestore.push(obj); } } this.Type = 'Type' in params ? params.Type : null; this.DBList = 'DBList' in params ? params.DBList : null; this.GroupId = 'GroupId' in params ? params.GroupId : null; } } /** * CreateBasicDBInstances response structure. * @class */ class CreateBasicDBInstancesResponse extends AbstractModel { constructor(){ super(); /** * * @type {string || null} */ this.DealName = 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.DealName = 'DealName' in params ? params.DealName : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeAccounts request structure. * @class */ class DescribeAccountsRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * Number of results per page. Value range: 1-100. Default value: 20 * @type {number || null} */ this.Limit = null; /** * Page number. Default value: 0 * @type {number || null} */ this.Offset = null; /** * Account ID * @type {string || null} */ this.Name = null; /** * Sorting by `createTime`, `updateTime`, or `passTime`. Default value: `createTime` (desc). * @type {string || null} */ this.OrderBy = null; /** * Sorting rule. Valid values: `desc` (descending order), `asc` (ascending order). Default value: `desc`. * @type {string || null} */ this.OrderByType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.Limit = 'Limit' in params ? params.Limit : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Name = 'Name' in params ? params.Name : null; this.OrderBy = 'OrderBy' in params ? params.OrderBy : null; this.OrderByType = 'OrderByType' in params ? params.OrderByType : null; } } /** * DescribeMaintenanceSpan response structure. * @class */ class DescribeMaintenanceSpanResponse extends AbstractModel { constructor(){ super(); /** * Specifies the days in each week allowed for maintenance. For example, [1,2,3,4,5,6,7] indicates that all days from Monday to Sunday are allowed for maintenance. * @type {Array.<number> || null} */ this.Weekly = null; /** * Maintenance start time each day. For example, 10:24 indicates that the maintenance window starts at 10:24. * @type {string || null} */ this.StartTime = null; /** * Maintenance duration each day, in hours. For example, 1 indicates that the duration is 1 hour after maintenance starts. * @type {number || null} */ this.Span = 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.Weekly = 'Weekly' in params ? params.Weekly : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.Span = 'Span' in params ? params.Span : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateBusinessIntelligenceFile request structure. * @class */ class CreateBusinessIntelligenceFileRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * * @type {string || null} */ this.FileURL = null; /** * File type. Valid values: `FLAT` (flat file as data source), `SSIS` (.ispac SSIS package file) * @type {string || null} */ this.FileType = null; /** * Remarks * @type {string || null} */ this.Remark = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.FileURL = 'FileURL' in params ? params.FileURL : null; this.FileType = 'FileType' in params ? params.FileType : null; this.Remark = 'Remark' in params ? params.Remark : null; } } /** * CreateMigration response structure. * @class */ class CreateMigrationResponse extends AbstractModel { constructor(){ super(); /** * Migration task ID * @type {number || null} */ this.MigrateId = 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.MigrateId = 'MigrateId' in params ? params.MigrateId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyDReadable request structure. * @class */ class ModifyDReadableRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * Operation type. Valid values: enable - enabling the read-only mode of the replica server; disable - disabling the read-only mode of the replica server * @type {string || null} */ this.Type = null; /** * Replica server network ID, which will be consistent with the primary instance by default if left blank * @type {string || null} */ this.VpcId = null; /** * Replica server subnet ID, which will be consistent with the primary instance by default if left blank * @type {string || null} */ this.SubnetId = null; /** * Specified replica server read-only VIP, which will be assigned automatically if left blank * @type {string || null} */ this.Vip = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.Type = 'Type' in params ? params.Type : null; this.VpcId = 'VpcId' in params ? params.VpcId : null; this.SubnetId = 'SubnetId' in params ? params.SubnetId : null; this.Vip = 'Vip' in params ? params.Vip : null; } } /** * DeleteBackupMigration request structure. * @class */ class DeleteBackupMigrationRequest extends AbstractModel { constructor(){ super(); /** * Target instance ID, which is returned through the API DescribeBackupMigration. * @type {string || null} */ this.InstanceId = null; /** * Backup import task ID, which is returned through the API DescribeBackupMigration. * @type {string || null} */ this.BackupMigrationId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.BackupMigrationId = 'BackupMigrationId' in params ? params.BackupMigrationId : null; } } /** * RestartDBInstance request structure. * @class */ class RestartDBInstanceRequest extends AbstractModel { constructor(){ super(); /** * Database instance ID in the format of mssql-njj2mtpl * @type {string || null} */ this.InstanceId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; } } /** * CreateCloudDBInstances response structure. * @class */ class CreateCloudDBInstancesResponse extends AbstractModel { constructor(){ super(); /** * Order name * @type {string || null} */ this.DealName = 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.DealName = 'DealName' in params ? params.DealName : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteBusinessIntelligenceFile request structure. * @class */ class DeleteBusinessIntelligenceFileRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * File name set * @type {Array.<string> || null} */ this.FileNameSet = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.FileNameSet = 'FileNameSet' in params ? params.FileNameSet : null; } } /** * CreateBusinessDBInstances response structure. * @class */ class CreateBusinessDBInstancesResponse extends AbstractModel { constructor(){ super(); /** * Order name * @type {string || null} */ this.DealName = null; /** * Process ID Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.FlowId = null; /** * IDs of instances Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.InstanceIdSet = 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.DealName = 'DealName' in params ? params.DealName : null; this.FlowId = 'FlowId' in params ? params.FlowId : null; this.InstanceIdSet = 'InstanceIdSet' in params ? params.InstanceIdSet : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * StartBackupMigration response structure. * @class */ class StartBackupMigrationResponse extends AbstractModel { constructor(){ super(); /** * Task ID * @type {number || null} */ this.FlowId = 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.FlowId = 'FlowId' in params ? params.FlowId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Region information * @class */ class RegionInfo extends AbstractModel { constructor(){ super(); /** * Region ID in the format of ap-guangzhou * @type {string || null} */ this.Region = null; /** * Region name * @type {string || null} */ this.RegionName = null; /** * Numeric ID of region * @type {number || null} */ this.RegionId = null; /** * Current purchasability of this region. UNAVAILABLE: not purchasable, AVAILABLE: purchasable * @type {string || null} */ this.RegionState = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Region = 'Region' in params ? params.Region : null; this.RegionName = 'RegionName' in params ? params.RegionName : null; this.RegionId = 'RegionId' in params ? params.RegionId : null; this.RegionState = 'RegionState' in params ? params.RegionState : null; } } /** * ModifyBackupStrategy response structure. * @class */ class ModifyBackupStrategyResponse extends AbstractModel { constructor(){ super(); /** * Returned error code. * @type {number || null} */ this.Errno = null; /** * Returned error message. * @type {string || null} */ this.Msg = null; /** * * @type {number || null} */ this.Code = 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.Errno = 'Errno' in params ? params.Errno : null; this.Msg = 'Msg' in params ? params.Msg : null; this.Code = 'Code' in params ? params.Code : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Replica AZ information * @class */ class SlaveZones extends AbstractModel { constructor(){ super(); /** * Replica AZ region code * @type {string || null} */ this.SlaveZone = null; /** * Replica AZ * @type {string || null} */ this.SlaveZoneName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SlaveZone = 'SlaveZone' in params ? params.SlaveZone : null; this.SlaveZoneName = 'SlaveZoneName' in params ? params.SlaveZoneName : null; } } /** * ModifyIncrementalMigration request structure. * @class */ class ModifyIncrementalMigrationRequest extends AbstractModel { constructor(){ super(); /** * ID of imported target instance * @type {string || null} */ this.InstanceId = null; /** * Backup import task ID, which is returned through the API CreateBackupMigration * @type {string || null} */ this.BackupMigrationId = null; /** * Incremental backup import task ID, which is returned through the `CreateIncrementalMigration` API. * @type {string || null} */ this.IncrementalMigrationId = null; /** * Whether to restore backups. Valid values: `NO`, `YES`. If this parameter is not specified, current settings will be applied. * @type {string || null} */ this.IsRecovery = null; /** * If the UploadType is COS_URL, fill in URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases. * @type {Array.<string> || null} */ this.BackupFiles = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.BackupMigrationId = 'BackupMigrationId' in params ? params.BackupMigrationId : null; this.IncrementalMigrationId = 'IncrementalMigrationId' in params ? params.IncrementalMigrationId : null; this.IsRecovery = 'IsRecovery' in params ? params.IsRecovery : null; this.BackupFiles = 'BackupFiles' in params ? params.BackupFiles : null; } } /** * StartInstanceXEvent response structure. * @class */ class StartInstanceXEventResponse 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; } } /** * Migration progress details * @class */ class MigrateDetail extends AbstractModel { constructor(){ super(); /** * Name of current step * @type {string || null} */ this.StepName = null; /** * Progress of current step in % * @type {number || null} */ this.Progress = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.StepName = 'StepName' in params ? params.StepName : null; this.Progress = 'Progress' in params ? params.Progress : null; } } /** * CreateIncrementalMigration request structure. * @class */ class CreateIncrementalMigrationRequest extends AbstractModel { constructor(){ super(); /** * ID of imported target instance * @type {string || null} */ this.InstanceId = null; /** * Backup import task ID, which is returned through the API CreateBackupMigration. * @type {string || null} */ this.BackupMigrationId = null; /** * Incremental backup file. If the UploadType of a full backup file is COS_URL, fill in URL here. If the UploadType is COS_UPLOAD, fill in the name of the backup file here. Only 1 backup file is supported, but a backup file can involve multiple databases. * @type {Array.<string> || null} */ this.BackupFiles = null; /** * Whether restoration is required. No: not required. Yes: required. Not required by default. * @type {string || null} */ this.IsRecovery = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.BackupMigrationId = 'BackupMigrationId' in params ? params.BackupMigrationId : null; this.BackupFiles = 'BackupFiles' in params ? params.BackupFiles : null; this.IsRecovery = 'IsRecovery' in params ? params.IsRecovery : null; } } /** * RunMigration request structure. * @class */ class RunMigrationRequest extends AbstractModel { constructor(){ super(); /** * Migration task ID * @type {number || null} */ this.MigrateId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.MigrateId = 'MigrateId' in params ? params.MigrateId : null; } } /** * DescribeDBInstanceInter response structure. * @class */ class DescribeDBInstanceInterResponse extends AbstractModel { constructor(){ super(); /** * Number of records returned * @type {number || null} */ this.TotalCount = null; /** * Details of instance in the interworking group * @type {Array.<InterInstance> || null} */ this.InterInstanceSet = 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.InterInstanceSet) { this.InterInstanceSet = new Array(); for (let z in params.InterInstanceSet) { let obj = new InterInstance(); obj.deserialize(params.InterInstanceSet[z]); this.InterInstanceSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateBusinessIntelligenceFile response structure. * @class */ class CreateBusinessIntelligenceFileResponse extends AbstractModel { constructor(){ super(); /** * File name * @type {string || null} */ this.FileTaskId = 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.FileTaskId = 'FileTaskId' in params ? params.FileTaskId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * OpenInterCommunication request structure. * @class */ class OpenInterCommunicationRequest extends AbstractModel { constructor(){ super(); /** * IDs of instances with interwoking group enabled * @type {Array.<string> || null} */ this.InstanceIdSet = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceIdSet = 'InstanceIdSet' in params ? params.InstanceIdSet : null; } } /** * DescribeProductConfig request structure. * @class */ class DescribeProductConfigRequest extends AbstractModel { constructor(){ super(); /** * AZ ID in the format of ap-guangzhou-1 * @type {string || null} */ this.Zone = null; /** * Type of purchased instance. Valid values: HA - local disk high availability (including dual-machine high availability, AlwaysOn Cluster), RO - local disk read-only replica, SI - cloud disk edition single node, BI - business intelligence service, cvmHA - cloud disk edition high availability, cvmRO - cloud disk edition read-only replica * @type {string || null} */ this.InstanceType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Zone = 'Zone' in params ? params.Zone : null; this.InstanceType = 'InstanceType' in params ? params.InstanceType : null; } } /** * ModifyDBEncryptAttributes request structure. * @class */ class ModifyDBEncryptAttributesRequest extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * A parameter used to enable or disable TDE of the database * @type {Array.<DBTDEEncrypt> || null} */ this.DBTDEEncrypt = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; if (params.DBTDEEncrypt) { this.DBTDEEncrypt = new Array(); for (let z in params.DBTDEEncrypt) { let obj = new DBTDEEncrypt(); obj.deserialize(params.DBTDEEncrypt[z]); this.DBTDEEncrypt.push(obj); } } } } /** * CreateAccount request structure. * @class */ class CreateAccountRequest extends AbstractModel { constructor(){ super(); /** * Database instance ID in the format of mssql-njj2mtpl * @type {string || null} */ this.InstanceId = null; /** * Database instance account information * @type {Array.<AccountCreateInfo> || null} */ this.Accounts = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; if (params.Accounts) { this.Accounts = new Array(); for (let z in params.Accounts) { let obj = new AccountCreateInfo(); obj.deserialize(params.Accounts[z]); this.Accounts.push(obj); } } } } /** * Instance parameter modification record * @class */ class ParamRecord extends AbstractModel { constructor(){ super(); /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * Parameter name * @type {string || null} */ this.ParamName = null; /** * Parameter value before modification * @type {string || null} */ this.OldValue = null; /** * Parameter value after modification * @type {string || null} */ this.NewValue = null; /** * Parameter modification status. Valid values: `1` (initializing and waiting for modification), `2` (modification succeed), `3` (modification failed), `4` (modifying) * @type {number || null} */ this.Status = null; /** * Modification time * @type {string || null} */ this.ModifyTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.ParamName = 'ParamName' in params ? params.ParamName : null; this.OldValue = 'OldValue' in params ? params.OldValue : null; this.NewValue = 'NewValue' in params ? params.NewValue : null; this.Status = 'Status' in params ? params.Status : null; this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null; } } /** * RollbackInstance response structure. * @class */ class RollbackInstanceResponse extends AbstractModel { constructor(){ super(); /** * The async job ID * @type {number || null} */ this.FlowId = 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.FlowId = 'FlowId' in params ? params.FlowId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteIncrementalMigration request structure. * @class */ class DeleteIncrementalMigrationRequest extends AbstractModel { constructor(){ super(); /** * Target instance ID. * @type {string || null} */ this.InstanceId = null; /** * Backup import task ID, which is returned through the `CreateBackupMigration` API * @type {string || null} */ this.BackupMigrationId = null; /** * Incremental backup import task ID, which is returned through the `CreateIncrementalMigration` API * @type {string || null} */ this.IncrementalMigrationId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.BackupMigrationId = 'BackupMigrationId' in params ? params.BackupMigrationId : null; this.IncrementalMigrationId = 'IncrementalMigrationId' in params ? params.IncrementalMigrationId : null; } } /** * Database remarks * @class */ class DBRemark extends AbstractModel { constructor(){ super(); /** * Database name * @type {string || null} */ this.Name = null; /** * Remarks * @type {string || null} */ this.Remark = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.Remark = 'Remark' in params ? params.Remark : null; } } /** * CloseInterCommunication request structure. * @class */ class CloseInterCommunicationRequest extends AbstractModel { constructor(){ super(); /** * IDs of instances with interconnection disabled * @type {Array.<string> || null} */ this.InstanceIdSet = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceIdSet = 'InstanceIdSet' in params ? params.InstanceIdSet : null; } } /** * List of databases to be migrated * @class */ class MigrateDB extends AbstractModel { constructor(){ super(); /** * Name of migrated database * @type {string || null} */ this.DBName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DBName = 'DBName' in params ? params.DBName : null; } } /** * DescribeRegions response structure. * @class */ class DescribeRegionsResponse extends AbstractModel { constructor(){ super(); /** * Total number of regions returned * @type {number || null} */ this.TotalCount = null; /** * Region information array * @type {Array.<RegionInfo> || null} */ this.RegionSet = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for