class AnywhereCaches extends Resource (View source)

The "anywhereCaches" collection of methods.

Typical usage is:

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

Methods

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

Disables an Anywhere Cache instance. (anywhereCaches.disable)

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

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

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

Creates an Anywhere Cache instance. (anywhereCaches.insert)

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

Returns a list of Anywhere Cache instances of the bucket matching the criteria. (anywhereCaches.listAnywhereCaches)

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

Pauses an Anywhere Cache instance. (anywhereCaches.pause)

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

Resumes a paused or disabled Anywhere Cache instance. (anywhereCaches.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. (anywhereCaches.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

Exceptions

Exception

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

Returns the metadata of an Anywhere Cache instance. (anywhereCaches.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

Exceptions

Exception

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

Creates an Anywhere Cache instance. (anywhereCaches.insert)

Parameters

string $bucket

Name of the parent bucket.

AnywhereCache $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Returns a list of Anywhere Cache instances of the bucket matching the criteria. (anywhereCaches.listAnywhereCaches)

Parameters

string $bucket

Name of the parent bucket.

array $optParams

Optional parameters.

Return Value

AnywhereCaches

Exceptions

Exception

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

Pauses an Anywhere Cache instance. (anywhereCaches.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

Exceptions

Exception

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

Resumes a paused or disabled Anywhere Cache instance. (anywhereCaches.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

Exceptions

Exception

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

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

(anywhereCaches.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

Exceptions

Exception