Class: TencentCloud::Tcr::V20190924::RetentionRule

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

Overview

版本保留规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, value = nil) ⇒ RetentionRule

Returns a new instance of RetentionRule.



6751
6752
6753
6754
# File 'lib/v20190924/models.rb', line 6751

def initialize(key=nil, value=nil)
  @Key = key
  @Value = value
end

Instance Attribute Details

#Key ⇒ Object

Parameters:

  • Key: —

    支持的策略,可选值为latestPushedK(保留最新推送多少个版本)nDaysSinceLastPush(保留近天内推送)

  • Value: —

    规则设置下的对应值



6749
6750
6751
# File 'lib/v20190924/models.rb', line 6749

def Key
  @Key
end

#Value ⇒ Object

Parameters:

  • Key: —

    支持的策略,可选值为latestPushedK(保留最新推送多少个版本)nDaysSinceLastPush(保留近天内推送)

  • Value: —

    规则设置下的对应值



6749
6750
6751
# File 'lib/v20190924/models.rb', line 6749

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



6756
6757
6758
6759
# File 'lib/v20190924/models.rb', line 6756

def deserialize(params)
  @Key = params['Key']
  @Value = params['Value']
end