Class: TencentCloud::Teo::V20220901::CacheParameters

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

Overview

节点缓存 TTL 配置参数。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(followorigin = nil, nocache = nil, customtime = nil) ⇒ CacheParameters

Returns a new instance of CacheParameters.



2699
2700
2701
2702
2703
# File 'lib/v20220901/models.rb', line 2699

def initialize(followorigin=nil, nocache=nil, customtime=nil)
  @FollowOrigin = followorigin
  @NoCache = nocache
  @CustomTime = customtime
end

Instance Attribute Details

#CustomTimeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FollowOrigin:

    缓存遵循源站。不填表示不设置该配置,FollowOrigin、NoCache、CustomTime 最多只能配置一个 Switch 为 on。

  • NoCache:

    不缓存。不填表示不设置该配置,FollowOrigin、NoCache、CustomTime 最多只能配置一个 Switch 为 on。

  • CustomTime:

    自定义缓存时间。不填表示不设置该配置,FollowOrigin、NoCache、CustomTime 最多只能配置一个 Switch 为 on。



2697
2698
2699
# File 'lib/v20220901/models.rb', line 2697

def CustomTime
  @CustomTime
end

#FollowOriginObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FollowOrigin:

    缓存遵循源站。不填表示不设置该配置,FollowOrigin、NoCache、CustomTime 最多只能配置一个 Switch 为 on。

  • NoCache:

    不缓存。不填表示不设置该配置,FollowOrigin、NoCache、CustomTime 最多只能配置一个 Switch 为 on。

  • CustomTime:

    自定义缓存时间。不填表示不设置该配置,FollowOrigin、NoCache、CustomTime 最多只能配置一个 Switch 为 on。



2697
2698
2699
# File 'lib/v20220901/models.rb', line 2697

def FollowOrigin
  @FollowOrigin
end

#NoCacheObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FollowOrigin:

    缓存遵循源站。不填表示不设置该配置,FollowOrigin、NoCache、CustomTime 最多只能配置一个 Switch 为 on。

  • NoCache:

    不缓存。不填表示不设置该配置,FollowOrigin、NoCache、CustomTime 最多只能配置一个 Switch 为 on。

  • CustomTime:

    自定义缓存时间。不填表示不设置该配置,FollowOrigin、NoCache、CustomTime 最多只能配置一个 Switch 为 on。



2697
2698
2699
# File 'lib/v20220901/models.rb', line 2697

def NoCache
  @NoCache
end

Instance Method Details

#deserialize(params) ⇒ Object



2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
# File 'lib/v20220901/models.rb', line 2705

def deserialize(params)
  unless params['FollowOrigin'].nil?
    @FollowOrigin = FollowOrigin.new
    @FollowOrigin.deserialize(params['FollowOrigin'])
  end
  unless params['NoCache'].nil?
    @NoCache = NoCache.new
    @NoCache.deserialize(params['NoCache'])
  end
  unless params['CustomTime'].nil?
    @CustomTime = CustomTime.new
    @CustomTime.deserialize(params['CustomTime'])
  end
end