UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,845 lines (1,549 loc) • 203 kB
/* * Copyright (c) 2018 Tencent. 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 method flags, default is 0. 0: bucket migration; 1: inventory migration. * @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, which can be obtained by querying the file system through the [DescribeCfsFileSystems](https://www.tencentcloud.com/document/product/582/38170?from_cn_redirect=1) api. * @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 providers. COS: tencent cloud COS, OSS: alibaba cloud OSS, OBS: huawei cloud OBS. * @type {string || null} */ this.SrcService = null; /** * Data source bucket name. specifies the bucket name for migration. either BucketName or BucketAddress is required for bucket migration. this parameter is not required for inventory migration. * @type {string || null} */ this.BucketName = null; /** * Data source bucket region * @type {string || null} */ this.BucketRegion = null; /** * Source bucket address. specifies the bucket address of the data source. for bucket migration, either BucketName or BucketAddress is required. this parameter is not required for inventory migration. * @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, defaults to /. * @type {string || null} */ this.BucketPath = null; /** * Migration direction. valid values: 0 (cos migration to file system), 1 (file system migration to cos). default is 0. * @type {number || null} */ this.Direction = 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; this.Direction = 'Direction' in params ? params.Direction : null; } } /** * ScaleUpFileSystem response structure. * @class */ class ScaleUpFileSystemResponse extends AbstractModel { constructor(){ super(); /** * File system ID * @type {string || null} */ this.FileSystemId = null; /** * Target capacity after scale-out (unit GiB). * @type {number || null} */ this.TargetCapacity = 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.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 capacity in MiB. * @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; } } /** * CreateLifecycleDataTask request structure. * @class */ class CreateLifecycleDataTaskRequest extends AbstractModel { constructor(){ super(); /** * File system unique ID. * @type {string || null} */ this.FileSystemId = null; /** * Lifecycle task type; archive: settlement; restore: preheating; release: data release; metaload: metadata loading. * @type {string || null} */ this.Type = null; /** * Task name. * @type {string || null} */ this.TaskName = null; /** * The path or file to be settled supports passing only one path and cannot be empty. * @type {string || null} */ this.TaskPath = null; /** * Data flow ID. this api can be accessed through DescribeDataFlow. * @type {string || null} */ this.DataFlowId = null; /** * When a file in CFS Turbo and an external storage have the same name, whether to overwrite. true: overwrite. false: not overwrite (at the same time, data storage will not be released). default false when empty. * @type {boolean || null} */ this.IsOverwrite = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.Type = 'Type' in params ? params.Type : null; this.TaskName = 'TaskName' in params ? params.TaskName : null; this.TaskPath = 'TaskPath' in params ? params.TaskPath : null; this.DataFlowId = 'DataFlowId' in params ? params.DataFlowId : null; this.IsOverwrite = 'IsOverwrite' in params ? params.IsOverwrite : 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, 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.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; } } /** * ModifyDataFlow response structure. * @class */ class ModifyDataFlowResponse extends AbstractModel { constructor(){ super(); /** * Data flow manage ID. * @type {string || null} */ this.DataFlowId = 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.DataFlowId = 'DataFlowId' in params ? params.DataFlowId : null; 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, 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.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(); /** * Snapshot ID, which can be obtained by querying through the [DescribeCfsSnapshots](https://www.tencentcloud.com/document/api/582/80206?from_cn_redirect=1) api. * @type {string || null} */ this.SnapshotId = null; /** * Start time, format "YYYY-MM-DD hh:MM:ss". * @type {string || null} */ this.StartTime = null; /** * End time, format "YYYY-MM-DD hh:MM:ss". * @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; } } /** * CreateLifecyclePolicyDownloadTask request structure. * @class */ class CreateLifecyclePolicyDownloadTaskRequest extends AbstractModel { constructor(){ super(); /** * Task ID * @type {string || null} */ this.TaskId = null; /** * Download file type, including FileSuccessList, FileTotalList, FileFailedList. * @type {string || null} */ this.Type = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TaskId = 'TaskId' in params ? params.TaskId : null; this.Type = 'Type' in params ? params.Type : 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. * @type {string || null} */ this.BucketName = null; /** * Source bucket region. * @type {string || null} */ this.BucketRegion = null; /** * Data source bucket address. * @type {string || null} */ this.BucketAddress = null; /** * Checklist address. * @type {string || null} */ this.ListAddress = null; /** * File system instance name. * @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; /** * Completion/Termination time. * @type {number || null} */ this.EndTime = null; /** * Migration status. 0: completed; 1: creating; 2: running; 3: terminating; 4: terminated; 5: creation failed; 6: running failure; 7: ending; 8: deleting; 9: waiting. * @type {number || null} */ this.Status = null; /** * Number of files. * @type {number || null} */ this.FileTotalCount = null; /** * Number of migrated files. * @type {number || null} */ this.FileMigratedCount = null; /** * Number of failed files in migration. * @type {number || null} */ this.FileFailedCount = null; /** * File capacity, in Byte. * @type {number || null} */ this.FileTotalSize = null; /** * Migrated file capacity in Byte. * @type {number || null} */ this.FileMigratedSize = null; /** * Capacity of failed migration files, in Byte. * @type {number || null} */ this.FileFailedSize = null; /** * Total inventory. * @type {string || null} */ this.FileTotalList = null; /** * File list completed. * @type {string || null} */ this.FileCompletedList = null; /** * Failed file list. * @type {string || null} */ this.FileFailedList = null; /** * Source bucket path. * @type {string || null} */ this.BucketPath = null; /** * Migration direction. valid values: 0 (cos migration to file system), 1 (file system migration to cos). default is 0. * @type {number || null} */ this.Direction = 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; this.Direction = 'Direction' in params ? params.Direction : null; } } /** * StopLifecycleDataTask request structure. * @class */ class StopLifecycleDataTaskRequest extends AbstractModel { constructor(){ super(); /** * Task ID. * @type {string || null} */ this.TaskId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TaskId = 'TaskId' in params ? params.TaskId : null; } } /** * 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; /** * Availability zone name, such as ap-beijing-1. see the region and availability zone list in the description [Introduction ](https://www.tencentcloud.com/zh/document/product/582/50830) * @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; } } /** * CreateLifecycleDataTask response structure. * @class */ class CreateLifecycleDataTaskResponse extends AbstractModel { constructor(){ super(); /** * Task ID. * @type {string || null} */ this.TaskId = 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.TaskId = 'TaskId' in params ? params.TaskId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ApplyPathLifecyclePolicy request structure. * @class */ class ApplyPathLifecyclePolicyRequest extends AbstractModel { constructor(){ super(); /** * Lifecycle management policy ID. * @type {string || null} */ this.LifecyclePolicyID = null; /** * List of absolute paths for directories associated with the lifecycle management policy. * @type {Array.<PathInfo> || null} */ this.Paths = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.LifecyclePolicyID = 'LifecyclePolicyID' in params ? params.LifecyclePolicyID : null; if (params.Paths) { this.Paths = new Array(); for (let z in params.Paths) { let obj = new PathInfo(); obj.deserialize(params.Paths[z]); this.Paths.push(obj); } } } } /** * BindAutoSnapshotPolicy request structure. * @class */ class BindAutoSnapshotPolicyRequest extends AbstractModel { constructor(){ super(); /** * List of file system ids to be unbound, separated by ",". file system ids can be obtained by querying the file system list through the [DescribeCfsFileSystems](https://www.tencentcloud.com/document/product/582/38170?from_cn_redirect=1) api. * @type {string || null} */ this.AutoSnapshotPolicyId = null; /** * Unbound snapshot policy ID, which can be obtained by querying through the [DescribeAutoSnapshotPolicies](https://www.tencentcloud.com/document/api/582/80208?from_cn_redirect=1) api. * @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, which can be obtained by querying the file system list; [DescribeCfsFileSystems](https://www.tencentcloud.com/document/product/582/38170?from_cn_redirect=1). * @type {string || null} */ this.FileSystemId = null; /** * Threshold for triggering scaling. Value range: 10-90 * @type {number || null} */ this.ScaleUpThreshold = null; /** * Target threshold after expansion. value range: 10-90. the value must be less than ScaleUpThreshold. * @type {number || null} */ this.TargetThreshold = null; /** * Rule status 0: turn off, 1: turn on; keep the original status if not specified. * @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, which can be obtained by querying the file system list; [DescribeCfsFileSystems](https://www.tencentcloud.com/document/product/582/38170?from_cn_redirect=1). * @type {string || null} */ this.FileSystemId = null; /** * Target capacity after scale-out (unit GiB). * @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(); /** * Total number of migration tasks. * @type {number || null} */ this.TotalCount = null; /** * Migration task details * @type {Array.<MigrationTaskInfo> || null} */ this.MigrationTasks = 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.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. you can obtain the ID by querying the file system list through the [describecfsfilesystems](https://www.tencentcloud.com/document/api/582/38170?from_cn_redirect=1) api. * @type {string || null} */ this.FileSystemId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; } } /** * CreateDataFlow response structure. * @class */ class CreateDataFlowResponse extends AbstractModel { constructor(){ super(); /** * Data flow manage ID. * @type {string || null} */ this.DataFlowId = 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.DataFlowId = 'DataFlowId' in params ? params.DataFlowId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * SignUpCfsService request structure. * @class */ class SignUpCfsServiceRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * 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, 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.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 the periodic snapshot function is activated; 1 indicates activated, 0 indicates inactive. * @type {number || null} */ this.IsActivated = null; /** * Next time to trigger snapshot * @type {string || null} */ this.NextActiveTime = null; /** * Snapshot policy status. available represents normal status. only status here. * @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; /** * Snapshot retention time for cross-region replication, in days. * @type {number || null} */ this.CrossRegionsAliveDays = null; /** * Snapshot policy tag. * @type {Array.<TagInfo> || null} */ this.Tags = 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; this.CrossRegionsAliveDays = 'CrossRegionsAliveDays' in params ? params.CrossRegionsAliveDays : 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); } } } } /** * CreateLifecyclePolicyDownloadTask response structure. * @class */ class CreateLifecyclePolicyDownloadTaskResponse extends AbstractModel { constructor(){ super(); /** * Download path. * @type {string || null} */ this.DownloadAddress = 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.DownloadAddress = 'DownloadAddress' in params ? params.DownloadAddress : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeCfsRules request structure. * @class */ class DescribeCfsRulesRequest extends AbstractModel { constructor(){ super(); /** * Permission group ID, which can be obtained through the api [DescribeCfsPGroups](https://www.tencentcloud.com/document/api/582/38157?from_cn_redirect=1). * @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. obtain it by querying the file system interface [DescribeCfsFileSystems ](https://www.tencentcloud.com/zh/document/product/582/34514) * @type {string || null} */ this.FileSystemId = null; /** * User-Defined file system name, alphanumeric chinese characters or _,- within 64 bytes. at least one of them or CreationToken must be provided. * @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, which can be obtained through the api [DescribeCfsPGroups](https://www.tencentcloud.com/document/api/582/38157?from_cn_redirect=1). * @type {string || null} */ this.PGroupId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PGroupId = 'PGroupId' in params ? params.PGroupId : null; } } /** * DoDirectoryOperation response structure. * @class */ class DoDirectoryOperationResponse extends AbstractModel { constructor(){ super(); /** * 1: success 0: failure. for the create directory operation, 1 indicates successful creation, 0 indicates creation failed. for the confirm directory existence operation, 1 indicates the directory exists, 0 indicates the directory does not exist. in addition, if the directory already exists during the create directory operation, it will also return creation succeeded. * @type {number || null} */ this.Result = 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.Result = 'Result' in params ? params.Result : null; this.RequestId = 'RequestId' in params ? params.RequestId : 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, 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.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; } } /** * DescribeLifecyclePolicies request structure. * @class */ class DescribeLifecyclePoliciesRequest extends AbstractModel { constructor(){ super(); /** * Lifecycle management policy name. * @type {string || null} */ this.LifecyclePolicyName = null; /** * Number of lifecycle management policies per page. * @type {number || null} */ this.PageSize = null; /** * Page number of the list. * @type {number || null} */ this.PageNumber = null; /** * File system ID. * @type {string || null} */ this.FileSystemId = null; /** * Lifecycle management policy ID. * @type {string || null} */ this.LifecyclePolicyID = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.LifecyclePolicyName = 'LifecyclePolicyName' in params ? params.LifecyclePolicyName : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.PageNumber = 'PageNumber' in params ? params.PageNumber : null; this.FileSystemId = 'FileSystemId' in params ? params.FileSystemId : null; this.LifecyclePolicyID = 'LifecyclePolicyID' in params ? params.LifecyclePolicyID : null; } } /** * DeleteAutoSnapshotPolicy request structure. * @class */ class DeleteAutoSnapshotPolicyRequest extends AbstractModel { constructor(){ super(); /** * Snapshot policy ID, which can be obtained by querying the snapshot policy interface through the [DescribeAutoSnapshotPolicies](https://www.tencentcloud.com/document/api/582/80208?from_cn_redirect=1) api. * @type {string || null} */ this.AutoSnapshotPolicyId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AutoSnapshotPolicyId = 'AutoSnapshotPolicyId' in params ? params.AutoSnapshotPolicyId : null; } } /** * CreateLifecyclePolicy response structure. * @class */ class CreateLifecyclePolicyResponse extends AbstractModel { constructor(){ super(); /** * Lifecycle management policy ID. * @type {string || null} */ this.LifecyclePolicyID = 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.LifecyclePolicyID = 'LifecyclePolicyID' in params ? params.LifecyclePolicyID : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * UpdateCfsRule request structure. * @class */ class UpdateCfsRuleRequest extends AbstractModel { constructor(){ super(); /** * Permission group ID, which can be obtained through the api [DescribeCfsPGroups](https://www.tencentcloud.com/document/api/582/38157?from_cn_redirect=1). * @type {string || null} */ this.PGroupId = null; /** * Rule ID, which can be obtained through the [DescribeCfsRules](https://www