Skip to content

Commit e8888be

Browse files
1 parent 3afb16d commit e8888be

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

src/BackupforGKE.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
327327
'location' => 'query',
328328
'type' => 'string',
329329
],
330+
'returnPartialSuccess' => [
331+
'location' => 'query',
332+
'type' => 'boolean',
333+
],
330334
],
331335
],'patch' => [
332336
'path' => 'v1/{+name}',

src/BackupforGKE/ListBackupsResponse.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919

2020
class ListBackupsResponse extends \Google\Collection
2121
{
22-
protected $collection_key = 'backups';
22+
protected $collection_key = 'unreachable';
2323
protected $backupsType = Backup::class;
2424
protected $backupsDataType = 'array';
2525
/**
2626
* @var string
2727
*/
2828
public $nextPageToken;
29+
/**
30+
* @var string[]
31+
*/
32+
public $unreachable;
2933

3034
/**
3135
* @param Backup[]
@@ -55,6 +59,20 @@ public function getNextPageToken()
5559
{
5660
return $this->nextPageToken;
5761
}
62+
/**
63+
* @param string[]
64+
*/
65+
public function setUnreachable($unreachable)
66+
{
67+
$this->unreachable = $unreachable;
68+
}
69+
/**
70+
* @return string[]
71+
*/
72+
public function getUnreachable()
73+
{
74+
return $this->unreachable;
75+
}
5876
}
5977

6078
// Adding a class alias for backwards compatibility with the previous class name.

src/BackupforGKE/Resource/ProjectsLocationsBackupPlansBackups.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ public function getIamPolicy($resource, $optParams = [])
160160
* from a previous `ListBackups` call. Provide this to retrieve the subsequent
161161
* page in a multi-page list of results. When paginating, all other parameters
162162
* provided to `ListBackups` must match the call that provided the page token.
163+
* @opt_param bool returnPartialSuccess Optional. If set to true, the response
164+
* will return partial results when some regions are unreachable and the
165+
* unreachable field will be populated.
163166
* @return ListBackupsResponse
164167
* @throws \Google\Service\Exception
165168
*/

0 commit comments

Comments
 (0)