lib/v20170312/client.rb in tencentcloud-sdk-cvm-3.0.768 vs lib/v20170312/client.rb in tencentcloud-sdk-cvm-3.0.769

- old
+ new

@@ -386,10 +386,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 本接口 (DeleteInstancesActionTimer) 用于删除定时任务。 + + # @param request: Request instance for DeleteInstancesActionTimer. + # @type request: :class:`Tencentcloud::cvm::V20170312::DeleteInstancesActionTimerRequest` + # @rtype: :class:`Tencentcloud::cvm::V20170312::DeleteInstancesActionTimerResponse` + def DeleteInstancesActionTimer(request) + body = send_request('DeleteInstancesActionTimer', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DeleteInstancesActionTimerResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 本接口 (DeleteKeyPairs) 用于删除已在腾讯云托管的密钥对。 # * 可以同时删除多个密钥对。 # * 不能删除已被实例或镜像引用的密钥对,所以需要独立判断是否所有密钥对都被成功删除。 @@ -875,10 +899,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 本接口 (DescribeInstancesActionTimer) 用于查询定时任务信息。 + + # @param request: Request instance for DescribeInstancesActionTimer. + # @type request: :class:`Tencentcloud::cvm::V20170312::DescribeInstancesActionTimerRequest` + # @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeInstancesActionTimerResponse` + def DescribeInstancesActionTimer(request) + body = send_request('DescribeInstancesActionTimer', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeInstancesActionTimerResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 本接口 (DescribeInstancesModification) 用于查询指定实例支持调整的机型配置。 # @param request: Request instance for DescribeInstancesModification. # @type request: :class:`Tencentcloud::cvm::V20170312::DescribeInstancesModificationRequest` # @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeInstancesModificationResponse` @@ -1323,10 +1371,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 导入定时任务 + + # @param request: Request instance for ImportInstancesActionTimer. + # @type request: :class:`Tencentcloud::cvm::V20170312::ImportInstancesActionTimerRequest` + # @rtype: :class:`Tencentcloud::cvm::V20170312::ImportInstancesActionTimerResponse` + def ImportInstancesActionTimer(request) + body = send_request('ImportInstancesActionTimer', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = ImportInstancesActionTimerResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 本接口 (ImportKeyPair) 用于导入密钥对。 # * 本接口的功能是将密钥对导入到用户账户,并不会自动绑定到实例。如需绑定可以使用[AssociasteInstancesKeyPair](https://cloud.tencent.com/document/api/213/9404)接口。 # * 需指定密钥对名称以及该密钥对的公钥文本。 # * 如果用户只有私钥,可以通过 `SSL` 工具将私钥转换成公钥后再导入。 @@ -2326,14 +2398,15 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end - # 本接口 (ResizeInstanceDisks) 用于扩容实例的数据盘。 + # 本接口 (ResizeInstanceDisks) 用于扩容实例的磁盘。 - # * 目前只支持扩容非弹性盘([`DescribeDisks`](https://cloud.tencent.com/document/api/362/16315)接口返回值中的`Portable`为`false`表示非弹性)。 - # * 对于包年包月实例,使用该接口会涉及扣费,请确保账户余额充足。可通过[`DescribeAccountBalance`](https://cloud.tencent.com/document/product/555/20253)接口查询账户余额。 + # * 目前只支持扩容非弹性盘([ DescribeDisks ](https://cloud.tencent.com/document/api/362/16315)接口返回值中的`Portable`为`false`表示非弹性)。 + # * 对于包年包月实例,使用该接口会涉及扣费,请确保账户余额充足。可通过[ DescribeAccountBalance ](https://cloud.tencent.com/document/product/555/20253)接口查询账户余额。 # * 目前只支持扩容一块数据盘。 + # * 默认扩容方式为关机后扩容。 # * 实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。 # * 如果是系统盘,目前只支持扩容,不支持缩容。 # @param request: Request instance for ResizeInstanceDisks. # @type request: :class:`Tencentcloud::cvm::V20170312::ResizeInstanceDisksRequest` \ No newline at end of file