tencentcloud-sdk-car 3.0.541 → 3.0.543

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: cd6d4342c7db5e5e72960fed09b57e176ce3e26d
4
+ data.tar.gz: 4609cf4b50f90dc0e44a71879e31674c61c75a0f
5
5
  SHA512:
6
- metadata.gz: b102a079dc8d894e07f0bdd534b5164b9188733eb82050375792b196f5f8cc3eea6963da19407f1af7d0aa79d5487c08cd0bb5e7de4d07ddffad95753c1c779a
7
- data.tar.gz: 48f003b9a3789f9293bc76bb7a81a0e9849161eeae464b0f01f72346c772621970d441f6c6a14cc5421878e79ea4fb7b7b35383e339339256ae1192499a2e4c6
6
+ metadata.gz: 9b6b6c23e9cbd07fb6a39b35e5667898ac38ce90b751e202ae8d8df01f648e0fe3cae80d5d0e315cb261f51264a59e6314c8785ea1dda1479ac46d74c5e246e8
7
+ data.tar.gz: 344ca4227819d7fc24a376e90a32acf6cf3e0eb2ccc08b1295cbda0caef7c2cb7ddd36f8de36fd26a22d1d455707b6e5744d8c195b37e100a39f8c6eb49300f8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.541
1
+ 3.0.543
@@ -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.543
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-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common