tencentcloud-sdk-bpaas 3.0.417

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: 664e22dee85a7293d6138325de82d9370da6f637
4
+ data.tar.gz: fd546f36d3a362a0077a5c7df07a129caf8d977f
5
+ SHA512:
6
+ metadata.gz: 8353a3aef025a54870ad75ac270e887dbc44fea245cf8deda5557f89520d9ee882a937521b2da87f70e45b1499e7f0b525aa3c85eba82a919a38726796519987
7
+ data.tar.gz: f4a2c84512bea3f35bd74cadc45d806343ced54627a54bf31dac445becfe29b2abd56054eac81a87bbb22c047cc64614bf88c7686d38aafd8d421df093b91218
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.417
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20181217/client'
6
+ require_relative 'v20181217/models'
7
+
8
+ module TencentCloud
9
+ module Bpaas
10
+ end
11
+ end
@@ -0,0 +1,84 @@
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 Bpaas
21
+ module V20181217
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2018-12-17'
26
+ api_endpoint = 'bpaas.tencentcloudapi.com'
27
+ sdk_version = 'BPAAS_' + 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 GetBpaasApproveDetail.
35
+ # @type request: :class:`Tencentcloud::bpaas::V20181217::GetBpaasApproveDetailRequest`
36
+ # @rtype: :class:`Tencentcloud::bpaas::V20181217::GetBpaasApproveDetailResponse`
37
+ def GetBpaasApproveDetail(request)
38
+ body = send_request('GetBpaasApproveDetail', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = GetBpaasApproveDetailResponse.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 OutApproveBpaasApplication.
59
+ # @type request: :class:`Tencentcloud::bpaas::V20181217::OutApproveBpaasApplicationRequest`
60
+ # @rtype: :class:`Tencentcloud::bpaas::V20181217::OutApproveBpaasApplicationResponse`
61
+ def OutApproveBpaasApplication(request)
62
+ body = send_request('OutApproveBpaasApplication', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = OutApproveBpaasApplicationResponse.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
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,332 @@
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 Bpaas
19
+ module V20181217
20
+ # bpaas申请入参
21
+ class ApplyParam < TencentCloud::Common::AbstractModel
22
+ # @param Key: 审批流中表单唯一标识
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type Key: String
25
+ # @param Value: 表单value
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type Value: Array
28
+ # @param Name: 表单参数描述
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type Name: String
31
+
32
+ attr_accessor :Key, :Value, :Name
33
+
34
+ def initialize(key=nil, value=nil, name=nil)
35
+ @Key = key
36
+ @Value = value
37
+ @Name = name
38
+ end
39
+
40
+ def deserialize(params)
41
+ @Key = params['Key']
42
+ @Value = params['Value']
43
+ @Name = params['Name']
44
+ end
45
+ end
46
+
47
+ # 审批意见
48
+ class ApproveOpinion < TencentCloud::Common::AbstractModel
49
+ # @param Type: 方式 1:输入文字反馈 2:预设选项
50
+ # @type Type: Integer
51
+ # @param Content: 审批意见
52
+ # 注意:此字段可能返回 null,表示取不到有效值。
53
+ # @type Content: Array
54
+
55
+ attr_accessor :Type, :Content
56
+
57
+ def initialize(type=nil, content=nil)
58
+ @Type = type
59
+ @Content = content
60
+ end
61
+
62
+ def deserialize(params)
63
+ @Type = params['Type']
64
+ @Content = params['Content']
65
+ end
66
+ end
67
+
68
+ # 审批人
69
+ class ApproveUser < TencentCloud::Common::AbstractModel
70
+ # @param Uin: 用户uin
71
+ # @type Uin: Integer
72
+ # @param Type: 用户类型 (1:用户 2:用户组)
73
+ # @type Type: Integer
74
+ # @param Desc: 用户描述
75
+ # 注意:此字段可能返回 null,表示取不到有效值。
76
+ # @type Desc: String
77
+ # @param Nick: 用户昵称
78
+ # 注意:此字段可能返回 null,表示取不到有效值。
79
+ # @type Nick: String
80
+
81
+ attr_accessor :Uin, :Type, :Desc, :Nick
82
+
83
+ def initialize(uin=nil, type=nil, desc=nil, nick=nil)
84
+ @Uin = uin
85
+ @Type = type
86
+ @Desc = desc
87
+ @Nick = nick
88
+ end
89
+
90
+ def deserialize(params)
91
+ @Uin = params['Uin']
92
+ @Type = params['Type']
93
+ @Desc = params['Desc']
94
+ @Nick = params['Nick']
95
+ end
96
+ end
97
+
98
+ # GetBpaasApproveDetail请求参数结构体
99
+ class GetBpaasApproveDetailRequest < TencentCloud::Common::AbstractModel
100
+ # @param ApproveId: 审批id
101
+ # @type ApproveId: Integer
102
+
103
+ attr_accessor :ApproveId
104
+
105
+ def initialize(approveid=nil)
106
+ @ApproveId = approveid
107
+ end
108
+
109
+ def deserialize(params)
110
+ @ApproveId = params['ApproveId']
111
+ end
112
+ end
113
+
114
+ # GetBpaasApproveDetail返回参数结构体
115
+ class GetBpaasApproveDetailResponse < TencentCloud::Common::AbstractModel
116
+ # @param ApplyUin: 申请人uin
117
+ # @type ApplyUin: Integer
118
+ # @param ApplyOwnUin: 申请人主账号
119
+ # @type ApplyOwnUin: Integer
120
+ # @param ApplyUinNick: 申请人昵称
121
+ # 注意:此字段可能返回 null,表示取不到有效值。
122
+ # @type ApplyUinNick: String
123
+ # @param BpaasId: 审批流id
124
+ # @type BpaasId: Integer
125
+ # @param BpaasName: 审批流名称
126
+ # @type BpaasName: String
127
+ # @param ApplicationParams: 申请参数
128
+ # 注意:此字段可能返回 null,表示取不到有效值。
129
+ # @type ApplicationParams: Array
130
+ # @param Reason: 申请原因
131
+ # 注意:此字段可能返回 null,表示取不到有效值。
132
+ # @type Reason: String
133
+ # @param CreateTime: 申请时间
134
+ # 注意:此字段可能返回 null,表示取不到有效值。
135
+ # @type CreateTime: String
136
+ # @param Status: 申请单状态
137
+ # 注意:此字段可能返回 null,表示取不到有效值。
138
+ # @type Status: Integer
139
+ # @param Nodes: 节点信息
140
+ # 注意:此字段可能返回 null,表示取不到有效值。
141
+ # @type Nodes: Array
142
+ # @param ApprovingNodeId: 正在审批的节点id
143
+ # 注意:此字段可能返回 null,表示取不到有效值。
144
+ # @type ApprovingNodeId: String
145
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
146
+ # @type RequestId: String
147
+
148
+ attr_accessor :ApplyUin, :ApplyOwnUin, :ApplyUinNick, :BpaasId, :BpaasName, :ApplicationParams, :Reason, :CreateTime, :Status, :Nodes, :ApprovingNodeId, :RequestId
149
+
150
+ def initialize(applyuin=nil, applyownuin=nil, applyuinnick=nil, bpaasid=nil, bpaasname=nil, applicationparams=nil, reason=nil, createtime=nil, status=nil, nodes=nil, approvingnodeid=nil, requestid=nil)
151
+ @ApplyUin = applyuin
152
+ @ApplyOwnUin = applyownuin
153
+ @ApplyUinNick = applyuinnick
154
+ @BpaasId = bpaasid
155
+ @BpaasName = bpaasname
156
+ @ApplicationParams = applicationparams
157
+ @Reason = reason
158
+ @CreateTime = createtime
159
+ @Status = status
160
+ @Nodes = nodes
161
+ @ApprovingNodeId = approvingnodeid
162
+ @RequestId = requestid
163
+ end
164
+
165
+ def deserialize(params)
166
+ @ApplyUin = params['ApplyUin']
167
+ @ApplyOwnUin = params['ApplyOwnUin']
168
+ @ApplyUinNick = params['ApplyUinNick']
169
+ @BpaasId = params['BpaasId']
170
+ @BpaasName = params['BpaasName']
171
+ unless params['ApplicationParams'].nil?
172
+ @ApplicationParams = []
173
+ params['ApplicationParams'].each do |i|
174
+ applyparam_tmp = ApplyParam.new
175
+ applyparam_tmp.deserialize(i)
176
+ @ApplicationParams << applyparam_tmp
177
+ end
178
+ end
179
+ @Reason = params['Reason']
180
+ @CreateTime = params['CreateTime']
181
+ @Status = params['Status']
182
+ unless params['Nodes'].nil?
183
+ @Nodes = []
184
+ params['Nodes'].each do |i|
185
+ statusnode_tmp = StatusNode.new
186
+ statusnode_tmp.deserialize(i)
187
+ @Nodes << statusnode_tmp
188
+ end
189
+ end
190
+ @ApprovingNodeId = params['ApprovingNodeId']
191
+ @RequestId = params['RequestId']
192
+ end
193
+ end
194
+
195
+ # OutApproveBpaasApplication请求参数结构体
196
+ class OutApproveBpaasApplicationRequest < TencentCloud::Common::AbstractModel
197
+ # @param Status: 状态 1:通过 2:拒绝
198
+ # @type Status: Integer
199
+ # @param ApproveId: 审批单id
200
+ # @type ApproveId: Integer
201
+ # @param Msg: 审批意见
202
+ # @type Msg: String
203
+
204
+ attr_accessor :Status, :ApproveId, :Msg
205
+
206
+ def initialize(status=nil, approveid=nil, msg=nil)
207
+ @Status = status
208
+ @ApproveId = approveid
209
+ @Msg = msg
210
+ end
211
+
212
+ def deserialize(params)
213
+ @Status = params['Status']
214
+ @ApproveId = params['ApproveId']
215
+ @Msg = params['Msg']
216
+ end
217
+ end
218
+
219
+ # OutApproveBpaasApplication返回参数结构体
220
+ class OutApproveBpaasApplicationResponse < TencentCloud::Common::AbstractModel
221
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
222
+ # @type RequestId: String
223
+
224
+ attr_accessor :RequestId
225
+
226
+ def initialize(requestid=nil)
227
+ @RequestId = requestid
228
+ end
229
+
230
+ def deserialize(params)
231
+ @RequestId = params['RequestId']
232
+ end
233
+ end
234
+
235
+ # 状态节点
236
+ class StatusNode < TencentCloud::Common::AbstractModel
237
+ # @param NodeId: 节点id
238
+ # @type NodeId: String
239
+ # @param NodeName: 节点名称
240
+ # @type NodeName: String
241
+ # @param NodeType: 节点类型 1:审批节点 2:执行节点 3:条件节点
242
+ # @type NodeType: Integer
243
+ # @param NextNode: 下一个节点
244
+ # @type NextNode: String
245
+ # @param Opinion: 审批意见模型
246
+ # 注意:此字段可能返回 null,表示取不到有效值。
247
+ # @type Opinion: :class:`Tencentcloud::Bpaas.v20181217.models.ApproveOpinion`
248
+ # @param ScfName: scf函数名称
249
+ # 注意:此字段可能返回 null,表示取不到有效值。
250
+ # @type ScfName: String
251
+ # @param SubStatus: 状态(0:待审批,1:审批通过,2:拒绝,3:scf执行失败,4:scf执行成功)
252
+ # 注意:此字段可能返回 null,表示取不到有效值。
253
+ # @type SubStatus: Integer
254
+ # @param ApprovedUin: 审批节点审批人
255
+ # 注意:此字段可能返回 null,表示取不到有效值。
256
+ # @type ApprovedUin: Array
257
+ # @param CreateTime: 审批时间
258
+ # 注意:此字段可能返回 null,表示取不到有效值。
259
+ # @type CreateTime: String
260
+ # @param Msg: 审批意见信息 审批节点:审批人意见 执行节点:scf函数执行日志
261
+ # 注意:此字段可能返回 null,表示取不到有效值。
262
+ # @type Msg: String
263
+ # @param Users: 有权限审批该节点的uin
264
+ # 注意:此字段可能返回 null,表示取不到有效值。
265
+ # @type Users: :class:`Tencentcloud::Bpaas.v20181217.models.ApproveUser`
266
+ # @param IsApprove: 是否有权限审批该节点
267
+ # 注意:此字段可能返回 null,表示取不到有效值。
268
+ # @type IsApprove: Boolean
269
+ # @param ApproveId: 审批id
270
+ # 注意:此字段可能返回 null,表示取不到有效值。
271
+ # @type ApproveId: String
272
+ # @param ApproveMethod: 审批方式 0或签 1会签
273
+ # 注意:此字段可能返回 null,表示取不到有效值。
274
+ # @type ApproveMethod: Integer
275
+ # @param ApproveType: 审批节点审批类型,1人工审批 2自动通过 3自动决绝 4外部审批scf
276
+ # 注意:此字段可能返回 null,表示取不到有效值。
277
+ # @type ApproveType: Integer
278
+ # @param CallMethod: 外部审批类型 scf:0或null ; CKafka:1
279
+ # 注意:此字段可能返回 null,表示取不到有效值。
280
+ # @type CallMethod: Integer
281
+
282
+ attr_accessor :NodeId, :NodeName, :NodeType, :NextNode, :Opinion, :ScfName, :SubStatus, :ApprovedUin, :CreateTime, :Msg, :Users, :IsApprove, :ApproveId, :ApproveMethod, :ApproveType, :CallMethod
283
+
284
+ def initialize(nodeid=nil, nodename=nil, nodetype=nil, nextnode=nil, opinion=nil, scfname=nil, substatus=nil, approveduin=nil, createtime=nil, msg=nil, users=nil, isapprove=nil, approveid=nil, approvemethod=nil, approvetype=nil, callmethod=nil)
285
+ @NodeId = nodeid
286
+ @NodeName = nodename
287
+ @NodeType = nodetype
288
+ @NextNode = nextnode
289
+ @Opinion = opinion
290
+ @ScfName = scfname
291
+ @SubStatus = substatus
292
+ @ApprovedUin = approveduin
293
+ @CreateTime = createtime
294
+ @Msg = msg
295
+ @Users = users
296
+ @IsApprove = isapprove
297
+ @ApproveId = approveid
298
+ @ApproveMethod = approvemethod
299
+ @ApproveType = approvetype
300
+ @CallMethod = callmethod
301
+ end
302
+
303
+ def deserialize(params)
304
+ @NodeId = params['NodeId']
305
+ @NodeName = params['NodeName']
306
+ @NodeType = params['NodeType']
307
+ @NextNode = params['NextNode']
308
+ unless params['Opinion'].nil?
309
+ @Opinion = ApproveOpinion.new
310
+ @Opinion.deserialize(params['Opinion'])
311
+ end
312
+ @ScfName = params['ScfName']
313
+ @SubStatus = params['SubStatus']
314
+ @ApprovedUin = params['ApprovedUin']
315
+ @CreateTime = params['CreateTime']
316
+ @Msg = params['Msg']
317
+ unless params['Users'].nil?
318
+ @Users = ApproveUser.new
319
+ @Users.deserialize(params['Users'])
320
+ end
321
+ @IsApprove = params['IsApprove']
322
+ @ApproveId = params['ApproveId']
323
+ @ApproveMethod = params['ApproveMethod']
324
+ @ApproveType = params['ApproveType']
325
+ @CallMethod = params['CallMethod']
326
+ end
327
+ end
328
+
329
+ end
330
+ end
331
+ end
332
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-bpaas
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.417
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-09-23 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
+ BPAAS.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/v20181217/models.rb
37
+ - lib/v20181217/client.rb
38
+ - lib/tencentcloud-sdk-bpaas.rb
39
+ - lib/VERSION
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-bpaas
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.0.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - BPAAS
66
+ test_files: []