Class: TencentCloud::Teo::V20220901::StandardDebugParameters

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

Overview

Debug 调试结构体。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, allowclientiplist = nil, expires = nil) ⇒ StandardDebugParameters

Returns a new instance of StandardDebugParameters.



21975
21976
21977
21978
21979
# File 'lib/v20220901/models.rb', line 21975

def initialize(switch=nil, allowclientiplist=nil, expires=nil)
  @Switch = switch
  @AllowClientIPList = allowclientiplist
  @Expires = expires
end

Instance Attribute Details

#AllowClientIPListObject

<li>on:开启;</li> <li>off:关闭。</li>

Parameters:

  • Switch:

    Debug 功能开关,取值有:

  • AllowClientIPList:

    允许的客户端来源。支持填写 IPv4 以及 IPv6 的 IP 网段。0.0.0.0/0 表示允许所有 IPv4 客户端进行调试;::/0 表示允许所有 IPv6 客户端进行调试;不能填写 127.0.0.1。
    注意:当 Switch 字段为 on 时,此字段必填,且填写个数为 1~100;当 Switch 为 off 时,无需填写此字段,若填写则不生效。

  • Expires:

    Debug 功能到期时间。超出设置的时间,则功能失效。
    注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。



21973
21974
21975
# File 'lib/v20220901/models.rb', line 21973

def AllowClientIPList
  @AllowClientIPList
end

#ExpiresObject

<li>on:开启;</li> <li>off:关闭。</li>

Parameters:

  • Switch:

    Debug 功能开关,取值有:

  • AllowClientIPList:

    允许的客户端来源。支持填写 IPv4 以及 IPv6 的 IP 网段。0.0.0.0/0 表示允许所有 IPv4 客户端进行调试;::/0 表示允许所有 IPv6 客户端进行调试;不能填写 127.0.0.1。
    注意:当 Switch 字段为 on 时,此字段必填,且填写个数为 1~100;当 Switch 为 off 时,无需填写此字段,若填写则不生效。

  • Expires:

    Debug 功能到期时间。超出设置的时间,则功能失效。
    注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。



21973
21974
21975
# File 'lib/v20220901/models.rb', line 21973

def Expires
  @Expires
end

#SwitchObject

<li>on:开启;</li> <li>off:关闭。</li>

Parameters:

  • Switch:

    Debug 功能开关,取值有:

  • AllowClientIPList:

    允许的客户端来源。支持填写 IPv4 以及 IPv6 的 IP 网段。0.0.0.0/0 表示允许所有 IPv4 客户端进行调试;::/0 表示允许所有 IPv6 客户端进行调试;不能填写 127.0.0.1。
    注意:当 Switch 字段为 on 时,此字段必填,且填写个数为 1~100;当 Switch 为 off 时,无需填写此字段,若填写则不生效。

  • Expires:

    Debug 功能到期时间。超出设置的时间,则功能失效。
    注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。



21973
21974
21975
# File 'lib/v20220901/models.rb', line 21973

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



21981
21982
21983
21984
21985
# File 'lib/v20220901/models.rb', line 21981

def deserialize(params)
  @Switch = params['Switch']
  @AllowClientIPList = params['AllowClientIPList']
  @Expires = params['Expires']
end