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.



1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
# File 'lib/v20180525/models.rb', line 1782

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

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:

    容器工作目录



1780
1781
1782
# File 'lib/v20180525/models.rb', line 1780

def WorkingDir
  @WorkingDir
end

Instance Method Details

#deserialize(params) ⇒ Object



1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
# File 'lib/v20180525/models.rb', line 1800

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