From 03cb4d2f4878ff5ef34b487e20bcf2639437b7fd Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 15 Feb 2026 17:00:09 -0800 Subject: [PATCH] Regenerate biglake client --- src/BigLakeService.php | 65 +++++++++++ .../Resource/ProjectsCatalogs.php | 21 ++++ .../Resource/ProjectsCatalogsNamespaces.php | 21 ++++ .../ProjectsCatalogsNamespacesTables.php | 105 ++++++++++++++++++ .../TestIamPermissionsRequest.php | 55 +++++++++ .../TestIamPermissionsResponse.php | 51 +++++++++ 6 files changed, 318 insertions(+) create mode 100644 src/BigLakeService/Resource/ProjectsCatalogsNamespacesTables.php create mode 100644 src/BigLakeService/TestIamPermissionsRequest.php create mode 100644 src/BigLakeService/TestIamPermissionsResponse.php diff --git a/src/BigLakeService.php b/src/BigLakeService.php index b4199cafd3f..083f22e7f31 100644 --- a/src/BigLakeService.php +++ b/src/BigLakeService.php @@ -45,6 +45,7 @@ class BigLakeService extends \Google\Service public $projects_catalogs; public $projects_catalogs_namespaces; + public $projects_catalogs_namespaces_tables; public $projects_locations_catalogs; public $projects_locations_catalogs_databases; public $projects_locations_catalogs_databases_tables; @@ -97,6 +98,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'required' => true, ], ], + ],'testIamPermissions' => [ + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => [ + 'resource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], ], ] ] @@ -131,6 +142,60 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'required' => true, ], ], + ],'testIamPermissions' => [ + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => [ + 'resource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ], + ] + ] + ); + $this->projects_catalogs_namespaces_tables = new BigLakeService\Resource\ProjectsCatalogsNamespacesTables( + $this, + $this->serviceName, + 'tables', + [ + 'methods' => [ + 'getIamPolicy' => [ + 'path' => 'v1/{+resource}:getIamPolicy', + 'httpMethod' => 'GET', + 'parameters' => [ + 'resource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'options.requestedPolicyVersion' => [ + 'location' => 'query', + 'type' => 'integer', + ], + ], + ],'setIamPolicy' => [ + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => [ + 'resource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'testIamPermissions' => [ + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => [ + 'resource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], ], ] ] diff --git a/src/BigLakeService/Resource/ProjectsCatalogs.php b/src/BigLakeService/Resource/ProjectsCatalogs.php index 3847ad1a7d3..dffc72cc696 100644 --- a/src/BigLakeService/Resource/ProjectsCatalogs.php +++ b/src/BigLakeService/Resource/ProjectsCatalogs.php @@ -19,6 +19,8 @@ use Google\Service\BigLakeService\Policy; use Google\Service\BigLakeService\SetIamPolicyRequest; +use Google\Service\BigLakeService\TestIamPermissionsRequest; +use Google\Service\BigLakeService\TestIamPermissionsResponse; /** * The "catalogs" collection of methods. @@ -78,6 +80,25 @@ public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParam $params = array_merge($params, $optParams); return $this->call('setIamPolicy', [$params], Policy::class); } + /** + * Tests the IAM permissions for the specified catalog. + * (catalogs.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the + * appropriate value for this field. + * @param TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return TestIamPermissionsResponse + * @throws \Google\Service\Exception + */ + public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = []) + { + $params = ['resource' => $resource, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class); + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/BigLakeService/Resource/ProjectsCatalogsNamespaces.php b/src/BigLakeService/Resource/ProjectsCatalogsNamespaces.php index 09dfe39e1be..34d23318c4a 100644 --- a/src/BigLakeService/Resource/ProjectsCatalogsNamespaces.php +++ b/src/BigLakeService/Resource/ProjectsCatalogsNamespaces.php @@ -19,6 +19,8 @@ use Google\Service\BigLakeService\Policy; use Google\Service\BigLakeService\SetIamPolicyRequest; +use Google\Service\BigLakeService\TestIamPermissionsRequest; +use Google\Service\BigLakeService\TestIamPermissionsResponse; /** * The "namespaces" collection of methods. @@ -78,6 +80,25 @@ public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParam $params = array_merge($params, $optParams); return $this->call('setIamPolicy', [$params], Policy::class); } + /** + * Tests the IAM permissions for the specified namespace. + * (namespaces.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the + * appropriate value for this field. + * @param TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return TestIamPermissionsResponse + * @throws \Google\Service\Exception + */ + public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = []) + { + $params = ['resource' => $resource, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class); + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/src/BigLakeService/Resource/ProjectsCatalogsNamespacesTables.php b/src/BigLakeService/Resource/ProjectsCatalogsNamespacesTables.php new file mode 100644 index 00000000000..f280c304380 --- /dev/null +++ b/src/BigLakeService/Resource/ProjectsCatalogsNamespacesTables.php @@ -0,0 +1,105 @@ + + * $biglakeService = new Google\Service\BigLakeService(...); + * $tables = $biglakeService->projects_catalogs_namespaces_tables; + * + */ +class ProjectsCatalogsNamespacesTables extends \Google\Service\Resource +{ + /** + * Gets the IAM policy for the specified Catalog. (tables.getIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the + * appropriate value for this field. + * @param array $optParams Optional parameters. + * + * @opt_param int options.requestedPolicyVersion Optional. The maximum policy + * version that will be used to format the policy. Valid values are 0, 1, and 3. + * Requests specifying an invalid value will be rejected. Requests for policies + * with any conditional role bindings must specify version 3. Policies with no + * conditional role bindings may specify any valid value or leave the field + * unset. The policy in the response might use the policy version that you + * specified, or it might use a lower policy version. For example, if you + * specify version 3, but the policy has no conditional role bindings, the + * response uses version 1. To learn which resources support conditions in their + * IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource- + * policies). + * @return Policy + * @throws \Google\Service\Exception + */ + public function getIamPolicy($resource, $optParams = []) + { + $params = ['resource' => $resource]; + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', [$params], Policy::class); + } + /** + * Sets the IAM policy for the specified catalog. (tables.setIamPolicy) + * + * @param string $resource REQUIRED: The resource for which the policy is being + * specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the + * appropriate value for this field. + * @param SetIamPolicyRequest $postBody + * @param array $optParams Optional parameters. + * @return Policy + * @throws \Google\Service\Exception + */ + public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = []) + { + $params = ['resource' => $resource, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('setIamPolicy', [$params], Policy::class); + } + /** + * Tests the IAM permissions for the specified table. + * (tables.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which the policy detail is + * being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the + * appropriate value for this field. + * @param TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return TestIamPermissionsResponse + * @throws \Google\Service\Exception + */ + public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = []) + { + $params = ['resource' => $resource, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsCatalogsNamespacesTables::class, 'Google_Service_BigLakeService_Resource_ProjectsCatalogsNamespacesTables'); diff --git a/src/BigLakeService/TestIamPermissionsRequest.php b/src/BigLakeService/TestIamPermissionsRequest.php new file mode 100644 index 00000000000..71c030b7336 --- /dev/null +++ b/src/BigLakeService/TestIamPermissionsRequest.php @@ -0,0 +1,55 @@ +permissions = $permissions; + } + /** + * @return string[] + */ + public function getPermissions() + { + return $this->permissions; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TestIamPermissionsRequest::class, 'Google_Service_BigLakeService_TestIamPermissionsRequest'); diff --git a/src/BigLakeService/TestIamPermissionsResponse.php b/src/BigLakeService/TestIamPermissionsResponse.php new file mode 100644 index 00000000000..445084e45f3 --- /dev/null +++ b/src/BigLakeService/TestIamPermissionsResponse.php @@ -0,0 +1,51 @@ +permissions = $permissions; + } + /** + * @return string[] + */ + public function getPermissions() + { + return $this->permissions; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TestIamPermissionsResponse::class, 'Google_Service_BigLakeService_TestIamPermissionsResponse');