Class: TencentCloud::Tke::V20180525::Container

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

Overview

EKS Instance Container容器

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image = nil, name = nil, args = nil, commands = nil, cpu = nil, currentstate = nil, environmentvars = nil, gpulimit = nil, livenessprobe = nil, memory = nil, readinessprobe = nil, restartcount = nil, securitycontext = nil, volumemounts = nil, workingdir = nil) ⇒ Container

Returns a new instance of Container.



1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
# File 'lib/v20180525/models.rb', line 1717

def initialize(image=nil, name=nil, args=nil, commands=nil, cpu=nil, currentstate=nil, environmentvars=nil, gpulimit=nil, livenessprobe=nil, memory=nil, readinessprobe=nil, restartcount=nil, securitycontext=nil, volumemounts=nil, workingdir=nil)
  @Image = image
  @Name = name
  @Args = args
  @Commands = commands
  @Cpu = cpu
  @CurrentState = currentstate
  @EnvironmentVars = environmentvars
  @GpuLimit = gpulimit
  @LivenessProbe = livenessprobe
  @Memory = memory
  @ReadinessProbe = readinessprobe
  @RestartCount = restartcount
  @SecurityContext = securitycontext
  @VolumeMounts = volumemounts
  @WorkingDir = workingdir
end

Instance Attribute Details

#ArgsObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def Args
  @Args
end

#CommandsObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def Commands
  @Commands
end

#CpuObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def Cpu
  @Cpu
end

#CurrentStateObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def CurrentState
  @CurrentState
end

#EnvironmentVarsObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def EnvironmentVars
  @EnvironmentVars
end

#GpuLimitObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def GpuLimit
  @GpuLimit
end

#ImageObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def Image
  @Image
end

#LivenessProbeObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def LivenessProbe
  @LivenessProbe
end

#MemoryObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def Memory
  @Memory
end

#NameObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def Name
  @Name
end

#ReadinessProbeObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def ReadinessProbe
  @ReadinessProbe
end

#RestartCountObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def RestartCount
  @RestartCount
end

#SecurityContextObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def SecurityContext
  @SecurityContext
end

#VolumeMountsObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def VolumeMounts
  @VolumeMounts
end

#WorkingDirObject

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

Parameters:

  • Image:

    镜像

  • Name:

    容器名

  • Args:

    容器启动参数

  • Commands:

    容器启动命令

  • Cpu:

    CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。

  • CurrentState:

    当前状态

  • EnvironmentVars:

    容器内操作系统的环境变量

  • GpuLimit:

    Gpu限制

  • LivenessProbe:

    存活探针

  • Memory:

    内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB

  • ReadinessProbe:

    就绪探针

  • RestartCount:

    重启次数

  • SecurityContext:

    容器的安全上下文

  • VolumeMounts:

    数据卷挂载信息

  • WorkingDir:

    容器工作目录



1715
1716
1717
# File 'lib/v20180525/models.rb', line 1715

def WorkingDir
  @WorkingDir
end

Instance Method Details

#deserialize(params) ⇒ Object



1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
# File 'lib/v20180525/models.rb', line 1735

def deserialize(params)
  @Image = params['Image']
  @Name = params['Name']
  @Args = params['Args']
  @Commands = params['Commands']
  @Cpu = params['Cpu']
  unless params['CurrentState'].nil?
    @CurrentState = ContainerState.new
    @CurrentState.deserialize(params['CurrentState'])
  end
  unless params['EnvironmentVars'].nil?
    @EnvironmentVars = []
    params['EnvironmentVars'].each do |i|
      environmentvariable_tmp = EnvironmentVariable.new
      environmentvariable_tmp.deserialize(i)
      @EnvironmentVars << environmentvariable_tmp
    end
  end
  @GpuLimit = params['GpuLimit']
  unless params['LivenessProbe'].nil?
    @LivenessProbe = LivenessOrReadinessProbe.new
    @LivenessProbe.deserialize(params['LivenessProbe'])
  end
  @Memory = params['Memory']
  unless params['ReadinessProbe'].nil?
    @ReadinessProbe = LivenessOrReadinessProbe.new
    @ReadinessProbe.deserialize(params['ReadinessProbe'])
  end
  @RestartCount = params['RestartCount']
  unless params['SecurityContext'].nil?
    @SecurityContext = SecurityContext.new
    @SecurityContext.deserialize(params['SecurityContext'])
  end
  unless params['VolumeMounts'].nil?
    @VolumeMounts = []
    params['VolumeMounts'].each do |i|
      volumemount_tmp = VolumeMount.new
      volumemount_tmp.deserialize(i)
      @VolumeMounts << volumemount_tmp
    end
  end
  @WorkingDir = params['WorkingDir']
end