Class: TencentCloud::Tke::V20220501::Instance

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

Overview

集群的实例信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, instancerole = nil, failedreason = nil, instancestate = nil, unschedulable = nil, createdtime = nil, lanip = nil, nodepoolid = nil, native = nil, regular = nil, _super = nil, external = nil, nodetype = nil) ⇒ Instance

Returns a new instance of Instance.



1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
# File 'lib/v20220501/models.rb', line 1424

def initialize(instanceid=nil, instancerole=nil, failedreason=nil, instancestate=nil, unschedulable=nil, createdtime=nil, lanip=nil, nodepoolid=nil, native=nil, regular=nil, _super=nil, external=nil, nodetype=nil)
  @InstanceId = instanceid
  @InstanceRole = instancerole
  @FailedReason = failedreason
  @InstanceState = instancestate
  @Unschedulable = unschedulable
  @CreatedTime = createdtime
  @LanIP = lanip
  @NodePoolId = nodepoolid
  @Native = native
  @Regular = regular
  @Super = _super
  @External = external
  @NodeType = nodetype
end

Instance Attribute Details

#CreatedTimeObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def CreatedTime
  @CreatedTime
end

#ExternalObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def External
  @External
end

#FailedReasonObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def FailedReason
  @FailedReason
end

#InstanceIdObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def InstanceId
  @InstanceId
end

#InstanceRoleObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def InstanceRole
  @InstanceRole
end

#InstanceStateObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def InstanceState
  @InstanceState
end

#LanIPObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def LanIP
  @LanIP
end

#NativeObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def Native
  @Native
end

#NodePoolIdObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def NodePoolId
  @NodePoolId
end

#NodeTypeObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def NodeType
  @NodeType
end

#RegularObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def Regular
  @Regular
end

#SuperObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def Super
  @Super
end

#UnschedulableObject

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

  • initializing创建中

  • running 运行中

  • failed 异常

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

Parameters:

  • InstanceId:

    实例ID

  • InstanceRole:

    节点角色, MASTER, WORKER, ETCD, MASTER_ETCD,ALL, 默认为WORKER

  • FailedReason:

    实例异常(或者处于初始化中)的原因

  • InstanceState:

    实例的状态

  • Unschedulable:

    是否不可调度

  • CreatedTime:

    添加时间

  • LanIP:

    节点内网IP

  • NodePoolId:

    资源池ID

  • Native:

    原生节点参数

  • Regular:

    普通节点参数

  • Super:

    超级节点参数

  • External:

    第三方节点参数

  • NodeType:

    节点类型



1422
1423
1424
# File 'lib/v20220501/models.rb', line 1422

def Unschedulable
  @Unschedulable
end

Instance Method Details

#deserialize(params) ⇒ Object



1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
# File 'lib/v20220501/models.rb', line 1440

def deserialize(params)
  @InstanceId = params['InstanceId']
  @InstanceRole = params['InstanceRole']
  @FailedReason = params['FailedReason']
  @InstanceState = params['InstanceState']
  @Unschedulable = params['Unschedulable']
  @CreatedTime = params['CreatedTime']
  @LanIP = params['LanIP']
  @NodePoolId = params['NodePoolId']
  unless params['Native'].nil?
    @Native = NativeNodeInfo.new
    @Native.deserialize(params['Native'])
  end
  unless params['Regular'].nil?
    @Regular = RegularNodeInfo.new
    @Regular.deserialize(params['Regular'])
  end
  unless params['Super'].nil?
    @Super = SuperNodeInfo.new
    @Super.deserialize(params['Super'])
  end
  unless params['External'].nil?
    @External = ExternalNodeInfo.new
    @External.deserialize(params['External'])
  end
  @NodeType = params['NodeType']
end