tencentcloud-sdk-car 3.0.662 → 3.0.664
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220110/client.rb +24 -0
- data/lib/v20220110/models.rb +36 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59fd0ef26b8ad01a2b28534d40778734b837d131
|
4
|
+
data.tar.gz: ec4c3dc7087eeeceef8419d26aebe0922ce78ef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d58d90e683512ef137a5474ea54d8360b75c6bbfe6464c31a0e2265b9e97d9c6824d2b45da5e82c67fb402cb9e057380fdcd9b75f2acacb41018a66e9115b6f3
|
7
|
+
data.tar.gz: bbc3ffb5cb9e78322797da9e2c39c040de55b95b5d89188dc06040f3c9fe974cdc1ee4723302ee4474c3f17c892182282eafd53d7d5192932d30526648b5b5ae
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.664
|
data/lib/v20220110/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 开始云端推流到指定URL
|
129
|
+
|
130
|
+
# @param request: Request instance for StartPublishStreamWithURL.
|
131
|
+
# @type request: :class:`Tencentcloud::car::V20220110::StartPublishStreamWithURLRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::car::V20220110::StartPublishStreamWithURLResponse`
|
133
|
+
def StartPublishStreamWithURL(request)
|
134
|
+
body = send_request('StartPublishStreamWithURL', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = StartPublishStreamWithURLResponse.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
|
+
|
128
152
|
# 停止云端推流
|
129
153
|
|
130
154
|
# @param request: Request instance for StopPublishStream.
|
data/lib/v20220110/models.rb
CHANGED
@@ -205,6 +205,42 @@ module TencentCloud
|
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
208
|
+
# StartPublishStreamWithURL请求参数结构体
|
209
|
+
class StartPublishStreamWithURLRequest < TencentCloud::Common::AbstractModel
|
210
|
+
# @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。
|
211
|
+
# @type UserId: String
|
212
|
+
# @param PublishStreamURL: 推流地址,仅支持rtmp协议。
|
213
|
+
# @type PublishStreamURL: String
|
214
|
+
|
215
|
+
attr_accessor :UserId, :PublishStreamURL
|
216
|
+
|
217
|
+
def initialize(userid=nil, publishstreamurl=nil)
|
218
|
+
@UserId = userid
|
219
|
+
@PublishStreamURL = publishstreamurl
|
220
|
+
end
|
221
|
+
|
222
|
+
def deserialize(params)
|
223
|
+
@UserId = params['UserId']
|
224
|
+
@PublishStreamURL = params['PublishStreamURL']
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
# StartPublishStreamWithURL返回参数结构体
|
229
|
+
class StartPublishStreamWithURLResponse < TencentCloud::Common::AbstractModel
|
230
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
231
|
+
# @type RequestId: String
|
232
|
+
|
233
|
+
attr_accessor :RequestId
|
234
|
+
|
235
|
+
def initialize(requestid=nil)
|
236
|
+
@RequestId = requestid
|
237
|
+
end
|
238
|
+
|
239
|
+
def deserialize(params)
|
240
|
+
@RequestId = params['RequestId']
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
208
244
|
# StopPublishStream请求参数结构体
|
209
245
|
class StopPublishStreamRequest < TencentCloud::Common::AbstractModel
|
210
246
|
# @param UserId: 唯一用户身份标识,由业务方自定义,平台不予理解。(可根据业务需要决定使用用户的唯一身份标识或是使用时间戳随机生成;在用户重连时应保持UserId不变)
|
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.
|
4
|
+
version: 3.0.664
|
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-09-
|
11
|
+
date: 2023-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|