Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions src/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class Storage extends \Google\Service
public $operations;
public $projects_hmacKeys;
public $projects_serviceAccount;
public $rapidCaches;
public $rootUrlTemplate;

/**
Expand Down Expand Up @@ -1075,6 +1076,29 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'type' => 'string',
],
],
],'update' => [
'path' => 'b/{bucket}/managedFolders/{managedFolder}',
'httpMethod' => 'PATCH',
'parameters' => [
'bucket' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'managedFolder' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'ifMetagenerationMatch' => [
'location' => 'query',
'type' => 'string',
],
'ifMetagenerationNotMatch' => [
'location' => 'query',
'type' => 'string',
],
],
],
]
]
Expand Down Expand Up @@ -2262,6 +2286,89 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
]
]
);
$this->rapidCaches = new Storage\Resource\RapidCaches(
$this,
$this->serviceName,
'rapidCaches',
[
'methods' => [
'disable' => [
'path' => 'b/{bucket}/rapidCaches/{rapidCacheId}/disable',
'httpMethod' => 'POST',
'parameters' => [
'bucket' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'rapidCacheId' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'get' => [
'path' => 'b/{bucket}/rapidCaches/{rapidCacheId}',
'httpMethod' => 'GET',
'parameters' => [
'bucket' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'rapidCacheId' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'insert' => [
'path' => 'b/{bucket}/rapidCaches',
'httpMethod' => 'POST',
'parameters' => [
'bucket' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],'list' => [
'path' => 'b/{bucket}/rapidCaches',
'httpMethod' => 'GET',
'parameters' => [
'bucket' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'pageSize' => [
'location' => 'query',
'type' => 'integer',
],
'pageToken' => [
'location' => 'query',
'type' => 'string',
],
],
],'update' => [
'path' => 'b/{bucket}/rapidCaches/{rapidCacheId}',
'httpMethod' => 'PATCH',
'parameters' => [
'bucket' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
'rapidCacheId' => [
'location' => 'path',
'type' => 'string',
'required' => true,
],
],
],
]
]
);
}
}

Expand Down
18 changes: 18 additions & 0 deletions src/Storage/ManagedFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class ManagedFolder extends \Google\Model
* @var string
*/
public $name;
protected $rapidCacheConfigType = RapidCacheConfig::class;
protected $rapidCacheConfigDataType = '';
/**
* The link to this managed folder.
*
Expand Down Expand Up @@ -170,6 +172,22 @@ public function getName()
{
return $this->name;
}
/**
* The rapid cache configuration for the managed folder.
*
* @param RapidCacheConfig $rapidCacheConfig
*/
public function setRapidCacheConfig(RapidCacheConfig $rapidCacheConfig)
{
$this->rapidCacheConfig = $rapidCacheConfig;
}
/**
* @return RapidCacheConfig
*/
public function getRapidCacheConfig()
{
return $this->rapidCacheConfig;
}
/**
* The link to this managed folder.
*
Expand Down
Loading
Loading