tencentcloud-sdk-hai 3.0.702 → 3.0.703

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b4968f20b0245e48631782c636759135ed0749f
4
- data.tar.gz: 68df6f1b4647e096df855bad279306f7da146e71
3
+ metadata.gz: 7f7c80c0146e99575814620466e8e5c7dc37f345
4
+ data.tar.gz: 50a39966d870b27330e2fc803be31f4c00a638b8
5
5
  SHA512:
6
- metadata.gz: 1ebff582c646f5a12215895d75101aa719099d3000adffa6475890f301b57a63adf3c4a91385998d51a175e3de00227f053bdcb77913e4c49463c1ad3b810019
7
- data.tar.gz: 069117bd27a51354861913c17a6d876ee8b6e7eba71c048fc242244a0ced73f3438c2a225729fd1be6cf9a78382ffae3ff276797a883d14eaf29ceac66529bfa
6
+ metadata.gz: e00a8c7b4578f6390304ca98749f682fd42e1e16ab5b7b3d5df10d7a6c767f64728171c09ca3a019f08f7448158cc266ea3661c6d157fbe257fbbaf38ee11893
7
+ data.tar.gz: 647318d95f1c21bb89759ce313377dd724bd8864c5993d2cab32ca0fa147dba8c11389508fe98d70ab47c8dd0e4102dc1eed5d98ebe3529233dc02936f71552f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.702
1
+ 3.0.703
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 本接口 (TerminateInstances) 用于主动退还实例。
57
+
58
+ # @param request: Request instance for TerminateInstances.
59
+ # @type request: :class:`Tencentcloud::hai::V20230812::TerminateInstancesRequest`
60
+ # @rtype: :class:`Tencentcloud::hai::V20230812::TerminateInstancesResponse`
61
+ def TerminateInstances(request)
62
+ body = send_request('TerminateInstances', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = TerminateInstancesResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
 
57
81
  end
58
82
  end
@@ -102,6 +102,42 @@ module TencentCloud
102
102
  end
103
103
  end
104
104
 
105
+ # TerminateInstances请求参数结构体
106
+ class TerminateInstancesRequest < TencentCloud::Common::AbstractModel
107
+ # @param InstanceIds: 实例ID列表
108
+ # @type InstanceIds: Array
109
+ # @param DryRun: 默认为False,True代表只验证接口连通性
110
+ # @type DryRun: Boolean
111
+
112
+ attr_accessor :InstanceIds, :DryRun
113
+
114
+ def initialize(instanceids=nil, dryrun=nil)
115
+ @InstanceIds = instanceids
116
+ @DryRun = dryrun
117
+ end
118
+
119
+ def deserialize(params)
120
+ @InstanceIds = params['InstanceIds']
121
+ @DryRun = params['DryRun']
122
+ end
123
+ end
124
+
125
+ # TerminateInstances返回参数结构体
126
+ class TerminateInstancesResponse < TencentCloud::Common::AbstractModel
127
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
128
+ # @type RequestId: String
129
+
130
+ attr_accessor :RequestId
131
+
132
+ def initialize(requestid=nil)
133
+ @RequestId = requestid
134
+ end
135
+
136
+ def deserialize(params)
137
+ @RequestId = params['RequestId']
138
+ end
139
+ end
140
+
105
141
  end
106
142
  end
107
143
  end
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.702
4
+ version: 3.0.703
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-11-14 00:00:00.000000000 Z
11
+ date: 2023-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common