Class: TencentCloud::Iss::V20230517::UpdateUserDeviceRequest

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

Overview

UpdateUserDevice请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deviceid = nil, name = nil, transportprotocol = nil, password = nil, description = nil, ip = nil, port = nil, username = nil, protocoltype = nil, audioswitch = nil, subscribeswitch = nil, silentframeswitch = nil) ⇒ UpdateUserDeviceRequest

Returns a new instance of UpdateUserDeviceRequest.



8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
# File 'lib/v20230517/models.rb', line 8001

def initialize(deviceid=nil, name=nil, transportprotocol=nil, password=nil, description=nil, ip=nil, port=nil, username=nil, protocoltype=nil, audioswitch=nil, subscribeswitch=nil, silentframeswitch=nil)
  @DeviceId = deviceid
  @Name = name
  @TransportProtocol = transportprotocol
  @Password = password
  @Description = description
  @Ip = ip
  @Port = port
  @Username = username
  @ProtocolType = protocoltype
  @AudioSwitch = audioswitch
  @SubscribeSwitch = subscribeswitch
  @SilentFrameSwitch = silentframeswitch
end

Instance Attribute Details

#AudioSwitchObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def AudioSwitch
  @AudioSwitch
end

#DescriptionObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def Description
  @Description
end

#DeviceIdObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def DeviceId
  @DeviceId
end

#IpObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def Ip
  @Ip
end

#NameObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def Name
  @Name
end

#PasswordObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def Password
  @Password
end

#PortObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def Port
  @Port
end

#ProtocolTypeObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def ProtocolType
  @ProtocolType
end

#SilentFrameSwitchObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def SilentFrameSwitch
  @SilentFrameSwitch
end

#SubscribeSwitchObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def SubscribeSwitch
  @SubscribeSwitch
end

#TransportProtocolObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def TransportProtocol
  @TransportProtocol
end

#UsernameObject

Parameters:

  • DeviceId:

    设备ID(从获取设备列表接口ListDevices中获取)

  • Name:

    设备名称(仅支持中文、英文、数字、空格、中英文括号、_、-, 长度不超过128位)

  • TransportProtocol:

    设备流传输协议,仅国标设备有效,填0则不做更改(1:UDP,2:TCP)

  • Password:

    设备密码(仅国标,网关设备支持,长度不超过 64 位)

  • Description:

    设备描述(长度不超过128位)

  • Ip:

    设备接入Ip(仅网关接入支持)

  • Port:

    设备Port(仅网关接入支持)

  • Username:

    设备用户名(仅网关接入支持)

  • ProtocolType:

    网关设备接入协议(仅网关接入支持)

  • AudioSwitch:

    音频关开(0:关闭;1:开启)默认开启,关闭时丢弃音频

  • SubscribeSwitch:

    订阅开关(0:关闭;1:开启)默认开启,开启状态下会订阅设备通道变化,仅国标NVR设备有效

  • SilentFrameSwitch:

    是否开启静音帧(0:关闭;1 开启)



7999
8000
8001
# File 'lib/v20230517/models.rb', line 7999

def Username
  @Username
end

Instance Method Details

#deserialize(params) ⇒ Object



8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
# File 'lib/v20230517/models.rb', line 8016

def deserialize(params)
  @DeviceId = params['DeviceId']
  @Name = params['Name']
  @TransportProtocol = params['TransportProtocol']
  @Password = params['Password']
  @Description = params['Description']
  @Ip = params['Ip']
  @Port = params['Port']
  @Username = params['Username']
  @ProtocolType = params['ProtocolType']
  @AudioSwitch = params['AudioSwitch']
  @SubscribeSwitch = params['SubscribeSwitch']
  @SilentFrameSwitch = params['SilentFrameSwitch']
end