tencentcloud-sdk-hai 3.0.725 → 3.0.726
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/v20230812/client.rb +48 -0
- data/lib/v20230812/models.rb +86 -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: 1094d0d9cc2b8b5020745d1b785ee32eb61f0dab
|
4
|
+
data.tar.gz: 5a3912eac59253661296f9eeaaf50146eff4411b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea9b152c8686cfb7f9a6d6048d1071f88fcd34f988c294dbfc00f04589ab5fab9f6d75b29baac80ace0117aa0e9514736c0335ee042395452333facbdae8f43
|
7
|
+
data.tar.gz: abcd12ba046120d77a937106e56f0a6deaaf48b6e0d1d998c0a56514aeae0cd2319d93fc2791bfd607897c9428e39bbc5651da8e2cb95650cd2c01076e357bf1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.726
|
data/lib/v20230812/client.rb
CHANGED
@@ -221,6 +221,54 @@ module TencentCloud
|
|
221
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
222
|
end
|
223
223
|
|
224
|
+
# 本接口 (StartInstance) 用于主动启动实例。
|
225
|
+
|
226
|
+
# @param request: Request instance for StartInstance.
|
227
|
+
# @type request: :class:`Tencentcloud::hai::V20230812::StartInstanceRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::hai::V20230812::StartInstanceResponse`
|
229
|
+
def StartInstance(request)
|
230
|
+
body = send_request('StartInstance', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = StartInstanceResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
248
|
+
# 本接口 (StopInstance) 用于主动关闭实例。
|
249
|
+
|
250
|
+
# @param request: Request instance for StopInstance.
|
251
|
+
# @type request: :class:`Tencentcloud::hai::V20230812::StopInstanceRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::hai::V20230812::StopInstanceResponse`
|
253
|
+
def StopInstance(request)
|
254
|
+
body = send_request('StopInstance', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = StopInstanceResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
224
272
|
# 本接口 (TerminateInstances) 用于主动退还实例。
|
225
273
|
|
226
274
|
# @param request: Request instance for TerminateInstances.
|
data/lib/v20230812/models.rb
CHANGED
@@ -875,6 +875,92 @@ module TencentCloud
|
|
875
875
|
end
|
876
876
|
end
|
877
877
|
|
878
|
+
# StartInstance请求参数结构体
|
879
|
+
class StartInstanceRequest < TencentCloud::Common::AbstractModel
|
880
|
+
# @param InstanceId: 实例ID
|
881
|
+
# @type InstanceId: String
|
882
|
+
# @param DryRun: 默认为False,True代表只验证接口连通性
|
883
|
+
# @type DryRun: Boolean
|
884
|
+
|
885
|
+
attr_accessor :InstanceId, :DryRun
|
886
|
+
|
887
|
+
def initialize(instanceid=nil, dryrun=nil)
|
888
|
+
@InstanceId = instanceid
|
889
|
+
@DryRun = dryrun
|
890
|
+
end
|
891
|
+
|
892
|
+
def deserialize(params)
|
893
|
+
@InstanceId = params['InstanceId']
|
894
|
+
@DryRun = params['DryRun']
|
895
|
+
end
|
896
|
+
end
|
897
|
+
|
898
|
+
# StartInstance返回参数结构体
|
899
|
+
class StartInstanceResponse < TencentCloud::Common::AbstractModel
|
900
|
+
# @param TaskId: task任务id
|
901
|
+
# @type TaskId: Integer
|
902
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
903
|
+
# @type RequestId: String
|
904
|
+
|
905
|
+
attr_accessor :TaskId, :RequestId
|
906
|
+
|
907
|
+
def initialize(taskid=nil, requestid=nil)
|
908
|
+
@TaskId = taskid
|
909
|
+
@RequestId = requestid
|
910
|
+
end
|
911
|
+
|
912
|
+
def deserialize(params)
|
913
|
+
@TaskId = params['TaskId']
|
914
|
+
@RequestId = params['RequestId']
|
915
|
+
end
|
916
|
+
end
|
917
|
+
|
918
|
+
# StopInstance请求参数结构体
|
919
|
+
class StopInstanceRequest < TencentCloud::Common::AbstractModel
|
920
|
+
# @param InstanceId: 实例ID
|
921
|
+
# @type InstanceId: String
|
922
|
+
# @param StopMode: hai实例关机的模式,目前仅支持关机不收费:
|
923
|
+
# STOP_CHARGE -- 关闭hai实例,释放计算资源,停止收取计算资源的费用。
|
924
|
+
# 注意:默认值为STOP_CHARGE
|
925
|
+
# @type StopMode: String
|
926
|
+
# @param DryRun: 默认为False,True代表只验证接口连通性
|
927
|
+
# @type DryRun: Boolean
|
928
|
+
|
929
|
+
attr_accessor :InstanceId, :StopMode, :DryRun
|
930
|
+
|
931
|
+
def initialize(instanceid=nil, stopmode=nil, dryrun=nil)
|
932
|
+
@InstanceId = instanceid
|
933
|
+
@StopMode = stopmode
|
934
|
+
@DryRun = dryrun
|
935
|
+
end
|
936
|
+
|
937
|
+
def deserialize(params)
|
938
|
+
@InstanceId = params['InstanceId']
|
939
|
+
@StopMode = params['StopMode']
|
940
|
+
@DryRun = params['DryRun']
|
941
|
+
end
|
942
|
+
end
|
943
|
+
|
944
|
+
# StopInstance返回参数结构体
|
945
|
+
class StopInstanceResponse < TencentCloud::Common::AbstractModel
|
946
|
+
# @param TaskId: task任务id
|
947
|
+
# @type TaskId: Integer
|
948
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
949
|
+
# @type RequestId: String
|
950
|
+
|
951
|
+
attr_accessor :TaskId, :RequestId
|
952
|
+
|
953
|
+
def initialize(taskid=nil, requestid=nil)
|
954
|
+
@TaskId = taskid
|
955
|
+
@RequestId = requestid
|
956
|
+
end
|
957
|
+
|
958
|
+
def deserialize(params)
|
959
|
+
@TaskId = params['TaskId']
|
960
|
+
@RequestId = params['RequestId']
|
961
|
+
end
|
962
|
+
end
|
963
|
+
|
878
964
|
# 描述了操作系统所在块设备即系统盘的信息
|
879
965
|
class SystemDisk < TencentCloud::Common::AbstractModel
|
880
966
|
# @param DiskType: 系统盘类型。系统盘类型限制详见[存储概述](https://cloud.tencent.com/document/product/213/4952)。取值范围:<br><li>LOCAL_BASIC:本地硬盘<br><li>LOCAL_SSD:本地SSD硬盘<br><li>CLOUD_BASIC:普通云硬盘<br><li>CLOUD_SSD:SSD云硬盘<br><li>CLOUD_PREMIUM:高性能云硬盘<br><li>CLOUD_BSSD:通用性SSD云硬盘<br><br>默认取值:当前有库存的硬盘类型。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-hai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.726
|
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-12-
|
11
|
+
date: 2023-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|