Class: TencentCloud::Waf::V20180125::UpdateProtectionModesRequest

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

Overview

UpdateProtectionModes请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, edition = nil, typeids = nil, mode = nil) ⇒ UpdateProtectionModesRequest

Returns a new instance of UpdateProtectionModesRequest.



19112
19113
19114
19115
19116
19117
# File 'lib/v20180125/models.rb', line 19112

def initialize(domain=nil, edition=nil, typeids=nil, mode=nil)
  @Domain = domain
  @Edition = edition
  @TypeIDs = typeids
  @Mode = mode
end

Instance Attribute Details

#DomainObject

Parameters:

  • Domain:

    域名

  • Edition:

    资源类型

  • TypeIDs:

    大类规则ID

  • Mode:

    0表示观察,1表示拦截



19110
19111
19112
# File 'lib/v20180125/models.rb', line 19110

def Domain
  @Domain
end

#EditionObject

Parameters:

  • Domain:

    域名

  • Edition:

    资源类型

  • TypeIDs:

    大类规则ID

  • Mode:

    0表示观察,1表示拦截



19110
19111
19112
# File 'lib/v20180125/models.rb', line 19110

def Edition
  @Edition
end

#ModeObject

Parameters:

  • Domain:

    域名

  • Edition:

    资源类型

  • TypeIDs:

    大类规则ID

  • Mode:

    0表示观察,1表示拦截



19110
19111
19112
# File 'lib/v20180125/models.rb', line 19110

def Mode
  @Mode
end

#TypeIDsObject

Parameters:

  • Domain:

    域名

  • Edition:

    资源类型

  • TypeIDs:

    大类规则ID

  • Mode:

    0表示观察,1表示拦截



19110
19111
19112
# File 'lib/v20180125/models.rb', line 19110

def TypeIDs
  @TypeIDs
end

Instance Method Details

#deserialize(params) ⇒ Object



19119
19120
19121
19122
19123
19124
# File 'lib/v20180125/models.rb', line 19119

def deserialize(params)
  @Domain = params['Domain']
  @Edition = params['Edition']
  @TypeIDs = params['TypeIDs']
  @Mode = params['Mode']
end