Class: TencentCloud::Teo::V20220901::CacheKeyParameters

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

Overview

自定义 Cache Key 配置参数。该配置参数的 FullURLCache 和 QueryString 采用组合表达,具体示例可以参考:

  • 查询字符串全部保留。开启忽略大小写。

“‘ {

"CacheKey": {
  "FullURLCache": "on",
  "QueryString": {
    "Switch": "off"
  },
  "IgnoreCase": "on"
}

} “‘

  • 查询字符串全部忽略。开启忽略大小写。

“‘ {

"CacheKey": {
  "FullURLCache": "off",
  "QueryString": {
    "Switch": "off"
  },
  "IgnoreCase": "on"
}

} “‘

  • 查询字符串保留指定参数。关闭忽略大小写。

“‘ {

"CacheKey": {
  "FullURLCache": "off",
  "QueryString": {
      "Switch": "on",
      "Action": "includeCustom",
      "Values": ["name1","name2","name3"]
  },
  "IgnoreCase": "off"
}

} “‘

  • 查询字符串忽略指定参数。关闭忽略大小写。

“‘ {

"CacheKey": {
  "FullURLCache": "off",
  "QueryString": {
      "Switch": "on",
      "Action": "excludeCustom",
      "Values": ["name1","name2","name3"]
  },
  "IgnoreCase": "off"
}

} “‘

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fullurlcache = nil, querystring = nil, ignorecase = nil, header = nil, scheme = nil, cookie = nil) ⇒ CacheKeyParameters

Returns a new instance of CacheKeyParameters.



2629
2630
2631
2632
2633
2634
2635
2636
# File 'lib/v20220901/models.rb', line 2629

def initialize(fullurlcache=nil, querystring=nil, ignorecase=nil, header=nil, scheme=nil, cookie=nil)
  @FullURLCache = fullurlcache
  @QueryString = querystring
  @IgnoreCase = ignorecase
  @Header = header
  @Scheme = scheme
  @Cookie = cookie
end

Instance Attribute Details

<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。此字段和 QueryString.Switch 必须同时设置,但不能同为 on。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullURLCache:

    查询字符串全部保留开关,取值有:

  • QueryString:

    查询字符串保留配置参数。此字段和 FullURLCache 必须同时设置,但不能同为 on。

  • IgnoreCase:

    忽略大小写开关,取值有:

  • Header:

    HTTP 请求头配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。

  • Scheme:

    请求协议开关,取值有:

  • Cookie:

    Cookie 配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。



2627
2628
2629
# File 'lib/v20220901/models.rb', line 2627

def Cookie
  @Cookie
end

#FullURLCacheObject

<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。此字段和 QueryString.Switch 必须同时设置,但不能同为 on。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullURLCache:

    查询字符串全部保留开关,取值有:

  • QueryString:

    查询字符串保留配置参数。此字段和 FullURLCache 必须同时设置,但不能同为 on。

  • IgnoreCase:

    忽略大小写开关,取值有:

  • Header:

    HTTP 请求头配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。

  • Scheme:

    请求协议开关,取值有:

  • Cookie:

    Cookie 配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。



2627
2628
2629
# File 'lib/v20220901/models.rb', line 2627

def FullURLCache
  @FullURLCache
end

#HeaderObject

<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。此字段和 QueryString.Switch 必须同时设置,但不能同为 on。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullURLCache:

    查询字符串全部保留开关,取值有:

  • QueryString:

    查询字符串保留配置参数。此字段和 FullURLCache 必须同时设置,但不能同为 on。

  • IgnoreCase:

    忽略大小写开关,取值有:

  • Header:

    HTTP 请求头配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。

  • Scheme:

    请求协议开关,取值有:

  • Cookie:

    Cookie 配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。



2627
2628
2629
# File 'lib/v20220901/models.rb', line 2627

def Header
  @Header
end

#IgnoreCaseObject

<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。此字段和 QueryString.Switch 必须同时设置,但不能同为 on。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullURLCache:

    查询字符串全部保留开关,取值有:

  • QueryString:

    查询字符串保留配置参数。此字段和 FullURLCache 必须同时设置,但不能同为 on。

  • IgnoreCase:

    忽略大小写开关,取值有:

  • Header:

    HTTP 请求头配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。

  • Scheme:

    请求协议开关,取值有:

  • Cookie:

    Cookie 配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。



2627
2628
2629
# File 'lib/v20220901/models.rb', line 2627

def IgnoreCase
  @IgnoreCase
end

#QueryStringObject

<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。此字段和 QueryString.Switch 必须同时设置,但不能同为 on。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullURLCache:

    查询字符串全部保留开关,取值有:

  • QueryString:

    查询字符串保留配置参数。此字段和 FullURLCache 必须同时设置,但不能同为 on。

  • IgnoreCase:

    忽略大小写开关,取值有:

  • Header:

    HTTP 请求头配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。

  • Scheme:

    请求协议开关,取值有:

  • Cookie:

    Cookie 配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。



2627
2628
2629
# File 'lib/v20220901/models.rb', line 2627

def QueryString
  @QueryString
end

#SchemeObject

<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。此字段和 QueryString.Switch 必须同时设置,但不能同为 on。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。<li>on:开启;</li> <li>off:关闭。</li>注意:FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • FullURLCache:

    查询字符串全部保留开关,取值有:

  • QueryString:

    查询字符串保留配置参数。此字段和 FullURLCache 必须同时设置,但不能同为 on。

  • IgnoreCase:

    忽略大小写开关,取值有:

  • Header:

    HTTP 请求头配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。

  • Scheme:

    请求协议开关,取值有:

  • Cookie:

    Cookie 配置参数。FullURLCache、IgnoreCase、Header、Scheme、Cookie 至少设置一个配置。



2627
2628
2629
# File 'lib/v20220901/models.rb', line 2627

def Scheme
  @Scheme
end

Instance Method Details

#deserialize(params) ⇒ Object



2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
# File 'lib/v20220901/models.rb', line 2638

def deserialize(params)
  @FullURLCache = params['FullURLCache']
  unless params['QueryString'].nil?
    @QueryString = CacheKeyQueryString.new
    @QueryString.deserialize(params['QueryString'])
  end
  @IgnoreCase = params['IgnoreCase']
  unless params['Header'].nil?
    @Header = CacheKeyHeader.new
    @Header.deserialize(params['Header'])
  end
  @Scheme = params['Scheme']
  unless params['Cookie'].nil?
    @Cookie = CacheKeyCookie.new
    @Cookie.deserialize(params['Cookie'])
  end
end