tencentcloud-sdk-car 3.0.540 → 3.0.542

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67f5045fe77cacd0d4cf339a074a0fe1cc6b40b7
4
- data.tar.gz: 07f4740f0eaa51c1f8502d5b94b93c79458a380a
3
+ metadata.gz: 55f780036693361ba372a66c201ee1380c967c7d
4
+ data.tar.gz: 8a0d1e52613f16160dfcb3c1623b8e2cefe5a8a2
5
5
  SHA512:
6
- metadata.gz: 420bb1d58403f32a5e029b13f006fad2f785b1829a6dfdf65c7829408d1b58c9f56c7aa68703c245c250a9713dfb6cfc62d6e55aed477203f6b2aecae2db4606
7
- data.tar.gz: e89dfc33348cd0d54ff915f480dee1511ec176a4095764c8bb549bdc85a086911a0fac09d779e1c0eb2570171faa003652d2a9570d17b89cbdec1433fc949f5b
6
+ metadata.gz: bb67dedbcae204ab759c9f30904e9aca71cd96639688344080b8891c748c108747ea14940ef4f5eee90ee2e7f858123633e76d3844f4fa81889f7340f72731d5
7
+ data.tar.gz: 85c75c6254fe054e58ec2c6a7c8480cdc717d5a8eeb79c112ce6b2daca1091d7afc90c4b2361b4922c1424b86be1a321b4b8fd77fced0679fd3f1b0b99d2a895
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.540
1
+ 3.0.542
@@ -101,6 +101,54 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 开始云端推流
105
+
106
+ # @param request: Request instance for StartPublishStream.
107
+ # @type request: :class:`Tencentcloud::car::V20220110::StartPublishStreamRequest`
108
+ # @rtype: :class:`Tencentcloud::car::V20220110::StartPublishStreamResponse`
109
+ def StartPublishStream(request)
110
+ body = send_request('StartPublishStream', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = StartPublishStreamResponse.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 StopPublishStream.
131
+ # @type request: :class:`Tencentcloud::car::V20220110::StopPublishStreamRequest`
132
+ # @rtype: :class:`Tencentcloud::car::V20220110::StopPublishStreamResponse`
133
+ def StopPublishStream(request)
134
+ body = send_request('StopPublishStream', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = StopPublishStreamResponse.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
+
104
152
 
105
153
  end
106
154
  end
@@ -147,6 +147,70 @@ module TencentCloud
147
147
  end
148
148
  end
149
149
 
150
+ # StartPublishStream请求参数结构体
151
+ class StartPublishStreamRequest < TencentCloud::Common::AbstractModel
152
+ # @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(UserId将作为StreamId进行推流,比如绑定推流域名为abc.livepush.myqcloud.com,那么推流地址为rtmp://abc.livepush.myqcloud.com/live/UserId?txSecret=xxx&txTime=xxx)
153
+ # @type UserId: String
154
+
155
+ attr_accessor :UserId
156
+
157
+ def initialize(userid=nil)
158
+ @UserId = userid
159
+ end
160
+
161
+ def deserialize(params)
162
+ @UserId = params['UserId']
163
+ end
164
+ end
165
+
166
+ # StartPublishStream返回参数结构体
167
+ class StartPublishStreamResponse < TencentCloud::Common::AbstractModel
168
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
169
+ # @type RequestId: String
170
+
171
+ attr_accessor :RequestId
172
+
173
+ def initialize(requestid=nil)
174
+ @RequestId = requestid
175
+ end
176
+
177
+ def deserialize(params)
178
+ @RequestId = params['RequestId']
179
+ end
180
+ end
181
+
182
+ # StopPublishStream请求参数结构体
183
+ class StopPublishStreamRequest < TencentCloud::Common::AbstractModel
184
+ # @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
185
+ # @type UserId: String
186
+
187
+ attr_accessor :UserId
188
+
189
+ def initialize(userid=nil)
190
+ @UserId = userid
191
+ end
192
+
193
+ def deserialize(params)
194
+ @UserId = params['UserId']
195
+ end
196
+ end
197
+
198
+ # StopPublishStream返回参数结构体
199
+ class StopPublishStreamResponse < TencentCloud::Common::AbstractModel
200
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
201
+ # @type RequestId: String
202
+
203
+ attr_accessor :RequestId
204
+
205
+ def initialize(requestid=nil)
206
+ @RequestId = requestid
207
+ end
208
+
209
+ def deserialize(params)
210
+ @RequestId = params['RequestId']
211
+ end
212
+ end
213
+
150
214
  end
151
215
  end
152
216
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-car
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.540
4
+ version: 3.0.542
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-29 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common