Class: TencentCloud::Tem::V20201221::CreateCosTokenV2Request

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

Overview

CreateCosTokenV2请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(serviceid = nil, pkgname = nil, opttype = nil, sourcechannel = nil, timeversion = nil) ⇒ CreateCosTokenV2Request

Returns a new instance of CreateCosTokenV2Request.



139
140
141
142
143
144
145
# File 'lib/v20201221/models.rb', line 139

def initialize(serviceid=nil, pkgname=nil, opttype=nil, sourcechannel=nil, timeversion=nil)
  @ServiceId = serviceid
  @PkgName = pkgname
  @OptType = opttype
  @SourceChannel = sourcechannel
  @TimeVersion = timeversion
end

Instance Attribute Details

#OptTypeObject

Parameters:

  • ServiceId:

    服务ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



137
138
139
# File 'lib/v20201221/models.rb', line 137

def OptType
  @OptType
end

#PkgNameObject

Parameters:

  • ServiceId:

    服务ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



137
138
139
# File 'lib/v20201221/models.rb', line 137

def PkgName
  @PkgName
end

#ServiceIdObject

Parameters:

  • ServiceId:

    服务ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



137
138
139
# File 'lib/v20201221/models.rb', line 137

def ServiceId
  @ServiceId
end

#SourceChannelObject

Parameters:

  • ServiceId:

    服务ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



137
138
139
# File 'lib/v20201221/models.rb', line 137

def SourceChannel
  @SourceChannel
end

#TimeVersionObject

Parameters:

  • ServiceId:

    服务ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



137
138
139
# File 'lib/v20201221/models.rb', line 137

def TimeVersion
  @TimeVersion
end

Instance Method Details

#deserialize(params) ⇒ Object



147
148
149
150
151
152
153
# File 'lib/v20201221/models.rb', line 147

def deserialize(params)
  @ServiceId = params['ServiceId']
  @PkgName = params['PkgName']
  @OptType = params['OptType']
  @SourceChannel = params['SourceChannel']
  @TimeVersion = params['TimeVersion']
end