Class: TencentCloud::Dayu::V20180709::NewL7RuleEntry

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

Overview

L7规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(protocol = nil, domain = nil, sourcetype = nil, keeptime = nil, sourcelist = nil, lbtype = nil, keepenable = nil, ruleid = nil, certtype = nil, sslid = nil, cert = nil, privatekey = nil, rulename = nil, status = nil, ccstatus = nil, ccenable = nil, ccthreshold = nil, cclevel = nil, region = nil, id = nil, ip = nil, modifytime = nil, httpstohttpenable = nil, virtualport = nil) ⇒ NewL7RuleEntry



8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
# File 'lib/v20180709/models.rb', line 8622

def initialize(protocol=nil, domain=nil, sourcetype=nil, keeptime=nil, sourcelist=nil, lbtype=nil, keepenable=nil, ruleid=nil, certtype=nil, sslid=nil, cert=nil, privatekey=nil, rulename=nil, status=nil, ccstatus=nil, ccenable=nil, ccthreshold=nil, cclevel=nil, region=nil, id=nil, ip=nil, modifytime=nil, httpstohttpenable=nil, virtualport=nil)
  @Protocol = protocol
  @Domain = domain
  @SourceType = sourcetype
  @KeepTime = keeptime
  @SourceList = sourcelist
  @LbType = lbtype
  @KeepEnable = keepenable
  @RuleId = ruleid
  @CertType = certtype
  @SSLId = sslid
  @Cert = cert
  @PrivateKey = privatekey
  @RuleName = rulename
  @Status = status
  @CCStatus = ccstatus
  @CCEnable = ccenable
  @CCThreshold = ccthreshold
  @CCLevel = cclevel
  @Region = region
  @Id = id
  @Ip = ip
  @ModifyTime = modifytime
  @HttpsToHttpEnable = httpstohttpenable
  @VirtualPort = virtualport
end

Instance Attribute Details

#CCEnableObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def CCEnable
  @CCEnable
end

#CCLevelObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def CCLevel
  @CCLevel
end

#CCStatusObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def CCStatus
  @CCStatus
end

#CCThresholdObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def CCThreshold
  @CCThreshold
end

#CertObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def Cert
  @Cert
end

#CertTypeObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def CertType
  @CertType
end

#DomainObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def Domain
  @Domain
end

#HttpsToHttpEnableObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def HttpsToHttpEnable
  @HttpsToHttpEnable
end

#IdObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def Id
  @Id
end

#IpObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def Ip
  @Ip
end

#KeepEnableObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def KeepEnable
  @KeepEnable
end

#KeepTimeObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def KeepTime
  @KeepTime
end

#LbTypeObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def LbType
  @LbType
end

#ModifyTimeObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def ModifyTime
  @ModifyTime
end

#PrivateKeyObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def PrivateKey
  @PrivateKey
end

#ProtocolObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def Protocol
  @Protocol
end

#RegionObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def Region
  @Region
end

#RuleIdObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def RuleId
  @RuleId
end

#RuleNameObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def RuleName
  @RuleName
end

#SourceListObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def SourceList
  @SourceList
end

#SourceTypeObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def SourceType
  @SourceType
end

#SSLIdObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def SSLId
  @SSLId
end

#StatusObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def Status
  @Status
end

#VirtualPortObject

注意:此字段可能返回 null,表示取不到有效值。



8620
8621
8622
# File 'lib/v20180709/models.rb', line 8620

def VirtualPort
  @VirtualPort
end

Instance Method Details

#deserialize(params) ⇒ Object



8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
# File 'lib/v20180709/models.rb', line 8649

def deserialize(params)
  @Protocol = params['Protocol']
  @Domain = params['Domain']
  @SourceType = params['SourceType']
  @KeepTime = params['KeepTime']
  unless params['SourceList'].nil?
    @SourceList = []
    params['SourceList'].each do |i|
      l4rulesource_tmp = L4RuleSource.new
      l4rulesource_tmp.deserialize(i)
      @SourceList << l4rulesource_tmp
    end
  end
  @LbType = params['LbType']
  @KeepEnable = params['KeepEnable']
  @RuleId = params['RuleId']
  @CertType = params['CertType']
  @SSLId = params['SSLId']
  @Cert = params['Cert']
  @PrivateKey = params['PrivateKey']
  @RuleName = params['RuleName']
  @Status = params['Status']
  @CCStatus = params['CCStatus']
  @CCEnable = params['CCEnable']
  @CCThreshold = params['CCThreshold']
  @CCLevel = params['CCLevel']
  @Region = params['Region']
  @Id = params['Id']
  @Ip = params['Ip']
  @ModifyTime = params['ModifyTime']
  @HttpsToHttpEnable = params['HttpsToHttpEnable']
  @VirtualPort = params['VirtualPort']
end