UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,903 lines (1,605 loc) • 130 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"); /** * CreateMigrationTask request structure. * @class */ class CreateMigrationTaskRequest extends AbstractModel { constructor(){ super(); /** * Migration task name * @type {string || null} */ this.TaskName = null; /** * Migration type. Valid values: `0` (bucket) and `1` (list). Default value: `0`. * @type {number || null} */ this.MigrationType = null; /** * Migration mode. Default value: `0` (full migration). * @type {number || null} */ this.MigrationMode = null; /** * SecretId of the data source account * @type {string || null} */ this.SrcSecretId = null; /** * SecretKey of the data source account * @type {string || null} */ this.SrcSecretKey = null; /** * File system instance ID * @type {string || null} */ this.FileSystemId = null; /** * File system path * @type {string || null} */ this.FsPath = null; /** * Overwrite policy for files with the same name. Valid values: `0` (retain the file with the latest modified time), `1` (overwrite); and `2` (not overwrite). Default value: `0`. * @type {number || null} */ this.CoverType = null; /** * Data source service provider. Valid values: `COS` (Tencent Cloud COS), `OSS` (Alibaba Cloud OSS), and `OBS` (Huawei Cloud OBS). * @type {string || null} */ this.SrcService = null; /** * Data source bucket name. Specify at least one of the bucket name or address. * @type {string || null} */ this.BucketName = null; /** * Data source bucket region * @type {string || null} */ this.BucketRegion = null; /** * Data source bucket address. Specify at least one of the bucket name or address. * @type {string || null} */ this.BucketAddress = null; /** * List address. This parameter is required if `MigrationType` is set to `1` (list). * @type {string || null} */ this.ListAddress = null; /** * Target file system name * @type {string || null} */ this.FsName = null; /** * Source bucket path, which defaults to `/` * @type {string || null} */ this.BucketPath = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TaskName = 'TaskName' in params ? params.TaskName : null; this.MigrationType = 'MigrationType' in params ? params.MigrationType : null; this.MigrationMode = 'MigrationMode' in params ? params.MigrationMode : null; this.SrcSecretId = 'SrcSecretId' in params ? params.SrcSecretId : null; this.SrcSecretKey = 'SrcSecretKey' in params ? params.SrcSecretKey : null; this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.FsPath = 'FsPath' in params ? params.FsPath : null; this.CoverType = 'CoverType' in params ? params.CoverType : null; this.SrcService = 'SrcService' in params ? params.SrcService : null; this.BucketName = 'BucketName' in params ? params.BucketName : null; this.BucketRegion = 'BucketRegion' in params ? params.BucketRegion : null; this.BucketAddress = 'BucketAddress' in params ? params.BucketAddress : null; this.ListAddress = 'ListAddress' in params ? params.ListAddress : null; this.FsName = 'FsName' in params ? params.FsName : null; this.BucketPath = 'BucketPath' in params ? params.BucketPath : null; } } /** * ScaleUpFileSystem response structure. * @class */ class ScaleUpFileSystemResponse extends AbstractModel { constructor(){ super(); /** * File system ID * @type {string || null} */ this.FileSystemId = null; /** * Target capacity after scaling * @type {number || null} */ this.TargetCapacity = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.TargetCapacity = 'TargetCapacity' in params ? params.TargetCapacity : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * File system snapshot statistics * @class */ class SnapshotStatistics extends AbstractModel { constructor(){ super(); /** * Region * @type {string || null} */ this.Region = null; /** * Total number of snapshots * @type {number || null} */ this.SnapshotNumber = null; /** * Total snapshot size * @type {number || null} */ this.SnapshotSize = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Region = 'Region' in params ? params.Region : null; this.SnapshotNumber = 'SnapshotNumber' in params ? params.SnapshotNumber : null; this.SnapshotSize = 'SnapshotSize' in params ? params.SnapshotSize : null; } } /** * DescribeCfsPGroups response structure. * @class */ class DescribeCfsPGroupsResponse extends AbstractModel { constructor(){ super(); /** * Permission group information list * @type {Array.<PGroupInfo> || null} */ this.PGroupList = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.PGroupList) { this.PGroupList = new Array(); for (let z in params.PGroupList) { let obj = new PGroupInfo(); obj.deserialize(params.PGroupList[z]); this.PGroupList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeMountTargets response structure. * @class */ class DescribeMountTargetsResponse extends AbstractModel { constructor(){ super(); /** * Mount target details * @type {Array.<MountInfo> || null} */ this.MountTargets = null; /** * The number of mount targets * @type {number || null} */ this.NumberOfMountTargets = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.MountTargets) { this.MountTargets = new Array(); for (let z in params.MountTargets) { let obj = new MountInfo(); obj.deserialize(params.MountTargets[z]); this.MountTargets.push(obj); } } this.NumberOfMountTargets = 'NumberOfMountTargets' in params ? params.NumberOfMountTargets : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeSnapshotOperationLogs request structure. * @class */ class DescribeSnapshotOperationLogsRequest extends AbstractModel { constructor(){ super(); /** * File system snapshot ID * @type {string || null} */ this.SnapshotId = null; /** * Start time * @type {string || null} */ this.StartTime = null; /** * End time * @type {string || null} */ this.EndTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SnapshotId = 'SnapshotId' in params ? params.SnapshotId : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; } } /** * Information of a CFS data migration task * @class */ class MigrationTaskInfo extends AbstractModel { constructor(){ super(); /** * Migration task name * @type {string || null} */ this.TaskName = null; /** * Migration task ID * @type {string || null} */ this.TaskId = null; /** * Migration type. Valid values: `0` (bucket) and `1` (list). Default value: `0`. * @type {number || null} */ this.MigrationType = null; /** * Migration mode. Default value: `0` (full migration). * @type {number || null} */ this.MigrationMode = null; /** * Data source bucket name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.BucketName = null; /** * Data source bucket region Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.BucketRegion = null; /** * Data source bucket address Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.BucketAddress = null; /** * List address Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ListAddress = null; /** * File system instance name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.FsName = null; /** * File system instance ID * @type {string || null} */ this.FileSystemId = null; /** * File system path * @type {string || null} */ this.FsPath = null; /** * Overwrite policy for files with the same name. Valid values: `0` (retain the file with the latest modified time), `1` (overwrite); and `2` (not overwrite). Default value: `0`. * @type {number || null} */ this.CoverType = null; /** * Creation time * @type {number || null} */ this.CreateTime = null; /** * End time Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.EndTime = null; /** * Migration status. Valid values: `0` (completed), `1` (in progress), and `2` (stopped). * @type {number || null} */ this.Status = null; /** * Number of files Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.FileTotalCount = null; /** * Number of migrated files Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.FileMigratedCount = null; /** * Number of files that failed to be migrated Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.FileFailedCount = null; /** * File size, in bytes Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.FileTotalSize = null; /** * Size of migrated files, in bytes Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.FileMigratedSize = null; /** * Size of files that failed to be migrated, in bytes Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.FileFailedSize = null; /** * List of all files Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.FileTotalList = null; /** * List of migrated files Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.FileCompletedList = null; /** * List of files that failed to be migrated Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.FileFailedList = null; /** * Source bucket path Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.BucketPath = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TaskName = 'TaskName' in params ? params.TaskName : null; this.TaskId = 'TaskId' in params ? params.TaskId : null; this.MigrationType = 'MigrationType' in params ? params.MigrationType : null; this.MigrationMode = 'MigrationMode' in params ? params.MigrationMode : null; this.BucketName = 'BucketName' in params ? params.BucketName : null; this.BucketRegion = 'BucketRegion' in params ? params.BucketRegion : null; this.BucketAddress = 'BucketAddress' in params ? params.BucketAddress : null; this.ListAddress = 'ListAddress' in params ? params.ListAddress : null; this.FsName = 'FsName' in params ? params.FsName : null; this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.FsPath = 'FsPath' in params ? params.FsPath : null; this.CoverType = 'CoverType' in params ? params.CoverType : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; this.Status = 'Status' in params ? params.Status : null; this.FileTotalCount = 'FileTotalCount' in params ? params.FileTotalCount : null; this.FileMigratedCount = 'FileMigratedCount' in params ? params.FileMigratedCount : null; this.FileFailedCount = 'FileFailedCount' in params ? params.FileFailedCount : null; this.FileTotalSize = 'FileTotalSize' in params ? params.FileTotalSize : null; this.FileMigratedSize = 'FileMigratedSize' in params ? params.FileMigratedSize : null; this.FileFailedSize = 'FileFailedSize' in params ? params.FileFailedSize : null; this.FileTotalList = 'FileTotalList' in params ? params.FileTotalList : null; this.FileCompletedList = 'FileCompletedList' in params ? params.FileCompletedList : null; this.FileFailedList = 'FileFailedList' in params ? params.FileFailedList : null; this.BucketPath = 'BucketPath' in params ? params.BucketPath : null; } } /** * Information on the file system client * @class */ class FileSystemClient extends AbstractModel { constructor(){ super(); /** * IP address of the file system * @type {string || null} */ this.CfsVip = null; /** * Client IP * @type {string || null} */ this.ClientIp = null; /** * File system VPCID * @type {string || null} */ this.VpcId = null; /** * Name of the availability zone, e.g. ap-beijing-1. For more information, see regions and availability zones in the Overview document * @type {string || null} */ this.Zone = null; /** * AZ name * @type {string || null} */ this.ZoneName = null; /** * Path in which the file system is mounted to the client * @type {string || null} */ this.MountDirectory = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CfsVip = 'CfsVip' in params ? params.CfsVip : null; this.ClientIp = 'ClientIp' in params ? params.ClientIp : null; this.VpcId = 'VpcId' in params ? params.VpcId : null; this.Zone = 'Zone' in params ? params.Zone : null; this.ZoneName = 'ZoneName' in params ? params.ZoneName : null; this.MountDirectory = 'MountDirectory' in params ? params.MountDirectory : null; } } /** * DescribeCfsFileSystems response structure. * @class */ class DescribeCfsFileSystemsResponse extends AbstractModel { constructor(){ super(); /** * File system information * @type {Array.<FileSystemInfo> || null} */ this.FileSystems = null; /** * Total number of file systems * @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.FileSystems) { this.FileSystems = new Array(); for (let z in params.FileSystems) { let obj = new FileSystemInfo(); obj.deserialize(params.FileSystems[z]); this.FileSystems.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateCfsFileSystem response structure. * @class */ class CreateCfsFileSystemResponse extends AbstractModel { constructor(){ super(); /** * File system creation time * @type {string || null} */ this.CreationTime = null; /** * Custom file system name * @type {string || null} */ this.CreationToken = null; /** * File system ID * @type {string || null} */ this.FileSystemId = null; /** * File system status. Valid values: `creating`, `create_failed`, `available`, `unserviced`, `upgrading`, `deleting` * @type {string || null} */ this.LifeCycleState = null; /** * Storage used by the file system, in bytes * @type {number || null} */ this.SizeByte = null; /** * AZ ID * @type {number || null} */ this.ZoneId = null; /** * Custom file system name * @type {string || null} */ this.FsName = null; /** * Whether a file system is encrypted * @type {boolean || null} */ this.Encrypted = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CreationTime = 'CreationTime' in params ? params.CreationTime : null; this.CreationToken = 'CreationToken' in params ? params.CreationToken : null; this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.LifeCycleState = 'LifeCycleState' in params ? params.LifeCycleState : null; this.SizeByte = 'SizeByte' in params ? params.SizeByte : null; this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.FsName = 'FsName' in params ? params.FsName : null; this.Encrypted = 'Encrypted' in params ? params.Encrypted : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Basic information of a file system * @class */ class FileSystemInfo extends AbstractModel { constructor(){ super(); /** * Creation time * @type {string || null} */ this.CreationTime = null; /** * Custom name * @type {string || null} */ this.CreationToken = null; /** * File system ID * @type {string || null} */ this.FileSystemId = null; /** * File system status. Valid values: - creating - mounting - create_failed - available - unserviced - upgrading * @type {string || null} */ this.LifeCycleState = null; /** * Used file system capacity * @type {number || null} */ this.SizeByte = null; /** * Maximum storage limit of a file system * @type {number || null} */ this.SizeLimit = null; /** * Region ID * @type {number || null} */ this.ZoneId = null; /** * Region name * @type {string || null} */ this.Zone = null; /** * File system protocol type * @type {string || null} */ this.Protocol = null; /** * File system storage class * @type {string || null} */ this.StorageType = null; /** * Prepaid storage pack bound with the file system * @type {string || null} */ this.StorageResourcePkg = null; /** * Prepaid bandwidth pack bound to a file system (not supported currently) * @type {string || null} */ this.BandwidthResourcePkg = null; /** * Information of permission groups bound to a file system * @type {PGroup || null} */ this.PGroup = null; /** * Custom name * @type {string || null} */ this.FsName = null; /** * Whether a file system is encrypted * @type {boolean || null} */ this.Encrypted = null; /** * Key used for encryption, which can be the key ID or ARN * @type {string || null} */ this.KmsKeyId = null; /** * Application ID * @type {number || null} */ this.AppId = null; /** * The upper limit on the file system’s throughput, which is determined based on its current usage, and bound resource packs for both storage and throughput * @type {number || null} */ this.BandwidthLimit = null; /** * * @type {string || null} */ this.AutoSnapshotPolicyId = null; /** * * @type {string || null} */ this.SnapStatus = null; /** * Total capacity of the file system * @type {number || null} */ this.Capacity = null; /** * File system tag list * @type {Array.<TagInfo> || null} */ this.Tags = null; /** * The lifecycle management status of a file system. * @type {string || null} */ this.TieringState = null; /** * The details about tiered storage. Note: This field may return null, indicating that no valid values can be obtained. * @type {TieringDetailInfo || null} */ this.TieringDetail = null; /** * * @type {AutoScaleUpRule || null} */ this.AutoScaleUpRule = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CreationTime = 'CreationTime' in params ? params.CreationTime : null; this.CreationToken = 'CreationToken' in params ? params.CreationToken : null; this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.LifeCycleState = 'LifeCycleState' in params ? params.LifeCycleState : null; this.SizeByte = 'SizeByte' in params ? params.SizeByte : null; this.SizeLimit = 'SizeLimit' in params ? params.SizeLimit : null; this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.Zone = 'Zone' in params ? params.Zone : null; this.Protocol = 'Protocol' in params ? params.Protocol : null; this.StorageType = 'StorageType' in params ? params.StorageType : null; this.StorageResourcePkg = 'StorageResourcePkg' in params ? params.StorageResourcePkg : null; this.BandwidthResourcePkg = 'BandwidthResourcePkg' in params ? params.BandwidthResourcePkg : null; if (params.PGroup) { let obj = new PGroup(); obj.deserialize(params.PGroup) this.PGroup = obj; } this.FsName = 'FsName' in params ? params.FsName : null; this.Encrypted = 'Encrypted' in params ? params.Encrypted : null; this.KmsKeyId = 'KmsKeyId' in params ? params.KmsKeyId : null; this.AppId = 'AppId' in params ? params.AppId : null; this.BandwidthLimit = 'BandwidthLimit' in params ? params.BandwidthLimit : null; this.AutoSnapshotPolicyId = 'AutoSnapshotPolicyId' in params ? params.AutoSnapshotPolicyId : null; this.SnapStatus = 'SnapStatus' in params ? params.SnapStatus : null; this.Capacity = 'Capacity' in params ? params.Capacity : null; if (params.Tags) { this.Tags = new Array(); for (let z in params.Tags) { let obj = new TagInfo(); obj.deserialize(params.Tags[z]); this.Tags.push(obj); } } this.TieringState = 'TieringState' in params ? params.TieringState : null; if (params.TieringDetail) { let obj = new TieringDetailInfo(); obj.deserialize(params.TieringDetail) this.TieringDetail = obj; } if (params.AutoScaleUpRule) { let obj = new AutoScaleUpRule(); obj.deserialize(params.AutoScaleUpRule) this.AutoScaleUpRule = obj; } } } /** * BindAutoSnapshotPolicy request structure. * @class */ class BindAutoSnapshotPolicyRequest extends AbstractModel { constructor(){ super(); /** * Snapshot policy ID * @type {string || null} */ this.AutoSnapshotPolicyId = null; /** * List of file systems * @type {string || null} */ this.FileSystemIds = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AutoSnapshotPolicyId = 'AutoSnapshotPolicyId' in params ? params.AutoSnapshotPolicyId : null; this.FileSystemIds = 'FileSystemIds' in params ? params.FileSystemIds : null; } } /** * ModifyFileSystemAutoScaleUpRule request structure. * @class */ class ModifyFileSystemAutoScaleUpRuleRequest extends AbstractModel { constructor(){ super(); /** * File system ID * @type {string || null} */ this.FileSystemId = null; /** * Threshold for triggering scaling. Value range: 10-90 * @type {number || null} */ this.ScaleUpThreshold = null; /** * Target threshold after scaling. Value range: 10-90. The value of this parameter must be smaller than that of `ScaleUpThreshold`. * @type {number || null} */ this.TargetThreshold = null; /** * Rule status. Valid values: `0` (disabled) and `1` (enabled). * @type {number || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.ScaleUpThreshold = 'ScaleUpThreshold' in params ? params.ScaleUpThreshold : null; this.TargetThreshold = 'TargetThreshold' in params ? params.TargetThreshold : null; this.Status = 'Status' in params ? params.Status : null; } } /** * ScaleUpFileSystem request structure. * @class */ class ScaleUpFileSystemRequest extends AbstractModel { constructor(){ super(); /** * File system ID * @type {string || null} */ this.FileSystemId = null; /** * Target capacity after scaling * @type {number || null} */ this.TargetCapacity = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.TargetCapacity = 'TargetCapacity' in params ? params.TargetCapacity : null; } } /** * CreateCfsPGroup request structure. * @class */ class CreateCfsPGroupRequest extends AbstractModel { constructor(){ super(); /** * Permission group name, which can contain 1-64 Chinese characters, letters, numbers, underscores, or dashes * @type {string || null} */ this.Name = null; /** * Permission group description, which can contain 1-255 characters * @type {string || null} */ this.DescInfo = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Name = 'Name' in params ? params.Name : null; this.DescInfo = 'DescInfo' in params ? params.DescInfo : null; } } /** * DescribeMigrationTasks response structure. * @class */ class DescribeMigrationTasksResponse extends AbstractModel { constructor(){ super(); /** * Number of migration tasks * @type {number || null} */ this.TotalCount = null; /** * Migration task details * @type {Array.<MigrationTaskInfo> || null} */ this.MigrationTasks = null; /** * The unique request ID, which is returned for each request. 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.MigrationTasks) { this.MigrationTasks = new Array(); for (let z in params.MigrationTasks) { let obj = new MigrationTaskInfo(); obj.deserialize(params.MigrationTasks[z]); this.MigrationTasks.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeAutoSnapshotPolicies request structure. * @class */ class DescribeAutoSnapshotPoliciesRequest extends AbstractModel { constructor(){ super(); /** * Snapshot policy ID * @type {string || null} */ this.AutoSnapshotPolicyId = null; /** * Page offset * @type {number || null} */ this.Offset = null; /** * Page length * @type {number || null} */ this.Limit = null; /** * Filters * @type {Array.<Filter> || null} */ this.Filters = null; /** * Ascending or descending order * @type {string || null} */ this.Order = null; /** * Sorting field * @type {string || null} */ this.OrderField = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AutoSnapshotPolicyId = 'AutoSnapshotPolicyId' in params ? params.AutoSnapshotPolicyId : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.Order = 'Order' in params ? params.Order : null; this.OrderField = 'OrderField' in params ? params.OrderField : null; } } /** * DescribeAvailableZoneInfo request structure. * @class */ class DescribeAvailableZoneInfoRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * DescribeMountTargets request structure. * @class */ class DescribeMountTargetsRequest extends AbstractModel { constructor(){ super(); /** * File system ID * @type {string || null} */ this.FileSystemId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; } } /** * BindAutoSnapshotPolicy response structure. * @class */ class BindAutoSnapshotPolicyResponse extends AbstractModel { constructor(){ super(); /** * Snapshot policy ID * @type {string || null} */ this.AutoSnapshotPolicyId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AutoSnapshotPolicyId = 'AutoSnapshotPolicyId' in params ? params.AutoSnapshotPolicyId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * StopMigrationTask response structure. * @class */ class StopMigrationTaskResponse extends AbstractModel { constructor(){ super(); /** * Migration task ID * @type {string || null} */ this.TaskId = null; /** * Migration status. Valid values: `0` (completed), `1` (in progress), and `2` (stopped). * @type {number || null} */ this.Status = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TaskId = 'TaskId' in params ? params.TaskId : null; this.Status = 'Status' in params ? params.Status : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * SignUpCfsService response structure. * @class */ class SignUpCfsServiceResponse extends AbstractModel { constructor(){ super(); /** * Current status of the CFS service for this user. Valid values: `creating` (activating); `created` (activated) * @type {string || null} */ this.CfsServiceStatus = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.CfsServiceStatus = 'CfsServiceStatus' in params ? params.CfsServiceStatus : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Snapshot policy information * @class */ class AutoSnapshotPolicyInfo extends AbstractModel { constructor(){ super(); /** * Snapshot policy ID * @type {string || null} */ this.AutoSnapshotPolicyId = null; /** * Snapshot policy name * @type {string || null} */ this.PolicyName = null; /** * Snapshot policy creation time * @type {string || null} */ this.CreationTime = null; /** * Number of bound file systems * @type {number || null} */ this.FileSystemNums = null; /** * The specific day of the week on which to create a snapshot. This parameter is mutually exclusive with `DayOfMonth` and `IntervalDays`. * @type {string || null} */ this.DayOfWeek = null; /** * The hour of a day at which to regularly back up the snapshot * @type {string || null} */ this.Hour = null; /** * Whether to activate the scheduled snapshot feature * @type {number || null} */ this.IsActivated = null; /** * Next time to trigger snapshot * @type {string || null} */ this.NextActiveTime = null; /** * Snapshot policy status * @type {string || null} */ this.Status = null; /** * Account ID * @type {number || null} */ this.AppId = null; /** * Retention period * @type {number || null} */ this.AliveDays = null; /** * Region * @type {string || null} */ this.RegionName = null; /** * File system information * @type {Array.<FileSystemByPolicy> || null} */ this.FileSystems = null; /** * The specific day of the month on which to create a snapshot. This parameter is mutually exclusive with `DayOfWeek` and `IntervalDays`. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.DayOfMonth = null; /** * The snapshot interval (1 to 365 days). This parameter is mutually exclusive with `DayOfWeek` and `DayOfMonth`. Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.IntervalDays = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AutoSnapshotPolicyId = 'AutoSnapshotPolicyId' in params ? params.AutoSnapshotPolicyId : null; this.PolicyName = 'PolicyName' in params ? params.PolicyName : null; this.CreationTime = 'CreationTime' in params ? params.CreationTime : null; this.FileSystemNums = 'FileSystemNums' in params ? params.FileSystemNums : null; this.DayOfWeek = 'DayOfWeek' in params ? params.DayOfWeek : null; this.Hour = 'Hour' in params ? params.Hour : null; this.IsActivated = 'IsActivated' in params ? params.IsActivated : null; this.NextActiveTime = 'NextActiveTime' in params ? params.NextActiveTime : null; this.Status = 'Status' in params ? params.Status : null; this.AppId = 'AppId' in params ? params.AppId : null; this.AliveDays = 'AliveDays' in params ? params.AliveDays : null; this.RegionName = 'RegionName' in params ? params.RegionName : null; if (params.FileSystems) { this.FileSystems = new Array(); for (let z in params.FileSystems) { let obj = new FileSystemByPolicy(); obj.deserialize(params.FileSystems[z]); this.FileSystems.push(obj); } } this.DayOfMonth = 'DayOfMonth' in params ? params.DayOfMonth : null; this.IntervalDays = 'IntervalDays' in params ? params.IntervalDays : null; } } /** * DescribeCfsRules request structure. * @class */ class DescribeCfsRulesRequest extends AbstractModel { constructor(){ super(); /** * Permission group ID * @type {string || null} */ this.PGroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PGroupId = 'PGroupId' in params ? params.PGroupId : null; } } /** * UpdateCfsFileSystemName request structure. * @class */ class UpdateCfsFileSystemNameRequest extends AbstractModel { constructor(){ super(); /** * File system ID * @type {string || null} */ this.FileSystemId = null; /** * Custom file system name * @type {string || null} */ this.FsName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.FsName = 'FsName' in params ? params.FsName : null; } } /** * DeleteCfsPGroup request structure. * @class */ class DeleteCfsPGroupRequest extends AbstractModel { constructor(){ super(); /** * Permission group ID * @type {string || null} */ this.PGroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PGroupId = 'PGroupId' in params ? params.PGroupId : null; } } /** * UpdateCfsPGroup response structure. * @class */ class UpdateCfsPGroupResponse extends AbstractModel { constructor(){ super(); /** * Permission group ID * @type {string || null} */ this.PGroupId = null; /** * Permission group name * @type {string || null} */ this.Name = null; /** * Description * @type {string || null} */ this.DescInfo = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PGroupId = 'PGroupId' in params ? params.PGroupId : null; this.Name = 'Name' in params ? params.Name : null; this.DescInfo = 'DescInfo' in params ? params.DescInfo : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteAutoSnapshotPolicy request structure. * @class */ class DeleteAutoSnapshotPolicyRequest extends AbstractModel { constructor(){ super(); /** * Snapshot policy ID * @type {string || null} */ this.AutoSnapshotPolicyId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AutoSnapshotPolicyId = 'AutoSnapshotPolicyId' in params ? params.AutoSnapshotPolicyId : null; } } /** * DeleteCfsFileSystem response structure. * @class */ class DeleteCfsFileSystemResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * UpdateCfsRule request structure. * @class */ class UpdateCfsRuleRequest extends AbstractModel { constructor(){ super(); /** * Permission group ID * @type {string || null} */ this.PGroupId = null; /** * Rule ID * @type {string || null} */ this.RuleId = null; /** * You can enter a single IP or IP range, such as 10.1.10.11 or 10.10.1.0/24. The default visiting address is `*`, indicating that all IPs are allowed. Please note that you need to enter the CVM instance's private IP here. * @type {string || null} */ this.AuthClientIp = null; /** * Read/write permission. Valid values: RO (read-only), RW (read & write). Default value: RO * @type {string || null} */ this.RWPermission = null; /** * User permission. Valid values: all_squash, no_all_squash, root_squash, no_root_squash. Specifically, all_squash: any visiting user will be mapped to an anonymous user or user group; no_all_squash: a visiting user will be first matched with a local user, and if the match fails, it will be mapped to an anonymous user or user group; root_squash: a visiting root user will be mapped to an anonymous user or user group; no_root_squash: a visiting root user will be allowed to maintain root account permissions. Default value: root_squash. * @type {string || null} */ this.UserPermission = null; /** * Rule priority. Value range: 1-100. 1 represents the highest priority, while 100 the lowest * @type {number || null} */ this.Priority = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PGroupId = 'PGroupId' in params ? params.PGroupId : null; this.RuleId = 'RuleId' in params ? params.RuleId : null; this.AuthClientIp = 'AuthClientIp' in params ? params.AuthClientIp : null; this.RWPermission = 'RWPermission' in params ? params.RWPermission : null; this.UserPermission = 'UserPermission' in params ? params.UserPermission : null; this.Priority = 'Priority' in params ? params.Priority : null; } } /** * DescribeAvailableZoneInfo response structure. * @class */ class DescribeAvailableZoneInfoResponse extends AbstractModel { constructor(){ super(); /** * Information such as resource availability in each AZ and the supported storage classes and protocols * @type {Array.<AvailableRegion> || null} */ this.RegionZones = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.RegionZones) { this.RegionZones = new Array(); for (let z in params.RegionZones) { let obj = new AvailableRegion(); obj.deserialize(params.RegionZones[z]); this.RegionZones.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DeleteCfsSnapshot response structure. * @class */ class DeleteCfsSnapshotResponse extends AbstractModel { constructor(){ super(); /** * File system ID * @type {string || null} */ this.SnapshotId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SnapshotId = 'SnapshotId' in params ? params.Snapshot