tencentcloud-sdk-car 1.0.302

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: 2d1bcd18b91c2879b28789e5ed35ac554d1444dc
4
+ data.tar.gz: 5572ab2a6d4010f16b8b8ec1a69091aa9635b380
5
+ SHA512:
6
+ metadata.gz: f159d42e85780f355268cc874fad9fa8adbb4c3ef13294b4be44997d953ad38f587b3ff43da244aceb8cf5f91d527afa2cb4e3aad7e826492be8086e13494a4a
7
+ data.tar.gz: 7ea8796da7b2c9dee4099f224189b94267baf9bf57f3f66096a7cdac0d23e2bf5a117a721cf25cd6894fbc910ee5c56e297b1ed5d4e84a60e52ac1376a3f1787
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.302
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20220110/client'
6
+ require_relative 'v20220110/models'
7
+
8
+ module TencentCloud
9
+ module Car
10
+ end
11
+ end
@@ -0,0 +1,108 @@
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 Car
21
+ module V20220110
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2022-01-10'
26
+ api_endpoint = 'car.tencentcloudapi.com'
27
+ sdk_version = 'CAR_' + 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 ApplyConcurrent.
35
+ # @type request: :class:`Tencentcloud::car::V20220110::ApplyConcurrentRequest`
36
+ # @rtype: :class:`Tencentcloud::car::V20220110::ApplyConcurrentResponse`
37
+ def ApplyConcurrent(request)
38
+ body = send_request('ApplyConcurrent', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = ApplyConcurrentResponse.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 CreateSession.
59
+ # @type request: :class:`Tencentcloud::car::V20220110::CreateSessionRequest`
60
+ # @rtype: :class:`Tencentcloud::car::V20220110::CreateSessionResponse`
61
+ def CreateSession(request)
62
+ body = send_request('CreateSession', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateSessionResponse.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 DestroySession.
83
+ # @type request: :class:`Tencentcloud::car::V20220110::DestroySessionRequest`
84
+ # @rtype: :class:`Tencentcloud::car::V20220110::DestroySessionResponse`
85
+ def DestroySession(request)
86
+ body = send_request('DestroySession', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DestroySessionResponse.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
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,143 @@
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 Car
19
+ module V20220110
20
+ # ApplyConcurrent请求参数结构体
21
+ class ApplyConcurrentRequest < TencentCloud::Common::AbstractModel
22
+ # @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
23
+ # @type UserId: String
24
+ # @param UserIp: 用户IP
25
+ # @type UserIp: String
26
+ # @param ProjectId: 项目ID
27
+ # @type ProjectId: String
28
+ # @param ApplicationVersionId: 应用版本ID
29
+ # @type ApplicationVersionId: String
30
+
31
+ attr_accessor :UserId, :UserIp, :ProjectId, :ApplicationVersionId
32
+
33
+ def initialize(userid=nil, userip=nil, projectid=nil, applicationversionid=nil)
34
+ @UserId = userid
35
+ @UserIp = userip
36
+ @ProjectId = projectid
37
+ @ApplicationVersionId = applicationversionid
38
+ end
39
+
40
+ def deserialize(params)
41
+ @UserId = params['UserId']
42
+ @UserIp = params['UserIp']
43
+ @ProjectId = params['ProjectId']
44
+ @ApplicationVersionId = params['ApplicationVersionId']
45
+ end
46
+ end
47
+
48
+ # ApplyConcurrent返回参数结构体
49
+ class ApplyConcurrentResponse < TencentCloud::Common::AbstractModel
50
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
51
+ # @type RequestId: String
52
+
53
+ attr_accessor :RequestId
54
+
55
+ def initialize(requestid=nil)
56
+ @RequestId = requestid
57
+ end
58
+
59
+ def deserialize(params)
60
+ @RequestId = params['RequestId']
61
+ end
62
+ end
63
+
64
+ # CreateSession请求参数结构体
65
+ class CreateSessionRequest < TencentCloud::Common::AbstractModel
66
+ # @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
67
+ # @type UserId: String
68
+ # @param UserIp: 用户IP
69
+ # @type UserIp: String
70
+ # @param ClientSession: 客户端session信息,从SDK请求中获得
71
+ # @type ClientSession: String
72
+
73
+ attr_accessor :UserId, :UserIp, :ClientSession
74
+
75
+ def initialize(userid=nil, userip=nil, clientsession=nil)
76
+ @UserId = userid
77
+ @UserIp = userip
78
+ @ClientSession = clientsession
79
+ end
80
+
81
+ def deserialize(params)
82
+ @UserId = params['UserId']
83
+ @UserIp = params['UserIp']
84
+ @ClientSession = params['ClientSession']
85
+ end
86
+ end
87
+
88
+ # CreateSession返回参数结构体
89
+ class CreateSessionResponse < TencentCloud::Common::AbstractModel
90
+ # @param ServerSession: 服务端session信息,返回给SDK
91
+ # @type ServerSession: String
92
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
93
+ # @type RequestId: String
94
+
95
+ attr_accessor :ServerSession, :RequestId
96
+
97
+ def initialize(serversession=nil, requestid=nil)
98
+ @ServerSession = serversession
99
+ @RequestId = requestid
100
+ end
101
+
102
+ def deserialize(params)
103
+ @ServerSession = params['ServerSession']
104
+ @RequestId = params['RequestId']
105
+ end
106
+ end
107
+
108
+ # DestroySession请求参数结构体
109
+ class DestroySessionRequest < TencentCloud::Common::AbstractModel
110
+ # @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
111
+ # @type UserId: String
112
+
113
+ attr_accessor :UserId
114
+
115
+ def initialize(userid=nil)
116
+ @UserId = userid
117
+ end
118
+
119
+ def deserialize(params)
120
+ @UserId = params['UserId']
121
+ end
122
+ end
123
+
124
+ # DestroySession返回参数结构体
125
+ class DestroySessionResponse < TencentCloud::Common::AbstractModel
126
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
127
+ # @type RequestId: String
128
+
129
+ attr_accessor :RequestId
130
+
131
+ def initialize(requestid=nil)
132
+ @RequestId = requestid
133
+ end
134
+
135
+ def deserialize(params)
136
+ @RequestId = params['RequestId']
137
+ end
138
+ end
139
+
140
+ end
141
+ end
142
+ end
143
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-car
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.302
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-04-20 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
+ CAR.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-car.rb
38
+ - lib/v20220110/client.rb
39
+ - lib/v20220110/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-car
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 - CAR
66
+ test_files: []