Class: TencentCloud::Iss::V20230517::AddStreamAuthData

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230517/models.rb

Overview

设置推拉流鉴权返回数据结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, pullstate = nil, pullsecret = nil, pullexpired = nil, pushstate = nil, pushsecret = nil, pushexpired = nil, appid = nil) ⇒ AddStreamAuthData

Returns a new instance of AddStreamAuthData.



1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
# File 'lib/v20230517/models.rb', line 1014

def initialize(id=nil, pullstate=nil, pullsecret=nil, pullexpired=nil, pushstate=nil, pushsecret=nil, pushexpired=nil, appid=nil)
  @Id = id
  @PullState = pullstate
  @PullSecret = pullsecret
  @PullExpired = pullexpired
  @PushState = pushstate
  @PushSecret = pushsecret
  @PushExpired = pushexpired
  @AppId = appid
end

Instance Attribute Details

#AppIdObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

    是否开播放鉴权(1:开启,0:关闭)

  • PullSecret:

    播放密钥(仅支持字母数字,长度0-10位)

  • PullExpired:

    播放过期时间(单位:分钟)

  • PushState:

    是否开启推流鉴权(1:开启,0:关闭)

  • PushSecret:

    推流密钥(仅支持字母数字,长度0-10位)

  • PushExpired:

    推流过期时间(单位:分钟)

  • AppId:

    用户ID



1012
1013
1014
# File 'lib/v20230517/models.rb', line 1012

def AppId
  @AppId
end

#IdObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

    是否开播放鉴权(1:开启,0:关闭)

  • PullSecret:

    播放密钥(仅支持字母数字,长度0-10位)

  • PullExpired:

    播放过期时间(单位:分钟)

  • PushState:

    是否开启推流鉴权(1:开启,0:关闭)

  • PushSecret:

    推流密钥(仅支持字母数字,长度0-10位)

  • PushExpired:

    推流过期时间(单位:分钟)

  • AppId:

    用户ID



1012
1013
1014
# File 'lib/v20230517/models.rb', line 1012

def Id
  @Id
end

#PullExpiredObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

    是否开播放鉴权(1:开启,0:关闭)

  • PullSecret:

    播放密钥(仅支持字母数字,长度0-10位)

  • PullExpired:

    播放过期时间(单位:分钟)

  • PushState:

    是否开启推流鉴权(1:开启,0:关闭)

  • PushSecret:

    推流密钥(仅支持字母数字,长度0-10位)

  • PushExpired:

    推流过期时间(单位:分钟)

  • AppId:

    用户ID



1012
1013
1014
# File 'lib/v20230517/models.rb', line 1012

def PullExpired
  @PullExpired
end

#PullSecretObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

    是否开播放鉴权(1:开启,0:关闭)

  • PullSecret:

    播放密钥(仅支持字母数字,长度0-10位)

  • PullExpired:

    播放过期时间(单位:分钟)

  • PushState:

    是否开启推流鉴权(1:开启,0:关闭)

  • PushSecret:

    推流密钥(仅支持字母数字,长度0-10位)

  • PushExpired:

    推流过期时间(单位:分钟)

  • AppId:

    用户ID



1012
1013
1014
# File 'lib/v20230517/models.rb', line 1012

def PullSecret
  @PullSecret
end

#PullStateObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

    是否开播放鉴权(1:开启,0:关闭)

  • PullSecret:

    播放密钥(仅支持字母数字,长度0-10位)

  • PullExpired:

    播放过期时间(单位:分钟)

  • PushState:

    是否开启推流鉴权(1:开启,0:关闭)

  • PushSecret:

    推流密钥(仅支持字母数字,长度0-10位)

  • PushExpired:

    推流过期时间(单位:分钟)

  • AppId:

    用户ID



1012
1013
1014
# File 'lib/v20230517/models.rb', line 1012

def PullState
  @PullState
end

#PushExpiredObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

    是否开播放鉴权(1:开启,0:关闭)

  • PullSecret:

    播放密钥(仅支持字母数字,长度0-10位)

  • PullExpired:

    播放过期时间(单位:分钟)

  • PushState:

    是否开启推流鉴权(1:开启,0:关闭)

  • PushSecret:

    推流密钥(仅支持字母数字,长度0-10位)

  • PushExpired:

    推流过期时间(单位:分钟)

  • AppId:

    用户ID



1012
1013
1014
# File 'lib/v20230517/models.rb', line 1012

def PushExpired
  @PushExpired
end

#PushSecretObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

    是否开播放鉴权(1:开启,0:关闭)

  • PullSecret:

    播放密钥(仅支持字母数字,长度0-10位)

  • PullExpired:

    播放过期时间(单位:分钟)

  • PushState:

    是否开启推流鉴权(1:开启,0:关闭)

  • PushSecret:

    推流密钥(仅支持字母数字,长度0-10位)

  • PushExpired:

    推流过期时间(单位:分钟)

  • AppId:

    用户ID



1012
1013
1014
# File 'lib/v20230517/models.rb', line 1012

def PushSecret
  @PushSecret
end

#PushStateObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

    是否开播放鉴权(1:开启,0:关闭)

  • PullSecret:

    播放密钥(仅支持字母数字,长度0-10位)

  • PullExpired:

    播放过期时间(单位:分钟)

  • PushState:

    是否开启推流鉴权(1:开启,0:关闭)

  • PushSecret:

    推流密钥(仅支持字母数字,长度0-10位)

  • PushExpired:

    推流过期时间(单位:分钟)

  • AppId:

    用户ID



1012
1013
1014
# File 'lib/v20230517/models.rb', line 1012

def PushState
  @PushState
end

Instance Method Details

#deserialize(params) ⇒ Object



1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
# File 'lib/v20230517/models.rb', line 1025

def deserialize(params)
  @Id = params['Id']
  @PullState = params['PullState']
  @PullSecret = params['PullSecret']
  @PullExpired = params['PullExpired']
  @PushState = params['PushState']
  @PushSecret = params['PushSecret']
  @PushExpired = params['PushExpired']
  @AppId = params['AppId']
end