Skip to content

Commit 9ca19f9

Browse files
1 parent db77929 commit 9ca19f9

13 files changed

Lines changed: 110 additions & 25 deletions

src/CloudSearch.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* <p>
3131
* For more information about this service, see the API
32-
* <a href="https://developers.google.com/cloud-search/docs/guides/" target="_blank">Documentation</a>
32+
* <a href="https://developers.google.com/workspace/cloud-search/docs/guides/" target="_blank">Documentation</a>
3333
* </p>
3434
*
3535
* @author Google, Inc.
@@ -504,6 +504,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
504504
'location' => 'query',
505505
'type' => 'string',
506506
],
507+
'returnPartialSuccess' => [
508+
'location' => 'query',
509+
'type' => 'boolean',
510+
],
507511
],
508512
],
509513
]

src/CloudSearch/Item.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Item extends \Google\Model
7979
* to the version of the currently indexed item. The maximum length for this
8080
* field is 1024 bytes. For information on how item version affects the
8181
* deletion process, refer to [Handle revisions after manual
82-
* deletes](https://developers.google.com/cloud-
82+
* deletes](https://developers.google.com/workspace/cloud-
8383
* search/docs/guides/operations).
8484
*
8585
* @var string
@@ -244,7 +244,7 @@ public function getStructuredData()
244244
* to the version of the currently indexed item. The maximum length for this
245245
* field is 1024 bytes. For information on how item version affects the
246246
* deletion process, refer to [Handle revisions after manual
247-
* deletes](https://developers.google.com/cloud-
247+
* deletes](https://developers.google.com/workspace/cloud-
248248
* search/docs/guides/operations).
249249
*
250250
* @param string $version

src/CloudSearch/ListOperationsResponse.php

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

2020
class ListOperationsResponse extends \Google\Collection
2121
{
22-
protected $collection_key = 'operations';
22+
protected $collection_key = 'unreachable';
2323
/**
2424
* The standard List next-page token.
2525
*
@@ -28,6 +28,15 @@ class ListOperationsResponse extends \Google\Collection
2828
public $nextPageToken;
2929
protected $operationsType = Operation::class;
3030
protected $operationsDataType = 'array';
31+
/**
32+
* Unordered list. Unreachable resources. Populated when the request sets
33+
* `ListOperationsRequest.return_partial_success` and reads across
34+
* collections. For example, when attempting to list all resources across all
35+
* supported locations.
36+
*
37+
* @var string[]
38+
*/
39+
public $unreachable;
3140

3241
/**
3342
* The standard List next-page token.
@@ -61,6 +70,25 @@ public function getOperations()
6170
{
6271
return $this->operations;
6372
}
73+
/**
74+
* Unordered list. Unreachable resources. Populated when the request sets
75+
* `ListOperationsRequest.return_partial_success` and reads across
76+
* collections. For example, when attempting to list all resources across all
77+
* supported locations.
78+
*
79+
* @param string[] $unreachable
80+
*/
81+
public function setUnreachable($unreachable)
82+
{
83+
$this->unreachable = $unreachable;
84+
}
85+
/**
86+
* @return string[]
87+
*/
88+
public function getUnreachable()
89+
{
90+
return $this->unreachable;
91+
}
6492
}
6593

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

src/CloudSearch/PropertyDefinition.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ class PropertyDefinition extends \Google\Model
8484
* supported for Text properties. IsReturnable must be true to set this
8585
* option. In a given datasource maximum of 5 properties can be marked as
8686
* is_wildcard_searchable. For more details, see [Define object
87-
* properties](https://developers.google.com/cloud-search/docs/guides/schema-
88-
* guide#properties)
87+
* properties](https://developers.google.com/workspace/cloud-
88+
* search/docs/guides/schema-guide#properties)
8989
*
9090
* @var bool
9191
*/
@@ -313,8 +313,8 @@ public function getIsSuggestable()
313313
* supported for Text properties. IsReturnable must be true to set this
314314
* option. In a given datasource maximum of 5 properties can be marked as
315315
* is_wildcard_searchable. For more details, see [Define object
316-
* properties](https://developers.google.com/cloud-search/docs/guides/schema-
317-
* guide#properties)
316+
* properties](https://developers.google.com/workspace/cloud-
317+
* search/docs/guides/schema-guide#properties)
318318
*
319319
* @param bool $isWildcardSearchable
320320
*/

src/CloudSearch/QueryInterpretation.php

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ class QueryInterpretation extends \Google\Model
6060
* @var string
6161
*/
6262
public $interpretedQuery;
63+
/**
64+
* The actual number of results returned by the interpreted query.
65+
*
66+
* @var int
67+
*/
68+
public $interpretedQueryActualResultCount;
69+
/**
70+
* The estimated number of results returned by the interpreted query.
71+
*
72+
* @var string
73+
*/
74+
public $interpretedQueryEstimatedResultCount;
6375
/**
6476
* The reason for interpretation of the query. This field will not be
6577
* UNSPECIFIED if the interpretation type is not NONE.
@@ -101,6 +113,38 @@ public function getInterpretedQuery()
101113
{
102114
return $this->interpretedQuery;
103115
}
116+
/**
117+
* The actual number of results returned by the interpreted query.
118+
*
119+
* @param int $interpretedQueryActualResultCount
120+
*/
121+
public function setInterpretedQueryActualResultCount($interpretedQueryActualResultCount)
122+
{
123+
$this->interpretedQueryActualResultCount = $interpretedQueryActualResultCount;
124+
}
125+
/**
126+
* @return int
127+
*/
128+
public function getInterpretedQueryActualResultCount()
129+
{
130+
return $this->interpretedQueryActualResultCount;
131+
}
132+
/**
133+
* The estimated number of results returned by the interpreted query.
134+
*
135+
* @param string $interpretedQueryEstimatedResultCount
136+
*/
137+
public function setInterpretedQueryEstimatedResultCount($interpretedQueryEstimatedResultCount)
138+
{
139+
$this->interpretedQueryEstimatedResultCount = $interpretedQueryEstimatedResultCount;
140+
}
141+
/**
142+
* @return string
143+
*/
144+
public function getInterpretedQueryEstimatedResultCount()
145+
{
146+
return $this->interpretedQueryEstimatedResultCount;
147+
}
104148
/**
105149
* The reason for interpretation of the query. This field will not be
106150
* UNSPECIFIED if the interpretation type is not NONE.

src/CloudSearch/Resource/IndexingDatasourcesItems.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ class IndexingDatasourcesItems extends \Google\Service\Resource
6161
* to the version of the currently indexed item. The maximum length for this
6262
* field is 1024 bytes. For information on how item version affects the deletion
6363
* process, refer to [Handle revisions after manual
64-
* deletes](https://developers.google.com/cloud-search/docs/guides/operations).
64+
* deletes](https://developers.google.com/workspace/cloud-
65+
* search/docs/guides/operations).
6566
* @return Operation
6667
* @throws \Google\Service\Exception
6768
*/

src/CloudSearch/Resource/Media.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Media extends \Google\Service\Resource
3232
/**
3333
* Uploads media for indexing. The upload endpoint supports direct and resumable
3434
* upload protocols and is intended for large items that can not be [inlined
35-
* during index requests](https://developers.google.com/cloud-
35+
* during index requests](https://developers.google.com/workspace/cloud-
3636
* search/docs/reference/rest/v1/indexing.datasources.items#itemcontent). To
3737
* index large content: 1. Call indexing.datasources.items.upload with the item
3838
* name to begin an upload session and retrieve the UploadItemRef. 1. Call
@@ -42,7 +42,8 @@ class Media extends \Google\Service\Resource
4242
* [ItemContent](/cloud-
4343
* search/docs/reference/rest/v1/indexing.datasources.items#ItemContent) with
4444
* the UploadItemRef from step 1. For additional information, see [Create a
45-
* content connector using the REST API](https://developers.google.com/cloud-
45+
* content connector using the REST
46+
* API](https://developers.google.com/workspace/cloud-
4647
* search/docs/guides/content-connector#rest). **Note:** This API requires a
4748
* service account to execute. (media.upload)
4849
*

src/CloudSearch/Resource/OperationsLro.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ class OperationsLro extends \Google\Service\Resource
4040
* @opt_param string filter The standard list filter.
4141
* @opt_param int pageSize The standard list page size.
4242
* @opt_param string pageToken The standard list page token.
43+
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
44+
* reachable are returned as normal, and those that are unreachable are returned
45+
* in the ListOperationsResponse.unreachable field. This can only be `true` when
46+
* reading across collections. For example, when `parent` is set to
47+
* `"projects/example/locations/-"`. This field is not supported by default and
48+
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
49+
* otherwise in service or product specific documentation.
4350
* @return ListOperationsResponse
4451
* @throws \Google\Service\Exception
4552
*/

src/CloudSearch/Resource/Query.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Query extends \Google\Service\Resource
4040
* method. **Note:** This API requires a standard end user account to execute. A
4141
* service account can't perform Query API requests directly; to use a service
4242
* account to perform queries, set up [Google Workspace domain-wide delegation
43-
* of authority](https://developers.google.com/cloud-
43+
* of authority](https://developers.google.com/workspace/cloud-
4444
* search/docs/guides/delegation/). (query.debugSearch)
4545
*
4646
* @param SearchRequest $postBody
@@ -60,7 +60,7 @@ public function debugSearch(SearchRequest $postBody, $optParams = [])
6060
* account to execute. A service account can't perform Remove Activity requests
6161
* directly; to use a service account to perform queries, set up [Google
6262
* Workspace domain-wide delegation of
63-
* authority](https://developers.google.com/cloud-
63+
* authority](https://developers.google.com/workspace/cloud-
6464
* search/docs/guides/delegation/). (query.removeActivity)
6565
*
6666
* @param RemoveActivityRequest $postBody
@@ -82,7 +82,7 @@ public function removeActivity(RemoveActivityRequest $postBody, $optParams = [])
8282
* standard end user account to execute. A service account can't perform Query
8383
* API requests directly; to use a service account to perform queries, set up
8484
* [Google Workspace domain-wide delegation of
85-
* authority](https://developers.google.com/cloud-
85+
* authority](https://developers.google.com/workspace/cloud-
8686
* search/docs/guides/delegation/). (query.search)
8787
*
8888
* @param SearchRequest $postBody
@@ -101,7 +101,7 @@ public function search(SearchRequest $postBody, $optParams = [])
101101
* requires a standard end user account to execute. A service account can't
102102
* perform Query API requests directly; to use a service account to perform
103103
* queries, set up [Google Workspace domain-wide delegation of
104-
* authority](https://developers.google.com/cloud-
104+
* authority](https://developers.google.com/workspace/cloud-
105105
* search/docs/guides/delegation/). (query.suggest)
106106
*
107107
* @param SuggestRequest $postBody

src/CloudSearch/Resource/QuerySources.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class QuerySources extends \Google\Service\Resource
3434
* **Note:** This API requires a standard end user account to execute. A service
3535
* account can't perform Query API requests directly; to use a service account
3636
* to perform queries, set up [Google Workspace domain-wide delegation of
37-
* authority](https://developers.google.com/cloud-
37+
* authority](https://developers.google.com/workspace/cloud-
3838
* search/docs/guides/delegation/). (sources.listQuerySources)
3939
*
4040
* @param array $optParams Optional parameters.

0 commit comments

Comments
 (0)