Class: TencentCloud::Lighthouse::V20200324::InstanceViolationDetail

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

Overview

实例违规详情。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source = nil, state = nil, reason = nil, content = nil) ⇒ InstanceViolationDetail

Returns a new instance of InstanceViolationDetail.



6153
6154
6155
6156
6157
6158
# File 'lib/v20200324/models.rb', line 6153

def initialize(source=nil, state=nil, reason=nil, content=nil)
  @Source = source
  @State = state
  @Reason = reason
  @Content = content
end

Instance Attribute Details

#ContentObject

Parameters:

  • Source:

    来源:RESTRICT:封禁、FREEZW:冻结

  • State:

    是否允许自助解封:1是,2否

  • Reason:

    违规类型

  • Content:

    违规内容(URL、关联域名)



6151
6152
6153
# File 'lib/v20200324/models.rb', line 6151

def Content
  @Content
end

#ReasonObject

Parameters:

  • Source:

    来源:RESTRICT:封禁、FREEZW:冻结

  • State:

    是否允许自助解封:1是,2否

  • Reason:

    违规类型

  • Content:

    违规内容(URL、关联域名)



6151
6152
6153
# File 'lib/v20200324/models.rb', line 6151

def Reason
  @Reason
end

#SourceObject

Parameters:

  • Source:

    来源:RESTRICT:封禁、FREEZW:冻结

  • State:

    是否允许自助解封:1是,2否

  • Reason:

    违规类型

  • Content:

    违规内容(URL、关联域名)



6151
6152
6153
# File 'lib/v20200324/models.rb', line 6151

def Source
  @Source
end

#StateObject

Parameters:

  • Source:

    来源:RESTRICT:封禁、FREEZW:冻结

  • State:

    是否允许自助解封:1是,2否

  • Reason:

    违规类型

  • Content:

    违规内容(URL、关联域名)



6151
6152
6153
# File 'lib/v20200324/models.rb', line 6151

def State
  @State
end

Instance Method Details

#deserialize(params) ⇒ Object



6160
6161
6162
6163
6164
6165
# File 'lib/v20200324/models.rb', line 6160

def deserialize(params)
  @Source = params['Source']
  @State = params['State']
  @Reason = params['Reason']
  @Content = params['Content']
end