tencentcloud-sdk-hai 3.0.703 → 3.0.704

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: 7f7c80c0146e99575814620466e8e5c7dc37f345
4
- data.tar.gz: 50a39966d870b27330e2fc803be31f4c00a638b8
3
+ metadata.gz: 677d05c3dfb316eb494195c20ff1dd85b7f8d39f
4
+ data.tar.gz: e1656ffb9ccc197992f80b10d556b10d3910d633
5
5
  SHA512:
6
- metadata.gz: e00a8c7b4578f6390304ca98749f682fd42e1e16ab5b7b3d5df10d7a6c767f64728171c09ca3a019f08f7448158cc266ea3661c6d157fbe257fbbaf38ee11893
7
- data.tar.gz: 647318d95f1c21bb89759ce313377dd724bd8864c5993d2cab32ca0fa147dba8c11389508fe98d70ab47c8dd0e4102dc1eed5d98ebe3529233dc02936f71552f
6
+ metadata.gz: 5bcf71913bdbdbd297fd79921f875747f550f3a581355485a23a10d954350e681b345e099880eee13fea9f1e10105f88ddb656c7d6c5b1734e79f4c10d0291b8
7
+ data.tar.gz: 4b511c680b3b9099b3a40c28f868d8c38c32a62517fc041d8df319d82aa8c6b31280e4709172c01d89ca00586614d3aa8e8c3a6205aa562b15579de8f2bfdddb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.703
1
+ 3.0.704
@@ -29,6 +29,174 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 查询应用
33
+
34
+ # @param request: Request instance for DescribeApplications.
35
+ # @type request: :class:`Tencentcloud::hai::V20230812::DescribeApplicationsRequest`
36
+ # @rtype: :class:`Tencentcloud::hai::V20230812::DescribeApplicationsResponse`
37
+ def DescribeApplications(request)
38
+ body = send_request('DescribeApplications', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeApplicationsResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 查询实例的网络配置及消耗情况
57
+
58
+ # @param request: Request instance for DescribeInstanceNetworkStatus.
59
+ # @type request: :class:`Tencentcloud::hai::V20230812::DescribeInstanceNetworkStatusRequest`
60
+ # @rtype: :class:`Tencentcloud::hai::V20230812::DescribeInstanceNetworkStatusResponse`
61
+ def DescribeInstanceNetworkStatus(request)
62
+ body = send_request('DescribeInstanceNetworkStatus', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeInstanceNetworkStatusResponse.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
+
80
+ # 查询实例
81
+
82
+ # @param request: Request instance for DescribeInstances.
83
+ # @type request: :class:`Tencentcloud::hai::V20230812::DescribeInstancesRequest`
84
+ # @rtype: :class:`Tencentcloud::hai::V20230812::DescribeInstancesResponse`
85
+ def DescribeInstances(request)
86
+ body = send_request('DescribeInstances', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeInstancesResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 查询地域列表
105
+
106
+ # @param request: Request instance for DescribeRegions.
107
+ # @type request: :class:`Tencentcloud::hai::V20230812::DescribeRegionsRequest`
108
+ # @rtype: :class:`Tencentcloud::hai::V20230812::DescribeRegionsResponse`
109
+ def DescribeRegions(request)
110
+ body = send_request('DescribeRegions', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeRegionsResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 查询场景
129
+
130
+ # @param request: Request instance for DescribeScenes.
131
+ # @type request: :class:`Tencentcloud::hai::V20230812::DescribeScenesRequest`
132
+ # @rtype: :class:`Tencentcloud::hai::V20230812::DescribeScenesResponse`
133
+ def DescribeScenes(request)
134
+ body = send_request('DescribeScenes', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeScenesResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 查询服务登录配置
153
+
154
+ # @param request: Request instance for DescribeServiceLoginSettings.
155
+ # @type request: :class:`Tencentcloud::hai::V20230812::DescribeServiceLoginSettingsRequest`
156
+ # @rtype: :class:`Tencentcloud::hai::V20230812::DescribeServiceLoginSettingsResponse`
157
+ def DescribeServiceLoginSettings(request)
158
+ body = send_request('DescribeServiceLoginSettings', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeServiceLoginSettingsResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 本接口 (InquirePriceRunInstances) 用于实例询价。
177
+
178
+ # @param request: Request instance for InquirePriceRunInstances.
179
+ # @type request: :class:`Tencentcloud::hai::V20230812::InquirePriceRunInstancesRequest`
180
+ # @rtype: :class:`Tencentcloud::hai::V20230812::InquirePriceRunInstancesResponse`
181
+ def InquirePriceRunInstances(request)
182
+ body = send_request('InquirePriceRunInstances', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = InquirePriceRunInstancesResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
32
200
  # 本接口 (RunInstances) 用于创建一个或多个指定配置的实例。
33
201
 
34
202
  # @param request: Request instance for RunInstances.
@@ -17,6 +17,777 @@
17
17
  module TencentCloud
18
18
  module Hai
19
19
  module V20230812
20
+ # 应用信息
21
+ class ApplicationInfo < TencentCloud::Common::AbstractModel
22
+ # @param ApplicationId: 应用id
23
+
24
+ # 注意:此字段可能返回 null,表示取不到有效值。
25
+ # @type ApplicationId: String
26
+ # @param ApplicationName: 应用名称
27
+ # 注意:此字段可能返回 null,表示取不到有效值。
28
+ # @type ApplicationName: String
29
+ # @param Description: 应用描述
30
+
31
+ # 注意:此字段可能返回 null,表示取不到有效值。
32
+ # @type Description: String
33
+ # @param ConfigEnvironment: 应用的环境配置
34
+ # 注意:此字段可能返回 null,表示取不到有效值。
35
+ # @type ConfigEnvironment: String
36
+ # @param MinSystemDiskSize: 系统盘大小下限
37
+ # 注意:此字段可能返回 null,表示取不到有效值。
38
+ # @type MinSystemDiskSize: Integer
39
+
40
+ attr_accessor :ApplicationId, :ApplicationName, :Description, :ConfigEnvironment, :MinSystemDiskSize
41
+
42
+ def initialize(applicationid=nil, applicationname=nil, description=nil, configenvironment=nil, minsystemdisksize=nil)
43
+ @ApplicationId = applicationid
44
+ @ApplicationName = applicationname
45
+ @Description = description
46
+ @ConfigEnvironment = configenvironment
47
+ @MinSystemDiskSize = minsystemdisksize
48
+ end
49
+
50
+ def deserialize(params)
51
+ @ApplicationId = params['ApplicationId']
52
+ @ApplicationName = params['ApplicationName']
53
+ @Description = params['Description']
54
+ @ConfigEnvironment = params['ConfigEnvironment']
55
+ @MinSystemDiskSize = params['MinSystemDiskSize']
56
+ end
57
+ end
58
+
59
+ # DescribeApplications请求参数结构体
60
+ class DescribeApplicationsRequest < TencentCloud::Common::AbstractModel
61
+ # @param ApplicationIds: 应用id列表
62
+ # @type ApplicationIds: Array
63
+ # @param Filters: 过滤器,跟ApplicationIds不能共用,支持的filter主要有:
64
+ # application-id,精确匹配
65
+ # scene-id,精确匹配
66
+ # application-name,模糊匹配
67
+ # @type Filters: Array
68
+ # @param Offset: 偏移量,默认为0
69
+ # @type Offset: Integer
70
+ # @param Limit: 返回量,默认为20
71
+ # MC:1000
72
+ # 用户:100
73
+ # @type Limit: Integer
74
+
75
+ attr_accessor :ApplicationIds, :Filters, :Offset, :Limit
76
+
77
+ def initialize(applicationids=nil, filters=nil, offset=nil, limit=nil)
78
+ @ApplicationIds = applicationids
79
+ @Filters = filters
80
+ @Offset = offset
81
+ @Limit = limit
82
+ end
83
+
84
+ def deserialize(params)
85
+ @ApplicationIds = params['ApplicationIds']
86
+ unless params['Filters'].nil?
87
+ @Filters = []
88
+ params['Filters'].each do |i|
89
+ filter_tmp = Filter.new
90
+ filter_tmp.deserialize(i)
91
+ @Filters << filter_tmp
92
+ end
93
+ end
94
+ @Offset = params['Offset']
95
+ @Limit = params['Limit']
96
+ end
97
+ end
98
+
99
+ # DescribeApplications返回参数结构体
100
+ class DescribeApplicationsResponse < TencentCloud::Common::AbstractModel
101
+ # @param TotalCount: 应用总数
102
+ # 注意:此字段可能返回 null,表示取不到有效值。
103
+ # @type TotalCount: Integer
104
+ # @param ApplicationSet: 分页返回的应用列表
105
+ # 注意:此字段可能返回 null,表示取不到有效值。
106
+ # @type ApplicationSet: Array
107
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
108
+ # @type RequestId: String
109
+
110
+ attr_accessor :TotalCount, :ApplicationSet, :RequestId
111
+
112
+ def initialize(totalcount=nil, applicationset=nil, requestid=nil)
113
+ @TotalCount = totalcount
114
+ @ApplicationSet = applicationset
115
+ @RequestId = requestid
116
+ end
117
+
118
+ def deserialize(params)
119
+ @TotalCount = params['TotalCount']
120
+ unless params['ApplicationSet'].nil?
121
+ @ApplicationSet = []
122
+ params['ApplicationSet'].each do |i|
123
+ applicationinfo_tmp = ApplicationInfo.new
124
+ applicationinfo_tmp.deserialize(i)
125
+ @ApplicationSet << applicationinfo_tmp
126
+ end
127
+ end
128
+ @RequestId = params['RequestId']
129
+ end
130
+ end
131
+
132
+ # DescribeInstanceNetworkStatus请求参数结构体
133
+ class DescribeInstanceNetworkStatusRequest < TencentCloud::Common::AbstractModel
134
+ # @param InstanceIds: 实例ID数组,单次请求最多不超过100个实例
135
+ # @type InstanceIds: Array
136
+
137
+ attr_accessor :InstanceIds
138
+
139
+ def initialize(instanceids=nil)
140
+ @InstanceIds = instanceids
141
+ end
142
+
143
+ def deserialize(params)
144
+ @InstanceIds = params['InstanceIds']
145
+ end
146
+ end
147
+
148
+ # DescribeInstanceNetworkStatus返回参数结构体
149
+ class DescribeInstanceNetworkStatusResponse < TencentCloud::Common::AbstractModel
150
+ # @param TotalCount: 查询结果集长度
151
+ # @type TotalCount: Integer
152
+ # @param NetworkStatusSet: 查询结果集
153
+ # 注意:此字段可能返回 null,表示取不到有效值。
154
+ # @type NetworkStatusSet: Array
155
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
156
+ # @type RequestId: String
157
+
158
+ attr_accessor :TotalCount, :NetworkStatusSet, :RequestId
159
+
160
+ def initialize(totalcount=nil, networkstatusset=nil, requestid=nil)
161
+ @TotalCount = totalcount
162
+ @NetworkStatusSet = networkstatusset
163
+ @RequestId = requestid
164
+ end
165
+
166
+ def deserialize(params)
167
+ @TotalCount = params['TotalCount']
168
+ unless params['NetworkStatusSet'].nil?
169
+ @NetworkStatusSet = []
170
+ params['NetworkStatusSet'].each do |i|
171
+ networkstatus_tmp = NetworkStatus.new
172
+ networkstatus_tmp.deserialize(i)
173
+ @NetworkStatusSet << networkstatus_tmp
174
+ end
175
+ end
176
+ @RequestId = params['RequestId']
177
+ end
178
+ end
179
+
180
+ # DescribeInstances请求参数结构体
181
+ class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
182
+ # @param InstanceIds: 实例元组
183
+ # @type InstanceIds: Array
184
+ # @param Filters: 描述键值对过滤器,用于条件过滤查询。
185
+ # @type Filters: Array
186
+ # @param Offset: 偏移量,默认为0
187
+ # @type Offset: Integer
188
+ # @param Limit: 返回量,默认为20
189
+ # @type Limit: Integer
190
+
191
+ attr_accessor :InstanceIds, :Filters, :Offset, :Limit
192
+
193
+ def initialize(instanceids=nil, filters=nil, offset=nil, limit=nil)
194
+ @InstanceIds = instanceids
195
+ @Filters = filters
196
+ @Offset = offset
197
+ @Limit = limit
198
+ end
199
+
200
+ def deserialize(params)
201
+ @InstanceIds = params['InstanceIds']
202
+ unless params['Filters'].nil?
203
+ @Filters = []
204
+ params['Filters'].each do |i|
205
+ filter_tmp = Filter.new
206
+ filter_tmp.deserialize(i)
207
+ @Filters << filter_tmp
208
+ end
209
+ end
210
+ @Offset = params['Offset']
211
+ @Limit = params['Limit']
212
+ end
213
+ end
214
+
215
+ # DescribeInstances返回参数结构体
216
+ class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
217
+ # @param TotalCount: 实例总数
218
+
219
+ # 注意:此字段可能返回 null,表示取不到有效值。
220
+ # @type TotalCount: Integer
221
+ # @param InstanceSet: 分页实例详情
222
+
223
+ # 注意:此字段可能返回 null,表示取不到有效值。
224
+ # @type InstanceSet: Array
225
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
226
+ # @type RequestId: String
227
+
228
+ attr_accessor :TotalCount, :InstanceSet, :RequestId
229
+
230
+ def initialize(totalcount=nil, instanceset=nil, requestid=nil)
231
+ @TotalCount = totalcount
232
+ @InstanceSet = instanceset
233
+ @RequestId = requestid
234
+ end
235
+
236
+ def deserialize(params)
237
+ @TotalCount = params['TotalCount']
238
+ unless params['InstanceSet'].nil?
239
+ @InstanceSet = []
240
+ params['InstanceSet'].each do |i|
241
+ instance_tmp = Instance.new
242
+ instance_tmp.deserialize(i)
243
+ @InstanceSet << instance_tmp
244
+ end
245
+ end
246
+ @RequestId = params['RequestId']
247
+ end
248
+ end
249
+
250
+ # DescribeRegions请求参数结构体
251
+ class DescribeRegionsRequest < TencentCloud::Common::AbstractModel
252
+
253
+
254
+ def initialize()
255
+ end
256
+
257
+ def deserialize(params)
258
+ end
259
+ end
260
+
261
+ # DescribeRegions返回参数结构体
262
+ class DescribeRegionsResponse < TencentCloud::Common::AbstractModel
263
+ # @param RegionSet: 地域列表
264
+ # 注意:此字段可能返回 null,表示取不到有效值。
265
+ # @type RegionSet: Array
266
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
267
+ # @type RequestId: String
268
+
269
+ attr_accessor :RegionSet, :RequestId
270
+
271
+ def initialize(regionset=nil, requestid=nil)
272
+ @RegionSet = regionset
273
+ @RequestId = requestid
274
+ end
275
+
276
+ def deserialize(params)
277
+ unless params['RegionSet'].nil?
278
+ @RegionSet = []
279
+ params['RegionSet'].each do |i|
280
+ regioninfo_tmp = RegionInfo.new
281
+ regioninfo_tmp.deserialize(i)
282
+ @RegionSet << regioninfo_tmp
283
+ end
284
+ end
285
+ @RequestId = params['RequestId']
286
+ end
287
+ end
288
+
289
+ # DescribeScenes请求参数结构体
290
+ class DescribeScenesRequest < TencentCloud::Common::AbstractModel
291
+ # @param SceneIds: ["sc-abcdefgh"]
292
+ # @type SceneIds: Array
293
+
294
+ attr_accessor :SceneIds
295
+
296
+ def initialize(sceneids=nil)
297
+ @SceneIds = sceneids
298
+ end
299
+
300
+ def deserialize(params)
301
+ @SceneIds = params['SceneIds']
302
+ end
303
+ end
304
+
305
+ # DescribeScenes返回参数结构体
306
+ class DescribeScenesResponse < TencentCloud::Common::AbstractModel
307
+ # @param SceneSet: scene info
308
+ # 注意:此字段可能返回 null,表示取不到有效值。
309
+ # @type SceneSet: Array
310
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
311
+ # @type RequestId: String
312
+
313
+ attr_accessor :SceneSet, :RequestId
314
+
315
+ def initialize(sceneset=nil, requestid=nil)
316
+ @SceneSet = sceneset
317
+ @RequestId = requestid
318
+ end
319
+
320
+ def deserialize(params)
321
+ unless params['SceneSet'].nil?
322
+ @SceneSet = []
323
+ params['SceneSet'].each do |i|
324
+ sceneinfo_tmp = SceneInfo.new
325
+ sceneinfo_tmp.deserialize(i)
326
+ @SceneSet << sceneinfo_tmp
327
+ end
328
+ end
329
+ @RequestId = params['RequestId']
330
+ end
331
+ end
332
+
333
+ # DescribeServiceLoginSettings请求参数结构体
334
+ class DescribeServiceLoginSettingsRequest < TencentCloud::Common::AbstractModel
335
+ # @param InstanceId: 实例id
336
+ # @type InstanceId: String
337
+ # @param ServiceName: 服务名称
338
+ # @type ServiceName: String
339
+
340
+ attr_accessor :InstanceId, :ServiceName
341
+
342
+ def initialize(instanceid=nil, servicename=nil)
343
+ @InstanceId = instanceid
344
+ @ServiceName = servicename
345
+ end
346
+
347
+ def deserialize(params)
348
+ @InstanceId = params['InstanceId']
349
+ @ServiceName = params['ServiceName']
350
+ end
351
+ end
352
+
353
+ # DescribeServiceLoginSettings返回参数结构体
354
+ class DescribeServiceLoginSettingsResponse < TencentCloud::Common::AbstractModel
355
+ # @param LoginSettings: 服务登录配置详情
356
+ # 注意:此字段可能返回 null,表示取不到有效值。
357
+ # @type LoginSettings: Array
358
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
359
+ # @type RequestId: String
360
+
361
+ attr_accessor :LoginSettings, :RequestId
362
+
363
+ def initialize(loginsettings=nil, requestid=nil)
364
+ @LoginSettings = loginsettings
365
+ @RequestId = requestid
366
+ end
367
+
368
+ def deserialize(params)
369
+ unless params['LoginSettings'].nil?
370
+ @LoginSettings = []
371
+ params['LoginSettings'].each do |i|
372
+ loginsetting_tmp = LoginSetting.new
373
+ loginsetting_tmp.deserialize(i)
374
+ @LoginSettings << loginsetting_tmp
375
+ end
376
+ end
377
+ @RequestId = params['RequestId']
378
+ end
379
+ end
380
+
381
+ # 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
382
+
383
+ # - 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
384
+ # - 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
385
+ class Filter < TencentCloud::Common::AbstractModel
386
+ # @param Name: 需要过滤的字段。
387
+ # @type Name: String
388
+ # @param Values: 字段的过滤值。
389
+ # @type Values: Array
390
+
391
+ attr_accessor :Name, :Values
392
+
393
+ def initialize(name=nil, values=nil)
394
+ @Name = name
395
+ @Values = values
396
+ end
397
+
398
+ def deserialize(params)
399
+ @Name = params['Name']
400
+ @Values = params['Values']
401
+ end
402
+ end
403
+
404
+ # InquirePriceRunInstances请求参数结构体
405
+ class InquirePriceRunInstancesRequest < TencentCloud::Common::AbstractModel
406
+ # @param ApplicationId: 应用ID
407
+ # @type ApplicationId: String
408
+ # @param BundleType: 算力套餐类型
409
+ # @type BundleType: String
410
+ # @param SystemDisk: 实例系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
411
+ # @type SystemDisk: :class:`Tencentcloud::Hai.v20230812.models.SystemDisk`
412
+ # @param InstanceCount: 购买实例数量。
413
+ # @type InstanceCount: Integer
414
+ # @param InstanceName: 实例显示名称
415
+ # @type InstanceName: String
416
+ # @param ClientToken: 幂等请求token
417
+ # @type ClientToken: String
418
+ # @param DryRun: DryRun为True就是只验接口连通性,默认为False
419
+ # @type DryRun: Boolean
420
+
421
+ attr_accessor :ApplicationId, :BundleType, :SystemDisk, :InstanceCount, :InstanceName, :ClientToken, :DryRun
422
+
423
+ def initialize(applicationid=nil, bundletype=nil, systemdisk=nil, instancecount=nil, instancename=nil, clienttoken=nil, dryrun=nil)
424
+ @ApplicationId = applicationid
425
+ @BundleType = bundletype
426
+ @SystemDisk = systemdisk
427
+ @InstanceCount = instancecount
428
+ @InstanceName = instancename
429
+ @ClientToken = clienttoken
430
+ @DryRun = dryrun
431
+ end
432
+
433
+ def deserialize(params)
434
+ @ApplicationId = params['ApplicationId']
435
+ @BundleType = params['BundleType']
436
+ unless params['SystemDisk'].nil?
437
+ @SystemDisk = SystemDisk.new
438
+ @SystemDisk.deserialize(params['SystemDisk'])
439
+ end
440
+ @InstanceCount = params['InstanceCount']
441
+ @InstanceName = params['InstanceName']
442
+ @ClientToken = params['ClientToken']
443
+ @DryRun = params['DryRun']
444
+ end
445
+ end
446
+
447
+ # InquirePriceRunInstances返回参数结构体
448
+ class InquirePriceRunInstancesResponse < TencentCloud::Common::AbstractModel
449
+ # @param Price: 发货参数对应的价格组合,当DryRun=True,会返回空
450
+ # 注意:此字段可能返回 null,表示取不到有效值。
451
+ # @type Price: :class:`Tencentcloud::Hai.v20230812.models.Price`
452
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
453
+ # @type RequestId: String
454
+
455
+ attr_accessor :Price, :RequestId
456
+
457
+ def initialize(price=nil, requestid=nil)
458
+ @Price = price
459
+ @RequestId = requestid
460
+ end
461
+
462
+ def deserialize(params)
463
+ unless params['Price'].nil?
464
+ @Price = Price.new
465
+ @Price.deserialize(params['Price'])
466
+ end
467
+ @RequestId = params['RequestId']
468
+ end
469
+ end
470
+
471
+ # 实例信息
472
+ class Instance < TencentCloud::Common::AbstractModel
473
+ # @param InstanceId: 实例id
474
+ # 注意:此字段可能返回 null,表示取不到有效值。
475
+ # @type InstanceId: String
476
+ # @param InstanceName: 实例名称
477
+ # 注意:此字段可能返回 null,表示取不到有效值。
478
+ # @type InstanceName: String
479
+ # @param InstanceState: 实例状态:
480
+ # PENDING:表示创建中
481
+ # LAUNCH_FAILED:表示创建失败
482
+ # RUNNING:表示运行中
483
+ # ARREAR:表示欠费隔离
484
+ # TERMINATING:表示销毁中。
485
+ # TERMINATED:表示已销毁
486
+ # 注意:此字段可能返回 null,表示取不到有效值。
487
+ # @type InstanceState: String
488
+ # @param ApplicationName: 应用名称
489
+
490
+ # 注意:此字段可能返回 null,表示取不到有效值。
491
+ # @type ApplicationName: String
492
+ # @param BundleName: 算力套餐名称
493
+
494
+ # 注意:此字段可能返回 null,表示取不到有效值。
495
+ # @type BundleName: String
496
+ # @param GPUCount: 实例所包含的GPU卡数
497
+ # 注意:此字段可能返回 null,表示取不到有效值。
498
+ # @type GPUCount: Integer
499
+ # @param GPUPerformance: 算力
500
+
501
+ # 注意:此字段可能返回 null,表示取不到有效值。
502
+ # @type GPUPerformance: String
503
+ # @param GPUMemory: 显存
504
+ # 注意:此字段可能返回 null,表示取不到有效值。
505
+ # @type GPUMemory: String
506
+ # @param CPU: CPU核数
507
+ # 注意:此字段可能返回 null,表示取不到有效值。
508
+ # @type CPU: String
509
+ # @param Memory: 内存
510
+
511
+ # 注意:此字段可能返回 null,表示取不到有效值。
512
+ # @type Memory: String
513
+ # @param SystemDisk: 系统盘数据
514
+ # 注意:此字段可能返回 null,表示取不到有效值。
515
+ # @type SystemDisk: :class:`Tencentcloud::Hai.v20230812.models.SystemDisk`
516
+ # @param PrivateIpAddresses: 内网ip地址
517
+ # 注意:此字段可能返回 null,表示取不到有效值。
518
+ # @type PrivateIpAddresses: Array
519
+ # @param PublicIpAddresses: 公网ip地址
520
+ # 注意:此字段可能返回 null,表示取不到有效值。
521
+ # @type PublicIpAddresses: Array
522
+ # @param SecurityGroupIds: 安全组ID
523
+
524
+ # 注意:此字段可能返回 null,表示取不到有效值。
525
+ # @type SecurityGroupIds: Array
526
+ # @param LatestOperation: 实例最新操作
527
+ # 注意:此字段可能返回 null,表示取不到有效值。
528
+ # @type LatestOperation: String
529
+ # @param LatestOperationState: 实例最新操作状态:
530
+ # SUCCESS:表示操作成功
531
+ # OPERATING:表示操作执行中
532
+ # FAILED:表示操作失败
533
+
534
+ # 注意:此字段可能返回 null,表示取不到有效值。
535
+ # @type LatestOperationState: String
536
+ # @param CreateTime: 实例创建时间
537
+ # 注意:此字段可能返回 null,表示取不到有效值。
538
+ # @type CreateTime: String
539
+ # @param MaxOutBandwidth: 公网出带宽上限,默认5Mbps
540
+ # 注意:此字段可能返回 null,表示取不到有效值。
541
+ # @type MaxOutBandwidth: String
542
+ # @param MaxFreeTraffic: 每月免费流量,默认1000G
543
+ # 注意:此字段可能返回 null,表示取不到有效值。
544
+ # @type MaxFreeTraffic: String
545
+ # @param ConfigurationEnvironment: 应用配置环境
546
+ # 注意:此字段可能返回 null,表示取不到有效值。
547
+ # @type ConfigurationEnvironment: String
548
+ # @param LoginServices: 实例包含的登录服务详情
549
+ # 注意:此字段可能返回 null,表示取不到有效值。
550
+ # @type LoginServices: Array
551
+
552
+ attr_accessor :InstanceId, :InstanceName, :InstanceState, :ApplicationName, :BundleName, :GPUCount, :GPUPerformance, :GPUMemory, :CPU, :Memory, :SystemDisk, :PrivateIpAddresses, :PublicIpAddresses, :SecurityGroupIds, :LatestOperation, :LatestOperationState, :CreateTime, :MaxOutBandwidth, :MaxFreeTraffic, :ConfigurationEnvironment, :LoginServices
553
+
554
+ def initialize(instanceid=nil, instancename=nil, instancestate=nil, applicationname=nil, bundlename=nil, gpucount=nil, gpuperformance=nil, gpumemory=nil, cpu=nil, memory=nil, systemdisk=nil, privateipaddresses=nil, publicipaddresses=nil, securitygroupids=nil, latestoperation=nil, latestoperationstate=nil, createtime=nil, maxoutbandwidth=nil, maxfreetraffic=nil, configurationenvironment=nil, loginservices=nil)
555
+ @InstanceId = instanceid
556
+ @InstanceName = instancename
557
+ @InstanceState = instancestate
558
+ @ApplicationName = applicationname
559
+ @BundleName = bundlename
560
+ @GPUCount = gpucount
561
+ @GPUPerformance = gpuperformance
562
+ @GPUMemory = gpumemory
563
+ @CPU = cpu
564
+ @Memory = memory
565
+ @SystemDisk = systemdisk
566
+ @PrivateIpAddresses = privateipaddresses
567
+ @PublicIpAddresses = publicipaddresses
568
+ @SecurityGroupIds = securitygroupids
569
+ @LatestOperation = latestoperation
570
+ @LatestOperationState = latestoperationstate
571
+ @CreateTime = createtime
572
+ @MaxOutBandwidth = maxoutbandwidth
573
+ @MaxFreeTraffic = maxfreetraffic
574
+ @ConfigurationEnvironment = configurationenvironment
575
+ @LoginServices = loginservices
576
+ end
577
+
578
+ def deserialize(params)
579
+ @InstanceId = params['InstanceId']
580
+ @InstanceName = params['InstanceName']
581
+ @InstanceState = params['InstanceState']
582
+ @ApplicationName = params['ApplicationName']
583
+ @BundleName = params['BundleName']
584
+ @GPUCount = params['GPUCount']
585
+ @GPUPerformance = params['GPUPerformance']
586
+ @GPUMemory = params['GPUMemory']
587
+ @CPU = params['CPU']
588
+ @Memory = params['Memory']
589
+ unless params['SystemDisk'].nil?
590
+ @SystemDisk = SystemDisk.new
591
+ @SystemDisk.deserialize(params['SystemDisk'])
592
+ end
593
+ @PrivateIpAddresses = params['PrivateIpAddresses']
594
+ @PublicIpAddresses = params['PublicIpAddresses']
595
+ @SecurityGroupIds = params['SecurityGroupIds']
596
+ @LatestOperation = params['LatestOperation']
597
+ @LatestOperationState = params['LatestOperationState']
598
+ @CreateTime = params['CreateTime']
599
+ @MaxOutBandwidth = params['MaxOutBandwidth']
600
+ @MaxFreeTraffic = params['MaxFreeTraffic']
601
+ @ConfigurationEnvironment = params['ConfigurationEnvironment']
602
+ unless params['LoginServices'].nil?
603
+ @LoginServices = []
604
+ params['LoginServices'].each do |i|
605
+ loginservice_tmp = LoginService.new
606
+ loginservice_tmp.deserialize(i)
607
+ @LoginServices << loginservice_tmp
608
+ end
609
+ end
610
+ end
611
+ end
612
+
613
+ # 套餐价格
614
+ class ItemPrice < TencentCloud::Common::AbstractModel
615
+ # @param UnitPrice: 原单价
616
+ # 注意:此字段可能返回 null,表示取不到有效值。
617
+ # @type UnitPrice: Float
618
+ # @param DiscountUnitPrice: 折扣后单价
619
+ # 注意:此字段可能返回 null,表示取不到有效值。
620
+ # @type DiscountUnitPrice: Float
621
+ # @param Discount: 折扣
622
+ # 注意:此字段可能返回 null,表示取不到有效值。
623
+ # @type Discount: Float
624
+ # @param ChargeUnit: 单位:时
625
+
626
+ # 注意:此字段可能返回 null,表示取不到有效值。
627
+ # @type ChargeUnit: String
628
+ # @param Amount: 商品数量
629
+ # 注意:此字段可能返回 null,表示取不到有效值。
630
+ # @type Amount: Integer
631
+
632
+ attr_accessor :UnitPrice, :DiscountUnitPrice, :Discount, :ChargeUnit, :Amount
633
+
634
+ def initialize(unitprice=nil, discountunitprice=nil, discount=nil, chargeunit=nil, amount=nil)
635
+ @UnitPrice = unitprice
636
+ @DiscountUnitPrice = discountunitprice
637
+ @Discount = discount
638
+ @ChargeUnit = chargeunit
639
+ @Amount = amount
640
+ end
641
+
642
+ def deserialize(params)
643
+ @UnitPrice = params['UnitPrice']
644
+ @DiscountUnitPrice = params['DiscountUnitPrice']
645
+ @Discount = params['Discount']
646
+ @ChargeUnit = params['ChargeUnit']
647
+ @Amount = params['Amount']
648
+ end
649
+ end
650
+
651
+ # 登录服务详情
652
+ class LoginService < TencentCloud::Common::AbstractModel
653
+ # @param ServiceName: 登录方式名称
654
+ # 注意:此字段可能返回 null,表示取不到有效值。
655
+ # @type ServiceName: String
656
+
657
+ attr_accessor :ServiceName
658
+
659
+ def initialize(servicename=nil)
660
+ @ServiceName = servicename
661
+ end
662
+
663
+ def deserialize(params)
664
+ @ServiceName = params['ServiceName']
665
+ end
666
+ end
667
+
668
+ # 某服务的登录配置
669
+ class LoginSetting < TencentCloud::Common::AbstractModel
670
+ # @param ServiceName: 服务名称
671
+ # 注意:此字段可能返回 null,表示取不到有效值。
672
+ # @type ServiceName: String
673
+ # @param Url: 服务登录url
674
+ # 注意:此字段可能返回 null,表示取不到有效值。
675
+ # @type Url: String
676
+
677
+ attr_accessor :ServiceName, :Url
678
+
679
+ def initialize(servicename=nil, url=nil)
680
+ @ServiceName = servicename
681
+ @Url = url
682
+ end
683
+
684
+ def deserialize(params)
685
+ @ServiceName = params['ServiceName']
686
+ @Url = params['Url']
687
+ end
688
+ end
689
+
690
+ # HAI 实例的网络配置和消耗情况
691
+ class NetworkStatus < TencentCloud::Common::AbstractModel
692
+ # @param InstanceId: HAI 的实例 ID
693
+ # 注意:此字段可能返回 null,表示取不到有效值。
694
+ # @type InstanceId: String
695
+ # @param AddressIp: 公网 IP 地址
696
+ # 注意:此字段可能返回 null,表示取不到有效值。
697
+ # @type AddressIp: String
698
+ # @param Bandwidth: 出带宽上限,单位Mbps
699
+ # 注意:此字段可能返回 null,表示取不到有效值。
700
+ # @type Bandwidth: Integer
701
+ # @param TotalTrafficAmount: 流量包总量,单位GB
702
+ # 注意:此字段可能返回 null,表示取不到有效值。
703
+ # @type TotalTrafficAmount: Float
704
+ # @param RemainingTrafficAmount: 流量包剩余量,单位GB
705
+ # 注意:此字段可能返回 null,表示取不到有效值。
706
+ # @type RemainingTrafficAmount: Float
707
+
708
+ attr_accessor :InstanceId, :AddressIp, :Bandwidth, :TotalTrafficAmount, :RemainingTrafficAmount
709
+
710
+ def initialize(instanceid=nil, addressip=nil, bandwidth=nil, totaltrafficamount=nil, remainingtrafficamount=nil)
711
+ @InstanceId = instanceid
712
+ @AddressIp = addressip
713
+ @Bandwidth = bandwidth
714
+ @TotalTrafficAmount = totaltrafficamount
715
+ @RemainingTrafficAmount = remainingtrafficamount
716
+ end
717
+
718
+ def deserialize(params)
719
+ @InstanceId = params['InstanceId']
720
+ @AddressIp = params['AddressIp']
721
+ @Bandwidth = params['Bandwidth']
722
+ @TotalTrafficAmount = params['TotalTrafficAmount']
723
+ @RemainingTrafficAmount = params['RemainingTrafficAmount']
724
+ end
725
+ end
726
+
727
+ # 费用数据结构体
728
+ class Price < TencentCloud::Common::AbstractModel
729
+ # @param InstancePrice: 实例价格信息
730
+ # 注意:此字段可能返回 null,表示取不到有效值。
731
+ # @type InstancePrice: :class:`Tencentcloud::Hai.v20230812.models.ItemPrice`
732
+ # @param CloudDiskPrice: 云盘价格信息
733
+ # 注意:此字段可能返回 null,表示取不到有效值。
734
+ # @type CloudDiskPrice: :class:`Tencentcloud::Hai.v20230812.models.ItemPrice`
735
+
736
+ attr_accessor :InstancePrice, :CloudDiskPrice
737
+
738
+ def initialize(instanceprice=nil, clouddiskprice=nil)
739
+ @InstancePrice = instanceprice
740
+ @CloudDiskPrice = clouddiskprice
741
+ end
742
+
743
+ def deserialize(params)
744
+ unless params['InstancePrice'].nil?
745
+ @InstancePrice = ItemPrice.new
746
+ @InstancePrice.deserialize(params['InstancePrice'])
747
+ end
748
+ unless params['CloudDiskPrice'].nil?
749
+ @CloudDiskPrice = ItemPrice.new
750
+ @CloudDiskPrice.deserialize(params['CloudDiskPrice'])
751
+ end
752
+ end
753
+ end
754
+
755
+ # 地域列表
756
+ class RegionInfo < TencentCloud::Common::AbstractModel
757
+ # @param Region: ap-guangzhou
758
+
759
+ # 注意:此字段可能返回 null,表示取不到有效值。
760
+ # @type Region: String
761
+ # @param RegionName: 华南地区(广州)
762
+ # 注意:此字段可能返回 null,表示取不到有效值。
763
+ # @type RegionName: String
764
+ # @param RegionState: 地域是否可用状态
765
+ # AVAILABLE:可用
766
+
767
+ # 注意:此字段可能返回 null,表示取不到有效值。
768
+ # @type RegionState: String
769
+ # @param ScholarRocketSupportState: 学术加速是否支持:
770
+ # NO_NEED_SUPPORT表示不需支持;NOT_SUPPORT_YET表示暂未支持;ALREADY_SUPPORT表示已经支持。对于ALREADY_SUPPORT的地域才需进一步调用DescribeScholarRocketStatus查看学术加速是开启还是关闭
771
+ # 注意:此字段可能返回 null,表示取不到有效值。
772
+ # @type ScholarRocketSupportState: String
773
+
774
+ attr_accessor :Region, :RegionName, :RegionState, :ScholarRocketSupportState
775
+
776
+ def initialize(region=nil, regionname=nil, regionstate=nil, scholarrocketsupportstate=nil)
777
+ @Region = region
778
+ @RegionName = regionname
779
+ @RegionState = regionstate
780
+ @ScholarRocketSupportState = scholarrocketsupportstate
781
+ end
782
+
783
+ def deserialize(params)
784
+ @Region = params['Region']
785
+ @RegionName = params['RegionName']
786
+ @RegionState = params['RegionState']
787
+ @ScholarRocketSupportState = params['ScholarRocketSupportState']
788
+ end
789
+ end
790
+
20
791
  # RunInstances请求参数结构体
21
792
  class RunInstancesRequest < TencentCloud::Common::AbstractModel
22
793
  # @param ApplicationId: 应用ID
@@ -80,6 +851,30 @@ module TencentCloud
80
851
  end
81
852
  end
82
853
 
854
+ # 场景详情
855
+ class SceneInfo < TencentCloud::Common::AbstractModel
856
+ # @param SceneId: 场景id
857
+
858
+ # 注意:此字段可能返回 null,表示取不到有效值。
859
+ # @type SceneId: String
860
+ # @param SceneName: 场景名
861
+
862
+ # 注意:此字段可能返回 null,表示取不到有效值。
863
+ # @type SceneName: String
864
+
865
+ attr_accessor :SceneId, :SceneName
866
+
867
+ def initialize(sceneid=nil, scenename=nil)
868
+ @SceneId = sceneid
869
+ @SceneName = scenename
870
+ end
871
+
872
+ def deserialize(params)
873
+ @SceneId = params['SceneId']
874
+ @SceneName = params['SceneName']
875
+ end
876
+ end
877
+
83
878
  # 描述了操作系统所在块设备即系统盘的信息
84
879
  class SystemDisk < TencentCloud::Common::AbstractModel
85
880
  # @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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-hai
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.703
4
+ version: 3.0.704
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud