Skip to content

Commit 951f227

Browse files
1 parent 80636db commit 951f227

File tree

6 files changed

+78
-1
lines changed

6 files changed

+78
-1
lines changed

src/Digitalassetlinks.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
7676
'location' => 'query',
7777
'type' => 'string',
7878
],
79+
'returnRelationExtensions' => [
80+
'location' => 'query',
81+
'type' => 'boolean',
82+
],
7983
'source.androidApp.certificate.sha256Fingerprint' => [
8084
'location' => 'query',
8185
'type' => 'string',
@@ -119,6 +123,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
119123
'location' => 'query',
120124
'type' => 'string',
121125
],
126+
'returnRelationExtensions' => [
127+
'location' => 'query',
128+
'type' => 'boolean',
129+
],
122130
'source.androidApp.certificate.sha256Fingerprint' => [
123131
'location' => 'query',
124132
'type' => 'string',

src/Digitalassetlinks/BulkCheckRequest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ class BulkCheckRequest extends \Google\Collection
2828
protected $defaultSourceDataType = '';
2929
protected $defaultTargetType = Asset::class;
3030
protected $defaultTargetDataType = '';
31+
/**
32+
* @var bool
33+
*/
34+
public $returnRelationExtensions;
3135
protected $statementsType = StatementTemplate::class;
3236
protected $statementsDataType = 'array';
3337

@@ -73,6 +77,20 @@ public function getDefaultTarget()
7377
{
7478
return $this->defaultTarget;
7579
}
80+
/**
81+
* @param bool
82+
*/
83+
public function setReturnRelationExtensions($returnRelationExtensions)
84+
{
85+
$this->returnRelationExtensions = $returnRelationExtensions;
86+
}
87+
/**
88+
* @return bool
89+
*/
90+
public function getReturnRelationExtensions()
91+
{
92+
return $this->returnRelationExtensions;
93+
}
7694
/**
7795
* @param StatementTemplate[]
7896
*/

src/Digitalassetlinks/CheckResponse.php

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

2020
class CheckResponse extends \Google\Collection
2121
{
22-
protected $collection_key = 'errorCode';
22+
protected $collection_key = 'relationExtensions';
2323
/**
2424
* @var string
2525
*/
@@ -36,6 +36,10 @@ class CheckResponse extends \Google\Collection
3636
* @var string
3737
*/
3838
public $maxAge;
39+
/**
40+
* @var array[]
41+
*/
42+
public $relationExtensions;
3943

4044
/**
4145
* @param string
@@ -93,6 +97,20 @@ public function getMaxAge()
9397
{
9498
return $this->maxAge;
9599
}
100+
/**
101+
* @param array[]
102+
*/
103+
public function setRelationExtensions($relationExtensions)
104+
{
105+
$this->relationExtensions = $relationExtensions;
106+
}
107+
/**
108+
* @return array[]
109+
*/
110+
public function getRelationExtensions()
111+
{
112+
return $this->relationExtensions;
113+
}
96114
}
97115

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

src/Digitalassetlinks/Resource/Assetlinks.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ public function bulkCheck(BulkCheckRequest $postBody, $optParams = [])
8080
* query's and the asset link's relation strings must match exactly. Example: A
8181
* query with relation `delegate_permission/common.handle_all_urls` matches an
8282
* asset link with relation `delegate_permission/common.handle_all_urls`.
83+
* @opt_param bool returnRelationExtensions Whether to return
84+
* relation_extensions payloads specified in the source Digital Asset Links
85+
* statements linking the requested source and target assets by the requested
86+
* relation type. If this is set to `false` (default), relation_extensions
87+
* specified will not be returned, even if they are specified in the DAL
88+
* statement file. If set to `true`, the API will propagate any and all
89+
* relation_extensions, across statements, linking the source and target assets
90+
* by the requested relation type, if specified in the DAL statement file.
8391
* @opt_param string source.androidApp.certificate.sha256Fingerprint The
8492
* uppercase SHA-265 fingerprint of the certificate. From the PEM certificate,
8593
* it can be acquired like this: $ keytool -printcert -file $CERTFILE | grep

src/Digitalassetlinks/Resource/Statements.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ class Statements extends \Google\Service\Resource
5454
* exactly, or * the query's relation string is empty or missing. Example: A
5555
* query with relation `delegate_permission/common.handle_all_urls` matches an
5656
* asset link with relation `delegate_permission/common.handle_all_urls`.
57+
* @opt_param bool returnRelationExtensions Whether to return any
58+
* relation_extensions payloads specified in the source digital asset links
59+
* statements. If this is set to `false` (default), relation_extensions
60+
* specified will not be returned, even if they are specified in the DAL
61+
* statement file. If set to `true`, the API will propagate relation_extensions
62+
* associated with each statement's relation type, if specified in the DAL
63+
* statement file.
5764
* @opt_param string source.androidApp.certificate.sha256Fingerprint The
5865
* uppercase SHA-265 fingerprint of the certificate. From the PEM certificate,
5966
* it can be acquired like this: $ keytool -printcert -file $CERTFILE | grep

src/Digitalassetlinks/Statement.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ class Statement extends \Google\Model
2323
* @var string
2424
*/
2525
public $relation;
26+
/**
27+
* @var array[]
28+
*/
29+
public $relationExtensions;
2630
protected $sourceType = Asset::class;
2731
protected $sourceDataType = '';
2832
protected $targetType = Asset::class;
@@ -42,6 +46,20 @@ public function getRelation()
4246
{
4347
return $this->relation;
4448
}
49+
/**
50+
* @param array[]
51+
*/
52+
public function setRelationExtensions($relationExtensions)
53+
{
54+
$this->relationExtensions = $relationExtensions;
55+
}
56+
/**
57+
* @return array[]
58+
*/
59+
public function getRelationExtensions()
60+
{
61+
return $this->relationExtensions;
62+
}
4563
/**
4664
* @param Asset
4765
*/

0 commit comments

Comments
 (0)