tencentcloud-sdk-tcbr 1.0.340 → 1.0.341

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 481db27934e7190ab2642259e6eb346f93c97a3b
4
- data.tar.gz: 1dbee694fcb5ae692e9d01b17ec95f38b8d33233
3
+ metadata.gz: ba1cc6b1b829d4ef4719e267f5c7d2aa2f5d60ea
4
+ data.tar.gz: f016645fd94b04905fa8ad322eb5dc787c249050
5
5
  SHA512:
6
- metadata.gz: 1d00355c2f02998fc8b6af1e49ff7cb8c447717c13ef680479d33a8fabadc6e53d336377c5a82f50c51402d239edd5b093a2769930035aa7a5e23375a99da0aa
7
- data.tar.gz: f9224f65b33b44bccd42373daa74b87bf282c8a9475b27faaf513fb1764cca33bae01246ceff43acac84fe577f9a97986407095e9ec36e8c19d009df6f2cfad8
6
+ metadata.gz: 8bb069322b03ec64a23d5f89486fcc4a192659c34b330df324139b147c89fa0fe716f57c65bbc4d3566dbe408a257b8779c13e40cc8b883c256dac469dcf362c
7
+ data.tar.gz: 22670cceefce4993e288797a43adaeba5b035364db87af021a4131549a4b9a833a3ac568b7341efbb4158e6bb833007ceb9dd12bbde76f5ed72d2b3692a8247d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.340
1
+ 1.0.341
@@ -173,6 +173,30 @@ module TencentCloud
173
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
174
  end
175
175
 
176
+ # 查询服务管理任务信息
177
+
178
+ # @param request: Request instance for DescribeServerManageTask.
179
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::DescribeServerManageTaskRequest`
180
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::DescribeServerManageTaskResponse`
181
+ def DescribeServerManageTask(request)
182
+ body = send_request('DescribeServerManageTask', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeServerManageTaskResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
176
200
  # 操作发布单
177
201
 
178
202
  # @param request: Request instance for OperateServerManage.
@@ -466,6 +466,61 @@ module TencentCloud
466
466
  end
467
467
  end
468
468
 
469
+ # DescribeServerManageTask请求参数结构体
470
+ class DescribeServerManageTaskRequest < TencentCloud::Common::AbstractModel
471
+ # @param EnvId: 环境Id
472
+ # @type EnvId: String
473
+ # @param ServerName: 服务名
474
+ # @type ServerName: String
475
+ # @param TaskId: 任务Id
476
+ # @type TaskId: Integer
477
+ # @param OperatorRemark: 操作标识
478
+ # @type OperatorRemark: String
479
+
480
+ attr_accessor :EnvId, :ServerName, :TaskId, :OperatorRemark
481
+
482
+ def initialize(envid=nil, servername=nil, taskid=nil, operatorremark=nil)
483
+ @EnvId = envid
484
+ @ServerName = servername
485
+ @TaskId = taskid
486
+ @OperatorRemark = operatorremark
487
+ end
488
+
489
+ def deserialize(params)
490
+ @EnvId = params['EnvId']
491
+ @ServerName = params['ServerName']
492
+ @TaskId = params['TaskId']
493
+ @OperatorRemark = params['OperatorRemark']
494
+ end
495
+ end
496
+
497
+ # DescribeServerManageTask返回参数结构体
498
+ class DescribeServerManageTaskResponse < TencentCloud::Common::AbstractModel
499
+ # @param IsExist: 是否存在
500
+ # @type IsExist: Boolean
501
+ # @param Task: 任务信息
502
+ # @type Task: :class:`Tencentcloud::Tcbr.v20220217.models.ServerManageTaskInfo`
503
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
504
+ # @type RequestId: String
505
+
506
+ attr_accessor :IsExist, :Task, :RequestId
507
+
508
+ def initialize(isexist=nil, task=nil, requestid=nil)
509
+ @IsExist = isexist
510
+ @Task = task
511
+ @RequestId = requestid
512
+ end
513
+
514
+ def deserialize(params)
515
+ @IsExist = params['IsExist']
516
+ unless params['Task'].nil?
517
+ @Task = ServerManageTaskInfo.new
518
+ @Task.deserialize(params['Task'])
519
+ end
520
+ @RequestId = params['RequestId']
521
+ end
522
+ end
523
+
469
524
  # 环境基础信息
470
525
  class EnvBaseInfo < TencentCloud::Common::AbstractModel
471
526
  # @param EnvId: 环境Id
@@ -1032,6 +1087,89 @@ module TencentCloud
1032
1087
  end
1033
1088
  end
1034
1089
 
1090
+ # 服务管理任务信息
1091
+ class ServerManageTaskInfo < TencentCloud::Common::AbstractModel
1092
+ # @param Id: 任务Id
1093
+ # @type Id: Integer
1094
+ # @param EnvId: 环境Id
1095
+ # @type EnvId: String
1096
+ # @param ServerName: 服务名
1097
+ # @type ServerName: String
1098
+ # @param CreateTime: 创建时间
1099
+ # @type CreateTime: String
1100
+ # @param ChangeType: 变更类型
1101
+ # @type ChangeType: String
1102
+ # @param ReleaseType: 发布类型
1103
+ # @type ReleaseType: String
1104
+ # @param DeployType: 部署类型
1105
+ # @type DeployType: String
1106
+ # @param PreVersionName: 上一个版本名
1107
+ # @type PreVersionName: String
1108
+ # @param VersionName: 版本名
1109
+ # @type VersionName: String
1110
+ # @param PipelineId: 流水线Id
1111
+ # @type PipelineId: Integer
1112
+ # @param PipelineTaskId: 流水线任务Id
1113
+ # @type PipelineTaskId: Integer
1114
+ # @param ReleaseId: 发布单Id
1115
+ # @type ReleaseId: Integer
1116
+ # @param Status: 状态
1117
+ # @type Status: String
1118
+ # @param Steps: 步骤信息
1119
+ # @type Steps: Array
1120
+ # @param FailReason: 失败原因
1121
+ # @type FailReason: String
1122
+ # @param OperatorRemark: 操作标识
1123
+ # @type OperatorRemark: String
1124
+
1125
+ attr_accessor :Id, :EnvId, :ServerName, :CreateTime, :ChangeType, :ReleaseType, :DeployType, :PreVersionName, :VersionName, :PipelineId, :PipelineTaskId, :ReleaseId, :Status, :Steps, :FailReason, :OperatorRemark
1126
+
1127
+ def initialize(id=nil, envid=nil, servername=nil, createtime=nil, changetype=nil, releasetype=nil, deploytype=nil, preversionname=nil, versionname=nil, pipelineid=nil, pipelinetaskid=nil, releaseid=nil, status=nil, steps=nil, failreason=nil, operatorremark=nil)
1128
+ @Id = id
1129
+ @EnvId = envid
1130
+ @ServerName = servername
1131
+ @CreateTime = createtime
1132
+ @ChangeType = changetype
1133
+ @ReleaseType = releasetype
1134
+ @DeployType = deploytype
1135
+ @PreVersionName = preversionname
1136
+ @VersionName = versionname
1137
+ @PipelineId = pipelineid
1138
+ @PipelineTaskId = pipelinetaskid
1139
+ @ReleaseId = releaseid
1140
+ @Status = status
1141
+ @Steps = steps
1142
+ @FailReason = failreason
1143
+ @OperatorRemark = operatorremark
1144
+ end
1145
+
1146
+ def deserialize(params)
1147
+ @Id = params['Id']
1148
+ @EnvId = params['EnvId']
1149
+ @ServerName = params['ServerName']
1150
+ @CreateTime = params['CreateTime']
1151
+ @ChangeType = params['ChangeType']
1152
+ @ReleaseType = params['ReleaseType']
1153
+ @DeployType = params['DeployType']
1154
+ @PreVersionName = params['PreVersionName']
1155
+ @VersionName = params['VersionName']
1156
+ @PipelineId = params['PipelineId']
1157
+ @PipelineTaskId = params['PipelineTaskId']
1158
+ @ReleaseId = params['ReleaseId']
1159
+ @Status = params['Status']
1160
+ unless params['Steps'].nil?
1161
+ @Steps = []
1162
+ params['Steps'].each do |i|
1163
+ taskstepinfo_tmp = TaskStepInfo.new
1164
+ taskstepinfo_tmp.deserialize(i)
1165
+ @Steps << taskstepinfo_tmp
1166
+ end
1167
+ end
1168
+ @FailReason = params['FailReason']
1169
+ @OperatorRemark = params['OperatorRemark']
1170
+ end
1171
+ end
1172
+
1035
1173
  # 静态CDN资源信息
1036
1174
  class StaticStorageInfo < TencentCloud::Common::AbstractModel
1037
1175
  # @param StaticDomain: 静态CDN域名
@@ -1113,6 +1251,45 @@ module TencentCloud
1113
1251
  end
1114
1252
  end
1115
1253
 
1254
+ # 任务步骤信息
1255
+ class TaskStepInfo < TencentCloud::Common::AbstractModel
1256
+ # @param Name: 步骤名
1257
+ # @type Name: String
1258
+ # @param Status: 未启动:"todo"
1259
+ # 运行中:"running"
1260
+ # 失败:"failed"
1261
+ # 成功结束:"finished"
1262
+ # @type Status: String
1263
+ # @param StartTime: 开始时间
1264
+ # @type StartTime: String
1265
+ # @param EndTime: 结束时间
1266
+ # @type EndTime: String
1267
+ # @param CostTime: 消耗时间:秒
1268
+ # @type CostTime: Integer
1269
+ # @param FailReason: 失败原因
1270
+ # @type FailReason: String
1271
+
1272
+ attr_accessor :Name, :Status, :StartTime, :EndTime, :CostTime, :FailReason
1273
+
1274
+ def initialize(name=nil, status=nil, starttime=nil, endtime=nil, costtime=nil, failreason=nil)
1275
+ @Name = name
1276
+ @Status = status
1277
+ @StartTime = starttime
1278
+ @EndTime = endtime
1279
+ @CostTime = costtime
1280
+ @FailReason = failreason
1281
+ end
1282
+
1283
+ def deserialize(params)
1284
+ @Name = params['Name']
1285
+ @Status = params['Status']
1286
+ @StartTime = params['StartTime']
1287
+ @EndTime = params['EndTime']
1288
+ @CostTime = params['CostTime']
1289
+ @FailReason = params['FailReason']
1290
+ end
1291
+ end
1292
+
1116
1293
  # UpdateCloudRunServer请求参数结构体
1117
1294
  class UpdateCloudRunServerRequest < TencentCloud::Common::AbstractModel
1118
1295
  # @param EnvId: 环境Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tcbr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.340
4
+ version: 1.0.341
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-22 00:00:00.000000000 Z
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common