Class: TencentCloud::Lighthouse::V20200324::DockerContainer

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

Overview

Docker容器信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(containerid = nil, containername = nil, containerimage = nil, command = nil, status = nil, state = nil, publishportset = nil, volumeset = nil, createdtime = nil) ⇒ DockerContainer

Returns a new instance of DockerContainer.



4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
# File 'lib/v20200324/models.rb', line 4869

def initialize(containerid=nil, containername=nil, containerimage=nil, command=nil, status=nil, state=nil, publishportset=nil, volumeset=nil, createdtime=nil)
  @ContainerId = containerid
  @ContainerName = containername
  @ContainerImage = containerimage
  @Command = command
  @Status = status
  @State = state
  @PublishPortSet = publishportset
  @VolumeSet = volumeset
  @CreatedTime = createdtime
end

Instance Attribute Details

#CommandObject

Parameters:

  • ContainerId:

    容器ID

  • ContainerName:

    容器名称

  • ContainerImage:

    容器镜像地址

  • Command:

    容器Command

  • Status:

    容器状态描述

  • State:

    容器状态,和docker的容器状态保持一致,当前取值有:created(已创建)、restarting(重启中)、running(运行中)、removing(迁移中)、paused(暂停)、exited(停止)和dead(死亡)

  • PublishPortSet:

    容器端口主机端口映射列表

  • VolumeSet:

    容器挂载本地卷列表

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。



4867
4868
4869
# File 'lib/v20200324/models.rb', line 4867

def Command
  @Command
end

#ContainerIdObject

Parameters:

  • ContainerId:

    容器ID

  • ContainerName:

    容器名称

  • ContainerImage:

    容器镜像地址

  • Command:

    容器Command

  • Status:

    容器状态描述

  • State:

    容器状态,和docker的容器状态保持一致,当前取值有:created(已创建)、restarting(重启中)、running(运行中)、removing(迁移中)、paused(暂停)、exited(停止)和dead(死亡)

  • PublishPortSet:

    容器端口主机端口映射列表

  • VolumeSet:

    容器挂载本地卷列表

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。



4867
4868
4869
# File 'lib/v20200324/models.rb', line 4867

def ContainerId
  @ContainerId
end

#ContainerImageObject

Parameters:

  • ContainerId:

    容器ID

  • ContainerName:

    容器名称

  • ContainerImage:

    容器镜像地址

  • Command:

    容器Command

  • Status:

    容器状态描述

  • State:

    容器状态,和docker的容器状态保持一致,当前取值有:created(已创建)、restarting(重启中)、running(运行中)、removing(迁移中)、paused(暂停)、exited(停止)和dead(死亡)

  • PublishPortSet:

    容器端口主机端口映射列表

  • VolumeSet:

    容器挂载本地卷列表

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。



4867
4868
4869
# File 'lib/v20200324/models.rb', line 4867

def ContainerImage
  @ContainerImage
end

#ContainerNameObject

Parameters:

  • ContainerId:

    容器ID

  • ContainerName:

    容器名称

  • ContainerImage:

    容器镜像地址

  • Command:

    容器Command

  • Status:

    容器状态描述

  • State:

    容器状态,和docker的容器状态保持一致,当前取值有:created(已创建)、restarting(重启中)、running(运行中)、removing(迁移中)、paused(暂停)、exited(停止)和dead(死亡)

  • PublishPortSet:

    容器端口主机端口映射列表

  • VolumeSet:

    容器挂载本地卷列表

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。



4867
4868
4869
# File 'lib/v20200324/models.rb', line 4867

def ContainerName
  @ContainerName
end

#CreatedTimeObject

Parameters:

  • ContainerId:

    容器ID

  • ContainerName:

    容器名称

  • ContainerImage:

    容器镜像地址

  • Command:

    容器Command

  • Status:

    容器状态描述

  • State:

    容器状态,和docker的容器状态保持一致,当前取值有:created(已创建)、restarting(重启中)、running(运行中)、removing(迁移中)、paused(暂停)、exited(停止)和dead(死亡)

  • PublishPortSet:

    容器端口主机端口映射列表

  • VolumeSet:

    容器挂载本地卷列表

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。



4867
4868
4869
# File 'lib/v20200324/models.rb', line 4867

def CreatedTime
  @CreatedTime
end

#PublishPortSetObject

Parameters:

  • ContainerId:

    容器ID

  • ContainerName:

    容器名称

  • ContainerImage:

    容器镜像地址

  • Command:

    容器Command

  • Status:

    容器状态描述

  • State:

    容器状态,和docker的容器状态保持一致,当前取值有:created(已创建)、restarting(重启中)、running(运行中)、removing(迁移中)、paused(暂停)、exited(停止)和dead(死亡)

  • PublishPortSet:

    容器端口主机端口映射列表

  • VolumeSet:

    容器挂载本地卷列表

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。



4867
4868
4869
# File 'lib/v20200324/models.rb', line 4867

def PublishPortSet
  @PublishPortSet
end

#StateObject

Parameters:

  • ContainerId:

    容器ID

  • ContainerName:

    容器名称

  • ContainerImage:

    容器镜像地址

  • Command:

    容器Command

  • Status:

    容器状态描述

  • State:

    容器状态,和docker的容器状态保持一致,当前取值有:created(已创建)、restarting(重启中)、running(运行中)、removing(迁移中)、paused(暂停)、exited(停止)和dead(死亡)

  • PublishPortSet:

    容器端口主机端口映射列表

  • VolumeSet:

    容器挂载本地卷列表

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。



4867
4868
4869
# File 'lib/v20200324/models.rb', line 4867

def State
  @State
end

#StatusObject

Parameters:

  • ContainerId:

    容器ID

  • ContainerName:

    容器名称

  • ContainerImage:

    容器镜像地址

  • Command:

    容器Command

  • Status:

    容器状态描述

  • State:

    容器状态,和docker的容器状态保持一致,当前取值有:created(已创建)、restarting(重启中)、running(运行中)、removing(迁移中)、paused(暂停)、exited(停止)和dead(死亡)

  • PublishPortSet:

    容器端口主机端口映射列表

  • VolumeSet:

    容器挂载本地卷列表

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。



4867
4868
4869
# File 'lib/v20200324/models.rb', line 4867

def Status
  @Status
end

#VolumeSetObject

Parameters:

  • ContainerId:

    容器ID

  • ContainerName:

    容器名称

  • ContainerImage:

    容器镜像地址

  • Command:

    容器Command

  • Status:

    容器状态描述

  • State:

    容器状态,和docker的容器状态保持一致,当前取值有:created(已创建)、restarting(重启中)、running(运行中)、removing(迁移中)、paused(暂停)、exited(停止)和dead(死亡)

  • PublishPortSet:

    容器端口主机端口映射列表

  • VolumeSet:

    容器挂载本地卷列表

  • CreatedTime:

    创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。



4867
4868
4869
# File 'lib/v20200324/models.rb', line 4867

def VolumeSet
  @VolumeSet
end

Instance Method Details

#deserialize(params) ⇒ Object



4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
# File 'lib/v20200324/models.rb', line 4881

def deserialize(params)
  @ContainerId = params['ContainerId']
  @ContainerName = params['ContainerName']
  @ContainerImage = params['ContainerImage']
  @Command = params['Command']
  @Status = params['Status']
  @State = params['State']
  unless params['PublishPortSet'].nil?
    @PublishPortSet = []
    params['PublishPortSet'].each do |i|
      dockercontainerpublishport_tmp = DockerContainerPublishPort.new
      dockercontainerpublishport_tmp.deserialize(i)
      @PublishPortSet << dockercontainerpublishport_tmp
    end
  end
  unless params['VolumeSet'].nil?
    @VolumeSet = []
    params['VolumeSet'].each do |i|
      dockercontainervolume_tmp = DockerContainerVolume.new
      dockercontainervolume_tmp.deserialize(i)
      @VolumeSet << dockercontainervolume_tmp
    end
  end
  @CreatedTime = params['CreatedTime']
end