tencentcloud-sdk-car 3.0.541 → 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: bd8a772898600280b19bd801a0d975ae61383f97
4
- data.tar.gz: 415ad4e200ea1fa54e439d45c69078c39223ab4f
3
+ metadata.gz: 55f780036693361ba372a66c201ee1380c967c7d
4
+ data.tar.gz: 8a0d1e52613f16160dfcb3c1623b8e2cefe5a8a2
5
5
  SHA512:
6
- metadata.gz: b102a079dc8d894e07f0bdd534b5164b9188733eb82050375792b196f5f8cc3eea6963da19407f1af7d0aa79d5487c08cd0bb5e7de4d07ddffad95753c1c779a
7
- data.tar.gz: 48f003b9a3789f9293bc76bb7a81a0e9849161eeae464b0f01f72346c772621970d441f6c6a14cc5421878e79ea4fb7b7b35383e339339256ae1192499a2e4c6
6
+ metadata.gz: bb67dedbcae204ab759c9f30904e9aca71cd96639688344080b8891c748c108747ea14940ef4f5eee90ee2e7f858123633e76d3844f4fa81889f7340f72731d5
7
+ data.tar.gz: 85c75c6254fe054e58ec2c6a7c8480cdc717d5a8eeb79c112ce6b2daca1091d7afc90c4b2361b4922c1424b86be1a321b4b8fd77fced0679fd3f1b0b99d2a895
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.541
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.541
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-30 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