tencentcloud-sdk-cfs 3.0.558 → 3.0.560

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: a0d08230a846caedbb88ba76ace0320a561c314f
4
- data.tar.gz: aa52233253b6593b1a46f7b44f28963eab3bb65e
3
+ metadata.gz: bae1e5daccff3f19cd8ad8b7f3ddbbd92154657b
4
+ data.tar.gz: 84ebafb8892641132a67c1e634b5febcb453bc0f
5
5
  SHA512:
6
- metadata.gz: c681c166b762416819386618759a6dbf622beb8d98c9c237815d42fa8a7108e49dc3024db2535eaf1e3d3d6b7e8e6ee064e7ea1d5647cd1806d49c2f32517e8a
7
- data.tar.gz: c82624e079bb3ac370b6d6b3c5dbe6d7ffe5f9029d11ff7b6c0f59b8cde4ff2f4eb35ea5f2590c0da878c1f478f9f42102add97e9b0dbe5bf2a8e413d13dd00b
6
+ metadata.gz: 9c2e9121ce16b184074e9c3221c8094f7f0e3046035cbd1aef021dec92bfb65052cd6840309453443d6e7862deaddf6a15e4464077cd1f26db84a8c218ebc51f
7
+ data.tar.gz: 7a703b2bdd0f1fb9ba9aaf35b25d99f537d5125ecd5cec81bb36dc45e899741f747135b9a5cb3f20ffe9ac2b7d873f958bb91d01425d7f3ca43f2fd5e51226b4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.558
1
+ 3.0.560
@@ -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.
@@ -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.558
4
+ version: 3.0.560
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-24 00:00:00.000000000 Z
11
+ date: 2023-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common