# frozen_string_literal: true
# Copyright (c) 2017-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.
module TencentCloud
module Cfs
module V20190719
# 快照策略信息
class AutoSnapshotPolicyInfo < TencentCloud::Common::AbstractModel
# @param AutoSnapshotPolicyId: 快照策略ID
# @type AutoSnapshotPolicyId: String
# @param PolicyName: 快照策略ID
# @type PolicyName: String
# @param CreationTime: 快照策略创建时间
# @type CreationTime: String
# @param FileSystemNums: 关联的文件系统个数
# @type FileSystemNums: Integer
# @param DayOfWeek: 快照定期备份在一星期哪一天,该参数与DayOfMonth,IntervalDays互斥
# @type DayOfWeek: String
# @param Hour: 快照定期备份在一天的哪一小时
# @type Hour: String
# @param IsActivated: 是否激活定期快照功能,1代表已激活,0代表未激活
# @type IsActivated: Integer
# @param NextActiveTime: 下一次触发快照时间
# @type NextActiveTime: String
# @param Status: 快照策略状态,1代表快照策略状态正常。这里只有一种状态
# @type Status: String
# @param AppId: 帐号ID
# @type AppId: Integer
# @param AliveDays: 保留时间
# @type AliveDays: Integer
# @param RegionName: 地域
# @type RegionName: String
# @param FileSystems: 文件系统信息
# @type FileSystems: Array
# @param DayOfMonth: 快照定期备份在一个月的某个时间;该参数与DayOfWeek,IntervalDays互斥
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DayOfMonth: String
# @param IntervalDays: 快照定期间隔天数,1-365 天;该参数与DayOfMonth,DayOfWeek互斥
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IntervalDays: Integer
# @param CrossRegionsAliveDays: 跨地域复制的快照保留时间,单位天
# @type CrossRegionsAliveDays: Integer
attr_accessor :AutoSnapshotPolicyId, :PolicyName, :CreationTime, :FileSystemNums, :DayOfWeek, :Hour, :IsActivated, :NextActiveTime, :Status, :AppId, :AliveDays, :RegionName, :FileSystems, :DayOfMonth, :IntervalDays, :CrossRegionsAliveDays
def initialize(autosnapshotpolicyid=nil, policyname=nil, creationtime=nil, filesystemnums=nil, dayofweek=nil, hour=nil, isactivated=nil, nextactivetime=nil, status=nil, appid=nil, alivedays=nil, regionname=nil, filesystems=nil, dayofmonth=nil, intervaldays=nil, crossregionsalivedays=nil)
@AutoSnapshotPolicyId = autosnapshotpolicyid
@PolicyName = policyname
@CreationTime = creationtime
@FileSystemNums = filesystemnums
@DayOfWeek = dayofweek
@Hour = hour
@IsActivated = isactivated
@NextActiveTime = nextactivetime
@Status = status
@AppId = appid
@AliveDays = alivedays
@RegionName = regionname
@FileSystems = filesystems
@DayOfMonth = dayofmonth
@IntervalDays = intervaldays
@CrossRegionsAliveDays = crossregionsalivedays
end
def deserialize(params)
@AutoSnapshotPolicyId = params['AutoSnapshotPolicyId']
@PolicyName = params['PolicyName']
@CreationTime = params['CreationTime']
@FileSystemNums = params['FileSystemNums']
@DayOfWeek = params['DayOfWeek']
@Hour = params['Hour']
@IsActivated = params['IsActivated']
@NextActiveTime = params['NextActiveTime']
@Status = params['Status']
@AppId = params['AppId']
@AliveDays = params['AliveDays']
@RegionName = params['RegionName']
unless params['FileSystems'].nil?
@FileSystems = []
params['FileSystems'].each do |i|
filesystembypolicy_tmp = FileSystemByPolicy.new
filesystembypolicy_tmp.deserialize(i)
@FileSystems << filesystembypolicy_tmp
end
end
@DayOfMonth = params['DayOfMonth']
@IntervalDays = params['IntervalDays']
@CrossRegionsAliveDays = params['CrossRegionsAliveDays']
end
end
# 版本控制-协议详情
class AvailableProtoStatus < TencentCloud::Common::AbstractModel
# @param SaleStatus: 售卖状态。可选值有 sale_out 售罄、saling可售、no_saling不可销售
# @type SaleStatus: String
# @param Protocol: 协议类型。可选值有 NFS、CIFS
# @type Protocol: String
attr_accessor :SaleStatus, :Protocol
def initialize(salestatus=nil, protocol=nil)
@SaleStatus = salestatus
@Protocol = protocol
end
def deserialize(params)
@SaleStatus = params['SaleStatus']
@Protocol = params['Protocol']
end
end
# 版本控制-区域数组
class AvailableRegion < TencentCloud::Common::AbstractModel
# @param Region: 区域名称,如“ap-beijing”
# @type Region: String
# @param RegionName: 区域名称,如“bj”
# @type RegionName: String
# @param RegionStatus: 区域可用情况,当区域内至少有一个可用区处于可售状态时,取值为AVAILABLE,否则为UNAVAILABLE
# @type RegionStatus: String
# @param Zones: 可用区数组
# @type Zones: Array
# @param RegionCnName: 区域中文名称,如“广州”
# @type RegionCnName: String
attr_accessor :Region, :RegionName, :RegionStatus, :Zones, :RegionCnName
def initialize(region=nil, regionname=nil, regionstatus=nil, zones=nil, regioncnname=nil)
@Region = region
@RegionName = regionname
@RegionStatus = regionstatus
@Zones = zones
@RegionCnName = regioncnname
end
def deserialize(params)
@Region = params['Region']
@RegionName = params['RegionName']
@RegionStatus = params['RegionStatus']
unless params['Zones'].nil?
@Zones = []
params['Zones'].each do |i|
availablezone_tmp = AvailableZone.new
availablezone_tmp.deserialize(i)
@Zones << availablezone_tmp
end
end
@RegionCnName = params['RegionCnName']
end
end
# 版本控制-类型数组
class AvailableType < TencentCloud::Common::AbstractModel
# @param Protocols: 协议与售卖详情
# @type Protocols: Array
# @param Type: 存储类型。返回值中 SD 为通用标准型存储, HP为通用性能型存储, TB为Turbo标准型, TP 为Turbo性能型。
# @type Type: String
# @param Prepayment: 是否支持预付费。返回值中 true 为支持、false 为不支持
# @type Prepayment: Boolean
attr_accessor :Protocols, :Type, :Prepayment
def initialize(protocols=nil, type=nil, prepayment=nil)
@Protocols = protocols
@Type = type
@Prepayment = prepayment
end
def deserialize(params)
unless params['Protocols'].nil?
@Protocols = []
params['Protocols'].each do |i|
availableprotostatus_tmp = AvailableProtoStatus.new
availableprotostatus_tmp.deserialize(i)
@Protocols << availableprotostatus_tmp
end
end
@Type = params['Type']
@Prepayment = params['Prepayment']
end
end
# 版本控制-可用区数组
class AvailableZone < TencentCloud::Common::AbstractModel
# @param Zone: 可用区名称
# @type Zone: String
# @param ZoneId: 可用区ID
# @type ZoneId: Integer
# @param ZoneCnName: 可用区中文名称
# @type ZoneCnName: String
# @param Types: Type数组
# @type Types: Array
# @param ZoneName: 可用区中英文名称
# @type ZoneName: String
attr_accessor :Zone, :ZoneId, :ZoneCnName, :Types, :ZoneName
def initialize(zone=nil, zoneid=nil, zonecnname=nil, types=nil, zonename=nil)
@Zone = zone
@ZoneId = zoneid
@ZoneCnName = zonecnname
@Types = types
@ZoneName = zonename
end
def deserialize(params)
@Zone = params['Zone']
@ZoneId = params['ZoneId']
@ZoneCnName = params['ZoneCnName']
unless params['Types'].nil?
@Types = []
params['Types'].each do |i|
availabletype_tmp = AvailableType.new
availabletype_tmp.deserialize(i)
@Types << availabletype_tmp
end
end
@ZoneName = params['ZoneName']
end
end
# BindAutoSnapshotPolicy请求参数结构体
class BindAutoSnapshotPolicyRequest < TencentCloud::Common::AbstractModel
# @param AutoSnapshotPolicyId: 快照策略ID
# @type AutoSnapshotPolicyId: String
# @param FileSystemIds: 文件系统列表
# @type FileSystemIds: String
attr_accessor :AutoSnapshotPolicyId, :FileSystemIds
def initialize(autosnapshotpolicyid=nil, filesystemids=nil)
@AutoSnapshotPolicyId = autosnapshotpolicyid
@FileSystemIds = filesystemids
end
def deserialize(params)
@AutoSnapshotPolicyId = params['AutoSnapshotPolicyId']
@FileSystemIds = params['FileSystemIds']
end
end
# BindAutoSnapshotPolicy返回参数结构体
class BindAutoSnapshotPolicyResponse < TencentCloud::Common::AbstractModel
# @param AutoSnapshotPolicyId: 快照策略ID
# @type AutoSnapshotPolicyId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AutoSnapshotPolicyId, :RequestId
def initialize(autosnapshotpolicyid=nil, requestid=nil)
@AutoSnapshotPolicyId = autosnapshotpolicyid
@RequestId = requestid
end
def deserialize(params)
@AutoSnapshotPolicyId = params['AutoSnapshotPolicyId']
@RequestId = params['RequestId']
end
end
# 对象存储桶
class BucketInfo < TencentCloud::Common::AbstractModel
# @param Name: 桶名称
# @type Name: String
# @param Region: 桶所在地域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Region: String
attr_accessor :Name, :Region
def initialize(name=nil, region=nil)
@Name = name
@Region = region
end
def deserialize(params)
@Name = params['Name']
@Region = params['Region']
end
end
# CreateAutoSnapshotPolicy请求参数结构体
class CreateAutoSnapshotPolicyRequest < TencentCloud::Common::AbstractModel
# @param Hour: 快照重复时间点,0-23
# @type Hour: String
# @param PolicyName: 策略名称
# @type PolicyName: String
# @param DayOfWeek: 快照重复日期,星期一到星期日。 1代表星期一、7代表星期天
# @type DayOfWeek: String
# @param AliveDays: 快照保留时长,单位天
# @type AliveDays: Integer
# @param DayOfMonth: 快照按月重复,每月1-31号,选择一天,每月将在这一天自动创建快照。
# @type DayOfMonth: String
# @param IntervalDays: 间隔天数
# @type IntervalDays: Integer
attr_accessor :Hour, :PolicyName, :DayOfWeek, :AliveDays, :DayOfMonth, :IntervalDays
def initialize(hour=nil, policyname=nil, dayofweek=nil, alivedays=nil, dayofmonth=nil, intervaldays=nil)
@Hour = hour
@PolicyName = policyname
@DayOfWeek = dayofweek
@AliveDays = alivedays
@DayOfMonth = dayofmonth
@IntervalDays = intervaldays
end
def deserialize(params)
@Hour = params['Hour']
@PolicyName = params['PolicyName']
@DayOfWeek = params['DayOfWeek']
@AliveDays = params['AliveDays']
@DayOfMonth = params['DayOfMonth']
@IntervalDays = params['IntervalDays']
end
end
# CreateAutoSnapshotPolicy返回参数结构体
class CreateAutoSnapshotPolicyResponse < TencentCloud::Common::AbstractModel
# @param AutoSnapshotPolicyId: 快照策略ID
# @type AutoSnapshotPolicyId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AutoSnapshotPolicyId, :RequestId
def initialize(autosnapshotpolicyid=nil, requestid=nil)
@AutoSnapshotPolicyId = autosnapshotpolicyid
@RequestId = requestid
end
def deserialize(params)
@AutoSnapshotPolicyId = params['AutoSnapshotPolicyId']
@RequestId = params['RequestId']
end
end
# CreateCfsFileSystem请求参数结构体
class CreateCfsFileSystemRequest < TencentCloud::Common::AbstractModel
# @param Zone: 可用区名称,例如ap-beijing-1,请参考 [概览](https://cloud.tencent.com/document/product/582/13225) 文档中的地域与可用区列表
# @type Zone: String
# @param NetInterface: 网络类型,可选值为 VPC,CCN;其中 VPC 为私有网络, CCN 为云联网。通用标准型/性能型请选择VPC,Turbo标准型/性能型请选择CCN。
# @type NetInterface: String
# @param PGroupId: 权限组 ID
# @type PGroupId: String
# @param Protocol: 文件系统协议类型, 值为 NFS、CIFS、TURBO ; 若留空则默认为 NFS协议,turbo系列必须选择turbo,不支持NFS、CIFS
# @type Protocol: String
# @param StorageType: 文件系统存储类型,默认值为 SD ;其中 SD 为通用标准型存储, HP为通用性能型存储, TB为Turbo标准型, TP 为Turbo性能型。
# @type StorageType: String
# @param VpcId: 私有网络(VPC) ID,若网络类型选择的是VPC,该字段为必填。
# @type VpcId: String
# @param SubnetId: 子网 ID,若网络类型选择的是VPC,该字段为必填。
# @type SubnetId: String
# @param MountIP: 指定IP地址,仅VPC网络支持;若不填写、将在该子网下随机分配 IP,Turbo系列当前不支持指定
# @type MountIP: String
# @param FsName: 用户自定义文件系统名称
# @type FsName: String
# @param ResourceTags: 文件系统标签
# @type ResourceTags: Array
# @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。用于保证请求幂等性的字符串失效时间为2小时。
# @type ClientToken: String
# @param CcnId: 云联网ID, 若网络类型选择的是CCN,该字段为必填
# @type CcnId: String
# @param CidrBlock: 云联网中CFS使用的网段, 若网络类型选择的是Ccn,该字段为必填,且不能和Ccn中已经绑定的网段冲突
# @type CidrBlock: String
# @param Capacity: 文件系统容量,turbo系列必填,单位为GiB。 turbo标准型单位GB,起售20TiB,即20480 GiB;扩容步长20TiB,即20480 GiB。turbo性能型起售10TiB,即10240 GiB;扩容步长10TiB,10240 GiB。
# @type Capacity: Integer
# @param SnapshotId: 文件系统快照ID
# @type SnapshotId: String
# @param AutoSnapshotPolicyId: 定期快照策略ID
# @type AutoSnapshotPolicyId: String
# @param EnableAutoScaleUp: 是否开启默认扩容,仅Turbo类型文件存储支持
# @type EnableAutoScaleUp: Boolean
attr_accessor :Zone, :NetInterface, :PGroupId, :Protocol, :StorageType, :VpcId, :SubnetId, :MountIP, :FsName, :ResourceTags, :ClientToken, :CcnId, :CidrBlock, :Capacity, :SnapshotId, :AutoSnapshotPolicyId, :EnableAutoScaleUp
def initialize(zone=nil, netinterface=nil, pgroupid=nil, protocol=nil, storagetype=nil, vpcid=nil, subnetid=nil, mountip=nil, fsname=nil, resourcetags=nil, clienttoken=nil, ccnid=nil, cidrblock=nil, capacity=nil, snapshotid=nil, autosnapshotpolicyid=nil, enableautoscaleup=nil)
@Zone = zone
@NetInterface = netinterface
@PGroupId = pgroupid
@Protocol = protocol
@StorageType = storagetype
@VpcId = vpcid
@SubnetId = subnetid
@MountIP = mountip
@FsName = fsname
@ResourceTags = resourcetags
@ClientToken = clienttoken
@CcnId = ccnid
@CidrBlock = cidrblock
@Capacity = capacity
@SnapshotId = snapshotid
@AutoSnapshotPolicyId = autosnapshotpolicyid
@EnableAutoScaleUp = enableautoscaleup
end
def deserialize(params)
@Zone = params['Zone']
@NetInterface = params['NetInterface']
@PGroupId = params['PGroupId']
@Protocol = params['Protocol']
@StorageType = params['StorageType']
@VpcId = params['VpcId']
@SubnetId = params['SubnetId']
@MountIP = params['MountIP']
@FsName = params['FsName']
unless params['ResourceTags'].nil?
@ResourceTags = []
params['ResourceTags'].each do |i|
taginfo_tmp = TagInfo.new
taginfo_tmp.deserialize(i)
@ResourceTags << taginfo_tmp
end
end
@ClientToken = params['ClientToken']
@CcnId = params['CcnId']
@CidrBlock = params['CidrBlock']
@Capacity = params['Capacity']
@SnapshotId = params['SnapshotId']
@AutoSnapshotPolicyId = params['AutoSnapshotPolicyId']
@EnableAutoScaleUp = params['EnableAutoScaleUp']
end
end
# CreateCfsFileSystem返回参数结构体
class CreateCfsFileSystemResponse < TencentCloud::Common::AbstractModel
# @param CreationTime: 文件系统创建时间
# @type CreationTime: String
# @param CreationToken: 用户自定义文件系统名称
# @type CreationToken: String
# @param FileSystemId: 文件系统 ID
# @type FileSystemId: String
# @param LifeCycleState: 文件系统状态,可能出现状态包括:“creating” 创建中, “create_failed” 创建失败, “available” 可用, “unserviced” 不可用, “upgrading” 升级中, “deleting” 删除中。
# @type LifeCycleState: String
# @param SizeByte: 文件系统已使用容量大小,单位为 Byte
# @type SizeByte: Integer
# @param ZoneId: 可用区 ID
# @type ZoneId: Integer
# @param FsName: 用户自定义文件系统名称
# @type FsName: String
# @param Encrypted: 文件系统是否加密
# @type Encrypted: Boolean
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CreationTime, :CreationToken, :FileSystemId, :LifeCycleState, :SizeByte, :ZoneId, :FsName, :Encrypted, :RequestId
def initialize(creationtime=nil, creationtoken=nil, filesystemid=nil, lifecyclestate=nil, sizebyte=nil, zoneid=nil, fsname=nil, encrypted=nil, requestid=nil)
@CreationTime = creationtime
@CreationToken = creationtoken
@FileSystemId = filesystemid
@LifeCycleState = lifecyclestate
@SizeByte = sizebyte
@ZoneId = zoneid
@FsName = fsname
@Encrypted = encrypted
@RequestId = requestid
end
def deserialize(params)
@CreationTime = params['CreationTime']
@CreationToken = params['CreationToken']
@FileSystemId = params['FileSystemId']
@LifeCycleState = params['LifeCycleState']
@SizeByte = params['SizeByte']
@ZoneId = params['ZoneId']
@FsName = params['FsName']
@Encrypted = params['Encrypted']
@RequestId = params['RequestId']
end
end
# CreateCfsPGroup请求参数结构体
class CreateCfsPGroupRequest < TencentCloud::Common::AbstractModel
# @param Name: 权限组名称,1-64个字符且只能为中文,字母,数字,下划线或横线
# @type Name: String
# @param DescInfo: 权限组描述信息,1-255个字符
# @type DescInfo: String
attr_accessor :Name, :DescInfo
def initialize(name=nil, descinfo=nil)
@Name = name
@DescInfo = descinfo
end
def deserialize(params)
@Name = params['Name']
@DescInfo = params['DescInfo']
end
end
# CreateCfsPGroup返回参数结构体
class CreateCfsPGroupResponse < TencentCloud::Common::AbstractModel
# @param PGroupId: 权限组 ID
# @type PGroupId: String
# @param Name: 权限组名字
# @type Name: String
# @param DescInfo: 权限组描述信息
# @type DescInfo: String
# @param BindCfsNum: 已经与该权限组绑定的文件系统个数
# @type BindCfsNum: Integer
# @param CDate: 权限组创建时间
# @type CDate: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :PGroupId, :Name, :DescInfo, :BindCfsNum, :CDate, :RequestId
def initialize(pgroupid=nil, name=nil, descinfo=nil, bindcfsnum=nil, cdate=nil, requestid=nil)
@PGroupId = pgroupid
@Name = name
@DescInfo = descinfo
@BindCfsNum = bindcfsnum
@CDate = cdate
@RequestId = requestid
end
def deserialize(params)
@PGroupId = params['PGroupId']
@Name = params['Name']
@DescInfo = params['DescInfo']
@BindCfsNum = params['BindCfsNum']
@CDate = params['CDate']
@RequestId = params['RequestId']
end
end
# CreateCfsRule请求参数结构体
class CreateCfsRuleRequest < TencentCloud::Common::AbstractModel
# @param PGroupId: 权限组 ID
# @type PGroupId: String
# @param AuthClientIp: 可以填写单个 IP 或者单个网段,例如 10.1.10.11 或者 10.10.1.0/24。默认来访地址为*表示允许所有。同时需要注意,此处需填写 CVM 的内网 IP。
# @type AuthClientIp: String
# @param Priority: 规则优先级,参数范围1-100。 其中 1 为最高,100为最低
# @type Priority: Integer
# @param RWPermission: 读写权限, 值为 RO、RW;其中 RO 为只读,RW 为读写,不填默认为只读
# @type RWPermission: String
# @param UserPermission: 用户权限,值为 all_squash、no_all_squash、root_squash、no_root_squash。其中all_squash为所有访问用户都会被映射为匿名用户或用户组;no_all_squash为访问用户会先与本机用户匹配,匹配失败后再映射为匿名用户或用户组;root_squash为将来访的root用户映射为匿名用户或用户组;no_root_squash为来访的root用户保持root帐号权限。不填默认为root_squash。
# @type UserPermission: String
attr_accessor :PGroupId, :AuthClientIp, :Priority, :RWPermission, :UserPermission
def initialize(pgroupid=nil, authclientip=nil, priority=nil, rwpermission=nil, userpermission=nil)
@PGroupId = pgroupid
@AuthClientIp = authclientip
@Priority = priority
@RWPermission = rwpermission
@UserPermission = userpermission
end
def deserialize(params)
@PGroupId = params['PGroupId']
@AuthClientIp = params['AuthClientIp']
@Priority = params['Priority']
@RWPermission = params['RWPermission']
@UserPermission = params['UserPermission']
end
end
# CreateCfsRule返回参数结构体
class CreateCfsRuleResponse < TencentCloud::Common::AbstractModel
# @param RuleId: 规则 ID
# @type RuleId: String
# @param PGroupId: 权限组 ID
# @type PGroupId: String
# @param AuthClientIp: 客户端 IP
# @type AuthClientIp: String
# @param RWPermission: 读写权限
# @type RWPermission: String
# @param UserPermission: 用户权限
# @type UserPermission: String
# @param Priority: 优先级
# @type Priority: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RuleId, :PGroupId, :AuthClientIp, :RWPermission, :UserPermission, :Priority, :RequestId
def initialize(ruleid=nil, pgroupid=nil, authclientip=nil, rwpermission=nil, userpermission=nil, priority=nil, requestid=nil)
@RuleId = ruleid
@PGroupId = pgroupid
@AuthClientIp = authclientip
@RWPermission = rwpermission
@UserPermission = userpermission
@Priority = priority
@RequestId = requestid
end
def deserialize(params)
@RuleId = params['RuleId']
@PGroupId = params['PGroupId']
@AuthClientIp = params['AuthClientIp']
@RWPermission = params['RWPermission']
@UserPermission = params['UserPermission']
@Priority = params['Priority']
@RequestId = params['RequestId']
end
end
# CreateCfsSnapshot请求参数结构体
class CreateCfsSnapshotRequest < TencentCloud::Common::AbstractModel
# @param FileSystemId: 文件系统id
# @type FileSystemId: String
# @param SnapshotName: 快照名称
# @type SnapshotName: String
# @param ResourceTags: 快照标签
# @type ResourceTags: Array
attr_accessor :FileSystemId, :SnapshotName, :ResourceTags
def initialize(filesystemid=nil, snapshotname=nil, resourcetags=nil)
@FileSystemId = filesystemid
@SnapshotName = snapshotname
@ResourceTags = resourcetags
end
def deserialize(params)
@FileSystemId = params['FileSystemId']
@SnapshotName = params['SnapshotName']
unless params['ResourceTags'].nil?
@ResourceTags = []
params['ResourceTags'].each do |i|
taginfo_tmp = TagInfo.new
taginfo_tmp.deserialize(i)
@ResourceTags << taginfo_tmp
end
end
end
end
# CreateCfsSnapshot返回参数结构体
class CreateCfsSnapshotResponse < TencentCloud::Common::AbstractModel
# @param SnapshotId: 文件系统快照id
# @type SnapshotId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :SnapshotId, :RequestId
def initialize(snapshotid=nil, requestid=nil)
@SnapshotId = snapshotid
@RequestId = requestid
end
def deserialize(params)
@SnapshotId = params['SnapshotId']
@RequestId = params['RequestId']
end
end
# CreateMigrationTask请求参数结构体
class CreateMigrationTaskRequest < TencentCloud::Common::AbstractModel
# @param TaskName: 迁移任务名称
# @type TaskName: String
# @param MigrationType: 迁移方式标志位,默认为0。0: 桶迁移;1: 清单迁移
# @type MigrationType: Integer
# @param MigrationMode: 迁移模式,默认为0。0: 全量迁移
# @type MigrationMode: Integer
# @param SrcSecretId: 数据源账号的SecretId
# @type SrcSecretId: String
# @param SrcSecretKey: 数据源账号的SecretKey
# @type SrcSecretKey: String
# @param FileSystemId: 文件系统实例Id
# @type FileSystemId: String
# @param FsPath: 文件系统路径
# @type FsPath: String
# @param CoverType: 同名文件迁移时覆盖策略,默认为0。0: 最后修改时间优先;1: 全覆盖;2: 不覆盖
# @type CoverType: Integer
# @param SrcService: 数据源服务商。COS: 腾讯云COS,OSS: 阿里云OSS,OBS:华为云OBS
# @type SrcService: String
# @param BucketName: 数据源桶名称,名称和地址至少有一个
# @type BucketName: String
# @param BucketRegion: 数据源桶地域
# @type BucketRegion: String
# @param BucketAddress: 数据源桶地址,名称和地址至少有一个
# @type BucketAddress: String
# @param ListAddress: 清单地址,迁移方式为清单迁移时必填
# @type ListAddress: String
# @param FsName: 目标文件系统名称
# @type FsName: String
# @param BucketPath: 源桶路径,默认为/
# @type BucketPath: String
attr_accessor :TaskName, :MigrationType, :MigrationMode, :SrcSecretId, :SrcSecretKey, :FileSystemId, :FsPath, :CoverType, :SrcService, :BucketName, :BucketRegion, :BucketAddress, :ListAddress, :FsName, :BucketPath
def initialize(taskname=nil, migrationtype=nil, migrationmode=nil, srcsecretid=nil, srcsecretkey=nil, filesystemid=nil, fspath=nil, covertype=nil, srcservice=nil, bucketname=nil, bucketregion=nil, bucketaddress=nil, listaddress=nil, fsname=nil, bucketpath=nil)
@TaskName = taskname
@MigrationType = migrationtype
@MigrationMode = migrationmode
@SrcSecretId = srcsecretid
@SrcSecretKey = srcsecretkey
@FileSystemId = filesystemid
@FsPath = fspath
@CoverType = covertype
@SrcService = srcservice
@BucketName = bucketname
@BucketRegion = bucketregion
@BucketAddress = bucketaddress
@ListAddress = listaddress
@FsName = fsname
@BucketPath = bucketpath
end
def deserialize(params)
@TaskName = params['TaskName']
@MigrationType = params['MigrationType']
@MigrationMode = params['MigrationMode']
@SrcSecretId = params['SrcSecretId']
@SrcSecretKey = params['SrcSecretKey']
@FileSystemId = params['FileSystemId']
@FsPath = params['FsPath']
@CoverType = params['CoverType']
@SrcService = params['SrcService']
@BucketName = params['BucketName']
@BucketRegion = params['BucketRegion']
@BucketAddress = params['BucketAddress']
@ListAddress = params['ListAddress']
@FsName = params['FsName']
@BucketPath = params['BucketPath']
end
end
# CreateMigrationTask返回参数结构体
class CreateMigrationTaskResponse < TencentCloud::Common::AbstractModel
# @param TaskId: 迁移任务Id
# @type TaskId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TaskId, :RequestId
def initialize(taskid=nil, requestid=nil)
@TaskId = taskid
@RequestId = requestid
end
def deserialize(params)
@TaskId = params['TaskId']
@RequestId = params['RequestId']
end
end
# DeleteAutoSnapshotPolicy请求参数结构体
class DeleteAutoSnapshotPolicyRequest < TencentCloud::Common::AbstractModel
# @param AutoSnapshotPolicyId: 快照策略ID
# @type AutoSnapshotPolicyId: String
attr_accessor :AutoSnapshotPolicyId
def initialize(autosnapshotpolicyid=nil)
@AutoSnapshotPolicyId = autosnapshotpolicyid
end
def deserialize(params)
@AutoSnapshotPolicyId = params['AutoSnapshotPolicyId']
end
end
# DeleteAutoSnapshotPolicy返回参数结构体
class DeleteAutoSnapshotPolicyResponse < TencentCloud::Common::AbstractModel
# @param AutoSnapshotPolicyId: 快照策略ID
# @type AutoSnapshotPolicyId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AutoSnapshotPolicyId, :RequestId
def initialize(autosnapshotpolicyid=nil, requestid=nil)
@AutoSnapshotPolicyId = autosnapshotpolicyid
@RequestId = requestid
end
def deserialize(params)
@AutoSnapshotPolicyId = params['AutoSnapshotPolicyId']
@RequestId = params['RequestId']
end
end
# DeleteCfsFileSystem请求参数结构体
class DeleteCfsFileSystemRequest < TencentCloud::Common::AbstractModel
# @param FileSystemId: 文件系统 ID。说明,进行删除文件系统操作前需要先调用 DeleteMountTarget 接口删除该文件系统的挂载点,否则会删除失败。
# @type FileSystemId: String
attr_accessor :FileSystemId
def initialize(filesystemid=nil)
@FileSystemId = filesystemid
end
def deserialize(params)
@FileSystemId = params['FileSystemId']
end
end
# DeleteCfsFileSystem返回参数结构体
class DeleteCfsFileSystemResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# DeleteCfsPGroup请求参数结构体
class DeleteCfsPGroupRequest < TencentCloud::Common::AbstractModel
# @param PGroupId: 权限组 ID
# @type PGroupId: String
attr_accessor :PGroupId
def initialize(pgroupid=nil)
@PGroupId = pgroupid
end
def deserialize(params)
@PGroupId = params['PGroupId']
end
end
# DeleteCfsPGroup返回参数结构体
class DeleteCfsPGroupResponse < TencentCloud::Common::AbstractModel
# @param PGroupId: 权限组 ID
# @type PGroupId: String
# @param AppId: 用户 ID
# @type AppId: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :PGroupId, :AppId, :RequestId
def initialize(pgroupid=nil, appid=nil, requestid=nil)
@PGroupId = pgroupid
@AppId = appid
@RequestId = requestid
end
def deserialize(params)
@PGroupId = params['PGroupId']
@AppId = params['AppId']
@RequestId = params['RequestId']
end
end
# DeleteCfsRule请求参数结构体
class DeleteCfsRuleRequest < TencentCloud::Common::AbstractModel
# @param PGroupId: 权限组 ID
# @type PGroupId: String
# @param RuleId: 规则 ID
# @type RuleId: String
attr_accessor :PGroupId, :RuleId
def initialize(pgroupid=nil, ruleid=nil)
@PGroupId = pgroupid
@RuleId = ruleid
end
def deserialize(params)
@PGroupId = params['PGroupId']
@RuleId = params['RuleId']
end
end
# DeleteCfsRule返回参数结构体
class DeleteCfsRuleResponse < TencentCloud::Common::AbstractModel
# @param RuleId: 规则 ID
# @type RuleId: String
# @param PGroupId: 权限组 ID
# @type PGroupId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RuleId, :PGroupId, :RequestId
def initialize(ruleid=nil, pgroupid=nil, requestid=nil)
@RuleId = ruleid
@PGroupId = pgroupid
@RequestId = requestid
end
def deserialize(params)
@RuleId = params['RuleId']
@PGroupId = params['PGroupId']
@RequestId = params['RequestId']
end
end
# DeleteCfsSnapshot请求参数结构体
class DeleteCfsSnapshotRequest < TencentCloud::Common::AbstractModel
# @param SnapshotId: 文件系统快照id
# @type SnapshotId: String
# @param SnapshotIds: 需要删除的文件文件系统快照ID 列表,快照ID,跟ID列表至少填一项
# @type SnapshotIds: Array
attr_accessor :SnapshotId, :SnapshotIds
def initialize(snapshotid=nil, snapshotids=nil)
@SnapshotId = snapshotid
@SnapshotIds = snapshotids
end
def deserialize(params)
@SnapshotId = params['SnapshotId']
@SnapshotIds = params['SnapshotIds']
end
end
# DeleteCfsSnapshot返回参数结构体
class DeleteCfsSnapshotResponse < TencentCloud::Common::AbstractModel
# @param SnapshotId: 文件系统ID
# @type SnapshotId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :SnapshotId, :RequestId
def initialize(snapshotid=nil, requestid=nil)
@SnapshotId = snapshotid
@RequestId = requestid
end
def deserialize(params)
@SnapshotId = params['SnapshotId']
@RequestId = params['RequestId']
end
end
# DeleteMigrationTask请求参数结构体
class DeleteMigrationTaskRequest < TencentCloud::Common::AbstractModel
# @param TaskId: 迁移任务ID
# @type TaskId: String
attr_accessor :TaskId
def initialize(taskid=nil)
@TaskId = taskid
end
def deserialize(params)
@TaskId = params['TaskId']
end
end
# DeleteMigrationTask返回参数结构体
class DeleteMigrationTaskResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# DeleteMountTarget请求参数结构体
class DeleteMountTargetRequest < TencentCloud::Common::AbstractModel
# @param FileSystemId: 文件系统 ID
# @type FileSystemId: String
# @param MountTargetId: 挂载点 ID
# @type MountTargetId: String
attr_accessor :FileSystemId, :MountTargetId
def initialize(filesystemid=nil, mounttargetid=nil)
@FileSystemId = filesystemid
@MountTargetId = mounttargetid
end
def deserialize(params)
@FileSystemId = params['FileSystemId']
@MountTargetId = params['MountTargetId']
end
end
# DeleteMountTarget返回参数结构体
class DeleteMountTargetResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# DeleteUserQuota请求参数结构体
class DeleteUserQuotaRequest < TencentCloud::Common::AbstractModel
# @param FileSystemId: 文件系统 ID
# @type FileSystemId: String
# @param UserType: 指定配额类型,包括Uid、Gid
# @type UserType: String
# @param UserId: UID/GID信息
# @type UserId: String
attr_accessor :FileSystemId, :UserType, :UserId
def initialize(filesystemid=nil, usertype=nil, userid=nil)
@FileSystemId = filesystemid
@UserType = usertype
@UserId = userid
end
def deserialize(params)
@FileSystemId = params['FileSystemId']
@UserType = params['UserType']
@UserId = params['UserId']
end
end
# DeleteUserQuota返回参数结构体
class DeleteUserQuotaResponse < TencentCloud::Common::AbstractModel
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# DescribeAutoSnapshotPolicies请求参数结构体
class DescribeAutoSnapshotPoliciesRequest < TencentCloud::Common::AbstractModel
# @param AutoSnapshotPolicyId: 快照策略ID
# @type AutoSnapshotPolicyId: String
# @param Offset: 分页码
# @type Offset: Integer
# @param Limit: 页面长
# @type Limit: Integer
# @param Filters: 过滤条件
# @type Filters: Array
# @param Order: 升序,降序
# @type Order: String
# @param OrderField: 排序字段
# @type OrderField: String
attr_accessor :AutoSnapshotPolicyId, :Offset, :Limit, :Filters, :Order, :OrderField
def initialize(autosnapshotpolicyid=nil, offset=nil, limit=nil, filters=nil, order=nil, orderfield=nil)
@AutoSnapshotPolicyId = autosnapshotpolicyid
@Offset = offset
@Limit = limit
@Filters = filters
@Order = order
@OrderField = orderfield
end
def deserialize(params)
@AutoSnapshotPolicyId = params['AutoSnapshotPolicyId']
@Offset = params['Offset']
@Limit = params['Limit']
unless params['Filters'].nil?
@Filters = []
params['Filters'].each do |i|
filter_tmp = Filter.new
filter_tmp.deserialize(i)
@Filters << filter_tmp
end
end
@Order = params['Order']
@OrderField = params['OrderField']
end
end
# DescribeAutoSnapshotPolicies返回参数结构体
class DescribeAutoSnapshotPoliciesResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 快照策略总个数
# @type TotalCount: Integer
# @param AutoSnapshotPolicies: 快照策略信息
# @type AutoSnapshotPolicies: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalCount, :AutoSnapshotPolicies, :RequestId
def initialize(totalcount=nil, autosnapshotpolicies=nil, requestid=nil)
@TotalCount = totalcount
@AutoSnapshotPolicies = autosnapshotpolicies
@RequestId = requestid
end
def deserialize(params)
@TotalCount = params['TotalCount']
unless params['AutoSnapshotPolicies'].nil?
@AutoSnapshotPolicies = []
params['AutoSnapshotPolicies'].each do |i|
autosnapshotpolicyinfo_tmp = AutoSnapshotPolicyInfo.new
autosnapshotpolicyinfo_tmp.deserialize(i)
@AutoSnapshotPolicies << autosnapshotpolicyinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeAvailableZoneInfo请求参数结构体
class DescribeAvailableZoneInfoRequest < TencentCloud::Common::AbstractModel
def initialize()
end
def deserialize(params)
end
end
# DescribeAvailableZoneInfo返回参数结构体
class DescribeAvailableZoneInfoResponse < TencentCloud::Common::AbstractModel
# @param RegionZones: 各可用区的资源售卖情况以及支持的存储类型、存储协议等信息
# @type RegionZones: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RegionZones, :RequestId
def initialize(regionzones=nil, requestid=nil)
@RegionZones = regionzones
@RequestId = requestid
end
def deserialize(params)
unless params['RegionZones'].nil?
@RegionZones = []
params['RegionZones'].each do |i|
availableregion_tmp = AvailableRegion.new
availableregion_tmp.deserialize(i)
@RegionZones << availableregion_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeBucketList请求参数结构体
class DescribeBucketListRequest < TencentCloud::Common::AbstractModel
# @param SrcService: 数据源服务商。COS: 腾讯云COS,OSS: 阿里云OSS,OBS:华为云OBS
# @type SrcService: String
# @param SrcSecretId: 数据源账号的SecretId
# @type SrcSecretId: String
# @param SrcSecretKey: 数据源账号的SecretKey
# @type SrcSecretKey: String
attr_accessor :SrcService, :SrcSecretId, :SrcSecretKey
def initialize(srcservice=nil, srcsecretid=nil, srcsecretkey=nil)
@SrcService = srcservice
@SrcSecretId = srcsecretid
@SrcSecretKey = srcsecretkey
end
def deserialize(params)
@SrcService = params['SrcService']
@SrcSecretId = params['SrcSecretId']
@SrcSecretKey = params['SrcSecretKey']
end
end
# DescribeBucketList返回参数结构体
class DescribeBucketListResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 桶的数量
# @type TotalCount: Integer
# @param BucketList: 桶列表
# @type BucketList: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalCount, :BucketList, :RequestId
def initialize(totalcount=nil, bucketlist=nil, requestid=nil)
@TotalCount = totalcount
@BucketList = bucketlist
@RequestId = requestid
end
def deserialize(params)
@TotalCount = params['TotalCount']
unless params['BucketList'].nil?
@BucketList = []
params['BucketList'].each do |i|
bucketinfo_tmp = BucketInfo.new
bucketinfo_tmp.deserialize(i)
@BucketList << bucketinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeCfsFileSystemClients请求参数结构体
class DescribeCfsFileSystemClientsRequest < TencentCloud::Common::AbstractModel
# @param FileSystemId: 文件系统 ID。
# @type FileSystemId: String
# @param Offset: Offset 分页码
# @type Offset: Integer
# @param Limit: Limit 页面大小
# @type Limit: Integer
attr_accessor :FileSystemId, :Offset, :Limit
def initialize(filesystemid=nil, offset=nil, limit=nil)
@FileSystemId = filesystemid
@Offset = offset
@Limit = limit
end
def deserialize(params)
@FileSystemId = params['FileSystemId']
@Offset = params['Offset']
@Limit = params['Limit']
end
end
# DescribeCfsFileSystemClients返回参数结构体
class DescribeCfsFileSystemClientsResponse < TencentCloud::Common::AbstractModel
# @param ClientList: 客户端列表
# @type ClientList: Array
# @param TotalCount: 文件系统总数
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ClientList, :TotalCount, :RequestId
def initialize(clientlist=nil, totalcount=nil, requestid=nil)
@ClientList = clientlist
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['ClientList'].nil?
@ClientList = []
params['ClientList'].each do |i|
filesystemclient_tmp = FileSystemClient.new
filesystemclient_tmp.deserialize(i)
@ClientList << filesystemclient_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeCfsFileSystems请求参数结构体
class DescribeCfsFileSystemsRequest < TencentCloud::Common::AbstractModel
# @param FileSystemId: 文件系统 ID
# @type FileSystemId: String
# @param VpcId: 私有网络(VPC) ID
# @type VpcId: String
# @param SubnetId: 子网 ID
# @type SubnetId: String
# @param Offset: Offset 分页码
# @type Offset: Integer
# @param Limit: Limit 页面大小
# @type Limit: Integer
# @param CreationToken: 用户自定义名称
# @type CreationToken: String
attr_accessor :FileSystemId, :VpcId, :SubnetId, :Offset, :Limit, :CreationToken
def initialize(filesystemid=nil, vpcid=nil, subnetid=nil, offset=nil, limit=nil, creationtoken=nil)
@FileSystemId = filesystemid
@VpcId = vpcid
@SubnetId = subnetid
@Offset = offset
@Limit = limit
@CreationToken = creationtoken
end
def deserialize(params)
@FileSystemId = params['FileSystemId']
@VpcId = params['VpcId']
@SubnetId = params['SubnetId']
@Offset = params['Offset']
@Limit = params['Limit']
@CreationToken = params['CreationToken']
end
end
# DescribeCfsFileSystems返回参数结构体
class DescribeCfsFileSystemsResponse < TencentCloud::Common::AbstractModel
# @param FileSystems: 文件系统信息
# @type FileSystems: Array
# @param TotalCount: 文件系统总数
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :FileSystems, :TotalCount, :RequestId
def initialize(filesystems=nil, totalcount=nil, requestid=nil)
@FileSystems = filesystems
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['FileSystems'].nil?
@FileSystems = []
params['FileSystems'].each do |i|
filesysteminfo_tmp = FileSystemInfo.new
filesysteminfo_tmp.deserialize(i)
@FileSystems << filesysteminfo_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeCfsPGroups请求参数结构体
class DescribeCfsPGroupsRequest < TencentCloud::Common::AbstractModel
def initialize()
end
def deserialize(params)
end
end
# DescribeCfsPGroups返回参数结构体
class DescribeCfsPGroupsResponse < TencentCloud::Common::AbstractModel
# @param PGroupList: 权限组信息列表
# @type PGroupList: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :PGroupList, :RequestId
def initialize(pgrouplist=nil, requestid=nil)
@PGroupList = pgrouplist
@RequestId = requestid
end
def deserialize(params)
unless params['PGroupList'].nil?
@PGroupList = []
params['PGroupList'].each do |i|
pgroupinfo_tmp = PGroupInfo.new
pgroupinfo_tmp.deserialize(i)
@PGroupList << pgroupinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeCfsRules请求参数结构体
class DescribeCfsRulesRequest < TencentCloud::Common::AbstractModel
# @param PGroupId: 权限组 ID
# @type PGroupId: String
attr_accessor :PGroupId
def initialize(pgroupid=nil)
@PGroupId = pgroupid
end
def deserialize(params)
@PGroupId = params['PGroupId']
end
end
# DescribeCfsRules返回参数结构体
class DescribeCfsRulesResponse < TencentCloud::Common::AbstractModel
# @param RuleList: 权限组规则列表
# @type RuleList: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RuleList, :RequestId
def initialize(rulelist=nil, requestid=nil)
@RuleList = rulelist
@RequestId = requestid
end
def deserialize(params)
unless params['RuleList'].nil?
@RuleList = []
params['RuleList'].each do |i|
pgroupruleinfo_tmp = PGroupRuleInfo.new
pgroupruleinfo_tmp.deserialize(i)
@RuleList << pgroupruleinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeCfsServiceStatus请求参数结构体
class DescribeCfsServiceStatusRequest < TencentCloud::Common::AbstractModel
def initialize()
end
def deserialize(params)
end
end
# DescribeCfsServiceStatus返回参数结构体
class DescribeCfsServiceStatusResponse < TencentCloud::Common::AbstractModel
# @param CfsServiceStatus: 该用户当前 CFS 服务的状态,none 为未开通,creating 为开通中,created 为已开通
# @type CfsServiceStatus: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :CfsServiceStatus, :RequestId
def initialize(cfsservicestatus=nil, requestid=nil)
@CfsServiceStatus = cfsservicestatus
@RequestId = requestid
end
def deserialize(params)
@CfsServiceStatus = params['CfsServiceStatus']
@RequestId = params['RequestId']
end
end
# DescribeCfsSnapshotOverview请求参数结构体
class DescribeCfsSnapshotOverviewRequest < TencentCloud::Common::AbstractModel
def initialize()
end
def deserialize(params)
end
end
# DescribeCfsSnapshotOverview返回参数结构体
class DescribeCfsSnapshotOverviewResponse < TencentCloud::Common::AbstractModel
# @param StatisticsList: 统计信息
# @type StatisticsList: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :StatisticsList, :RequestId
def initialize(statisticslist=nil, requestid=nil)
@StatisticsList = statisticslist
@RequestId = requestid
end
def deserialize(params)
unless params['StatisticsList'].nil?
@StatisticsList = []
params['StatisticsList'].each do |i|
snapshotstatistics_tmp = SnapshotStatistics.new
snapshotstatistics_tmp.deserialize(i)
@StatisticsList << snapshotstatistics_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeCfsSnapshots请求参数结构体
class DescribeCfsSnapshotsRequest < TencentCloud::Common::AbstractModel
# @param FileSystemId: 文件系统ID
# @type FileSystemId: String
# @param SnapshotId: 快照ID
# @type SnapshotId: String
# @param Offset: 分页起始位置,默认为0
# @type Offset: Integer
# @param Limit: 页面长度,默认为20
# @type Limit: Integer
# @param Filters: 过滤条件。
#
SnapshotId - Array of String - 是否必填:否 -(过滤条件)按快照ID过滤。
#
SnapshotName - Array of String - 是否必填:否 -(过滤条件)按照快照名称过滤。
#
FileSystemId - Array of String - 是否必填:否 -(过滤条件)按文件系统ID过滤。
#
FsName - Array of String - 是否必填:否 -(过滤条件)按文件系统名过滤。
#
Status - Array of String - 是否必填:否 -(过滤条件)按按照快照状态过滤。(creating:表示创建中 | available:表示可用。| rollbacking:表示回滚。| rollbacking_new:表示由快照创建新文件系统中。
#
tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键进行过滤。
#
tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
# @type Filters: Array
# @param OrderField: 排序取值
# @type OrderField: String
# @param Order: 排序 升序或者降序
# @type Order: String
attr_accessor :FileSystemId, :SnapshotId, :Offset, :Limit, :Filters, :OrderField, :Order
def initialize(filesystemid=nil, snapshotid=nil, offset=nil, limit=nil, filters=nil, orderfield=nil, order=nil)
@FileSystemId = filesystemid
@SnapshotId = snapshotid
@Offset = offset
@Limit = limit
@Filters = filters
@OrderField = orderfield
@Order = order
end
def deserialize(params)
@FileSystemId = params['FileSystemId']
@SnapshotId = params['SnapshotId']
@Offset = params['Offset']
@Limit = params['Limit']
unless params['Filters'].nil?
@Filters = []
params['Filters'].each do |i|
filter_tmp = Filter.new
filter_tmp.deserialize(i)
@Filters << filter_tmp
end
end
@OrderField = params['OrderField']
@Order = params['Order']
end
end
# DescribeCfsSnapshots返回参数结构体
class DescribeCfsSnapshotsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 总个数
# @type TotalCount: Integer
# @param Snapshots: 快照信息描述
# @type Snapshots: Array
# @param TotalSize: 快照列表快照汇总
# @type TotalSize: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalCount, :Snapshots, :TotalSize, :RequestId
def initialize(totalcount=nil, snapshots=nil, totalsize=nil, requestid=nil)
@TotalCount = totalcount
@Snapshots = snapshots
@TotalSize = totalsize
@RequestId = requestid
end
def deserialize(params)
@TotalCount = params['TotalCount']
unless params['Snapshots'].nil?
@Snapshots = []
params['Snapshots'].each do |i|
snapshotinfo_tmp = SnapshotInfo.new
snapshotinfo_tmp.deserialize(i)
@Snapshots << snapshotinfo_tmp
end
end
@TotalSize = params['TotalSize']
@RequestId = params['RequestId']
end
end
# DescribeMigrationTasks请求参数结构体
class DescribeMigrationTasksRequest < TencentCloud::Common::AbstractModel
# @param Offset: 分页的偏移量,默认值为0。
# @type Offset: Integer
# @param Limit: 分页单页限制数目,默认值为20,最大值100。
# @type Limit: Integer
# @param Filters: