tencentcloud-sdk-bi 1.0.312

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: 5143250258acbcbed30eb9e45fe836e1d1785670
4
+ data.tar.gz: 7a8c6394e36eaf6cc4b8ac7aef06b66946fdfc49
5
+ SHA512:
6
+ metadata.gz: 2ab3e5667d25817f219909701a8319f09a554ebedbd193ed20f882f1501de8c3b43c639ed2d3911252009b437f975984c53ed0ab63e167cf92f401774631264b
7
+ data.tar.gz: 7ae76eee39b13f3a7a0c7a20c3bf5f79e21c8e765117c1b50aaa45cb92288e70fa951e204b57013c2f94341b2a51c43e854a198cb0c56b0680781e59bc3587bc
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.312
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20220105/client'
6
+ require_relative 'v20220105/models'
7
+
8
+ module TencentCloud
9
+ module Bi
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 Bi
21
+ module V20220105
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-01-05'
26
+ api_endpoint = 'bi.tencentcloudapi.com'
27
+ sdk_version = 'BI_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 申请延长Token可用时间接口-强鉴权
33
+
34
+ # @param request: Request instance for ApplyEmbedInterval.
35
+ # @type request: :class:`Tencentcloud::bi::V20220105::ApplyEmbedIntervalRequest`
36
+ # @rtype: :class:`Tencentcloud::bi::V20220105::ApplyEmbedIntervalResponse`
37
+ def ApplyEmbedInterval(request)
38
+ body = send_request('ApplyEmbedInterval', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = ApplyEmbedIntervalResponse.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 CreateEmbedToken.
59
+ # @type request: :class:`Tencentcloud::bi::V20220105::CreateEmbedTokenRequest`
60
+ # @rtype: :class:`Tencentcloud::bi::V20220105::CreateEmbedTokenResponse`
61
+ def CreateEmbedToken(request)
62
+ body = send_request('CreateEmbedToken', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateEmbedTokenResponse.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,239 @@
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 Bi
19
+ module V20220105
20
+ # ApplyEmbedInterval请求参数结构体
21
+ class ApplyEmbedIntervalRequest < TencentCloud::Common::AbstractModel
22
+ # @param ProjectId: 分享项目id,必选
23
+ # @type ProjectId: Integer
24
+ # @param PageId: 分享页面id,嵌出看板时此为空值0
25
+ # @type PageId: Integer
26
+ # @param BIToken: 需要申请延期的Token
27
+ # @type BIToken: String
28
+ # @param ExtraParam: 备用字段
29
+ # @type ExtraParam: String
30
+ # @param Scope: panel,看板;page,页面
31
+ # @type Scope: String
32
+
33
+ attr_accessor :ProjectId, :PageId, :BIToken, :ExtraParam, :Scope
34
+
35
+ def initialize(projectid=nil, pageid=nil, bitoken=nil, extraparam=nil, scope=nil)
36
+ @ProjectId = projectid
37
+ @PageId = pageid
38
+ @BIToken = bitoken
39
+ @ExtraParam = extraparam
40
+ @Scope = scope
41
+ end
42
+
43
+ def deserialize(params)
44
+ @ProjectId = params['ProjectId']
45
+ @PageId = params['PageId']
46
+ @BIToken = params['BIToken']
47
+ @ExtraParam = params['ExtraParam']
48
+ @Scope = params['Scope']
49
+ end
50
+ end
51
+
52
+ # ApplyEmbedInterval返回参数结构体
53
+ class ApplyEmbedIntervalResponse < TencentCloud::Common::AbstractModel
54
+ # @param Extra: 额外参数
55
+ # 注意:此字段可能返回 null,表示取不到有效值。
56
+ # @type Extra: String
57
+ # @param Data: 结果数据
58
+ # 注意:此字段可能返回 null,表示取不到有效值。
59
+ # @type Data: :class:`Tencentcloud::Bi.v20220105.models.ApplyEmbedTokenInfo`
60
+ # @param Msg: 结果描述
61
+ # 注意:此字段可能返回 null,表示取不到有效值。
62
+ # @type Msg: String
63
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
64
+ # @type RequestId: String
65
+
66
+ attr_accessor :Extra, :Data, :Msg, :RequestId
67
+
68
+ def initialize(extra=nil, data=nil, msg=nil, requestid=nil)
69
+ @Extra = extra
70
+ @Data = data
71
+ @Msg = msg
72
+ @RequestId = requestid
73
+ end
74
+
75
+ def deserialize(params)
76
+ @Extra = params['Extra']
77
+ unless params['Data'].nil?
78
+ @Data = ApplyEmbedTokenInfo.new
79
+ @Data.deserialize(params['Data'])
80
+ end
81
+ @Msg = params['Msg']
82
+ @RequestId = params['RequestId']
83
+ end
84
+ end
85
+
86
+ # 申请Token延期
87
+ class ApplyEmbedTokenInfo < TencentCloud::Common::AbstractModel
88
+ # @param Result: 申请结果
89
+ # 注意:此字段可能返回 null,表示取不到有效值。
90
+ # @type Result: Boolean
91
+
92
+ attr_accessor :Result
93
+
94
+ def initialize(result=nil)
95
+ @Result = result
96
+ end
97
+
98
+ def deserialize(params)
99
+ @Result = params['Result']
100
+ end
101
+ end
102
+
103
+ # CreateEmbedToken请求参数结构体
104
+ class CreateEmbedTokenRequest < TencentCloud::Common::AbstractModel
105
+ # @param ProjectId: 分享项目id,必选
106
+ # @type ProjectId: Integer
107
+ # @param PageId: 分享页面id,嵌出看板时此为空值0
108
+ # @type PageId: Integer
109
+ # @param Scope: page表示嵌出页面,panel表嵌出整个看板
110
+ # @type Scope: String
111
+ # @param ExpireTime: 过期时间。 单位:分钟 最大值:240。即,4小时 默认值:240
112
+ # @type ExpireTime: String
113
+ # @param ExtraParam: 备用字段
114
+ # @type ExtraParam: String
115
+
116
+ attr_accessor :ProjectId, :PageId, :Scope, :ExpireTime, :ExtraParam
117
+
118
+ def initialize(projectid=nil, pageid=nil, scope=nil, expiretime=nil, extraparam=nil)
119
+ @ProjectId = projectid
120
+ @PageId = pageid
121
+ @Scope = scope
122
+ @ExpireTime = expiretime
123
+ @ExtraParam = extraparam
124
+ end
125
+
126
+ def deserialize(params)
127
+ @ProjectId = params['ProjectId']
128
+ @PageId = params['PageId']
129
+ @Scope = params['Scope']
130
+ @ExpireTime = params['ExpireTime']
131
+ @ExtraParam = params['ExtraParam']
132
+ end
133
+ end
134
+
135
+ # CreateEmbedToken返回参数结构体
136
+ class CreateEmbedTokenResponse < TencentCloud::Common::AbstractModel
137
+ # @param Extra: 额外信息
138
+ # 注意:此字段可能返回 null,表示取不到有效值。
139
+ # @type Extra: String
140
+ # @param Data: 数据
141
+ # 注意:此字段可能返回 null,表示取不到有效值。
142
+ # @type Data: :class:`Tencentcloud::Bi.v20220105.models.EmbedTokenInfo`
143
+ # @param Msg: 结果描述
144
+ # 注意:此字段可能返回 null,表示取不到有效值。
145
+ # @type Msg: String
146
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
147
+ # @type RequestId: String
148
+
149
+ attr_accessor :Extra, :Data, :Msg, :RequestId
150
+
151
+ def initialize(extra=nil, data=nil, msg=nil, requestid=nil)
152
+ @Extra = extra
153
+ @Data = data
154
+ @Msg = msg
155
+ @RequestId = requestid
156
+ end
157
+
158
+ def deserialize(params)
159
+ @Extra = params['Extra']
160
+ unless params['Data'].nil?
161
+ @Data = EmbedTokenInfo.new
162
+ @Data.deserialize(params['Data'])
163
+ end
164
+ @Msg = params['Msg']
165
+ @RequestId = params['RequestId']
166
+ end
167
+ end
168
+
169
+ # 报表嵌出数据结构-强鉴权
170
+ class EmbedTokenInfo < TencentCloud::Common::AbstractModel
171
+ # @param Id: 信息标识
172
+ # 注意:此字段可能返回 null,表示取不到有效值。
173
+ # @type Id: Integer
174
+ # @param BIToken: 令牌
175
+ # 注意:此字段可能返回 null,表示取不到有效值。
176
+ # @type BIToken: String
177
+ # @param ProjectId: 项目Id
178
+ # 注意:此字段可能返回 null,表示取不到有效值。
179
+ # @type ProjectId: String
180
+ # @param CreatedUser: 创建人
181
+ # 注意:此字段可能返回 null,表示取不到有效值。
182
+ # @type CreatedUser: String
183
+ # @param CreatedAt: 创建时间
184
+ # 注意:此字段可能返回 null,表示取不到有效值。
185
+ # @type CreatedAt: String
186
+ # @param UpdatedUser: 更新人
187
+ # 注意:此字段可能返回 null,表示取不到有效值。
188
+ # @type UpdatedUser: String
189
+ # @param UpdatedAt: 更新时间
190
+ # 注意:此字段可能返回 null,表示取不到有效值。
191
+ # @type UpdatedAt: String
192
+ # @param PageId: 页面Id
193
+ # 注意:此字段可能返回 null,表示取不到有效值。
194
+ # @type PageId: String
195
+ # @param ExtraParam: 备用
196
+ # 注意:此字段可能返回 null,表示取不到有效值。
197
+ # @type ExtraParam: String
198
+ # @param Scope: 嵌出类型
199
+ # 注意:此字段可能返回 null,表示取不到有效值。
200
+ # @type Scope: String
201
+ # @param ExpireTime: 过期时间,分钟为单位,最大240
202
+ # 注意:此字段可能返回 null,表示取不到有效值。
203
+ # @type ExpireTime: Integer
204
+
205
+ attr_accessor :Id, :BIToken, :ProjectId, :CreatedUser, :CreatedAt, :UpdatedUser, :UpdatedAt, :PageId, :ExtraParam, :Scope, :ExpireTime
206
+
207
+ def initialize(id=nil, bitoken=nil, projectid=nil, createduser=nil, createdat=nil, updateduser=nil, updatedat=nil, pageid=nil, extraparam=nil, scope=nil, expiretime=nil)
208
+ @Id = id
209
+ @BIToken = bitoken
210
+ @ProjectId = projectid
211
+ @CreatedUser = createduser
212
+ @CreatedAt = createdat
213
+ @UpdatedUser = updateduser
214
+ @UpdatedAt = updatedat
215
+ @PageId = pageid
216
+ @ExtraParam = extraparam
217
+ @Scope = scope
218
+ @ExpireTime = expiretime
219
+ end
220
+
221
+ def deserialize(params)
222
+ @Id = params['Id']
223
+ @BIToken = params['BIToken']
224
+ @ProjectId = params['ProjectId']
225
+ @CreatedUser = params['CreatedUser']
226
+ @CreatedAt = params['CreatedAt']
227
+ @UpdatedUser = params['UpdatedUser']
228
+ @UpdatedAt = params['UpdatedAt']
229
+ @PageId = params['PageId']
230
+ @ExtraParam = params['ExtraParam']
231
+ @Scope = params['Scope']
232
+ @ExpireTime = params['ExpireTime']
233
+ end
234
+ end
235
+
236
+ end
237
+ end
238
+ end
239
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-bi
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.312
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-05-15 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
+ BI.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-bi.rb
38
+ - lib/v20220105/client.rb
39
+ - lib/v20220105/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-bi
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 - BI
66
+ test_files: []