Class: TencentCloud::Tem::V20210701::CreateCosTokenRequest

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

Overview

CreateCosToken请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(applicationid = nil, pkgname = nil, opttype = nil, sourcechannel = nil, timeversion = nil) ⇒ CreateCosTokenRequest

Returns a new instance of CreateCosTokenRequest.



466
467
468
469
470
471
472
# File 'lib/v20210701/models.rb', line 466

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

Instance Attribute Details

#ApplicationIdObject

Parameters:

  • ApplicationId:

    应用ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



464
465
466
# File 'lib/v20210701/models.rb', line 464

def ApplicationId
  @ApplicationId
end

#OptTypeObject

Parameters:

  • ApplicationId:

    应用ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



464
465
466
# File 'lib/v20210701/models.rb', line 464

def OptType
  @OptType
end

#PkgNameObject

Parameters:

  • ApplicationId:

    应用ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



464
465
466
# File 'lib/v20210701/models.rb', line 464

def PkgName
  @PkgName
end

#SourceChannelObject

Parameters:

  • ApplicationId:

    应用ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



464
465
466
# File 'lib/v20210701/models.rb', line 464

def SourceChannel
  @SourceChannel
end

#TimeVersionObject

Parameters:

  • ApplicationId:

    应用ID

  • PkgName:

    包名

  • OptType:

    optType 1上传 2查询

  • SourceChannel:

    来源 channel

  • TimeVersion:

    充当deployVersion入参



464
465
466
# File 'lib/v20210701/models.rb', line 464

def TimeVersion
  @TimeVersion
end

Instance Method Details

#deserialize(params) ⇒ Object



474
475
476
477
478
479
480
# File 'lib/v20210701/models.rb', line 474

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