tencentcloud-sdk-cfs 3.0.557 → 3.0.559
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190719/client.rb +48 -0
- data/lib/v20190719/models.rb +104 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fac5ea03462d30d3603a5cf7f63a5831b9ef25d
|
4
|
+
data.tar.gz: 62adfe68afa8491a52579e0600b1527f2be1027a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b344efd452919d2a36358d4409ee35c57900b75e0e09a453bb634f5e8bfa2302cb9476beb3efe2e70ea65aa44197a2c23e943d9bc2d4a1c32d2542084fd694b9
|
7
|
+
data.tar.gz: 2424ac495514a8addc7c26c22d4e7bb56388405974474dfc6278da358c6879b72995b1f690600b63098cf5555b18031543c1ed775d449f21b9ddb3702dfb91c2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.559
|
data/lib/v20190719/client.rb
CHANGED
@@ -729,6 +729,54 @@ module TencentCloud
|
|
729
729
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
730
730
|
end
|
731
731
|
|
732
|
+
# 用来设置文件系统扩容策略
|
733
|
+
|
734
|
+
# @param request: Request instance for ModifyFileSystemAutoScaleUpRule.
|
735
|
+
# @type request: :class:`Tencentcloud::cfs::V20190719::ModifyFileSystemAutoScaleUpRuleRequest`
|
736
|
+
# @rtype: :class:`Tencentcloud::cfs::V20190719::ModifyFileSystemAutoScaleUpRuleResponse`
|
737
|
+
def ModifyFileSystemAutoScaleUpRule(request)
|
738
|
+
body = send_request('ModifyFileSystemAutoScaleUpRule', request.serialize)
|
739
|
+
response = JSON.parse(body)
|
740
|
+
if response['Response'].key?('Error') == false
|
741
|
+
model = ModifyFileSystemAutoScaleUpRuleResponse.new
|
742
|
+
model.deserialize(response['Response'])
|
743
|
+
model
|
744
|
+
else
|
745
|
+
code = response['Response']['Error']['Code']
|
746
|
+
message = response['Response']['Error']['Message']
|
747
|
+
reqid = response['Response']['RequestId']
|
748
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
749
|
+
end
|
750
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
751
|
+
raise e
|
752
|
+
rescue StandardError => e
|
753
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
754
|
+
end
|
755
|
+
|
756
|
+
# 该接口用于对turbo 文件系统扩容使用
|
757
|
+
|
758
|
+
# @param request: Request instance for ScaleUpFileSystem.
|
759
|
+
# @type request: :class:`Tencentcloud::cfs::V20190719::ScaleUpFileSystemRequest`
|
760
|
+
# @rtype: :class:`Tencentcloud::cfs::V20190719::ScaleUpFileSystemResponse`
|
761
|
+
def ScaleUpFileSystem(request)
|
762
|
+
body = send_request('ScaleUpFileSystem', request.serialize)
|
763
|
+
response = JSON.parse(body)
|
764
|
+
if response['Response'].key?('Error') == false
|
765
|
+
model = ScaleUpFileSystemResponse.new
|
766
|
+
model.deserialize(response['Response'])
|
767
|
+
model
|
768
|
+
else
|
769
|
+
code = response['Response']['Error']['Code']
|
770
|
+
message = response['Response']['Error']['Message']
|
771
|
+
reqid = response['Response']['RequestId']
|
772
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
773
|
+
end
|
774
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
775
|
+
raise e
|
776
|
+
rescue StandardError => e
|
777
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
778
|
+
end
|
779
|
+
|
732
780
|
# 设置文件系统配额,提供UID/GID的配额设置的接口
|
733
781
|
|
734
782
|
# @param request: Request instance for SetUserQuota.
|
data/lib/v20190719/models.rb
CHANGED
@@ -2125,6 +2125,66 @@ module TencentCloud
|
|
2125
2125
|
end
|
2126
2126
|
end
|
2127
2127
|
|
2128
|
+
# ModifyFileSystemAutoScaleUpRule请求参数结构体
|
2129
|
+
class ModifyFileSystemAutoScaleUpRuleRequest < TencentCloud::Common::AbstractModel
|
2130
|
+
# @param FileSystemId: 文件系统id
|
2131
|
+
# @type FileSystemId: String
|
2132
|
+
# @param ScaleUpThreshold: 扩容阈值,范围[10-90]
|
2133
|
+
# @type ScaleUpThreshold: Integer
|
2134
|
+
# @param TargetThreshold: 扩容后目标阈值,范围[10-90],该值要小于ScaleUpThreshold
|
2135
|
+
# @type TargetThreshold: Integer
|
2136
|
+
# @param Status: 规则状态0:关闭,1 开启
|
2137
|
+
# @type Status: Integer
|
2138
|
+
|
2139
|
+
attr_accessor :FileSystemId, :ScaleUpThreshold, :TargetThreshold, :Status
|
2140
|
+
|
2141
|
+
def initialize(filesystemid=nil, scaleupthreshold=nil, targetthreshold=nil, status=nil)
|
2142
|
+
@FileSystemId = filesystemid
|
2143
|
+
@ScaleUpThreshold = scaleupthreshold
|
2144
|
+
@TargetThreshold = targetthreshold
|
2145
|
+
@Status = status
|
2146
|
+
end
|
2147
|
+
|
2148
|
+
def deserialize(params)
|
2149
|
+
@FileSystemId = params['FileSystemId']
|
2150
|
+
@ScaleUpThreshold = params['ScaleUpThreshold']
|
2151
|
+
@TargetThreshold = params['TargetThreshold']
|
2152
|
+
@Status = params['Status']
|
2153
|
+
end
|
2154
|
+
end
|
2155
|
+
|
2156
|
+
# ModifyFileSystemAutoScaleUpRule返回参数结构体
|
2157
|
+
class ModifyFileSystemAutoScaleUpRuleResponse < TencentCloud::Common::AbstractModel
|
2158
|
+
# @param FileSystemId: 文件系统id
|
2159
|
+
# @type FileSystemId: String
|
2160
|
+
# @param Status: 规则状态0:关闭,1 开启
|
2161
|
+
# @type Status: Integer
|
2162
|
+
# @param ScaleUpThreshold: 扩容阈值,范围[10-90]
|
2163
|
+
# @type ScaleUpThreshold: Integer
|
2164
|
+
# @param TargetThreshold: 扩容后达到阈值,范围[10-90]
|
2165
|
+
# @type TargetThreshold: Integer
|
2166
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2167
|
+
# @type RequestId: String
|
2168
|
+
|
2169
|
+
attr_accessor :FileSystemId, :Status, :ScaleUpThreshold, :TargetThreshold, :RequestId
|
2170
|
+
|
2171
|
+
def initialize(filesystemid=nil, status=nil, scaleupthreshold=nil, targetthreshold=nil, requestid=nil)
|
2172
|
+
@FileSystemId = filesystemid
|
2173
|
+
@Status = status
|
2174
|
+
@ScaleUpThreshold = scaleupthreshold
|
2175
|
+
@TargetThreshold = targetthreshold
|
2176
|
+
@RequestId = requestid
|
2177
|
+
end
|
2178
|
+
|
2179
|
+
def deserialize(params)
|
2180
|
+
@FileSystemId = params['FileSystemId']
|
2181
|
+
@Status = params['Status']
|
2182
|
+
@ScaleUpThreshold = params['ScaleUpThreshold']
|
2183
|
+
@TargetThreshold = params['TargetThreshold']
|
2184
|
+
@RequestId = params['RequestId']
|
2185
|
+
end
|
2186
|
+
end
|
2187
|
+
|
2128
2188
|
# 挂载点信息
|
2129
2189
|
class MountInfo < TencentCloud::Common::AbstractModel
|
2130
2190
|
# @param FileSystemId: 文件系统 ID
|
@@ -2269,6 +2329,50 @@ module TencentCloud
|
|
2269
2329
|
end
|
2270
2330
|
end
|
2271
2331
|
|
2332
|
+
# ScaleUpFileSystem请求参数结构体
|
2333
|
+
class ScaleUpFileSystemRequest < TencentCloud::Common::AbstractModel
|
2334
|
+
# @param FileSystemId: 文件系统Id
|
2335
|
+
# @type FileSystemId: String
|
2336
|
+
# @param TargetCapacity: 扩容的目标容量
|
2337
|
+
# @type TargetCapacity: Integer
|
2338
|
+
|
2339
|
+
attr_accessor :FileSystemId, :TargetCapacity
|
2340
|
+
|
2341
|
+
def initialize(filesystemid=nil, targetcapacity=nil)
|
2342
|
+
@FileSystemId = filesystemid
|
2343
|
+
@TargetCapacity = targetcapacity
|
2344
|
+
end
|
2345
|
+
|
2346
|
+
def deserialize(params)
|
2347
|
+
@FileSystemId = params['FileSystemId']
|
2348
|
+
@TargetCapacity = params['TargetCapacity']
|
2349
|
+
end
|
2350
|
+
end
|
2351
|
+
|
2352
|
+
# ScaleUpFileSystem返回参数结构体
|
2353
|
+
class ScaleUpFileSystemResponse < TencentCloud::Common::AbstractModel
|
2354
|
+
# @param FileSystemId: 文件系统Id
|
2355
|
+
# @type FileSystemId: String
|
2356
|
+
# @param TargetCapacity: 扩容的目标容量
|
2357
|
+
# @type TargetCapacity: Integer
|
2358
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2359
|
+
# @type RequestId: String
|
2360
|
+
|
2361
|
+
attr_accessor :FileSystemId, :TargetCapacity, :RequestId
|
2362
|
+
|
2363
|
+
def initialize(filesystemid=nil, targetcapacity=nil, requestid=nil)
|
2364
|
+
@FileSystemId = filesystemid
|
2365
|
+
@TargetCapacity = targetcapacity
|
2366
|
+
@RequestId = requestid
|
2367
|
+
end
|
2368
|
+
|
2369
|
+
def deserialize(params)
|
2370
|
+
@FileSystemId = params['FileSystemId']
|
2371
|
+
@TargetCapacity = params['TargetCapacity']
|
2372
|
+
@RequestId = params['RequestId']
|
2373
|
+
end
|
2374
|
+
end
|
2375
|
+
|
2272
2376
|
# SetUserQuota请求参数结构体
|
2273
2377
|
class SetUserQuotaRequest < TencentCloud::Common::AbstractModel
|
2274
2378
|
# @param FileSystemId: 文件系统 ID
|
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.
|
4
|
+
version: 3.0.559
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|