Skip to content

Commit 1a7dd23

Browse files
1 parent b6ee8c8 commit 1a7dd23

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

src/Storage/AnywhereCache.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ class AnywhereCache extends \Google\Model
5050
* @var string
5151
*/
5252
public $id;
53+
/**
54+
* Specifies whether objects are ingested into the cache upon write.
55+
*
56+
* @var bool
57+
*/
58+
public $ingestOnWrite;
5359
/**
5460
* The kind of item this is. For Anywhere Cache, this is always
5561
* storage#anywhereCache.
@@ -176,6 +182,22 @@ public function getId()
176182
{
177183
return $this->id;
178184
}
185+
/**
186+
* Specifies whether objects are ingested into the cache upon write.
187+
*
188+
* @param bool $ingestOnWrite
189+
*/
190+
public function setIngestOnWrite($ingestOnWrite)
191+
{
192+
$this->ingestOnWrite = $ingestOnWrite;
193+
}
194+
/**
195+
* @return bool
196+
*/
197+
public function getIngestOnWrite()
198+
{
199+
return $this->ingestOnWrite;
200+
}
179201
/**
180202
* The kind of item this is. For Anywhere Cache, this is always
181203
* storage#anywhereCache.

src/Storage/Resource/AnywhereCaches.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ public function resume($bucket, $anywhereCacheId, $optParams = [])
127127
return $this->call('resume', [$params], AnywhereCache::class);
128128
}
129129
/**
130-
* Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
131-
* (anywhereCaches.update)
130+
* Updates the config of an Anywhere Cache instance. (anywhereCaches.update)
132131
*
133132
* @param string $bucket Name of the parent bucket.
134133
* @param string $anywhereCacheId The ID of requested Anywhere Cache instance.

0 commit comments

Comments
 (0)