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.



1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
# File 'lib/v20180525/models.rb', line 1893

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

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:

    容器工作目录



1891
1892
1893
# File 'lib/v20180525/models.rb', line 1891

def WorkingDir
  @WorkingDir
end

Instance Method Details

#deserialize(params) ⇒ Object



1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
# File 'lib/v20180525/models.rb', line 1911

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