tencentcloud-sdk-cfs 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1428 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Cfs
19
+ module V20190719
20
+ # 版本控制-协议详情
21
+ class AvailableProtoStatus < TencentCloud::Common::AbstractModel
22
+ # @param SaleStatus: 售卖状态。可选值有 sale_out 售罄、saling可售、no_saling不可销售
23
+ # @type SaleStatus: String
24
+ # @param Protocol: 协议类型。可选值有 NFS、CIFS
25
+ # @type Protocol: String
26
+
27
+ attr_accessor :SaleStatus, :Protocol
28
+
29
+ def initialize(salestatus=nil, protocol=nil)
30
+ @SaleStatus = salestatus
31
+ @Protocol = protocol
32
+ end
33
+
34
+ def deserialize(params)
35
+ @SaleStatus = params['SaleStatus']
36
+ @Protocol = params['Protocol']
37
+ end
38
+ end
39
+
40
+ # 版本控制-区域数组
41
+ class AvailableRegion < TencentCloud::Common::AbstractModel
42
+ # @param Region: 区域名称,如“ap-beijing”
43
+ # @type Region: String
44
+ # @param RegionName: 区域名称,如“bj”
45
+ # @type RegionName: String
46
+ # @param RegionStatus: 区域可用情况,当区域内至少有一个可用区处于可售状态时,取值为AVAILABLE,否则为UNAVAILABLE
47
+ # @type RegionStatus: String
48
+ # @param Zones: 可用区数组
49
+ # @type Zones: Array
50
+ # @param RegionCnName: 区域中文名称,如“广州”
51
+ # @type RegionCnName: String
52
+
53
+ attr_accessor :Region, :RegionName, :RegionStatus, :Zones, :RegionCnName
54
+
55
+ def initialize(region=nil, regionname=nil, regionstatus=nil, zones=nil, regioncnname=nil)
56
+ @Region = region
57
+ @RegionName = regionname
58
+ @RegionStatus = regionstatus
59
+ @Zones = zones
60
+ @RegionCnName = regioncnname
61
+ end
62
+
63
+ def deserialize(params)
64
+ @Region = params['Region']
65
+ @RegionName = params['RegionName']
66
+ @RegionStatus = params['RegionStatus']
67
+ unless params['Zones'].nil?
68
+ @Zones = []
69
+ params['Zones'].each do |i|
70
+ availablezone_tmp = AvailableZone.new
71
+ availablezone_tmp.deserialize(i)
72
+ @Zones << availablezone_tmp
73
+ end
74
+ end
75
+ @RegionCnName = params['RegionCnName']
76
+ end
77
+ end
78
+
79
+ # 版本控制-类型数组
80
+ class AvailableType < TencentCloud::Common::AbstractModel
81
+ # @param Protocols: 协议与售卖详情
82
+ # @type Protocols: Array
83
+ # @param Type: 存储类型。返回值中 SD 为标准型存储、HP 为性能型存储
84
+ # @type Type: String
85
+ # @param Prepayment: 是否支持预付费。返回值中 true 为支持、false 为不支持
86
+ # @type Prepayment: Boolean
87
+
88
+ attr_accessor :Protocols, :Type, :Prepayment
89
+
90
+ def initialize(protocols=nil, type=nil, prepayment=nil)
91
+ @Protocols = protocols
92
+ @Type = type
93
+ @Prepayment = prepayment
94
+ end
95
+
96
+ def deserialize(params)
97
+ unless params['Protocols'].nil?
98
+ @Protocols = []
99
+ params['Protocols'].each do |i|
100
+ availableprotostatus_tmp = AvailableProtoStatus.new
101
+ availableprotostatus_tmp.deserialize(i)
102
+ @Protocols << availableprotostatus_tmp
103
+ end
104
+ end
105
+ @Type = params['Type']
106
+ @Prepayment = params['Prepayment']
107
+ end
108
+ end
109
+
110
+ # 版本控制-可用区数组
111
+ class AvailableZone < TencentCloud::Common::AbstractModel
112
+ # @param Zone: 可用区名称
113
+ # @type Zone: String
114
+ # @param ZoneId: 可用区ID
115
+ # @type ZoneId: Integer
116
+ # @param ZoneCnName: 可用区中文名称
117
+ # @type ZoneCnName: String
118
+ # @param Types: Type数组
119
+ # @type Types: Array
120
+ # @param ZoneName: 可用区中英文名称
121
+ # @type ZoneName: String
122
+
123
+ attr_accessor :Zone, :ZoneId, :ZoneCnName, :Types, :ZoneName
124
+
125
+ def initialize(zone=nil, zoneid=nil, zonecnname=nil, types=nil, zonename=nil)
126
+ @Zone = zone
127
+ @ZoneId = zoneid
128
+ @ZoneCnName = zonecnname
129
+ @Types = types
130
+ @ZoneName = zonename
131
+ end
132
+
133
+ def deserialize(params)
134
+ @Zone = params['Zone']
135
+ @ZoneId = params['ZoneId']
136
+ @ZoneCnName = params['ZoneCnName']
137
+ unless params['Types'].nil?
138
+ @Types = []
139
+ params['Types'].each do |i|
140
+ availabletype_tmp = AvailableType.new
141
+ availabletype_tmp.deserialize(i)
142
+ @Types << availabletype_tmp
143
+ end
144
+ end
145
+ @ZoneName = params['ZoneName']
146
+ end
147
+ end
148
+
149
+ # CreateCfsFileSystem请求参数结构体
150
+ class CreateCfsFileSystemRequest < TencentCloud::Common::AbstractModel
151
+ # @param Zone: 可用区名称,例如ap-beijing-1,请参考 [概览](https://cloud.tencent.com/document/product/582/13225) 文档中的地域与可用区列表
152
+ # @type Zone: String
153
+ # @param NetInterface: 网络类型,可选值为 VPC,BASIC,CCN;其中 VPC 为私有网络,BASIC 为基础网络, CCN 为云联网,Turbo系列当前必须选择云联网。目前基础网络已逐渐淘汰,不推荐使用。
154
+ # @type NetInterface: String
155
+ # @param PGroupId: 权限组 ID,通用标准型和性能型必填,turbo系列请填写pgroupbasic
156
+ # @type PGroupId: String
157
+ # @param Protocol: 文件系统协议类型, 值为 NFS、CIFS、TURBO ; 若留空则默认为 NFS协议,turbo系列必须选择turbo,不支持NFS、CIFS
158
+ # @type Protocol: String
159
+ # @param StorageType: 文件系统存储类型,默认值为 SD ;其中 SD 为通用标准型标准型存储, HP为通用性能型存储, TB为turbo标准型, TP 为turbo性能型。
160
+ # @type StorageType: String
161
+ # @param VpcId: 私有网络(VPC) ID,若网络类型选择的是VPC,该字段为必填。
162
+ # @type VpcId: String
163
+ # @param SubnetId: 子网 ID,若网络类型选择的是VPC,该字段为必填。
164
+ # @type SubnetId: String
165
+ # @param MountIP: 指定IP地址,仅VPC网络支持;若不填写、将在该子网下随机分配 IP,Turbo系列当前不支持指定
166
+ # @type MountIP: String
167
+ # @param FsName: 用户自定义文件系统名称
168
+ # @type FsName: String
169
+ # @param ResourceTags: 文件系统标签
170
+ # @type ResourceTags: Array
171
+ # @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。用于保证请求幂等性的字符串失效时间为2小时。
172
+ # @type ClientToken: String
173
+ # @param CcnId: 云联网ID, 若网络类型选择的是CCN,该字段为必填
174
+ # @type CcnId: String
175
+ # @param CidrBlock: 云联网中CFS使用的网段, 若网络类型选择的是Ccn,该字段为必填,且不能和Ccn中已经绑定的网段冲突
176
+ # @type CidrBlock: String
177
+ # @param Capacity: 文件系统容量,turbo系列必填,单位为GiB。 turbo标准型单位GB,起售40TiB,即40960 GiB;扩容步长20TiB,即20480 GiB。turbo性能型起售20TiB,即20480 GiB;扩容步长10TiB,10240 GiB。
178
+ # @type Capacity: Integer
179
+
180
+ attr_accessor :Zone, :NetInterface, :PGroupId, :Protocol, :StorageType, :VpcId, :SubnetId, :MountIP, :FsName, :ResourceTags, :ClientToken, :CcnId, :CidrBlock, :Capacity
181
+
182
+ 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)
183
+ @Zone = zone
184
+ @NetInterface = netinterface
185
+ @PGroupId = pgroupid
186
+ @Protocol = protocol
187
+ @StorageType = storagetype
188
+ @VpcId = vpcid
189
+ @SubnetId = subnetid
190
+ @MountIP = mountip
191
+ @FsName = fsname
192
+ @ResourceTags = resourcetags
193
+ @ClientToken = clienttoken
194
+ @CcnId = ccnid
195
+ @CidrBlock = cidrblock
196
+ @Capacity = capacity
197
+ end
198
+
199
+ def deserialize(params)
200
+ @Zone = params['Zone']
201
+ @NetInterface = params['NetInterface']
202
+ @PGroupId = params['PGroupId']
203
+ @Protocol = params['Protocol']
204
+ @StorageType = params['StorageType']
205
+ @VpcId = params['VpcId']
206
+ @SubnetId = params['SubnetId']
207
+ @MountIP = params['MountIP']
208
+ @FsName = params['FsName']
209
+ unless params['ResourceTags'].nil?
210
+ @ResourceTags = []
211
+ params['ResourceTags'].each do |i|
212
+ taginfo_tmp = TagInfo.new
213
+ taginfo_tmp.deserialize(i)
214
+ @ResourceTags << taginfo_tmp
215
+ end
216
+ end
217
+ @ClientToken = params['ClientToken']
218
+ @CcnId = params['CcnId']
219
+ @CidrBlock = params['CidrBlock']
220
+ @Capacity = params['Capacity']
221
+ end
222
+ end
223
+
224
+ # CreateCfsFileSystem返回参数结构体
225
+ class CreateCfsFileSystemResponse < TencentCloud::Common::AbstractModel
226
+ # @param CreationTime: 文件系统创建时间
227
+ # @type CreationTime: String
228
+ # @param CreationToken: 用户自定义文件系统名称
229
+ # @type CreationToken: String
230
+ # @param FileSystemId: 文件系统 ID
231
+ # @type FileSystemId: String
232
+ # @param LifeCycleState: 文件系统状态,可能出现状态包括:“creating” 创建中, “create_failed” 创建失败, “available” 可用, “unserviced” 不可用, “upgrading” 升级中, “deleting” 删除中。
233
+ # @type LifeCycleState: String
234
+ # @param SizeByte: 文件系统已使用容量大小,单位为 Byte
235
+ # @type SizeByte: Integer
236
+ # @param ZoneId: 可用区 ID
237
+ # @type ZoneId: Integer
238
+ # @param FsName: 用户自定义文件系统名称
239
+ # @type FsName: String
240
+ # @param Encrypted: 文件系统是否加密
241
+ # @type Encrypted: Boolean
242
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
243
+ # @type RequestId: String
244
+
245
+ attr_accessor :CreationTime, :CreationToken, :FileSystemId, :LifeCycleState, :SizeByte, :ZoneId, :FsName, :Encrypted, :RequestId
246
+
247
+ def initialize(creationtime=nil, creationtoken=nil, filesystemid=nil, lifecyclestate=nil, sizebyte=nil, zoneid=nil, fsname=nil, encrypted=nil, requestid=nil)
248
+ @CreationTime = creationtime
249
+ @CreationToken = creationtoken
250
+ @FileSystemId = filesystemid
251
+ @LifeCycleState = lifecyclestate
252
+ @SizeByte = sizebyte
253
+ @ZoneId = zoneid
254
+ @FsName = fsname
255
+ @Encrypted = encrypted
256
+ @RequestId = requestid
257
+ end
258
+
259
+ def deserialize(params)
260
+ @CreationTime = params['CreationTime']
261
+ @CreationToken = params['CreationToken']
262
+ @FileSystemId = params['FileSystemId']
263
+ @LifeCycleState = params['LifeCycleState']
264
+ @SizeByte = params['SizeByte']
265
+ @ZoneId = params['ZoneId']
266
+ @FsName = params['FsName']
267
+ @Encrypted = params['Encrypted']
268
+ @RequestId = params['RequestId']
269
+ end
270
+ end
271
+
272
+ # CreateCfsPGroup请求参数结构体
273
+ class CreateCfsPGroupRequest < TencentCloud::Common::AbstractModel
274
+ # @param Name: 权限组名称,1-64个字符且只能为中文,字母,数字,下划线或横线
275
+ # @type Name: String
276
+ # @param DescInfo: 权限组描述信息,1-255个字符
277
+ # @type DescInfo: String
278
+
279
+ attr_accessor :Name, :DescInfo
280
+
281
+ def initialize(name=nil, descinfo=nil)
282
+ @Name = name
283
+ @DescInfo = descinfo
284
+ end
285
+
286
+ def deserialize(params)
287
+ @Name = params['Name']
288
+ @DescInfo = params['DescInfo']
289
+ end
290
+ end
291
+
292
+ # CreateCfsPGroup返回参数结构体
293
+ class CreateCfsPGroupResponse < TencentCloud::Common::AbstractModel
294
+ # @param PGroupId: 权限组 ID
295
+ # @type PGroupId: String
296
+ # @param Name: 权限组名字
297
+ # @type Name: String
298
+ # @param DescInfo: 权限组描述信息
299
+ # @type DescInfo: String
300
+ # @param BindCfsNum: 已经与该权限组绑定的文件系统个数
301
+ # @type BindCfsNum: Integer
302
+ # @param CDate: 权限组创建时间
303
+ # @type CDate: String
304
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
305
+ # @type RequestId: String
306
+
307
+ attr_accessor :PGroupId, :Name, :DescInfo, :BindCfsNum, :CDate, :RequestId
308
+
309
+ def initialize(pgroupid=nil, name=nil, descinfo=nil, bindcfsnum=nil, cdate=nil, requestid=nil)
310
+ @PGroupId = pgroupid
311
+ @Name = name
312
+ @DescInfo = descinfo
313
+ @BindCfsNum = bindcfsnum
314
+ @CDate = cdate
315
+ @RequestId = requestid
316
+ end
317
+
318
+ def deserialize(params)
319
+ @PGroupId = params['PGroupId']
320
+ @Name = params['Name']
321
+ @DescInfo = params['DescInfo']
322
+ @BindCfsNum = params['BindCfsNum']
323
+ @CDate = params['CDate']
324
+ @RequestId = params['RequestId']
325
+ end
326
+ end
327
+
328
+ # CreateCfsRule请求参数结构体
329
+ class CreateCfsRuleRequest < TencentCloud::Common::AbstractModel
330
+ # @param PGroupId: 权限组 ID
331
+ # @type PGroupId: String
332
+ # @param AuthClientIp: 可以填写单个 IP 或者单个网段,例如 10.1.10.11 或者 10.10.1.0/24。默认来访地址为*表示允许所有。同时需要注意,此处需填写 CVM 的内网 IP。
333
+ # @type AuthClientIp: String
334
+ # @param Priority: 规则优先级,参数范围1-100。 其中 1 为最高,100为最低
335
+ # @type Priority: Integer
336
+ # @param RWPermission: 读写权限, 值为 RO、RW;其中 RO 为只读,RW 为读写,不填默认为只读
337
+ # @type RWPermission: String
338
+ # @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。
339
+ # @type UserPermission: String
340
+
341
+ attr_accessor :PGroupId, :AuthClientIp, :Priority, :RWPermission, :UserPermission
342
+
343
+ def initialize(pgroupid=nil, authclientip=nil, priority=nil, rwpermission=nil, userpermission=nil)
344
+ @PGroupId = pgroupid
345
+ @AuthClientIp = authclientip
346
+ @Priority = priority
347
+ @RWPermission = rwpermission
348
+ @UserPermission = userpermission
349
+ end
350
+
351
+ def deserialize(params)
352
+ @PGroupId = params['PGroupId']
353
+ @AuthClientIp = params['AuthClientIp']
354
+ @Priority = params['Priority']
355
+ @RWPermission = params['RWPermission']
356
+ @UserPermission = params['UserPermission']
357
+ end
358
+ end
359
+
360
+ # CreateCfsRule返回参数结构体
361
+ class CreateCfsRuleResponse < TencentCloud::Common::AbstractModel
362
+ # @param RuleId: 规则 ID
363
+ # @type RuleId: String
364
+ # @param PGroupId: 权限组 ID
365
+ # @type PGroupId: String
366
+ # @param AuthClientIp: 客户端 IP
367
+ # @type AuthClientIp: String
368
+ # @param RWPermission: 读写权限
369
+ # @type RWPermission: String
370
+ # @param UserPermission: 用户权限
371
+ # @type UserPermission: String
372
+ # @param Priority: 优先级
373
+ # @type Priority: Integer
374
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
375
+ # @type RequestId: String
376
+
377
+ attr_accessor :RuleId, :PGroupId, :AuthClientIp, :RWPermission, :UserPermission, :Priority, :RequestId
378
+
379
+ def initialize(ruleid=nil, pgroupid=nil, authclientip=nil, rwpermission=nil, userpermission=nil, priority=nil, requestid=nil)
380
+ @RuleId = ruleid
381
+ @PGroupId = pgroupid
382
+ @AuthClientIp = authclientip
383
+ @RWPermission = rwpermission
384
+ @UserPermission = userpermission
385
+ @Priority = priority
386
+ @RequestId = requestid
387
+ end
388
+
389
+ def deserialize(params)
390
+ @RuleId = params['RuleId']
391
+ @PGroupId = params['PGroupId']
392
+ @AuthClientIp = params['AuthClientIp']
393
+ @RWPermission = params['RWPermission']
394
+ @UserPermission = params['UserPermission']
395
+ @Priority = params['Priority']
396
+ @RequestId = params['RequestId']
397
+ end
398
+ end
399
+
400
+ # DeleteCfsFileSystem请求参数结构体
401
+ class DeleteCfsFileSystemRequest < TencentCloud::Common::AbstractModel
402
+ # @param FileSystemId: 文件系统 ID。说明,进行删除文件系统操作前需要先调用 DeleteMountTarget 接口删除该文件系统的挂载点,否则会删除失败。
403
+ # @type FileSystemId: String
404
+
405
+ attr_accessor :FileSystemId
406
+
407
+ def initialize(filesystemid=nil)
408
+ @FileSystemId = filesystemid
409
+ end
410
+
411
+ def deserialize(params)
412
+ @FileSystemId = params['FileSystemId']
413
+ end
414
+ end
415
+
416
+ # DeleteCfsFileSystem返回参数结构体
417
+ class DeleteCfsFileSystemResponse < TencentCloud::Common::AbstractModel
418
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
419
+ # @type RequestId: String
420
+
421
+ attr_accessor :RequestId
422
+
423
+ def initialize(requestid=nil)
424
+ @RequestId = requestid
425
+ end
426
+
427
+ def deserialize(params)
428
+ @RequestId = params['RequestId']
429
+ end
430
+ end
431
+
432
+ # DeleteCfsPGroup请求参数结构体
433
+ class DeleteCfsPGroupRequest < TencentCloud::Common::AbstractModel
434
+ # @param PGroupId: 权限组 ID
435
+ # @type PGroupId: String
436
+
437
+ attr_accessor :PGroupId
438
+
439
+ def initialize(pgroupid=nil)
440
+ @PGroupId = pgroupid
441
+ end
442
+
443
+ def deserialize(params)
444
+ @PGroupId = params['PGroupId']
445
+ end
446
+ end
447
+
448
+ # DeleteCfsPGroup返回参数结构体
449
+ class DeleteCfsPGroupResponse < TencentCloud::Common::AbstractModel
450
+ # @param PGroupId: 权限组 ID
451
+ # @type PGroupId: String
452
+ # @param AppId: 用户 ID
453
+ # @type AppId: Integer
454
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
455
+ # @type RequestId: String
456
+
457
+ attr_accessor :PGroupId, :AppId, :RequestId
458
+
459
+ def initialize(pgroupid=nil, appid=nil, requestid=nil)
460
+ @PGroupId = pgroupid
461
+ @AppId = appid
462
+ @RequestId = requestid
463
+ end
464
+
465
+ def deserialize(params)
466
+ @PGroupId = params['PGroupId']
467
+ @AppId = params['AppId']
468
+ @RequestId = params['RequestId']
469
+ end
470
+ end
471
+
472
+ # DeleteCfsRule请求参数结构体
473
+ class DeleteCfsRuleRequest < TencentCloud::Common::AbstractModel
474
+ # @param PGroupId: 权限组 ID
475
+ # @type PGroupId: String
476
+ # @param RuleId: 规则 ID
477
+ # @type RuleId: String
478
+
479
+ attr_accessor :PGroupId, :RuleId
480
+
481
+ def initialize(pgroupid=nil, ruleid=nil)
482
+ @PGroupId = pgroupid
483
+ @RuleId = ruleid
484
+ end
485
+
486
+ def deserialize(params)
487
+ @PGroupId = params['PGroupId']
488
+ @RuleId = params['RuleId']
489
+ end
490
+ end
491
+
492
+ # DeleteCfsRule返回参数结构体
493
+ class DeleteCfsRuleResponse < TencentCloud::Common::AbstractModel
494
+ # @param RuleId: 规则 ID
495
+ # @type RuleId: String
496
+ # @param PGroupId: 权限组 ID
497
+ # @type PGroupId: String
498
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
499
+ # @type RequestId: String
500
+
501
+ attr_accessor :RuleId, :PGroupId, :RequestId
502
+
503
+ def initialize(ruleid=nil, pgroupid=nil, requestid=nil)
504
+ @RuleId = ruleid
505
+ @PGroupId = pgroupid
506
+ @RequestId = requestid
507
+ end
508
+
509
+ def deserialize(params)
510
+ @RuleId = params['RuleId']
511
+ @PGroupId = params['PGroupId']
512
+ @RequestId = params['RequestId']
513
+ end
514
+ end
515
+
516
+ # DeleteMountTarget请求参数结构体
517
+ class DeleteMountTargetRequest < TencentCloud::Common::AbstractModel
518
+ # @param FileSystemId: 文件系统 ID
519
+ # @type FileSystemId: String
520
+ # @param MountTargetId: 挂载点 ID
521
+ # @type MountTargetId: String
522
+
523
+ attr_accessor :FileSystemId, :MountTargetId
524
+
525
+ def initialize(filesystemid=nil, mounttargetid=nil)
526
+ @FileSystemId = filesystemid
527
+ @MountTargetId = mounttargetid
528
+ end
529
+
530
+ def deserialize(params)
531
+ @FileSystemId = params['FileSystemId']
532
+ @MountTargetId = params['MountTargetId']
533
+ end
534
+ end
535
+
536
+ # DeleteMountTarget返回参数结构体
537
+ class DeleteMountTargetResponse < TencentCloud::Common::AbstractModel
538
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
539
+ # @type RequestId: String
540
+
541
+ attr_accessor :RequestId
542
+
543
+ def initialize(requestid=nil)
544
+ @RequestId = requestid
545
+ end
546
+
547
+ def deserialize(params)
548
+ @RequestId = params['RequestId']
549
+ end
550
+ end
551
+
552
+ # DescribeAvailableZoneInfo请求参数结构体
553
+ class DescribeAvailableZoneInfoRequest < TencentCloud::Common::AbstractModel
554
+
555
+
556
+ def initialize()
557
+ end
558
+
559
+ def deserialize(params)
560
+ end
561
+ end
562
+
563
+ # DescribeAvailableZoneInfo返回参数结构体
564
+ class DescribeAvailableZoneInfoResponse < TencentCloud::Common::AbstractModel
565
+ # @param RegionZones: 各可用区的资源售卖情况以及支持的存储类型、存储协议等信息
566
+ # @type RegionZones: Array
567
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
568
+ # @type RequestId: String
569
+
570
+ attr_accessor :RegionZones, :RequestId
571
+
572
+ def initialize(regionzones=nil, requestid=nil)
573
+ @RegionZones = regionzones
574
+ @RequestId = requestid
575
+ end
576
+
577
+ def deserialize(params)
578
+ unless params['RegionZones'].nil?
579
+ @RegionZones = []
580
+ params['RegionZones'].each do |i|
581
+ availableregion_tmp = AvailableRegion.new
582
+ availableregion_tmp.deserialize(i)
583
+ @RegionZones << availableregion_tmp
584
+ end
585
+ end
586
+ @RequestId = params['RequestId']
587
+ end
588
+ end
589
+
590
+ # DescribeCfsFileSystemClients请求参数结构体
591
+ class DescribeCfsFileSystemClientsRequest < TencentCloud::Common::AbstractModel
592
+ # @param FileSystemId: 文件系统 ID。
593
+ # @type FileSystemId: String
594
+
595
+ attr_accessor :FileSystemId
596
+
597
+ def initialize(filesystemid=nil)
598
+ @FileSystemId = filesystemid
599
+ end
600
+
601
+ def deserialize(params)
602
+ @FileSystemId = params['FileSystemId']
603
+ end
604
+ end
605
+
606
+ # DescribeCfsFileSystemClients返回参数结构体
607
+ class DescribeCfsFileSystemClientsResponse < TencentCloud::Common::AbstractModel
608
+ # @param ClientList: 客户端列表
609
+ # @type ClientList: Array
610
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
611
+ # @type RequestId: String
612
+
613
+ attr_accessor :ClientList, :RequestId
614
+
615
+ def initialize(clientlist=nil, requestid=nil)
616
+ @ClientList = clientlist
617
+ @RequestId = requestid
618
+ end
619
+
620
+ def deserialize(params)
621
+ unless params['ClientList'].nil?
622
+ @ClientList = []
623
+ params['ClientList'].each do |i|
624
+ filesystemclient_tmp = FileSystemClient.new
625
+ filesystemclient_tmp.deserialize(i)
626
+ @ClientList << filesystemclient_tmp
627
+ end
628
+ end
629
+ @RequestId = params['RequestId']
630
+ end
631
+ end
632
+
633
+ # DescribeCfsFileSystems请求参数结构体
634
+ class DescribeCfsFileSystemsRequest < TencentCloud::Common::AbstractModel
635
+ # @param FileSystemId: 文件系统 ID
636
+ # @type FileSystemId: String
637
+ # @param VpcId: 私有网络(VPC) ID
638
+ # @type VpcId: String
639
+ # @param SubnetId: 子网 ID
640
+ # @type SubnetId: String
641
+
642
+ attr_accessor :FileSystemId, :VpcId, :SubnetId
643
+
644
+ def initialize(filesystemid=nil, vpcid=nil, subnetid=nil)
645
+ @FileSystemId = filesystemid
646
+ @VpcId = vpcid
647
+ @SubnetId = subnetid
648
+ end
649
+
650
+ def deserialize(params)
651
+ @FileSystemId = params['FileSystemId']
652
+ @VpcId = params['VpcId']
653
+ @SubnetId = params['SubnetId']
654
+ end
655
+ end
656
+
657
+ # DescribeCfsFileSystems返回参数结构体
658
+ class DescribeCfsFileSystemsResponse < TencentCloud::Common::AbstractModel
659
+ # @param FileSystems: 文件系统信息
660
+ # @type FileSystems: Array
661
+ # @param TotalCount: 文件系统总数
662
+ # @type TotalCount: Integer
663
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
664
+ # @type RequestId: String
665
+
666
+ attr_accessor :FileSystems, :TotalCount, :RequestId
667
+
668
+ def initialize(filesystems=nil, totalcount=nil, requestid=nil)
669
+ @FileSystems = filesystems
670
+ @TotalCount = totalcount
671
+ @RequestId = requestid
672
+ end
673
+
674
+ def deserialize(params)
675
+ unless params['FileSystems'].nil?
676
+ @FileSystems = []
677
+ params['FileSystems'].each do |i|
678
+ filesysteminfo_tmp = FileSystemInfo.new
679
+ filesysteminfo_tmp.deserialize(i)
680
+ @FileSystems << filesysteminfo_tmp
681
+ end
682
+ end
683
+ @TotalCount = params['TotalCount']
684
+ @RequestId = params['RequestId']
685
+ end
686
+ end
687
+
688
+ # DescribeCfsPGroups请求参数结构体
689
+ class DescribeCfsPGroupsRequest < TencentCloud::Common::AbstractModel
690
+
691
+
692
+ def initialize()
693
+ end
694
+
695
+ def deserialize(params)
696
+ end
697
+ end
698
+
699
+ # DescribeCfsPGroups返回参数结构体
700
+ class DescribeCfsPGroupsResponse < TencentCloud::Common::AbstractModel
701
+ # @param PGroupList: 权限组信息列表
702
+ # @type PGroupList: Array
703
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
704
+ # @type RequestId: String
705
+
706
+ attr_accessor :PGroupList, :RequestId
707
+
708
+ def initialize(pgrouplist=nil, requestid=nil)
709
+ @PGroupList = pgrouplist
710
+ @RequestId = requestid
711
+ end
712
+
713
+ def deserialize(params)
714
+ unless params['PGroupList'].nil?
715
+ @PGroupList = []
716
+ params['PGroupList'].each do |i|
717
+ pgroupinfo_tmp = PGroupInfo.new
718
+ pgroupinfo_tmp.deserialize(i)
719
+ @PGroupList << pgroupinfo_tmp
720
+ end
721
+ end
722
+ @RequestId = params['RequestId']
723
+ end
724
+ end
725
+
726
+ # DescribeCfsRules请求参数结构体
727
+ class DescribeCfsRulesRequest < TencentCloud::Common::AbstractModel
728
+ # @param PGroupId: 权限组 ID
729
+ # @type PGroupId: String
730
+
731
+ attr_accessor :PGroupId
732
+
733
+ def initialize(pgroupid=nil)
734
+ @PGroupId = pgroupid
735
+ end
736
+
737
+ def deserialize(params)
738
+ @PGroupId = params['PGroupId']
739
+ end
740
+ end
741
+
742
+ # DescribeCfsRules返回参数结构体
743
+ class DescribeCfsRulesResponse < TencentCloud::Common::AbstractModel
744
+ # @param RuleList: 权限组规则列表
745
+ # @type RuleList: Array
746
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
747
+ # @type RequestId: String
748
+
749
+ attr_accessor :RuleList, :RequestId
750
+
751
+ def initialize(rulelist=nil, requestid=nil)
752
+ @RuleList = rulelist
753
+ @RequestId = requestid
754
+ end
755
+
756
+ def deserialize(params)
757
+ unless params['RuleList'].nil?
758
+ @RuleList = []
759
+ params['RuleList'].each do |i|
760
+ pgroupruleinfo_tmp = PGroupRuleInfo.new
761
+ pgroupruleinfo_tmp.deserialize(i)
762
+ @RuleList << pgroupruleinfo_tmp
763
+ end
764
+ end
765
+ @RequestId = params['RequestId']
766
+ end
767
+ end
768
+
769
+ # DescribeCfsServiceStatus请求参数结构体
770
+ class DescribeCfsServiceStatusRequest < TencentCloud::Common::AbstractModel
771
+
772
+
773
+ def initialize()
774
+ end
775
+
776
+ def deserialize(params)
777
+ end
778
+ end
779
+
780
+ # DescribeCfsServiceStatus返回参数结构体
781
+ class DescribeCfsServiceStatusResponse < TencentCloud::Common::AbstractModel
782
+ # @param CfsServiceStatus: 该用户当前 CFS 服务的状态,none 为未开通,creating 为开通中,created 为已开通
783
+ # @type CfsServiceStatus: String
784
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
785
+ # @type RequestId: String
786
+
787
+ attr_accessor :CfsServiceStatus, :RequestId
788
+
789
+ def initialize(cfsservicestatus=nil, requestid=nil)
790
+ @CfsServiceStatus = cfsservicestatus
791
+ @RequestId = requestid
792
+ end
793
+
794
+ def deserialize(params)
795
+ @CfsServiceStatus = params['CfsServiceStatus']
796
+ @RequestId = params['RequestId']
797
+ end
798
+ end
799
+
800
+ # DescribeMountTargets请求参数结构体
801
+ class DescribeMountTargetsRequest < TencentCloud::Common::AbstractModel
802
+ # @param FileSystemId: 文件系统 ID
803
+ # @type FileSystemId: String
804
+
805
+ attr_accessor :FileSystemId
806
+
807
+ def initialize(filesystemid=nil)
808
+ @FileSystemId = filesystemid
809
+ end
810
+
811
+ def deserialize(params)
812
+ @FileSystemId = params['FileSystemId']
813
+ end
814
+ end
815
+
816
+ # DescribeMountTargets返回参数结构体
817
+ class DescribeMountTargetsResponse < TencentCloud::Common::AbstractModel
818
+ # @param MountTargets: 挂载点详情
819
+ # @type MountTargets: Array
820
+ # @param NumberOfMountTargets: 挂载点数量
821
+ # @type NumberOfMountTargets: Integer
822
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
823
+ # @type RequestId: String
824
+
825
+ attr_accessor :MountTargets, :NumberOfMountTargets, :RequestId
826
+
827
+ def initialize(mounttargets=nil, numberofmounttargets=nil, requestid=nil)
828
+ @MountTargets = mounttargets
829
+ @NumberOfMountTargets = numberofmounttargets
830
+ @RequestId = requestid
831
+ end
832
+
833
+ def deserialize(params)
834
+ unless params['MountTargets'].nil?
835
+ @MountTargets = []
836
+ params['MountTargets'].each do |i|
837
+ mountinfo_tmp = MountInfo.new
838
+ mountinfo_tmp.deserialize(i)
839
+ @MountTargets << mountinfo_tmp
840
+ end
841
+ end
842
+ @NumberOfMountTargets = params['NumberOfMountTargets']
843
+ @RequestId = params['RequestId']
844
+ end
845
+ end
846
+
847
+ # 文件系统客户端信息
848
+ class FileSystemClient < TencentCloud::Common::AbstractModel
849
+ # @param CfsVip: 文件系统IP地址
850
+ # @type CfsVip: String
851
+ # @param ClientIp: 客户端IP地址
852
+ # @type ClientIp: String
853
+ # @param VpcId: 文件系统所属VPCID
854
+ # @type VpcId: String
855
+ # @param Zone: 可用区名称,例如ap-beijing-1,请参考 概览文档中的地域与可用区列表
856
+ # @type Zone: String
857
+ # @param ZoneName: 可用区中文名称
858
+ # @type ZoneName: String
859
+ # @param MountDirectory: 该文件系统被挂载到客户端上的路径信息
860
+ # @type MountDirectory: String
861
+
862
+ attr_accessor :CfsVip, :ClientIp, :VpcId, :Zone, :ZoneName, :MountDirectory
863
+
864
+ def initialize(cfsvip=nil, clientip=nil, vpcid=nil, zone=nil, zonename=nil, mountdirectory=nil)
865
+ @CfsVip = cfsvip
866
+ @ClientIp = clientip
867
+ @VpcId = vpcid
868
+ @Zone = zone
869
+ @ZoneName = zonename
870
+ @MountDirectory = mountdirectory
871
+ end
872
+
873
+ def deserialize(params)
874
+ @CfsVip = params['CfsVip']
875
+ @ClientIp = params['ClientIp']
876
+ @VpcId = params['VpcId']
877
+ @Zone = params['Zone']
878
+ @ZoneName = params['ZoneName']
879
+ @MountDirectory = params['MountDirectory']
880
+ end
881
+ end
882
+
883
+ # 文件系统基本信息
884
+ class FileSystemInfo < TencentCloud::Common::AbstractModel
885
+ # @param CreationTime: 创建时间
886
+ # @type CreationTime: String
887
+ # @param CreationToken: 用户自定义名称
888
+ # @type CreationToken: String
889
+ # @param FileSystemId: 文件系统 ID
890
+ # @type FileSystemId: String
891
+ # @param LifeCycleState: 文件系统状态
892
+ # @type LifeCycleState: String
893
+ # @param SizeByte: 文件系统已使用容量
894
+ # @type SizeByte: Integer
895
+ # @param SizeLimit: 文件系统最大空间限制
896
+ # @type SizeLimit: Integer
897
+ # @param ZoneId: 区域 ID
898
+ # @type ZoneId: Integer
899
+ # @param Zone: 区域名称
900
+ # @type Zone: String
901
+ # @param Protocol: 文件系统协议类型
902
+ # @type Protocol: String
903
+ # @param StorageType: 文件系统存储类型
904
+ # @type StorageType: String
905
+ # @param StorageResourcePkg: 文件系统绑定的预付费存储包
906
+ # @type StorageResourcePkg: String
907
+ # @param BandwidthResourcePkg: 文件系统绑定的预付费带宽包(暂未支持)
908
+ # @type BandwidthResourcePkg: String
909
+ # @param PGroup: 文件系统绑定权限组信息
910
+ # @type PGroup: :class:`Tencentcloud::Cfs.v20190719.models.PGroup`
911
+ # @param FsName: 用户自定义名称
912
+ # @type FsName: String
913
+ # @param Encrypted: 文件系统是否加密
914
+ # @type Encrypted: Boolean
915
+ # @param KmsKeyId: 加密所使用的密钥,可以为密钥的 ID 或者 ARN
916
+ # @type KmsKeyId: String
917
+ # @param AppId: 应用ID
918
+ # @type AppId: Integer
919
+ # @param BandwidthLimit: 文件系统吞吐上限,吞吐上限是根据文件系统当前已使用存储量、绑定的存储资源包以及吞吐资源包一同确定
920
+ # @type BandwidthLimit: Float
921
+ # @param Capacity: 文件系统总容量
922
+ # @type Capacity: Integer
923
+
924
+ attr_accessor :CreationTime, :CreationToken, :FileSystemId, :LifeCycleState, :SizeByte, :SizeLimit, :ZoneId, :Zone, :Protocol, :StorageType, :StorageResourcePkg, :BandwidthResourcePkg, :PGroup, :FsName, :Encrypted, :KmsKeyId, :AppId, :BandwidthLimit, :Capacity
925
+
926
+ def initialize(creationtime=nil, creationtoken=nil, filesystemid=nil, lifecyclestate=nil, sizebyte=nil, sizelimit=nil, zoneid=nil, zone=nil, protocol=nil, storagetype=nil, storageresourcepkg=nil, bandwidthresourcepkg=nil, pgroup=nil, fsname=nil, encrypted=nil, kmskeyid=nil, appid=nil, bandwidthlimit=nil, capacity=nil)
927
+ @CreationTime = creationtime
928
+ @CreationToken = creationtoken
929
+ @FileSystemId = filesystemid
930
+ @LifeCycleState = lifecyclestate
931
+ @SizeByte = sizebyte
932
+ @SizeLimit = sizelimit
933
+ @ZoneId = zoneid
934
+ @Zone = zone
935
+ @Protocol = protocol
936
+ @StorageType = storagetype
937
+ @StorageResourcePkg = storageresourcepkg
938
+ @BandwidthResourcePkg = bandwidthresourcepkg
939
+ @PGroup = pgroup
940
+ @FsName = fsname
941
+ @Encrypted = encrypted
942
+ @KmsKeyId = kmskeyid
943
+ @AppId = appid
944
+ @BandwidthLimit = bandwidthlimit
945
+ @Capacity = capacity
946
+ end
947
+
948
+ def deserialize(params)
949
+ @CreationTime = params['CreationTime']
950
+ @CreationToken = params['CreationToken']
951
+ @FileSystemId = params['FileSystemId']
952
+ @LifeCycleState = params['LifeCycleState']
953
+ @SizeByte = params['SizeByte']
954
+ @SizeLimit = params['SizeLimit']
955
+ @ZoneId = params['ZoneId']
956
+ @Zone = params['Zone']
957
+ @Protocol = params['Protocol']
958
+ @StorageType = params['StorageType']
959
+ @StorageResourcePkg = params['StorageResourcePkg']
960
+ @BandwidthResourcePkg = params['BandwidthResourcePkg']
961
+ unless params['PGroup'].nil?
962
+ @PGroup = PGroup.new
963
+ @PGroup.deserialize(params['PGroup'])
964
+ end
965
+ @FsName = params['FsName']
966
+ @Encrypted = params['Encrypted']
967
+ @KmsKeyId = params['KmsKeyId']
968
+ @AppId = params['AppId']
969
+ @BandwidthLimit = params['BandwidthLimit']
970
+ @Capacity = params['Capacity']
971
+ end
972
+ end
973
+
974
+ # 挂载点信息
975
+ class MountInfo < TencentCloud::Common::AbstractModel
976
+ # @param FileSystemId: 文件系统 ID
977
+ # @type FileSystemId: String
978
+ # @param MountTargetId: 挂载点 ID
979
+ # @type MountTargetId: String
980
+ # @param IpAddress: 挂载点 IP
981
+ # @type IpAddress: String
982
+ # @param FSID: 挂载根目录
983
+ # @type FSID: String
984
+ # @param LifeCycleState: 挂载点状态
985
+ # @type LifeCycleState: String
986
+ # @param NetworkInterface: 网络类型
987
+ # @type NetworkInterface: String
988
+ # @param VpcId: 私有网络 ID
989
+ # @type VpcId: String
990
+ # @param VpcName: 私有网络名称
991
+ # @type VpcName: String
992
+ # @param SubnetId: 子网 Id
993
+ # @type SubnetId: String
994
+ # @param SubnetName: 子网名称
995
+ # @type SubnetName: String
996
+ # @param CcnID: CFS Turbo使用的云联网ID
997
+ # @type CcnID: String
998
+ # @param CidrBlock: 云联网中CFS Turbo使用的网段
999
+ # @type CidrBlock: String
1000
+
1001
+ attr_accessor :FileSystemId, :MountTargetId, :IpAddress, :FSID, :LifeCycleState, :NetworkInterface, :VpcId, :VpcName, :SubnetId, :SubnetName, :CcnID, :CidrBlock
1002
+
1003
+ def initialize(filesystemid=nil, mounttargetid=nil, ipaddress=nil, fsid=nil, lifecyclestate=nil, networkinterface=nil, vpcid=nil, vpcname=nil, subnetid=nil, subnetname=nil, ccnid=nil, cidrblock=nil)
1004
+ @FileSystemId = filesystemid
1005
+ @MountTargetId = mounttargetid
1006
+ @IpAddress = ipaddress
1007
+ @FSID = fsid
1008
+ @LifeCycleState = lifecyclestate
1009
+ @NetworkInterface = networkinterface
1010
+ @VpcId = vpcid
1011
+ @VpcName = vpcname
1012
+ @SubnetId = subnetid
1013
+ @SubnetName = subnetname
1014
+ @CcnID = ccnid
1015
+ @CidrBlock = cidrblock
1016
+ end
1017
+
1018
+ def deserialize(params)
1019
+ @FileSystemId = params['FileSystemId']
1020
+ @MountTargetId = params['MountTargetId']
1021
+ @IpAddress = params['IpAddress']
1022
+ @FSID = params['FSID']
1023
+ @LifeCycleState = params['LifeCycleState']
1024
+ @NetworkInterface = params['NetworkInterface']
1025
+ @VpcId = params['VpcId']
1026
+ @VpcName = params['VpcName']
1027
+ @SubnetId = params['SubnetId']
1028
+ @SubnetName = params['SubnetName']
1029
+ @CcnID = params['CcnID']
1030
+ @CidrBlock = params['CidrBlock']
1031
+ end
1032
+ end
1033
+
1034
+ # 文件系统绑定权限组信息
1035
+ class PGroup < TencentCloud::Common::AbstractModel
1036
+ # @param PGroupId: 权限组ID
1037
+ # @type PGroupId: String
1038
+ # @param Name: 权限组名称
1039
+ # @type Name: String
1040
+
1041
+ attr_accessor :PGroupId, :Name
1042
+
1043
+ def initialize(pgroupid=nil, name=nil)
1044
+ @PGroupId = pgroupid
1045
+ @Name = name
1046
+ end
1047
+
1048
+ def deserialize(params)
1049
+ @PGroupId = params['PGroupId']
1050
+ @Name = params['Name']
1051
+ end
1052
+ end
1053
+
1054
+ # 权限组数组
1055
+ class PGroupInfo < TencentCloud::Common::AbstractModel
1056
+ # @param PGroupId: 权限组ID
1057
+ # @type PGroupId: String
1058
+ # @param Name: 权限组名称
1059
+ # @type Name: String
1060
+ # @param DescInfo: 描述信息
1061
+ # @type DescInfo: String
1062
+ # @param CDate: 创建时间
1063
+ # @type CDate: String
1064
+ # @param BindCfsNum: 关联文件系统个数
1065
+ # @type BindCfsNum: Integer
1066
+
1067
+ attr_accessor :PGroupId, :Name, :DescInfo, :CDate, :BindCfsNum
1068
+
1069
+ def initialize(pgroupid=nil, name=nil, descinfo=nil, cdate=nil, bindcfsnum=nil)
1070
+ @PGroupId = pgroupid
1071
+ @Name = name
1072
+ @DescInfo = descinfo
1073
+ @CDate = cdate
1074
+ @BindCfsNum = bindcfsnum
1075
+ end
1076
+
1077
+ def deserialize(params)
1078
+ @PGroupId = params['PGroupId']
1079
+ @Name = params['Name']
1080
+ @DescInfo = params['DescInfo']
1081
+ @CDate = params['CDate']
1082
+ @BindCfsNum = params['BindCfsNum']
1083
+ end
1084
+ end
1085
+
1086
+ # 权限组规则列表
1087
+ class PGroupRuleInfo < TencentCloud::Common::AbstractModel
1088
+ # @param RuleId: 规则ID
1089
+ # @type RuleId: String
1090
+ # @param AuthClientIp: 允许访问的客户端IP
1091
+ # @type AuthClientIp: String
1092
+ # @param RWPermission: 读写权限, ro为只读,rw为读写
1093
+ # @type RWPermission: String
1094
+ # @param UserPermission: 用户权限。其中all_squash为所有访问用户都会被映射为匿名用户或用户组;no_all_squash为访问用户会先与本机用户匹配,匹配失败后再映射为匿名用户或用户组;root_squash为将来访的root用户映射为匿名用户或用户组;no_root_squash为来访的root用户保持root帐号权限。
1095
+ # @type UserPermission: String
1096
+ # @param Priority: 规则优先级,1-100。 其中 1 为最高,100为最低
1097
+ # @type Priority: Integer
1098
+
1099
+ attr_accessor :RuleId, :AuthClientIp, :RWPermission, :UserPermission, :Priority
1100
+
1101
+ def initialize(ruleid=nil, authclientip=nil, rwpermission=nil, userpermission=nil, priority=nil)
1102
+ @RuleId = ruleid
1103
+ @AuthClientIp = authclientip
1104
+ @RWPermission = rwpermission
1105
+ @UserPermission = userpermission
1106
+ @Priority = priority
1107
+ end
1108
+
1109
+ def deserialize(params)
1110
+ @RuleId = params['RuleId']
1111
+ @AuthClientIp = params['AuthClientIp']
1112
+ @RWPermission = params['RWPermission']
1113
+ @UserPermission = params['UserPermission']
1114
+ @Priority = params['Priority']
1115
+ end
1116
+ end
1117
+
1118
+ # SignUpCfsService请求参数结构体
1119
+ class SignUpCfsServiceRequest < TencentCloud::Common::AbstractModel
1120
+
1121
+
1122
+ def initialize()
1123
+ end
1124
+
1125
+ def deserialize(params)
1126
+ end
1127
+ end
1128
+
1129
+ # SignUpCfsService返回参数结构体
1130
+ class SignUpCfsServiceResponse < TencentCloud::Common::AbstractModel
1131
+ # @param CfsServiceStatus: 该用户当前 CFS 服务的状态,none 是未开通,creating 是开通中,created 是已开通
1132
+ # @type CfsServiceStatus: String
1133
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1134
+ # @type RequestId: String
1135
+
1136
+ attr_accessor :CfsServiceStatus, :RequestId
1137
+
1138
+ def initialize(cfsservicestatus=nil, requestid=nil)
1139
+ @CfsServiceStatus = cfsservicestatus
1140
+ @RequestId = requestid
1141
+ end
1142
+
1143
+ def deserialize(params)
1144
+ @CfsServiceStatus = params['CfsServiceStatus']
1145
+ @RequestId = params['RequestId']
1146
+ end
1147
+ end
1148
+
1149
+ # Tag信息单元
1150
+ class TagInfo < TencentCloud::Common::AbstractModel
1151
+ # @param TagKey: 标签键
1152
+ # @type TagKey: String
1153
+ # @param TagValue: 标签值
1154
+ # @type TagValue: String
1155
+
1156
+ attr_accessor :TagKey, :TagValue
1157
+
1158
+ def initialize(tagkey=nil, tagvalue=nil)
1159
+ @TagKey = tagkey
1160
+ @TagValue = tagvalue
1161
+ end
1162
+
1163
+ def deserialize(params)
1164
+ @TagKey = params['TagKey']
1165
+ @TagValue = params['TagValue']
1166
+ end
1167
+ end
1168
+
1169
+ # UpdateCfsFileSystemName请求参数结构体
1170
+ class UpdateCfsFileSystemNameRequest < TencentCloud::Common::AbstractModel
1171
+ # @param FileSystemId: 文件系统 ID
1172
+ # @type FileSystemId: String
1173
+ # @param FsName: 用户自定义文件系统名称
1174
+ # @type FsName: String
1175
+
1176
+ attr_accessor :FileSystemId, :FsName
1177
+
1178
+ def initialize(filesystemid=nil, fsname=nil)
1179
+ @FileSystemId = filesystemid
1180
+ @FsName = fsname
1181
+ end
1182
+
1183
+ def deserialize(params)
1184
+ @FileSystemId = params['FileSystemId']
1185
+ @FsName = params['FsName']
1186
+ end
1187
+ end
1188
+
1189
+ # UpdateCfsFileSystemName返回参数结构体
1190
+ class UpdateCfsFileSystemNameResponse < TencentCloud::Common::AbstractModel
1191
+ # @param CreationToken: 用户自定义文件系统名称
1192
+ # @type CreationToken: String
1193
+ # @param FileSystemId: 文件系统ID
1194
+ # @type FileSystemId: String
1195
+ # @param FsName: 用户自定义文件系统名称
1196
+ # @type FsName: String
1197
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1198
+ # @type RequestId: String
1199
+
1200
+ attr_accessor :CreationToken, :FileSystemId, :FsName, :RequestId
1201
+
1202
+ def initialize(creationtoken=nil, filesystemid=nil, fsname=nil, requestid=nil)
1203
+ @CreationToken = creationtoken
1204
+ @FileSystemId = filesystemid
1205
+ @FsName = fsname
1206
+ @RequestId = requestid
1207
+ end
1208
+
1209
+ def deserialize(params)
1210
+ @CreationToken = params['CreationToken']
1211
+ @FileSystemId = params['FileSystemId']
1212
+ @FsName = params['FsName']
1213
+ @RequestId = params['RequestId']
1214
+ end
1215
+ end
1216
+
1217
+ # UpdateCfsFileSystemPGroup请求参数结构体
1218
+ class UpdateCfsFileSystemPGroupRequest < TencentCloud::Common::AbstractModel
1219
+ # @param PGroupId: 权限组 ID
1220
+ # @type PGroupId: String
1221
+ # @param FileSystemId: 文件系统 ID
1222
+ # @type FileSystemId: String
1223
+
1224
+ attr_accessor :PGroupId, :FileSystemId
1225
+
1226
+ def initialize(pgroupid=nil, filesystemid=nil)
1227
+ @PGroupId = pgroupid
1228
+ @FileSystemId = filesystemid
1229
+ end
1230
+
1231
+ def deserialize(params)
1232
+ @PGroupId = params['PGroupId']
1233
+ @FileSystemId = params['FileSystemId']
1234
+ end
1235
+ end
1236
+
1237
+ # UpdateCfsFileSystemPGroup返回参数结构体
1238
+ class UpdateCfsFileSystemPGroupResponse < TencentCloud::Common::AbstractModel
1239
+ # @param PGroupId: 权限组 ID
1240
+ # @type PGroupId: String
1241
+ # @param FileSystemId: 文件系统 ID
1242
+ # @type FileSystemId: String
1243
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1244
+ # @type RequestId: String
1245
+
1246
+ attr_accessor :PGroupId, :FileSystemId, :RequestId
1247
+
1248
+ def initialize(pgroupid=nil, filesystemid=nil, requestid=nil)
1249
+ @PGroupId = pgroupid
1250
+ @FileSystemId = filesystemid
1251
+ @RequestId = requestid
1252
+ end
1253
+
1254
+ def deserialize(params)
1255
+ @PGroupId = params['PGroupId']
1256
+ @FileSystemId = params['FileSystemId']
1257
+ @RequestId = params['RequestId']
1258
+ end
1259
+ end
1260
+
1261
+ # UpdateCfsFileSystemSizeLimit请求参数结构体
1262
+ class UpdateCfsFileSystemSizeLimitRequest < TencentCloud::Common::AbstractModel
1263
+ # @param FsLimit: 文件系统容量限制大小,输入范围0-1073741824, 单位为GB;其中输入值为0时,表示不限制文件系统容量。
1264
+ # @type FsLimit: Integer
1265
+ # @param FileSystemId: 文件系统ID,目前仅支持标准型文件系统。
1266
+ # @type FileSystemId: String
1267
+
1268
+ attr_accessor :FsLimit, :FileSystemId
1269
+
1270
+ def initialize(fslimit=nil, filesystemid=nil)
1271
+ @FsLimit = fslimit
1272
+ @FileSystemId = filesystemid
1273
+ end
1274
+
1275
+ def deserialize(params)
1276
+ @FsLimit = params['FsLimit']
1277
+ @FileSystemId = params['FileSystemId']
1278
+ end
1279
+ end
1280
+
1281
+ # UpdateCfsFileSystemSizeLimit返回参数结构体
1282
+ class UpdateCfsFileSystemSizeLimitResponse < TencentCloud::Common::AbstractModel
1283
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1284
+ # @type RequestId: String
1285
+
1286
+ attr_accessor :RequestId
1287
+
1288
+ def initialize(requestid=nil)
1289
+ @RequestId = requestid
1290
+ end
1291
+
1292
+ def deserialize(params)
1293
+ @RequestId = params['RequestId']
1294
+ end
1295
+ end
1296
+
1297
+ # UpdateCfsPGroup请求参数结构体
1298
+ class UpdateCfsPGroupRequest < TencentCloud::Common::AbstractModel
1299
+ # @param PGroupId: 权限组 ID
1300
+ # @type PGroupId: String
1301
+ # @param Name: 权限组名称,1-64个字符且只能为中文,字母,数字,下划线或横线
1302
+ # @type Name: String
1303
+ # @param DescInfo: 权限组描述信息,1-255个字符
1304
+ # @type DescInfo: String
1305
+
1306
+ attr_accessor :PGroupId, :Name, :DescInfo
1307
+
1308
+ def initialize(pgroupid=nil, name=nil, descinfo=nil)
1309
+ @PGroupId = pgroupid
1310
+ @Name = name
1311
+ @DescInfo = descinfo
1312
+ end
1313
+
1314
+ def deserialize(params)
1315
+ @PGroupId = params['PGroupId']
1316
+ @Name = params['Name']
1317
+ @DescInfo = params['DescInfo']
1318
+ end
1319
+ end
1320
+
1321
+ # UpdateCfsPGroup返回参数结构体
1322
+ class UpdateCfsPGroupResponse < TencentCloud::Common::AbstractModel
1323
+ # @param PGroupId: 权限组ID
1324
+ # @type PGroupId: String
1325
+ # @param Name: 权限组名称
1326
+ # @type Name: String
1327
+ # @param DescInfo: 描述信息
1328
+ # @type DescInfo: String
1329
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1330
+ # @type RequestId: String
1331
+
1332
+ attr_accessor :PGroupId, :Name, :DescInfo, :RequestId
1333
+
1334
+ def initialize(pgroupid=nil, name=nil, descinfo=nil, requestid=nil)
1335
+ @PGroupId = pgroupid
1336
+ @Name = name
1337
+ @DescInfo = descinfo
1338
+ @RequestId = requestid
1339
+ end
1340
+
1341
+ def deserialize(params)
1342
+ @PGroupId = params['PGroupId']
1343
+ @Name = params['Name']
1344
+ @DescInfo = params['DescInfo']
1345
+ @RequestId = params['RequestId']
1346
+ end
1347
+ end
1348
+
1349
+ # UpdateCfsRule请求参数结构体
1350
+ class UpdateCfsRuleRequest < TencentCloud::Common::AbstractModel
1351
+ # @param PGroupId: 权限组 ID
1352
+ # @type PGroupId: String
1353
+ # @param RuleId: 规则 ID
1354
+ # @type RuleId: String
1355
+ # @param AuthClientIp: 可以填写单个 IP 或者单个网段,例如 10.1.10.11 或者 10.10.1.0/24。默认来访地址为*表示允许所有。同时需要注意,此处需填写 CVM 的内网 IP。
1356
+ # @type AuthClientIp: String
1357
+ # @param RWPermission: 读写权限, 值为RO、RW;其中 RO 为只读,RW 为读写,不填默认为只读
1358
+ # @type RWPermission: String
1359
+ # @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。
1360
+ # @type UserPermission: String
1361
+ # @param Priority: 规则优先级,参数范围1-100。 其中 1 为最高,100为最低
1362
+ # @type Priority: Integer
1363
+
1364
+ attr_accessor :PGroupId, :RuleId, :AuthClientIp, :RWPermission, :UserPermission, :Priority
1365
+
1366
+ def initialize(pgroupid=nil, ruleid=nil, authclientip=nil, rwpermission=nil, userpermission=nil, priority=nil)
1367
+ @PGroupId = pgroupid
1368
+ @RuleId = ruleid
1369
+ @AuthClientIp = authclientip
1370
+ @RWPermission = rwpermission
1371
+ @UserPermission = userpermission
1372
+ @Priority = priority
1373
+ end
1374
+
1375
+ def deserialize(params)
1376
+ @PGroupId = params['PGroupId']
1377
+ @RuleId = params['RuleId']
1378
+ @AuthClientIp = params['AuthClientIp']
1379
+ @RWPermission = params['RWPermission']
1380
+ @UserPermission = params['UserPermission']
1381
+ @Priority = params['Priority']
1382
+ end
1383
+ end
1384
+
1385
+ # UpdateCfsRule返回参数结构体
1386
+ class UpdateCfsRuleResponse < TencentCloud::Common::AbstractModel
1387
+ # @param PGroupId: 权限组 ID
1388
+ # @type PGroupId: String
1389
+ # @param RuleId: 规则 ID
1390
+ # @type RuleId: String
1391
+ # @param AuthClientIp: 允许访问的客户端 IP 或者 IP 段
1392
+ # @type AuthClientIp: String
1393
+ # @param RWPermission: 读写权限
1394
+ # @type RWPermission: String
1395
+ # @param UserPermission: 用户权限
1396
+ # @type UserPermission: String
1397
+ # @param Priority: 优先级
1398
+ # @type Priority: Integer
1399
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1400
+ # @type RequestId: String
1401
+
1402
+ attr_accessor :PGroupId, :RuleId, :AuthClientIp, :RWPermission, :UserPermission, :Priority, :RequestId
1403
+
1404
+ def initialize(pgroupid=nil, ruleid=nil, authclientip=nil, rwpermission=nil, userpermission=nil, priority=nil, requestid=nil)
1405
+ @PGroupId = pgroupid
1406
+ @RuleId = ruleid
1407
+ @AuthClientIp = authclientip
1408
+ @RWPermission = rwpermission
1409
+ @UserPermission = userpermission
1410
+ @Priority = priority
1411
+ @RequestId = requestid
1412
+ end
1413
+
1414
+ def deserialize(params)
1415
+ @PGroupId = params['PGroupId']
1416
+ @RuleId = params['RuleId']
1417
+ @AuthClientIp = params['AuthClientIp']
1418
+ @RWPermission = params['RWPermission']
1419
+ @UserPermission = params['UserPermission']
1420
+ @Priority = params['Priority']
1421
+ @RequestId = params['RequestId']
1422
+ end
1423
+ end
1424
+
1425
+ end
1426
+ end
1427
+ end
1428
+