tencentcloud-sdk-ba 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: eae7a0f86f0dd1f2b8475b6bbd7bf805e5478ca1
4
+ data.tar.gz: acf4f7d91fe49d855461c62ca0ee9eb0f60b6706
5
+ SHA512:
6
+ metadata.gz: 3a1b20bba3379dca20baf09f58f054b703f78bd772e1c04f949129b458b54b9bc02654631cdae1af72bba22af4f558838610e032e01fb79c2dfd828f77bbfc1b
7
+ data.tar.gz: cb64ed6dd66e404b058fc02eaa80de85f2c9d16481787d1998b32ed37b7121b65c3d9126d6b9dc7b45f19c6d316d74c5c9d423b12db7a988007ac18e2e473eff
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 'v20200720/client'
6
+ require_relative 'v20200720/models'
7
+
8
+ module TencentCloud
9
+ module Ba
10
+ end
11
+ end
@@ -0,0 +1,109 @@
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 Ba
21
+ module V20200720
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2020-07-20'
26
+ api_endpoint = 'ba.tencentcloudapi.com'
27
+ sdk_version = 'BA_' + 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 CreateWeappQRUrl.
35
+ # @type request: :class:`Tencentcloud::ba::V20200720::CreateWeappQRUrlRequest`
36
+ # @rtype: :class:`Tencentcloud::ba::V20200720::CreateWeappQRUrlResponse`
37
+ def CreateWeappQRUrl(request)
38
+ body = send_request('CreateWeappQRUrl', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateWeappQRUrlResponse.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 DescribeGetAuthInfo.
59
+ # @type request: :class:`Tencentcloud::ba::V20200720::DescribeGetAuthInfoRequest`
60
+ # @rtype: :class:`Tencentcloud::ba::V20200720::DescribeGetAuthInfoResponse`
61
+ def DescribeGetAuthInfo(request)
62
+ body = send_request('DescribeGetAuthInfo', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeGetAuthInfoResponse.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
+ # 将备案ICP订单下的一个网站信息 同步给订单下其他网站,需要被同步的网站被检查通过(isCheck:true);
81
+ # 只有指定的网站信息字段能被同步
82
+
83
+ # @param request: Request instance for SyncIcpOrderWebInfo.
84
+ # @type request: :class:`Tencentcloud::ba::V20200720::SyncIcpOrderWebInfoRequest`
85
+ # @rtype: :class:`Tencentcloud::ba::V20200720::SyncIcpOrderWebInfoResponse`
86
+ def SyncIcpOrderWebInfo(request)
87
+ body = send_request('SyncIcpOrderWebInfo', request.serialize)
88
+ response = JSON.parse(body)
89
+ if response['Response'].key?('Error') == false
90
+ model = SyncIcpOrderWebInfoResponse.new
91
+ model.deserialize(response['Response'])
92
+ model
93
+ else
94
+ code = response['Response']['Error']['Code']
95
+ message = response['Response']['Error']['Message']
96
+ reqid = response['Response']['RequestId']
97
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
98
+ end
99
+ rescue TencentCloud::Common::TencentCloudSDKException => e
100
+ raise e
101
+ rescue StandardError => e
102
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
103
+ end
104
+
105
+
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,146 @@
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 Ba
19
+ module V20200720
20
+ # CreateWeappQRUrl请求参数结构体
21
+ class CreateWeappQRUrlRequest < TencentCloud::Common::AbstractModel
22
+ # @param SessionKey: 代理角色临时密钥的Token
23
+ # @type SessionKey: String
24
+
25
+ attr_accessor :SessionKey
26
+
27
+ def initialize(sessionkey=nil)
28
+ @SessionKey = sessionkey
29
+ end
30
+
31
+ def deserialize(params)
32
+ @SessionKey = params['SessionKey']
33
+ end
34
+ end
35
+
36
+ # CreateWeappQRUrl返回参数结构体
37
+ class CreateWeappQRUrlResponse < TencentCloud::Common::AbstractModel
38
+ # @param Url: 渠道备案小程序二维码
39
+ # @type Url: String
40
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
41
+ # @type RequestId: String
42
+
43
+ attr_accessor :Url, :RequestId
44
+
45
+ def initialize(url=nil, requestid=nil)
46
+ @Url = url
47
+ @RequestId = requestid
48
+ end
49
+
50
+ def deserialize(params)
51
+ @Url = params['Url']
52
+ @RequestId = params['RequestId']
53
+ end
54
+ end
55
+
56
+ # DescribeGetAuthInfo请求参数结构体
57
+ class DescribeGetAuthInfoRequest < TencentCloud::Common::AbstractModel
58
+
59
+
60
+ def initialize()
61
+ end
62
+
63
+ def deserialize(params)
64
+ end
65
+ end
66
+
67
+ # DescribeGetAuthInfo返回参数结构体
68
+ class DescribeGetAuthInfoResponse < TencentCloud::Common::AbstractModel
69
+ # @param IsTenPayMasked: 实名认证状态:0未实名,1已实名
70
+ # @type IsTenPayMasked: String
71
+ # @param IsAuthenticated: 实名认证类型:0个人,1企业
72
+ # @type IsAuthenticated: String
73
+ # @param Type: 认证类型,个人0,企业1
74
+ # @type Type: String
75
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
76
+ # @type RequestId: String
77
+
78
+ attr_accessor :IsTenPayMasked, :IsAuthenticated, :Type, :RequestId
79
+
80
+ def initialize(istenpaymasked=nil, isauthenticated=nil, type=nil, requestid=nil)
81
+ @IsTenPayMasked = istenpaymasked
82
+ @IsAuthenticated = isauthenticated
83
+ @Type = type
84
+ @RequestId = requestid
85
+ end
86
+
87
+ def deserialize(params)
88
+ @IsTenPayMasked = params['IsTenPayMasked']
89
+ @IsAuthenticated = params['IsAuthenticated']
90
+ @Type = params['Type']
91
+ @RequestId = params['RequestId']
92
+ end
93
+ end
94
+
95
+ # SyncIcpOrderWebInfo请求参数结构体
96
+ class SyncIcpOrderWebInfoRequest < TencentCloud::Common::AbstractModel
97
+ # @param IcpOrderId: 备案ICP订单号
98
+ # @type IcpOrderId: String
99
+ # @param SourceWebId: 订单里的webId
100
+ # @type SourceWebId: String
101
+ # @param TargetWebIds: 订单里的webId 数组(如果传入的webIds含有 订单中不包含的webId,会自动跳过)
102
+ # @type TargetWebIds: Array
103
+ # @param SyncFields: 网站信息字段名 数组
104
+ # @type SyncFields: Array
105
+ # @param CheckSamePerson: 是否先判断同步的网站负责人是否一致 (这里会判断 sitePersonName, sitePersonCerType,sitePersonCerNum三个字段完全一致) 默认:true. 非必要 不建议关闭修改该参数默认值
106
+ # @type CheckSamePerson: Boolean
107
+
108
+ attr_accessor :IcpOrderId, :SourceWebId, :TargetWebIds, :SyncFields, :CheckSamePerson
109
+
110
+ def initialize(icporderid=nil, sourcewebid=nil, targetwebids=nil, syncfields=nil, checksameperson=nil)
111
+ @IcpOrderId = icporderid
112
+ @SourceWebId = sourcewebid
113
+ @TargetWebIds = targetwebids
114
+ @SyncFields = syncfields
115
+ @CheckSamePerson = checksameperson
116
+ end
117
+
118
+ def deserialize(params)
119
+ @IcpOrderId = params['IcpOrderId']
120
+ @SourceWebId = params['SourceWebId']
121
+ @TargetWebIds = params['TargetWebIds']
122
+ @SyncFields = params['SyncFields']
123
+ @CheckSamePerson = params['CheckSamePerson']
124
+ end
125
+ end
126
+
127
+ # SyncIcpOrderWebInfo返回参数结构体
128
+ class SyncIcpOrderWebInfoResponse < TencentCloud::Common::AbstractModel
129
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
130
+ # @type RequestId: String
131
+
132
+ attr_accessor :RequestId
133
+
134
+ def initialize(requestid=nil)
135
+ @RequestId = requestid
136
+ end
137
+
138
+ def deserialize(params)
139
+ @RequestId = params['RequestId']
140
+ end
141
+ end
142
+
143
+ end
144
+ end
145
+ end
146
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-ba
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
+ BA.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-ba.rb
38
+ - lib/v20200720/client.rb
39
+ - lib/v20200720/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-ba
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 - BA
66
+ test_files: []