Class: TencentCloud::Tke::V20180525::ClusterPublicLB

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

Overview

弹性容器集群公网访问负载均衡信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled = nil, allowfromcidrs = nil, securitypolicies = nil, extraparam = nil, securitygroup = nil) ⇒ ClusterPublicLB

Returns a new instance of ClusterPublicLB.



1664
1665
1666
1667
1668
1669
1670
# File 'lib/v20180525/models.rb', line 1664

def initialize(enabled=nil, allowfromcidrs=nil, securitypolicies=nil, extraparam=nil, securitygroup=nil)
  @Enabled = enabled
  @AllowFromCidrs = allowfromcidrs
  @SecurityPolicies = securitypolicies
  @ExtraParam = extraparam
  @SecurityGroup = securitygroup
end

Instance Attribute Details

#AllowFromCidrsObject

Parameters:

  • Enabled:

    是否开启公网访问LB

  • AllowFromCidrs:

    允许访问的来源CIDR列表

  • SecurityPolicies:

    安全策略放通单个IP或CIDR(例如: “192.168.1.0/24”,默认为拒绝所有)

  • ExtraParam:

    外网访问相关的扩展参数,格式为json

  • SecurityGroup:

    新内外网功能,需要传递安全组



1662
1663
1664
# File 'lib/v20180525/models.rb', line 1662

def AllowFromCidrs
  @AllowFromCidrs
end

#EnabledObject

Parameters:

  • Enabled:

    是否开启公网访问LB

  • AllowFromCidrs:

    允许访问的来源CIDR列表

  • SecurityPolicies:

    安全策略放通单个IP或CIDR(例如: “192.168.1.0/24”,默认为拒绝所有)

  • ExtraParam:

    外网访问相关的扩展参数,格式为json

  • SecurityGroup:

    新内外网功能,需要传递安全组



1662
1663
1664
# File 'lib/v20180525/models.rb', line 1662

def Enabled
  @Enabled
end

#ExtraParamObject

Parameters:

  • Enabled:

    是否开启公网访问LB

  • AllowFromCidrs:

    允许访问的来源CIDR列表

  • SecurityPolicies:

    安全策略放通单个IP或CIDR(例如: “192.168.1.0/24”,默认为拒绝所有)

  • ExtraParam:

    外网访问相关的扩展参数,格式为json

  • SecurityGroup:

    新内外网功能,需要传递安全组



1662
1663
1664
# File 'lib/v20180525/models.rb', line 1662

def ExtraParam
  @ExtraParam
end

#SecurityGroupObject

Parameters:

  • Enabled:

    是否开启公网访问LB

  • AllowFromCidrs:

    允许访问的来源CIDR列表

  • SecurityPolicies:

    安全策略放通单个IP或CIDR(例如: “192.168.1.0/24”,默认为拒绝所有)

  • ExtraParam:

    外网访问相关的扩展参数,格式为json

  • SecurityGroup:

    新内外网功能,需要传递安全组



1662
1663
1664
# File 'lib/v20180525/models.rb', line 1662

def SecurityGroup
  @SecurityGroup
end

#SecurityPoliciesObject

Parameters:

  • Enabled:

    是否开启公网访问LB

  • AllowFromCidrs:

    允许访问的来源CIDR列表

  • SecurityPolicies:

    安全策略放通单个IP或CIDR(例如: “192.168.1.0/24”,默认为拒绝所有)

  • ExtraParam:

    外网访问相关的扩展参数,格式为json

  • SecurityGroup:

    新内外网功能,需要传递安全组



1662
1663
1664
# File 'lib/v20180525/models.rb', line 1662

def SecurityPolicies
  @SecurityPolicies
end

Instance Method Details

#deserialize(params) ⇒ Object



1672
1673
1674
1675
1676
1677
1678
# File 'lib/v20180525/models.rb', line 1672

def deserialize(params)
  @Enabled = params['Enabled']
  @AllowFromCidrs = params['AllowFromCidrs']
  @SecurityPolicies = params['SecurityPolicies']
  @ExtraParam = params['ExtraParam']
  @SecurityGroup = params['SecurityGroup']
end