Class: TencentCloud::Iss::V20230517::AddStreamAuthRequest

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

Overview

AddStreamAuth请求参数结构体

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) ⇒ AddStreamAuthRequest

Returns a new instance of AddStreamAuthRequest.



1056
1057
1058
1059
1060
1061
1062
1063
1064
# File 'lib/v20230517/models.rb', line 1056

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

Instance Attribute Details

#IdObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

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

  • PullSecret:

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

  • PullExpired:

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

  • PushState:

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

  • PushSecret:

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

  • PushExpired:

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



1054
1055
1056
# File 'lib/v20230517/models.rb', line 1054

def Id
  @Id
end

#PullExpiredObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

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

  • PullSecret:

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

  • PullExpired:

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

  • PushState:

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

  • PushSecret:

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

  • PushExpired:

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



1054
1055
1056
# File 'lib/v20230517/models.rb', line 1054

def PullExpired
  @PullExpired
end

#PullSecretObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

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

  • PullSecret:

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

  • PullExpired:

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

  • PushState:

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

  • PushSecret:

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

  • PushExpired:

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



1054
1055
1056
# File 'lib/v20230517/models.rb', line 1054

def PullSecret
  @PullSecret
end

#PullStateObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

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

  • PullSecret:

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

  • PullExpired:

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

  • PushState:

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

  • PushSecret:

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

  • PushExpired:

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



1054
1055
1056
# File 'lib/v20230517/models.rb', line 1054

def PullState
  @PullState
end

#PushExpiredObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

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

  • PullSecret:

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

  • PullExpired:

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

  • PushState:

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

  • PushSecret:

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

  • PushExpired:

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



1054
1055
1056
# File 'lib/v20230517/models.rb', line 1054

def PushExpired
  @PushExpired
end

#PushSecretObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

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

  • PullSecret:

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

  • PullExpired:

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

  • PushState:

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

  • PushSecret:

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

  • PushExpired:

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



1054
1055
1056
# File 'lib/v20230517/models.rb', line 1054

def PushSecret
  @PushSecret
end

#PushStateObject

Parameters:

  • Id:

    鉴权配置ID(uuid)

  • PullState:

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

  • PullSecret:

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

  • PullExpired:

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

  • PushState:

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

  • PushSecret:

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

  • PushExpired:

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



1054
1055
1056
# File 'lib/v20230517/models.rb', line 1054

def PushState
  @PushState
end

Instance Method Details

#deserialize(params) ⇒ Object



1066
1067
1068
1069
1070
1071
1072
1073
1074
# File 'lib/v20230517/models.rb', line 1066

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