tencentcloud-sdk-cfs 3.0.448 → 3.0.449

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b405a3d1306dcbf209679a8b8c991c17813df93
4
- data.tar.gz: 31a1cc1e99e0e84b4e38b4bcfba9cb6987ba47d5
3
+ metadata.gz: ee06bd9effd130032b601c76c9fec4046decd24d
4
+ data.tar.gz: 957f1ec096a9aa00964b5c3dda2df6e5553e72be
5
5
  SHA512:
6
- metadata.gz: 0eb34cb1b4b76bbed33b59e35e1850e3282f4b11cdf620741e6fe9b7e41e0114718ed3984a62180c8f720cc40337b319db576316a6f3ac67083d3556dba8b591
7
- data.tar.gz: 0967c3413251728982b31bb67c88649d1fb6ac5536fe9f54b03efa6c9c6e4ae0e5b5c26e3b402531f612a1dae5ba251daffa54a18d1bb22ce20c05ae76cacaf6
6
+ metadata.gz: 993eac9721e01636c3db01bbdc8724aa1cf92745eb78725daed42a81ea74a243ecb5a048301cb946e3ddaae24257fae2a4543cc002ba69ec3069a7318c60a31d
7
+ data.tar.gz: 73e20d1c6b7de576297567b001a8c22490dc0cbb869565c2da7edd75f724a47228677f8d5abb39ce593655809320e5062f9001c70f0eed1be67027fb903c96ee
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.448
1
+ 3.0.449
@@ -317,6 +317,30 @@ module TencentCloud
317
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
318
  end
319
319
 
320
+ # 指定条件删除文件系统配额
321
+
322
+ # @param request: Request instance for DeleteUserQuota.
323
+ # @type request: :class:`Tencentcloud::cfs::V20190719::DeleteUserQuotaRequest`
324
+ # @rtype: :class:`Tencentcloud::cfs::V20190719::DeleteUserQuotaResponse`
325
+ def DeleteUserQuota(request)
326
+ body = send_request('DeleteUserQuota', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DeleteUserQuotaResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
320
344
  # 查询文件系统快照定期策略列表信息
321
345
 
322
346
  # @param request: Request instance for DescribeAutoSnapshotPolicies.
@@ -581,6 +605,54 @@ module TencentCloud
581
605
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
606
  end
583
607
 
608
+ # 查询文件系统配额
609
+
610
+ # @param request: Request instance for DescribeUserQuota.
611
+ # @type request: :class:`Tencentcloud::cfs::V20190719::DescribeUserQuotaRequest`
612
+ # @rtype: :class:`Tencentcloud::cfs::V20190719::DescribeUserQuotaResponse`
613
+ def DescribeUserQuota(request)
614
+ body = send_request('DescribeUserQuota', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = DescribeUserQuotaResponse.new
618
+ model.deserialize(response['Response'])
619
+ model
620
+ else
621
+ code = response['Response']['Error']['Code']
622
+ message = response['Response']['Error']['Message']
623
+ reqid = response['Response']['RequestId']
624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
625
+ end
626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
627
+ raise e
628
+ rescue StandardError => e
629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
+ end
631
+
632
+ # 设置文件系统配额,提供UID/GID的配额设置的接口
633
+
634
+ # @param request: Request instance for SetUserQuota.
635
+ # @type request: :class:`Tencentcloud::cfs::V20190719::SetUserQuotaRequest`
636
+ # @rtype: :class:`Tencentcloud::cfs::V20190719::SetUserQuotaResponse`
637
+ def SetUserQuota(request)
638
+ body = send_request('SetUserQuota', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = SetUserQuotaResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
584
656
  # 本接口(SignUpCfsService)用于开通CFS服务。
585
657
 
586
658
  # @param request: Request instance for SignUpCfsService.
@@ -831,6 +831,46 @@ module TencentCloud
831
831
  end
832
832
  end
833
833
 
834
+ # DeleteUserQuota请求参数结构体
835
+ class DeleteUserQuotaRequest < TencentCloud::Common::AbstractModel
836
+ # @param FileSystemId: 文件系统 ID
837
+ # @type FileSystemId: String
838
+ # @param UserType: 指定配额类型,包括Uid、Gid
839
+ # @type UserType: String
840
+ # @param UserId: UID/GID信息
841
+ # @type UserId: String
842
+
843
+ attr_accessor :FileSystemId, :UserType, :UserId
844
+
845
+ def initialize(filesystemid=nil, usertype=nil, userid=nil)
846
+ @FileSystemId = filesystemid
847
+ @UserType = usertype
848
+ @UserId = userid
849
+ end
850
+
851
+ def deserialize(params)
852
+ @FileSystemId = params['FileSystemId']
853
+ @UserType = params['UserType']
854
+ @UserId = params['UserId']
855
+ end
856
+ end
857
+
858
+ # DeleteUserQuota返回参数结构体
859
+ class DeleteUserQuotaResponse < TencentCloud::Common::AbstractModel
860
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
861
+ # @type RequestId: String
862
+
863
+ attr_accessor :RequestId
864
+
865
+ def initialize(requestid=nil)
866
+ @RequestId = requestid
867
+ end
868
+
869
+ def deserialize(params)
870
+ @RequestId = params['RequestId']
871
+ end
872
+ end
873
+
834
874
  # DescribeAutoSnapshotPolicies请求参数结构体
835
875
  class DescribeAutoSnapshotPoliciesRequest < TencentCloud::Common::AbstractModel
836
876
  # @param AutoSnapshotPolicyId: 快照策略ID
@@ -1375,6 +1415,74 @@ module TencentCloud
1375
1415
  end
1376
1416
  end
1377
1417
 
1418
+ # DescribeUserQuota请求参数结构体
1419
+ class DescribeUserQuotaRequest < TencentCloud::Common::AbstractModel
1420
+ # @param FileSystemId: 文件系统 ID
1421
+ # @type FileSystemId: String
1422
+ # @param Filters: 过滤条件。
1423
+ # <br><li>UserType - Array of String - 是否必填:否 -(过滤条件)按配额类型过滤。(Uid| Gid )
1424
+ # <br><li>UserId - Array of String - 是否必填:否 -(过滤条件)按UID/GID过滤。
1425
+ # @type Filters: Array
1426
+ # @param Offset: Offset 分页码
1427
+ # @type Offset: Integer
1428
+ # @param Limit: Limit 页面大小
1429
+ # @type Limit: Integer
1430
+
1431
+ attr_accessor :FileSystemId, :Filters, :Offset, :Limit
1432
+
1433
+ def initialize(filesystemid=nil, filters=nil, offset=nil, limit=nil)
1434
+ @FileSystemId = filesystemid
1435
+ @Filters = filters
1436
+ @Offset = offset
1437
+ @Limit = limit
1438
+ end
1439
+
1440
+ def deserialize(params)
1441
+ @FileSystemId = params['FileSystemId']
1442
+ unless params['Filters'].nil?
1443
+ @Filters = []
1444
+ params['Filters'].each do |i|
1445
+ filter_tmp = Filter.new
1446
+ filter_tmp.deserialize(i)
1447
+ @Filters << filter_tmp
1448
+ end
1449
+ end
1450
+ @Offset = params['Offset']
1451
+ @Limit = params['Limit']
1452
+ end
1453
+ end
1454
+
1455
+ # DescribeUserQuota返回参数结构体
1456
+ class DescribeUserQuotaResponse < TencentCloud::Common::AbstractModel
1457
+ # @param TotalCount: UserQuota条目总数
1458
+ # @type TotalCount: Integer
1459
+ # @param UserQuotaInfo: UserQuota条目
1460
+ # @type UserQuotaInfo: Array
1461
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1462
+ # @type RequestId: String
1463
+
1464
+ attr_accessor :TotalCount, :UserQuotaInfo, :RequestId
1465
+
1466
+ def initialize(totalcount=nil, userquotainfo=nil, requestid=nil)
1467
+ @TotalCount = totalcount
1468
+ @UserQuotaInfo = userquotainfo
1469
+ @RequestId = requestid
1470
+ end
1471
+
1472
+ def deserialize(params)
1473
+ @TotalCount = params['TotalCount']
1474
+ unless params['UserQuotaInfo'].nil?
1475
+ @UserQuotaInfo = []
1476
+ params['UserQuotaInfo'].each do |i|
1477
+ userquota_tmp = UserQuota.new
1478
+ userquota_tmp.deserialize(i)
1479
+ @UserQuotaInfo << userquota_tmp
1480
+ end
1481
+ end
1482
+ @RequestId = params['RequestId']
1483
+ end
1484
+ end
1485
+
1378
1486
  # 绑定快照策略的文件系统信息
1379
1487
  class FileSystemByPolicy < TencentCloud::Common::AbstractModel
1380
1488
  # @param CreationToken: 文件系统名称
@@ -1717,6 +1825,54 @@ module TencentCloud
1717
1825
  end
1718
1826
  end
1719
1827
 
1828
+ # SetUserQuota请求参数结构体
1829
+ class SetUserQuotaRequest < TencentCloud::Common::AbstractModel
1830
+ # @param FileSystemId: 文件系统 ID
1831
+ # @type FileSystemId: String
1832
+ # @param UserType: 指定配额类型,包括Uid、Gid
1833
+ # @type UserType: String
1834
+ # @param UserId: UID/GID信息
1835
+ # @type UserId: String
1836
+ # @param CapacityHardLimit: 容量硬限制,单位GiB
1837
+ # @type CapacityHardLimit: Integer
1838
+ # @param FileHardLimit: 文件硬限制,单位个
1839
+ # @type FileHardLimit: Integer
1840
+
1841
+ attr_accessor :FileSystemId, :UserType, :UserId, :CapacityHardLimit, :FileHardLimit
1842
+
1843
+ def initialize(filesystemid=nil, usertype=nil, userid=nil, capacityhardlimit=nil, filehardlimit=nil)
1844
+ @FileSystemId = filesystemid
1845
+ @UserType = usertype
1846
+ @UserId = userid
1847
+ @CapacityHardLimit = capacityhardlimit
1848
+ @FileHardLimit = filehardlimit
1849
+ end
1850
+
1851
+ def deserialize(params)
1852
+ @FileSystemId = params['FileSystemId']
1853
+ @UserType = params['UserType']
1854
+ @UserId = params['UserId']
1855
+ @CapacityHardLimit = params['CapacityHardLimit']
1856
+ @FileHardLimit = params['FileHardLimit']
1857
+ end
1858
+ end
1859
+
1860
+ # SetUserQuota返回参数结构体
1861
+ class SetUserQuotaResponse < TencentCloud::Common::AbstractModel
1862
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1863
+ # @type RequestId: String
1864
+
1865
+ attr_accessor :RequestId
1866
+
1867
+ def initialize(requestid=nil)
1868
+ @RequestId = requestid
1869
+ end
1870
+
1871
+ def deserialize(params)
1872
+ @RequestId = params['RequestId']
1873
+ end
1874
+ end
1875
+
1720
1876
  # SignUpCfsService请求参数结构体
1721
1877
  class SignUpCfsServiceRequest < TencentCloud::Common::AbstractModel
1722
1878
 
@@ -2291,6 +2447,38 @@ module TencentCloud
2291
2447
  end
2292
2448
  end
2293
2449
 
2450
+ # 文件系统配额信息
2451
+ class UserQuota < TencentCloud::Common::AbstractModel
2452
+ # @param UserType: 指定配额类型,包括Uid、Gid
2453
+ # @type UserType: String
2454
+ # @param UserId: UID/GID信息
2455
+ # @type UserId: String
2456
+ # @param CapacityHardLimit: 容量硬限制,单位GiB
2457
+ # @type CapacityHardLimit: Integer
2458
+ # @param FileHardLimit: 文件硬限制,单位个
2459
+ # @type FileHardLimit: Integer
2460
+ # @param FileSystemId: 文件系统ID
2461
+ # @type FileSystemId: String
2462
+
2463
+ attr_accessor :UserType, :UserId, :CapacityHardLimit, :FileHardLimit, :FileSystemId
2464
+
2465
+ def initialize(usertype=nil, userid=nil, capacityhardlimit=nil, filehardlimit=nil, filesystemid=nil)
2466
+ @UserType = usertype
2467
+ @UserId = userid
2468
+ @CapacityHardLimit = capacityhardlimit
2469
+ @FileHardLimit = filehardlimit
2470
+ @FileSystemId = filesystemid
2471
+ end
2472
+
2473
+ def deserialize(params)
2474
+ @UserType = params['UserType']
2475
+ @UserId = params['UserId']
2476
+ @CapacityHardLimit = params['CapacityHardLimit']
2477
+ @FileHardLimit = params['FileHardLimit']
2478
+ @FileSystemId = params['FileSystemId']
2479
+ end
2480
+ end
2481
+
2294
2482
  end
2295
2483
  end
2296
2484
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.448
4
+ version: 3.0.449
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-10 00:00:00.000000000 Z
11
+ date: 2022-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common