tencentcloud-sdk-tem 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,2310 @@
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 Tem
19
+ module V20210701
20
+ # Cos token
21
+ class CosToken < TencentCloud::Common::AbstractModel
22
+ # @param RequestId: 唯一请求 ID
23
+ # @type RequestId: String
24
+ # @param Bucket: 存储桶桶名
25
+ # @type Bucket: String
26
+ # @param Region: 存储桶所在区域
27
+ # @type Region: String
28
+ # @param TmpSecretId: 临时密钥的SecretId
29
+ # @type TmpSecretId: String
30
+ # @param TmpSecretKey: 临时密钥的SecretKey
31
+ # @type TmpSecretKey: String
32
+ # @param SessionToken: 临时密钥的 sessionToken
33
+ # @type SessionToken: String
34
+ # @param StartTime: 临时密钥获取的开始时间
35
+ # @type StartTime: String
36
+ # @param ExpiredTime: 临时密钥的 expiredTime
37
+ # @type ExpiredTime: String
38
+ # @param FullPath: 包完整路径
39
+ # @type FullPath: String
40
+
41
+ attr_accessor :RequestId, :Bucket, :Region, :TmpSecretId, :TmpSecretKey, :SessionToken, :StartTime, :ExpiredTime, :FullPath
42
+
43
+ def initialize(requestid=nil, bucket=nil, region=nil, tmpsecretid=nil, tmpsecretkey=nil, sessiontoken=nil, starttime=nil, expiredtime=nil, fullpath=nil)
44
+ @RequestId = requestid
45
+ @Bucket = bucket
46
+ @Region = region
47
+ @TmpSecretId = tmpsecretid
48
+ @TmpSecretKey = tmpsecretkey
49
+ @SessionToken = sessiontoken
50
+ @StartTime = starttime
51
+ @ExpiredTime = expiredtime
52
+ @FullPath = fullpath
53
+ end
54
+
55
+ def deserialize(params)
56
+ @RequestId = params['RequestId']
57
+ @Bucket = params['Bucket']
58
+ @Region = params['Region']
59
+ @TmpSecretId = params['TmpSecretId']
60
+ @TmpSecretKey = params['TmpSecretKey']
61
+ @SessionToken = params['SessionToken']
62
+ @StartTime = params['StartTime']
63
+ @ExpiredTime = params['ExpiredTime']
64
+ @FullPath = params['FullPath']
65
+ end
66
+ end
67
+
68
+ # CreateApplication请求参数结构体
69
+ class CreateApplicationRequest < TencentCloud::Common::AbstractModel
70
+ # @param ApplicationName: 应用名
71
+ # @type ApplicationName: String
72
+ # @param Description: 描述
73
+ # @type Description: String
74
+ # @param UseDefaultImageService: 是否使用默认镜像服务 1-是,0-否
75
+ # @type UseDefaultImageService: Integer
76
+ # @param RepoType: 如果是绑定仓库,绑定的仓库类型,0-个人版,1-企业版
77
+ # @type RepoType: Integer
78
+ # @param InstanceId: 企业版镜像服务的实例id
79
+ # @type InstanceId: String
80
+ # @param RepoServer: 绑定镜像服务器地址
81
+ # @type RepoServer: String
82
+ # @param RepoName: 绑定镜像仓库名
83
+ # @type RepoName: String
84
+ # @param SourceChannel: 来源渠道
85
+ # @type SourceChannel: Integer
86
+ # @param SubnetList: 应用所在子网
87
+ # @type SubnetList: Array
88
+ # @param CodingLanguage: 编程语言
89
+ # - JAVA
90
+ # - OTHER
91
+ # @type CodingLanguage: String
92
+ # @param DeployMode: 部署方式
93
+ # - IMAGE
94
+ # - JAR
95
+ # - WAR
96
+ # @type DeployMode: String
97
+ # @param EnableTracing: 是否启用调用链功能
98
+ # @type EnableTracing: Integer
99
+
100
+ attr_accessor :ApplicationName, :Description, :UseDefaultImageService, :RepoType, :InstanceId, :RepoServer, :RepoName, :SourceChannel, :SubnetList, :CodingLanguage, :DeployMode, :EnableTracing
101
+
102
+ def initialize(applicationname=nil, description=nil, usedefaultimageservice=nil, repotype=nil, instanceid=nil, reposerver=nil, reponame=nil, sourcechannel=nil, subnetlist=nil, codinglanguage=nil, deploymode=nil, enabletracing=nil)
103
+ @ApplicationName = applicationname
104
+ @Description = description
105
+ @UseDefaultImageService = usedefaultimageservice
106
+ @RepoType = repotype
107
+ @InstanceId = instanceid
108
+ @RepoServer = reposerver
109
+ @RepoName = reponame
110
+ @SourceChannel = sourcechannel
111
+ @SubnetList = subnetlist
112
+ @CodingLanguage = codinglanguage
113
+ @DeployMode = deploymode
114
+ @EnableTracing = enabletracing
115
+ end
116
+
117
+ def deserialize(params)
118
+ @ApplicationName = params['ApplicationName']
119
+ @Description = params['Description']
120
+ @UseDefaultImageService = params['UseDefaultImageService']
121
+ @RepoType = params['RepoType']
122
+ @InstanceId = params['InstanceId']
123
+ @RepoServer = params['RepoServer']
124
+ @RepoName = params['RepoName']
125
+ @SourceChannel = params['SourceChannel']
126
+ @SubnetList = params['SubnetList']
127
+ @CodingLanguage = params['CodingLanguage']
128
+ @DeployMode = params['DeployMode']
129
+ @EnableTracing = params['EnableTracing']
130
+ end
131
+ end
132
+
133
+ # CreateApplication返回参数结构体
134
+ class CreateApplicationResponse < TencentCloud::Common::AbstractModel
135
+ # @param Result: 服务code
136
+ # @type Result: String
137
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
138
+ # @type RequestId: String
139
+
140
+ attr_accessor :Result, :RequestId
141
+
142
+ def initialize(result=nil, requestid=nil)
143
+ @Result = result
144
+ @RequestId = requestid
145
+ end
146
+
147
+ def deserialize(params)
148
+ @Result = params['Result']
149
+ @RequestId = params['RequestId']
150
+ end
151
+ end
152
+
153
+ # CreateCosToken请求参数结构体
154
+ class CreateCosTokenRequest < TencentCloud::Common::AbstractModel
155
+ # @param ApplicationId: 应用ID
156
+ # @type ApplicationId: String
157
+ # @param PkgName: 包名
158
+ # @type PkgName: String
159
+ # @param OptType: optType 1上传 2查询
160
+ # @type OptType: Integer
161
+ # @param SourceChannel: 来源 channel
162
+ # @type SourceChannel: Integer
163
+ # @param TimeVersion: 充当deployVersion入参
164
+ # @type TimeVersion: String
165
+
166
+ attr_accessor :ApplicationId, :PkgName, :OptType, :SourceChannel, :TimeVersion
167
+
168
+ def initialize(applicationid=nil, pkgname=nil, opttype=nil, sourcechannel=nil, timeversion=nil)
169
+ @ApplicationId = applicationid
170
+ @PkgName = pkgname
171
+ @OptType = opttype
172
+ @SourceChannel = sourcechannel
173
+ @TimeVersion = timeversion
174
+ end
175
+
176
+ def deserialize(params)
177
+ @ApplicationId = params['ApplicationId']
178
+ @PkgName = params['PkgName']
179
+ @OptType = params['OptType']
180
+ @SourceChannel = params['SourceChannel']
181
+ @TimeVersion = params['TimeVersion']
182
+ end
183
+ end
184
+
185
+ # CreateCosToken返回参数结构体
186
+ class CreateCosTokenResponse < TencentCloud::Common::AbstractModel
187
+ # @param Result: 成功时为CosToken对象,失败为null
188
+ # 注意:此字段可能返回 null,表示取不到有效值。
189
+ # @type Result: :class:`Tencentcloud::Tem.v20210701.models.CosToken`
190
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
191
+ # @type RequestId: String
192
+
193
+ attr_accessor :Result, :RequestId
194
+
195
+ def initialize(result=nil, requestid=nil)
196
+ @Result = result
197
+ @RequestId = requestid
198
+ end
199
+
200
+ def deserialize(params)
201
+ unless params['Result'].nil?
202
+ @Result = CosToken.new
203
+ @Result.deserialize(params['Result'])
204
+ end
205
+ @RequestId = params['RequestId']
206
+ end
207
+ end
208
+
209
+ # CreateEnvironment请求参数结构体
210
+ class CreateEnvironmentRequest < TencentCloud::Common::AbstractModel
211
+ # @param EnvironmentName: 环境名称
212
+ # @type EnvironmentName: String
213
+ # @param Vpc: 私有网络名称
214
+ # @type Vpc: String
215
+ # @param SubnetIds: 子网列表
216
+ # @type SubnetIds: Array
217
+ # @param Description: 环境描述
218
+ # @type Description: String
219
+ # @param K8sVersion: K8s version
220
+ # @type K8sVersion: String
221
+ # @param SourceChannel: 来源渠道
222
+ # @type SourceChannel: Integer
223
+ # @param EnableTswTraceService: 是否开启tsw服务
224
+ # @type EnableTswTraceService: Boolean
225
+
226
+ attr_accessor :EnvironmentName, :Vpc, :SubnetIds, :Description, :K8sVersion, :SourceChannel, :EnableTswTraceService
227
+
228
+ def initialize(environmentname=nil, vpc=nil, subnetids=nil, description=nil, k8sversion=nil, sourcechannel=nil, enabletswtraceservice=nil)
229
+ @EnvironmentName = environmentname
230
+ @Vpc = vpc
231
+ @SubnetIds = subnetids
232
+ @Description = description
233
+ @K8sVersion = k8sversion
234
+ @SourceChannel = sourcechannel
235
+ @EnableTswTraceService = enabletswtraceservice
236
+ end
237
+
238
+ def deserialize(params)
239
+ @EnvironmentName = params['EnvironmentName']
240
+ @Vpc = params['Vpc']
241
+ @SubnetIds = params['SubnetIds']
242
+ @Description = params['Description']
243
+ @K8sVersion = params['K8sVersion']
244
+ @SourceChannel = params['SourceChannel']
245
+ @EnableTswTraceService = params['EnableTswTraceService']
246
+ end
247
+ end
248
+
249
+ # CreateEnvironment返回参数结构体
250
+ class CreateEnvironmentResponse < TencentCloud::Common::AbstractModel
251
+ # @param Result: 成功时为环境ID,失败为null
252
+ # 注意:此字段可能返回 null,表示取不到有效值。
253
+ # @type Result: String
254
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
255
+ # @type RequestId: String
256
+
257
+ attr_accessor :Result, :RequestId
258
+
259
+ def initialize(result=nil, requestid=nil)
260
+ @Result = result
261
+ @RequestId = requestid
262
+ end
263
+
264
+ def deserialize(params)
265
+ @Result = params['Result']
266
+ @RequestId = params['RequestId']
267
+ end
268
+ end
269
+
270
+ # CreateResource请求参数结构体
271
+ class CreateResourceRequest < TencentCloud::Common::AbstractModel
272
+ # @param EnvironmentId: 环境 Id
273
+ # @type EnvironmentId: String
274
+ # @param ResourceType: 资源类型,目前支持文件系统:CFS;日志服务:CLS;注册中心:TSE_SRE
275
+ # @type ResourceType: String
276
+ # @param ResourceId: 资源 Id
277
+ # @type ResourceId: String
278
+ # @param SourceChannel: 来源渠道
279
+ # @type SourceChannel: Integer
280
+
281
+ attr_accessor :EnvironmentId, :ResourceType, :ResourceId, :SourceChannel
282
+
283
+ def initialize(environmentid=nil, resourcetype=nil, resourceid=nil, sourcechannel=nil)
284
+ @EnvironmentId = environmentid
285
+ @ResourceType = resourcetype
286
+ @ResourceId = resourceid
287
+ @SourceChannel = sourcechannel
288
+ end
289
+
290
+ def deserialize(params)
291
+ @EnvironmentId = params['EnvironmentId']
292
+ @ResourceType = params['ResourceType']
293
+ @ResourceId = params['ResourceId']
294
+ @SourceChannel = params['SourceChannel']
295
+ end
296
+ end
297
+
298
+ # CreateResource返回参数结构体
299
+ class CreateResourceResponse < TencentCloud::Common::AbstractModel
300
+ # @param Result: 成功与否
301
+ # 注意:此字段可能返回 null,表示取不到有效值。
302
+ # @type Result: Boolean
303
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
304
+ # @type RequestId: String
305
+
306
+ attr_accessor :Result, :RequestId
307
+
308
+ def initialize(result=nil, requestid=nil)
309
+ @Result = result
310
+ @RequestId = requestid
311
+ end
312
+
313
+ def deserialize(params)
314
+ @Result = params['Result']
315
+ @RequestId = params['RequestId']
316
+ end
317
+ end
318
+
319
+ # 定时伸缩策略
320
+ class CronHorizontalAutoscaler < TencentCloud::Common::AbstractModel
321
+ # @param Name: 定时伸缩策略名称
322
+ # @type Name: String
323
+ # @param Period: 策略周期
324
+ # * * *,三个范围,第一个是天,第二个是月,第三个是周,中间用空格隔开
325
+ # 例子:
326
+ # * * * (每天)
327
+ # * * 0-3 (每周日到周三)
328
+ # 1,11,21 * *(每个月1号,11号,21号)
329
+ # @type Period: String
330
+ # @param Schedules: 定时伸缩策略明细
331
+ # @type Schedules: Array
332
+ # @param Enabled: 是否启用
333
+ # @type Enabled: Boolean
334
+ # @param Priority: 策略优先级,值越大优先级越高,0为最小值
335
+ # @type Priority: Integer
336
+
337
+ attr_accessor :Name, :Period, :Schedules, :Enabled, :Priority
338
+
339
+ def initialize(name=nil, period=nil, schedules=nil, enabled=nil, priority=nil)
340
+ @Name = name
341
+ @Period = period
342
+ @Schedules = schedules
343
+ @Enabled = enabled
344
+ @Priority = priority
345
+ end
346
+
347
+ def deserialize(params)
348
+ @Name = params['Name']
349
+ @Period = params['Period']
350
+ unless params['Schedules'].nil?
351
+ @Schedules = []
352
+ params['Schedules'].each do |i|
353
+ cronhorizontalautoscalerschedule_tmp = CronHorizontalAutoscalerSchedule.new
354
+ cronhorizontalautoscalerschedule_tmp.deserialize(i)
355
+ @Schedules << cronhorizontalautoscalerschedule_tmp
356
+ end
357
+ end
358
+ @Enabled = params['Enabled']
359
+ @Priority = params['Priority']
360
+ end
361
+ end
362
+
363
+ # 定时伸缩策略明细
364
+ class CronHorizontalAutoscalerSchedule < TencentCloud::Common::AbstractModel
365
+ # @param StartAt: 触发事件,小时分钟,用:分割
366
+ # 例如
367
+ # 00:00(零点零分触发)
368
+ # @type StartAt: String
369
+ # @param TargetReplicas: 目标实例数(不大于50)
370
+ # 注意:此字段可能返回 null,表示取不到有效值。
371
+ # @type TargetReplicas: Integer
372
+
373
+ attr_accessor :StartAt, :TargetReplicas
374
+
375
+ def initialize(startat=nil, targetreplicas=nil)
376
+ @StartAt = startat
377
+ @TargetReplicas = targetreplicas
378
+ end
379
+
380
+ def deserialize(params)
381
+ @StartAt = params['StartAt']
382
+ @TargetReplicas = params['TargetReplicas']
383
+ end
384
+ end
385
+
386
+ # DeleteIngress请求参数结构体
387
+ class DeleteIngressRequest < TencentCloud::Common::AbstractModel
388
+ # @param EnvironmentId: 环境ID
389
+ # @type EnvironmentId: String
390
+ # @param ClusterNamespace: 环境 namespace
391
+ # @type ClusterNamespace: String
392
+ # @param IngressName: ingress 规则名
393
+ # @type IngressName: String
394
+ # @param SourceChannel: 来源渠道
395
+ # @type SourceChannel: Integer
396
+
397
+ attr_accessor :EnvironmentId, :ClusterNamespace, :IngressName, :SourceChannel
398
+
399
+ def initialize(environmentid=nil, clusternamespace=nil, ingressname=nil, sourcechannel=nil)
400
+ @EnvironmentId = environmentid
401
+ @ClusterNamespace = clusternamespace
402
+ @IngressName = ingressname
403
+ @SourceChannel = sourcechannel
404
+ end
405
+
406
+ def deserialize(params)
407
+ @EnvironmentId = params['EnvironmentId']
408
+ @ClusterNamespace = params['ClusterNamespace']
409
+ @IngressName = params['IngressName']
410
+ @SourceChannel = params['SourceChannel']
411
+ end
412
+ end
413
+
414
+ # DeleteIngress返回参数结构体
415
+ class DeleteIngressResponse < TencentCloud::Common::AbstractModel
416
+ # @param Result: 是否删除成功
417
+ # @type Result: Boolean
418
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
419
+ # @type RequestId: String
420
+
421
+ attr_accessor :Result, :RequestId
422
+
423
+ def initialize(result=nil, requestid=nil)
424
+ @Result = result
425
+ @RequestId = requestid
426
+ end
427
+
428
+ def deserialize(params)
429
+ @Result = params['Result']
430
+ @RequestId = params['RequestId']
431
+ end
432
+ end
433
+
434
+ # DeployApplication请求参数结构体
435
+ class DeployApplicationRequest < TencentCloud::Common::AbstractModel
436
+ # @param ApplicationId: 应用ID
437
+ # @type ApplicationId: String
438
+ # @param InitPodNum: 初始化 pod 数
439
+ # @type InitPodNum: Integer
440
+ # @param CpuSpec: cpu规格
441
+ # @type CpuSpec: Float
442
+ # @param MemorySpec: 内存规格
443
+ # @type MemorySpec: Float
444
+ # @param EnvironmentId: 环境ID
445
+ # @type EnvironmentId: String
446
+ # @param ImgRepo: 镜像仓库
447
+ # @type ImgRepo: String
448
+ # @param VersionDesc: 版本描述信息
449
+ # @type VersionDesc: String
450
+ # @param JvmOpts: 启动参数
451
+ # @type JvmOpts: String
452
+ # @param EsInfo: 弹性伸缩配置(已废弃,请使用HorizontalAutoscaler设置弹性策略)
453
+ # @type EsInfo: :class:`Tencentcloud::Tem.v20210701.models.EsInfo`
454
+ # @param EnvConf: 环境变量配置
455
+ # @type EnvConf: Array
456
+ # @param LogConfs: 日志配置
457
+ # @type LogConfs: Array
458
+ # @param StorageConfs: 数据卷配置
459
+ # @type StorageConfs: Array
460
+ # @param StorageMountConfs: 数据卷挂载配置
461
+ # @type StorageMountConfs: Array
462
+ # @param DeployMode: 部署类型。
463
+ # - JAR:通过 jar 包部署
464
+ # - WAR:通过 war 包部署
465
+ # - IMAGE:通过镜像部署
466
+ # @type DeployMode: String
467
+ # @param DeployVersion: 部署类型为 IMAGE 时,该参数表示镜像 tag。
468
+ # 部署类型为 JAR/WAR 时,该参数表示包版本号。
469
+ # @type DeployVersion: String
470
+ # @param PkgName: 包名。使用 JAR 包或者 WAR 包部署的时候必填。
471
+ # @type PkgName: String
472
+ # @param JdkVersion: JDK 版本。
473
+ # - KONA:使用 kona jdk。
474
+ # - OPEN:使用 open jdk。
475
+ # @type JdkVersion: String
476
+ # @param SecurityGroupIds: 安全组ID s
477
+ # @type SecurityGroupIds: Array
478
+ # @param LogOutputConf: 日志输出配置
479
+ # @type LogOutputConf: :class:`Tencentcloud::Tem.v20210701.models.LogOutputConf`
480
+ # @param SourceChannel: 来源渠道
481
+ # @type SourceChannel: Integer
482
+ # @param Description: 版本描述
483
+ # @type Description: String
484
+ # @param ImageCommand: 镜像命令
485
+ # @type ImageCommand: String
486
+ # @param ImageArgs: 镜像命令参数
487
+ # @type ImageArgs: Array
488
+ # @param UseRegistryDefaultConfig: 是否添加默认注册中心配置
489
+ # @type UseRegistryDefaultConfig: Boolean
490
+ # @param SettingConfs: 挂载配置信息
491
+ # @type SettingConfs: Array
492
+ # @param Service: 应用访问设置
493
+ # @type Service: :class:`Tencentcloud::Tem.v20210701.models.EksService`
494
+ # @param VersionId: 要回滚到的历史版本id
495
+ # @type VersionId: String
496
+ # @param PostStart: 启动后执行的脚本
497
+ # @type PostStart: String
498
+ # @param PreStop: 停止前执行的脚本
499
+ # @type PreStop: String
500
+ # @param Liveness: 存活探针配置
501
+ # @type Liveness: :class:`Tencentcloud::Tem.v20210701.models.HealthCheckConfig`
502
+ # @param Readiness: 就绪探针配置
503
+ # @type Readiness: :class:`Tencentcloud::Tem.v20210701.models.HealthCheckConfig`
504
+ # @param DeployStrategyConf: 分批发布策略配置
505
+ # @type DeployStrategyConf: :class:`Tencentcloud::Tem.v20210701.models.DeployStrategyConf`
506
+ # @param HorizontalAutoscaler: 弹性策略
507
+ # @type HorizontalAutoscaler: Array
508
+ # @param CronHorizontalAutoscaler: 定时弹性策略
509
+ # @type CronHorizontalAutoscaler: Array
510
+ # @param LogEnable: 是否启用log,1为启用,0为不启用
511
+ # @type LogEnable: Integer
512
+
513
+ attr_accessor :ApplicationId, :InitPodNum, :CpuSpec, :MemorySpec, :EnvironmentId, :ImgRepo, :VersionDesc, :JvmOpts, :EsInfo, :EnvConf, :LogConfs, :StorageConfs, :StorageMountConfs, :DeployMode, :DeployVersion, :PkgName, :JdkVersion, :SecurityGroupIds, :LogOutputConf, :SourceChannel, :Description, :ImageCommand, :ImageArgs, :UseRegistryDefaultConfig, :SettingConfs, :Service, :VersionId, :PostStart, :PreStop, :Liveness, :Readiness, :DeployStrategyConf, :HorizontalAutoscaler, :CronHorizontalAutoscaler, :LogEnable
514
+
515
+ def initialize(applicationid=nil, initpodnum=nil, cpuspec=nil, memoryspec=nil, environmentid=nil, imgrepo=nil, versiondesc=nil, jvmopts=nil, esinfo=nil, envconf=nil, logconfs=nil, storageconfs=nil, storagemountconfs=nil, deploymode=nil, deployversion=nil, pkgname=nil, jdkversion=nil, securitygroupids=nil, logoutputconf=nil, sourcechannel=nil, description=nil, imagecommand=nil, imageargs=nil, useregistrydefaultconfig=nil, settingconfs=nil, service=nil, versionid=nil, poststart=nil, prestop=nil, liveness=nil, readiness=nil, deploystrategyconf=nil, horizontalautoscaler=nil, cronhorizontalautoscaler=nil, logenable=nil)
516
+ @ApplicationId = applicationid
517
+ @InitPodNum = initpodnum
518
+ @CpuSpec = cpuspec
519
+ @MemorySpec = memoryspec
520
+ @EnvironmentId = environmentid
521
+ @ImgRepo = imgrepo
522
+ @VersionDesc = versiondesc
523
+ @JvmOpts = jvmopts
524
+ @EsInfo = esinfo
525
+ @EnvConf = envconf
526
+ @LogConfs = logconfs
527
+ @StorageConfs = storageconfs
528
+ @StorageMountConfs = storagemountconfs
529
+ @DeployMode = deploymode
530
+ @DeployVersion = deployversion
531
+ @PkgName = pkgname
532
+ @JdkVersion = jdkversion
533
+ @SecurityGroupIds = securitygroupids
534
+ @LogOutputConf = logoutputconf
535
+ @SourceChannel = sourcechannel
536
+ @Description = description
537
+ @ImageCommand = imagecommand
538
+ @ImageArgs = imageargs
539
+ @UseRegistryDefaultConfig = useregistrydefaultconfig
540
+ @SettingConfs = settingconfs
541
+ @Service = service
542
+ @VersionId = versionid
543
+ @PostStart = poststart
544
+ @PreStop = prestop
545
+ @Liveness = liveness
546
+ @Readiness = readiness
547
+ @DeployStrategyConf = deploystrategyconf
548
+ @HorizontalAutoscaler = horizontalautoscaler
549
+ @CronHorizontalAutoscaler = cronhorizontalautoscaler
550
+ @LogEnable = logenable
551
+ end
552
+
553
+ def deserialize(params)
554
+ @ApplicationId = params['ApplicationId']
555
+ @InitPodNum = params['InitPodNum']
556
+ @CpuSpec = params['CpuSpec']
557
+ @MemorySpec = params['MemorySpec']
558
+ @EnvironmentId = params['EnvironmentId']
559
+ @ImgRepo = params['ImgRepo']
560
+ @VersionDesc = params['VersionDesc']
561
+ @JvmOpts = params['JvmOpts']
562
+ unless params['EsInfo'].nil?
563
+ @EsInfo = EsInfo.new
564
+ @EsInfo.deserialize(params['EsInfo'])
565
+ end
566
+ unless params['EnvConf'].nil?
567
+ @EnvConf = []
568
+ params['EnvConf'].each do |i|
569
+ pair_tmp = Pair.new
570
+ pair_tmp.deserialize(i)
571
+ @EnvConf << pair_tmp
572
+ end
573
+ end
574
+ @LogConfs = params['LogConfs']
575
+ unless params['StorageConfs'].nil?
576
+ @StorageConfs = []
577
+ params['StorageConfs'].each do |i|
578
+ storageconf_tmp = StorageConf.new
579
+ storageconf_tmp.deserialize(i)
580
+ @StorageConfs << storageconf_tmp
581
+ end
582
+ end
583
+ unless params['StorageMountConfs'].nil?
584
+ @StorageMountConfs = []
585
+ params['StorageMountConfs'].each do |i|
586
+ storagemountconf_tmp = StorageMountConf.new
587
+ storagemountconf_tmp.deserialize(i)
588
+ @StorageMountConfs << storagemountconf_tmp
589
+ end
590
+ end
591
+ @DeployMode = params['DeployMode']
592
+ @DeployVersion = params['DeployVersion']
593
+ @PkgName = params['PkgName']
594
+ @JdkVersion = params['JdkVersion']
595
+ @SecurityGroupIds = params['SecurityGroupIds']
596
+ unless params['LogOutputConf'].nil?
597
+ @LogOutputConf = LogOutputConf.new
598
+ @LogOutputConf.deserialize(params['LogOutputConf'])
599
+ end
600
+ @SourceChannel = params['SourceChannel']
601
+ @Description = params['Description']
602
+ @ImageCommand = params['ImageCommand']
603
+ @ImageArgs = params['ImageArgs']
604
+ @UseRegistryDefaultConfig = params['UseRegistryDefaultConfig']
605
+ unless params['SettingConfs'].nil?
606
+ @SettingConfs = []
607
+ params['SettingConfs'].each do |i|
608
+ mountedsettingconf_tmp = MountedSettingConf.new
609
+ mountedsettingconf_tmp.deserialize(i)
610
+ @SettingConfs << mountedsettingconf_tmp
611
+ end
612
+ end
613
+ unless params['Service'].nil?
614
+ @Service = EksService.new
615
+ @Service.deserialize(params['Service'])
616
+ end
617
+ @VersionId = params['VersionId']
618
+ @PostStart = params['PostStart']
619
+ @PreStop = params['PreStop']
620
+ unless params['Liveness'].nil?
621
+ @Liveness = HealthCheckConfig.new
622
+ @Liveness.deserialize(params['Liveness'])
623
+ end
624
+ unless params['Readiness'].nil?
625
+ @Readiness = HealthCheckConfig.new
626
+ @Readiness.deserialize(params['Readiness'])
627
+ end
628
+ unless params['DeployStrategyConf'].nil?
629
+ @DeployStrategyConf = DeployStrategyConf.new
630
+ @DeployStrategyConf.deserialize(params['DeployStrategyConf'])
631
+ end
632
+ unless params['HorizontalAutoscaler'].nil?
633
+ @HorizontalAutoscaler = []
634
+ params['HorizontalAutoscaler'].each do |i|
635
+ horizontalautoscaler_tmp = HorizontalAutoscaler.new
636
+ horizontalautoscaler_tmp.deserialize(i)
637
+ @HorizontalAutoscaler << horizontalautoscaler_tmp
638
+ end
639
+ end
640
+ unless params['CronHorizontalAutoscaler'].nil?
641
+ @CronHorizontalAutoscaler = []
642
+ params['CronHorizontalAutoscaler'].each do |i|
643
+ cronhorizontalautoscaler_tmp = CronHorizontalAutoscaler.new
644
+ cronhorizontalautoscaler_tmp.deserialize(i)
645
+ @CronHorizontalAutoscaler << cronhorizontalautoscaler_tmp
646
+ end
647
+ end
648
+ @LogEnable = params['LogEnable']
649
+ end
650
+ end
651
+
652
+ # DeployApplication返回参数结构体
653
+ class DeployApplicationResponse < TencentCloud::Common::AbstractModel
654
+ # @param Result: 版本ID(前端可忽略)
655
+ # @type Result: String
656
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
657
+ # @type RequestId: String
658
+
659
+ attr_accessor :Result, :RequestId
660
+
661
+ def initialize(result=nil, requestid=nil)
662
+ @Result = result
663
+ @RequestId = requestid
664
+ end
665
+
666
+ def deserialize(params)
667
+ @Result = params['Result']
668
+ @RequestId = params['RequestId']
669
+ end
670
+ end
671
+
672
+ # 分批发布单批次详情
673
+ class DeployServiceBatchDetail < TencentCloud::Common::AbstractModel
674
+ # @param OldPodList: 旧实例列表
675
+ # 注意:此字段可能返回 null,表示取不到有效值。
676
+ # @type OldPodList: :class:`Tencentcloud::Tem.v20210701.models.DeployServicePodDetail`
677
+ # @param NewPodList: 新实例列表
678
+ # 注意:此字段可能返回 null,表示取不到有效值。
679
+ # @type NewPodList: :class:`Tencentcloud::Tem.v20210701.models.DeployServicePodDetail`
680
+ # @param BatchStatus: 当前批次状态:"WaitForTimeExceed", "WaitForResume", "Deploying", "Finish", "NotStart"
681
+ # 注意:此字段可能返回 null,表示取不到有效值。
682
+ # @type BatchStatus: String
683
+ # @param PodNum: 该批次预计旧实例数量
684
+ # 注意:此字段可能返回 null,表示取不到有效值。
685
+ # @type PodNum: Integer
686
+ # @param BatchIndex: 批次id
687
+ # 注意:此字段可能返回 null,表示取不到有效值。
688
+ # @type BatchIndex: Integer
689
+ # @param OldPods: 旧实例列表
690
+ # 注意:此字段可能返回 null,表示取不到有效值。
691
+ # @type OldPods: Array
692
+ # @param NewPods: 新实例列表
693
+ # 注意:此字段可能返回 null,表示取不到有效值。
694
+ # @type NewPods: Array
695
+ # @param NextBatchStartTime: =0:手动确认批次;>0:下一批次开始时间戳
696
+ # 注意:此字段可能返回 null,表示取不到有效值。
697
+ # @type NextBatchStartTime: Integer
698
+
699
+ attr_accessor :OldPodList, :NewPodList, :BatchStatus, :PodNum, :BatchIndex, :OldPods, :NewPods, :NextBatchStartTime
700
+
701
+ def initialize(oldpodlist=nil, newpodlist=nil, batchstatus=nil, podnum=nil, batchindex=nil, oldpods=nil, newpods=nil, nextbatchstarttime=nil)
702
+ @OldPodList = oldpodlist
703
+ @NewPodList = newpodlist
704
+ @BatchStatus = batchstatus
705
+ @PodNum = podnum
706
+ @BatchIndex = batchindex
707
+ @OldPods = oldpods
708
+ @NewPods = newpods
709
+ @NextBatchStartTime = nextbatchstarttime
710
+ end
711
+
712
+ def deserialize(params)
713
+ unless params['OldPodList'].nil?
714
+ @OldPodList = DeployServicePodDetail.new
715
+ @OldPodList.deserialize(params['OldPodList'])
716
+ end
717
+ unless params['NewPodList'].nil?
718
+ @NewPodList = DeployServicePodDetail.new
719
+ @NewPodList.deserialize(params['NewPodList'])
720
+ end
721
+ @BatchStatus = params['BatchStatus']
722
+ @PodNum = params['PodNum']
723
+ @BatchIndex = params['BatchIndex']
724
+ unless params['OldPods'].nil?
725
+ @OldPods = []
726
+ params['OldPods'].each do |i|
727
+ deployservicepoddetail_tmp = DeployServicePodDetail.new
728
+ deployservicepoddetail_tmp.deserialize(i)
729
+ @OldPods << deployservicepoddetail_tmp
730
+ end
731
+ end
732
+ unless params['NewPods'].nil?
733
+ @NewPods = []
734
+ params['NewPods'].each do |i|
735
+ deployservicepoddetail_tmp = DeployServicePodDetail.new
736
+ deployservicepoddetail_tmp.deserialize(i)
737
+ @NewPods << deployservicepoddetail_tmp
738
+ end
739
+ end
740
+ @NextBatchStartTime = params['NextBatchStartTime']
741
+ end
742
+ end
743
+
744
+ # 分批发布单批次详情
745
+ class DeployServicePodDetail < TencentCloud::Common::AbstractModel
746
+ # @param PodId: pod Id
747
+ # 注意:此字段可能返回 null,表示取不到有效值。
748
+ # @type PodId: String
749
+ # @param PodStatus: pod状态
750
+ # 注意:此字段可能返回 null,表示取不到有效值。
751
+ # @type PodStatus: Array
752
+ # @param PodVersion: pod版本
753
+ # 注意:此字段可能返回 null,表示取不到有效值。
754
+ # @type PodVersion: String
755
+ # @param CreateTime: pod创建时间
756
+ # 注意:此字段可能返回 null,表示取不到有效值。
757
+ # @type CreateTime: String
758
+ # @param Zone: pod所在可用区
759
+ # 注意:此字段可能返回 null,表示取不到有效值。
760
+ # @type Zone: String
761
+ # @param Webshell: webshell地址
762
+ # 注意:此字段可能返回 null,表示取不到有效值。
763
+ # @type Webshell: String
764
+
765
+ attr_accessor :PodId, :PodStatus, :PodVersion, :CreateTime, :Zone, :Webshell
766
+
767
+ def initialize(podid=nil, podstatus=nil, podversion=nil, createtime=nil, zone=nil, webshell=nil)
768
+ @PodId = podid
769
+ @PodStatus = podstatus
770
+ @PodVersion = podversion
771
+ @CreateTime = createtime
772
+ @Zone = zone
773
+ @Webshell = webshell
774
+ end
775
+
776
+ def deserialize(params)
777
+ @PodId = params['PodId']
778
+ @PodStatus = params['PodStatus']
779
+ @PodVersion = params['PodVersion']
780
+ @CreateTime = params['CreateTime']
781
+ @Zone = params['Zone']
782
+ @Webshell = params['Webshell']
783
+ end
784
+ end
785
+
786
+ # 分批发布策略配置
787
+ class DeployStrategyConf < TencentCloud::Common::AbstractModel
788
+ # @param TotalBatchCount: 总分批数
789
+ # @type TotalBatchCount: Integer
790
+ # @param BetaBatchNum: beta分批实例数
791
+ # @type BetaBatchNum: Integer
792
+ # @param DeployStrategyType: 分批策略:0-全自动,1-全手动,2-beta分批,beta批一定是手动的
793
+ # @type DeployStrategyType: Integer
794
+ # @param BatchInterval: 每批暂停间隔
795
+ # @type BatchInterval: Integer
796
+
797
+ attr_accessor :TotalBatchCount, :BetaBatchNum, :DeployStrategyType, :BatchInterval
798
+
799
+ def initialize(totalbatchcount=nil, betabatchnum=nil, deploystrategytype=nil, batchinterval=nil)
800
+ @TotalBatchCount = totalbatchcount
801
+ @BetaBatchNum = betabatchnum
802
+ @DeployStrategyType = deploystrategytype
803
+ @BatchInterval = batchinterval
804
+ end
805
+
806
+ def deserialize(params)
807
+ @TotalBatchCount = params['TotalBatchCount']
808
+ @BetaBatchNum = params['BetaBatchNum']
809
+ @DeployStrategyType = params['DeployStrategyType']
810
+ @BatchInterval = params['BatchInterval']
811
+ end
812
+ end
813
+
814
+ # DescribeApplicationPods请求参数结构体
815
+ class DescribeApplicationPodsRequest < TencentCloud::Common::AbstractModel
816
+ # @param EnvironmentId: 环境id
817
+ # @type EnvironmentId: String
818
+ # @param ApplicationId: 应用id
819
+ # @type ApplicationId: String
820
+ # @param Limit: 单页条数,默认值20
821
+ # @type Limit: Integer
822
+ # @param Offset: 分页下标,默认值0
823
+ # @type Offset: Integer
824
+ # @param Status: 实例状态
825
+ # - Running
826
+ # - Pending
827
+ # - Error
828
+ # @type Status: String
829
+ # @param PodName: 实例名字
830
+ # @type PodName: String
831
+ # @param SourceChannel: 来源渠道
832
+ # @type SourceChannel: Integer
833
+
834
+ attr_accessor :EnvironmentId, :ApplicationId, :Limit, :Offset, :Status, :PodName, :SourceChannel
835
+
836
+ def initialize(environmentid=nil, applicationid=nil, limit=nil, offset=nil, status=nil, podname=nil, sourcechannel=nil)
837
+ @EnvironmentId = environmentid
838
+ @ApplicationId = applicationid
839
+ @Limit = limit
840
+ @Offset = offset
841
+ @Status = status
842
+ @PodName = podname
843
+ @SourceChannel = sourcechannel
844
+ end
845
+
846
+ def deserialize(params)
847
+ @EnvironmentId = params['EnvironmentId']
848
+ @ApplicationId = params['ApplicationId']
849
+ @Limit = params['Limit']
850
+ @Offset = params['Offset']
851
+ @Status = params['Status']
852
+ @PodName = params['PodName']
853
+ @SourceChannel = params['SourceChannel']
854
+ end
855
+ end
856
+
857
+ # DescribeApplicationPods返回参数结构体
858
+ class DescribeApplicationPodsResponse < TencentCloud::Common::AbstractModel
859
+ # @param Result: 返回结果
860
+ # @type Result: :class:`Tencentcloud::Tem.v20210701.models.DescribeRunPodPage`
861
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
862
+ # @type RequestId: String
863
+
864
+ attr_accessor :Result, :RequestId
865
+
866
+ def initialize(result=nil, requestid=nil)
867
+ @Result = result
868
+ @RequestId = requestid
869
+ end
870
+
871
+ def deserialize(params)
872
+ unless params['Result'].nil?
873
+ @Result = DescribeRunPodPage.new
874
+ @Result.deserialize(params['Result'])
875
+ end
876
+ @RequestId = params['RequestId']
877
+ end
878
+ end
879
+
880
+ # DescribeDeployApplicationDetail请求参数结构体
881
+ class DescribeDeployApplicationDetailRequest < TencentCloud::Common::AbstractModel
882
+ # @param ApplicationId: 服务id
883
+ # @type ApplicationId: String
884
+ # @param EnvironmentId: 环境id
885
+ # @type EnvironmentId: String
886
+ # @param VersionId: 版本部署id
887
+ # @type VersionId: String
888
+
889
+ attr_accessor :ApplicationId, :EnvironmentId, :VersionId
890
+
891
+ def initialize(applicationid=nil, environmentid=nil, versionid=nil)
892
+ @ApplicationId = applicationid
893
+ @EnvironmentId = environmentid
894
+ @VersionId = versionid
895
+ end
896
+
897
+ def deserialize(params)
898
+ @ApplicationId = params['ApplicationId']
899
+ @EnvironmentId = params['EnvironmentId']
900
+ @VersionId = params['VersionId']
901
+ end
902
+ end
903
+
904
+ # DescribeDeployApplicationDetail返回参数结构体
905
+ class DescribeDeployApplicationDetailResponse < TencentCloud::Common::AbstractModel
906
+ # @param Result: 分批发布结果详情
907
+ # @type Result: :class:`Tencentcloud::Tem.v20210701.models.TemDeployApplicationDetailInfo`
908
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
909
+ # @type RequestId: String
910
+
911
+ attr_accessor :Result, :RequestId
912
+
913
+ def initialize(result=nil, requestid=nil)
914
+ @Result = result
915
+ @RequestId = requestid
916
+ end
917
+
918
+ def deserialize(params)
919
+ unless params['Result'].nil?
920
+ @Result = TemDeployApplicationDetailInfo.new
921
+ @Result.deserialize(params['Result'])
922
+ end
923
+ @RequestId = params['RequestId']
924
+ end
925
+ end
926
+
927
+ # DescribeEnvironments请求参数结构体
928
+ class DescribeEnvironmentsRequest < TencentCloud::Common::AbstractModel
929
+ # @param Limit: 分页limit
930
+ # @type Limit: Integer
931
+ # @param Offset: 分页下标
932
+ # @type Offset: Integer
933
+ # @param SourceChannel: 来源source
934
+ # @type SourceChannel: Integer
935
+
936
+ attr_accessor :Limit, :Offset, :SourceChannel
937
+
938
+ def initialize(limit=nil, offset=nil, sourcechannel=nil)
939
+ @Limit = limit
940
+ @Offset = offset
941
+ @SourceChannel = sourcechannel
942
+ end
943
+
944
+ def deserialize(params)
945
+ @Limit = params['Limit']
946
+ @Offset = params['Offset']
947
+ @SourceChannel = params['SourceChannel']
948
+ end
949
+ end
950
+
951
+ # DescribeEnvironments返回参数结构体
952
+ class DescribeEnvironmentsResponse < TencentCloud::Common::AbstractModel
953
+ # @param Result: 返回结果
954
+ # @type Result: :class:`Tencentcloud::Tem.v20210701.models.NamespacePage`
955
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
956
+ # @type RequestId: String
957
+
958
+ attr_accessor :Result, :RequestId
959
+
960
+ def initialize(result=nil, requestid=nil)
961
+ @Result = result
962
+ @RequestId = requestid
963
+ end
964
+
965
+ def deserialize(params)
966
+ unless params['Result'].nil?
967
+ @Result = NamespacePage.new
968
+ @Result.deserialize(params['Result'])
969
+ end
970
+ @RequestId = params['RequestId']
971
+ end
972
+ end
973
+
974
+ # DescribeIngress请求参数结构体
975
+ class DescribeIngressRequest < TencentCloud::Common::AbstractModel
976
+ # @param EnvironmentId: 环境ID
977
+ # @type EnvironmentId: String
978
+ # @param ClusterNamespace: 环境namespace
979
+ # @type ClusterNamespace: String
980
+ # @param IngressName: ingress 规则名
981
+ # @type IngressName: String
982
+ # @param SourceChannel: 来源渠道
983
+ # @type SourceChannel: Integer
984
+
985
+ attr_accessor :EnvironmentId, :ClusterNamespace, :IngressName, :SourceChannel
986
+
987
+ def initialize(environmentid=nil, clusternamespace=nil, ingressname=nil, sourcechannel=nil)
988
+ @EnvironmentId = environmentid
989
+ @ClusterNamespace = clusternamespace
990
+ @IngressName = ingressname
991
+ @SourceChannel = sourcechannel
992
+ end
993
+
994
+ def deserialize(params)
995
+ @EnvironmentId = params['EnvironmentId']
996
+ @ClusterNamespace = params['ClusterNamespace']
997
+ @IngressName = params['IngressName']
998
+ @SourceChannel = params['SourceChannel']
999
+ end
1000
+ end
1001
+
1002
+ # DescribeIngress返回参数结构体
1003
+ class DescribeIngressResponse < TencentCloud::Common::AbstractModel
1004
+ # @param Result: Ingress 规则配置
1005
+ # @type Result: :class:`Tencentcloud::Tem.v20210701.models.IngressInfo`
1006
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1007
+ # @type RequestId: String
1008
+
1009
+ attr_accessor :Result, :RequestId
1010
+
1011
+ def initialize(result=nil, requestid=nil)
1012
+ @Result = result
1013
+ @RequestId = requestid
1014
+ end
1015
+
1016
+ def deserialize(params)
1017
+ unless params['Result'].nil?
1018
+ @Result = IngressInfo.new
1019
+ @Result.deserialize(params['Result'])
1020
+ end
1021
+ @RequestId = params['RequestId']
1022
+ end
1023
+ end
1024
+
1025
+ # DescribeIngresses请求参数结构体
1026
+ class DescribeIngressesRequest < TencentCloud::Common::AbstractModel
1027
+ # @param EnvironmentId: 环境 id
1028
+ # @type EnvironmentId: String
1029
+ # @param ClusterNamespace: 环境 namespace
1030
+ # @type ClusterNamespace: String
1031
+ # @param SourceChannel: 来源渠道
1032
+ # @type SourceChannel: Integer
1033
+ # @param IngressNames: ingress 规则名列表
1034
+ # @type IngressNames: Array
1035
+
1036
+ attr_accessor :EnvironmentId, :ClusterNamespace, :SourceChannel, :IngressNames
1037
+
1038
+ def initialize(environmentid=nil, clusternamespace=nil, sourcechannel=nil, ingressnames=nil)
1039
+ @EnvironmentId = environmentid
1040
+ @ClusterNamespace = clusternamespace
1041
+ @SourceChannel = sourcechannel
1042
+ @IngressNames = ingressnames
1043
+ end
1044
+
1045
+ def deserialize(params)
1046
+ @EnvironmentId = params['EnvironmentId']
1047
+ @ClusterNamespace = params['ClusterNamespace']
1048
+ @SourceChannel = params['SourceChannel']
1049
+ @IngressNames = params['IngressNames']
1050
+ end
1051
+ end
1052
+
1053
+ # DescribeIngresses返回参数结构体
1054
+ class DescribeIngressesResponse < TencentCloud::Common::AbstractModel
1055
+ # @param Result: ingress 数组
1056
+ # 注意:此字段可能返回 null,表示取不到有效值。
1057
+ # @type Result: Array
1058
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1059
+ # @type RequestId: String
1060
+
1061
+ attr_accessor :Result, :RequestId
1062
+
1063
+ def initialize(result=nil, requestid=nil)
1064
+ @Result = result
1065
+ @RequestId = requestid
1066
+ end
1067
+
1068
+ def deserialize(params)
1069
+ unless params['Result'].nil?
1070
+ @Result = []
1071
+ params['Result'].each do |i|
1072
+ ingressinfo_tmp = IngressInfo.new
1073
+ ingressinfo_tmp.deserialize(i)
1074
+ @Result << ingressinfo_tmp
1075
+ end
1076
+ end
1077
+ @RequestId = params['RequestId']
1078
+ end
1079
+ end
1080
+
1081
+ # DescribeRelatedIngresses请求参数结构体
1082
+ class DescribeRelatedIngressesRequest < TencentCloud::Common::AbstractModel
1083
+ # @param EnvironmentId: 环境 id
1084
+ # @type EnvironmentId: String
1085
+ # @param ClusterNamespace: 环境 namespace
1086
+ # @type ClusterNamespace: String
1087
+ # @param SourceChannel: 来源渠道
1088
+ # @type SourceChannel: Integer
1089
+ # @param ApplicationId: 应用 ID
1090
+ # @type ApplicationId: String
1091
+
1092
+ attr_accessor :EnvironmentId, :ClusterNamespace, :SourceChannel, :ApplicationId
1093
+
1094
+ def initialize(environmentid=nil, clusternamespace=nil, sourcechannel=nil, applicationid=nil)
1095
+ @EnvironmentId = environmentid
1096
+ @ClusterNamespace = clusternamespace
1097
+ @SourceChannel = sourcechannel
1098
+ @ApplicationId = applicationid
1099
+ end
1100
+
1101
+ def deserialize(params)
1102
+ @EnvironmentId = params['EnvironmentId']
1103
+ @ClusterNamespace = params['ClusterNamespace']
1104
+ @SourceChannel = params['SourceChannel']
1105
+ @ApplicationId = params['ApplicationId']
1106
+ end
1107
+ end
1108
+
1109
+ # DescribeRelatedIngresses返回参数结构体
1110
+ class DescribeRelatedIngressesResponse < TencentCloud::Common::AbstractModel
1111
+ # @param Result: ingress 数组
1112
+ # 注意:此字段可能返回 null,表示取不到有效值。
1113
+ # @type Result: Array
1114
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1115
+ # @type RequestId: String
1116
+
1117
+ attr_accessor :Result, :RequestId
1118
+
1119
+ def initialize(result=nil, requestid=nil)
1120
+ @Result = result
1121
+ @RequestId = requestid
1122
+ end
1123
+
1124
+ def deserialize(params)
1125
+ unless params['Result'].nil?
1126
+ @Result = []
1127
+ params['Result'].each do |i|
1128
+ ingressinfo_tmp = IngressInfo.new
1129
+ ingressinfo_tmp.deserialize(i)
1130
+ @Result << ingressinfo_tmp
1131
+ end
1132
+ end
1133
+ @RequestId = params['RequestId']
1134
+ end
1135
+ end
1136
+
1137
+ # 版本pod列表
1138
+ class DescribeRunPodPage < TencentCloud::Common::AbstractModel
1139
+ # @param Offset: 分页下标
1140
+ # @type Offset: Integer
1141
+ # @param Limit: 单页条数
1142
+ # @type Limit: Integer
1143
+ # @param TotalCount: 总数
1144
+ # @type TotalCount: Integer
1145
+ # @param RequestId: 请求id
1146
+ # @type RequestId: String
1147
+ # @param PodList: 条目
1148
+ # @type PodList: Array
1149
+
1150
+ attr_accessor :Offset, :Limit, :TotalCount, :RequestId, :PodList
1151
+
1152
+ def initialize(offset=nil, limit=nil, totalcount=nil, requestid=nil, podlist=nil)
1153
+ @Offset = offset
1154
+ @Limit = limit
1155
+ @TotalCount = totalcount
1156
+ @RequestId = requestid
1157
+ @PodList = podlist
1158
+ end
1159
+
1160
+ def deserialize(params)
1161
+ @Offset = params['Offset']
1162
+ @Limit = params['Limit']
1163
+ @TotalCount = params['TotalCount']
1164
+ @RequestId = params['RequestId']
1165
+ unless params['PodList'].nil?
1166
+ @PodList = []
1167
+ params['PodList'].each do |i|
1168
+ runversionpod_tmp = RunVersionPod.new
1169
+ runversionpod_tmp.deserialize(i)
1170
+ @PodList << runversionpod_tmp
1171
+ end
1172
+ end
1173
+ end
1174
+ end
1175
+
1176
+ # eks service info
1177
+ class EksService < TencentCloud::Common::AbstractModel
1178
+ # @param Name: service name
1179
+ # @type Name: String
1180
+ # @param Ports: 可用端口
1181
+ # @type Ports: Array
1182
+ # @param Yaml: yaml 内容
1183
+ # @type Yaml: String
1184
+ # @param ApplicationName: 服务名
1185
+ # 注意:此字段可能返回 null,表示取不到有效值。
1186
+ # @type ApplicationName: String
1187
+ # @param VersionName: 版本名
1188
+ # 注意:此字段可能返回 null,表示取不到有效值。
1189
+ # @type VersionName: String
1190
+ # @param ClusterIp: 内网ip
1191
+ # 注意:此字段可能返回 null,表示取不到有效值。
1192
+ # @type ClusterIp: Array
1193
+ # @param ExternalIp: 外网ip
1194
+ # 注意:此字段可能返回 null,表示取不到有效值。
1195
+ # @type ExternalIp: String
1196
+ # @param Type: 访问类型,可选值:
1197
+ # - EXTERNAL(公网访问)
1198
+ # - VPC(vpc内访问)
1199
+ # - CLUSTER(集群内访问)
1200
+ # 注意:此字段可能返回 null,表示取不到有效值。
1201
+ # @type Type: String
1202
+ # @param SubnetId: 子网ID,只在类型为vpc访问时才有值
1203
+ # 注意:此字段可能返回 null,表示取不到有效值。
1204
+ # @type SubnetId: String
1205
+ # @param LoadBalanceId: 负载均衡ID,只在外网访问和vpc内访问才有值,默认自动创建
1206
+ # 注意:此字段可能返回 null,表示取不到有效值。
1207
+ # @type LoadBalanceId: String
1208
+ # @param PortMappings: 端口映射
1209
+ # 注意:此字段可能返回 null,表示取不到有效值。
1210
+ # @type PortMappings: Array
1211
+
1212
+ attr_accessor :Name, :Ports, :Yaml, :ApplicationName, :VersionName, :ClusterIp, :ExternalIp, :Type, :SubnetId, :LoadBalanceId, :PortMappings
1213
+
1214
+ def initialize(name=nil, ports=nil, yaml=nil, applicationname=nil, versionname=nil, clusterip=nil, externalip=nil, type=nil, subnetid=nil, loadbalanceid=nil, portmappings=nil)
1215
+ @Name = name
1216
+ @Ports = ports
1217
+ @Yaml = yaml
1218
+ @ApplicationName = applicationname
1219
+ @VersionName = versionname
1220
+ @ClusterIp = clusterip
1221
+ @ExternalIp = externalip
1222
+ @Type = type
1223
+ @SubnetId = subnetid
1224
+ @LoadBalanceId = loadbalanceid
1225
+ @PortMappings = portmappings
1226
+ end
1227
+
1228
+ def deserialize(params)
1229
+ @Name = params['Name']
1230
+ @Ports = params['Ports']
1231
+ @Yaml = params['Yaml']
1232
+ @ApplicationName = params['ApplicationName']
1233
+ @VersionName = params['VersionName']
1234
+ @ClusterIp = params['ClusterIp']
1235
+ @ExternalIp = params['ExternalIp']
1236
+ @Type = params['Type']
1237
+ @SubnetId = params['SubnetId']
1238
+ @LoadBalanceId = params['LoadBalanceId']
1239
+ unless params['PortMappings'].nil?
1240
+ @PortMappings = []
1241
+ params['PortMappings'].each do |i|
1242
+ portmapping_tmp = PortMapping.new
1243
+ portmapping_tmp.deserialize(i)
1244
+ @PortMappings << portmapping_tmp
1245
+ end
1246
+ end
1247
+ end
1248
+ end
1249
+
1250
+ # 弹性伸缩配置
1251
+ class EsInfo < TencentCloud::Common::AbstractModel
1252
+ # @param MinAliveInstances: 最小实例数
1253
+ # @type MinAliveInstances: Integer
1254
+ # @param MaxAliveInstances: 最大实例数
1255
+ # @type MaxAliveInstances: Integer
1256
+ # @param EsStrategy: 弹性策略,1:cpu,2:内存
1257
+ # @type EsStrategy: Integer
1258
+ # @param Threshold: 弹性扩缩容条件值
1259
+ # @type Threshold: Integer
1260
+ # @param VersionId: 版本Id
1261
+ # @type VersionId: String
1262
+
1263
+ attr_accessor :MinAliveInstances, :MaxAliveInstances, :EsStrategy, :Threshold, :VersionId
1264
+
1265
+ def initialize(minaliveinstances=nil, maxaliveinstances=nil, esstrategy=nil, threshold=nil, versionid=nil)
1266
+ @MinAliveInstances = minaliveinstances
1267
+ @MaxAliveInstances = maxaliveinstances
1268
+ @EsStrategy = esstrategy
1269
+ @Threshold = threshold
1270
+ @VersionId = versionid
1271
+ end
1272
+
1273
+ def deserialize(params)
1274
+ @MinAliveInstances = params['MinAliveInstances']
1275
+ @MaxAliveInstances = params['MaxAliveInstances']
1276
+ @EsStrategy = params['EsStrategy']
1277
+ @Threshold = params['Threshold']
1278
+ @VersionId = params['VersionId']
1279
+ end
1280
+ end
1281
+
1282
+ # GenerateApplicationPackageDownloadUrl请求参数结构体
1283
+ class GenerateApplicationPackageDownloadUrlRequest < TencentCloud::Common::AbstractModel
1284
+ # @param ApplicationId: 应用ID
1285
+ # @type ApplicationId: String
1286
+ # @param PkgName: 包名
1287
+ # @type PkgName: String
1288
+ # @param DeployVersion: 需要下载的包版本
1289
+ # @type DeployVersion: String
1290
+ # @param SourceChannel: 来源 channel
1291
+ # @type SourceChannel: Integer
1292
+
1293
+ attr_accessor :ApplicationId, :PkgName, :DeployVersion, :SourceChannel
1294
+
1295
+ def initialize(applicationid=nil, pkgname=nil, deployversion=nil, sourcechannel=nil)
1296
+ @ApplicationId = applicationid
1297
+ @PkgName = pkgname
1298
+ @DeployVersion = deployversion
1299
+ @SourceChannel = sourcechannel
1300
+ end
1301
+
1302
+ def deserialize(params)
1303
+ @ApplicationId = params['ApplicationId']
1304
+ @PkgName = params['PkgName']
1305
+ @DeployVersion = params['DeployVersion']
1306
+ @SourceChannel = params['SourceChannel']
1307
+ end
1308
+ end
1309
+
1310
+ # GenerateApplicationPackageDownloadUrl返回参数结构体
1311
+ class GenerateApplicationPackageDownloadUrlResponse < TencentCloud::Common::AbstractModel
1312
+ # @param Result: 包下载临时链接
1313
+ # 注意:此字段可能返回 null,表示取不到有效值。
1314
+ # @type Result: String
1315
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1316
+ # @type RequestId: String
1317
+
1318
+ attr_accessor :Result, :RequestId
1319
+
1320
+ def initialize(result=nil, requestid=nil)
1321
+ @Result = result
1322
+ @RequestId = requestid
1323
+ end
1324
+
1325
+ def deserialize(params)
1326
+ @Result = params['Result']
1327
+ @RequestId = params['RequestId']
1328
+ end
1329
+ end
1330
+
1331
+ # 健康检查配置
1332
+ class HealthCheckConfig < TencentCloud::Common::AbstractModel
1333
+ # @param Type: 支持的健康检查类型,如 HttpGet,TcpSocket,Exec
1334
+ # @type Type: String
1335
+ # @param Protocol: 仅当健康检查类型为 HttpGet 时有效,表示协议类型,如 HTTP,HTTPS
1336
+ # @type Protocol: String
1337
+ # @param Path: 仅当健康检查类型为 HttpGet 时有效,表示请求路径
1338
+ # @type Path: String
1339
+ # @param Exec: 仅当健康检查类型为 Exec 时有效,表示执行的脚本内容
1340
+ # @type Exec: String
1341
+ # @param Port: 仅当健康检查类型为 HttpGet\TcpSocket 时有效,表示请求路径
1342
+ # @type Port: Integer
1343
+ # @param InitialDelaySeconds: 检查延迟开始时间,单位为秒,默认为 0
1344
+ # @type InitialDelaySeconds: Integer
1345
+ # @param TimeoutSeconds: 超时时间,单位为秒,默认为 1
1346
+ # @type TimeoutSeconds: Integer
1347
+ # @param PeriodSeconds: 间隔时间,单位为秒,默认为 10
1348
+ # @type PeriodSeconds: Integer
1349
+
1350
+ attr_accessor :Type, :Protocol, :Path, :Exec, :Port, :InitialDelaySeconds, :TimeoutSeconds, :PeriodSeconds
1351
+
1352
+ def initialize(type=nil, protocol=nil, path=nil, exec=nil, port=nil, initialdelayseconds=nil, timeoutseconds=nil, periodseconds=nil)
1353
+ @Type = type
1354
+ @Protocol = protocol
1355
+ @Path = path
1356
+ @Exec = exec
1357
+ @Port = port
1358
+ @InitialDelaySeconds = initialdelayseconds
1359
+ @TimeoutSeconds = timeoutseconds
1360
+ @PeriodSeconds = periodseconds
1361
+ end
1362
+
1363
+ def deserialize(params)
1364
+ @Type = params['Type']
1365
+ @Protocol = params['Protocol']
1366
+ @Path = params['Path']
1367
+ @Exec = params['Exec']
1368
+ @Port = params['Port']
1369
+ @InitialDelaySeconds = params['InitialDelaySeconds']
1370
+ @TimeoutSeconds = params['TimeoutSeconds']
1371
+ @PeriodSeconds = params['PeriodSeconds']
1372
+ end
1373
+ end
1374
+
1375
+ # 弹性伸缩策略
1376
+ class HorizontalAutoscaler < TencentCloud::Common::AbstractModel
1377
+ # @param MinReplicas: 最小实例数
1378
+ # @type MinReplicas: Integer
1379
+ # @param MaxReplicas: 最大实例数
1380
+ # @type MaxReplicas: Integer
1381
+ # @param Metrics: 指标度量(CPU or MEMORY)
1382
+ # @type Metrics: String
1383
+ # @param Threshold: 阈值(百分比)
1384
+ # @type Threshold: Integer
1385
+
1386
+ attr_accessor :MinReplicas, :MaxReplicas, :Metrics, :Threshold
1387
+
1388
+ def initialize(minreplicas=nil, maxreplicas=nil, metrics=nil, threshold=nil)
1389
+ @MinReplicas = minreplicas
1390
+ @MaxReplicas = maxreplicas
1391
+ @Metrics = metrics
1392
+ @Threshold = threshold
1393
+ end
1394
+
1395
+ def deserialize(params)
1396
+ @MinReplicas = params['MinReplicas']
1397
+ @MaxReplicas = params['MaxReplicas']
1398
+ @Metrics = params['Metrics']
1399
+ @Threshold = params['Threshold']
1400
+ end
1401
+ end
1402
+
1403
+ # Ingress 配置
1404
+ class IngressInfo < TencentCloud::Common::AbstractModel
1405
+ # @param EnvironmentId: 环境ID
1406
+ # 注意:此字段可能返回 null,表示取不到有效值。
1407
+ # @type EnvironmentId: String
1408
+ # @param ClusterNamespace: 环境namespace
1409
+ # @type ClusterNamespace: String
1410
+ # @param AddressIPVersion: ip version
1411
+ # @type AddressIPVersion: String
1412
+ # @param IngressName: ingress name
1413
+ # @type IngressName: String
1414
+ # @param Rules: rules 配置
1415
+ # @type Rules: Array
1416
+ # @param ClbId: clb ID
1417
+ # 注意:此字段可能返回 null,表示取不到有效值。
1418
+ # @type ClbId: String
1419
+ # @param Tls: tls 配置
1420
+ # 注意:此字段可能返回 null,表示取不到有效值。
1421
+ # @type Tls: Array
1422
+ # @param ClusterId: 环境集群ID
1423
+ # 注意:此字段可能返回 null,表示取不到有效值。
1424
+ # @type ClusterId: String
1425
+ # @param Vip: clb ip
1426
+ # 注意:此字段可能返回 null,表示取不到有效值。
1427
+ # @type Vip: String
1428
+ # @param CreateTime: 创建时间
1429
+ # 注意:此字段可能返回 null,表示取不到有效值。
1430
+ # @type CreateTime: String
1431
+ # @param Mixed: 是否混合 https,默认 false,可选值 true 代表有 https 协议监听
1432
+ # @type Mixed: Boolean
1433
+
1434
+ attr_accessor :EnvironmentId, :ClusterNamespace, :AddressIPVersion, :IngressName, :Rules, :ClbId, :Tls, :ClusterId, :Vip, :CreateTime, :Mixed
1435
+
1436
+ def initialize(environmentid=nil, clusternamespace=nil, addressipversion=nil, ingressname=nil, rules=nil, clbid=nil, tls=nil, clusterid=nil, vip=nil, createtime=nil, mixed=nil)
1437
+ @EnvironmentId = environmentid
1438
+ @ClusterNamespace = clusternamespace
1439
+ @AddressIPVersion = addressipversion
1440
+ @IngressName = ingressname
1441
+ @Rules = rules
1442
+ @ClbId = clbid
1443
+ @Tls = tls
1444
+ @ClusterId = clusterid
1445
+ @Vip = vip
1446
+ @CreateTime = createtime
1447
+ @Mixed = mixed
1448
+ end
1449
+
1450
+ def deserialize(params)
1451
+ @EnvironmentId = params['EnvironmentId']
1452
+ @ClusterNamespace = params['ClusterNamespace']
1453
+ @AddressIPVersion = params['AddressIPVersion']
1454
+ @IngressName = params['IngressName']
1455
+ unless params['Rules'].nil?
1456
+ @Rules = []
1457
+ params['Rules'].each do |i|
1458
+ ingressrule_tmp = IngressRule.new
1459
+ ingressrule_tmp.deserialize(i)
1460
+ @Rules << ingressrule_tmp
1461
+ end
1462
+ end
1463
+ @ClbId = params['ClbId']
1464
+ unless params['Tls'].nil?
1465
+ @Tls = []
1466
+ params['Tls'].each do |i|
1467
+ ingresstls_tmp = IngressTls.new
1468
+ ingresstls_tmp.deserialize(i)
1469
+ @Tls << ingresstls_tmp
1470
+ end
1471
+ end
1472
+ @ClusterId = params['ClusterId']
1473
+ @Vip = params['Vip']
1474
+ @CreateTime = params['CreateTime']
1475
+ @Mixed = params['Mixed']
1476
+ end
1477
+ end
1478
+
1479
+ # ingress rule 配置
1480
+ class IngressRule < TencentCloud::Common::AbstractModel
1481
+ # @param Http: ingress rule value
1482
+ # @type Http: :class:`Tencentcloud::Tem.v20210701.models.IngressRuleValue`
1483
+ # @param Host: host 地址
1484
+ # 注意:此字段可能返回 null,表示取不到有效值。
1485
+ # @type Host: String
1486
+ # @param Protocol: 协议,选项为 http, https,默认为 http
1487
+ # @type Protocol: String
1488
+
1489
+ attr_accessor :Http, :Host, :Protocol
1490
+
1491
+ def initialize(http=nil, host=nil, protocol=nil)
1492
+ @Http = http
1493
+ @Host = host
1494
+ @Protocol = protocol
1495
+ end
1496
+
1497
+ def deserialize(params)
1498
+ unless params['Http'].nil?
1499
+ @Http = IngressRuleValue.new
1500
+ @Http.deserialize(params['Http'])
1501
+ end
1502
+ @Host = params['Host']
1503
+ @Protocol = params['Protocol']
1504
+ end
1505
+ end
1506
+
1507
+ # Ingress 规则 backend 配置
1508
+ class IngressRuleBackend < TencentCloud::Common::AbstractModel
1509
+ # @param ServiceName: eks service 名
1510
+ # @type ServiceName: String
1511
+ # @param ServicePort: eks service 端口
1512
+ # @type ServicePort: Integer
1513
+
1514
+ attr_accessor :ServiceName, :ServicePort
1515
+
1516
+ def initialize(servicename=nil, serviceport=nil)
1517
+ @ServiceName = servicename
1518
+ @ServicePort = serviceport
1519
+ end
1520
+
1521
+ def deserialize(params)
1522
+ @ServiceName = params['ServiceName']
1523
+ @ServicePort = params['ServicePort']
1524
+ end
1525
+ end
1526
+
1527
+ # Ingress Rule Path 配置
1528
+ class IngressRulePath < TencentCloud::Common::AbstractModel
1529
+ # @param Path: path 信息
1530
+ # @type Path: String
1531
+ # @param Backend: backend 配置
1532
+ # @type Backend: :class:`Tencentcloud::Tem.v20210701.models.IngressRuleBackend`
1533
+
1534
+ attr_accessor :Path, :Backend
1535
+
1536
+ def initialize(path=nil, backend=nil)
1537
+ @Path = path
1538
+ @Backend = backend
1539
+ end
1540
+
1541
+ def deserialize(params)
1542
+ @Path = params['Path']
1543
+ unless params['Backend'].nil?
1544
+ @Backend = IngressRuleBackend.new
1545
+ @Backend.deserialize(params['Backend'])
1546
+ end
1547
+ end
1548
+ end
1549
+
1550
+ # Ingress Rule Value 配置
1551
+ class IngressRuleValue < TencentCloud::Common::AbstractModel
1552
+ # @param Paths: rule 整体配置
1553
+ # @type Paths: Array
1554
+
1555
+ attr_accessor :Paths
1556
+
1557
+ def initialize(paths=nil)
1558
+ @Paths = paths
1559
+ end
1560
+
1561
+ def deserialize(params)
1562
+ unless params['Paths'].nil?
1563
+ @Paths = []
1564
+ params['Paths'].each do |i|
1565
+ ingressrulepath_tmp = IngressRulePath.new
1566
+ ingressrulepath_tmp.deserialize(i)
1567
+ @Paths << ingressrulepath_tmp
1568
+ end
1569
+ end
1570
+ end
1571
+ end
1572
+
1573
+ # ingress tls 配置
1574
+ class IngressTls < TencentCloud::Common::AbstractModel
1575
+ # @param Hosts: host 数组, 空数组表示全部域名的默认证书
1576
+ # @type Hosts: Array
1577
+ # @param SecretName: secret name,如使用证书,则填空字符串
1578
+ # @type SecretName: String
1579
+ # @param CertificateId: SSL Certificate Id
1580
+ # @type CertificateId: String
1581
+
1582
+ attr_accessor :Hosts, :SecretName, :CertificateId
1583
+
1584
+ def initialize(hosts=nil, secretname=nil, certificateid=nil)
1585
+ @Hosts = hosts
1586
+ @SecretName = secretname
1587
+ @CertificateId = certificateid
1588
+ end
1589
+
1590
+ def deserialize(params)
1591
+ @Hosts = params['Hosts']
1592
+ @SecretName = params['SecretName']
1593
+ @CertificateId = params['CertificateId']
1594
+ end
1595
+ end
1596
+
1597
+ # 日志输出配置
1598
+ class LogOutputConf < TencentCloud::Common::AbstractModel
1599
+ # @param OutputType: 日志消费端类型
1600
+ # @type OutputType: String
1601
+ # @param ClsLogsetName: cls日志集
1602
+ # @type ClsLogsetName: String
1603
+ # @param ClsLogTopicId: cls日志主题
1604
+ # @type ClsLogTopicId: String
1605
+ # @param ClsLogsetId: cls日志集id
1606
+ # @type ClsLogsetId: String
1607
+ # @param ClsLogTopicName: cls日志名称
1608
+ # @type ClsLogTopicName: String
1609
+
1610
+ attr_accessor :OutputType, :ClsLogsetName, :ClsLogTopicId, :ClsLogsetId, :ClsLogTopicName
1611
+
1612
+ def initialize(outputtype=nil, clslogsetname=nil, clslogtopicid=nil, clslogsetid=nil, clslogtopicname=nil)
1613
+ @OutputType = outputtype
1614
+ @ClsLogsetName = clslogsetname
1615
+ @ClsLogTopicId = clslogtopicid
1616
+ @ClsLogsetId = clslogsetid
1617
+ @ClsLogTopicName = clslogtopicname
1618
+ end
1619
+
1620
+ def deserialize(params)
1621
+ @OutputType = params['OutputType']
1622
+ @ClsLogsetName = params['ClsLogsetName']
1623
+ @ClsLogTopicId = params['ClsLogTopicId']
1624
+ @ClsLogsetId = params['ClsLogsetId']
1625
+ @ClsLogTopicName = params['ClsLogTopicName']
1626
+ end
1627
+ end
1628
+
1629
+ # ModifyApplicationInfo请求参数结构体
1630
+ class ModifyApplicationInfoRequest < TencentCloud::Common::AbstractModel
1631
+ # @param ApplicationId: 应用ID
1632
+ # @type ApplicationId: String
1633
+ # @param Description: 描述
1634
+ # @type Description: String
1635
+ # @param SourceChannel: 来源渠道
1636
+ # @type SourceChannel: Integer
1637
+ # @param EnableTracing: 是否开启调用链, 0 为关闭,1位开启
1638
+ # @type EnableTracing: Integer
1639
+
1640
+ attr_accessor :ApplicationId, :Description, :SourceChannel, :EnableTracing
1641
+
1642
+ def initialize(applicationid=nil, description=nil, sourcechannel=nil, enabletracing=nil)
1643
+ @ApplicationId = applicationid
1644
+ @Description = description
1645
+ @SourceChannel = sourcechannel
1646
+ @EnableTracing = enabletracing
1647
+ end
1648
+
1649
+ def deserialize(params)
1650
+ @ApplicationId = params['ApplicationId']
1651
+ @Description = params['Description']
1652
+ @SourceChannel = params['SourceChannel']
1653
+ @EnableTracing = params['EnableTracing']
1654
+ end
1655
+ end
1656
+
1657
+ # ModifyApplicationInfo返回参数结构体
1658
+ class ModifyApplicationInfoResponse < TencentCloud::Common::AbstractModel
1659
+ # @param Result: 成功与否
1660
+ # 注意:此字段可能返回 null,表示取不到有效值。
1661
+ # @type Result: Boolean
1662
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1663
+ # @type RequestId: String
1664
+
1665
+ attr_accessor :Result, :RequestId
1666
+
1667
+ def initialize(result=nil, requestid=nil)
1668
+ @Result = result
1669
+ @RequestId = requestid
1670
+ end
1671
+
1672
+ def deserialize(params)
1673
+ @Result = params['Result']
1674
+ @RequestId = params['RequestId']
1675
+ end
1676
+ end
1677
+
1678
+ # ModifyEnvironment请求参数结构体
1679
+ class ModifyEnvironmentRequest < TencentCloud::Common::AbstractModel
1680
+ # @param EnvironmentId: 环境id
1681
+ # @type EnvironmentId: String
1682
+ # @param EnvironmentName: 环境名称
1683
+ # @type EnvironmentName: String
1684
+ # @param Description: 环境描述
1685
+ # @type Description: String
1686
+ # @param Vpc: 私有网络名称
1687
+ # @type Vpc: String
1688
+ # @param SubnetIds: 子网网络
1689
+ # @type SubnetIds: Array
1690
+ # @param SourceChannel: 来源渠道
1691
+ # @type SourceChannel: Integer
1692
+
1693
+ attr_accessor :EnvironmentId, :EnvironmentName, :Description, :Vpc, :SubnetIds, :SourceChannel
1694
+
1695
+ def initialize(environmentid=nil, environmentname=nil, description=nil, vpc=nil, subnetids=nil, sourcechannel=nil)
1696
+ @EnvironmentId = environmentid
1697
+ @EnvironmentName = environmentname
1698
+ @Description = description
1699
+ @Vpc = vpc
1700
+ @SubnetIds = subnetids
1701
+ @SourceChannel = sourcechannel
1702
+ end
1703
+
1704
+ def deserialize(params)
1705
+ @EnvironmentId = params['EnvironmentId']
1706
+ @EnvironmentName = params['EnvironmentName']
1707
+ @Description = params['Description']
1708
+ @Vpc = params['Vpc']
1709
+ @SubnetIds = params['SubnetIds']
1710
+ @SourceChannel = params['SourceChannel']
1711
+ end
1712
+ end
1713
+
1714
+ # ModifyEnvironment返回参数结构体
1715
+ class ModifyEnvironmentResponse < TencentCloud::Common::AbstractModel
1716
+ # @param Result: 成功时为环境ID,失败为null
1717
+ # 注意:此字段可能返回 null,表示取不到有效值。
1718
+ # @type Result: Boolean
1719
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1720
+ # @type RequestId: String
1721
+
1722
+ attr_accessor :Result, :RequestId
1723
+
1724
+ def initialize(result=nil, requestid=nil)
1725
+ @Result = result
1726
+ @RequestId = requestid
1727
+ end
1728
+
1729
+ def deserialize(params)
1730
+ @Result = params['Result']
1731
+ @RequestId = params['RequestId']
1732
+ end
1733
+ end
1734
+
1735
+ # ModifyIngress请求参数结构体
1736
+ class ModifyIngressRequest < TencentCloud::Common::AbstractModel
1737
+ # @param Ingress: Ingress 规则配置
1738
+ # @type Ingress: :class:`Tencentcloud::Tem.v20210701.models.IngressInfo`
1739
+ # @param SourceChannel: 来源渠道
1740
+ # @type SourceChannel: Integer
1741
+
1742
+ attr_accessor :Ingress, :SourceChannel
1743
+
1744
+ def initialize(ingress=nil, sourcechannel=nil)
1745
+ @Ingress = ingress
1746
+ @SourceChannel = sourcechannel
1747
+ end
1748
+
1749
+ def deserialize(params)
1750
+ unless params['Ingress'].nil?
1751
+ @Ingress = IngressInfo.new
1752
+ @Ingress.deserialize(params['Ingress'])
1753
+ end
1754
+ @SourceChannel = params['SourceChannel']
1755
+ end
1756
+ end
1757
+
1758
+ # ModifyIngress返回参数结构体
1759
+ class ModifyIngressResponse < TencentCloud::Common::AbstractModel
1760
+ # @param Result: 创建成功
1761
+ # 注意:此字段可能返回 null,表示取不到有效值。
1762
+ # @type Result: Boolean
1763
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1764
+ # @type RequestId: String
1765
+
1766
+ attr_accessor :Result, :RequestId
1767
+
1768
+ def initialize(result=nil, requestid=nil)
1769
+ @Result = result
1770
+ @RequestId = requestid
1771
+ end
1772
+
1773
+ def deserialize(params)
1774
+ @Result = params['Result']
1775
+ @RequestId = params['RequestId']
1776
+ end
1777
+ end
1778
+
1779
+ # 挂载配置信息
1780
+ class MountedSettingConf < TencentCloud::Common::AbstractModel
1781
+ # @param ConfigDataName: 配置名称
1782
+ # @type ConfigDataName: String
1783
+ # @param MountedPath: 挂载路径
1784
+ # @type MountedPath: String
1785
+ # @param Data: 配置内容
1786
+ # @type Data: Array
1787
+
1788
+ attr_accessor :ConfigDataName, :MountedPath, :Data
1789
+
1790
+ def initialize(configdataname=nil, mountedpath=nil, data=nil)
1791
+ @ConfigDataName = configdataname
1792
+ @MountedPath = mountedpath
1793
+ @Data = data
1794
+ end
1795
+
1796
+ def deserialize(params)
1797
+ @ConfigDataName = params['ConfigDataName']
1798
+ @MountedPath = params['MountedPath']
1799
+ unless params['Data'].nil?
1800
+ @Data = []
1801
+ params['Data'].each do |i|
1802
+ pair_tmp = Pair.new
1803
+ pair_tmp.deserialize(i)
1804
+ @Data << pair_tmp
1805
+ end
1806
+ end
1807
+ end
1808
+ end
1809
+
1810
+ # 命名空间分页
1811
+ class NamespacePage < TencentCloud::Common::AbstractModel
1812
+ # @param Records: 分页内容
1813
+ # @type Records: Array
1814
+ # @param Total: 总数
1815
+ # @type Total: Integer
1816
+ # @param Size: 条目数
1817
+ # @type Size: Integer
1818
+ # @param Pages: 页数
1819
+ # @type Pages: Integer
1820
+
1821
+ attr_accessor :Records, :Total, :Size, :Pages
1822
+
1823
+ def initialize(records=nil, total=nil, size=nil, pages=nil)
1824
+ @Records = records
1825
+ @Total = total
1826
+ @Size = size
1827
+ @Pages = pages
1828
+ end
1829
+
1830
+ def deserialize(params)
1831
+ unless params['Records'].nil?
1832
+ @Records = []
1833
+ params['Records'].each do |i|
1834
+ temnamespaceinfo_tmp = TemNamespaceInfo.new
1835
+ temnamespaceinfo_tmp.deserialize(i)
1836
+ @Records << temnamespaceinfo_tmp
1837
+ end
1838
+ end
1839
+ @Total = params['Total']
1840
+ @Size = params['Size']
1841
+ @Pages = params['Pages']
1842
+ end
1843
+ end
1844
+
1845
+ # 键值对
1846
+ class Pair < TencentCloud::Common::AbstractModel
1847
+ # @param Key: 建
1848
+ # @type Key: String
1849
+ # @param Value: 值
1850
+ # @type Value: String
1851
+
1852
+ attr_accessor :Key, :Value
1853
+
1854
+ def initialize(key=nil, value=nil)
1855
+ @Key = key
1856
+ @Value = value
1857
+ end
1858
+
1859
+ def deserialize(params)
1860
+ @Key = params['Key']
1861
+ @Value = params['Value']
1862
+ end
1863
+ end
1864
+
1865
+ # 服务端口映射
1866
+ class PortMapping < TencentCloud::Common::AbstractModel
1867
+ # @param Port: 端口
1868
+ # @type Port: Integer
1869
+ # @param TargetPort: 映射端口
1870
+ # @type TargetPort: Integer
1871
+ # @param Protocol: 协议栈 TCP/UDP
1872
+ # @type Protocol: String
1873
+
1874
+ attr_accessor :Port, :TargetPort, :Protocol
1875
+
1876
+ def initialize(port=nil, targetport=nil, protocol=nil)
1877
+ @Port = port
1878
+ @TargetPort = targetport
1879
+ @Protocol = protocol
1880
+ end
1881
+
1882
+ def deserialize(params)
1883
+ @Port = params['Port']
1884
+ @TargetPort = params['TargetPort']
1885
+ @Protocol = params['Protocol']
1886
+ end
1887
+ end
1888
+
1889
+ # RestartApplicationPod请求参数结构体
1890
+ class RestartApplicationPodRequest < TencentCloud::Common::AbstractModel
1891
+ # @param EnvironmentId: 环境id
1892
+ # @type EnvironmentId: String
1893
+ # @param ApplicationId: 应用id
1894
+ # @type ApplicationId: String
1895
+ # @param PodName: 名字
1896
+ # @type PodName: String
1897
+ # @param Limit: 单页条数
1898
+ # @type Limit: Integer
1899
+ # @param Offset: 分页下标
1900
+ # @type Offset: Integer
1901
+ # @param Status: pod状态
1902
+ # @type Status: String
1903
+ # @param SourceChannel: 来源渠道
1904
+ # @type SourceChannel: Integer
1905
+
1906
+ attr_accessor :EnvironmentId, :ApplicationId, :PodName, :Limit, :Offset, :Status, :SourceChannel
1907
+
1908
+ def initialize(environmentid=nil, applicationid=nil, podname=nil, limit=nil, offset=nil, status=nil, sourcechannel=nil)
1909
+ @EnvironmentId = environmentid
1910
+ @ApplicationId = applicationid
1911
+ @PodName = podname
1912
+ @Limit = limit
1913
+ @Offset = offset
1914
+ @Status = status
1915
+ @SourceChannel = sourcechannel
1916
+ end
1917
+
1918
+ def deserialize(params)
1919
+ @EnvironmentId = params['EnvironmentId']
1920
+ @ApplicationId = params['ApplicationId']
1921
+ @PodName = params['PodName']
1922
+ @Limit = params['Limit']
1923
+ @Offset = params['Offset']
1924
+ @Status = params['Status']
1925
+ @SourceChannel = params['SourceChannel']
1926
+ end
1927
+ end
1928
+
1929
+ # RestartApplicationPod返回参数结构体
1930
+ class RestartApplicationPodResponse < TencentCloud::Common::AbstractModel
1931
+ # @param Result: 返回结果
1932
+ # 注意:此字段可能返回 null,表示取不到有效值。
1933
+ # @type Result: Boolean
1934
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1935
+ # @type RequestId: String
1936
+
1937
+ attr_accessor :Result, :RequestId
1938
+
1939
+ def initialize(result=nil, requestid=nil)
1940
+ @Result = result
1941
+ @RequestId = requestid
1942
+ end
1943
+
1944
+ def deserialize(params)
1945
+ @Result = params['Result']
1946
+ @RequestId = params['RequestId']
1947
+ end
1948
+ end
1949
+
1950
+ # ResumeDeployApplication请求参数结构体
1951
+ class ResumeDeployApplicationRequest < TencentCloud::Common::AbstractModel
1952
+ # @param ApplicationId: 需要开始下一批次的服务id
1953
+ # @type ApplicationId: String
1954
+ # @param EnvironmentId: 环境id
1955
+ # @type EnvironmentId: String
1956
+
1957
+ attr_accessor :ApplicationId, :EnvironmentId
1958
+
1959
+ def initialize(applicationid=nil, environmentid=nil)
1960
+ @ApplicationId = applicationid
1961
+ @EnvironmentId = environmentid
1962
+ end
1963
+
1964
+ def deserialize(params)
1965
+ @ApplicationId = params['ApplicationId']
1966
+ @EnvironmentId = params['EnvironmentId']
1967
+ end
1968
+ end
1969
+
1970
+ # ResumeDeployApplication返回参数结构体
1971
+ class ResumeDeployApplicationResponse < TencentCloud::Common::AbstractModel
1972
+ # @param Result: 是否成功
1973
+ # @type Result: Boolean
1974
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1975
+ # @type RequestId: String
1976
+
1977
+ attr_accessor :Result, :RequestId
1978
+
1979
+ def initialize(result=nil, requestid=nil)
1980
+ @Result = result
1981
+ @RequestId = requestid
1982
+ end
1983
+
1984
+ def deserialize(params)
1985
+ @Result = params['Result']
1986
+ @RequestId = params['RequestId']
1987
+ end
1988
+ end
1989
+
1990
+ # RevertDeployApplication请求参数结构体
1991
+ class RevertDeployApplicationRequest < TencentCloud::Common::AbstractModel
1992
+ # @param ApplicationId: 需要回滚的服务id
1993
+ # @type ApplicationId: String
1994
+ # @param EnvironmentId: 需要回滚的服务所在环境id
1995
+ # @type EnvironmentId: String
1996
+
1997
+ attr_accessor :ApplicationId, :EnvironmentId
1998
+
1999
+ def initialize(applicationid=nil, environmentid=nil)
2000
+ @ApplicationId = applicationid
2001
+ @EnvironmentId = environmentid
2002
+ end
2003
+
2004
+ def deserialize(params)
2005
+ @ApplicationId = params['ApplicationId']
2006
+ @EnvironmentId = params['EnvironmentId']
2007
+ end
2008
+ end
2009
+
2010
+ # RevertDeployApplication返回参数结构体
2011
+ class RevertDeployApplicationResponse < TencentCloud::Common::AbstractModel
2012
+ # @param Result: 是否成功
2013
+ # @type Result: Boolean
2014
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2015
+ # @type RequestId: String
2016
+
2017
+ attr_accessor :Result, :RequestId
2018
+
2019
+ def initialize(result=nil, requestid=nil)
2020
+ @Result = result
2021
+ @RequestId = requestid
2022
+ end
2023
+
2024
+ def deserialize(params)
2025
+ @Result = params['Result']
2026
+ @RequestId = params['RequestId']
2027
+ end
2028
+ end
2029
+
2030
+ # 应用实例
2031
+ class RunVersionPod < TencentCloud::Common::AbstractModel
2032
+ # @param Webshell: shell地址
2033
+ # @type Webshell: String
2034
+ # @param PodId: pod的id
2035
+ # @type PodId: String
2036
+ # @param Status: 状态
2037
+ # @type Status: String
2038
+ # @param CreateTime: 创建时间
2039
+ # @type CreateTime: String
2040
+ # @param PodIp: 实例的ip
2041
+ # @type PodIp: String
2042
+ # @param Zone: 可用区
2043
+ # 注意:此字段可能返回 null,表示取不到有效值。
2044
+ # @type Zone: String
2045
+ # @param DeployVersion: 部署版本
2046
+ # 注意:此字段可能返回 null,表示取不到有效值。
2047
+ # @type DeployVersion: String
2048
+ # @param RestartCount: 重启次数
2049
+ # 注意:此字段可能返回 null,表示取不到有效值。
2050
+ # @type RestartCount: Integer
2051
+ # @param Ready: pod是否就绪
2052
+ # 注意:此字段可能返回 null,表示取不到有效值。
2053
+ # @type Ready: Boolean
2054
+ # @param ContainerState: 容器状态
2055
+ # 注意:此字段可能返回 null,表示取不到有效值。
2056
+ # @type ContainerState: String
2057
+
2058
+ attr_accessor :Webshell, :PodId, :Status, :CreateTime, :PodIp, :Zone, :DeployVersion, :RestartCount, :Ready, :ContainerState
2059
+
2060
+ def initialize(webshell=nil, podid=nil, status=nil, createtime=nil, podip=nil, zone=nil, deployversion=nil, restartcount=nil, ready=nil, containerstate=nil)
2061
+ @Webshell = webshell
2062
+ @PodId = podid
2063
+ @Status = status
2064
+ @CreateTime = createtime
2065
+ @PodIp = podip
2066
+ @Zone = zone
2067
+ @DeployVersion = deployversion
2068
+ @RestartCount = restartcount
2069
+ @Ready = ready
2070
+ @ContainerState = containerstate
2071
+ end
2072
+
2073
+ def deserialize(params)
2074
+ @Webshell = params['Webshell']
2075
+ @PodId = params['PodId']
2076
+ @Status = params['Status']
2077
+ @CreateTime = params['CreateTime']
2078
+ @PodIp = params['PodIp']
2079
+ @Zone = params['Zone']
2080
+ @DeployVersion = params['DeployVersion']
2081
+ @RestartCount = params['RestartCount']
2082
+ @Ready = params['Ready']
2083
+ @ContainerState = params['ContainerState']
2084
+ end
2085
+ end
2086
+
2087
+ # 存储卷配置
2088
+ class StorageConf < TencentCloud::Common::AbstractModel
2089
+ # @param StorageVolName: 存储卷名称
2090
+ # @type StorageVolName: String
2091
+ # @param StorageVolPath: 存储卷路径
2092
+ # @type StorageVolPath: String
2093
+ # @param StorageVolIp: 存储卷IP
2094
+ # 注意:此字段可能返回 null,表示取不到有效值。
2095
+ # @type StorageVolIp: String
2096
+
2097
+ attr_accessor :StorageVolName, :StorageVolPath, :StorageVolIp
2098
+
2099
+ def initialize(storagevolname=nil, storagevolpath=nil, storagevolip=nil)
2100
+ @StorageVolName = storagevolname
2101
+ @StorageVolPath = storagevolpath
2102
+ @StorageVolIp = storagevolip
2103
+ end
2104
+
2105
+ def deserialize(params)
2106
+ @StorageVolName = params['StorageVolName']
2107
+ @StorageVolPath = params['StorageVolPath']
2108
+ @StorageVolIp = params['StorageVolIp']
2109
+ end
2110
+ end
2111
+
2112
+ # 数据卷挂载信息
2113
+ class StorageMountConf < TencentCloud::Common::AbstractModel
2114
+ # @param VolumeName: 数据卷名
2115
+ # @type VolumeName: String
2116
+ # @param MountPath: 数据卷绑定路径
2117
+ # @type MountPath: String
2118
+
2119
+ attr_accessor :VolumeName, :MountPath
2120
+
2121
+ def initialize(volumename=nil, mountpath=nil)
2122
+ @VolumeName = volumename
2123
+ @MountPath = mountpath
2124
+ end
2125
+
2126
+ def deserialize(params)
2127
+ @VolumeName = params['VolumeName']
2128
+ @MountPath = params['MountPath']
2129
+ end
2130
+ end
2131
+
2132
+ # 分批发布详情
2133
+ class TemDeployApplicationDetailInfo < TencentCloud::Common::AbstractModel
2134
+ # @param DeployStrategyConf: 分批发布策略
2135
+ # 注意:此字段可能返回 null,表示取不到有效值。
2136
+ # @type DeployStrategyConf: :class:`Tencentcloud::Tem.v20210701.models.DeployStrategyConf`
2137
+ # @param StartTime: 开始时间
2138
+ # 注意:此字段可能返回 null,表示取不到有效值。
2139
+ # @type StartTime: String
2140
+ # @param EndTime: 结束时间
2141
+ # 注意:此字段可能返回 null,表示取不到有效值。
2142
+ # @type EndTime: String
2143
+ # @param Status: 当前状态
2144
+ # 注意:此字段可能返回 null,表示取不到有效值。
2145
+ # @type Status: String
2146
+ # @param BetaBatchDetail: beta分批详情
2147
+ # 注意:此字段可能返回 null,表示取不到有效值。
2148
+ # @type BetaBatchDetail: :class:`Tencentcloud::Tem.v20210701.models.DeployServiceBatchDetail`
2149
+ # @param OtherBatchDetail: 其他分批详情
2150
+ # 注意:此字段可能返回 null,表示取不到有效值。
2151
+ # @type OtherBatchDetail: Array
2152
+ # @param OldVersionPodList: 老版本pod列表
2153
+ # 注意:此字段可能返回 null,表示取不到有效值。
2154
+ # @type OldVersionPodList: :class:`Tencentcloud::Tem.v20210701.models.DescribeRunPodPage`
2155
+ # @param CurrentBatchIndex: 当前批次id
2156
+ # 注意:此字段可能返回 null,表示取不到有效值。
2157
+ # @type CurrentBatchIndex: Integer
2158
+ # @param ErrorMessage: 错误原因
2159
+ # 注意:此字段可能返回 null,表示取不到有效值。
2160
+ # @type ErrorMessage: String
2161
+ # @param CurrentBatchStatus: 当前批次状态
2162
+ # 注意:此字段可能返回 null,表示取不到有效值。
2163
+ # @type CurrentBatchStatus: String
2164
+ # @param NewDeployVersion: 新版本version
2165
+ # 注意:此字段可能返回 null,表示取不到有效值。
2166
+ # @type NewDeployVersion: String
2167
+ # @param OldDeployVersion: 旧版本version
2168
+ # 注意:此字段可能返回 null,表示取不到有效值。
2169
+ # @type OldDeployVersion: String
2170
+ # @param NewVersionPackageInfo: 包名称
2171
+ # 注意:此字段可能返回 null,表示取不到有效值。
2172
+ # @type NewVersionPackageInfo: String
2173
+ # @param NextBatchStartTime: 下一批次开始时间
2174
+ # 注意:此字段可能返回 null,表示取不到有效值。
2175
+ # @type NextBatchStartTime: Integer
2176
+
2177
+ attr_accessor :DeployStrategyConf, :StartTime, :EndTime, :Status, :BetaBatchDetail, :OtherBatchDetail, :OldVersionPodList, :CurrentBatchIndex, :ErrorMessage, :CurrentBatchStatus, :NewDeployVersion, :OldDeployVersion, :NewVersionPackageInfo, :NextBatchStartTime
2178
+
2179
+ def initialize(deploystrategyconf=nil, starttime=nil, endtime=nil, status=nil, betabatchdetail=nil, otherbatchdetail=nil, oldversionpodlist=nil, currentbatchindex=nil, errormessage=nil, currentbatchstatus=nil, newdeployversion=nil, olddeployversion=nil, newversionpackageinfo=nil, nextbatchstarttime=nil)
2180
+ @DeployStrategyConf = deploystrategyconf
2181
+ @StartTime = starttime
2182
+ @EndTime = endtime
2183
+ @Status = status
2184
+ @BetaBatchDetail = betabatchdetail
2185
+ @OtherBatchDetail = otherbatchdetail
2186
+ @OldVersionPodList = oldversionpodlist
2187
+ @CurrentBatchIndex = currentbatchindex
2188
+ @ErrorMessage = errormessage
2189
+ @CurrentBatchStatus = currentbatchstatus
2190
+ @NewDeployVersion = newdeployversion
2191
+ @OldDeployVersion = olddeployversion
2192
+ @NewVersionPackageInfo = newversionpackageinfo
2193
+ @NextBatchStartTime = nextbatchstarttime
2194
+ end
2195
+
2196
+ def deserialize(params)
2197
+ unless params['DeployStrategyConf'].nil?
2198
+ @DeployStrategyConf = DeployStrategyConf.new
2199
+ @DeployStrategyConf.deserialize(params['DeployStrategyConf'])
2200
+ end
2201
+ @StartTime = params['StartTime']
2202
+ @EndTime = params['EndTime']
2203
+ @Status = params['Status']
2204
+ unless params['BetaBatchDetail'].nil?
2205
+ @BetaBatchDetail = DeployServiceBatchDetail.new
2206
+ @BetaBatchDetail.deserialize(params['BetaBatchDetail'])
2207
+ end
2208
+ unless params['OtherBatchDetail'].nil?
2209
+ @OtherBatchDetail = []
2210
+ params['OtherBatchDetail'].each do |i|
2211
+ deployservicebatchdetail_tmp = DeployServiceBatchDetail.new
2212
+ deployservicebatchdetail_tmp.deserialize(i)
2213
+ @OtherBatchDetail << deployservicebatchdetail_tmp
2214
+ end
2215
+ end
2216
+ unless params['OldVersionPodList'].nil?
2217
+ @OldVersionPodList = DescribeRunPodPage.new
2218
+ @OldVersionPodList.deserialize(params['OldVersionPodList'])
2219
+ end
2220
+ @CurrentBatchIndex = params['CurrentBatchIndex']
2221
+ @ErrorMessage = params['ErrorMessage']
2222
+ @CurrentBatchStatus = params['CurrentBatchStatus']
2223
+ @NewDeployVersion = params['NewDeployVersion']
2224
+ @OldDeployVersion = params['OldDeployVersion']
2225
+ @NewVersionPackageInfo = params['NewVersionPackageInfo']
2226
+ @NextBatchStartTime = params['NextBatchStartTime']
2227
+ end
2228
+ end
2229
+
2230
+ # 命名空间对象
2231
+ class TemNamespaceInfo < TencentCloud::Common::AbstractModel
2232
+ # @param EnvironmentId: 环境id
2233
+ # @type EnvironmentId: String
2234
+ # @param Channel: 渠道
2235
+ # @type Channel: String
2236
+ # @param EnvironmentName: 环境名称
2237
+ # @type EnvironmentName: String
2238
+ # @param Region: 区域名称
2239
+ # @type Region: String
2240
+ # @param Description: 环境描述
2241
+ # 注意:此字段可能返回 null,表示取不到有效值。
2242
+ # @type Description: String
2243
+ # @param Status: 状态,1:已销毁;0:正常
2244
+ # @type Status: Integer
2245
+ # @param Vpc: vpc网络
2246
+ # @type Vpc: String
2247
+ # @param CreateDate: 创建时间
2248
+ # @type CreateDate: String
2249
+ # @param ModifyDate: 修改时间
2250
+ # @type ModifyDate: String
2251
+ # @param Modifier: 修改人
2252
+ # @type Modifier: String
2253
+ # @param Creator: 创建人
2254
+ # @type Creator: String
2255
+ # @param ApplicationNum: 应用数
2256
+ # @type ApplicationNum: Integer
2257
+ # @param RunInstancesNum: 运行实例数
2258
+ # @type RunInstancesNum: Integer
2259
+ # @param SubnetId: 子网络
2260
+ # @type SubnetId: String
2261
+ # @param ClusterStatus: 环境集群 status
2262
+ # @type ClusterStatus: String
2263
+ # @param EnableTswTraceService: 是否开启tsw
2264
+ # @type EnableTswTraceService: Boolean
2265
+
2266
+ attr_accessor :EnvironmentId, :Channel, :EnvironmentName, :Region, :Description, :Status, :Vpc, :CreateDate, :ModifyDate, :Modifier, :Creator, :ApplicationNum, :RunInstancesNum, :SubnetId, :ClusterStatus, :EnableTswTraceService
2267
+
2268
+ def initialize(environmentid=nil, channel=nil, environmentname=nil, region=nil, description=nil, status=nil, vpc=nil, createdate=nil, modifydate=nil, modifier=nil, creator=nil, applicationnum=nil, runinstancesnum=nil, subnetid=nil, clusterstatus=nil, enabletswtraceservice=nil)
2269
+ @EnvironmentId = environmentid
2270
+ @Channel = channel
2271
+ @EnvironmentName = environmentname
2272
+ @Region = region
2273
+ @Description = description
2274
+ @Status = status
2275
+ @Vpc = vpc
2276
+ @CreateDate = createdate
2277
+ @ModifyDate = modifydate
2278
+ @Modifier = modifier
2279
+ @Creator = creator
2280
+ @ApplicationNum = applicationnum
2281
+ @RunInstancesNum = runinstancesnum
2282
+ @SubnetId = subnetid
2283
+ @ClusterStatus = clusterstatus
2284
+ @EnableTswTraceService = enabletswtraceservice
2285
+ end
2286
+
2287
+ def deserialize(params)
2288
+ @EnvironmentId = params['EnvironmentId']
2289
+ @Channel = params['Channel']
2290
+ @EnvironmentName = params['EnvironmentName']
2291
+ @Region = params['Region']
2292
+ @Description = params['Description']
2293
+ @Status = params['Status']
2294
+ @Vpc = params['Vpc']
2295
+ @CreateDate = params['CreateDate']
2296
+ @ModifyDate = params['ModifyDate']
2297
+ @Modifier = params['Modifier']
2298
+ @Creator = params['Creator']
2299
+ @ApplicationNum = params['ApplicationNum']
2300
+ @RunInstancesNum = params['RunInstancesNum']
2301
+ @SubnetId = params['SubnetId']
2302
+ @ClusterStatus = params['ClusterStatus']
2303
+ @EnableTswTraceService = params['EnableTswTraceService']
2304
+ end
2305
+ end
2306
+
2307
+ end
2308
+ end
2309
+ end
2310
+