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.



1196
1197
1198
1199
1200
1201
1202
1203
1204
# File 'lib/v20180317/models.rb', line 1196

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:

    集群所在的可用区



1194
1195
1196
# File 'lib/v20180317/models.rb', line 1194

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:

    集群所在的可用区



1194
1195
1196
# File 'lib/v20180317/models.rb', line 1194

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:

    集群所在的可用区



1194
1195
1196
# File 'lib/v20180317/models.rb', line 1194

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:

    集群所在的可用区



1194
1195
1196
# File 'lib/v20180317/models.rb', line 1194

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:

    集群所在的可用区



1194
1195
1196
# File 'lib/v20180317/models.rb', line 1194

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:

    集群所在的可用区



1194
1195
1196
# File 'lib/v20180317/models.rb', line 1194

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:

    集群所在的可用区



1194
1195
1196
# File 'lib/v20180317/models.rb', line 1194

def Vip
  @Vip
end

Instance Method Details

#deserialize(params) ⇒ Object



1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
# File 'lib/v20180317/models.rb', line 1206

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