Class: TencentCloud::Tem::V20201221::DeployStrategyConf

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

Overview

分批发布策略配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalbatchcount = nil, betabatchnum = nil, deploystrategytype = nil, batchinterval = nil) ⇒ DeployStrategyConf

Returns a new instance of DeployStrategyConf.



659
660
661
662
663
664
# File 'lib/v20201221/models.rb', line 659

def initialize(totalbatchcount=nil, betabatchnum=nil, deploystrategytype=nil, batchinterval=nil)
  @TotalBatchCount = totalbatchcount
  @BetaBatchNum = betabatchnum
  @DeployStrategyType = deploystrategytype
  @BatchInterval = batchinterval
end

Instance Attribute Details

#BatchIntervalObject

Parameters:

  • TotalBatchCount:

    总分批数

  • BetaBatchNum:

    beta分批实例数

  • DeployStrategyType:

    分批策略:0-全自动,1-全手动,beta分批一定是手动的,这里的策略指定的是剩余批次

  • BatchInterval:

    每批暂停间隔



657
658
659
# File 'lib/v20201221/models.rb', line 657

def BatchInterval
  @BatchInterval
end

#BetaBatchNumObject

Parameters:

  • TotalBatchCount:

    总分批数

  • BetaBatchNum:

    beta分批实例数

  • DeployStrategyType:

    分批策略:0-全自动,1-全手动,beta分批一定是手动的,这里的策略指定的是剩余批次

  • BatchInterval:

    每批暂停间隔



657
658
659
# File 'lib/v20201221/models.rb', line 657

def BetaBatchNum
  @BetaBatchNum
end

#DeployStrategyTypeObject

Parameters:

  • TotalBatchCount:

    总分批数

  • BetaBatchNum:

    beta分批实例数

  • DeployStrategyType:

    分批策略:0-全自动,1-全手动,beta分批一定是手动的,这里的策略指定的是剩余批次

  • BatchInterval:

    每批暂停间隔



657
658
659
# File 'lib/v20201221/models.rb', line 657

def DeployStrategyType
  @DeployStrategyType
end

#TotalBatchCountObject

Parameters:

  • TotalBatchCount:

    总分批数

  • BetaBatchNum:

    beta分批实例数

  • DeployStrategyType:

    分批策略:0-全自动,1-全手动,beta分批一定是手动的,这里的策略指定的是剩余批次

  • BatchInterval:

    每批暂停间隔



657
658
659
# File 'lib/v20201221/models.rb', line 657

def TotalBatchCount
  @TotalBatchCount
end

Instance Method Details

#deserialize(params) ⇒ Object



666
667
668
669
670
671
# File 'lib/v20201221/models.rb', line 666

def deserialize(params)
  @TotalBatchCount = params['TotalBatchCount']
  @BetaBatchNum = params['BetaBatchNum']
  @DeployStrategyType = params['DeployStrategyType']
  @BatchInterval = params['BatchInterval']
end