Skip to content

Commit 568643f

Browse files
1 parent 220caab commit 568643f

10 files changed

Lines changed: 537 additions & 3 deletions

src/Bigquery.php

Lines changed: 120 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,81 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
669669
'rowAccessPolicies',
670670
[
671671
'methods' => [
672-
'getIamPolicy' => [
672+
'batchDelete' => [
673+
'path' => 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies:batchDelete',
674+
'httpMethod' => 'POST',
675+
'parameters' => [
676+
'projectId' => [
677+
'location' => 'path',
678+
'type' => 'string',
679+
'required' => true,
680+
],
681+
'datasetId' => [
682+
'location' => 'path',
683+
'type' => 'string',
684+
'required' => true,
685+
],
686+
'tableId' => [
687+
'location' => 'path',
688+
'type' => 'string',
689+
'required' => true,
690+
],
691+
],
692+
],'delete' => [
693+
'path' => 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}',
694+
'httpMethod' => 'DELETE',
695+
'parameters' => [
696+
'projectId' => [
697+
'location' => 'path',
698+
'type' => 'string',
699+
'required' => true,
700+
],
701+
'datasetId' => [
702+
'location' => 'path',
703+
'type' => 'string',
704+
'required' => true,
705+
],
706+
'tableId' => [
707+
'location' => 'path',
708+
'type' => 'string',
709+
'required' => true,
710+
],
711+
'policyId' => [
712+
'location' => 'path',
713+
'type' => 'string',
714+
'required' => true,
715+
],
716+
'force' => [
717+
'location' => 'query',
718+
'type' => 'boolean',
719+
],
720+
],
721+
],'get' => [
722+
'path' => 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}',
723+
'httpMethod' => 'GET',
724+
'parameters' => [
725+
'projectId' => [
726+
'location' => 'path',
727+
'type' => 'string',
728+
'required' => true,
729+
],
730+
'datasetId' => [
731+
'location' => 'path',
732+
'type' => 'string',
733+
'required' => true,
734+
],
735+
'tableId' => [
736+
'location' => 'path',
737+
'type' => 'string',
738+
'required' => true,
739+
],
740+
'policyId' => [
741+
'location' => 'path',
742+
'type' => 'string',
743+
'required' => true,
744+
],
745+
],
746+
],'getIamPolicy' => [
673747
'path' => '{+resource}:getIamPolicy',
674748
'httpMethod' => 'POST',
675749
'parameters' => [
@@ -679,6 +753,26 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
679753
'required' => true,
680754
],
681755
],
756+
],'insert' => [
757+
'path' => 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies',
758+
'httpMethod' => 'POST',
759+
'parameters' => [
760+
'projectId' => [
761+
'location' => 'path',
762+
'type' => 'string',
763+
'required' => true,
764+
],
765+
'datasetId' => [
766+
'location' => 'path',
767+
'type' => 'string',
768+
'required' => true,
769+
],
770+
'tableId' => [
771+
'location' => 'path',
772+
'type' => 'string',
773+
'required' => true,
774+
],
775+
],
682776
],'list' => [
683777
'path' => 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies',
684778
'httpMethod' => 'GET',
@@ -717,6 +811,31 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
717811
'required' => true,
718812
],
719813
],
814+
],'update' => [
815+
'path' => 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}',
816+
'httpMethod' => 'PUT',
817+
'parameters' => [
818+
'projectId' => [
819+
'location' => 'path',
820+
'type' => 'string',
821+
'required' => true,
822+
],
823+
'datasetId' => [
824+
'location' => 'path',
825+
'type' => 'string',
826+
'required' => true,
827+
],
828+
'tableId' => [
829+
'location' => 'path',
830+
'type' => 'string',
831+
'required' => true,
832+
],
833+
'policyId' => [
834+
'location' => 'path',
835+
'type' => 'string',
836+
'required' => true,
837+
],
838+
],
720839
],
721840
]
722841
]
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Bigquery;
19+
20+
class BatchDeleteRowAccessPoliciesRequest extends \Google\Collection
21+
{
22+
protected $collection_key = 'policyIds';
23+
/**
24+
* @var bool
25+
*/
26+
public $force;
27+
/**
28+
* @var string[]
29+
*/
30+
public $policyIds;
31+
32+
/**
33+
* @param bool
34+
*/
35+
public function setForce($force)
36+
{
37+
$this->force = $force;
38+
}
39+
/**
40+
* @return bool
41+
*/
42+
public function getForce()
43+
{
44+
return $this->force;
45+
}
46+
/**
47+
* @param string[]
48+
*/
49+
public function setPolicyIds($policyIds)
50+
{
51+
$this->policyIds = $policyIds;
52+
}
53+
/**
54+
* @return string[]
55+
*/
56+
public function getPolicyIds()
57+
{
58+
return $this->policyIds;
59+
}
60+
}
61+
62+
// Adding a class alias for backwards compatibility with the previous class name.
63+
class_alias(BatchDeleteRowAccessPoliciesRequest::class, 'Google_Service_Bigquery_BatchDeleteRowAccessPoliciesRequest');

src/Bigquery/JobConfigurationQuery.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ class JobConfigurationQuery extends \Google\Collection
104104
* @var string
105105
*/
106106
public $writeDisposition;
107+
/**
108+
* @var bool
109+
*/
110+
public $writeIncrementalResults;
107111

108112
/**
109113
* @param bool
@@ -483,6 +487,20 @@ public function getWriteDisposition()
483487
{
484488
return $this->writeDisposition;
485489
}
490+
/**
491+
* @param bool
492+
*/
493+
public function setWriteIncrementalResults($writeIncrementalResults)
494+
{
495+
$this->writeIncrementalResults = $writeIncrementalResults;
496+
}
497+
/**
498+
* @return bool
499+
*/
500+
public function getWriteIncrementalResults()
501+
{
502+
return $this->writeIncrementalResults;
503+
}
486504
}
487505

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

src/Bigquery/QueryRequest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ class QueryRequest extends \Google\Collection
9292
* @var bool
9393
*/
9494
public $useQueryCache;
95+
/**
96+
* @var bool
97+
*/
98+
public $writeIncrementalResults;
9599

96100
/**
97101
* @param ConnectionProperty[]
@@ -373,6 +377,20 @@ public function getUseQueryCache()
373377
{
374378
return $this->useQueryCache;
375379
}
380+
/**
381+
* @param bool
382+
*/
383+
public function setWriteIncrementalResults($writeIncrementalResults)
384+
{
385+
$this->writeIncrementalResults = $writeIncrementalResults;
386+
}
387+
/**
388+
* @return bool
389+
*/
390+
public function getWriteIncrementalResults()
391+
{
392+
return $this->writeIncrementalResults;
393+
}
376394
}
377395

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

0 commit comments

Comments
 (0)