Class: TencentCloud::Batch::V20170312::Docker

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

Overview

Docker容器信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image = nil, user = nil, password = nil, server = nil, maxretrycount = nil, delayonretry = nil, dockerrunoption = nil) ⇒ Docker

Returns a new instance of Docker.



2088
2089
2090
2091
2092
2093
2094
2095
2096
# File 'lib/v20170312/models.rb', line 2088

def initialize(image=nil, user=nil, password=nil, server=nil, maxretrycount=nil, delayonretry=nil, dockerrunoption=nil)
  @Image = image
  @User = user
  @Password = password
  @Server = server
  @MaxRetryCount = maxretrycount
  @DelayOnRetry = delayonretry
  @DockerRunOption = dockerrunoption
end

Instance Attribute Details

#DelayOnRetryObject

Parameters:

  • Image:

    Docker Hub填写“:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/:[tag]”

  • User:

    Docker Hub 用户名或 Tencent Registry 用户名;公共镜像可不填写此参数。

  • Password:

    Docker Hub 密码或 Tencent Registry 密码;公共镜像可不填写此参数。

  • Server:

    Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”

  • MaxRetryCount:

    拉取Docker镜像重试次数。默认值:0。

  • DelayOnRetry:

    拉取Docker镜像失败时延迟时间。单位:秒。

  • DockerRunOption:

    Docker命令运行参数。



2086
2087
2088
# File 'lib/v20170312/models.rb', line 2086

def DelayOnRetry
  @DelayOnRetry
end

#DockerRunOptionObject

Parameters:

  • Image:

    Docker Hub填写“:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/:[tag]”

  • User:

    Docker Hub 用户名或 Tencent Registry 用户名;公共镜像可不填写此参数。

  • Password:

    Docker Hub 密码或 Tencent Registry 密码;公共镜像可不填写此参数。

  • Server:

    Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”

  • MaxRetryCount:

    拉取Docker镜像重试次数。默认值:0。

  • DelayOnRetry:

    拉取Docker镜像失败时延迟时间。单位:秒。

  • DockerRunOption:

    Docker命令运行参数。



2086
2087
2088
# File 'lib/v20170312/models.rb', line 2086

def DockerRunOption
  @DockerRunOption
end

#ImageObject

Parameters:

  • Image:

    Docker Hub填写“:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/:[tag]”

  • User:

    Docker Hub 用户名或 Tencent Registry 用户名;公共镜像可不填写此参数。

  • Password:

    Docker Hub 密码或 Tencent Registry 密码;公共镜像可不填写此参数。

  • Server:

    Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”

  • MaxRetryCount:

    拉取Docker镜像重试次数。默认值:0。

  • DelayOnRetry:

    拉取Docker镜像失败时延迟时间。单位:秒。

  • DockerRunOption:

    Docker命令运行参数。



2086
2087
2088
# File 'lib/v20170312/models.rb', line 2086

def Image
  @Image
end

#MaxRetryCountObject

Parameters:

  • Image:

    Docker Hub填写“:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/:[tag]”

  • User:

    Docker Hub 用户名或 Tencent Registry 用户名;公共镜像可不填写此参数。

  • Password:

    Docker Hub 密码或 Tencent Registry 密码;公共镜像可不填写此参数。

  • Server:

    Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”

  • MaxRetryCount:

    拉取Docker镜像重试次数。默认值:0。

  • DelayOnRetry:

    拉取Docker镜像失败时延迟时间。单位:秒。

  • DockerRunOption:

    Docker命令运行参数。



2086
2087
2088
# File 'lib/v20170312/models.rb', line 2086

def MaxRetryCount
  @MaxRetryCount
end

#PasswordObject

Parameters:

  • Image:

    Docker Hub填写“:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/:[tag]”

  • User:

    Docker Hub 用户名或 Tencent Registry 用户名;公共镜像可不填写此参数。

  • Password:

    Docker Hub 密码或 Tencent Registry 密码;公共镜像可不填写此参数。

  • Server:

    Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”

  • MaxRetryCount:

    拉取Docker镜像重试次数。默认值:0。

  • DelayOnRetry:

    拉取Docker镜像失败时延迟时间。单位:秒。

  • DockerRunOption:

    Docker命令运行参数。



2086
2087
2088
# File 'lib/v20170312/models.rb', line 2086

def Password
  @Password
end

#ServerObject

Parameters:

  • Image:

    Docker Hub填写“:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/:[tag]”

  • User:

    Docker Hub 用户名或 Tencent Registry 用户名;公共镜像可不填写此参数。

  • Password:

    Docker Hub 密码或 Tencent Registry 密码;公共镜像可不填写此参数。

  • Server:

    Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”

  • MaxRetryCount:

    拉取Docker镜像重试次数。默认值:0。

  • DelayOnRetry:

    拉取Docker镜像失败时延迟时间。单位:秒。

  • DockerRunOption:

    Docker命令运行参数。



2086
2087
2088
# File 'lib/v20170312/models.rb', line 2086

def Server
  @Server
end

#UserObject

Parameters:

  • Image:

    Docker Hub填写“:[tag]”,Tencent Registry填写“ccr.ccs.tencentyun.com/:[tag]”

  • User:

    Docker Hub 用户名或 Tencent Registry 用户名;公共镜像可不填写此参数。

  • Password:

    Docker Hub 密码或 Tencent Registry 密码;公共镜像可不填写此参数。

  • Server:

    Docker Hub 可以不填,但确保具有公网访问能力。或者是 Tencent Registry 服务地址“ccr.ccs.tencentyun.com”

  • MaxRetryCount:

    拉取Docker镜像重试次数。默认值:0。

  • DelayOnRetry:

    拉取Docker镜像失败时延迟时间。单位:秒。

  • DockerRunOption:

    Docker命令运行参数。



2086
2087
2088
# File 'lib/v20170312/models.rb', line 2086

def User
  @User
end

Instance Method Details

#deserialize(params) ⇒ Object



2098
2099
2100
2101
2102
2103
2104
2105
2106
# File 'lib/v20170312/models.rb', line 2098

def deserialize(params)
  @Image = params['Image']
  @User = params['User']
  @Password = params['Password']
  @Server = params['Server']
  @MaxRetryCount = params['MaxRetryCount']
  @DelayOnRetry = params['DelayOnRetry']
  @DockerRunOption = params['DockerRunOption']
end