Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::CacheInvalidationRule.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#backend_service
def backend_service() -> ::String
Returns
-
(::String) — If set, this invalidation rule will only apply to requests routed to the
given backend service or backend bucket.
For example, for a backend bucket
bb1in the same scope as the URL map, the path would beprojects/my-project/global/backendBuckets/bb1; and for a backend servicebs1in the same scope as the URL map, the path would beprojects/my-project/global/backendServices/bs1.
#backend_service=
def backend_service=(value) -> ::String
Parameter
-
value (::String) — If set, this invalidation rule will only apply to requests routed to the
given backend service or backend bucket.
For example, for a backend bucket
bb1in the same scope as the URL map, the path would beprojects/my-project/global/backendBuckets/bb1; and for a backend servicebs1in the same scope as the URL map, the path would beprojects/my-project/global/backendServices/bs1.
Returns
-
(::String) — If set, this invalidation rule will only apply to requests routed to the
given backend service or backend bucket.
For example, for a backend bucket
bb1in the same scope as the URL map, the path would beprojects/my-project/global/backendBuckets/bb1; and for a backend servicebs1in the same scope as the URL map, the path would beprojects/my-project/global/backendServices/bs1.
#cache_tags
def cache_tags() -> ::Array<::String>
Returns
-
(::Array<::String>) — A list of cache tags used to identify cached objects.
- Cache tags are specified when the response is first cached, by setting
the
Cache-Tagresponse header at the origin. - Multiple cache tags in the same invalidation request are treated as
Boolean
OR- for example,tag1 OR tag2 OR tag3. - If other fields are also specified, these are treated as Boolean
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
- Cache tags are specified when the response is first cached, by setting
the
#cache_tags=
def cache_tags=(value) -> ::Array<::String>
Parameter
-
value (::Array<::String>) — A list of cache tags used to identify cached objects.
- Cache tags are specified when the response is first cached, by setting
the
Cache-Tagresponse header at the origin. - Multiple cache tags in the same invalidation request are treated as
Boolean
OR- for example,tag1 OR tag2 OR tag3. - If other fields are also specified, these are treated as Boolean
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
- Cache tags are specified when the response is first cached, by setting
the
Returns
-
(::Array<::String>) — A list of cache tags used to identify cached objects.
- Cache tags are specified when the response is first cached, by setting
the
Cache-Tagresponse header at the origin. - Multiple cache tags in the same invalidation request are treated as
Boolean
OR- for example,tag1 OR tag2 OR tag3. - If other fields are also specified, these are treated as Boolean
ANDwith any tags.
Up to 10 tags can be specified in a single invalidation request.
- Cache tags are specified when the response is first cached, by setting
the
#content_type
def content_type() -> ::String
Returns
- (::String) — If set, this invalidation rule will only apply to responses with the given content-type. Parameters are not allowed and are ignored from the response when matching. Wildcards are not allowed.
#content_type=
def content_type=(value) -> ::String
Parameter
- value (::String) — If set, this invalidation rule will only apply to responses with the given content-type. Parameters are not allowed and are ignored from the response when matching. Wildcards are not allowed.
Returns
- (::String) — If set, this invalidation rule will only apply to responses with the given content-type. Parameters are not allowed and are ignored from the response when matching. Wildcards are not allowed.
#host
def host() -> ::String
Returns
- (::String) — If set, this invalidation rule will only apply to requests with a Host header matching host. This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. For example, *.example.com will match www.example.com, but not sub1.dev.example.com.
#host=
def host=(value) -> ::String
Parameter
- value (::String) — If set, this invalidation rule will only apply to requests with a Host header matching host. This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. For example, *.example.com will match www.example.com, but not sub1.dev.example.com.
Returns
- (::String) — If set, this invalidation rule will only apply to requests with a Host header matching host. This field also accepts wildcards (*) to replace the leftmost (or first) label of a hostname. For example, *.example.com will match www.example.com, but not sub1.dev.example.com.
#http_status
def http_status() -> ::Integer
Returns
- (::Integer) — If set, this invalidation rule will only apply to responses with the given HTTP status. Valid range is 200-599.
#http_status=
def http_status=(value) -> ::Integer
Parameter
- value (::Integer) — If set, this invalidation rule will only apply to responses with the given HTTP status. Valid range is 200-599.
Returns
- (::Integer) — If set, this invalidation rule will only apply to responses with the given HTTP status. Valid range is 200-599.
#path
def path() -> ::String
Returns
- (::String)
#path=
def path=(value) -> ::String
Parameter
- value (::String)
Returns
- (::String)