Class: TencentCloud::Clb::V20180317::SetLoadBalancerSecurityGroupsRequest

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

Overview

SetLoadBalancerSecurityGroups请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancerid = nil, securitygroups = nil) ⇒ SetLoadBalancerSecurityGroupsRequest

Returns a new instance of SetLoadBalancerSecurityGroupsRequest.



8066
8067
8068
8069
# File 'lib/v20180317/models.rb', line 8066

def initialize(loadbalancerid=nil, securitygroups=nil)
  @LoadBalancerId = loadbalancerid
  @SecurityGroups = securitygroups
end

Instance Attribute Details

#LoadBalancerIdObject

可以通过 [DescribeSecurityGroups](cloud.tencent.com/document/product/215/15808) 接口查询。

Parameters:

  • LoadBalancerId:

    负载均衡实例 ID,可以通过 [DescribeLoadBalancers](cloud.tencent.com/document/product/1108/48459) 接口查询。

  • SecurityGroups:

    安全组ID构成的数组,一个负载均衡实例最多可绑定50个安全组,如果要解绑所有安全组,可不传此参数。



8064
8065
8066
# File 'lib/v20180317/models.rb', line 8064

def LoadBalancerId
  @LoadBalancerId
end

#SecurityGroupsObject

可以通过 [DescribeSecurityGroups](cloud.tencent.com/document/product/215/15808) 接口查询。

Parameters:

  • LoadBalancerId:

    负载均衡实例 ID,可以通过 [DescribeLoadBalancers](cloud.tencent.com/document/product/1108/48459) 接口查询。

  • SecurityGroups:

    安全组ID构成的数组,一个负载均衡实例最多可绑定50个安全组,如果要解绑所有安全组,可不传此参数。



8064
8065
8066
# File 'lib/v20180317/models.rb', line 8064

def SecurityGroups
  @SecurityGroups
end

Instance Method Details

#deserialize(params) ⇒ Object



8071
8072
8073
8074
# File 'lib/v20180317/models.rb', line 8071

def deserialize(params)
  @LoadBalancerId = params['LoadBalancerId']
  @SecurityGroups = params['SecurityGroups']
end