Skip to content

Commit feb9c13

Browse files
1 parent ce7fc7f commit feb9c13

File tree

6 files changed

+318
-0
lines changed

6 files changed

+318
-0
lines changed

src/BigLakeService.php

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class BigLakeService extends \Google\Service
4545

4646
public $projects_catalogs;
4747
public $projects_catalogs_namespaces;
48+
public $projects_catalogs_namespaces_tables;
4849
public $projects_locations_catalogs;
4950
public $projects_locations_catalogs_databases;
5051
public $projects_locations_catalogs_databases_tables;
@@ -97,6 +98,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
9798
'required' => true,
9899
],
99100
],
101+
],'testIamPermissions' => [
102+
'path' => 'v1/{+resource}:testIamPermissions',
103+
'httpMethod' => 'POST',
104+
'parameters' => [
105+
'resource' => [
106+
'location' => 'path',
107+
'type' => 'string',
108+
'required' => true,
109+
],
110+
],
100111
],
101112
]
102113
]
@@ -131,6 +142,60 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
131142
'required' => true,
132143
],
133144
],
145+
],'testIamPermissions' => [
146+
'path' => 'v1/{+resource}:testIamPermissions',
147+
'httpMethod' => 'POST',
148+
'parameters' => [
149+
'resource' => [
150+
'location' => 'path',
151+
'type' => 'string',
152+
'required' => true,
153+
],
154+
],
155+
],
156+
]
157+
]
158+
);
159+
$this->projects_catalogs_namespaces_tables = new BigLakeService\Resource\ProjectsCatalogsNamespacesTables(
160+
$this,
161+
$this->serviceName,
162+
'tables',
163+
[
164+
'methods' => [
165+
'getIamPolicy' => [
166+
'path' => 'v1/{+resource}:getIamPolicy',
167+
'httpMethod' => 'GET',
168+
'parameters' => [
169+
'resource' => [
170+
'location' => 'path',
171+
'type' => 'string',
172+
'required' => true,
173+
],
174+
'options.requestedPolicyVersion' => [
175+
'location' => 'query',
176+
'type' => 'integer',
177+
],
178+
],
179+
],'setIamPolicy' => [
180+
'path' => 'v1/{+resource}:setIamPolicy',
181+
'httpMethod' => 'POST',
182+
'parameters' => [
183+
'resource' => [
184+
'location' => 'path',
185+
'type' => 'string',
186+
'required' => true,
187+
],
188+
],
189+
],'testIamPermissions' => [
190+
'path' => 'v1/{+resource}:testIamPermissions',
191+
'httpMethod' => 'POST',
192+
'parameters' => [
193+
'resource' => [
194+
'location' => 'path',
195+
'type' => 'string',
196+
'required' => true,
197+
],
198+
],
134199
],
135200
]
136201
]

src/BigLakeService/Resource/ProjectsCatalogs.php

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

2020
use Google\Service\BigLakeService\Policy;
2121
use Google\Service\BigLakeService\SetIamPolicyRequest;
22+
use Google\Service\BigLakeService\TestIamPermissionsRequest;
23+
use Google\Service\BigLakeService\TestIamPermissionsResponse;
2224

2325
/**
2426
* The "catalogs" collection of methods.
@@ -78,6 +80,25 @@ public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParam
7880
$params = array_merge($params, $optParams);
7981
return $this->call('setIamPolicy', [$params], Policy::class);
8082
}
83+
/**
84+
* Tests the IAM permissions for the specified catalog.
85+
* (catalogs.testIamPermissions)
86+
*
87+
* @param string $resource REQUIRED: The resource for which the policy detail is
88+
* being requested. See [Resource
89+
* names](https://cloud.google.com/apis/design/resource_names) for the
90+
* appropriate value for this field.
91+
* @param TestIamPermissionsRequest $postBody
92+
* @param array $optParams Optional parameters.
93+
* @return TestIamPermissionsResponse
94+
* @throws \Google\Service\Exception
95+
*/
96+
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
97+
{
98+
$params = ['resource' => $resource, 'postBody' => $postBody];
99+
$params = array_merge($params, $optParams);
100+
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
101+
}
81102
}
82103

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

src/BigLakeService/Resource/ProjectsCatalogsNamespaces.php

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

2020
use Google\Service\BigLakeService\Policy;
2121
use Google\Service\BigLakeService\SetIamPolicyRequest;
22+
use Google\Service\BigLakeService\TestIamPermissionsRequest;
23+
use Google\Service\BigLakeService\TestIamPermissionsResponse;
2224

2325
/**
2426
* The "namespaces" collection of methods.
@@ -78,6 +80,25 @@ public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParam
7880
$params = array_merge($params, $optParams);
7981
return $this->call('setIamPolicy', [$params], Policy::class);
8082
}
83+
/**
84+
* Tests the IAM permissions for the specified namespace.
85+
* (namespaces.testIamPermissions)
86+
*
87+
* @param string $resource REQUIRED: The resource for which the policy detail is
88+
* being requested. See [Resource
89+
* names](https://cloud.google.com/apis/design/resource_names) for the
90+
* appropriate value for this field.
91+
* @param TestIamPermissionsRequest $postBody
92+
* @param array $optParams Optional parameters.
93+
* @return TestIamPermissionsResponse
94+
* @throws \Google\Service\Exception
95+
*/
96+
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
97+
{
98+
$params = ['resource' => $resource, 'postBody' => $postBody];
99+
$params = array_merge($params, $optParams);
100+
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
101+
}
81102
}
82103

83104
// Adding a class alias for backwards compatibility with the previous class name.
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
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\BigLakeService\Resource;
19+
20+
use Google\Service\BigLakeService\Policy;
21+
use Google\Service\BigLakeService\SetIamPolicyRequest;
22+
use Google\Service\BigLakeService\TestIamPermissionsRequest;
23+
use Google\Service\BigLakeService\TestIamPermissionsResponse;
24+
25+
/**
26+
* The "tables" collection of methods.
27+
* Typical usage is:
28+
* <code>
29+
* $biglakeService = new Google\Service\BigLakeService(...);
30+
* $tables = $biglakeService->projects_catalogs_namespaces_tables;
31+
* </code>
32+
*/
33+
class ProjectsCatalogsNamespacesTables extends \Google\Service\Resource
34+
{
35+
/**
36+
* Gets the IAM policy for the specified Catalog. (tables.getIamPolicy)
37+
*
38+
* @param string $resource REQUIRED: The resource for which the policy is being
39+
* requested. See [Resource
40+
* names](https://cloud.google.com/apis/design/resource_names) for the
41+
* appropriate value for this field.
42+
* @param array $optParams Optional parameters.
43+
*
44+
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
45+
* version that will be used to format the policy. Valid values are 0, 1, and 3.
46+
* Requests specifying an invalid value will be rejected. Requests for policies
47+
* with any conditional role bindings must specify version 3. Policies with no
48+
* conditional role bindings may specify any valid value or leave the field
49+
* unset. The policy in the response might use the policy version that you
50+
* specified, or it might use a lower policy version. For example, if you
51+
* specify version 3, but the policy has no conditional role bindings, the
52+
* response uses version 1. To learn which resources support conditions in their
53+
* IAM policies, see the [IAM
54+
* documentation](https://cloud.google.com/iam/help/conditions/resource-
55+
* policies).
56+
* @return Policy
57+
* @throws \Google\Service\Exception
58+
*/
59+
public function getIamPolicy($resource, $optParams = [])
60+
{
61+
$params = ['resource' => $resource];
62+
$params = array_merge($params, $optParams);
63+
return $this->call('getIamPolicy', [$params], Policy::class);
64+
}
65+
/**
66+
* Sets the IAM policy for the specified catalog. (tables.setIamPolicy)
67+
*
68+
* @param string $resource REQUIRED: The resource for which the policy is being
69+
* specified. See [Resource
70+
* names](https://cloud.google.com/apis/design/resource_names) for the
71+
* appropriate value for this field.
72+
* @param SetIamPolicyRequest $postBody
73+
* @param array $optParams Optional parameters.
74+
* @return Policy
75+
* @throws \Google\Service\Exception
76+
*/
77+
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
78+
{
79+
$params = ['resource' => $resource, 'postBody' => $postBody];
80+
$params = array_merge($params, $optParams);
81+
return $this->call('setIamPolicy', [$params], Policy::class);
82+
}
83+
/**
84+
* Tests the IAM permissions for the specified table.
85+
* (tables.testIamPermissions)
86+
*
87+
* @param string $resource REQUIRED: The resource for which the policy detail is
88+
* being requested. See [Resource
89+
* names](https://cloud.google.com/apis/design/resource_names) for the
90+
* appropriate value for this field.
91+
* @param TestIamPermissionsRequest $postBody
92+
* @param array $optParams Optional parameters.
93+
* @return TestIamPermissionsResponse
94+
* @throws \Google\Service\Exception
95+
*/
96+
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
97+
{
98+
$params = ['resource' => $resource, 'postBody' => $postBody];
99+
$params = array_merge($params, $optParams);
100+
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
101+
}
102+
}
103+
104+
// Adding a class alias for backwards compatibility with the previous class name.
105+
class_alias(ProjectsCatalogsNamespacesTables::class, 'Google_Service_BigLakeService_Resource_ProjectsCatalogsNamespacesTables');
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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\BigLakeService;
19+
20+
class TestIamPermissionsRequest extends \Google\Collection
21+
{
22+
protected $collection_key = 'permissions';
23+
/**
24+
* The set of permissions to check for the `resource`. Permissions with
25+
* wildcards (such as `*` or `storage.*`) are not allowed. For more
26+
* information see [IAM
27+
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
28+
*
29+
* @var string[]
30+
*/
31+
public $permissions;
32+
33+
/**
34+
* The set of permissions to check for the `resource`. Permissions with
35+
* wildcards (such as `*` or `storage.*`) are not allowed. For more
36+
* information see [IAM
37+
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
38+
*
39+
* @param string[] $permissions
40+
*/
41+
public function setPermissions($permissions)
42+
{
43+
$this->permissions = $permissions;
44+
}
45+
/**
46+
* @return string[]
47+
*/
48+
public function getPermissions()
49+
{
50+
return $this->permissions;
51+
}
52+
}
53+
54+
// Adding a class alias for backwards compatibility with the previous class name.
55+
class_alias(TestIamPermissionsRequest::class, 'Google_Service_BigLakeService_TestIamPermissionsRequest');
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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\BigLakeService;
19+
20+
class TestIamPermissionsResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'permissions';
23+
/**
24+
* A subset of `TestPermissionsRequest.permissions` that the caller is
25+
* allowed.
26+
*
27+
* @var string[]
28+
*/
29+
public $permissions;
30+
31+
/**
32+
* A subset of `TestPermissionsRequest.permissions` that the caller is
33+
* allowed.
34+
*
35+
* @param string[] $permissions
36+
*/
37+
public function setPermissions($permissions)
38+
{
39+
$this->permissions = $permissions;
40+
}
41+
/**
42+
* @return string[]
43+
*/
44+
public function getPermissions()
45+
{
46+
return $this->permissions;
47+
}
48+
}
49+
50+
// Adding a class alias for backwards compatibility with the previous class name.
51+
class_alias(TestIamPermissionsResponse::class, 'Google_Service_BigLakeService_TestIamPermissionsResponse');

0 commit comments

Comments
 (0)