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
4 changes: 4 additions & 0 deletions src/CloudDomains.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
'location' => 'query',
'type' => 'string',
],
'returnPartialSuccess' => [
'location' => 'query',
'type' => 'boolean',
],
],
],
]
Expand Down
30 changes: 29 additions & 1 deletion src/CloudDomains/ListOperationsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
Expand All @@ -28,6 +28,15 @@ class ListOperationsResponse extends \Google\Collection
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;

/**
* The standard List next-page token.
Expand Down Expand Up @@ -61,6 +70,25 @@ public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
Expand Down
12 changes: 8 additions & 4 deletions src/CloudDomains/Resource/ProjectsLocations.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,20 @@ public function get($name, $optParams = [])
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* Lists information about the supported locations for this service. This method
* can be called in two ways: * **List all public locations:** Use the path `GET
* /v1/locations`. * **List project-visible locations:** Use the path `GET
* /v1/projects/{project_id}/locations`. This may include public locations as
* well as private or other locations specifically visible to the project.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Unless explicitly documented
* otherwise, don't use this unsupported field which is primarily intended for
* internal usage.
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
* unsupported and is ignored unless explicitly documented otherwise. This is
* primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
Expand Down
7 changes: 7 additions & 0 deletions src/CloudDomains/Resource/ProjectsLocationsOperations.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ public function get($name, $optParams = [])
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
Expand Down