tencentcloud-sdk-asw 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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 570b1b4f236d6049ee7bc1522e22d3579e5a5114
4
+ data.tar.gz: 1d32a92d27108f7278354367bcebf8581210f77b
5
+ SHA512:
6
+ metadata.gz: 8af60e186f8bfb1785dbd4ea9754f30a3507692faf403e7898b4ef999c6997746d8cb22dfdad829a8193f16b44406ec2a1ef9af16c1cbd15f92395fc883f512c
7
+ data.tar.gz: 514a153d515222e8da61f6ce40d1254837ec96753f091a94b30fb8ac08d61d36cf4a99b331ba591c042b6d6871ab748f40646850b53915b0685a42a205669e24
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20200722/client'
6
+ require_relative 'v20200722/models'
7
+
8
+ module TencentCloud
9
+ module Asw
10
+ end
11
+ end
@@ -0,0 +1,252 @@
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 Asw
21
+ module V20200722
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-07-22'
26
+ api_endpoint = 'asw.tencentcloudapi.com'
27
+ sdk_version = 'ASW_' + 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 CreateFlowService.
35
+ # @type request: :class:`Tencentcloud::asw::V20200722::CreateFlowServiceRequest`
36
+ # @rtype: :class:`Tencentcloud::asw::V20200722::CreateFlowServiceResponse`
37
+ def CreateFlowService(request)
38
+ body = send_request('CreateFlowService', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateFlowServiceResponse.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 DescribeExecution.
59
+ # @type request: :class:`Tencentcloud::asw::V20200722::DescribeExecutionRequest`
60
+ # @rtype: :class:`Tencentcloud::asw::V20200722::DescribeExecutionResponse`
61
+ def DescribeExecution(request)
62
+ body = send_request('DescribeExecution', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeExecutionResponse.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 DescribeExecutionHistory.
83
+ # @type request: :class:`Tencentcloud::asw::V20200722::DescribeExecutionHistoryRequest`
84
+ # @rtype: :class:`Tencentcloud::asw::V20200722::DescribeExecutionHistoryResponse`
85
+ def DescribeExecutionHistory(request)
86
+ body = send_request('DescribeExecutionHistory', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeExecutionHistoryResponse.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 DescribeExecutions.
107
+ # @type request: :class:`Tencentcloud::asw::V20200722::DescribeExecutionsRequest`
108
+ # @rtype: :class:`Tencentcloud::asw::V20200722::DescribeExecutionsResponse`
109
+ def DescribeExecutions(request)
110
+ body = send_request('DescribeExecutions', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeExecutionsResponse.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 DescribeFlowServiceDetail.
131
+ # @type request: :class:`Tencentcloud::asw::V20200722::DescribeFlowServiceDetailRequest`
132
+ # @rtype: :class:`Tencentcloud::asw::V20200722::DescribeFlowServiceDetailResponse`
133
+ def DescribeFlowServiceDetail(request)
134
+ body = send_request('DescribeFlowServiceDetail', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeFlowServiceDetailResponse.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 DescribeFlowServices.
155
+ # @type request: :class:`Tencentcloud::asw::V20200722::DescribeFlowServicesRequest`
156
+ # @rtype: :class:`Tencentcloud::asw::V20200722::DescribeFlowServicesResponse`
157
+ def DescribeFlowServices(request)
158
+ body = send_request('DescribeFlowServices', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeFlowServicesResponse.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 ModifyFlowService.
179
+ # @type request: :class:`Tencentcloud::asw::V20200722::ModifyFlowServiceRequest`
180
+ # @rtype: :class:`Tencentcloud::asw::V20200722::ModifyFlowServiceResponse`
181
+ def ModifyFlowService(request)
182
+ body = send_request('ModifyFlowService', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = ModifyFlowServiceResponse.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
+
202
+ # @param request: Request instance for StartExecution.
203
+ # @type request: :class:`Tencentcloud::asw::V20200722::StartExecutionRequest`
204
+ # @rtype: :class:`Tencentcloud::asw::V20200722::StartExecutionResponse`
205
+ def StartExecution(request)
206
+ body = send_request('StartExecution', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = StartExecutionResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
224
+ # 终止某个状态机
225
+
226
+ # @param request: Request instance for StopExecution.
227
+ # @type request: :class:`Tencentcloud::asw::V20200722::StopExecutionRequest`
228
+ # @rtype: :class:`Tencentcloud::asw::V20200722::StopExecutionResponse`
229
+ def StopExecution(request)
230
+ body = send_request('StopExecution', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = StopExecutionResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
248
+
249
+ end
250
+ end
251
+ end
252
+ end
@@ -0,0 +1,680 @@
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 Asw
19
+ module V20200722
20
+ # CreateFlowService请求参数结构体
21
+ class CreateFlowServiceRequest < TencentCloud::Common::AbstractModel
22
+ # @param Definition: 定义文本(JSON格式)
23
+ # @type Definition: String
24
+ # @param FlowServiceName: 状态机所属服务名
25
+ # @type FlowServiceName: String
26
+ # @param IsNewRole: 是不是新的角色
27
+ # @type IsNewRole: Boolean
28
+ # @param Type: 状态机类型(EXPRESS,STANDARD)
29
+ # @type Type: String
30
+ # @param FlowServiceChineseName: 状态机所属服务中文名
31
+ # @type FlowServiceChineseName: String
32
+ # @param RoleResource: 角色资源名, 比如: qcs::cam::uin/20103392:roleName/SomeRoleForYourStateMachine
33
+ # @type RoleResource: String
34
+ # @param Description: 备注
35
+ # @type Description: String
36
+ # @param EnableCLS: 是否开启CLS日志投递功能
37
+ # @type EnableCLS: Boolean
38
+ # @param Input: 该状态机的默认输入
39
+ # @type Input: String
40
+
41
+ attr_accessor :Definition, :FlowServiceName, :IsNewRole, :Type, :FlowServiceChineseName, :RoleResource, :Description, :EnableCLS, :Input
42
+
43
+ def initialize(definition=nil, flowservicename=nil, isnewrole=nil, type=nil, flowservicechinesename=nil, roleresource=nil, description=nil, enablecls=nil, input=nil)
44
+ @Definition = definition
45
+ @FlowServiceName = flowservicename
46
+ @IsNewRole = isnewrole
47
+ @Type = type
48
+ @FlowServiceChineseName = flowservicechinesename
49
+ @RoleResource = roleresource
50
+ @Description = description
51
+ @EnableCLS = enablecls
52
+ @Input = input
53
+ end
54
+
55
+ def deserialize(params)
56
+ @Definition = params['Definition']
57
+ @FlowServiceName = params['FlowServiceName']
58
+ @IsNewRole = params['IsNewRole']
59
+ @Type = params['Type']
60
+ @FlowServiceChineseName = params['FlowServiceChineseName']
61
+ @RoleResource = params['RoleResource']
62
+ @Description = params['Description']
63
+ @EnableCLS = params['EnableCLS']
64
+ @Input = params['Input']
65
+ end
66
+ end
67
+
68
+ # CreateFlowService返回参数结构体
69
+ class CreateFlowServiceResponse < TencentCloud::Common::AbstractModel
70
+ # @param FlowServiceResource: 状态机所属服务资源
71
+ # @type FlowServiceResource: String
72
+ # @param CreateDate: 生成日期
73
+ # @type CreateDate: String
74
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
75
+ # @type RequestId: String
76
+
77
+ attr_accessor :FlowServiceResource, :CreateDate, :RequestId
78
+
79
+ def initialize(flowserviceresource=nil, createdate=nil, requestid=nil)
80
+ @FlowServiceResource = flowserviceresource
81
+ @CreateDate = createdate
82
+ @RequestId = requestid
83
+ end
84
+
85
+ def deserialize(params)
86
+ @FlowServiceResource = params['FlowServiceResource']
87
+ @CreateDate = params['CreateDate']
88
+ @RequestId = params['RequestId']
89
+ end
90
+ end
91
+
92
+ # DescribeExecutionHistory请求参数结构体
93
+ class DescribeExecutionHistoryRequest < TencentCloud::Common::AbstractModel
94
+ # @param ExecutionResourceName: 执行资源名
95
+ # @type ExecutionResourceName: String
96
+
97
+ attr_accessor :ExecutionResourceName
98
+
99
+ def initialize(executionresourcename=nil)
100
+ @ExecutionResourceName = executionresourcename
101
+ end
102
+
103
+ def deserialize(params)
104
+ @ExecutionResourceName = params['ExecutionResourceName']
105
+ end
106
+ end
107
+
108
+ # DescribeExecutionHistory返回参数结构体
109
+ class DescribeExecutionHistoryResponse < TencentCloud::Common::AbstractModel
110
+ # @param Events: 执行的事件列表
111
+ # @type Events: Array
112
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
113
+ # @type RequestId: String
114
+
115
+ attr_accessor :Events, :RequestId
116
+
117
+ def initialize(events=nil, requestid=nil)
118
+ @Events = events
119
+ @RequestId = requestid
120
+ end
121
+
122
+ def deserialize(params)
123
+ unless params['Events'].nil?
124
+ @Events = []
125
+ params['Events'].each do |i|
126
+ executionevent_tmp = ExecutionEvent.new
127
+ executionevent_tmp.deserialize(i)
128
+ @Events << executionevent_tmp
129
+ end
130
+ end
131
+ @RequestId = params['RequestId']
132
+ end
133
+ end
134
+
135
+ # DescribeExecution请求参数结构体
136
+ class DescribeExecutionRequest < TencentCloud::Common::AbstractModel
137
+ # @param ExecutionResourceName: 执行资源名
138
+ # @type ExecutionResourceName: String
139
+
140
+ attr_accessor :ExecutionResourceName
141
+
142
+ def initialize(executionresourcename=nil)
143
+ @ExecutionResourceName = executionresourcename
144
+ end
145
+
146
+ def deserialize(params)
147
+ @ExecutionResourceName = params['ExecutionResourceName']
148
+ end
149
+ end
150
+
151
+ # DescribeExecution返回参数结构体
152
+ class DescribeExecutionResponse < TencentCloud::Common::AbstractModel
153
+ # @param ExecutionResourceName: 执行资源名
154
+ # @type ExecutionResourceName: String
155
+ # @param Name: 资源名称
156
+ # @type Name: String
157
+ # @param StartDate: 执行开始时间,毫秒
158
+ # @type StartDate: String
159
+ # @param StopDate: 执行结束时间,毫秒
160
+ # @type StopDate: String
161
+ # @param StateMachineResourceName: 状态机资源名
162
+ # @type StateMachineResourceName: String
163
+ # @param Status: 执行状态。INIT,RUNNING,SUCCEED,FAILED,TERMINATED
164
+ # @type Status: String
165
+ # @param Input: 执行的输入
166
+ # 注意:此字段可能返回 null,表示取不到有效值。
167
+ # @type Input: String
168
+ # @param Output: 执行的输出
169
+ # 注意:此字段可能返回 null,表示取不到有效值。
170
+ # @type Output: String
171
+ # @param ExecutionDefinition: 启动执行时,状态机的定义
172
+ # @type ExecutionDefinition: String
173
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
174
+ # @type RequestId: String
175
+
176
+ attr_accessor :ExecutionResourceName, :Name, :StartDate, :StopDate, :StateMachineResourceName, :Status, :Input, :Output, :ExecutionDefinition, :RequestId
177
+
178
+ def initialize(executionresourcename=nil, name=nil, startdate=nil, stopdate=nil, statemachineresourcename=nil, status=nil, input=nil, output=nil, executiondefinition=nil, requestid=nil)
179
+ @ExecutionResourceName = executionresourcename
180
+ @Name = name
181
+ @StartDate = startdate
182
+ @StopDate = stopdate
183
+ @StateMachineResourceName = statemachineresourcename
184
+ @Status = status
185
+ @Input = input
186
+ @Output = output
187
+ @ExecutionDefinition = executiondefinition
188
+ @RequestId = requestid
189
+ end
190
+
191
+ def deserialize(params)
192
+ @ExecutionResourceName = params['ExecutionResourceName']
193
+ @Name = params['Name']
194
+ @StartDate = params['StartDate']
195
+ @StopDate = params['StopDate']
196
+ @StateMachineResourceName = params['StateMachineResourceName']
197
+ @Status = params['Status']
198
+ @Input = params['Input']
199
+ @Output = params['Output']
200
+ @ExecutionDefinition = params['ExecutionDefinition']
201
+ @RequestId = params['RequestId']
202
+ end
203
+ end
204
+
205
+ # DescribeExecutions请求参数结构体
206
+ class DescribeExecutionsRequest < TencentCloud::Common::AbstractModel
207
+ # @param StateMachineResourceName: 状态机资源名
208
+ # @type StateMachineResourceName: String
209
+ # @param PageSize: 页大小,最大100
210
+ # @type PageSize: Integer
211
+ # @param PageIndex: 页序号,从1开始
212
+ # @type PageIndex: Integer
213
+ # @param FilterExecutionStatus: 按状态过滤条件,INIT,RUNNING,SUCCEED,FAILED,TERMINATED
214
+ # @type FilterExecutionStatus: String
215
+ # @param FilterExecutionResourceName: 按执行名过滤条件
216
+ # @type FilterExecutionResourceName: String
217
+
218
+ attr_accessor :StateMachineResourceName, :PageSize, :PageIndex, :FilterExecutionStatus, :FilterExecutionResourceName
219
+
220
+ def initialize(statemachineresourcename=nil, pagesize=nil, pageindex=nil, filterexecutionstatus=nil, filterexecutionresourcename=nil)
221
+ @StateMachineResourceName = statemachineresourcename
222
+ @PageSize = pagesize
223
+ @PageIndex = pageindex
224
+ @FilterExecutionStatus = filterexecutionstatus
225
+ @FilterExecutionResourceName = filterexecutionresourcename
226
+ end
227
+
228
+ def deserialize(params)
229
+ @StateMachineResourceName = params['StateMachineResourceName']
230
+ @PageSize = params['PageSize']
231
+ @PageIndex = params['PageIndex']
232
+ @FilterExecutionStatus = params['FilterExecutionStatus']
233
+ @FilterExecutionResourceName = params['FilterExecutionResourceName']
234
+ end
235
+ end
236
+
237
+ # DescribeExecutions返回参数结构体
238
+ class DescribeExecutionsResponse < TencentCloud::Common::AbstractModel
239
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
240
+ # @type RequestId: String
241
+
242
+ attr_accessor :RequestId
243
+
244
+ def initialize(requestid=nil)
245
+ @RequestId = requestid
246
+ end
247
+
248
+ def deserialize(params)
249
+ @RequestId = params['RequestId']
250
+ end
251
+ end
252
+
253
+ # DescribeFlowServiceDetail请求参数结构体
254
+ class DescribeFlowServiceDetailRequest < TencentCloud::Common::AbstractModel
255
+ # @param FlowServiceResource: 状态机所属服务资源名
256
+ # @type FlowServiceResource: String
257
+
258
+ attr_accessor :FlowServiceResource
259
+
260
+ def initialize(flowserviceresource=nil)
261
+ @FlowServiceResource = flowserviceresource
262
+ end
263
+
264
+ def deserialize(params)
265
+ @FlowServiceResource = params['FlowServiceResource']
266
+ end
267
+ end
268
+
269
+ # DescribeFlowServiceDetail返回参数结构体
270
+ class DescribeFlowServiceDetailResponse < TencentCloud::Common::AbstractModel
271
+ # @param FlowServiceName: 状态机所属服务名
272
+ # @type FlowServiceName: String
273
+ # @param Status: 状态机状态
274
+ # @type Status: String
275
+ # @param Definition: 定义文本(JSON格式)
276
+ # 注意:此字段可能返回 null,表示取不到有效值。
277
+ # @type Definition: String
278
+ # @param RoleResource: 角色资源名
279
+ # 注意:此字段可能返回 null,表示取不到有效值。
280
+ # @type RoleResource: String
281
+ # @param Type: 状态机的类型,可以为 (EXPRESS/STANDARD)
282
+ # @type Type: String
283
+ # @param CreateDate: 生成时间
284
+ # @type CreateDate: String
285
+ # @param Description: 备注
286
+ # 注意:此字段可能返回 null,表示取不到有效值。
287
+ # @type Description: String
288
+ # @param FlowServiceChineseName: 状态机所属服务中文名
289
+ # 注意:此字段可能返回 null,表示取不到有效值。
290
+ # @type FlowServiceChineseName: String
291
+ # @param EnableCLS: 是否开启日志CLS服务
292
+ # 注意:此字段可能返回 null,表示取不到有效值。
293
+ # @type EnableCLS: Boolean
294
+ # @param CLSUrl: CLS日志查看地址
295
+ # 注意:此字段可能返回 null,表示取不到有效值。
296
+ # @type CLSUrl: String
297
+ # @param FlowInput: 工作流提示输入
298
+ # 注意:此字段可能返回 null,表示取不到有效值。
299
+ # @type FlowInput: String
300
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
301
+ # @type RequestId: String
302
+
303
+ attr_accessor :FlowServiceName, :Status, :Definition, :RoleResource, :Type, :CreateDate, :Description, :FlowServiceChineseName, :EnableCLS, :CLSUrl, :FlowInput, :RequestId
304
+
305
+ def initialize(flowservicename=nil, status=nil, definition=nil, roleresource=nil, type=nil, createdate=nil, description=nil, flowservicechinesename=nil, enablecls=nil, clsurl=nil, flowinput=nil, requestid=nil)
306
+ @FlowServiceName = flowservicename
307
+ @Status = status
308
+ @Definition = definition
309
+ @RoleResource = roleresource
310
+ @Type = type
311
+ @CreateDate = createdate
312
+ @Description = description
313
+ @FlowServiceChineseName = flowservicechinesename
314
+ @EnableCLS = enablecls
315
+ @CLSUrl = clsurl
316
+ @FlowInput = flowinput
317
+ @RequestId = requestid
318
+ end
319
+
320
+ def deserialize(params)
321
+ @FlowServiceName = params['FlowServiceName']
322
+ @Status = params['Status']
323
+ @Definition = params['Definition']
324
+ @RoleResource = params['RoleResource']
325
+ @Type = params['Type']
326
+ @CreateDate = params['CreateDate']
327
+ @Description = params['Description']
328
+ @FlowServiceChineseName = params['FlowServiceChineseName']
329
+ @EnableCLS = params['EnableCLS']
330
+ @CLSUrl = params['CLSUrl']
331
+ @FlowInput = params['FlowInput']
332
+ @RequestId = params['RequestId']
333
+ end
334
+ end
335
+
336
+ # DescribeFlowServices请求参数结构体
337
+ class DescribeFlowServicesRequest < TencentCloud::Common::AbstractModel
338
+ # @param Offset: 偏移量,默认为0。
339
+ # @type Offset: Integer
340
+ # @param Limit: 返回数量,默认为20,最大值为100。
341
+ # @type Limit: Integer
342
+ # @param Filters: 过滤条件,详见下表:实例过滤条件表。每次请求的Filter.Values的上限为5。参数名字仅支持FlowServiceName, Status, Type三种情况
343
+ # @type Filters: Array
344
+
345
+ attr_accessor :Offset, :Limit, :Filters
346
+
347
+ def initialize(offset=nil, limit=nil, filters=nil)
348
+ @Offset = offset
349
+ @Limit = limit
350
+ @Filters = filters
351
+ end
352
+
353
+ def deserialize(params)
354
+ @Offset = params['Offset']
355
+ @Limit = params['Limit']
356
+ unless params['Filters'].nil?
357
+ @Filters = []
358
+ params['Filters'].each do |i|
359
+ filter_tmp = Filter.new
360
+ filter_tmp.deserialize(i)
361
+ @Filters << filter_tmp
362
+ end
363
+ end
364
+ end
365
+ end
366
+
367
+ # DescribeFlowServices返回参数结构体
368
+ class DescribeFlowServicesResponse < TencentCloud::Common::AbstractModel
369
+ # @param FlowServiceSet: 用户的状态机列表
370
+ # @type FlowServiceSet: Array
371
+ # @param TotalCount: 用户的状态机总数
372
+ # @type TotalCount: Integer
373
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
374
+ # @type RequestId: String
375
+
376
+ attr_accessor :FlowServiceSet, :TotalCount, :RequestId
377
+
378
+ def initialize(flowserviceset=nil, totalcount=nil, requestid=nil)
379
+ @FlowServiceSet = flowserviceset
380
+ @TotalCount = totalcount
381
+ @RequestId = requestid
382
+ end
383
+
384
+ def deserialize(params)
385
+ unless params['FlowServiceSet'].nil?
386
+ @FlowServiceSet = []
387
+ params['FlowServiceSet'].each do |i|
388
+ statemachine_tmp = StateMachine.new
389
+ statemachine_tmp.deserialize(i)
390
+ @FlowServiceSet << statemachine_tmp
391
+ end
392
+ end
393
+ @TotalCount = params['TotalCount']
394
+ @RequestId = params['RequestId']
395
+ end
396
+ end
397
+
398
+ # 执行的事件历史
399
+ class ExecutionEvent < TencentCloud::Common::AbstractModel
400
+ # @param ExecutionResourceName: 执行资源名
401
+ # @type ExecutionResourceName: String
402
+ # @param EventId: 自增序号
403
+ # @type EventId: Integer
404
+ # @param EventCategory: 事件类型
405
+ # @type EventCategory: String
406
+ # @param StepName: 步骤节点名称
407
+ # @type StepName: String
408
+ # @param ResourceName: 该步骤引用的资源名
409
+ # @type ResourceName: String
410
+ # @param Timestamp: 该事件发生时间,毫秒
411
+ # @type Timestamp: String
412
+ # @param Content: 事件内容
413
+ # @type Content: String
414
+ # @param Exception: 异常信息
415
+ # 注意:此字段可能返回 null,表示取不到有效值。
416
+ # @type Exception: String
417
+
418
+ attr_accessor :ExecutionResourceName, :EventId, :EventCategory, :StepName, :ResourceName, :Timestamp, :Content, :Exception
419
+
420
+ def initialize(executionresourcename=nil, eventid=nil, eventcategory=nil, stepname=nil, resourcename=nil, timestamp=nil, content=nil, exception=nil)
421
+ @ExecutionResourceName = executionresourcename
422
+ @EventId = eventid
423
+ @EventCategory = eventcategory
424
+ @StepName = stepname
425
+ @ResourceName = resourcename
426
+ @Timestamp = timestamp
427
+ @Content = content
428
+ @Exception = exception
429
+ end
430
+
431
+ def deserialize(params)
432
+ @ExecutionResourceName = params['ExecutionResourceName']
433
+ @EventId = params['EventId']
434
+ @EventCategory = params['EventCategory']
435
+ @StepName = params['StepName']
436
+ @ResourceName = params['ResourceName']
437
+ @Timestamp = params['Timestamp']
438
+ @Content = params['Content']
439
+ @Exception = params['Exception']
440
+ end
441
+ end
442
+
443
+ # 模版过滤类型
444
+ class Filter < TencentCloud::Common::AbstractModel
445
+ # @param Name: 过滤器名字
446
+ # @type Name: String
447
+ # @param Values: 过滤器值的数组
448
+ # @type Values: Array
449
+
450
+ attr_accessor :Name, :Values
451
+
452
+ def initialize(name=nil, values=nil)
453
+ @Name = name
454
+ @Values = values
455
+ end
456
+
457
+ def deserialize(params)
458
+ @Name = params['Name']
459
+ @Values = params['Values']
460
+ end
461
+ end
462
+
463
+ # ModifyFlowService请求参数结构体
464
+ class ModifyFlowServiceRequest < TencentCloud::Common::AbstractModel
465
+ # @param FlowServiceResource: 状态机资源名
466
+ # @type FlowServiceResource: String
467
+ # @param Definition: 定义JSON
468
+ # @type Definition: String
469
+ # @param FlowServiceName: 状态机所属服务名
470
+ # @type FlowServiceName: String
471
+ # @param FlowServiceChineseName: 状态机所属服务中文名
472
+ # @type FlowServiceChineseName: String
473
+ # @param IsNewRole: 是否是新角色
474
+ # @type IsNewRole: Boolean
475
+ # @param Type: 状态机类型
476
+ # @type Type: String
477
+ # @param RoleResource: 角色资源名
478
+ # @type RoleResource: String
479
+ # @param Description: 状态机备注
480
+ # @type Description: String
481
+ # @param EnableCLS: 是否允许日志投递
482
+ # @type EnableCLS: Boolean
483
+
484
+ attr_accessor :FlowServiceResource, :Definition, :FlowServiceName, :FlowServiceChineseName, :IsNewRole, :Type, :RoleResource, :Description, :EnableCLS
485
+
486
+ def initialize(flowserviceresource=nil, definition=nil, flowservicename=nil, flowservicechinesename=nil, isnewrole=nil, type=nil, roleresource=nil, description=nil, enablecls=nil)
487
+ @FlowServiceResource = flowserviceresource
488
+ @Definition = definition
489
+ @FlowServiceName = flowservicename
490
+ @FlowServiceChineseName = flowservicechinesename
491
+ @IsNewRole = isnewrole
492
+ @Type = type
493
+ @RoleResource = roleresource
494
+ @Description = description
495
+ @EnableCLS = enablecls
496
+ end
497
+
498
+ def deserialize(params)
499
+ @FlowServiceResource = params['FlowServiceResource']
500
+ @Definition = params['Definition']
501
+ @FlowServiceName = params['FlowServiceName']
502
+ @FlowServiceChineseName = params['FlowServiceChineseName']
503
+ @IsNewRole = params['IsNewRole']
504
+ @Type = params['Type']
505
+ @RoleResource = params['RoleResource']
506
+ @Description = params['Description']
507
+ @EnableCLS = params['EnableCLS']
508
+ end
509
+ end
510
+
511
+ # ModifyFlowService返回参数结构体
512
+ class ModifyFlowServiceResponse < TencentCloud::Common::AbstractModel
513
+ # @param FlowServiceResource: 状态机资源名
514
+ # @type FlowServiceResource: String
515
+ # @param UpdateDate: 更新时间
516
+ # @type UpdateDate: String
517
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
518
+ # @type RequestId: String
519
+
520
+ attr_accessor :FlowServiceResource, :UpdateDate, :RequestId
521
+
522
+ def initialize(flowserviceresource=nil, updatedate=nil, requestid=nil)
523
+ @FlowServiceResource = flowserviceresource
524
+ @UpdateDate = updatedate
525
+ @RequestId = requestid
526
+ end
527
+
528
+ def deserialize(params)
529
+ @FlowServiceResource = params['FlowServiceResource']
530
+ @UpdateDate = params['UpdateDate']
531
+ @RequestId = params['RequestId']
532
+ end
533
+ end
534
+
535
+ # StartExecution请求参数结构体
536
+ class StartExecutionRequest < TencentCloud::Common::AbstractModel
537
+ # @param StateMachineResourceName: 状态机资源名
538
+ # @type StateMachineResourceName: String
539
+ # @param Input: 输入参数
540
+ # @type Input: String
541
+ # @param Name: 本次执行名。如果不填,系统会自动生成。如果填,应保证状态机下唯一
542
+ # @type Name: String
543
+
544
+ attr_accessor :StateMachineResourceName, :Input, :Name
545
+
546
+ def initialize(statemachineresourcename=nil, input=nil, name=nil)
547
+ @StateMachineResourceName = statemachineresourcename
548
+ @Input = input
549
+ @Name = name
550
+ end
551
+
552
+ def deserialize(params)
553
+ @StateMachineResourceName = params['StateMachineResourceName']
554
+ @Input = params['Input']
555
+ @Name = params['Name']
556
+ end
557
+ end
558
+
559
+ # StartExecution返回参数结构体
560
+ class StartExecutionResponse < TencentCloud::Common::AbstractModel
561
+ # @param ExecutionResourceName: 执行资源名
562
+ # @type ExecutionResourceName: String
563
+ # @param StartDate: 执行开始时间
564
+ # @type StartDate: String
565
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
566
+ # @type RequestId: String
567
+
568
+ attr_accessor :ExecutionResourceName, :StartDate, :RequestId
569
+
570
+ def initialize(executionresourcename=nil, startdate=nil, requestid=nil)
571
+ @ExecutionResourceName = executionresourcename
572
+ @StartDate = startdate
573
+ @RequestId = requestid
574
+ end
575
+
576
+ def deserialize(params)
577
+ @ExecutionResourceName = params['ExecutionResourceName']
578
+ @StartDate = params['StartDate']
579
+ @RequestId = params['RequestId']
580
+ end
581
+ end
582
+
583
+ # 状态机
584
+ class StateMachine < TencentCloud::Common::AbstractModel
585
+ # @param FlowServiceResource: 状态机资源
586
+ # @type FlowServiceResource: String
587
+ # @param Type: 状态机类型。EXPRESS,STANDARD
588
+ # @type Type: String
589
+ # @param FlowServiceName: 状态机名称
590
+ # @type FlowServiceName: String
591
+ # @param FlowServiceChineseName: 状态机中文名
592
+ # @type FlowServiceChineseName: String
593
+ # @param CreateDate: 创建时间。timestamp
594
+ # @type CreateDate: String
595
+ # @param ModifyDate: 修改时间。timestamp
596
+ # @type ModifyDate: String
597
+ # @param Status: 状态机状态
598
+ # @type Status: String
599
+ # @param Creator: 创建者的subAccountUin
600
+ # 注意:此字段可能返回 null,表示取不到有效值。
601
+ # @type Creator: String
602
+ # @param Modifier: 修改者的subAccountUin
603
+ # 注意:此字段可能返回 null,表示取不到有效值。
604
+ # @type Modifier: String
605
+ # @param FlowServiceId: 状态机id
606
+ # @type FlowServiceId: String
607
+ # @param TemplateId: 模板id
608
+ # @type TemplateId: String
609
+ # @param Description: 备注
610
+ # @type Description: String
611
+
612
+ attr_accessor :FlowServiceResource, :Type, :FlowServiceName, :FlowServiceChineseName, :CreateDate, :ModifyDate, :Status, :Creator, :Modifier, :FlowServiceId, :TemplateId, :Description
613
+
614
+ def initialize(flowserviceresource=nil, type=nil, flowservicename=nil, flowservicechinesename=nil, createdate=nil, modifydate=nil, status=nil, creator=nil, modifier=nil, flowserviceid=nil, templateid=nil, description=nil)
615
+ @FlowServiceResource = flowserviceresource
616
+ @Type = type
617
+ @FlowServiceName = flowservicename
618
+ @FlowServiceChineseName = flowservicechinesename
619
+ @CreateDate = createdate
620
+ @ModifyDate = modifydate
621
+ @Status = status
622
+ @Creator = creator
623
+ @Modifier = modifier
624
+ @FlowServiceId = flowserviceid
625
+ @TemplateId = templateid
626
+ @Description = description
627
+ end
628
+
629
+ def deserialize(params)
630
+ @FlowServiceResource = params['FlowServiceResource']
631
+ @Type = params['Type']
632
+ @FlowServiceName = params['FlowServiceName']
633
+ @FlowServiceChineseName = params['FlowServiceChineseName']
634
+ @CreateDate = params['CreateDate']
635
+ @ModifyDate = params['ModifyDate']
636
+ @Status = params['Status']
637
+ @Creator = params['Creator']
638
+ @Modifier = params['Modifier']
639
+ @FlowServiceId = params['FlowServiceId']
640
+ @TemplateId = params['TemplateId']
641
+ @Description = params['Description']
642
+ end
643
+ end
644
+
645
+ # StopExecution请求参数结构体
646
+ class StopExecutionRequest < TencentCloud::Common::AbstractModel
647
+ # @param ExecutionQrn: 执行名称
648
+ # @type ExecutionQrn: String
649
+
650
+ attr_accessor :ExecutionQrn
651
+
652
+ def initialize(executionqrn=nil)
653
+ @ExecutionQrn = executionqrn
654
+ end
655
+
656
+ def deserialize(params)
657
+ @ExecutionQrn = params['ExecutionQrn']
658
+ end
659
+ end
660
+
661
+ # StopExecution返回参数结构体
662
+ class StopExecutionResponse < TencentCloud::Common::AbstractModel
663
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
664
+ # @type RequestId: String
665
+
666
+ attr_accessor :RequestId
667
+
668
+ def initialize(requestid=nil)
669
+ @RequestId = requestid
670
+ end
671
+
672
+ def deserialize(params)
673
+ @RequestId = params['RequestId']
674
+ end
675
+ end
676
+
677
+ end
678
+ end
679
+ end
680
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-asw
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.200
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 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
+ ASW.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-asw.rb
38
+ - lib/v20200722/client.rb
39
+ - lib/v20200722/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-asw
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 - ASW
66
+ test_files: []