tencentcloud-sdk-hai 3.0.725 → 3.0.727

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: f871514d6da82c166775b1e419971a0491cd8b33
4
- data.tar.gz: cf7bf395e0fbcf18a457a628d3ea8d99beaaafb6
3
+ metadata.gz: dbf717be45a398e68f596380ca79c4fcf24691c2
4
+ data.tar.gz: 6dfb38e6190820831d500b7e8e121f3986144a5b
5
5
  SHA512:
6
- metadata.gz: 796f615ebed089aa9fdb65e7d3f27e77b3783915eef587acf47fe8593cc070fda80e28e27eef2d77616024ada5b0f20a532a606c114e9b463ee693c4ea24ac6e
7
- data.tar.gz: 84ace89ead0243dedef7cead7b09ed4b3c622a7ebc7eb0ae0aa15045d505ee67bb09218ba0c3e5514b37e3cf4b42fcb40911f4b00dda7a657e9eeff5256b4cdd
6
+ metadata.gz: 151110c9a34848610e83e42f3e0a43e0fb66a1665556499921393c202374319b3eee08cbdd063ed916fd197af7051bc4c28327a6f13e09aa57fb1a3dc1a72556
7
+ data.tar.gz: f9496d4c2b2219dd60413cb34643496797e26468639898024e64de454c13c3e0852c56916c31a186530ae15652a5f5ead714a6ffd58c6f4e8d99acf29206d145
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.725
1
+ 3.0.727
@@ -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.
@@ -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.725
4
+ version: 3.0.727
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 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common