Class: TencentCloud::Scf::V20180416::ImageConfig

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

Overview

TCR镜像信息描述

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imagetype = nil, imageuri = nil, registryid = nil, entrypoint = nil, command = nil, args = nil, containerimageaccelerate = nil, imageport = nil) ⇒ ImageConfig

Returns a new instance of ImageConfig.



2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
# File 'lib/v20180416/models.rb', line 2623

def initialize(imagetype=nil, imageuri=nil, registryid=nil, entrypoint=nil, command=nil, args=nil, containerimageaccelerate=nil, imageport=nil)
  @ImageType = imagetype
  @ImageUri = imageuri
  @RegistryId = registryid
  @EntryPoint = entrypoint
  @Command = command
  @Args = args
  @ContainerImageAccelerate = containerimageaccelerate
  @ImagePort = imageport
end

Instance Attribute Details

#Args ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 Web Server镜像:9000 Job 镜像:-1 注意:此字段可能返回 null,表示取不到有效值。 默认值:9000 示例值:9000 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ImageType: —

    镜像仓库类型,个人版或者企业版:personal/enterprise

  • ImageUri: (domain) —

    /namespace/imageName:tag@digest

  • RegistryId: —

    用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填

  • EntryPoint: —

    该参数即将下线,不推荐用户使用

  • Command: —

    容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python

  • Args: —

    容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py

  • ContainerImageAccelerate: —

    镜像加速开关,默认False

  • ImagePort: —

    镜像函数端口设置,可指定镜像类型



2621
2622
2623
# File 'lib/v20180416/models.rb', line 2621

def Args
  @Args
end

#Command ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 Web Server镜像:9000 Job 镜像:-1 注意:此字段可能返回 null,表示取不到有效值。 默认值:9000 示例值:9000 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ImageType: —

    镜像仓库类型,个人版或者企业版:personal/enterprise

  • ImageUri: (domain) —

    /namespace/imageName:tag@digest

  • RegistryId: —

    用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填

  • EntryPoint: —

    该参数即将下线,不推荐用户使用

  • Command: —

    容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python

  • Args: —

    容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py

  • ContainerImageAccelerate: —

    镜像加速开关,默认False

  • ImagePort: —

    镜像函数端口设置,可指定镜像类型



2621
2622
2623
# File 'lib/v20180416/models.rb', line 2621

def Command
  @Command
end

#ContainerImageAccelerate ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 Web Server镜像:9000 Job 镜像:-1 注意:此字段可能返回 null,表示取不到有效值。 默认值:9000 示例值:9000 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ImageType: —

    镜像仓库类型,个人版或者企业版:personal/enterprise

  • ImageUri: (domain) —

    /namespace/imageName:tag@digest

  • RegistryId: —

    用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填

  • EntryPoint: —

    该参数即将下线,不推荐用户使用

  • Command: —

    容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python

  • Args: —

    容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py

  • ContainerImageAccelerate: —

    镜像加速开关,默认False

  • ImagePort: —

    镜像函数端口设置,可指定镜像类型



2621
2622
2623
# File 'lib/v20180416/models.rb', line 2621

def ContainerImageAccelerate
  @ContainerImageAccelerate
end

#EntryPoint ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 Web Server镜像:9000 Job 镜像:-1 注意:此字段可能返回 null,表示取不到有效值。 默认值:9000 示例值:9000 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ImageType: —

    镜像仓库类型,个人版或者企业版:personal/enterprise

  • ImageUri: (domain) —

    /namespace/imageName:tag@digest

  • RegistryId: —

    用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填

  • EntryPoint: —

    该参数即将下线,不推荐用户使用

  • Command: —

    容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python

  • Args: —

    容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py

  • ContainerImageAccelerate: —

    镜像加速开关,默认False

  • ImagePort: —

    镜像函数端口设置,可指定镜像类型



2621
2622
2623
# File 'lib/v20180416/models.rb', line 2621

def EntryPoint
  @EntryPoint
end

#ImagePort ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 Web Server镜像:9000 Job 镜像:-1 注意:此字段可能返回 null,表示取不到有效值。 默认值:9000 示例值:9000 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ImageType: —

    镜像仓库类型,个人版或者企业版:personal/enterprise

  • ImageUri: (domain) —

    /namespace/imageName:tag@digest

  • RegistryId: —

    用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填

  • EntryPoint: —

    该参数即将下线,不推荐用户使用

  • Command: —

    容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python

  • Args: —

    容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py

  • ContainerImageAccelerate: —

    镜像加速开关,默认False

  • ImagePort: —

    镜像函数端口设置,可指定镜像类型



2621
2622
2623
# File 'lib/v20180416/models.rb', line 2621

def ImagePort
  @ImagePort
end

#ImageType ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 Web Server镜像:9000 Job 镜像:-1 注意:此字段可能返回 null,表示取不到有效值。 默认值:9000 示例值:9000 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ImageType: —

    镜像仓库类型,个人版或者企业版:personal/enterprise

  • ImageUri: (domain) —

    /namespace/imageName:tag@digest

  • RegistryId: —

    用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填

  • EntryPoint: —

    该参数即将下线,不推荐用户使用

  • Command: —

    容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python

  • Args: —

    容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py

  • ContainerImageAccelerate: —

    镜像加速开关,默认False

  • ImagePort: —

    镜像函数端口设置,可指定镜像类型



2621
2622
2623
# File 'lib/v20180416/models.rb', line 2621

def ImageType
  @ImageType
end

#ImageUri ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 Web Server镜像:9000 Job 镜像:-1 注意:此字段可能返回 null,表示取不到有效值。 默认值:9000 示例值:9000 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ImageType: —

    镜像仓库类型,个人版或者企业版:personal/enterprise

  • ImageUri: (domain) —

    /namespace/imageName:tag@digest

  • RegistryId: —

    用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填

  • EntryPoint: —

    该参数即将下线,不推荐用户使用

  • Command: —

    容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python

  • Args: —

    容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py

  • ContainerImageAccelerate: —

    镜像加速开关,默认False

  • ImagePort: —

    镜像函数端口设置,可指定镜像类型



2621
2622
2623
# File 'lib/v20180416/models.rb', line 2621

def ImageUri
  @ImageUri
end

#RegistryId ⇒ Object

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 Web Server镜像:9000 Job 镜像:-1 注意:此字段可能返回 null,表示取不到有效值。 默认值:9000 示例值:9000 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • ImageType: —

    镜像仓库类型,个人版或者企业版:personal/enterprise

  • ImageUri: (domain) —

    /namespace/imageName:tag@digest

  • RegistryId: —

    用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填

  • EntryPoint: —

    该参数即将下线,不推荐用户使用

  • Command: —

    容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python

  • Args: —

    容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py

  • ContainerImageAccelerate: —

    镜像加速开关,默认False

  • ImagePort: —

    镜像函数端口设置,可指定镜像类型



2621
2622
2623
# File 'lib/v20180416/models.rb', line 2621

def RegistryId
  @RegistryId
end

Instance Method Details

#deserialize(params) ⇒ Object



2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
# File 'lib/v20180416/models.rb', line 2634

def deserialize(params)
  @ImageType = params['ImageType']
  @ImageUri = params['ImageUri']
  @RegistryId = params['RegistryId']
  @EntryPoint = params['EntryPoint']
  @Command = params['Command']
  @Args = params['Args']
  @ContainerImageAccelerate = params['ContainerImageAccelerate']
  @ImagePort = params['ImagePort']
end