tencentcloud-sdk-live 3.0.409 → 3.0.411

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff760995bc31b45e45cfcee8d8956f1fe5f2bb43
4
- data.tar.gz: 34869afe8cd3c0109f5f3c594efd5b875e618cbc
3
+ metadata.gz: 5735b1af09e6465eafe2537f8e0fd82931ef3d02
4
+ data.tar.gz: 335f88367f1044224ef5ff84db320732b6528a8b
5
5
  SHA512:
6
- metadata.gz: b848402ccc3fc3c474bcc701431cc9f744be2c75c92c55681859d6e54925a66df2a830dbb93f47ab34af3d84c0e586d853cc9bc55f1862817b182d565336fb7a
7
- data.tar.gz: 32cf81c96a4443d8be34f9b2b0397d4a14c05884aa380e5708ec4be5c59d5952ebf95db45d29e69d2c3792c39564ea266f239de8e2c98c5335fc18197e69128e
6
+ metadata.gz: 891fa2a5dd410dc5110b724ca96d8d32e0e6f3f00d55fac29ecebcfc2ad7c14914dc8dfab6c4c85a08f8fa4b42f0a9a3189c6307abc06212bde74b8da6bc3289
7
+ data.tar.gz: 88582324e6e5f0d509e6a32b9131813fcae03cac6789717bb4b94775c637d8a8b2685ae5dc5ce0e97dbda88f9a24d06c609ecd9f3538f7390717e732822d9a0c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.409
1
+ 3.0.411
@@ -104,6 +104,30 @@ module TencentCloud
104
104
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
105
105
  end
106
106
 
107
+ # 验证用户是否拥有特定直播域名。
108
+
109
+ # @param request: Request instance for AuthenticateDomainOwner.
110
+ # @type request: :class:`Tencentcloud::live::V20180801::AuthenticateDomainOwnerRequest`
111
+ # @rtype: :class:`Tencentcloud::live::V20180801::AuthenticateDomainOwnerResponse`
112
+ def AuthenticateDomainOwner(request)
113
+ body = send_request('AuthenticateDomainOwner', request.serialize)
114
+ response = JSON.parse(body)
115
+ if response['Response'].key?('Error') == false
116
+ model = AuthenticateDomainOwnerResponse.new
117
+ model.deserialize(response['Response'])
118
+ model
119
+ else
120
+ code = response['Response']['Error']['Code']
121
+ message = response['Response']['Error']['Message']
122
+ reqid = response['Response']['RequestId']
123
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
124
+ end
125
+ rescue TencentCloud::Common::TencentCloudSDKException => e
126
+ raise e
127
+ rescue StandardError => e
128
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
129
+ end
130
+
107
131
  # 该接口用来取消混流。用法与 mix_streamv2.cancel_mix_stream 基本一致。
108
132
 
109
133
  # @param request: Request instance for CancelCommonMixStream.
@@ -92,15 +92,23 @@ module TencentCloud
92
92
  # 1 :小程序直播 。
93
93
  # 默认值: 0。
94
94
  # @type IsMiniProgramLive: Integer
95
+ # @param VerifyOwnerType: 域名归属校验类型。
96
+ # 可取值(与 AuthenticateDomainOwner 接口的 VerifyType 参数一致。):
97
+ # dnsCheck :立即验证配置 dns 的解析记录是否与待验证内容一致,成功则保存记录。
98
+ # fileCheck :立即验证 web 文件是否与待验证内容一致,成功则保存记录。
99
+ # dbCheck : 检查是否已经验证成功过。
100
+ # 若不传默认为 dbCheck 。
101
+ # @type VerifyOwnerType: String
95
102
 
96
- attr_accessor :DomainName, :DomainType, :PlayType, :IsDelayLive, :IsMiniProgramLive
103
+ attr_accessor :DomainName, :DomainType, :PlayType, :IsDelayLive, :IsMiniProgramLive, :VerifyOwnerType
97
104
 
98
- def initialize(domainname=nil, domaintype=nil, playtype=nil, isdelaylive=nil, isminiprogramlive=nil)
105
+ def initialize(domainname=nil, domaintype=nil, playtype=nil, isdelaylive=nil, isminiprogramlive=nil, verifyownertype=nil)
99
106
  @DomainName = domainname
100
107
  @DomainType = domaintype
101
108
  @PlayType = playtype
102
109
  @IsDelayLive = isdelaylive
103
110
  @IsMiniProgramLive = isminiprogramlive
111
+ @VerifyOwnerType = verifyownertype
104
112
  end
105
113
 
106
114
  def deserialize(params)
@@ -109,6 +117,7 @@ module TencentCloud
109
117
  @PlayType = params['PlayType']
110
118
  @IsDelayLive = params['IsDelayLive']
111
119
  @IsMiniProgramLive = params['IsMiniProgramLive']
120
+ @VerifyOwnerType = params['VerifyOwnerType']
112
121
  end
113
122
  end
114
123
 
@@ -187,6 +196,62 @@ module TencentCloud
187
196
  end
188
197
  end
189
198
 
199
+ # AuthenticateDomainOwner请求参数结构体
200
+ class AuthenticateDomainOwnerRequest < TencentCloud::Common::AbstractModel
201
+ # @param DomainName: 要验证的域名。
202
+ # @type DomainName: String
203
+ # @param VerifyType: 验证类型。可取值:
204
+ # dnsCheck :立即验证配置 dns 的解析记录是否与待验证内容一致,成功则保存记录。
205
+ # fileCheck :立即验证 web 文件是否与待验证内容一致,成功则保存记录。
206
+ # dbCheck : 检查是否已经验证成功过。
207
+ # @type VerifyType: String
208
+
209
+ attr_accessor :DomainName, :VerifyType
210
+
211
+ def initialize(domainname=nil, verifytype=nil)
212
+ @DomainName = domainname
213
+ @VerifyType = verifytype
214
+ end
215
+
216
+ def deserialize(params)
217
+ @DomainName = params['DomainName']
218
+ @VerifyType = params['VerifyType']
219
+ end
220
+ end
221
+
222
+ # AuthenticateDomainOwner返回参数结构体
223
+ class AuthenticateDomainOwnerResponse < TencentCloud::Common::AbstractModel
224
+ # @param Content: 验证内容。
225
+ # VerifyType 传 dnsCheck 时,为要配的 TXT 记录值。
226
+ # VerifyType 传 fileCheck 时,为文件内容。
227
+ # @type Content: String
228
+ # @param Status: 域名验证状态。
229
+ # >=0 为已验证归属。
230
+ # <0 未验证归属权。
231
+ # @type Status: Integer
232
+ # @param MainDomain: DomainName 对应的主域名。
233
+ # 同一主域名下的所有域名只需成功验证一次,后续均无需再验证。
234
+ # @type MainDomain: String
235
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
236
+ # @type RequestId: String
237
+
238
+ attr_accessor :Content, :Status, :MainDomain, :RequestId
239
+
240
+ def initialize(content=nil, status=nil, maindomain=nil, requestid=nil)
241
+ @Content = content
242
+ @Status = status
243
+ @MainDomain = maindomain
244
+ @RequestId = requestid
245
+ end
246
+
247
+ def deserialize(params)
248
+ @Content = params['Content']
249
+ @Status = params['Status']
250
+ @MainDomain = params['MainDomain']
251
+ @RequestId = params['RequestId']
252
+ end
253
+ end
254
+
190
255
  # 带宽信息
191
256
  class BandwidthInfo < TencentCloud::Common::AbstractModel
192
257
  # @param Time: 返回格式:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-live
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.409
4
+ version: 3.0.411
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-14 00:00:00.000000000 Z
11
+ date: 2022-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common