Class: TencentCloud::Teo::V20220901::CacheConfigParameters

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) ⇒ CacheConfigParameters

Returns a new instance of CacheConfigParameters.



2414
2415
2416
2417
2418
# File 'lib/v20220901/models.rb', line 2414

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。



2412
2413
2414
# File 'lib/v20220901/models.rb', line 2412

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。



2412
2413
2414
# File 'lib/v20220901/models.rb', line 2412

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。



2412
2413
2414
# File 'lib/v20220901/models.rb', line 2412

def NoCache
  @NoCache
end

Instance Method Details

#deserialize(params) ⇒ Object



2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
# File 'lib/v20220901/models.rb', line 2420

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 = CacheConfigCustomTime.new
    @CustomTime.deserialize(params['CustomTime'])
  end
end