Class: TencentCloud::Waf::V20180125::HostStatus

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

Overview

设置WAF状态的结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, domainid = nil, status = nil, instanceid = nil) ⇒ HostStatus

Returns a new instance of HostStatus.



8508
8509
8510
8511
8512
8513
# File 'lib/v20180125/models.rb', line 8508

def initialize(domain=nil, domainid=nil, status=nil, instanceid=nil)
  @Domain = domain
  @DomainId = domainid
  @Status = status
  @InstanceID = instanceid
end

Instance Attribute Details

#DomainObject

Parameters:

  • Domain:

    域名

  • DomainId:

    域名ID

  • Status:

    WAF的开关,1:开,0:关

  • InstanceID:

    实例ID



8506
8507
8508
# File 'lib/v20180125/models.rb', line 8506

def Domain
  @Domain
end

#DomainIdObject

Parameters:

  • Domain:

    域名

  • DomainId:

    域名ID

  • Status:

    WAF的开关,1:开,0:关

  • InstanceID:

    实例ID



8506
8507
8508
# File 'lib/v20180125/models.rb', line 8506

def DomainId
  @DomainId
end

#InstanceIDObject

Parameters:

  • Domain:

    域名

  • DomainId:

    域名ID

  • Status:

    WAF的开关,1:开,0:关

  • InstanceID:

    实例ID



8506
8507
8508
# File 'lib/v20180125/models.rb', line 8506

def InstanceID
  @InstanceID
end

#StatusObject

Parameters:

  • Domain:

    域名

  • DomainId:

    域名ID

  • Status:

    WAF的开关,1:开,0:关

  • InstanceID:

    实例ID



8506
8507
8508
# File 'lib/v20180125/models.rb', line 8506

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



8515
8516
8517
8518
8519
8520
# File 'lib/v20180125/models.rb', line 8515

def deserialize(params)
  @Domain = params['Domain']
  @DomainId = params['DomainId']
  @Status = params['Status']
  @InstanceID = params['InstanceID']
end