tencentcloud-sdk-cvm 3.0.868 → 3.0.870

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: af996f73877192f777da517f9d57492cfc766026
4
- data.tar.gz: 1d4ac5dde2c52bbc1722ebe0b3123ca87b8151ad
3
+ metadata.gz: 0cb1f84f6a318f5ed4efd15b0df363134a2121f0
4
+ data.tar.gz: 44fdc4ecc9fd7980c8f203c41e44d9f2cfb3140a
5
5
  SHA512:
6
- metadata.gz: b5056bf16217568dd41e6ffdae3ee8e53683f4fd157fa9589a6f42183223821e4fbdc34a1ad863a381054d8bf8baedfe799192d0c78485d07b6994d007c07c72
7
- data.tar.gz: 54477390766fcfe54a17ed65423eb7c6030f7aa1e1f7d4e29d937eee0c4409e655dee0a8b95e5d503d61a4d4ef3dfd5b72a34b3fd2152eb8c26e849bc5cb1cc5
6
+ metadata.gz: 92fd16ff4bae7371e9f37344a9a5e71e5e320c750197e9cc2f6f3ed90d379fa6d7374a998704665207c59b9729562a40fbf5cbc93165cf61dec5f1edc4542ecd
7
+ data.tar.gz: f96683e651892f2f0c21ba6c1ece4ffccd69b25daa75607a29cbf63297531da294ce24941c50fb0e3284e408a6f8e7b1f65a1cf8fd0ab0afb88a9ff0cc20e8ca
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.868
1
+ 3.0.870
@@ -1325,6 +1325,54 @@ module TencentCloud
1325
1325
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1326
1326
  end
1327
1327
 
1328
+ # 进入救援模式
1329
+
1330
+ # @param request: Request instance for EnterRescueMode.
1331
+ # @type request: :class:`Tencentcloud::cvm::V20170312::EnterRescueModeRequest`
1332
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::EnterRescueModeResponse`
1333
+ def EnterRescueMode(request)
1334
+ body = send_request('EnterRescueMode', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = EnterRescueModeResponse.new
1338
+ model.deserialize(response['Response'])
1339
+ model
1340
+ else
1341
+ code = response['Response']['Error']['Code']
1342
+ message = response['Response']['Error']['Message']
1343
+ reqid = response['Response']['RequestId']
1344
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1345
+ end
1346
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1347
+ raise e
1348
+ rescue StandardError => e
1349
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
+ end
1351
+
1352
+ # 退出救援模式
1353
+
1354
+ # @param request: Request instance for ExitRescueMode.
1355
+ # @type request: :class:`Tencentcloud::cvm::V20170312::ExitRescueModeRequest`
1356
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::ExitRescueModeResponse`
1357
+ def ExitRescueMode(request)
1358
+ body = send_request('ExitRescueMode', request.serialize)
1359
+ response = JSON.parse(body)
1360
+ if response['Response'].key?('Error') == false
1361
+ model = ExitRescueModeResponse.new
1362
+ model.deserialize(response['Response'])
1363
+ model
1364
+ else
1365
+ code = response['Response']['Error']['Code']
1366
+ message = response['Response']['Error']['Message']
1367
+ reqid = response['Response']['RequestId']
1368
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1369
+ end
1370
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1371
+ raise e
1372
+ rescue StandardError => e
1373
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1374
+ end
1375
+
1328
1376
  # 提供导出自定义镜像到指定COS存储桶的能力
1329
1377
 
1330
1378
  # @param request: Request instance for ExportImages.
@@ -3618,6 +3618,82 @@ module TencentCloud
3618
3618
  end
3619
3619
  end
3620
3620
 
3621
+ # EnterRescueMode请求参数结构体
3622
+ class EnterRescueModeRequest < TencentCloud::Common::AbstractModel
3623
+ # @param InstanceId: 需要进入救援模式的实例id
3624
+ # @type InstanceId: String
3625
+ # @param Password: 救援模式下系统密码
3626
+ # @type Password: String
3627
+ # @param Username: 救援模式下系统用户名
3628
+ # @type Username: String
3629
+ # @param ForceStop: 是否强制关机
3630
+ # @type ForceStop: Boolean
3631
+
3632
+ attr_accessor :InstanceId, :Password, :Username, :ForceStop
3633
+
3634
+ def initialize(instanceid=nil, password=nil, username=nil, forcestop=nil)
3635
+ @InstanceId = instanceid
3636
+ @Password = password
3637
+ @Username = username
3638
+ @ForceStop = forcestop
3639
+ end
3640
+
3641
+ def deserialize(params)
3642
+ @InstanceId = params['InstanceId']
3643
+ @Password = params['Password']
3644
+ @Username = params['Username']
3645
+ @ForceStop = params['ForceStop']
3646
+ end
3647
+ end
3648
+
3649
+ # EnterRescueMode返回参数结构体
3650
+ class EnterRescueModeResponse < TencentCloud::Common::AbstractModel
3651
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3652
+ # @type RequestId: String
3653
+
3654
+ attr_accessor :RequestId
3655
+
3656
+ def initialize(requestid=nil)
3657
+ @RequestId = requestid
3658
+ end
3659
+
3660
+ def deserialize(params)
3661
+ @RequestId = params['RequestId']
3662
+ end
3663
+ end
3664
+
3665
+ # ExitRescueMode请求参数结构体
3666
+ class ExitRescueModeRequest < TencentCloud::Common::AbstractModel
3667
+ # @param InstanceId: 退出救援模式的实例id
3668
+ # @type InstanceId: String
3669
+
3670
+ attr_accessor :InstanceId
3671
+
3672
+ def initialize(instanceid=nil)
3673
+ @InstanceId = instanceid
3674
+ end
3675
+
3676
+ def deserialize(params)
3677
+ @InstanceId = params['InstanceId']
3678
+ end
3679
+ end
3680
+
3681
+ # ExitRescueMode返回参数结构体
3682
+ class ExitRescueModeResponse < TencentCloud::Common::AbstractModel
3683
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3684
+ # @type RequestId: String
3685
+
3686
+ attr_accessor :RequestId
3687
+
3688
+ def initialize(requestid=nil)
3689
+ @RequestId = requestid
3690
+ end
3691
+
3692
+ def deserialize(params)
3693
+ @RequestId = params['RequestId']
3694
+ end
3695
+ end
3696
+
3621
3697
  # ExportImages请求参数结构体
3622
3698
  class ExportImagesRequest < TencentCloud::Common::AbstractModel
3623
3699
  # @param BucketName: COS存储桶名称
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.868
4
+ version: 3.0.870
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-18 00:00:00.000000000 Z
11
+ date: 2024-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common