Skip to content

Commit 136737b

Browse files
1 parent 2dde501 commit 136737b

3 files changed

Lines changed: 24 additions & 37 deletions

File tree

src/Digitalassetlinks.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
6464
'assetlinks',
6565
[
6666
'methods' => [
67-
'check' => [
67+
'bulkCheck' => [
68+
'path' => 'v1/assetlinks:bulkCheck',
69+
'httpMethod' => 'POST',
70+
'parameters' => [],
71+
],'check' => [
6872
'path' => 'v1/assetlinks:check',
6973
'httpMethod' => 'GET',
7074
'parameters' => [

src/Digitalassetlinks/BulkCheckRequest.php

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
class BulkCheckRequest extends \Google\Collection
2121
{
2222
protected $collection_key = 'statements';
23-
/**
24-
* @var bool
25-
*/
26-
public $allowGoogleInternalDataSources;
2723
/**
2824
* @var string
2925
*/
@@ -32,27 +28,9 @@ class BulkCheckRequest extends \Google\Collection
3228
protected $defaultSourceDataType = '';
3329
protected $defaultTargetType = Asset::class;
3430
protected $defaultTargetDataType = '';
35-
/**
36-
* @var bool
37-
*/
38-
public $skipCacheLookup;
3931
protected $statementsType = StatementTemplate::class;
4032
protected $statementsDataType = 'array';
4133

42-
/**
43-
* @param bool
44-
*/
45-
public function setAllowGoogleInternalDataSources($allowGoogleInternalDataSources)
46-
{
47-
$this->allowGoogleInternalDataSources = $allowGoogleInternalDataSources;
48-
}
49-
/**
50-
* @return bool
51-
*/
52-
public function getAllowGoogleInternalDataSources()
53-
{
54-
return $this->allowGoogleInternalDataSources;
55-
}
5634
/**
5735
* @param string
5836
*/
@@ -95,20 +73,6 @@ public function getDefaultTarget()
9573
{
9674
return $this->defaultTarget;
9775
}
98-
/**
99-
* @param bool
100-
*/
101-
public function setSkipCacheLookup($skipCacheLookup)
102-
{
103-
$this->skipCacheLookup = $skipCacheLookup;
104-
}
105-
/**
106-
* @return bool
107-
*/
108-
public function getSkipCacheLookup()
109-
{
110-
return $this->skipCacheLookup;
111-
}
11276
/**
11377
* @param StatementTemplate[]
11478
*/

src/Digitalassetlinks/Resource/Assetlinks.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
namespace Google\Service\Digitalassetlinks\Resource;
1919

20+
use Google\Service\Digitalassetlinks\BulkCheckRequest;
21+
use Google\Service\Digitalassetlinks\BulkCheckResponse;
2022
use Google\Service\Digitalassetlinks\CheckResponse;
2123

2224
/**
@@ -29,6 +31,23 @@
2931
*/
3032
class Assetlinks extends \Google\Service\Resource
3133
{
34+
/**
35+
* Send a bundle of statement checks in a single RPC to minimize latency and
36+
* service load. Statements need not be all for the same source and/or target.
37+
* We recommend using this method when you need to check more than one statement
38+
* in a short period of time. (assetlinks.bulkCheck)
39+
*
40+
* @param BulkCheckRequest $postBody
41+
* @param array $optParams Optional parameters.
42+
* @return BulkCheckResponse
43+
* @throws \Google\Service\Exception
44+
*/
45+
public function bulkCheck(BulkCheckRequest $postBody, $optParams = [])
46+
{
47+
$params = ['postBody' => $postBody];
48+
$params = array_merge($params, $optParams);
49+
return $this->call('bulkCheck', [$params], BulkCheckResponse::class);
50+
}
3251
/**
3352
* Determines whether the specified (directional) relationship exists between
3453
* the specified source and target assets. The relation describes the intent of

0 commit comments

Comments
 (0)