SDK reference / Models / Media

CacheRule

Kind: class

Namespace: Egulu.Sdk.Models.Media

A cache rule of one served host (extends the route cache of ADR-0614; ADR-0787 item 9).

Properties

NameTypeJSON nameDescription
CreateTimeDateTimeOffset?createTimeThe createTime property
Enabledbool?enabledThe enabled property
Etagstring?etagThe etag property
Hostnamestring?hostnameThe host an ingress route of the project serves.
Namestring?nameprojects/{project}/locations/{location}/cacheRules/{cacheRule}.
OriginCacheControlstring?originCacheControl`HONOUR` (the origin's max-age or s-maxage wins when it names one) or `IGNORE` (the rule's lifetime always applies). Responses that are private or no-store, answered to a request with Authorization, or that set a cookie are never shared, whatever the rule says.
PathPatternstring?pathPattern`/exact`, `/prefix/*`, `*.ext` or `/*` (up to 200 characters; no regular expression).
Priorityint?priority0 to 1000; the lower runs first, then the longer pattern.
QueryAllowList<string>?queryAllowThe query parameter names kept for `ALLOW_LIST`, at most 10.
QueryStringstring?queryString`IGNORE` (the query string is not part of the key), `INCLUDE_ALL` or `ALLOW_LIST`.
Statestring?state`PENDING`, `APPLIED` or `ERROR`: the state of the host's rules at the edge.
StateReasonstring?stateReasonWhy the edge has not applied the rules.
TtlSecondsint?ttlSeconds0 to 86400 seconds; 0 never caches.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property