Skip to content

Commit 55c8d81

Browse files
1 parent 75834c3 commit 55c8d81

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

src/Storagetransfer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
292292
'location' => 'query',
293293
'type' => 'string',
294294
],
295+
'returnPartialSuccess' => [
296+
'location' => 'query',
297+
'type' => 'boolean',
298+
],
295299
],
296300
],'pause' => [
297301
'path' => 'v1/{+name}:pause',

src/Storagetransfer/ListOperationsResponse.php

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

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

3034
/**
3135
* @param string
@@ -55,6 +59,20 @@ public function getOperations()
5559
{
5660
return $this->operations;
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/Storagetransfer/Resource/TransferOperations.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ public function get($name, $optParams = [])
107107
*
108108
* @opt_param int pageSize The list page size. The max allowed value is 256.
109109
* @opt_param string pageToken The list page token.
110+
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
111+
* reachable are returned as normal, and those that are unreachable are returned
112+
* in the [ListOperationsResponse.unreachable] field. This can only be `true`
113+
* when reading across collections e.g. when `parent` is set to
114+
* `"projects/example/locations/-"`. This field is not by default supported and
115+
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
116+
* otherwise in service or product specific documentation.
110117
* @return ListOperationsResponse
111118
* @throws \Google\Service\Exception
112119
*/

0 commit comments

Comments
 (0)