tencentcloud-sdk-cvm 3.0.867 → 3.0.869

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: d9040c658391830510a61dc7a7aeb785227391bb
4
- data.tar.gz: bdf93b80b016f7b354e54bd3f5063cf26f3a745f
3
+ metadata.gz: 7fbdb43172d7b6080bcc99be5f86ae31036f8644
4
+ data.tar.gz: 31025105edcc40dedc69cf97f981d3d006469181
5
5
  SHA512:
6
- metadata.gz: 5ebccbe984449f65af3f368ba4c70ae5e2fa3d3085e6d097ad43a034bd19a99c46ab83b1f2380344edd132444437af0476f28ffe9e42397d9cf98e8fcffa086a
7
- data.tar.gz: 48cf4d724463294ef84bdd54684327d28c71f0b560fc3d77786db04fb062323865b93ec7adda822126f44e47474c1ac3217598e192a0f000585d1adaa8627d31
6
+ metadata.gz: b5f0404eae803127f39dc537de3a1e919be3b80cfc860f1abf4d78d56d39d1f7801e3a147941860842ac955bfbe0758eb346215a0ad673a7b5113e474c62e4fb
7
+ data.tar.gz: ec65139216bad6a27e0cdff47d6595103fe9a3c0a0cb8b79d3c31eafef5ac5718502272de59cca067262b85790429eba75433225db2286d8255883f11e3e85ff
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.867
1
+ 3.0.869
@@ -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.867
4
+ version: 3.0.869
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-17 00:00:00.000000000 Z
11
+ date: 2024-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common