Class: TencentCloud::Clb::V20180317::ClusterResource

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

Overview

集群内资源类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, vip = nil, loadbalancerid = nil, idle = nil, clustername = nil, isp = nil, clusterszone = nil) ⇒ ClusterResource

Returns a new instance of ClusterResource.



1322
1323
1324
1325
1326
1327
1328
1329
1330
# File 'lib/v20180317/models.rb', line 1322

def initialize(clusterid=nil, vip=nil, loadbalancerid=nil, idle=nil, clustername=nil, isp=nil, clusterszone=nil)
  @ClusterId = clusterid
  @Vip = vip
  @LoadBalancerId = loadbalancerid
  @Idle = idle
  @ClusterName = clustername
  @Isp = isp
  @ClustersZone = clusterszone
end

Instance Attribute Details

#ClusterIdObject

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

Parameters:

  • ClusterId:

    集群唯一ID,如tgw-12345678。

  • Vip:

    ip地址。

  • LoadBalancerId:

    负载均衡唯一ID,如lb-12345678。

  • Idle:

    资源是否闲置。

  • ClusterName:

    集群名称。

  • Isp:

    集群的Isp属性,如:“BGP”,“CMCC”,“CUCC”,“CTCC”,“INTERNAL”。

  • ClustersZone:

    集群所在的可用区



1320
1321
1322
# File 'lib/v20180317/models.rb', line 1320

def ClusterId
  @ClusterId
end

#ClusterNameObject

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

Parameters:

  • ClusterId:

    集群唯一ID,如tgw-12345678。

  • Vip:

    ip地址。

  • LoadBalancerId:

    负载均衡唯一ID,如lb-12345678。

  • Idle:

    资源是否闲置。

  • ClusterName:

    集群名称。

  • Isp:

    集群的Isp属性,如:“BGP”,“CMCC”,“CUCC”,“CTCC”,“INTERNAL”。

  • ClustersZone:

    集群所在的可用区



1320
1321
1322
# File 'lib/v20180317/models.rb', line 1320

def ClusterName
  @ClusterName
end

#ClustersZoneObject

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

Parameters:

  • ClusterId:

    集群唯一ID,如tgw-12345678。

  • Vip:

    ip地址。

  • LoadBalancerId:

    负载均衡唯一ID,如lb-12345678。

  • Idle:

    资源是否闲置。

  • ClusterName:

    集群名称。

  • Isp:

    集群的Isp属性,如:“BGP”,“CMCC”,“CUCC”,“CTCC”,“INTERNAL”。

  • ClustersZone:

    集群所在的可用区



1320
1321
1322
# File 'lib/v20180317/models.rb', line 1320

def ClustersZone
  @ClustersZone
end

#IdleObject

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

Parameters:

  • ClusterId:

    集群唯一ID,如tgw-12345678。

  • Vip:

    ip地址。

  • LoadBalancerId:

    负载均衡唯一ID,如lb-12345678。

  • Idle:

    资源是否闲置。

  • ClusterName:

    集群名称。

  • Isp:

    集群的Isp属性,如:“BGP”,“CMCC”,“CUCC”,“CTCC”,“INTERNAL”。

  • ClustersZone:

    集群所在的可用区



1320
1321
1322
# File 'lib/v20180317/models.rb', line 1320

def Idle
  @Idle
end

#IspObject

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

Parameters:

  • ClusterId:

    集群唯一ID,如tgw-12345678。

  • Vip:

    ip地址。

  • LoadBalancerId:

    负载均衡唯一ID,如lb-12345678。

  • Idle:

    资源是否闲置。

  • ClusterName:

    集群名称。

  • Isp:

    集群的Isp属性,如:“BGP”,“CMCC”,“CUCC”,“CTCC”,“INTERNAL”。

  • ClustersZone:

    集群所在的可用区



1320
1321
1322
# File 'lib/v20180317/models.rb', line 1320

def Isp
  @Isp
end

#LoadBalancerIdObject

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

Parameters:

  • ClusterId:

    集群唯一ID,如tgw-12345678。

  • Vip:

    ip地址。

  • LoadBalancerId:

    负载均衡唯一ID,如lb-12345678。

  • Idle:

    资源是否闲置。

  • ClusterName:

    集群名称。

  • Isp:

    集群的Isp属性,如:“BGP”,“CMCC”,“CUCC”,“CTCC”,“INTERNAL”。

  • ClustersZone:

    集群所在的可用区



1320
1321
1322
# File 'lib/v20180317/models.rb', line 1320

def LoadBalancerId
  @LoadBalancerId
end

#VipObject

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

Parameters:

  • ClusterId:

    集群唯一ID,如tgw-12345678。

  • Vip:

    ip地址。

  • LoadBalancerId:

    负载均衡唯一ID,如lb-12345678。

  • Idle:

    资源是否闲置。

  • ClusterName:

    集群名称。

  • Isp:

    集群的Isp属性,如:“BGP”,“CMCC”,“CUCC”,“CTCC”,“INTERNAL”。

  • ClustersZone:

    集群所在的可用区



1320
1321
1322
# File 'lib/v20180317/models.rb', line 1320

def Vip
  @Vip
end

Instance Method Details

#deserialize(params) ⇒ Object



1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
# File 'lib/v20180317/models.rb', line 1332

def deserialize(params)
  @ClusterId = params['ClusterId']
  @Vip = params['Vip']
  @LoadBalancerId = params['LoadBalancerId']
  @Idle = params['Idle']
  @ClusterName = params['ClusterName']
  @Isp = params['Isp']
  unless params['ClustersZone'].nil?
    @ClustersZone = ClustersZone.new
    @ClustersZone.deserialize(params['ClustersZone'])
  end
end