tencentcloud-sdk-tcbr 1.0.335

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 20997f7b8ce9efb4d97531ea74d011f66f199a39
4
+ data.tar.gz: beeb46afcc709421ff9e15dd2c5871a17e61dc7a
5
+ SHA512:
6
+ metadata.gz: 097ec6ad3bff855a7979318bf5ea0e4798927ac6981ab610ad645fa21208e982575865d5a25aad6f3ce7340965aec2fa5b278220c15211d460c3f5f7fab66c64
7
+ data.tar.gz: 9341b796ddf8d9458f6172ee690057b32dfee473b41d020fff004a33803cc2fb8cb36d930c7c30ba5f0aed5afa54d1bd6a29c4ee733801a08b853014bed7243a
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.335
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20220217/client'
6
+ require_relative 'v20220217/models'
7
+
8
+ module TencentCloud
9
+ module Tcbr
10
+ end
11
+ end
@@ -0,0 +1,204 @@
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
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Tcbr
21
+ module V20220217
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-02-17'
26
+ api_endpoint = 'tcbr.tencentcloudapi.com'
27
+ sdk_version = 'TCBR_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 创建云托管环境,并开通资源。
33
+
34
+ # @param request: Request instance for CreateCloudRunEnv.
35
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::CreateCloudRunEnvRequest`
36
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::CreateCloudRunEnvResponse`
37
+ def CreateCloudRunEnv(request)
38
+ body = send_request('CreateCloudRunEnv', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateCloudRunEnvResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 创建云托管服务接口
57
+
58
+ # @param request: Request instance for CreateCloudRunServer.
59
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::CreateCloudRunServerRequest`
60
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::CreateCloudRunServerResponse`
61
+ def CreateCloudRunServer(request)
62
+ body = send_request('CreateCloudRunServer', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateCloudRunServerResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 获取环境列表,含环境下的各个资源信息。尤其是各资源的唯一标识,是请求各资源的关键参数
81
+
82
+ # @param request: Request instance for DescribeCloudRunEnvs.
83
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::DescribeCloudRunEnvsRequest`
84
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::DescribeCloudRunEnvsResponse`
85
+ def DescribeCloudRunEnvs(request)
86
+ body = send_request('DescribeCloudRunEnvs', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeCloudRunEnvsResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 查询云托管服务详情
105
+
106
+ # @param request: Request instance for DescribeCloudRunServerDetail.
107
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::DescribeCloudRunServerDetailRequest`
108
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::DescribeCloudRunServerDetailResponse`
109
+ def DescribeCloudRunServerDetail(request)
110
+ body = send_request('DescribeCloudRunServerDetail', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeCloudRunServerDetailResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 查询云托管服务列表接口
129
+
130
+ # @param request: Request instance for DescribeCloudRunServers.
131
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::DescribeCloudRunServersRequest`
132
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::DescribeCloudRunServersResponse`
133
+ def DescribeCloudRunServers(request)
134
+ body = send_request('DescribeCloudRunServers', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeCloudRunServersResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 查询环境基础信息
153
+
154
+ # @param request: Request instance for DescribeEnvBaseInfo.
155
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::DescribeEnvBaseInfoRequest`
156
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::DescribeEnvBaseInfoResponse`
157
+ def DescribeEnvBaseInfo(request)
158
+ body = send_request('DescribeEnvBaseInfo', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeEnvBaseInfoResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 更新云托管服务
177
+
178
+ # @param request: Request instance for UpdateCloudRunServer.
179
+ # @type request: :class:`Tencentcloud::tcbr::V20220217::UpdateCloudRunServerRequest`
180
+ # @rtype: :class:`Tencentcloud::tcbr::V20220217::UpdateCloudRunServerResponse`
181
+ def UpdateCloudRunServer(request)
182
+ body = send_request('UpdateCloudRunServer', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = UpdateCloudRunServerResponse.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
+
200
+
201
+ end
202
+ end
203
+ end
204
+ end
@@ -0,0 +1,1046 @@
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 Tcbr
19
+ module V20220217
20
+ # BuildPacks信息
21
+ class BuildPacksInfo < TencentCloud::Common::AbstractModel
22
+ # @param BaseImage: 基础镜像
23
+ # @type BaseImage: String
24
+ # @param EntryPoint: 启动命令
25
+ # @type EntryPoint: String
26
+ # @param RepoLanguage: 语言
27
+ # @type RepoLanguage: String
28
+ # @param UploadFilename: 上传文件名
29
+ # @type UploadFilename: String
30
+
31
+ attr_accessor :BaseImage, :EntryPoint, :RepoLanguage, :UploadFilename
32
+
33
+ def initialize(baseimage=nil, entrypoint=nil, repolanguage=nil, uploadfilename=nil)
34
+ @BaseImage = baseimage
35
+ @EntryPoint = entrypoint
36
+ @RepoLanguage = repolanguage
37
+ @UploadFilename = uploadfilename
38
+ end
39
+
40
+ def deserialize(params)
41
+ @BaseImage = params['BaseImage']
42
+ @EntryPoint = params['EntryPoint']
43
+ @RepoLanguage = params['RepoLanguage']
44
+ @UploadFilename = params['UploadFilename']
45
+ end
46
+ end
47
+
48
+ # cls日志信息
49
+ class ClsInfo < TencentCloud::Common::AbstractModel
50
+ # @param ClsRegion: cls所属地域
51
+ # @type ClsRegion: String
52
+ # @param ClsLogsetId: cls日志集ID
53
+ # @type ClsLogsetId: String
54
+ # @param ClsTopicId: cls日志主题ID
55
+ # @type ClsTopicId: String
56
+ # @param CreateTime: 创建时间
57
+ # @type CreateTime: String
58
+
59
+ attr_accessor :ClsRegion, :ClsLogsetId, :ClsTopicId, :CreateTime
60
+
61
+ def initialize(clsregion=nil, clslogsetid=nil, clstopicid=nil, createtime=nil)
62
+ @ClsRegion = clsregion
63
+ @ClsLogsetId = clslogsetid
64
+ @ClsTopicId = clstopicid
65
+ @CreateTime = createtime
66
+ end
67
+
68
+ def deserialize(params)
69
+ @ClsRegion = params['ClsRegion']
70
+ @ClsLogsetId = params['ClsLogsetId']
71
+ @ClsTopicId = params['ClsTopicId']
72
+ @CreateTime = params['CreateTime']
73
+ end
74
+ end
75
+
76
+ # CreateCloudRunEnv请求参数结构体
77
+ class CreateCloudRunEnvRequest < TencentCloud::Common::AbstractModel
78
+ # @param PackageType: Trial,Standard,Professional,Enterprise
79
+ # @type PackageType: String
80
+ # @param Alias: 环境别名,要以a-z开头,不能包含 a-z,0-9,- 以外的字符
81
+ # @type Alias: String
82
+ # @param FreeQuota: 用户享有的免费额度级别,目前只能为“basic”,不传该字段或该字段为空,标识不享受免费额度。
83
+ # @type FreeQuota: String
84
+ # @param Flag: 订单标记。建议使用方统一转大小写之后再判断。
85
+ # QuickStart:快速启动来源
86
+ # Activity:活动来源
87
+ # @type Flag: String
88
+ # @param VpcId: 私有网络Id
89
+ # @type VpcId: String
90
+ # @param SubNetIds: 子网列表
91
+ # @type SubNetIds: Array
92
+ # @param ReqKey: 请求key 用于防重
93
+ # @type ReqKey: String
94
+ # @param Source: 来源:wechat | cloud
95
+ # @type Source: String
96
+ # @param Channel: 渠道:wechat | cloud
97
+ # @type Channel: String
98
+
99
+ attr_accessor :PackageType, :Alias, :FreeQuota, :Flag, :VpcId, :SubNetIds, :ReqKey, :Source, :Channel
100
+
101
+ def initialize(packagetype=nil, _alias=nil, freequota=nil, flag=nil, vpcid=nil, subnetids=nil, reqkey=nil, source=nil, channel=nil)
102
+ @PackageType = packagetype
103
+ @Alias = _alias
104
+ @FreeQuota = freequota
105
+ @Flag = flag
106
+ @VpcId = vpcid
107
+ @SubNetIds = subnetids
108
+ @ReqKey = reqkey
109
+ @Source = source
110
+ @Channel = channel
111
+ end
112
+
113
+ def deserialize(params)
114
+ @PackageType = params['PackageType']
115
+ @Alias = params['Alias']
116
+ @FreeQuota = params['FreeQuota']
117
+ @Flag = params['Flag']
118
+ @VpcId = params['VpcId']
119
+ @SubNetIds = params['SubNetIds']
120
+ @ReqKey = params['ReqKey']
121
+ @Source = params['Source']
122
+ @Channel = params['Channel']
123
+ end
124
+ end
125
+
126
+ # CreateCloudRunEnv返回参数结构体
127
+ class CreateCloudRunEnvResponse < TencentCloud::Common::AbstractModel
128
+ # @param EnvId: 环境Id
129
+ # @type EnvId: String
130
+ # @param TranId: 后付费订单号
131
+ # @type TranId: String
132
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
133
+ # @type RequestId: String
134
+
135
+ attr_accessor :EnvId, :TranId, :RequestId
136
+
137
+ def initialize(envid=nil, tranid=nil, requestid=nil)
138
+ @EnvId = envid
139
+ @TranId = tranid
140
+ @RequestId = requestid
141
+ end
142
+
143
+ def deserialize(params)
144
+ @EnvId = params['EnvId']
145
+ @TranId = params['TranId']
146
+ @RequestId = params['RequestId']
147
+ end
148
+ end
149
+
150
+ # CreateCloudRunServer请求参数结构体
151
+ class CreateCloudRunServerRequest < TencentCloud::Common::AbstractModel
152
+ # @param EnvId: 环境Id
153
+ # @type EnvId: String
154
+ # @param ServerName: 服务名
155
+ # @type ServerName: String
156
+ # @param DeployInfo: 部署信息
157
+ # @type DeployInfo: :class:`Tencentcloud::Tcbr.v20220217.models.DeployParam`
158
+ # @param ServerConfig: 服务配置信息
159
+ # @type ServerConfig: :class:`Tencentcloud::Tcbr.v20220217.models.ServerBaseConfig`
160
+
161
+ attr_accessor :EnvId, :ServerName, :DeployInfo, :ServerConfig
162
+
163
+ def initialize(envid=nil, servername=nil, deployinfo=nil, serverconfig=nil)
164
+ @EnvId = envid
165
+ @ServerName = servername
166
+ @DeployInfo = deployinfo
167
+ @ServerConfig = serverconfig
168
+ end
169
+
170
+ def deserialize(params)
171
+ @EnvId = params['EnvId']
172
+ @ServerName = params['ServerName']
173
+ unless params['DeployInfo'].nil?
174
+ @DeployInfo = DeployParam.new
175
+ @DeployInfo.deserialize(params['DeployInfo'])
176
+ end
177
+ unless params['ServerConfig'].nil?
178
+ @ServerConfig = ServerBaseConfig.new
179
+ @ServerConfig.deserialize(params['ServerConfig'])
180
+ end
181
+ end
182
+ end
183
+
184
+ # CreateCloudRunServer返回参数结构体
185
+ class CreateCloudRunServerResponse < TencentCloud::Common::AbstractModel
186
+ # @param TaskId: 一键部署任务Id,微信云托管,暂时用不到
187
+ # @type TaskId: Integer
188
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
189
+ # @type RequestId: String
190
+
191
+ attr_accessor :TaskId, :RequestId
192
+
193
+ def initialize(taskid=nil, requestid=nil)
194
+ @TaskId = taskid
195
+ @RequestId = requestid
196
+ end
197
+
198
+ def deserialize(params)
199
+ @TaskId = params['TaskId']
200
+ @RequestId = params['RequestId']
201
+ end
202
+ end
203
+
204
+ # 数据库资源信息
205
+ class DatabasesInfo < TencentCloud::Common::AbstractModel
206
+ # @param InstanceId: 数据库唯一标识
207
+ # @type InstanceId: String
208
+ # @param Status: 状态。包含以下取值:
209
+ # <li>INITIALIZING:资源初始化中</li>
210
+ # <li>RUNNING:运行中,可正常使用的状态</li>
211
+ # <li>UNUSABLE:禁用,不可用</li>
212
+ # <li>OVERDUE:资源过期</li>
213
+ # @type Status: String
214
+ # @param Region: 所属地域。
215
+ # 当前支持ap-shanghai
216
+ # @type Region: String
217
+
218
+ attr_accessor :InstanceId, :Status, :Region
219
+
220
+ def initialize(instanceid=nil, status=nil, region=nil)
221
+ @InstanceId = instanceid
222
+ @Status = status
223
+ @Region = region
224
+ end
225
+
226
+ def deserialize(params)
227
+ @InstanceId = params['InstanceId']
228
+ @Status = params['Status']
229
+ @Region = params['Region']
230
+ end
231
+ end
232
+
233
+ # 部署参数
234
+ class DeployParam < TencentCloud::Common::AbstractModel
235
+ # @param DeployType: 部署类型:package/image/repository/pipeline/jar/war
236
+ # @type DeployType: String
237
+ # @param ImageUrl: 部署类型为image时传入
238
+ # @type ImageUrl: String
239
+ # @param PackageName: 部署类型为package时传入
240
+ # @type PackageName: String
241
+ # @param PackageVersion: 部署类型为package时传入
242
+ # @type PackageVersion: String
243
+ # @param DeployRemark: 部署备注
244
+ # @type DeployRemark: String
245
+ # @param RepoInfo: 代码仓库信息
246
+ # @type RepoInfo: :class:`Tencentcloud::Tcbr.v20220217.models.RepositoryInfo`
247
+ # @param BuildPacks: 无Dockerfile时填写
248
+ # @type BuildPacks: :class:`Tencentcloud::Tcbr.v20220217.models.BuildPacksInfo`
249
+ # @param ReleaseType: 发布类型 GRAY | FULL
250
+ # @type ReleaseType: String
251
+
252
+ attr_accessor :DeployType, :ImageUrl, :PackageName, :PackageVersion, :DeployRemark, :RepoInfo, :BuildPacks, :ReleaseType
253
+
254
+ def initialize(deploytype=nil, imageurl=nil, packagename=nil, packageversion=nil, deployremark=nil, repoinfo=nil, buildpacks=nil, releasetype=nil)
255
+ @DeployType = deploytype
256
+ @ImageUrl = imageurl
257
+ @PackageName = packagename
258
+ @PackageVersion = packageversion
259
+ @DeployRemark = deployremark
260
+ @RepoInfo = repoinfo
261
+ @BuildPacks = buildpacks
262
+ @ReleaseType = releasetype
263
+ end
264
+
265
+ def deserialize(params)
266
+ @DeployType = params['DeployType']
267
+ @ImageUrl = params['ImageUrl']
268
+ @PackageName = params['PackageName']
269
+ @PackageVersion = params['PackageVersion']
270
+ @DeployRemark = params['DeployRemark']
271
+ unless params['RepoInfo'].nil?
272
+ @RepoInfo = RepositoryInfo.new
273
+ @RepoInfo.deserialize(params['RepoInfo'])
274
+ end
275
+ unless params['BuildPacks'].nil?
276
+ @BuildPacks = BuildPacksInfo.new
277
+ @BuildPacks.deserialize(params['BuildPacks'])
278
+ end
279
+ @ReleaseType = params['ReleaseType']
280
+ end
281
+ end
282
+
283
+ # DescribeCloudRunEnvs请求参数结构体
284
+ class DescribeCloudRunEnvsRequest < TencentCloud::Common::AbstractModel
285
+ # @param EnvId: 环境ID,如果传了这个参数则只返回该环境的相关信息
286
+ # @type EnvId: String
287
+ # @param IsVisible: 指定Channels字段为可见渠道列表或不可见渠道列表
288
+ # 如只想获取渠道A的环境 就填写IsVisible= true,Channels = ["A"], 过滤渠道A拉取其他渠道环境时填写IsVisible= false,Channels = ["A"]
289
+ # @type IsVisible: Boolean
290
+ # @param Channels: 渠道列表,代表可见或不可见渠道由IsVisible参数指定
291
+ # @type Channels: Array
292
+
293
+ attr_accessor :EnvId, :IsVisible, :Channels
294
+
295
+ def initialize(envid=nil, isvisible=nil, channels=nil)
296
+ @EnvId = envid
297
+ @IsVisible = isvisible
298
+ @Channels = channels
299
+ end
300
+
301
+ def deserialize(params)
302
+ @EnvId = params['EnvId']
303
+ @IsVisible = params['IsVisible']
304
+ @Channels = params['Channels']
305
+ end
306
+ end
307
+
308
+ # DescribeCloudRunEnvs返回参数结构体
309
+ class DescribeCloudRunEnvsResponse < TencentCloud::Common::AbstractModel
310
+ # @param EnvList: 环境信息列表
311
+ # @type EnvList: Array
312
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
313
+ # @type RequestId: String
314
+
315
+ attr_accessor :EnvList, :RequestId
316
+
317
+ def initialize(envlist=nil, requestid=nil)
318
+ @EnvList = envlist
319
+ @RequestId = requestid
320
+ end
321
+
322
+ def deserialize(params)
323
+ unless params['EnvList'].nil?
324
+ @EnvList = []
325
+ params['EnvList'].each do |i|
326
+ envinfo_tmp = EnvInfo.new
327
+ envinfo_tmp.deserialize(i)
328
+ @EnvList << envinfo_tmp
329
+ end
330
+ end
331
+ @RequestId = params['RequestId']
332
+ end
333
+ end
334
+
335
+ # DescribeCloudRunServerDetail请求参数结构体
336
+ class DescribeCloudRunServerDetailRequest < TencentCloud::Common::AbstractModel
337
+ # @param EnvId: 环境Id
338
+ # @type EnvId: String
339
+ # @param ServerName: 服务名
340
+ # @type ServerName: String
341
+
342
+ attr_accessor :EnvId, :ServerName
343
+
344
+ def initialize(envid=nil, servername=nil)
345
+ @EnvId = envid
346
+ @ServerName = servername
347
+ end
348
+
349
+ def deserialize(params)
350
+ @EnvId = params['EnvId']
351
+ @ServerName = params['ServerName']
352
+ end
353
+ end
354
+
355
+ # DescribeCloudRunServerDetail返回参数结构体
356
+ class DescribeCloudRunServerDetailResponse < TencentCloud::Common::AbstractModel
357
+ # @param BaseInfo: 服务基本信息
358
+ # 注意:此字段可能返回 null,表示取不到有效值。
359
+ # @type BaseInfo: :class:`Tencentcloud::Tcbr.v20220217.models.ServerBaseInfo`
360
+ # @param ServerConfig: 服务配置信息
361
+ # 注意:此字段可能返回 null,表示取不到有效值。
362
+ # @type ServerConfig: :class:`Tencentcloud::Tcbr.v20220217.models.ServerBaseConfig`
363
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
364
+ # @type RequestId: String
365
+
366
+ attr_accessor :BaseInfo, :ServerConfig, :RequestId
367
+
368
+ def initialize(baseinfo=nil, serverconfig=nil, requestid=nil)
369
+ @BaseInfo = baseinfo
370
+ @ServerConfig = serverconfig
371
+ @RequestId = requestid
372
+ end
373
+
374
+ def deserialize(params)
375
+ unless params['BaseInfo'].nil?
376
+ @BaseInfo = ServerBaseInfo.new
377
+ @BaseInfo.deserialize(params['BaseInfo'])
378
+ end
379
+ unless params['ServerConfig'].nil?
380
+ @ServerConfig = ServerBaseConfig.new
381
+ @ServerConfig.deserialize(params['ServerConfig'])
382
+ end
383
+ @RequestId = params['RequestId']
384
+ end
385
+ end
386
+
387
+ # DescribeCloudRunServers请求参数结构体
388
+ class DescribeCloudRunServersRequest < TencentCloud::Common::AbstractModel
389
+ # @param EnvId: 环境Id
390
+ # @type EnvId: String
391
+
392
+ attr_accessor :EnvId
393
+
394
+ def initialize(envid=nil)
395
+ @EnvId = envid
396
+ end
397
+
398
+ def deserialize(params)
399
+ @EnvId = params['EnvId']
400
+ end
401
+ end
402
+
403
+ # DescribeCloudRunServers返回参数结构体
404
+ class DescribeCloudRunServersResponse < TencentCloud::Common::AbstractModel
405
+ # @param ServerList: 服务列表
406
+ # @type ServerList: Array
407
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
408
+ # @type RequestId: String
409
+
410
+ attr_accessor :ServerList, :RequestId
411
+
412
+ def initialize(serverlist=nil, requestid=nil)
413
+ @ServerList = serverlist
414
+ @RequestId = requestid
415
+ end
416
+
417
+ def deserialize(params)
418
+ unless params['ServerList'].nil?
419
+ @ServerList = []
420
+ params['ServerList'].each do |i|
421
+ serverbaseinfo_tmp = ServerBaseInfo.new
422
+ serverbaseinfo_tmp.deserialize(i)
423
+ @ServerList << serverbaseinfo_tmp
424
+ end
425
+ end
426
+ @RequestId = params['RequestId']
427
+ end
428
+ end
429
+
430
+ # DescribeEnvBaseInfo请求参数结构体
431
+ class DescribeEnvBaseInfoRequest < TencentCloud::Common::AbstractModel
432
+ # @param EnvId: 环境 Id
433
+ # @type EnvId: String
434
+
435
+ attr_accessor :EnvId
436
+
437
+ def initialize(envid=nil)
438
+ @EnvId = envid
439
+ end
440
+
441
+ def deserialize(params)
442
+ @EnvId = params['EnvId']
443
+ end
444
+ end
445
+
446
+ # DescribeEnvBaseInfo返回参数结构体
447
+ class DescribeEnvBaseInfoResponse < TencentCloud::Common::AbstractModel
448
+ # @param EnvBaseInfo: 环境基础信息
449
+ # @type EnvBaseInfo: :class:`Tencentcloud::Tcbr.v20220217.models.EnvBaseInfo`
450
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
451
+ # @type RequestId: String
452
+
453
+ attr_accessor :EnvBaseInfo, :RequestId
454
+
455
+ def initialize(envbaseinfo=nil, requestid=nil)
456
+ @EnvBaseInfo = envbaseinfo
457
+ @RequestId = requestid
458
+ end
459
+
460
+ def deserialize(params)
461
+ unless params['EnvBaseInfo'].nil?
462
+ @EnvBaseInfo = EnvBaseInfo.new
463
+ @EnvBaseInfo.deserialize(params['EnvBaseInfo'])
464
+ end
465
+ @RequestId = params['RequestId']
466
+ end
467
+ end
468
+
469
+ # 环境基础信息
470
+ class EnvBaseInfo < TencentCloud::Common::AbstractModel
471
+ # @param EnvId: 环境Id
472
+ # @type EnvId: String
473
+ # @param PackageType: 套餐类型:Trial | Standard | Professional | Enterprise
474
+ # @type PackageType: String
475
+ # @param VpcId: VPC Id
476
+ # @type VpcId: String
477
+ # @param CreateTime: 环境创建时间
478
+ # @type CreateTime: String
479
+ # @param Alias: 环境别名
480
+ # @type Alias: String
481
+ # @param Status: 环境状态
482
+ # @type Status: String
483
+ # @param Region: 环境地域
484
+ # @type Region: String
485
+ # @param EnvType: 环境类型 tcbr | run
486
+ # @type EnvType: String
487
+
488
+ attr_accessor :EnvId, :PackageType, :VpcId, :CreateTime, :Alias, :Status, :Region, :EnvType
489
+
490
+ def initialize(envid=nil, packagetype=nil, vpcid=nil, createtime=nil, _alias=nil, status=nil, region=nil, envtype=nil)
491
+ @EnvId = envid
492
+ @PackageType = packagetype
493
+ @VpcId = vpcid
494
+ @CreateTime = createtime
495
+ @Alias = _alias
496
+ @Status = status
497
+ @Region = region
498
+ @EnvType = envtype
499
+ end
500
+
501
+ def deserialize(params)
502
+ @EnvId = params['EnvId']
503
+ @PackageType = params['PackageType']
504
+ @VpcId = params['VpcId']
505
+ @CreateTime = params['CreateTime']
506
+ @Alias = params['Alias']
507
+ @Status = params['Status']
508
+ @Region = params['Region']
509
+ @EnvType = params['EnvType']
510
+ end
511
+ end
512
+
513
+ # 环境信息
514
+ class EnvInfo < TencentCloud::Common::AbstractModel
515
+ # @param EnvId: 账户下该环境唯一标识
516
+ # @type EnvId: String
517
+ # @param Source: 环境来源。包含以下取值:
518
+ # <li>miniapp:微信小程序</li>
519
+ # <li>qcloud :腾讯云</li>
520
+ # @type Source: String
521
+ # @param Alias: 环境别名,要以a-z开头,不能包含 a-zA-z0-9- 以外的字符
522
+ # @type Alias: String
523
+ # @param CreateTime: 创建时间
524
+ # @type CreateTime: String
525
+ # @param UpdateTime: 最后修改时间
526
+ # @type UpdateTime: String
527
+ # @param Status: 环境状态。包含以下取值:
528
+ # <li>NORMAL:正常可用</li>
529
+ # <li>UNAVAILABLE:服务不可用,可能是尚未初始化或者初始化过程中</li>
530
+ # @type Status: String
531
+ # @param IsAutoDegrade: 是否到期自动降为免费版
532
+ # 注意:此字段可能返回 null,表示取不到有效值。
533
+ # @type IsAutoDegrade: Boolean
534
+ # @param EnvChannel: 环境渠道
535
+ # 注意:此字段可能返回 null,表示取不到有效值。
536
+ # @type EnvChannel: String
537
+ # @param PayMode: 支付方式。包含以下取值:
538
+ # <li> prepayment:预付费</li>
539
+ # <li> postpaid:后付费</li>
540
+ # 注意:此字段可能返回 null,表示取不到有效值。
541
+ # @type PayMode: String
542
+ # @param IsDefault: 是否为默认环境
543
+ # 注意:此字段可能返回 null,表示取不到有效值。
544
+ # @type IsDefault: Boolean
545
+ # @param Region: 环境所属地域
546
+ # 注意:此字段可能返回 null,表示取不到有效值。
547
+ # @type Region: String
548
+ # @param EnvType: 环境类型:baas, run, hosting, weda,tcbr
549
+ # 注意:此字段可能返回 null,表示取不到有效值。
550
+ # @type EnvType: String
551
+ # @param Databases: 数据库列表
552
+ # @type Databases: Array
553
+ # @param Storages: 存储列表
554
+ # @type Storages: Array
555
+ # @param Functions: 函数列表
556
+ # @type Functions: Array
557
+ # @param LogServices: 云日志服务列表
558
+ # 注意:此字段可能返回 null,表示取不到有效值。
559
+ # @type LogServices: Array
560
+ # @param StaticStorages: 静态资源信息
561
+ # 注意:此字段可能返回 null,表示取不到有效值。
562
+ # @type StaticStorages: Array
563
+ # @param Tags: 环境标签列表
564
+ # 注意:此字段可能返回 null,表示取不到有效值。
565
+ # @type Tags: Array
566
+ # @param CustomLogServices: 自定义日志服务
567
+ # 注意:此字段可能返回 null,表示取不到有效值。
568
+ # @type CustomLogServices: Array
569
+ # @param PackageId: tcb产品套餐ID,参考DescribePackages接口的返回值。
570
+ # 注意:此字段可能返回 null,表示取不到有效值。
571
+ # @type PackageId: String
572
+ # @param PackageName: 套餐中文名称,参考DescribePackages接口的返回值。
573
+ # 注意:此字段可能返回 null,表示取不到有效值。
574
+ # @type PackageName: String
575
+
576
+ attr_accessor :EnvId, :Source, :Alias, :CreateTime, :UpdateTime, :Status, :IsAutoDegrade, :EnvChannel, :PayMode, :IsDefault, :Region, :EnvType, :Databases, :Storages, :Functions, :LogServices, :StaticStorages, :Tags, :CustomLogServices, :PackageId, :PackageName
577
+
578
+ def initialize(envid=nil, source=nil, _alias=nil, createtime=nil, updatetime=nil, status=nil, isautodegrade=nil, envchannel=nil, paymode=nil, isdefault=nil, region=nil, envtype=nil, databases=nil, storages=nil, functions=nil, logservices=nil, staticstorages=nil, tags=nil, customlogservices=nil, packageid=nil, packagename=nil)
579
+ @EnvId = envid
580
+ @Source = source
581
+ @Alias = _alias
582
+ @CreateTime = createtime
583
+ @UpdateTime = updatetime
584
+ @Status = status
585
+ @IsAutoDegrade = isautodegrade
586
+ @EnvChannel = envchannel
587
+ @PayMode = paymode
588
+ @IsDefault = isdefault
589
+ @Region = region
590
+ @EnvType = envtype
591
+ @Databases = databases
592
+ @Storages = storages
593
+ @Functions = functions
594
+ @LogServices = logservices
595
+ @StaticStorages = staticstorages
596
+ @Tags = tags
597
+ @CustomLogServices = customlogservices
598
+ @PackageId = packageid
599
+ @PackageName = packagename
600
+ end
601
+
602
+ def deserialize(params)
603
+ @EnvId = params['EnvId']
604
+ @Source = params['Source']
605
+ @Alias = params['Alias']
606
+ @CreateTime = params['CreateTime']
607
+ @UpdateTime = params['UpdateTime']
608
+ @Status = params['Status']
609
+ @IsAutoDegrade = params['IsAutoDegrade']
610
+ @EnvChannel = params['EnvChannel']
611
+ @PayMode = params['PayMode']
612
+ @IsDefault = params['IsDefault']
613
+ @Region = params['Region']
614
+ @EnvType = params['EnvType']
615
+ unless params['Databases'].nil?
616
+ @Databases = []
617
+ params['Databases'].each do |i|
618
+ databasesinfo_tmp = DatabasesInfo.new
619
+ databasesinfo_tmp.deserialize(i)
620
+ @Databases << databasesinfo_tmp
621
+ end
622
+ end
623
+ unless params['Storages'].nil?
624
+ @Storages = []
625
+ params['Storages'].each do |i|
626
+ storageinfo_tmp = StorageInfo.new
627
+ storageinfo_tmp.deserialize(i)
628
+ @Storages << storageinfo_tmp
629
+ end
630
+ end
631
+ unless params['Functions'].nil?
632
+ @Functions = []
633
+ params['Functions'].each do |i|
634
+ functioninfo_tmp = FunctionInfo.new
635
+ functioninfo_tmp.deserialize(i)
636
+ @Functions << functioninfo_tmp
637
+ end
638
+ end
639
+ unless params['LogServices'].nil?
640
+ @LogServices = []
641
+ params['LogServices'].each do |i|
642
+ logserviceinfo_tmp = LogServiceInfo.new
643
+ logserviceinfo_tmp.deserialize(i)
644
+ @LogServices << logserviceinfo_tmp
645
+ end
646
+ end
647
+ unless params['StaticStorages'].nil?
648
+ @StaticStorages = []
649
+ params['StaticStorages'].each do |i|
650
+ staticstorageinfo_tmp = StaticStorageInfo.new
651
+ staticstorageinfo_tmp.deserialize(i)
652
+ @StaticStorages << staticstorageinfo_tmp
653
+ end
654
+ end
655
+ unless params['Tags'].nil?
656
+ @Tags = []
657
+ params['Tags'].each do |i|
658
+ tag_tmp = Tag.new
659
+ tag_tmp.deserialize(i)
660
+ @Tags << tag_tmp
661
+ end
662
+ end
663
+ unless params['CustomLogServices'].nil?
664
+ @CustomLogServices = []
665
+ params['CustomLogServices'].each do |i|
666
+ clsinfo_tmp = ClsInfo.new
667
+ clsinfo_tmp.deserialize(i)
668
+ @CustomLogServices << clsinfo_tmp
669
+ end
670
+ end
671
+ @PackageId = params['PackageId']
672
+ @PackageName = params['PackageName']
673
+ end
674
+ end
675
+
676
+ # 函数的信息
677
+ class FunctionInfo < TencentCloud::Common::AbstractModel
678
+ # @param Namespace: 命名空间
679
+ # @type Namespace: String
680
+ # @param Region: 所属地域。
681
+ # 当前支持ap-shanghai
682
+ # @type Region: String
683
+
684
+ attr_accessor :Namespace, :Region
685
+
686
+ def initialize(namespace=nil, region=nil)
687
+ @Namespace = namespace
688
+ @Region = region
689
+ end
690
+
691
+ def deserialize(params)
692
+ @Namespace = params['Namespace']
693
+ @Region = params['Region']
694
+ end
695
+ end
696
+
697
+ # 扩缩容入参
698
+ class HpaPolicy < TencentCloud::Common::AbstractModel
699
+ # @param PolicyType: 扩缩容类型
700
+ # @type PolicyType: String
701
+ # @param PolicyThreshold: 扩缩容阈值
702
+ # @type PolicyThreshold: Integer
703
+
704
+ attr_accessor :PolicyType, :PolicyThreshold
705
+
706
+ def initialize(policytype=nil, policythreshold=nil)
707
+ @PolicyType = policytype
708
+ @PolicyThreshold = policythreshold
709
+ end
710
+
711
+ def deserialize(params)
712
+ @PolicyType = params['PolicyType']
713
+ @PolicyThreshold = params['PolicyThreshold']
714
+ end
715
+ end
716
+
717
+ # 云日志服务相关信息
718
+ class LogServiceInfo < TencentCloud::Common::AbstractModel
719
+ # @param LogsetName: log名
720
+ # @type LogsetName: String
721
+ # @param LogsetId: log-id
722
+ # @type LogsetId: String
723
+ # @param TopicName: topic名
724
+ # @type TopicName: String
725
+ # @param TopicId: topic-id
726
+ # @type TopicId: String
727
+ # @param Region: cls日志所属地域
728
+ # @type Region: String
729
+
730
+ attr_accessor :LogsetName, :LogsetId, :TopicName, :TopicId, :Region
731
+
732
+ def initialize(logsetname=nil, logsetid=nil, topicname=nil, topicid=nil, region=nil)
733
+ @LogsetName = logsetname
734
+ @LogsetId = logsetid
735
+ @TopicName = topicname
736
+ @TopicId = topicid
737
+ @Region = region
738
+ end
739
+
740
+ def deserialize(params)
741
+ @LogsetName = params['LogsetName']
742
+ @LogsetId = params['LogsetId']
743
+ @TopicName = params['TopicName']
744
+ @TopicId = params['TopicId']
745
+ @Region = params['Region']
746
+ end
747
+ end
748
+
749
+ # 代码仓库信息
750
+ class RepositoryInfo < TencentCloud::Common::AbstractModel
751
+ # @param Source: git source
752
+ # @type Source: String
753
+ # @param Repo: 仓库名
754
+ # @type Repo: String
755
+ # @param Branch: 分之名
756
+ # @type Branch: String
757
+
758
+ attr_accessor :Source, :Repo, :Branch
759
+
760
+ def initialize(source=nil, repo=nil, branch=nil)
761
+ @Source = source
762
+ @Repo = repo
763
+ @Branch = branch
764
+ end
765
+
766
+ def deserialize(params)
767
+ @Source = params['Source']
768
+ @Repo = params['Repo']
769
+ @Branch = params['Branch']
770
+ end
771
+ end
772
+
773
+ # 服务基础配置信息
774
+ class ServerBaseConfig < TencentCloud::Common::AbstractModel
775
+ # @param EnvId: 环境 Id
776
+ # @type EnvId: String
777
+ # @param ServerName: 服务名
778
+ # @type ServerName: String
779
+ # @param OpenAccessTypes: 是否开启公网访问
780
+ # @type OpenAccessTypes: Array
781
+ # @param Cpu: Cpu 规格
782
+ # @type Cpu: Float
783
+ # @param Mem: Mem 规格
784
+ # @type Mem: Float
785
+ # @param MinNum: 最小副本数
786
+ # @type MinNum: Integer
787
+ # @param MaxNum: 最大副本数
788
+ # @type MaxNum: Integer
789
+ # @param PolicyDetails: 扩缩容配置
790
+ # @type PolicyDetails: Array
791
+ # @param CustomLogs: 日志采集路径
792
+ # @type CustomLogs: String
793
+ # @param EnvParams: 环境变量
794
+ # @type EnvParams: String
795
+ # @param InitialDelaySeconds: 延迟检测时间
796
+ # @type InitialDelaySeconds: Integer
797
+ # @param CreateTime: 创建时间
798
+ # @type CreateTime: String
799
+ # @param Port: 服务端口
800
+ # @type Port: Integer
801
+ # @param HasDockerfile: 是否有Dockerfile
802
+ # @type HasDockerfile: Boolean
803
+ # @param Dockerfile: Dockerfile 文件名
804
+ # @type Dockerfile: String
805
+ # @param BuildDir: 构建目录
806
+ # @type BuildDir: String
807
+ # @param LogType: 日志类型: none | default | custom
808
+ # @type LogType: String
809
+ # @param LogSetId: cls setId
810
+ # @type LogSetId: String
811
+ # @param LogTopicId: cls 主题id
812
+ # @type LogTopicId: String
813
+ # @param LogParseType: 解析类型:json | line
814
+ # @type LogParseType: String
815
+
816
+ attr_accessor :EnvId, :ServerName, :OpenAccessTypes, :Cpu, :Mem, :MinNum, :MaxNum, :PolicyDetails, :CustomLogs, :EnvParams, :InitialDelaySeconds, :CreateTime, :Port, :HasDockerfile, :Dockerfile, :BuildDir, :LogType, :LogSetId, :LogTopicId, :LogParseType
817
+
818
+ def initialize(envid=nil, servername=nil, openaccesstypes=nil, cpu=nil, mem=nil, minnum=nil, maxnum=nil, policydetails=nil, customlogs=nil, envparams=nil, initialdelayseconds=nil, createtime=nil, port=nil, hasdockerfile=nil, dockerfile=nil, builddir=nil, logtype=nil, logsetid=nil, logtopicid=nil, logparsetype=nil)
819
+ @EnvId = envid
820
+ @ServerName = servername
821
+ @OpenAccessTypes = openaccesstypes
822
+ @Cpu = cpu
823
+ @Mem = mem
824
+ @MinNum = minnum
825
+ @MaxNum = maxnum
826
+ @PolicyDetails = policydetails
827
+ @CustomLogs = customlogs
828
+ @EnvParams = envparams
829
+ @InitialDelaySeconds = initialdelayseconds
830
+ @CreateTime = createtime
831
+ @Port = port
832
+ @HasDockerfile = hasdockerfile
833
+ @Dockerfile = dockerfile
834
+ @BuildDir = builddir
835
+ @LogType = logtype
836
+ @LogSetId = logsetid
837
+ @LogTopicId = logtopicid
838
+ @LogParseType = logparsetype
839
+ end
840
+
841
+ def deserialize(params)
842
+ @EnvId = params['EnvId']
843
+ @ServerName = params['ServerName']
844
+ @OpenAccessTypes = params['OpenAccessTypes']
845
+ @Cpu = params['Cpu']
846
+ @Mem = params['Mem']
847
+ @MinNum = params['MinNum']
848
+ @MaxNum = params['MaxNum']
849
+ unless params['PolicyDetails'].nil?
850
+ @PolicyDetails = []
851
+ params['PolicyDetails'].each do |i|
852
+ hpapolicy_tmp = HpaPolicy.new
853
+ hpapolicy_tmp.deserialize(i)
854
+ @PolicyDetails << hpapolicy_tmp
855
+ end
856
+ end
857
+ @CustomLogs = params['CustomLogs']
858
+ @EnvParams = params['EnvParams']
859
+ @InitialDelaySeconds = params['InitialDelaySeconds']
860
+ @CreateTime = params['CreateTime']
861
+ @Port = params['Port']
862
+ @HasDockerfile = params['HasDockerfile']
863
+ @Dockerfile = params['Dockerfile']
864
+ @BuildDir = params['BuildDir']
865
+ @LogType = params['LogType']
866
+ @LogSetId = params['LogSetId']
867
+ @LogTopicId = params['LogTopicId']
868
+ @LogParseType = params['LogParseType']
869
+ end
870
+ end
871
+
872
+ # 服务基本信息
873
+ class ServerBaseInfo < TencentCloud::Common::AbstractModel
874
+ # @param ServerName: 服务名
875
+ # @type ServerName: String
876
+ # @param DefaultDomainName: 默认服务域名
877
+ # @type DefaultDomainName: String
878
+ # @param CustomDomainName: 自定义域名
879
+ # @type CustomDomainName: String
880
+ # @param Status: 服务状态:running/deploying/deploy_failed
881
+ # @type Status: String
882
+ # @param UpdateTime: 更新时间
883
+ # @type UpdateTime: String
884
+
885
+ attr_accessor :ServerName, :DefaultDomainName, :CustomDomainName, :Status, :UpdateTime
886
+
887
+ def initialize(servername=nil, defaultdomainname=nil, customdomainname=nil, status=nil, updatetime=nil)
888
+ @ServerName = servername
889
+ @DefaultDomainName = defaultdomainname
890
+ @CustomDomainName = customdomainname
891
+ @Status = status
892
+ @UpdateTime = updatetime
893
+ end
894
+
895
+ def deserialize(params)
896
+ @ServerName = params['ServerName']
897
+ @DefaultDomainName = params['DefaultDomainName']
898
+ @CustomDomainName = params['CustomDomainName']
899
+ @Status = params['Status']
900
+ @UpdateTime = params['UpdateTime']
901
+ end
902
+ end
903
+
904
+ # 静态CDN资源信息
905
+ class StaticStorageInfo < TencentCloud::Common::AbstractModel
906
+ # @param StaticDomain: 静态CDN域名
907
+ # @type StaticDomain: String
908
+ # @param DefaultDirName: 静态CDN默认文件夹,当前为根目录
909
+ # @type DefaultDirName: String
910
+ # @param Status: 资源状态(process/online/offline/init)
911
+ # @type Status: String
912
+ # @param Region: cos所属区域
913
+ # @type Region: String
914
+ # @param Bucket: bucket信息
915
+ # @type Bucket: String
916
+
917
+ attr_accessor :StaticDomain, :DefaultDirName, :Status, :Region, :Bucket
918
+
919
+ def initialize(staticdomain=nil, defaultdirname=nil, status=nil, region=nil, bucket=nil)
920
+ @StaticDomain = staticdomain
921
+ @DefaultDirName = defaultdirname
922
+ @Status = status
923
+ @Region = region
924
+ @Bucket = bucket
925
+ end
926
+
927
+ def deserialize(params)
928
+ @StaticDomain = params['StaticDomain']
929
+ @DefaultDirName = params['DefaultDirName']
930
+ @Status = params['Status']
931
+ @Region = params['Region']
932
+ @Bucket = params['Bucket']
933
+ end
934
+ end
935
+
936
+ # StorageInfo 资源信息
937
+ class StorageInfo < TencentCloud::Common::AbstractModel
938
+ # @param Region: 资源所属地域。
939
+ # 当前支持ap-shanghai
940
+ # @type Region: String
941
+ # @param Bucket: 桶名,存储资源的唯一标识
942
+ # @type Bucket: String
943
+ # @param CdnDomain: cdn 域名
944
+ # @type CdnDomain: String
945
+ # @param AppId: 资源所属用户的腾讯云appId
946
+ # @type AppId: String
947
+
948
+ attr_accessor :Region, :Bucket, :CdnDomain, :AppId
949
+
950
+ def initialize(region=nil, bucket=nil, cdndomain=nil, appid=nil)
951
+ @Region = region
952
+ @Bucket = bucket
953
+ @CdnDomain = cdndomain
954
+ @AppId = appid
955
+ end
956
+
957
+ def deserialize(params)
958
+ @Region = params['Region']
959
+ @Bucket = params['Bucket']
960
+ @CdnDomain = params['CdnDomain']
961
+ @AppId = params['AppId']
962
+ end
963
+ end
964
+
965
+ # 标签键值对
966
+ class Tag < TencentCloud::Common::AbstractModel
967
+ # @param Key: 标签键
968
+ # @type Key: String
969
+ # @param Value: 标签值
970
+ # @type Value: String
971
+
972
+ attr_accessor :Key, :Value
973
+
974
+ def initialize(key=nil, value=nil)
975
+ @Key = key
976
+ @Value = value
977
+ end
978
+
979
+ def deserialize(params)
980
+ @Key = params['Key']
981
+ @Value = params['Value']
982
+ end
983
+ end
984
+
985
+ # UpdateCloudRunServer请求参数结构体
986
+ class UpdateCloudRunServerRequest < TencentCloud::Common::AbstractModel
987
+ # @param EnvId: 环境Id
988
+ # @type EnvId: String
989
+ # @param ServerName: 服务名
990
+ # @type ServerName: String
991
+ # @param DeployInfo: 部署信息
992
+ # @type DeployInfo: :class:`Tencentcloud::Tcbr.v20220217.models.DeployParam`
993
+ # @param ServerConfig: 服务配置信息
994
+ # @type ServerConfig: :class:`Tencentcloud::Tcbr.v20220217.models.ServerBaseConfig`
995
+
996
+ attr_accessor :EnvId, :ServerName, :DeployInfo, :ServerConfig
997
+
998
+ def initialize(envid=nil, servername=nil, deployinfo=nil, serverconfig=nil)
999
+ @EnvId = envid
1000
+ @ServerName = servername
1001
+ @DeployInfo = deployinfo
1002
+ @ServerConfig = serverconfig
1003
+ end
1004
+
1005
+ def deserialize(params)
1006
+ @EnvId = params['EnvId']
1007
+ @ServerName = params['ServerName']
1008
+ unless params['DeployInfo'].nil?
1009
+ @DeployInfo = DeployParam.new
1010
+ @DeployInfo.deserialize(params['DeployInfo'])
1011
+ end
1012
+ unless params['ServerConfig'].nil?
1013
+ @ServerConfig = ServerBaseConfig.new
1014
+ @ServerConfig.deserialize(params['ServerConfig'])
1015
+ end
1016
+ end
1017
+ end
1018
+
1019
+ # UpdateCloudRunServer返回参数结构体
1020
+ class UpdateCloudRunServerResponse < TencentCloud::Common::AbstractModel
1021
+ # @param EnvId: 环境Id
1022
+ # @type EnvId: String
1023
+ # @param TaskId: 一键部署任务Id,暂时用不到
1024
+ # @type TaskId: Integer
1025
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1026
+ # @type RequestId: String
1027
+
1028
+ attr_accessor :EnvId, :TaskId, :RequestId
1029
+
1030
+ def initialize(envid=nil, taskid=nil, requestid=nil)
1031
+ @EnvId = envid
1032
+ @TaskId = taskid
1033
+ @RequestId = requestid
1034
+ end
1035
+
1036
+ def deserialize(params)
1037
+ @EnvId = params['EnvId']
1038
+ @TaskId = params['TaskId']
1039
+ @RequestId = params['RequestId']
1040
+ end
1041
+ end
1042
+
1043
+ end
1044
+ end
1045
+ end
1046
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-tcbr
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.335
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-06-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ TCBR.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-tcbr.rb
38
+ - lib/v20220217/client.rb
39
+ - lib/v20220217/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-tcbr
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - TCBR
66
+ test_files: []