class AnywhereCache extends Resource (View source)

The "anywhereCache" collection of methods.

Typical usage is:

 $storageService = new Google\Service\Storage(...);
 $anywhereCache = $storageService->anywhereCache;

Methods

disable(string $bucket, string $anywhereCacheId, array $optParams = [])

Disables an Anywhere Cache instance. (anywhereCache.disable)

get(string $bucket, string $anywhereCacheId, array $optParams = [])

Returns the metadata of an Anywhere Cache instance. (anywhereCache.get)

insert(string $bucket, AnywhereCache $postBody, array $optParams = [])

Creates an Anywhere Cache instance. (anywhereCache.insert)

listAnywhereCache(string $bucket, array $optParams = [])

Returns a list of Anywhere Cache instances of the bucket matching the criteria. (anywhereCache.listAnywhereCache)

pause(string $bucket, string $anywhereCacheId, array $optParams = [])

Pauses an Anywhere Cache instance. (anywhereCache.pause)

resume(string $bucket, string $anywhereCacheId, array $optParams = [])

Resumes a paused or disabled Anywhere Cache instance. (anywhereCache.resume)

update(string $bucket, string $anywhereCacheId, AnywhereCache $postBody, array $optParams = [])

Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.

Details

AnywhereCache disable(string $bucket, string $anywhereCacheId, array $optParams = [])

Disables an Anywhere Cache instance. (anywhereCache.disable)

Parameters

string $bucket

Name of the parent bucket.

string $anywhereCacheId

The ID of requested Anywhere Cache instance.

array $optParams

Optional parameters.

Return Value

AnywhereCache

AnywhereCache get(string $bucket, string $anywhereCacheId, array $optParams = [])

Returns the metadata of an Anywhere Cache instance. (anywhereCache.get)

Parameters

string $bucket

Name of the parent bucket.

string $anywhereCacheId

The ID of requested Anywhere Cache instance.

array $optParams

Optional parameters.

Return Value

AnywhereCache

GoogleLongrunningOperation insert(string $bucket, AnywhereCache $postBody, array $optParams = [])

Creates an Anywhere Cache instance. (anywhereCache.insert)

Parameters

string $bucket

Name of the parent bucket.

AnywhereCache $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

AnywhereCaches listAnywhereCache(string $bucket, array $optParams = [])

Returns a list of Anywhere Cache instances of the bucket matching the criteria. (anywhereCache.listAnywhereCache)

Parameters

string $bucket

Name of the parent bucket.

array $optParams

Optional parameters.

Return Value

AnywhereCaches

AnywhereCache pause(string $bucket, string $anywhereCacheId, array $optParams = [])

Pauses an Anywhere Cache instance. (anywhereCache.pause)

Parameters

string $bucket

Name of the parent bucket.

string $anywhereCacheId

The ID of requested Anywhere Cache instance.

array $optParams

Optional parameters.

Return Value

AnywhereCache

AnywhereCache resume(string $bucket, string $anywhereCacheId, array $optParams = [])

Resumes a paused or disabled Anywhere Cache instance. (anywhereCache.resume)

Parameters

string $bucket

Name of the parent bucket.

string $anywhereCacheId

The ID of requested Anywhere Cache instance.

array $optParams

Optional parameters.

Return Value

AnywhereCache

GoogleLongrunningOperation update(string $bucket, string $anywhereCacheId, AnywhereCache $postBody, array $optParams = [])

Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.

(anywhereCache.update)

Parameters

string $bucket

Name of the parent bucket.

string $anywhereCacheId

The ID of requested Anywhere Cache instance.

AnywhereCache $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation