tencentcloud-sdk-tiems 1.0.200

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.
@@ -0,0 +1,2474 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Tiems
19
+ module V20190416
20
+ # 状态
21
+ class Conditions < TencentCloud::Common::AbstractModel
22
+ # @param Reason: 原因
23
+ # @type Reason: String
24
+ # @param Count: 具有相同原因的副本个数
25
+ # @type Count: Integer
26
+
27
+ attr_accessor :Reason, :Count
28
+
29
+ def initialize(reason=nil, count=nil)
30
+ @Reason = reason
31
+ @Count = count
32
+ end
33
+
34
+ def deserialize(params)
35
+ @Reason = params['Reason']
36
+ @Count = params['Count']
37
+ end
38
+ end
39
+
40
+ # 配置
41
+ class Config < TencentCloud::Common::AbstractModel
42
+ # @param Id: Id
43
+ # @type Id: String
44
+ # @param Name: 配置名
45
+ # @type Name: String
46
+ # @param ModelUri: 模型地址
47
+ # @type ModelUri: String
48
+ # @param CreateTime: 创建时间
49
+ # @type CreateTime: String
50
+ # @param Runtime: 运行环境
51
+ # @type Runtime: String
52
+ # @param Version: 配置版本
53
+ # @type Version: String
54
+ # @param UpdateTime: 更新时间
55
+ # @type UpdateTime: String
56
+ # @param Description: 配置描述
57
+ # 注意:此字段可能返回 null,表示取不到有效值。
58
+ # @type Description: String
59
+
60
+ attr_accessor :Id, :Name, :ModelUri, :CreateTime, :Runtime, :Version, :UpdateTime, :Description
61
+
62
+ def initialize(id=nil, name=nil, modeluri=nil, createtime=nil, runtime=nil, version=nil, updatetime=nil, description=nil)
63
+ @Id = id
64
+ @Name = name
65
+ @ModelUri = modeluri
66
+ @CreateTime = createtime
67
+ @Runtime = runtime
68
+ @Version = version
69
+ @UpdateTime = updatetime
70
+ @Description = description
71
+ end
72
+
73
+ def deserialize(params)
74
+ @Id = params['Id']
75
+ @Name = params['Name']
76
+ @ModelUri = params['ModelUri']
77
+ @CreateTime = params['CreateTime']
78
+ @Runtime = params['Runtime']
79
+ @Version = params['Version']
80
+ @UpdateTime = params['UpdateTime']
81
+ @Description = params['Description']
82
+ end
83
+ end
84
+
85
+ # CreateJob请求参数结构体
86
+ class CreateJobRequest < TencentCloud::Common::AbstractModel
87
+ # @param Name: 任务名称
88
+ # @type Name: String
89
+ # @param ResourceGroupId: 使用的资源组 Id,默认使用共享资源组
90
+ # @type ResourceGroupId: String
91
+ # @param Cpu: 处理器配置, 单位为1/1000核;范围[100, 256000]
92
+ # @type Cpu: Integer
93
+ # @param Memory: 内存配置, 单位为1M;范围[100, 256000]
94
+ # @type Memory: Integer
95
+ # @param Cluster: 运行集群
96
+ # @type Cluster: String
97
+ # @param PredictInput: 预测输入
98
+ # @type PredictInput: :class:`Tencentcloud::Tiems.v20190416.models.PredictInput`
99
+ # @param Description: 任务描述
100
+ # @type Description: String
101
+ # @param WorkerCount: 同时处理任务的 Worker 个数
102
+ # @type WorkerCount: Integer
103
+ # @param ConfigId: 使用的配置 Id
104
+ # @type ConfigId: String
105
+ # @param Gpu: GPU算力配置,单位为1/1000 卡,范围 [0, 256000]
106
+ # @type Gpu: Integer
107
+ # @param GpuMemory: 显存配置, 单位为1M,范围 [0, 256000]
108
+ # @type GpuMemory: Integer
109
+ # @param GpuType: GPU类型
110
+ # @type GpuType: String
111
+ # @param QuantizationInput: 量化输入
112
+ # @type QuantizationInput: :class:`Tencentcloud::Tiems.v20190416.models.QuantizationInput`
113
+ # @param LogTopicId: Cls日志主题ID
114
+ # @type LogTopicId: String
115
+
116
+ attr_accessor :Name, :ResourceGroupId, :Cpu, :Memory, :Cluster, :PredictInput, :Description, :WorkerCount, :ConfigId, :Gpu, :GpuMemory, :GpuType, :QuantizationInput, :LogTopicId
117
+
118
+ def initialize(name=nil, resourcegroupid=nil, cpu=nil, memory=nil, cluster=nil, predictinput=nil, description=nil, workercount=nil, configid=nil, gpu=nil, gpumemory=nil, gputype=nil, quantizationinput=nil, logtopicid=nil)
119
+ @Name = name
120
+ @ResourceGroupId = resourcegroupid
121
+ @Cpu = cpu
122
+ @Memory = memory
123
+ @Cluster = cluster
124
+ @PredictInput = predictinput
125
+ @Description = description
126
+ @WorkerCount = workercount
127
+ @ConfigId = configid
128
+ @Gpu = gpu
129
+ @GpuMemory = gpumemory
130
+ @GpuType = gputype
131
+ @QuantizationInput = quantizationinput
132
+ @LogTopicId = logtopicid
133
+ end
134
+
135
+ def deserialize(params)
136
+ @Name = params['Name']
137
+ @ResourceGroupId = params['ResourceGroupId']
138
+ @Cpu = params['Cpu']
139
+ @Memory = params['Memory']
140
+ @Cluster = params['Cluster']
141
+ unless params['PredictInput'].nil?
142
+ @PredictInput = PredictInput.new
143
+ @PredictInput.deserialize(params['PredictInput'])
144
+ end
145
+ @Description = params['Description']
146
+ @WorkerCount = params['WorkerCount']
147
+ @ConfigId = params['ConfigId']
148
+ @Gpu = params['Gpu']
149
+ @GpuMemory = params['GpuMemory']
150
+ @GpuType = params['GpuType']
151
+ unless params['QuantizationInput'].nil?
152
+ @QuantizationInput = QuantizationInput.new
153
+ @QuantizationInput.deserialize(params['QuantizationInput'])
154
+ end
155
+ @LogTopicId = params['LogTopicId']
156
+ end
157
+ end
158
+
159
+ # CreateJob返回参数结构体
160
+ class CreateJobResponse < TencentCloud::Common::AbstractModel
161
+ # @param Job: 任务
162
+ # @type Job: :class:`Tencentcloud::Tiems.v20190416.models.Job`
163
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
164
+ # @type RequestId: String
165
+
166
+ attr_accessor :Job, :RequestId
167
+
168
+ def initialize(job=nil, requestid=nil)
169
+ @Job = job
170
+ @RequestId = requestid
171
+ end
172
+
173
+ def deserialize(params)
174
+ unless params['Job'].nil?
175
+ @Job = Job.new
176
+ @Job.deserialize(params['Job'])
177
+ end
178
+ @RequestId = params['RequestId']
179
+ end
180
+ end
181
+
182
+ # CreateRsgAsGroup请求参数结构体
183
+ class CreateRsgAsGroupRequest < TencentCloud::Common::AbstractModel
184
+ # @param RsgId: 资源组 ID
185
+ # @type RsgId: String
186
+ # @param MaxSize: 伸缩组允许的最大节点数
187
+ # @type MaxSize: Integer
188
+ # @param MinSize: 伸缩组允许的最小节点数
189
+ # @type MinSize: Integer
190
+ # @param InstanceType: 伸缩组的节点规格
191
+ # @type InstanceType: String
192
+ # @param Cluster: 资源组所在的集群名
193
+ # @type Cluster: String
194
+ # @param Name: 伸缩组名称
195
+ # @type Name: String
196
+ # @param DesiredSize: 伸缩组期望的节点数
197
+ # @type DesiredSize: Integer
198
+
199
+ attr_accessor :RsgId, :MaxSize, :MinSize, :InstanceType, :Cluster, :Name, :DesiredSize
200
+
201
+ def initialize(rsgid=nil, maxsize=nil, minsize=nil, instancetype=nil, cluster=nil, name=nil, desiredsize=nil)
202
+ @RsgId = rsgid
203
+ @MaxSize = maxsize
204
+ @MinSize = minsize
205
+ @InstanceType = instancetype
206
+ @Cluster = cluster
207
+ @Name = name
208
+ @DesiredSize = desiredsize
209
+ end
210
+
211
+ def deserialize(params)
212
+ @RsgId = params['RsgId']
213
+ @MaxSize = params['MaxSize']
214
+ @MinSize = params['MinSize']
215
+ @InstanceType = params['InstanceType']
216
+ @Cluster = params['Cluster']
217
+ @Name = params['Name']
218
+ @DesiredSize = params['DesiredSize']
219
+ end
220
+ end
221
+
222
+ # CreateRsgAsGroup返回参数结构体
223
+ class CreateRsgAsGroupResponse < TencentCloud::Common::AbstractModel
224
+ # @param RsgAsGroup: 所创建的资源组的伸缩组
225
+ # @type RsgAsGroup: :class:`Tencentcloud::Tiems.v20190416.models.RsgAsGroup`
226
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
227
+ # @type RequestId: String
228
+
229
+ attr_accessor :RsgAsGroup, :RequestId
230
+
231
+ def initialize(rsgasgroup=nil, requestid=nil)
232
+ @RsgAsGroup = rsgasgroup
233
+ @RequestId = requestid
234
+ end
235
+
236
+ def deserialize(params)
237
+ unless params['RsgAsGroup'].nil?
238
+ @RsgAsGroup = RsgAsGroup.new
239
+ @RsgAsGroup.deserialize(params['RsgAsGroup'])
240
+ end
241
+ @RequestId = params['RequestId']
242
+ end
243
+ end
244
+
245
+ # CreateRuntime请求参数结构体
246
+ class CreateRuntimeRequest < TencentCloud::Common::AbstractModel
247
+ # @param Name: 全局唯一的运行环境名称
248
+ # @type Name: String
249
+ # @param Image: 运行环境镜像地址
250
+ # @type Image: String
251
+ # @param Framework: 运行环境框架
252
+ # @type Framework: String
253
+ # @param Description: 运行环境描述
254
+ # @type Description: String
255
+ # @param HealthCheckOn: 是否支持健康检查,默认为False
256
+ # @type HealthCheckOn: Boolean
257
+
258
+ attr_accessor :Name, :Image, :Framework, :Description, :HealthCheckOn
259
+
260
+ def initialize(name=nil, image=nil, framework=nil, description=nil, healthcheckon=nil)
261
+ @Name = name
262
+ @Image = image
263
+ @Framework = framework
264
+ @Description = description
265
+ @HealthCheckOn = healthcheckon
266
+ end
267
+
268
+ def deserialize(params)
269
+ @Name = params['Name']
270
+ @Image = params['Image']
271
+ @Framework = params['Framework']
272
+ @Description = params['Description']
273
+ @HealthCheckOn = params['HealthCheckOn']
274
+ end
275
+ end
276
+
277
+ # CreateRuntime返回参数结构体
278
+ class CreateRuntimeResponse < TencentCloud::Common::AbstractModel
279
+ # @param Runtime: 运行环境
280
+ # @type Runtime: :class:`Tencentcloud::Tiems.v20190416.models.Runtime`
281
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
282
+ # @type RequestId: String
283
+
284
+ attr_accessor :Runtime, :RequestId
285
+
286
+ def initialize(runtime=nil, requestid=nil)
287
+ @Runtime = runtime
288
+ @RequestId = requestid
289
+ end
290
+
291
+ def deserialize(params)
292
+ unless params['Runtime'].nil?
293
+ @Runtime = Runtime.new
294
+ @Runtime.deserialize(params['Runtime'])
295
+ end
296
+ @RequestId = params['RequestId']
297
+ end
298
+ end
299
+
300
+ # CreateServiceConfig请求参数结构体
301
+ class CreateServiceConfigRequest < TencentCloud::Common::AbstractModel
302
+ # @param Name: 配置名称
303
+ # @type Name: String
304
+ # @param Runtime: 运行环境
305
+ # @type Runtime: String
306
+ # @param ModelUri: 模型地址,支持cos路径,格式为 cos://bucket名-appid.cos.region名.myqcloud.com/模型文件夹路径。为模型文件的上一层文件夹地址。
307
+ # @type ModelUri: String
308
+ # @param Description: 配置描述
309
+ # @type Description: String
310
+
311
+ attr_accessor :Name, :Runtime, :ModelUri, :Description
312
+
313
+ def initialize(name=nil, runtime=nil, modeluri=nil, description=nil)
314
+ @Name = name
315
+ @Runtime = runtime
316
+ @ModelUri = modeluri
317
+ @Description = description
318
+ end
319
+
320
+ def deserialize(params)
321
+ @Name = params['Name']
322
+ @Runtime = params['Runtime']
323
+ @ModelUri = params['ModelUri']
324
+ @Description = params['Description']
325
+ end
326
+ end
327
+
328
+ # CreateServiceConfig返回参数结构体
329
+ class CreateServiceConfigResponse < TencentCloud::Common::AbstractModel
330
+ # @param ServiceConfig: 服务配置
331
+ # @type ServiceConfig: :class:`Tencentcloud::Tiems.v20190416.models.Config`
332
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
333
+ # @type RequestId: String
334
+
335
+ attr_accessor :ServiceConfig, :RequestId
336
+
337
+ def initialize(serviceconfig=nil, requestid=nil)
338
+ @ServiceConfig = serviceconfig
339
+ @RequestId = requestid
340
+ end
341
+
342
+ def deserialize(params)
343
+ unless params['ServiceConfig'].nil?
344
+ @ServiceConfig = Config.new
345
+ @ServiceConfig.deserialize(params['ServiceConfig'])
346
+ end
347
+ @RequestId = params['RequestId']
348
+ end
349
+ end
350
+
351
+ # CreateService请求参数结构体
352
+ class CreateServiceRequest < TencentCloud::Common::AbstractModel
353
+ # @param Scaler: 扩缩容配置
354
+ # @type Scaler: :class:`Tencentcloud::Tiems.v20190416.models.Scaler`
355
+ # @param ServiceConfigId: 服务配置Id
356
+ # @type ServiceConfigId: String
357
+ # @param Name: 服务名称
358
+ # @type Name: String
359
+ # @param ScaleMode: 扩缩容方式,支持AUTO, MANUAL,分别表示自动扩缩容和手动扩缩容
360
+ # @type ScaleMode: String
361
+ # @param ResourceGroupId: 部署要使用的资源组Id,默认为共享资源组
362
+ # @type ResourceGroupId: String
363
+ # @param Cpu: 处理器配置, 单位为1/1000核;范围[100, 256000]
364
+ # @type Cpu: Integer
365
+ # @param Memory: 内存配置, 单位为1M;范围[100, 256000]
366
+ # @type Memory: Integer
367
+ # @param Cluster: 集群,不填则使用默认集群
368
+ # @type Cluster: String
369
+ # @param Authentication: 默认为空,表示不需要鉴权,TOKEN 表示选择 Token 鉴权方式
370
+ # @type Authentication: String
371
+ # @param Gpu: GPU算力配置,单位为1/1000 卡,范围 [0, 256000]
372
+ # @type Gpu: Integer
373
+ # @param GpuMemory: 显存配置, 单位为1M,范围 [0, 256000]
374
+ # @type GpuMemory: Integer
375
+ # @param Description: 备注
376
+ # @type Description: String
377
+ # @param GpuType: GPU类型
378
+ # @type GpuType: String
379
+ # @param LogTopicId: Cls日志主题ID
380
+ # @type LogTopicId: String
381
+
382
+ attr_accessor :Scaler, :ServiceConfigId, :Name, :ScaleMode, :ResourceGroupId, :Cpu, :Memory, :Cluster, :Authentication, :Gpu, :GpuMemory, :Description, :GpuType, :LogTopicId
383
+
384
+ def initialize(scaler=nil, serviceconfigid=nil, name=nil, scalemode=nil, resourcegroupid=nil, cpu=nil, memory=nil, cluster=nil, authentication=nil, gpu=nil, gpumemory=nil, description=nil, gputype=nil, logtopicid=nil)
385
+ @Scaler = scaler
386
+ @ServiceConfigId = serviceconfigid
387
+ @Name = name
388
+ @ScaleMode = scalemode
389
+ @ResourceGroupId = resourcegroupid
390
+ @Cpu = cpu
391
+ @Memory = memory
392
+ @Cluster = cluster
393
+ @Authentication = authentication
394
+ @Gpu = gpu
395
+ @GpuMemory = gpumemory
396
+ @Description = description
397
+ @GpuType = gputype
398
+ @LogTopicId = logtopicid
399
+ end
400
+
401
+ def deserialize(params)
402
+ unless params['Scaler'].nil?
403
+ @Scaler = Scaler.new
404
+ @Scaler.deserialize(params['Scaler'])
405
+ end
406
+ @ServiceConfigId = params['ServiceConfigId']
407
+ @Name = params['Name']
408
+ @ScaleMode = params['ScaleMode']
409
+ @ResourceGroupId = params['ResourceGroupId']
410
+ @Cpu = params['Cpu']
411
+ @Memory = params['Memory']
412
+ @Cluster = params['Cluster']
413
+ @Authentication = params['Authentication']
414
+ @Gpu = params['Gpu']
415
+ @GpuMemory = params['GpuMemory']
416
+ @Description = params['Description']
417
+ @GpuType = params['GpuType']
418
+ @LogTopicId = params['LogTopicId']
419
+ end
420
+ end
421
+
422
+ # CreateService返回参数结构体
423
+ class CreateServiceResponse < TencentCloud::Common::AbstractModel
424
+ # @param Service: 服务
425
+ # @type Service: :class:`Tencentcloud::Tiems.v20190416.models.ModelService`
426
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
427
+ # @type RequestId: String
428
+
429
+ attr_accessor :Service, :RequestId
430
+
431
+ def initialize(service=nil, requestid=nil)
432
+ @Service = service
433
+ @RequestId = requestid
434
+ end
435
+
436
+ def deserialize(params)
437
+ unless params['Service'].nil?
438
+ @Service = ModelService.new
439
+ @Service.deserialize(params['Service'])
440
+ end
441
+ @RequestId = params['RequestId']
442
+ end
443
+ end
444
+
445
+ # DeleteInstance请求参数结构体
446
+ class DeleteInstanceRequest < TencentCloud::Common::AbstractModel
447
+ # @param InstanceId: 要删除的节点 ID
448
+ # @type InstanceId: String
449
+
450
+ attr_accessor :InstanceId
451
+
452
+ def initialize(instanceid=nil)
453
+ @InstanceId = instanceid
454
+ end
455
+
456
+ def deserialize(params)
457
+ @InstanceId = params['InstanceId']
458
+ end
459
+ end
460
+
461
+ # DeleteInstance返回参数结构体
462
+ class DeleteInstanceResponse < TencentCloud::Common::AbstractModel
463
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
464
+ # @type RequestId: String
465
+
466
+ attr_accessor :RequestId
467
+
468
+ def initialize(requestid=nil)
469
+ @RequestId = requestid
470
+ end
471
+
472
+ def deserialize(params)
473
+ @RequestId = params['RequestId']
474
+ end
475
+ end
476
+
477
+ # DeleteJob请求参数结构体
478
+ class DeleteJobRequest < TencentCloud::Common::AbstractModel
479
+ # @param JobId: 任务 Id
480
+ # @type JobId: String
481
+
482
+ attr_accessor :JobId
483
+
484
+ def initialize(jobid=nil)
485
+ @JobId = jobid
486
+ end
487
+
488
+ def deserialize(params)
489
+ @JobId = params['JobId']
490
+ end
491
+ end
492
+
493
+ # DeleteJob返回参数结构体
494
+ class DeleteJobResponse < TencentCloud::Common::AbstractModel
495
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
496
+ # @type RequestId: String
497
+
498
+ attr_accessor :RequestId
499
+
500
+ def initialize(requestid=nil)
501
+ @RequestId = requestid
502
+ end
503
+
504
+ def deserialize(params)
505
+ @RequestId = params['RequestId']
506
+ end
507
+ end
508
+
509
+ # DeleteResourceGroup请求参数结构体
510
+ class DeleteResourceGroupRequest < TencentCloud::Common::AbstractModel
511
+ # @param ResourceGroupId: 要删除的资源组 ID
512
+ # @type ResourceGroupId: String
513
+
514
+ attr_accessor :ResourceGroupId
515
+
516
+ def initialize(resourcegroupid=nil)
517
+ @ResourceGroupId = resourcegroupid
518
+ end
519
+
520
+ def deserialize(params)
521
+ @ResourceGroupId = params['ResourceGroupId']
522
+ end
523
+ end
524
+
525
+ # DeleteResourceGroup返回参数结构体
526
+ class DeleteResourceGroupResponse < TencentCloud::Common::AbstractModel
527
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
528
+ # @type RequestId: String
529
+
530
+ attr_accessor :RequestId
531
+
532
+ def initialize(requestid=nil)
533
+ @RequestId = requestid
534
+ end
535
+
536
+ def deserialize(params)
537
+ @RequestId = params['RequestId']
538
+ end
539
+ end
540
+
541
+ # DeleteRsgAsGroup请求参数结构体
542
+ class DeleteRsgAsGroupRequest < TencentCloud::Common::AbstractModel
543
+ # @param Id: 伸缩组 ID
544
+ # @type Id: String
545
+
546
+ attr_accessor :Id
547
+
548
+ def initialize(id=nil)
549
+ @Id = id
550
+ end
551
+
552
+ def deserialize(params)
553
+ @Id = params['Id']
554
+ end
555
+ end
556
+
557
+ # DeleteRsgAsGroup返回参数结构体
558
+ class DeleteRsgAsGroupResponse < TencentCloud::Common::AbstractModel
559
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
560
+ # @type RequestId: String
561
+
562
+ attr_accessor :RequestId
563
+
564
+ def initialize(requestid=nil)
565
+ @RequestId = requestid
566
+ end
567
+
568
+ def deserialize(params)
569
+ @RequestId = params['RequestId']
570
+ end
571
+ end
572
+
573
+ # DeleteRuntime请求参数结构体
574
+ class DeleteRuntimeRequest < TencentCloud::Common::AbstractModel
575
+ # @param Runtime: 要删除的Runtime名
576
+ # @type Runtime: String
577
+
578
+ attr_accessor :Runtime
579
+
580
+ def initialize(runtime=nil)
581
+ @Runtime = runtime
582
+ end
583
+
584
+ def deserialize(params)
585
+ @Runtime = params['Runtime']
586
+ end
587
+ end
588
+
589
+ # DeleteRuntime返回参数结构体
590
+ class DeleteRuntimeResponse < TencentCloud::Common::AbstractModel
591
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
592
+ # @type RequestId: String
593
+
594
+ attr_accessor :RequestId
595
+
596
+ def initialize(requestid=nil)
597
+ @RequestId = requestid
598
+ end
599
+
600
+ def deserialize(params)
601
+ @RequestId = params['RequestId']
602
+ end
603
+ end
604
+
605
+ # DeleteServiceConfig请求参数结构体
606
+ class DeleteServiceConfigRequest < TencentCloud::Common::AbstractModel
607
+ # @param ServiceConfigId: 服务配置Id
608
+ # @type ServiceConfigId: String
609
+ # @param ServiceConfigName: 服务配置名称
610
+ # @type ServiceConfigName: String
611
+
612
+ attr_accessor :ServiceConfigId, :ServiceConfigName
613
+
614
+ def initialize(serviceconfigid=nil, serviceconfigname=nil)
615
+ @ServiceConfigId = serviceconfigid
616
+ @ServiceConfigName = serviceconfigname
617
+ end
618
+
619
+ def deserialize(params)
620
+ @ServiceConfigId = params['ServiceConfigId']
621
+ @ServiceConfigName = params['ServiceConfigName']
622
+ end
623
+ end
624
+
625
+ # DeleteServiceConfig返回参数结构体
626
+ class DeleteServiceConfigResponse < TencentCloud::Common::AbstractModel
627
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
628
+ # @type RequestId: String
629
+
630
+ attr_accessor :RequestId
631
+
632
+ def initialize(requestid=nil)
633
+ @RequestId = requestid
634
+ end
635
+
636
+ def deserialize(params)
637
+ @RequestId = params['RequestId']
638
+ end
639
+ end
640
+
641
+ # DeleteService请求参数结构体
642
+ class DeleteServiceRequest < TencentCloud::Common::AbstractModel
643
+ # @param ServiceId: 服务Id
644
+ # @type ServiceId: String
645
+
646
+ attr_accessor :ServiceId
647
+
648
+ def initialize(serviceid=nil)
649
+ @ServiceId = serviceid
650
+ end
651
+
652
+ def deserialize(params)
653
+ @ServiceId = params['ServiceId']
654
+ end
655
+ end
656
+
657
+ # DeleteService返回参数结构体
658
+ class DeleteServiceResponse < TencentCloud::Common::AbstractModel
659
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
660
+ # @type RequestId: String
661
+
662
+ attr_accessor :RequestId
663
+
664
+ def initialize(requestid=nil)
665
+ @RequestId = requestid
666
+ end
667
+
668
+ def deserialize(params)
669
+ @RequestId = params['RequestId']
670
+ end
671
+ end
672
+
673
+ # DescribeInstances请求参数结构体
674
+ class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
675
+ # @param Filters: 筛选选项
676
+ # @type Filters: Array
677
+ # @param Offset: 偏移量,默认为0
678
+ # @type Offset: Integer
679
+ # @param Limit: 返回数量,默认为20,最大值为200
680
+ # @type Limit: Integer
681
+ # @param Order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列
682
+ # @type Order: String
683
+ # @param OrderField: 排序的依据字段, 取值范围 "CREATE_TIME", "UPDATE_TIME", "NAME"
684
+ # @type OrderField: String
685
+ # @param ResourceGroupId: 要查询的资源组 ID
686
+ # @type ResourceGroupId: String
687
+
688
+ attr_accessor :Filters, :Offset, :Limit, :Order, :OrderField, :ResourceGroupId
689
+
690
+ def initialize(filters=nil, offset=nil, limit=nil, order=nil, orderfield=nil, resourcegroupid=nil)
691
+ @Filters = filters
692
+ @Offset = offset
693
+ @Limit = limit
694
+ @Order = order
695
+ @OrderField = orderfield
696
+ @ResourceGroupId = resourcegroupid
697
+ end
698
+
699
+ def deserialize(params)
700
+ unless params['Filters'].nil?
701
+ @Filters = []
702
+ params['Filters'].each do |i|
703
+ filter_tmp = Filter.new
704
+ filter_tmp.deserialize(i)
705
+ @Filters << filter_tmp
706
+ end
707
+ end
708
+ @Offset = params['Offset']
709
+ @Limit = params['Limit']
710
+ @Order = params['Order']
711
+ @OrderField = params['OrderField']
712
+ @ResourceGroupId = params['ResourceGroupId']
713
+ end
714
+ end
715
+
716
+ # DescribeInstances返回参数结构体
717
+ class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
718
+ # @param TotalCount: 资源组下节点总数
719
+ # @type TotalCount: Integer
720
+ # @param Instances: 资源组下节点列表
721
+ # @type Instances: Array
722
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
723
+ # @type RequestId: String
724
+
725
+ attr_accessor :TotalCount, :Instances, :RequestId
726
+
727
+ def initialize(totalcount=nil, instances=nil, requestid=nil)
728
+ @TotalCount = totalcount
729
+ @Instances = instances
730
+ @RequestId = requestid
731
+ end
732
+
733
+ def deserialize(params)
734
+ @TotalCount = params['TotalCount']
735
+ unless params['Instances'].nil?
736
+ @Instances = []
737
+ params['Instances'].each do |i|
738
+ instance_tmp = Instance.new
739
+ instance_tmp.deserialize(i)
740
+ @Instances << instance_tmp
741
+ end
742
+ end
743
+ @RequestId = params['RequestId']
744
+ end
745
+ end
746
+
747
+ # DescribeResourceGroups请求参数结构体
748
+ class DescribeResourceGroupsRequest < TencentCloud::Common::AbstractModel
749
+ # @param Filters: 筛选选项
750
+ # @type Filters: Array
751
+ # @param Offset: 偏移量,默认为0
752
+ # @type Offset: Integer
753
+ # @param Limit: 返回数量,默认为20,最大值为200
754
+ # @type Limit: Integer
755
+ # @param Order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列
756
+ # @type Order: String
757
+ # @param OrderField: 排序的依据字段, 取值范围 "CREATE_TIME", "UPDATE_TIME", "NAME"
758
+ # @type OrderField: String
759
+
760
+ attr_accessor :Filters, :Offset, :Limit, :Order, :OrderField
761
+
762
+ def initialize(filters=nil, offset=nil, limit=nil, order=nil, orderfield=nil)
763
+ @Filters = filters
764
+ @Offset = offset
765
+ @Limit = limit
766
+ @Order = order
767
+ @OrderField = orderfield
768
+ end
769
+
770
+ def deserialize(params)
771
+ unless params['Filters'].nil?
772
+ @Filters = []
773
+ params['Filters'].each do |i|
774
+ filter_tmp = Filter.new
775
+ filter_tmp.deserialize(i)
776
+ @Filters << filter_tmp
777
+ end
778
+ end
779
+ @Offset = params['Offset']
780
+ @Limit = params['Limit']
781
+ @Order = params['Order']
782
+ @OrderField = params['OrderField']
783
+ end
784
+ end
785
+
786
+ # DescribeResourceGroups返回参数结构体
787
+ class DescribeResourceGroupsResponse < TencentCloud::Common::AbstractModel
788
+ # @param TotalCount: 资源组总数
789
+ # @type TotalCount: Integer
790
+ # @param ResourceGroups: 资源组列表
791
+ # 注意:此字段可能返回 null,表示取不到有效值。
792
+ # @type ResourceGroups: Array
793
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
794
+ # @type RequestId: String
795
+
796
+ attr_accessor :TotalCount, :ResourceGroups, :RequestId
797
+
798
+ def initialize(totalcount=nil, resourcegroups=nil, requestid=nil)
799
+ @TotalCount = totalcount
800
+ @ResourceGroups = resourcegroups
801
+ @RequestId = requestid
802
+ end
803
+
804
+ def deserialize(params)
805
+ @TotalCount = params['TotalCount']
806
+ unless params['ResourceGroups'].nil?
807
+ @ResourceGroups = []
808
+ params['ResourceGroups'].each do |i|
809
+ resourcegroup_tmp = ResourceGroup.new
810
+ resourcegroup_tmp.deserialize(i)
811
+ @ResourceGroups << resourcegroup_tmp
812
+ end
813
+ end
814
+ @RequestId = params['RequestId']
815
+ end
816
+ end
817
+
818
+ # DescribeRsgAsGroupActivities请求参数结构体
819
+ class DescribeRsgAsGroupActivitiesRequest < TencentCloud::Common::AbstractModel
820
+ # @param Id: 伸缩组 ID
821
+ # @type Id: String
822
+ # @param StartTime: 查询活动的开始时间
823
+ # @type StartTime: String
824
+ # @param EndTime: 查询互动的结束时间
825
+ # @type EndTime: String
826
+ # @param Filters: 筛选选项
827
+ # @type Filters: Array
828
+ # @param Offset: 偏移量,默认为 0
829
+ # @type Offset: Integer
830
+ # @param Limit: 返回数量,默认为 20,最大值为 200
831
+ # @type Limit: Integer
832
+ # @param Order: 输出列表的排列顺序。取值范围:"ASC", "DESC"
833
+ # @type Order: String
834
+ # @param OrderField: 排序的依据字段, 取值范围 "CREATE_TIME", "UPDATE_TIME", "NAME"
835
+ # @type OrderField: String
836
+
837
+ attr_accessor :Id, :StartTime, :EndTime, :Filters, :Offset, :Limit, :Order, :OrderField
838
+
839
+ def initialize(id=nil, starttime=nil, endtime=nil, filters=nil, offset=nil, limit=nil, order=nil, orderfield=nil)
840
+ @Id = id
841
+ @StartTime = starttime
842
+ @EndTime = endtime
843
+ @Filters = filters
844
+ @Offset = offset
845
+ @Limit = limit
846
+ @Order = order
847
+ @OrderField = orderfield
848
+ end
849
+
850
+ def deserialize(params)
851
+ @Id = params['Id']
852
+ @StartTime = params['StartTime']
853
+ @EndTime = params['EndTime']
854
+ unless params['Filters'].nil?
855
+ @Filters = []
856
+ params['Filters'].each do |i|
857
+ filter_tmp = Filter.new
858
+ filter_tmp.deserialize(i)
859
+ @Filters << filter_tmp
860
+ end
861
+ end
862
+ @Offset = params['Offset']
863
+ @Limit = params['Limit']
864
+ @Order = params['Order']
865
+ @OrderField = params['OrderField']
866
+ end
867
+ end
868
+
869
+ # DescribeRsgAsGroupActivities返回参数结构体
870
+ class DescribeRsgAsGroupActivitiesResponse < TencentCloud::Common::AbstractModel
871
+ # @param RsgAsGroupActivitySet: 伸缩组活动数组
872
+ # 注意:此字段可能返回 null,表示取不到有效值。
873
+ # @type RsgAsGroupActivitySet: Array
874
+ # @param TotalCount: 所查询的伸缩组活动总数目
875
+ # @type TotalCount: Integer
876
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
877
+ # @type RequestId: String
878
+
879
+ attr_accessor :RsgAsGroupActivitySet, :TotalCount, :RequestId
880
+
881
+ def initialize(rsgasgroupactivityset=nil, totalcount=nil, requestid=nil)
882
+ @RsgAsGroupActivitySet = rsgasgroupactivityset
883
+ @TotalCount = totalcount
884
+ @RequestId = requestid
885
+ end
886
+
887
+ def deserialize(params)
888
+ unless params['RsgAsGroupActivitySet'].nil?
889
+ @RsgAsGroupActivitySet = []
890
+ params['RsgAsGroupActivitySet'].each do |i|
891
+ rsgasgroupactivity_tmp = RsgAsGroupActivity.new
892
+ rsgasgroupactivity_tmp.deserialize(i)
893
+ @RsgAsGroupActivitySet << rsgasgroupactivity_tmp
894
+ end
895
+ end
896
+ @TotalCount = params['TotalCount']
897
+ @RequestId = params['RequestId']
898
+ end
899
+ end
900
+
901
+ # DescribeRsgAsGroups请求参数结构体
902
+ class DescribeRsgAsGroupsRequest < TencentCloud::Common::AbstractModel
903
+ # @param Filters: 筛选选项
904
+ # @type Filters: Array
905
+ # @param Offset: 偏移量,默认为 0
906
+ # @type Offset: Integer
907
+ # @param Limit: 返回数量,默认为 20,最大值为 200
908
+ # @type Limit: Integer
909
+ # @param Order: 输出列表的排列顺序。取值范围:"ASC", "DESC"
910
+ # @type Order: String
911
+ # @param OrderField: 排序的依据字段, 取值范围 "CREATE_TIME", "UPDATE_TIME", "NAME"
912
+ # @type OrderField: String
913
+
914
+ attr_accessor :Filters, :Offset, :Limit, :Order, :OrderField
915
+
916
+ def initialize(filters=nil, offset=nil, limit=nil, order=nil, orderfield=nil)
917
+ @Filters = filters
918
+ @Offset = offset
919
+ @Limit = limit
920
+ @Order = order
921
+ @OrderField = orderfield
922
+ end
923
+
924
+ def deserialize(params)
925
+ unless params['Filters'].nil?
926
+ @Filters = []
927
+ params['Filters'].each do |i|
928
+ filter_tmp = Filter.new
929
+ filter_tmp.deserialize(i)
930
+ @Filters << filter_tmp
931
+ end
932
+ end
933
+ @Offset = params['Offset']
934
+ @Limit = params['Limit']
935
+ @Order = params['Order']
936
+ @OrderField = params['OrderField']
937
+ end
938
+ end
939
+
940
+ # DescribeRsgAsGroups返回参数结构体
941
+ class DescribeRsgAsGroupsResponse < TencentCloud::Common::AbstractModel
942
+ # @param RsgAsGroupSet: 所查询的伸缩组数组
943
+ # @type RsgAsGroupSet: Array
944
+ # @param TotalCount: 伸缩组数组总数目
945
+ # @type TotalCount: Integer
946
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
947
+ # @type RequestId: String
948
+
949
+ attr_accessor :RsgAsGroupSet, :TotalCount, :RequestId
950
+
951
+ def initialize(rsgasgroupset=nil, totalcount=nil, requestid=nil)
952
+ @RsgAsGroupSet = rsgasgroupset
953
+ @TotalCount = totalcount
954
+ @RequestId = requestid
955
+ end
956
+
957
+ def deserialize(params)
958
+ unless params['RsgAsGroupSet'].nil?
959
+ @RsgAsGroupSet = []
960
+ params['RsgAsGroupSet'].each do |i|
961
+ rsgasgroup_tmp = RsgAsGroup.new
962
+ rsgasgroup_tmp.deserialize(i)
963
+ @RsgAsGroupSet << rsgasgroup_tmp
964
+ end
965
+ end
966
+ @TotalCount = params['TotalCount']
967
+ @RequestId = params['RequestId']
968
+ end
969
+ end
970
+
971
+ # DescribeRuntimes请求参数结构体
972
+ class DescribeRuntimesRequest < TencentCloud::Common::AbstractModel
973
+
974
+
975
+ def initialize()
976
+ end
977
+
978
+ def deserialize(params)
979
+ end
980
+ end
981
+
982
+ # DescribeRuntimes返回参数结构体
983
+ class DescribeRuntimesResponse < TencentCloud::Common::AbstractModel
984
+ # @param Runtimes: TIEMS支持的运行环境列表
985
+ # @type Runtimes: Array
986
+ # @param UserAccess: 用户对runtime对权限
987
+ # 注意:此字段可能返回 null,表示取不到有效值。
988
+ # @type UserAccess: Integer
989
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
990
+ # @type RequestId: String
991
+
992
+ attr_accessor :Runtimes, :UserAccess, :RequestId
993
+
994
+ def initialize(runtimes=nil, useraccess=nil, requestid=nil)
995
+ @Runtimes = runtimes
996
+ @UserAccess = useraccess
997
+ @RequestId = requestid
998
+ end
999
+
1000
+ def deserialize(params)
1001
+ unless params['Runtimes'].nil?
1002
+ @Runtimes = []
1003
+ params['Runtimes'].each do |i|
1004
+ runtime_tmp = Runtime.new
1005
+ runtime_tmp.deserialize(i)
1006
+ @Runtimes << runtime_tmp
1007
+ end
1008
+ end
1009
+ @UserAccess = params['UserAccess']
1010
+ @RequestId = params['RequestId']
1011
+ end
1012
+ end
1013
+
1014
+ # DescribeServiceConfigs请求参数结构体
1015
+ class DescribeServiceConfigsRequest < TencentCloud::Common::AbstractModel
1016
+ # @param Filters: 筛选选项,支持按照name等进行筛选
1017
+ # @type Filters: Array
1018
+ # @param Offset: 偏移量,默认为0
1019
+ # @type Offset: Integer
1020
+ # @param Limit: 返回数量,默认为20,最大值为1000
1021
+ # @type Limit: Integer
1022
+ # @param Order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列
1023
+ # @type Order: String
1024
+ # @param OrderField: 排序的依据字段, 取值范围 "CREATE_TIME", "UPDATE_TIME", "NAME"
1025
+ # @type OrderField: String
1026
+ # @param PageByName: 是否按照配置名分页
1027
+ # @type PageByName: Boolean
1028
+
1029
+ attr_accessor :Filters, :Offset, :Limit, :Order, :OrderField, :PageByName
1030
+
1031
+ def initialize(filters=nil, offset=nil, limit=nil, order=nil, orderfield=nil, pagebyname=nil)
1032
+ @Filters = filters
1033
+ @Offset = offset
1034
+ @Limit = limit
1035
+ @Order = order
1036
+ @OrderField = orderfield
1037
+ @PageByName = pagebyname
1038
+ end
1039
+
1040
+ def deserialize(params)
1041
+ unless params['Filters'].nil?
1042
+ @Filters = []
1043
+ params['Filters'].each do |i|
1044
+ filter_tmp = Filter.new
1045
+ filter_tmp.deserialize(i)
1046
+ @Filters << filter_tmp
1047
+ end
1048
+ end
1049
+ @Offset = params['Offset']
1050
+ @Limit = params['Limit']
1051
+ @Order = params['Order']
1052
+ @OrderField = params['OrderField']
1053
+ @PageByName = params['PageByName']
1054
+ end
1055
+ end
1056
+
1057
+ # DescribeServiceConfigs返回参数结构体
1058
+ class DescribeServiceConfigsResponse < TencentCloud::Common::AbstractModel
1059
+ # @param ServiceConfigs: 服务配置
1060
+ # @type ServiceConfigs: Array
1061
+ # @param TotalCount: 服务配置总数
1062
+ # @type TotalCount: Integer
1063
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1064
+ # @type RequestId: String
1065
+
1066
+ attr_accessor :ServiceConfigs, :TotalCount, :RequestId
1067
+
1068
+ def initialize(serviceconfigs=nil, totalcount=nil, requestid=nil)
1069
+ @ServiceConfigs = serviceconfigs
1070
+ @TotalCount = totalcount
1071
+ @RequestId = requestid
1072
+ end
1073
+
1074
+ def deserialize(params)
1075
+ unless params['ServiceConfigs'].nil?
1076
+ @ServiceConfigs = []
1077
+ params['ServiceConfigs'].each do |i|
1078
+ config_tmp = Config.new
1079
+ config_tmp.deserialize(i)
1080
+ @ServiceConfigs << config_tmp
1081
+ end
1082
+ end
1083
+ @TotalCount = params['TotalCount']
1084
+ @RequestId = params['RequestId']
1085
+ end
1086
+ end
1087
+
1088
+ # DescribeServices请求参数结构体
1089
+ class DescribeServicesRequest < TencentCloud::Common::AbstractModel
1090
+ # @param Filters: 筛选选项,支持筛选的字段:id, region, zone, cluster, status, runtime, rsg_id
1091
+ # @type Filters: Array
1092
+ # @param Offset: 偏移量,默认为0
1093
+ # @type Offset: Integer
1094
+ # @param Limit: 返回数量,默认为20,最大值为100
1095
+ # @type Limit: Integer
1096
+ # @param Order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列
1097
+ # @type Order: String
1098
+ # @param OrderField: 排序的依据字段, 取值范围 "CREATE_TIME" "UPDATE_TIME"
1099
+ # @type OrderField: String
1100
+
1101
+ attr_accessor :Filters, :Offset, :Limit, :Order, :OrderField
1102
+
1103
+ def initialize(filters=nil, offset=nil, limit=nil, order=nil, orderfield=nil)
1104
+ @Filters = filters
1105
+ @Offset = offset
1106
+ @Limit = limit
1107
+ @Order = order
1108
+ @OrderField = orderfield
1109
+ end
1110
+
1111
+ def deserialize(params)
1112
+ unless params['Filters'].nil?
1113
+ @Filters = []
1114
+ params['Filters'].each do |i|
1115
+ filter_tmp = Filter.new
1116
+ filter_tmp.deserialize(i)
1117
+ @Filters << filter_tmp
1118
+ end
1119
+ end
1120
+ @Offset = params['Offset']
1121
+ @Limit = params['Limit']
1122
+ @Order = params['Order']
1123
+ @OrderField = params['OrderField']
1124
+ end
1125
+ end
1126
+
1127
+ # DescribeServices返回参数结构体
1128
+ class DescribeServicesResponse < TencentCloud::Common::AbstractModel
1129
+ # @param Services: 服务列表
1130
+ # @type Services: Array
1131
+ # @param TotalCount: 服务总数
1132
+ # @type TotalCount: Integer
1133
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1134
+ # @type RequestId: String
1135
+
1136
+ attr_accessor :Services, :TotalCount, :RequestId
1137
+
1138
+ def initialize(services=nil, totalcount=nil, requestid=nil)
1139
+ @Services = services
1140
+ @TotalCount = totalcount
1141
+ @RequestId = requestid
1142
+ end
1143
+
1144
+ def deserialize(params)
1145
+ unless params['Services'].nil?
1146
+ @Services = []
1147
+ params['Services'].each do |i|
1148
+ modelservice_tmp = ModelService.new
1149
+ modelservice_tmp.deserialize(i)
1150
+ @Services << modelservice_tmp
1151
+ end
1152
+ end
1153
+ @TotalCount = params['TotalCount']
1154
+ @RequestId = params['RequestId']
1155
+ end
1156
+ end
1157
+
1158
+ # DisableRsgAsGroup请求参数结构体
1159
+ class DisableRsgAsGroupRequest < TencentCloud::Common::AbstractModel
1160
+ # @param Id: 伸缩组 ID
1161
+ # @type Id: String
1162
+
1163
+ attr_accessor :Id
1164
+
1165
+ def initialize(id=nil)
1166
+ @Id = id
1167
+ end
1168
+
1169
+ def deserialize(params)
1170
+ @Id = params['Id']
1171
+ end
1172
+ end
1173
+
1174
+ # DisableRsgAsGroup返回参数结构体
1175
+ class DisableRsgAsGroupResponse < TencentCloud::Common::AbstractModel
1176
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1177
+ # @type RequestId: String
1178
+
1179
+ attr_accessor :RequestId
1180
+
1181
+ def initialize(requestid=nil)
1182
+ @RequestId = requestid
1183
+ end
1184
+
1185
+ def deserialize(params)
1186
+ @RequestId = params['RequestId']
1187
+ end
1188
+ end
1189
+
1190
+ # EnableRsgAsGroup请求参数结构体
1191
+ class EnableRsgAsGroupRequest < TencentCloud::Common::AbstractModel
1192
+ # @param Id: 伸缩组 ID
1193
+ # @type Id: String
1194
+
1195
+ attr_accessor :Id
1196
+
1197
+ def initialize(id=nil)
1198
+ @Id = id
1199
+ end
1200
+
1201
+ def deserialize(params)
1202
+ @Id = params['Id']
1203
+ end
1204
+ end
1205
+
1206
+ # EnableRsgAsGroup返回参数结构体
1207
+ class EnableRsgAsGroupResponse < TencentCloud::Common::AbstractModel
1208
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1209
+ # @type RequestId: String
1210
+
1211
+ attr_accessor :RequestId
1212
+
1213
+ def initialize(requestid=nil)
1214
+ @RequestId = requestid
1215
+ end
1216
+
1217
+ def deserialize(params)
1218
+ @RequestId = params['RequestId']
1219
+ end
1220
+ end
1221
+
1222
+ # 暴露信息
1223
+ class ExposeInfo < TencentCloud::Common::AbstractModel
1224
+ # @param ExposeType: 暴露方式,支持 EXTERNAL(外网暴露),VPC (VPC内网打通)
1225
+ # @type ExposeType: String
1226
+ # @param Ip: 暴露Ip。暴露方式为 EXTERNAL 为外网 Ip,暴露方式为 VPC 时为指定 Vpc 下的Vip
1227
+ # @type Ip: String
1228
+ # @param VpcId: 暴露方式为 VPC 时,打通的私有网络Id
1229
+ # 注意:此字段可能返回 null,表示取不到有效值。
1230
+ # @type VpcId: String
1231
+ # @param SubnetId: 暴露方式为 VPC 时,打通的子网Id
1232
+ # 注意:此字段可能返回 null,表示取不到有效值。
1233
+ # @type SubnetId: String
1234
+ # @param GateWayServiceId: GATEWAY 服务id,ExposeType = GATEWAY 时返回
1235
+ # 注意:此字段可能返回 null,表示取不到有效值。
1236
+ # @type GateWayServiceId: String
1237
+ # @param GateWayAPIId: GATEWAY api id,ExposeType = GATEWAY 时返回
1238
+ # 注意:此字段可能返回 null,表示取不到有效值。
1239
+ # @type GateWayAPIId: String
1240
+ # @param GateWayDomain: GATEWAY domain,ExposeType = GATEWAY 时返回
1241
+ # 注意:此字段可能返回 null,表示取不到有效值。
1242
+ # @type GateWayDomain: String
1243
+
1244
+ attr_accessor :ExposeType, :Ip, :VpcId, :SubnetId, :GateWayServiceId, :GateWayAPIId, :GateWayDomain
1245
+
1246
+ def initialize(exposetype=nil, ip=nil, vpcid=nil, subnetid=nil, gatewayserviceid=nil, gatewayapiid=nil, gatewaydomain=nil)
1247
+ @ExposeType = exposetype
1248
+ @Ip = ip
1249
+ @VpcId = vpcid
1250
+ @SubnetId = subnetid
1251
+ @GateWayServiceId = gatewayserviceid
1252
+ @GateWayAPIId = gatewayapiid
1253
+ @GateWayDomain = gatewaydomain
1254
+ end
1255
+
1256
+ def deserialize(params)
1257
+ @ExposeType = params['ExposeType']
1258
+ @Ip = params['Ip']
1259
+ @VpcId = params['VpcId']
1260
+ @SubnetId = params['SubnetId']
1261
+ @GateWayServiceId = params['GateWayServiceId']
1262
+ @GateWayAPIId = params['GateWayAPIId']
1263
+ @GateWayDomain = params['GateWayDomain']
1264
+ end
1265
+ end
1266
+
1267
+ # ExposeService请求参数结构体
1268
+ class ExposeServiceRequest < TencentCloud::Common::AbstractModel
1269
+ # @param ServiceId: 服务Id
1270
+ # @type ServiceId: String
1271
+ # @param ExposeType: 暴露方式,支持 EXTERNAL(外网暴露),VPC (VPC内网打通)
1272
+ # @type ExposeType: String
1273
+ # @param VpcId: 暴露方式为 VPC 时,填写需要打通的私有网络Id
1274
+ # @type VpcId: String
1275
+ # @param SubnetId: 暴露方式为 VPC 时,填写需要打通的子网Id
1276
+ # @type SubnetId: String
1277
+
1278
+ attr_accessor :ServiceId, :ExposeType, :VpcId, :SubnetId
1279
+
1280
+ def initialize(serviceid=nil, exposetype=nil, vpcid=nil, subnetid=nil)
1281
+ @ServiceId = serviceid
1282
+ @ExposeType = exposetype
1283
+ @VpcId = vpcid
1284
+ @SubnetId = subnetid
1285
+ end
1286
+
1287
+ def deserialize(params)
1288
+ @ServiceId = params['ServiceId']
1289
+ @ExposeType = params['ExposeType']
1290
+ @VpcId = params['VpcId']
1291
+ @SubnetId = params['SubnetId']
1292
+ end
1293
+ end
1294
+
1295
+ # ExposeService返回参数结构体
1296
+ class ExposeServiceResponse < TencentCloud::Common::AbstractModel
1297
+ # @param Expose: 暴露方式
1298
+ # @type Expose: :class:`Tencentcloud::Tiems.v20190416.models.ExposeInfo`
1299
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1300
+ # @type RequestId: String
1301
+
1302
+ attr_accessor :Expose, :RequestId
1303
+
1304
+ def initialize(expose=nil, requestid=nil)
1305
+ @Expose = expose
1306
+ @RequestId = requestid
1307
+ end
1308
+
1309
+ def deserialize(params)
1310
+ unless params['Expose'].nil?
1311
+ @Expose = ExposeInfo.new
1312
+ @Expose.deserialize(params['Expose'])
1313
+ end
1314
+ @RequestId = params['RequestId']
1315
+ end
1316
+ end
1317
+
1318
+ # 筛选项
1319
+ class Filter < TencentCloud::Common::AbstractModel
1320
+ # @param Name: 名称
1321
+ # @type Name: String
1322
+ # @param Values: 取值
1323
+ # @type Values: Array
1324
+
1325
+ attr_accessor :Name, :Values
1326
+
1327
+ def initialize(name=nil, values=nil)
1328
+ @Name = name
1329
+ @Values = values
1330
+ end
1331
+
1332
+ def deserialize(params)
1333
+ @Name = params['Name']
1334
+ @Values = params['Values']
1335
+ end
1336
+ end
1337
+
1338
+ # 节点
1339
+ class Instance < TencentCloud::Common::AbstractModel
1340
+ # @param Id: 节点 ID
1341
+ # @type Id: String
1342
+ # @param Zone: 节点所在地区
1343
+ # @type Zone: String
1344
+ # @param InstanceType: 节点类型
1345
+ # @type InstanceType: String
1346
+ # @param InstanceChargeType: 节点充值类型
1347
+ # @type InstanceChargeType: String
1348
+ # @param Cpu: Cpu 核数
1349
+ # @type Cpu: Integer
1350
+ # @param Memory: 内存
1351
+ # @type Memory: Integer
1352
+ # @param Gpu: Gpu 核数
1353
+ # @type Gpu: Integer
1354
+ # @param State: 节点状态
1355
+ # @type State: String
1356
+ # @param AbnormalReason: 节点故障信息
1357
+ # @type AbnormalReason: String
1358
+ # @param Created: 创建时间
1359
+ # @type Created: String
1360
+ # @param Updated: 更新时间
1361
+ # @type Updated: String
1362
+ # @param DeadlineTime: 到期时间
1363
+ # @type DeadlineTime: String
1364
+ # @param ResourceGroupId: 所属资源组 ID
1365
+ # @type ResourceGroupId: String
1366
+ # @param RenewFlag: 自动续费标签
1367
+ # @type RenewFlag: String
1368
+ # @param Region: 节点所在地域
1369
+ # @type Region: String
1370
+ # @param CpuRequested: 当前 Cpu 申请使用量
1371
+ # @type CpuRequested: Integer
1372
+ # @param MemoryRequested: 当前 Memory 申请使用量
1373
+ # @type MemoryRequested: Integer
1374
+ # @param GpuRequested: 当前 Gpu 申请使用量
1375
+ # @type GpuRequested: Integer
1376
+ # @param RsgAsGroupId: 节点所在伸缩组 ID
1377
+ # @type RsgAsGroupId: String
1378
+
1379
+ attr_accessor :Id, :Zone, :InstanceType, :InstanceChargeType, :Cpu, :Memory, :Gpu, :State, :AbnormalReason, :Created, :Updated, :DeadlineTime, :ResourceGroupId, :RenewFlag, :Region, :CpuRequested, :MemoryRequested, :GpuRequested, :RsgAsGroupId
1380
+
1381
+ def initialize(id=nil, zone=nil, instancetype=nil, instancechargetype=nil, cpu=nil, memory=nil, gpu=nil, state=nil, abnormalreason=nil, created=nil, updated=nil, deadlinetime=nil, resourcegroupid=nil, renewflag=nil, region=nil, cpurequested=nil, memoryrequested=nil, gpurequested=nil, rsgasgroupid=nil)
1382
+ @Id = id
1383
+ @Zone = zone
1384
+ @InstanceType = instancetype
1385
+ @InstanceChargeType = instancechargetype
1386
+ @Cpu = cpu
1387
+ @Memory = memory
1388
+ @Gpu = gpu
1389
+ @State = state
1390
+ @AbnormalReason = abnormalreason
1391
+ @Created = created
1392
+ @Updated = updated
1393
+ @DeadlineTime = deadlinetime
1394
+ @ResourceGroupId = resourcegroupid
1395
+ @RenewFlag = renewflag
1396
+ @Region = region
1397
+ @CpuRequested = cpurequested
1398
+ @MemoryRequested = memoryrequested
1399
+ @GpuRequested = gpurequested
1400
+ @RsgAsGroupId = rsgasgroupid
1401
+ end
1402
+
1403
+ def deserialize(params)
1404
+ @Id = params['Id']
1405
+ @Zone = params['Zone']
1406
+ @InstanceType = params['InstanceType']
1407
+ @InstanceChargeType = params['InstanceChargeType']
1408
+ @Cpu = params['Cpu']
1409
+ @Memory = params['Memory']
1410
+ @Gpu = params['Gpu']
1411
+ @State = params['State']
1412
+ @AbnormalReason = params['AbnormalReason']
1413
+ @Created = params['Created']
1414
+ @Updated = params['Updated']
1415
+ @DeadlineTime = params['DeadlineTime']
1416
+ @ResourceGroupId = params['ResourceGroupId']
1417
+ @RenewFlag = params['RenewFlag']
1418
+ @Region = params['Region']
1419
+ @CpuRequested = params['CpuRequested']
1420
+ @MemoryRequested = params['MemoryRequested']
1421
+ @GpuRequested = params['GpuRequested']
1422
+ @RsgAsGroupId = params['RsgAsGroupId']
1423
+ end
1424
+ end
1425
+
1426
+ # 任务
1427
+ class Job < TencentCloud::Common::AbstractModel
1428
+ # @param Id: 任务 Id
1429
+ # @type Id: String
1430
+ # @param Cluster: 集群名
1431
+ # 注意:此字段可能返回 null,表示取不到有效值。
1432
+ # @type Cluster: String
1433
+ # @param Region: Region 名
1434
+ # @type Region: String
1435
+ # @param Name: 任务名称
1436
+ # @type Name: String
1437
+ # @param Runtime: Worker 使用的运行环境
1438
+ # 注意:此字段可能返回 null,表示取不到有效值。
1439
+ # @type Runtime: String
1440
+ # @param Description: 任务描述
1441
+ # 注意:此字段可能返回 null,表示取不到有效值。
1442
+ # @type Description: String
1443
+ # @param ConfigId: 配置 Id
1444
+ # 注意:此字段可能返回 null,表示取不到有效值。
1445
+ # @type ConfigId: String
1446
+ # @param PredictInput: 预测输入
1447
+ # 注意:此字段可能返回 null,表示取不到有效值。
1448
+ # @type PredictInput: :class:`Tencentcloud::Tiems.v20190416.models.PredictInput`
1449
+ # @param Status: 任务状态
1450
+ # @type Status: :class:`Tencentcloud::Tiems.v20190416.models.JobStatus`
1451
+ # @param CreateTime: 任务创建时间
1452
+ # @type CreateTime: String
1453
+ # @param StartTime: 任务开始时间
1454
+ # 注意:此字段可能返回 null,表示取不到有效值。
1455
+ # @type StartTime: String
1456
+ # @param EndTime: 任务结束时间
1457
+ # 注意:此字段可能返回 null,表示取不到有效值。
1458
+ # @type EndTime: String
1459
+ # @param CancelTime: 任务取消时间
1460
+ # 注意:此字段可能返回 null,表示取不到有效值。
1461
+ # @type CancelTime: String
1462
+ # @param ResourceGroupId: 任务使用资源组 Id
1463
+ # 注意:此字段可能返回 null,表示取不到有效值。
1464
+ # @type ResourceGroupId: String
1465
+ # @param Cpu: 处理器配置, 单位为1/1000核;范围[100, 256000]
1466
+ # 注意:此字段可能返回 null,表示取不到有效值。
1467
+ # @type Cpu: Integer
1468
+ # @param Memory: 内存配置, 单位为1M;范围[100, 256000]
1469
+ # 注意:此字段可能返回 null,表示取不到有效值。
1470
+ # @type Memory: Integer
1471
+ # @param Gpu: GPU算力配置,单位为1/1000 卡,范围 [0, 256000]
1472
+ # 注意:此字段可能返回 null,表示取不到有效值。
1473
+ # @type Gpu: Integer
1474
+ # @param GpuMemory: 显存配置, 单位为1M,范围 [0, 256000]
1475
+ # 注意:此字段可能返回 null,表示取不到有效值。
1476
+ # @type GpuMemory: Integer
1477
+ # @param ResourceGroupName: 任务使用资源组名称
1478
+ # 注意:此字段可能返回 null,表示取不到有效值。
1479
+ # @type ResourceGroupName: String
1480
+ # @param GpuType: GPU类型
1481
+ # 注意:此字段可能返回 null,表示取不到有效值。
1482
+ # @type GpuType: String
1483
+ # @param ConfigName: 配置名
1484
+ # 注意:此字段可能返回 null,表示取不到有效值。
1485
+ # @type ConfigName: String
1486
+ # @param ConfigVersion: 配置版本
1487
+ # 注意:此字段可能返回 null,表示取不到有效值。
1488
+ # @type ConfigVersion: String
1489
+ # @param JobType: Job类型
1490
+ # 注意:此字段可能返回 null,表示取不到有效值。
1491
+ # @type JobType: String
1492
+ # @param QuantizationInput: 量化输入
1493
+ # 注意:此字段可能返回 null,表示取不到有效值。
1494
+ # @type QuantizationInput: :class:`Tencentcloud::Tiems.v20190416.models.QuantizationInput`
1495
+ # @param LogTopicId: Cls日志主题ID
1496
+ # 注意:此字段可能返回 null,表示取不到有效值。
1497
+ # @type LogTopicId: String
1498
+
1499
+ attr_accessor :Id, :Cluster, :Region, :Name, :Runtime, :Description, :ConfigId, :PredictInput, :Status, :CreateTime, :StartTime, :EndTime, :CancelTime, :ResourceGroupId, :Cpu, :Memory, :Gpu, :GpuMemory, :ResourceGroupName, :GpuType, :ConfigName, :ConfigVersion, :JobType, :QuantizationInput, :LogTopicId
1500
+
1501
+ def initialize(id=nil, cluster=nil, region=nil, name=nil, runtime=nil, description=nil, configid=nil, predictinput=nil, status=nil, createtime=nil, starttime=nil, endtime=nil, canceltime=nil, resourcegroupid=nil, cpu=nil, memory=nil, gpu=nil, gpumemory=nil, resourcegroupname=nil, gputype=nil, configname=nil, configversion=nil, jobtype=nil, quantizationinput=nil, logtopicid=nil)
1502
+ @Id = id
1503
+ @Cluster = cluster
1504
+ @Region = region
1505
+ @Name = name
1506
+ @Runtime = runtime
1507
+ @Description = description
1508
+ @ConfigId = configid
1509
+ @PredictInput = predictinput
1510
+ @Status = status
1511
+ @CreateTime = createtime
1512
+ @StartTime = starttime
1513
+ @EndTime = endtime
1514
+ @CancelTime = canceltime
1515
+ @ResourceGroupId = resourcegroupid
1516
+ @Cpu = cpu
1517
+ @Memory = memory
1518
+ @Gpu = gpu
1519
+ @GpuMemory = gpumemory
1520
+ @ResourceGroupName = resourcegroupname
1521
+ @GpuType = gputype
1522
+ @ConfigName = configname
1523
+ @ConfigVersion = configversion
1524
+ @JobType = jobtype
1525
+ @QuantizationInput = quantizationinput
1526
+ @LogTopicId = logtopicid
1527
+ end
1528
+
1529
+ def deserialize(params)
1530
+ @Id = params['Id']
1531
+ @Cluster = params['Cluster']
1532
+ @Region = params['Region']
1533
+ @Name = params['Name']
1534
+ @Runtime = params['Runtime']
1535
+ @Description = params['Description']
1536
+ @ConfigId = params['ConfigId']
1537
+ unless params['PredictInput'].nil?
1538
+ @PredictInput = PredictInput.new
1539
+ @PredictInput.deserialize(params['PredictInput'])
1540
+ end
1541
+ unless params['Status'].nil?
1542
+ @Status = JobStatus.new
1543
+ @Status.deserialize(params['Status'])
1544
+ end
1545
+ @CreateTime = params['CreateTime']
1546
+ @StartTime = params['StartTime']
1547
+ @EndTime = params['EndTime']
1548
+ @CancelTime = params['CancelTime']
1549
+ @ResourceGroupId = params['ResourceGroupId']
1550
+ @Cpu = params['Cpu']
1551
+ @Memory = params['Memory']
1552
+ @Gpu = params['Gpu']
1553
+ @GpuMemory = params['GpuMemory']
1554
+ @ResourceGroupName = params['ResourceGroupName']
1555
+ @GpuType = params['GpuType']
1556
+ @ConfigName = params['ConfigName']
1557
+ @ConfigVersion = params['ConfigVersion']
1558
+ @JobType = params['JobType']
1559
+ unless params['QuantizationInput'].nil?
1560
+ @QuantizationInput = QuantizationInput.new
1561
+ @QuantizationInput.deserialize(params['QuantizationInput'])
1562
+ end
1563
+ @LogTopicId = params['LogTopicId']
1564
+ end
1565
+ end
1566
+
1567
+ # 任务状态
1568
+ class JobStatus < TencentCloud::Common::AbstractModel
1569
+ # @param Status: 任务状态
1570
+ # @type Status: String
1571
+ # @param Message: 错误时为错误描述
1572
+ # 注意:此字段可能返回 null,表示取不到有效值。
1573
+ # @type Message: String
1574
+ # @param DesiredWorkers: 预期Worker数量
1575
+ # 注意:此字段可能返回 null,表示取不到有效值。
1576
+ # @type DesiredWorkers: Integer
1577
+ # @param CurrentWorkers: 当前Worker数量
1578
+ # 注意:此字段可能返回 null,表示取不到有效值。
1579
+ # @type CurrentWorkers: Integer
1580
+ # @param Replicas: 副本名
1581
+ # 注意:此字段可能返回 null,表示取不到有效值。
1582
+ # @type Replicas: Array
1583
+ # @param ReplicaInfos: 副本实例
1584
+ # 注意:此字段可能返回 null,表示取不到有效值。
1585
+ # @type ReplicaInfos: Array
1586
+
1587
+ attr_accessor :Status, :Message, :DesiredWorkers, :CurrentWorkers, :Replicas, :ReplicaInfos
1588
+
1589
+ def initialize(status=nil, message=nil, desiredworkers=nil, currentworkers=nil, replicas=nil, replicainfos=nil)
1590
+ @Status = status
1591
+ @Message = message
1592
+ @DesiredWorkers = desiredworkers
1593
+ @CurrentWorkers = currentworkers
1594
+ @Replicas = replicas
1595
+ @ReplicaInfos = replicainfos
1596
+ end
1597
+
1598
+ def deserialize(params)
1599
+ @Status = params['Status']
1600
+ @Message = params['Message']
1601
+ @DesiredWorkers = params['DesiredWorkers']
1602
+ @CurrentWorkers = params['CurrentWorkers']
1603
+ @Replicas = params['Replicas']
1604
+ unless params['ReplicaInfos'].nil?
1605
+ @ReplicaInfos = []
1606
+ params['ReplicaInfos'].each do |i|
1607
+ replicainfo_tmp = ReplicaInfo.new
1608
+ replicainfo_tmp.deserialize(i)
1609
+ @ReplicaInfos << replicainfo_tmp
1610
+ end
1611
+ end
1612
+ end
1613
+ end
1614
+
1615
+ # 模型服务
1616
+ class ModelService < TencentCloud::Common::AbstractModel
1617
+ # @param Id: 服务ID
1618
+ # @type Id: String
1619
+ # @param Cluster: 运行集群
1620
+ # 注意:此字段可能返回 null,表示取不到有效值。
1621
+ # @type Cluster: String
1622
+ # @param Name: 服务名称
1623
+ # @type Name: String
1624
+ # @param Runtime: 运行环境
1625
+ # @type Runtime: String
1626
+ # @param ModelUri: 模型地址
1627
+ # @type ModelUri: String
1628
+ # @param Cpu: 处理器配置, 单位为1/1000核
1629
+ # @type Cpu: Integer
1630
+ # @param Memory: 内存配置, 单位为1M
1631
+ # @type Memory: Integer
1632
+ # @param Gpu: GPU 配置, 单位为1/1000 卡
1633
+ # @type Gpu: Integer
1634
+ # @param GpuMemory: 显存配置, 单位为1M
1635
+ # @type GpuMemory: Integer
1636
+ # @param CreateTime: 创建时间
1637
+ # @type CreateTime: String
1638
+ # @param UpdateTime: 更新时间
1639
+ # @type UpdateTime: String
1640
+ # @param ScaleMode: 支持AUTO, MANUAL
1641
+ # @type ScaleMode: String
1642
+ # @param Scaler: 弹性伸缩配置
1643
+ # @type Scaler: :class:`Tencentcloud::Tiems.v20190416.models.Scaler`
1644
+ # @param Status: 服务状态
1645
+ # @type Status: :class:`Tencentcloud::Tiems.v20190416.models.ServiceStatus`
1646
+ # @param AccessToken: 访问密钥
1647
+ # 注意:此字段可能返回 null,表示取不到有效值。
1648
+ # @type AccessToken: String
1649
+ # @param ConfigId: 服务配置Id
1650
+ # @type ConfigId: String
1651
+ # @param ConfigName: 服务配置名
1652
+ # @type ConfigName: String
1653
+ # @param ServeSeconds: 服务运行时长
1654
+ # @type ServeSeconds: Integer
1655
+ # @param ConfigVersion: 配置版本
1656
+ # 注意:此字段可能返回 null,表示取不到有效值。
1657
+ # @type ConfigVersion: String
1658
+ # @param ResourceGroupId: 服务使用资源组 Id
1659
+ # 注意:此字段可能返回 null,表示取不到有效值。
1660
+ # @type ResourceGroupId: String
1661
+ # @param Exposes: 暴露方式
1662
+ # 注意:此字段可能返回 null,表示取不到有效值。
1663
+ # @type Exposes: Array
1664
+ # @param Region: Region 名
1665
+ # 注意:此字段可能返回 null,表示取不到有效值。
1666
+ # @type Region: String
1667
+ # @param ResourceGroupName: 服务使用资源组名称
1668
+ # 注意:此字段可能返回 null,表示取不到有效值。
1669
+ # @type ResourceGroupName: String
1670
+ # @param Description: 备注
1671
+ # 注意:此字段可能返回 null,表示取不到有效值。
1672
+ # @type Description: String
1673
+ # @param GpuType: GPU类型
1674
+ # 注意:此字段可能返回 null,表示取不到有效值。
1675
+ # @type GpuType: String
1676
+ # @param LogTopicId: Cls日志主题Id
1677
+ # 注意:此字段可能返回 null,表示取不到有效值。
1678
+ # @type LogTopicId: String
1679
+
1680
+ attr_accessor :Id, :Cluster, :Name, :Runtime, :ModelUri, :Cpu, :Memory, :Gpu, :GpuMemory, :CreateTime, :UpdateTime, :ScaleMode, :Scaler, :Status, :AccessToken, :ConfigId, :ConfigName, :ServeSeconds, :ConfigVersion, :ResourceGroupId, :Exposes, :Region, :ResourceGroupName, :Description, :GpuType, :LogTopicId
1681
+
1682
+ def initialize(id=nil, cluster=nil, name=nil, runtime=nil, modeluri=nil, cpu=nil, memory=nil, gpu=nil, gpumemory=nil, createtime=nil, updatetime=nil, scalemode=nil, scaler=nil, status=nil, accesstoken=nil, configid=nil, configname=nil, serveseconds=nil, configversion=nil, resourcegroupid=nil, exposes=nil, region=nil, resourcegroupname=nil, description=nil, gputype=nil, logtopicid=nil)
1683
+ @Id = id
1684
+ @Cluster = cluster
1685
+ @Name = name
1686
+ @Runtime = runtime
1687
+ @ModelUri = modeluri
1688
+ @Cpu = cpu
1689
+ @Memory = memory
1690
+ @Gpu = gpu
1691
+ @GpuMemory = gpumemory
1692
+ @CreateTime = createtime
1693
+ @UpdateTime = updatetime
1694
+ @ScaleMode = scalemode
1695
+ @Scaler = scaler
1696
+ @Status = status
1697
+ @AccessToken = accesstoken
1698
+ @ConfigId = configid
1699
+ @ConfigName = configname
1700
+ @ServeSeconds = serveseconds
1701
+ @ConfigVersion = configversion
1702
+ @ResourceGroupId = resourcegroupid
1703
+ @Exposes = exposes
1704
+ @Region = region
1705
+ @ResourceGroupName = resourcegroupname
1706
+ @Description = description
1707
+ @GpuType = gputype
1708
+ @LogTopicId = logtopicid
1709
+ end
1710
+
1711
+ def deserialize(params)
1712
+ @Id = params['Id']
1713
+ @Cluster = params['Cluster']
1714
+ @Name = params['Name']
1715
+ @Runtime = params['Runtime']
1716
+ @ModelUri = params['ModelUri']
1717
+ @Cpu = params['Cpu']
1718
+ @Memory = params['Memory']
1719
+ @Gpu = params['Gpu']
1720
+ @GpuMemory = params['GpuMemory']
1721
+ @CreateTime = params['CreateTime']
1722
+ @UpdateTime = params['UpdateTime']
1723
+ @ScaleMode = params['ScaleMode']
1724
+ unless params['Scaler'].nil?
1725
+ @Scaler = Scaler.new
1726
+ @Scaler.deserialize(params['Scaler'])
1727
+ end
1728
+ unless params['Status'].nil?
1729
+ @Status = ServiceStatus.new
1730
+ @Status.deserialize(params['Status'])
1731
+ end
1732
+ @AccessToken = params['AccessToken']
1733
+ @ConfigId = params['ConfigId']
1734
+ @ConfigName = params['ConfigName']
1735
+ @ServeSeconds = params['ServeSeconds']
1736
+ @ConfigVersion = params['ConfigVersion']
1737
+ @ResourceGroupId = params['ResourceGroupId']
1738
+ unless params['Exposes'].nil?
1739
+ @Exposes = []
1740
+ params['Exposes'].each do |i|
1741
+ exposeinfo_tmp = ExposeInfo.new
1742
+ exposeinfo_tmp.deserialize(i)
1743
+ @Exposes << exposeinfo_tmp
1744
+ end
1745
+ end
1746
+ @Region = params['Region']
1747
+ @ResourceGroupName = params['ResourceGroupName']
1748
+ @Description = params['Description']
1749
+ @GpuType = params['GpuType']
1750
+ @LogTopicId = params['LogTopicId']
1751
+ end
1752
+ end
1753
+
1754
+ # 配置项
1755
+ class Option < TencentCloud::Common::AbstractModel
1756
+ # @param Name: 名称
1757
+ # @type Name: String
1758
+ # @param Value: 取值
1759
+ # @type Value: Integer
1760
+
1761
+ attr_accessor :Name, :Value
1762
+
1763
+ def initialize(name=nil, value=nil)
1764
+ @Name = name
1765
+ @Value = value
1766
+ end
1767
+
1768
+ def deserialize(params)
1769
+ @Name = params['Name']
1770
+ @Value = params['Value']
1771
+ end
1772
+ end
1773
+
1774
+ # 预测输入
1775
+ class PredictInput < TencentCloud::Common::AbstractModel
1776
+ # @param InputPath: 输入路径,支持 cos 格式路径文件夹或文件
1777
+ # @type InputPath: String
1778
+ # @param OutputPath: 输出路径,支持 cos 格式路径
1779
+ # @type OutputPath: String
1780
+ # @param InputDataFormat: 输入数据格式,目前支持:JSON
1781
+ # @type InputDataFormat: String
1782
+ # @param OutputDataFormat: 输出数据格式,目前支持:JSON
1783
+ # @type OutputDataFormat: String
1784
+ # @param BatchSize: 预测批大小,默认为 64
1785
+ # @type BatchSize: Integer
1786
+ # @param SignatureName: 模型签名
1787
+ # 注意:此字段可能返回 null,表示取不到有效值。
1788
+ # @type SignatureName: String
1789
+
1790
+ attr_accessor :InputPath, :OutputPath, :InputDataFormat, :OutputDataFormat, :BatchSize, :SignatureName
1791
+
1792
+ def initialize(inputpath=nil, outputpath=nil, inputdataformat=nil, outputdataformat=nil, batchsize=nil, signaturename=nil)
1793
+ @InputPath = inputpath
1794
+ @OutputPath = outputpath
1795
+ @InputDataFormat = inputdataformat
1796
+ @OutputDataFormat = outputdataformat
1797
+ @BatchSize = batchsize
1798
+ @SignatureName = signaturename
1799
+ end
1800
+
1801
+ def deserialize(params)
1802
+ @InputPath = params['InputPath']
1803
+ @OutputPath = params['OutputPath']
1804
+ @InputDataFormat = params['InputDataFormat']
1805
+ @OutputDataFormat = params['OutputDataFormat']
1806
+ @BatchSize = params['BatchSize']
1807
+ @SignatureName = params['SignatureName']
1808
+ end
1809
+ end
1810
+
1811
+ # 量化输入
1812
+ class QuantizationInput < TencentCloud::Common::AbstractModel
1813
+ # @param InputPath: 量化输入路径
1814
+ # @type InputPath: String
1815
+ # @param OutputPath: 量化输出路径
1816
+ # @type OutputPath: String
1817
+ # @param BatchSize: 量化批大小
1818
+ # @type BatchSize: Integer
1819
+ # @param Precision: 量化精度,支持:FP32,FP16,INT8
1820
+ # @type Precision: String
1821
+ # @param ConvertType: 转换类型
1822
+ # @type ConvertType: String
1823
+
1824
+ attr_accessor :InputPath, :OutputPath, :BatchSize, :Precision, :ConvertType
1825
+
1826
+ def initialize(inputpath=nil, outputpath=nil, batchsize=nil, precision=nil, converttype=nil)
1827
+ @InputPath = inputpath
1828
+ @OutputPath = outputpath
1829
+ @BatchSize = batchsize
1830
+ @Precision = precision
1831
+ @ConvertType = converttype
1832
+ end
1833
+
1834
+ def deserialize(params)
1835
+ @InputPath = params['InputPath']
1836
+ @OutputPath = params['OutputPath']
1837
+ @BatchSize = params['BatchSize']
1838
+ @Precision = params['Precision']
1839
+ @ConvertType = params['ConvertType']
1840
+ end
1841
+ end
1842
+
1843
+ # 实例信息
1844
+ class ReplicaInfo < TencentCloud::Common::AbstractModel
1845
+ # @param Name: 实例名称
1846
+ # @type Name: String
1847
+ # @param EniIp: 弹性网卡模式时,弹性网卡Ip
1848
+ # 注意:此字段可能返回 null,表示取不到有效值。
1849
+ # @type EniIp: String
1850
+ # @param Status: Normal: 正常运行中; Abnormal: 异常;Waiting:等待中
1851
+ # @type Status: String
1852
+ # @param Message: 当 status为 Abnormal 的时候,一些额外的信息
1853
+ # 注意:此字段可能返回 null,表示取不到有效值。
1854
+ # @type Message: String
1855
+ # @param StartTime: 启动时间
1856
+ # 注意:此字段可能返回 null,表示取不到有效值。
1857
+ # @type StartTime: String
1858
+ # @param CreateTime: 创建时间
1859
+ # 注意:此字段可能返回 null,表示取不到有效值。
1860
+ # @type CreateTime: String
1861
+ # @param Restarted: 重启次数
1862
+ # @type Restarted: Integer
1863
+
1864
+ attr_accessor :Name, :EniIp, :Status, :Message, :StartTime, :CreateTime, :Restarted
1865
+
1866
+ def initialize(name=nil, eniip=nil, status=nil, message=nil, starttime=nil, createtime=nil, restarted=nil)
1867
+ @Name = name
1868
+ @EniIp = eniip
1869
+ @Status = status
1870
+ @Message = message
1871
+ @StartTime = starttime
1872
+ @CreateTime = createtime
1873
+ @Restarted = restarted
1874
+ end
1875
+
1876
+ def deserialize(params)
1877
+ @Name = params['Name']
1878
+ @EniIp = params['EniIp']
1879
+ @Status = params['Status']
1880
+ @Message = params['Message']
1881
+ @StartTime = params['StartTime']
1882
+ @CreateTime = params['CreateTime']
1883
+ @Restarted = params['Restarted']
1884
+ end
1885
+ end
1886
+
1887
+ # 资源组
1888
+ class ResourceGroup < TencentCloud::Common::AbstractModel
1889
+ # @param Id: 资源组 Id
1890
+ # @type Id: String
1891
+ # @param Region: 地域
1892
+ # @type Region: String
1893
+ # @param Cluster: 集群
1894
+ # 注意:此字段可能返回 null,表示取不到有效值。
1895
+ # @type Cluster: String
1896
+ # @param Name: 资源组名称
1897
+ # @type Name: String
1898
+ # @param Description: 资源组描述
1899
+ # 注意:此字段可能返回 null,表示取不到有效值。
1900
+ # @type Description: String
1901
+ # @param Created: 创建时间
1902
+ # @type Created: String
1903
+ # @param Updated: 更新时间
1904
+ # @type Updated: String
1905
+ # @param InstanceCount: 资源组主机数量
1906
+ # 注意:此字段可能返回 null,表示取不到有效值。
1907
+ # @type InstanceCount: Integer
1908
+ # @param ServiceCount: 使用资源组的服务数量
1909
+ # 注意:此字段可能返回 null,表示取不到有效值。
1910
+ # @type ServiceCount: Integer
1911
+ # @param JobCount: 使用资源组的任务数量
1912
+ # 注意:此字段可能返回 null,表示取不到有效值。
1913
+ # @type JobCount: Integer
1914
+ # @param Public: 资源组是否为公共资源组
1915
+ # 注意:此字段可能返回 null,表示取不到有效值。
1916
+ # @type Public: Boolean
1917
+ # @param InstanceType: 机器类型
1918
+ # 注意:此字段可能返回 null,表示取不到有效值。
1919
+ # @type InstanceType: String
1920
+ # @param Status: 资源组状态
1921
+ # 注意:此字段可能返回 null,表示取不到有效值。
1922
+ # @type Status: String
1923
+ # @param Gpu: 显卡总张数
1924
+ # 注意:此字段可能返回 null,表示取不到有效值。
1925
+ # @type Gpu: Integer
1926
+ # @param Cpu: 处理器总核数
1927
+ # 注意:此字段可能返回 null,表示取不到有效值。
1928
+ # @type Cpu: Integer
1929
+ # @param Memory: 内存总量,单位为G
1930
+ # 注意:此字段可能返回 null,表示取不到有效值。
1931
+ # @type Memory: Integer
1932
+ # @param Zone: 可用区
1933
+ # 注意:此字段可能返回 null,表示取不到有效值。
1934
+ # @type Zone: String
1935
+ # @param GpuType: Gpu类型
1936
+ # 注意:此字段可能返回 null,表示取不到有效值。
1937
+ # @type GpuType: Array
1938
+ # @param HasPrepaid: 该资源组下是否有预付费资源
1939
+ # 注意:此字段可能返回 null,表示取不到有效值。
1940
+ # @type HasPrepaid: Boolean
1941
+ # @param PayMode: 资源组是否允许预付费或后付费模式
1942
+ # 注意:此字段可能返回 null,表示取不到有效值。
1943
+ # @type PayMode: String
1944
+
1945
+ attr_accessor :Id, :Region, :Cluster, :Name, :Description, :Created, :Updated, :InstanceCount, :ServiceCount, :JobCount, :Public, :InstanceType, :Status, :Gpu, :Cpu, :Memory, :Zone, :GpuType, :HasPrepaid, :PayMode
1946
+
1947
+ def initialize(id=nil, region=nil, cluster=nil, name=nil, description=nil, created=nil, updated=nil, instancecount=nil, servicecount=nil, jobcount=nil, public=nil, instancetype=nil, status=nil, gpu=nil, cpu=nil, memory=nil, zone=nil, gputype=nil, hasprepaid=nil, paymode=nil)
1948
+ @Id = id
1949
+ @Region = region
1950
+ @Cluster = cluster
1951
+ @Name = name
1952
+ @Description = description
1953
+ @Created = created
1954
+ @Updated = updated
1955
+ @InstanceCount = instancecount
1956
+ @ServiceCount = servicecount
1957
+ @JobCount = jobcount
1958
+ @Public = public
1959
+ @InstanceType = instancetype
1960
+ @Status = status
1961
+ @Gpu = gpu
1962
+ @Cpu = cpu
1963
+ @Memory = memory
1964
+ @Zone = zone
1965
+ @GpuType = gputype
1966
+ @HasPrepaid = hasprepaid
1967
+ @PayMode = paymode
1968
+ end
1969
+
1970
+ def deserialize(params)
1971
+ @Id = params['Id']
1972
+ @Region = params['Region']
1973
+ @Cluster = params['Cluster']
1974
+ @Name = params['Name']
1975
+ @Description = params['Description']
1976
+ @Created = params['Created']
1977
+ @Updated = params['Updated']
1978
+ @InstanceCount = params['InstanceCount']
1979
+ @ServiceCount = params['ServiceCount']
1980
+ @JobCount = params['JobCount']
1981
+ @Public = params['Public']
1982
+ @InstanceType = params['InstanceType']
1983
+ @Status = params['Status']
1984
+ @Gpu = params['Gpu']
1985
+ @Cpu = params['Cpu']
1986
+ @Memory = params['Memory']
1987
+ @Zone = params['Zone']
1988
+ @GpuType = params['GpuType']
1989
+ @HasPrepaid = params['HasPrepaid']
1990
+ @PayMode = params['PayMode']
1991
+ end
1992
+ end
1993
+
1994
+ # 伸缩组活动关联的节点
1995
+ class RsgAsActivityRelatedInstance < TencentCloud::Common::AbstractModel
1996
+ # @param InstanceId: 节点 ID
1997
+ # @type InstanceId: String
1998
+ # @param InstanceStatus: 节点状态
1999
+ # @type InstanceStatus: String
2000
+
2001
+ attr_accessor :InstanceId, :InstanceStatus
2002
+
2003
+ def initialize(instanceid=nil, instancestatus=nil)
2004
+ @InstanceId = instanceid
2005
+ @InstanceStatus = instancestatus
2006
+ end
2007
+
2008
+ def deserialize(params)
2009
+ @InstanceId = params['InstanceId']
2010
+ @InstanceStatus = params['InstanceStatus']
2011
+ end
2012
+ end
2013
+
2014
+ # 资源组的伸缩组
2015
+ class RsgAsGroup < TencentCloud::Common::AbstractModel
2016
+ # @param Id: 伸缩组 ID
2017
+ # @type Id: String
2018
+ # @param Region: 伸缩组所在地域
2019
+ # @type Region: String
2020
+ # @param Zone: 伸缩组所在可用区
2021
+ # @type Zone: String
2022
+ # @param Cluster: 伸缩组所在集群
2023
+ # @type Cluster: String
2024
+ # @param RsgId: 伸缩组所在资源组 ID
2025
+ # @type RsgId: String
2026
+ # @param Name: 伸缩组名称
2027
+ # @type Name: String
2028
+ # @param MaxSize: 伸缩组允许的最大节点个数
2029
+ # @type MaxSize: Integer
2030
+ # @param MinSize: 伸缩组允许的最小节点个数
2031
+ # @type MinSize: Integer
2032
+ # @param CreateTime: 伸缩组创建时间
2033
+ # @type CreateTime: String
2034
+ # @param UpdateTime: 伸缩组更新时间
2035
+ # @type UpdateTime: String
2036
+ # @param Status: 伸缩组状态
2037
+ # @type Status: String
2038
+ # @param InstanceType: 伸缩组节点类型
2039
+ # @type InstanceType: String
2040
+ # @param InstanceCount: 伸缩组内节点个数
2041
+ # @type InstanceCount: Integer
2042
+ # @param DesiredSize: 伸缩组起始节点数
2043
+ # @type DesiredSize: Integer
2044
+
2045
+ attr_accessor :Id, :Region, :Zone, :Cluster, :RsgId, :Name, :MaxSize, :MinSize, :CreateTime, :UpdateTime, :Status, :InstanceType, :InstanceCount, :DesiredSize
2046
+
2047
+ def initialize(id=nil, region=nil, zone=nil, cluster=nil, rsgid=nil, name=nil, maxsize=nil, minsize=nil, createtime=nil, updatetime=nil, status=nil, instancetype=nil, instancecount=nil, desiredsize=nil)
2048
+ @Id = id
2049
+ @Region = region
2050
+ @Zone = zone
2051
+ @Cluster = cluster
2052
+ @RsgId = rsgid
2053
+ @Name = name
2054
+ @MaxSize = maxsize
2055
+ @MinSize = minsize
2056
+ @CreateTime = createtime
2057
+ @UpdateTime = updatetime
2058
+ @Status = status
2059
+ @InstanceType = instancetype
2060
+ @InstanceCount = instancecount
2061
+ @DesiredSize = desiredsize
2062
+ end
2063
+
2064
+ def deserialize(params)
2065
+ @Id = params['Id']
2066
+ @Region = params['Region']
2067
+ @Zone = params['Zone']
2068
+ @Cluster = params['Cluster']
2069
+ @RsgId = params['RsgId']
2070
+ @Name = params['Name']
2071
+ @MaxSize = params['MaxSize']
2072
+ @MinSize = params['MinSize']
2073
+ @CreateTime = params['CreateTime']
2074
+ @UpdateTime = params['UpdateTime']
2075
+ @Status = params['Status']
2076
+ @InstanceType = params['InstanceType']
2077
+ @InstanceCount = params['InstanceCount']
2078
+ @DesiredSize = params['DesiredSize']
2079
+ end
2080
+ end
2081
+
2082
+ # 伸缩组活动信息
2083
+ class RsgAsGroupActivity < TencentCloud::Common::AbstractModel
2084
+ # @param Id: 伸缩组活动 ID
2085
+ # @type Id: String
2086
+ # @param RsgAsGroupId: 关联的伸缩组 ID
2087
+ # @type RsgAsGroupId: String
2088
+ # @param ActivityType: 活动类型
2089
+ # @type ActivityType: String
2090
+ # @param StatusCode: 状态的编码
2091
+ # @type StatusCode: String
2092
+ # @param StatusMessage: 状态的消息
2093
+ # @type StatusMessage: String
2094
+ # @param Cause: 活动原因
2095
+ # @type Cause: String
2096
+ # @param Description: 活动描述
2097
+ # @type Description: String
2098
+ # @param StartTime: 活动开始时间
2099
+ # @type StartTime: String
2100
+ # @param EndTime: 活动结束时间
2101
+ # @type EndTime: String
2102
+ # @param CreateTime: 活动创建时间
2103
+ # @type CreateTime: String
2104
+ # @param RsgAsActivityRelatedInstance: 活动相关联的节点
2105
+ # @type RsgAsActivityRelatedInstance: Array
2106
+ # @param StatusMessageSimplified: 简略的状态消息
2107
+ # @type StatusMessageSimplified: String
2108
+
2109
+ attr_accessor :Id, :RsgAsGroupId, :ActivityType, :StatusCode, :StatusMessage, :Cause, :Description, :StartTime, :EndTime, :CreateTime, :RsgAsActivityRelatedInstance, :StatusMessageSimplified
2110
+
2111
+ def initialize(id=nil, rsgasgroupid=nil, activitytype=nil, statuscode=nil, statusmessage=nil, cause=nil, description=nil, starttime=nil, endtime=nil, createtime=nil, rsgasactivityrelatedinstance=nil, statusmessagesimplified=nil)
2112
+ @Id = id
2113
+ @RsgAsGroupId = rsgasgroupid
2114
+ @ActivityType = activitytype
2115
+ @StatusCode = statuscode
2116
+ @StatusMessage = statusmessage
2117
+ @Cause = cause
2118
+ @Description = description
2119
+ @StartTime = starttime
2120
+ @EndTime = endtime
2121
+ @CreateTime = createtime
2122
+ @RsgAsActivityRelatedInstance = rsgasactivityrelatedinstance
2123
+ @StatusMessageSimplified = statusmessagesimplified
2124
+ end
2125
+
2126
+ def deserialize(params)
2127
+ @Id = params['Id']
2128
+ @RsgAsGroupId = params['RsgAsGroupId']
2129
+ @ActivityType = params['ActivityType']
2130
+ @StatusCode = params['StatusCode']
2131
+ @StatusMessage = params['StatusMessage']
2132
+ @Cause = params['Cause']
2133
+ @Description = params['Description']
2134
+ @StartTime = params['StartTime']
2135
+ @EndTime = params['EndTime']
2136
+ @CreateTime = params['CreateTime']
2137
+ unless params['RsgAsActivityRelatedInstance'].nil?
2138
+ @RsgAsActivityRelatedInstance = []
2139
+ params['RsgAsActivityRelatedInstance'].each do |i|
2140
+ rsgasactivityrelatedinstance_tmp = RsgAsActivityRelatedInstance.new
2141
+ rsgasactivityrelatedinstance_tmp.deserialize(i)
2142
+ @RsgAsActivityRelatedInstance << rsgasactivityrelatedinstance_tmp
2143
+ end
2144
+ end
2145
+ @StatusMessageSimplified = params['StatusMessageSimplified']
2146
+ end
2147
+ end
2148
+
2149
+ # 运行环境
2150
+ class Runtime < TencentCloud::Common::AbstractModel
2151
+ # @param Name: 运行环境名称
2152
+ # @type Name: String
2153
+ # @param Framework: 运行环境框架
2154
+ # @type Framework: String
2155
+ # @param Description: 运行环境描述
2156
+ # @type Description: String
2157
+ # @param Public: 是否为公开运行环境
2158
+ # 注意:此字段可能返回 null,表示取不到有效值。
2159
+ # @type Public: Boolean
2160
+ # @param HealthCheckOn: 是否打开健康检查
2161
+ # 注意:此字段可能返回 null,表示取不到有效值。
2162
+ # @type HealthCheckOn: Boolean
2163
+ # @param Image: 镜像地址
2164
+ # 注意:此字段可能返回 null,表示取不到有效值。
2165
+ # @type Image: String
2166
+ # @param CreateTime: 创建时间
2167
+ # 注意:此字段可能返回 null,表示取不到有效值。
2168
+ # @type CreateTime: String
2169
+
2170
+ attr_accessor :Name, :Framework, :Description, :Public, :HealthCheckOn, :Image, :CreateTime
2171
+
2172
+ def initialize(name=nil, framework=nil, description=nil, public=nil, healthcheckon=nil, image=nil, createtime=nil)
2173
+ @Name = name
2174
+ @Framework = framework
2175
+ @Description = description
2176
+ @Public = public
2177
+ @HealthCheckOn = healthcheckon
2178
+ @Image = image
2179
+ @CreateTime = createtime
2180
+ end
2181
+
2182
+ def deserialize(params)
2183
+ @Name = params['Name']
2184
+ @Framework = params['Framework']
2185
+ @Description = params['Description']
2186
+ @Public = params['Public']
2187
+ @HealthCheckOn = params['HealthCheckOn']
2188
+ @Image = params['Image']
2189
+ @CreateTime = params['CreateTime']
2190
+ end
2191
+ end
2192
+
2193
+ # 扩缩容配置
2194
+ class Scaler < TencentCloud::Common::AbstractModel
2195
+ # @param MaxReplicas: 最大副本数,ScaleMode 为 MANUAL 时辞会此值会被置为 StartReplicas 取值
2196
+ # @type MaxReplicas: Integer
2197
+ # @param MinReplicas: 最小副本数,ScaleMode 为 MANUAL 时辞会此值会被置为 StartReplicas 取值
2198
+ # @type MinReplicas: Integer
2199
+ # @param StartReplicas: 起始副本数
2200
+ # @type StartReplicas: Integer
2201
+ # @param HpaMetrics: 扩缩容指标,选择自动扩缩容时至少需要选择一个指标,支持CPU-UTIL、MEMORY-UTIL
2202
+ # @type HpaMetrics: Array
2203
+
2204
+ attr_accessor :MaxReplicas, :MinReplicas, :StartReplicas, :HpaMetrics
2205
+
2206
+ def initialize(maxreplicas=nil, minreplicas=nil, startreplicas=nil, hpametrics=nil)
2207
+ @MaxReplicas = maxreplicas
2208
+ @MinReplicas = minreplicas
2209
+ @StartReplicas = startreplicas
2210
+ @HpaMetrics = hpametrics
2211
+ end
2212
+
2213
+ def deserialize(params)
2214
+ @MaxReplicas = params['MaxReplicas']
2215
+ @MinReplicas = params['MinReplicas']
2216
+ @StartReplicas = params['StartReplicas']
2217
+ unless params['HpaMetrics'].nil?
2218
+ @HpaMetrics = []
2219
+ params['HpaMetrics'].each do |i|
2220
+ option_tmp = Option.new
2221
+ option_tmp.deserialize(i)
2222
+ @HpaMetrics << option_tmp
2223
+ end
2224
+ end
2225
+ end
2226
+ end
2227
+
2228
+ # 服务状态
2229
+ class ServiceStatus < TencentCloud::Common::AbstractModel
2230
+ # @param DesiredReplicas: 预期副本数
2231
+ # @type DesiredReplicas: Integer
2232
+ # @param CurrentReplicas: 当前副本数
2233
+ # @type CurrentReplicas: Integer
2234
+ # @param Status: Normal:正常运行中;Abnormal:服务异常,例如容器启动失败等;Waiting:服务等待中,例如容器下载镜像过程等;Stopped:已停止 Stopping 停止中;Resuming:重启中;Updating:服务更新中
2235
+ # @type Status: String
2236
+ # @param Conditions: 服务处于当前状态的原因集合
2237
+ # 注意:此字段可能返回 null,表示取不到有效值。
2238
+ # @type Conditions: Array
2239
+ # @param Replicas: 副本名称
2240
+ # 注意:此字段可能返回 null,表示取不到有效值。
2241
+ # @type Replicas: Array
2242
+ # @param Message: 运行状态对额外信息
2243
+ # 注意:此字段可能返回 null,表示取不到有效值。
2244
+ # @type Message: String
2245
+ # @param ReplicaInfos: 副本信息
2246
+ # 注意:此字段可能返回 null,表示取不到有效值。
2247
+ # @type ReplicaInfos: Array
2248
+
2249
+ attr_accessor :DesiredReplicas, :CurrentReplicas, :Status, :Conditions, :Replicas, :Message, :ReplicaInfos
2250
+
2251
+ def initialize(desiredreplicas=nil, currentreplicas=nil, status=nil, conditions=nil, replicas=nil, message=nil, replicainfos=nil)
2252
+ @DesiredReplicas = desiredreplicas
2253
+ @CurrentReplicas = currentreplicas
2254
+ @Status = status
2255
+ @Conditions = conditions
2256
+ @Replicas = replicas
2257
+ @Message = message
2258
+ @ReplicaInfos = replicainfos
2259
+ end
2260
+
2261
+ def deserialize(params)
2262
+ @DesiredReplicas = params['DesiredReplicas']
2263
+ @CurrentReplicas = params['CurrentReplicas']
2264
+ @Status = params['Status']
2265
+ unless params['Conditions'].nil?
2266
+ @Conditions = []
2267
+ params['Conditions'].each do |i|
2268
+ conditions_tmp = Conditions.new
2269
+ conditions_tmp.deserialize(i)
2270
+ @Conditions << conditions_tmp
2271
+ end
2272
+ end
2273
+ @Replicas = params['Replicas']
2274
+ @Message = params['Message']
2275
+ unless params['ReplicaInfos'].nil?
2276
+ @ReplicaInfos = []
2277
+ params['ReplicaInfos'].each do |i|
2278
+ replicainfo_tmp = ReplicaInfo.new
2279
+ replicainfo_tmp.deserialize(i)
2280
+ @ReplicaInfos << replicainfo_tmp
2281
+ end
2282
+ end
2283
+ end
2284
+ end
2285
+
2286
+ # UpdateJob请求参数结构体
2287
+ class UpdateJobRequest < TencentCloud::Common::AbstractModel
2288
+ # @param JobId: 任务 Id
2289
+ # @type JobId: String
2290
+ # @param JobAction: 任务更新动作,支持:Cancel
2291
+ # @type JobAction: String
2292
+ # @param Description: 备注
2293
+ # @type Description: String
2294
+
2295
+ attr_accessor :JobId, :JobAction, :Description
2296
+
2297
+ def initialize(jobid=nil, jobaction=nil, description=nil)
2298
+ @JobId = jobid
2299
+ @JobAction = jobaction
2300
+ @Description = description
2301
+ end
2302
+
2303
+ def deserialize(params)
2304
+ @JobId = params['JobId']
2305
+ @JobAction = params['JobAction']
2306
+ @Description = params['Description']
2307
+ end
2308
+ end
2309
+
2310
+ # UpdateJob返回参数结构体
2311
+ class UpdateJobResponse < TencentCloud::Common::AbstractModel
2312
+ # @param Job: 任务
2313
+ # 注意:此字段可能返回 null,表示取不到有效值。
2314
+ # @type Job: :class:`Tencentcloud::Tiems.v20190416.models.Job`
2315
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2316
+ # @type RequestId: String
2317
+
2318
+ attr_accessor :Job, :RequestId
2319
+
2320
+ def initialize(job=nil, requestid=nil)
2321
+ @Job = job
2322
+ @RequestId = requestid
2323
+ end
2324
+
2325
+ def deserialize(params)
2326
+ unless params['Job'].nil?
2327
+ @Job = Job.new
2328
+ @Job.deserialize(params['Job'])
2329
+ end
2330
+ @RequestId = params['RequestId']
2331
+ end
2332
+ end
2333
+
2334
+ # UpdateRsgAsGroup请求参数结构体
2335
+ class UpdateRsgAsGroupRequest < TencentCloud::Common::AbstractModel
2336
+ # @param Id: 伸缩组 ID
2337
+ # @type Id: String
2338
+ # @param Name: 重命名名称
2339
+ # @type Name: String
2340
+ # @param MaxSize: 伸缩组最大节点数
2341
+ # @type MaxSize: Integer
2342
+ # @param MinSize: 伸缩组最小节点数
2343
+ # @type MinSize: Integer
2344
+ # @param DesiredSize: 伸缩组期望的节点数
2345
+ # @type DesiredSize: Integer
2346
+
2347
+ attr_accessor :Id, :Name, :MaxSize, :MinSize, :DesiredSize
2348
+
2349
+ def initialize(id=nil, name=nil, maxsize=nil, minsize=nil, desiredsize=nil)
2350
+ @Id = id
2351
+ @Name = name
2352
+ @MaxSize = maxsize
2353
+ @MinSize = minsize
2354
+ @DesiredSize = desiredsize
2355
+ end
2356
+
2357
+ def deserialize(params)
2358
+ @Id = params['Id']
2359
+ @Name = params['Name']
2360
+ @MaxSize = params['MaxSize']
2361
+ @MinSize = params['MinSize']
2362
+ @DesiredSize = params['DesiredSize']
2363
+ end
2364
+ end
2365
+
2366
+ # UpdateRsgAsGroup返回参数结构体
2367
+ class UpdateRsgAsGroupResponse < TencentCloud::Common::AbstractModel
2368
+ # @param RsgAsGroup: 资源组的伸缩组
2369
+ # @type RsgAsGroup: :class:`Tencentcloud::Tiems.v20190416.models.RsgAsGroup`
2370
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2371
+ # @type RequestId: String
2372
+
2373
+ attr_accessor :RsgAsGroup, :RequestId
2374
+
2375
+ def initialize(rsgasgroup=nil, requestid=nil)
2376
+ @RsgAsGroup = rsgasgroup
2377
+ @RequestId = requestid
2378
+ end
2379
+
2380
+ def deserialize(params)
2381
+ unless params['RsgAsGroup'].nil?
2382
+ @RsgAsGroup = RsgAsGroup.new
2383
+ @RsgAsGroup.deserialize(params['RsgAsGroup'])
2384
+ end
2385
+ @RequestId = params['RequestId']
2386
+ end
2387
+ end
2388
+
2389
+ # UpdateService请求参数结构体
2390
+ class UpdateServiceRequest < TencentCloud::Common::AbstractModel
2391
+ # @param ServiceId: 服务Id
2392
+ # @type ServiceId: String
2393
+ # @param Scaler: 扩缩容配置
2394
+ # @type Scaler: :class:`Tencentcloud::Tiems.v20190416.models.Scaler`
2395
+ # @param ServiceConfigId: 服务配置Id
2396
+ # @type ServiceConfigId: String
2397
+ # @param ScaleMode: 支持AUTO, MANUAL,分别表示自动扩缩容,手动扩缩容
2398
+ # @type ScaleMode: String
2399
+ # @param ServiceAction: 支持STOP(停止) RESUME(重启)
2400
+ # @type ServiceAction: String
2401
+ # @param Description: 备注
2402
+ # @type Description: String
2403
+ # @param GpuType: GPU卡类型
2404
+ # @type GpuType: String
2405
+ # @param Cpu: 处理器配置,单位为 1/1000 核
2406
+ # @type Cpu: Integer
2407
+ # @param Memory: 内存配置,单位为1M
2408
+ # @type Memory: Integer
2409
+ # @param Gpu: 显卡配置,单位为 1/1000 卡
2410
+ # @type Gpu: Integer
2411
+ # @param LogTopicId: Cls日志主题ID
2412
+ # @type LogTopicId: String
2413
+
2414
+ attr_accessor :ServiceId, :Scaler, :ServiceConfigId, :ScaleMode, :ServiceAction, :Description, :GpuType, :Cpu, :Memory, :Gpu, :LogTopicId
2415
+
2416
+ def initialize(serviceid=nil, scaler=nil, serviceconfigid=nil, scalemode=nil, serviceaction=nil, description=nil, gputype=nil, cpu=nil, memory=nil, gpu=nil, logtopicid=nil)
2417
+ @ServiceId = serviceid
2418
+ @Scaler = scaler
2419
+ @ServiceConfigId = serviceconfigid
2420
+ @ScaleMode = scalemode
2421
+ @ServiceAction = serviceaction
2422
+ @Description = description
2423
+ @GpuType = gputype
2424
+ @Cpu = cpu
2425
+ @Memory = memory
2426
+ @Gpu = gpu
2427
+ @LogTopicId = logtopicid
2428
+ end
2429
+
2430
+ def deserialize(params)
2431
+ @ServiceId = params['ServiceId']
2432
+ unless params['Scaler'].nil?
2433
+ @Scaler = Scaler.new
2434
+ @Scaler.deserialize(params['Scaler'])
2435
+ end
2436
+ @ServiceConfigId = params['ServiceConfigId']
2437
+ @ScaleMode = params['ScaleMode']
2438
+ @ServiceAction = params['ServiceAction']
2439
+ @Description = params['Description']
2440
+ @GpuType = params['GpuType']
2441
+ @Cpu = params['Cpu']
2442
+ @Memory = params['Memory']
2443
+ @Gpu = params['Gpu']
2444
+ @LogTopicId = params['LogTopicId']
2445
+ end
2446
+ end
2447
+
2448
+ # UpdateService返回参数结构体
2449
+ class UpdateServiceResponse < TencentCloud::Common::AbstractModel
2450
+ # @param Service: 服务
2451
+ # @type Service: :class:`Tencentcloud::Tiems.v20190416.models.ModelService`
2452
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2453
+ # @type RequestId: String
2454
+
2455
+ attr_accessor :Service, :RequestId
2456
+
2457
+ def initialize(service=nil, requestid=nil)
2458
+ @Service = service
2459
+ @RequestId = requestid
2460
+ end
2461
+
2462
+ def deserialize(params)
2463
+ unless params['Service'].nil?
2464
+ @Service = ModelService.new
2465
+ @Service.deserialize(params['Service'])
2466
+ end
2467
+ @RequestId = params['RequestId']
2468
+ end
2469
+ end
2470
+
2471
+ end
2472
+ end
2473
+ end
2474
+