Class: TencentCloud::Scf::V20180416::PublishLayerVersionRequest

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

Overview

PublishLayerVersion请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(layername = nil, compatibleruntimes = nil, content = nil, description = nil, licenseinfo = nil, tags = nil) ⇒ PublishLayerVersionRequest

Returns a new instance of PublishLayerVersionRequest.



4062
4063
4064
4065
4066
4067
4068
4069
# File 'lib/v20180416/models.rb', line 4062

def initialize(layername=nil, compatibleruntimes=nil, content=nil, description=nil, licenseinfo=nil, tags=nil)
  @LayerName = layername
  @CompatibleRuntimes = compatibleruntimes
  @Content = content
  @Description = description
  @LicenseInfo = licenseinfo
  @Tags = tags
end

Instance Attribute Details

#CompatibleRuntimes ⇒ Object

Parameters:

  • LayerName: —

    层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64

  • CompatibleRuntimes: —

    层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。

  • Content: —

    层的文件来源或文件内容

  • Description: —

    层的版本的描述

  • LicenseInfo: —

    层的软件许可证

  • Tags: —

    层Tag 参数,以键值对数组形式传入



4060
4061
4062
# File 'lib/v20180416/models.rb', line 4060

def CompatibleRuntimes
  @CompatibleRuntimes
end

#Content ⇒ Object

Parameters:

  • LayerName: —

    层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64

  • CompatibleRuntimes: —

    层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。

  • Content: —

    层的文件来源或文件内容

  • Description: —

    层的版本的描述

  • LicenseInfo: —

    层的软件许可证

  • Tags: —

    层Tag 参数,以键值对数组形式传入



4060
4061
4062
# File 'lib/v20180416/models.rb', line 4060

def Content
  @Content
end

#Description ⇒ Object

Parameters:

  • LayerName: —

    层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64

  • CompatibleRuntimes: —

    层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。

  • Content: —

    层的文件来源或文件内容

  • Description: —

    层的版本的描述

  • LicenseInfo: —

    层的软件许可证

  • Tags: —

    层Tag 参数,以键值对数组形式传入



4060
4061
4062
# File 'lib/v20180416/models.rb', line 4060

def Description
  @Description
end

#LayerName ⇒ Object

Parameters:

  • LayerName: —

    层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64

  • CompatibleRuntimes: —

    层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。

  • Content: —

    层的文件来源或文件内容

  • Description: —

    层的版本的描述

  • LicenseInfo: —

    层的软件许可证

  • Tags: —

    层Tag 参数,以键值对数组形式传入



4060
4061
4062
# File 'lib/v20180416/models.rb', line 4060

def LayerName
  @LayerName
end

#LicenseInfo ⇒ Object

Parameters:

  • LayerName: —

    层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64

  • CompatibleRuntimes: —

    层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。

  • Content: —

    层的文件来源或文件内容

  • Description: —

    层的版本的描述

  • LicenseInfo: —

    层的软件许可证

  • Tags: —

    层Tag 参数,以键值对数组形式传入



4060
4061
4062
# File 'lib/v20180416/models.rb', line 4060

def LicenseInfo
  @LicenseInfo
end

#Tags ⇒ Object

Parameters:

  • LayerName: —

    层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64

  • CompatibleRuntimes: —

    层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。

  • Content: —

    层的文件来源或文件内容

  • Description: —

    层的版本的描述

  • LicenseInfo: —

    层的软件许可证

  • Tags: —

    层Tag 参数,以键值对数组形式传入



4060
4061
4062
# File 'lib/v20180416/models.rb', line 4060

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
# File 'lib/v20180416/models.rb', line 4071

def deserialize(params)
  @LayerName = params['LayerName']
  @CompatibleRuntimes = params['CompatibleRuntimes']
  unless params['Content'].nil?
    @Content = Code.new
    @Content.deserialize(params['Content'])
  end
  @Description = params['Description']
  @LicenseInfo = params['LicenseInfo']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
end