tencentcloud-sdk-cfs 3.0.558 → 3.0.559
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190719/client.rb +24 -0
- data/lib/v20190719/models.rb +60 -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,30 @@ 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
|
+
|
732
756
|
# 该接口用于对turbo 文件系统扩容使用
|
733
757
|
|
734
758
|
# @param request: Request instance for ScaleUpFileSystem.
|
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
|
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
|