From d90d338256180f6d2670f7b9caf028dd67d86df0 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sat, 10 Oct 2026 18:37:15 -0700 Subject: [PATCH] Regenerate firebasedataconnect client --- src/FirebaseDataConnect.php | 127 +++++++++++++++++ src/FirebaseDataConnect/HttpBody.php | 95 +++++++++++++ .../ProjectsLocationsServicesPostgrest.php | 134 ++++++++++++++++++ .../ProjectsLocationsServicesPostgrestRpc.php | 73 ++++++++++ 4 files changed, 429 insertions(+) create mode 100644 src/FirebaseDataConnect/HttpBody.php create mode 100644 src/FirebaseDataConnect/Resource/ProjectsLocationsServicesPostgrest.php create mode 100644 src/FirebaseDataConnect/Resource/ProjectsLocationsServicesPostgrestRpc.php diff --git a/src/FirebaseDataConnect.php b/src/FirebaseDataConnect.php index 9fee2212a05..afe1d301d25 100644 --- a/src/FirebaseDataConnect.php +++ b/src/FirebaseDataConnect.php @@ -45,6 +45,8 @@ class FirebaseDataConnect extends \Google\Service public $projects_locations_operations; public $projects_locations_services; public $projects_locations_services_connectors; + public $projects_locations_services_postgrest; + public $projects_locations_services_postgrest_rpc; public $projects_locations_services_schemas; public $rootUrlTemplate; @@ -516,6 +518,131 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->projects_locations_services_postgrest = new FirebaseDataConnect\Resource\ProjectsLocationsServicesPostgrest( + $this, + $this->serviceName, + 'postgrest', + [ + 'methods' => [ + 'postgrestDelete' => [ + 'path' => 'v1/{+firebasedataconnectService}/postgrest/{+firebasedataconnectTable}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'firebasedataconnectService' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'firebasedataconnectTable' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'postgrestInsert' => [ + 'path' => 'v1/{+firebasedataconnectService}/postgrest/{+firebasedataconnectTable}', + 'httpMethod' => 'POST', + 'parameters' => [ + 'firebasedataconnectService' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'firebasedataconnectTable' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'postgrestSelect' => [ + 'path' => 'v1/{+firebasedataconnectService}/postgrest/{+firebasedataconnectTable}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'firebasedataconnectService' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'firebasedataconnectTable' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'postgrestUpdate' => [ + 'path' => 'v1/{+firebasedataconnectService}/postgrest/{+firebasedataconnectTable}', + 'httpMethod' => 'PATCH', + 'parameters' => [ + 'firebasedataconnectService' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'firebasedataconnectTable' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'postgrestUpsert' => [ + 'path' => 'v1/{+firebasedataconnectService}/postgrest/{+firebasedataconnectTable}', + 'httpMethod' => 'PUT', + 'parameters' => [ + 'firebasedataconnectService' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'firebasedataconnectTable' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ], + ] + ] + ); + $this->projects_locations_services_postgrest_rpc = new FirebaseDataConnect\Resource\ProjectsLocationsServicesPostgrestRpc( + $this, + $this->serviceName, + 'rpc', + [ + 'methods' => [ + 'postgrestCallFunction' => [ + 'path' => 'v1/{+firebasedataconnectService}/postgrest/rpc/{+firebasedataconnectFunction}', + 'httpMethod' => 'POST', + 'parameters' => [ + 'firebasedataconnectService' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'firebasedataconnectFunction' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'postgrestQueryFunction' => [ + 'path' => 'v1/{+firebasedataconnectService}/postgrest/rpc/{+firebasedataconnectFunction}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'firebasedataconnectService' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'firebasedataconnectFunction' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ], + ] + ] + ); $this->projects_locations_services_schemas = new FirebaseDataConnect\Resource\ProjectsLocationsServicesSchemas( $this, $this->serviceName, diff --git a/src/FirebaseDataConnect/HttpBody.php b/src/FirebaseDataConnect/HttpBody.php new file mode 100644 index 00000000000..1eda9fff85a --- /dev/null +++ b/src/FirebaseDataConnect/HttpBody.php @@ -0,0 +1,95 @@ +contentType = $contentType; + } + /** + * @return string + */ + public function getContentType() + { + return $this->contentType; + } + /** + * The HTTP request/response body as raw binary. + * + * @param string $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return string + */ + public function getData() + { + return $this->data; + } + /** + * Application specific response metadata. Must be set in the first response + * for streaming APIs. + * + * @param array[] $extensions + */ + public function setExtensions($extensions) + { + $this->extensions = $extensions; + } + /** + * @return array[] + */ + public function getExtensions() + { + return $this->extensions; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HttpBody::class, 'Google_Service_FirebaseDataConnect_HttpBody'); diff --git a/src/FirebaseDataConnect/Resource/ProjectsLocationsServicesPostgrest.php b/src/FirebaseDataConnect/Resource/ProjectsLocationsServicesPostgrest.php new file mode 100644 index 00000000000..efe77046a80 --- /dev/null +++ b/src/FirebaseDataConnect/Resource/ProjectsLocationsServicesPostgrest.php @@ -0,0 +1,134 @@ + + * $firebasedataconnectService = new Google\Service\FirebaseDataConnect(...); + * $postgrest = $firebasedataconnectService->projects_locations_services_postgrest; + * + */ +class ProjectsLocationsServicesPostgrest extends \Google\Service\Resource +{ + /** + * Executes a dynamic DELETE mutation on rows matching the URL filters. + * (postgrest.postgrestDelete) + * + * @param string $firebasedataconnectService Required. The resource name of the + * service, in the format: + * `projects/{project}/locations/{location}/services/{service}` + * @param string $firebasedataconnectTable Required. The name of the table to + * delete from. + * @param array $optParams Optional parameters. + * @return HttpBody + * @throws \Google\Service\Exception + */ + public function postgrestDelete($firebasedataconnectService, $firebasedataconnectTable, $optParams = []) + { + $params = ['firebasedataconnectService' => $firebasedataconnectService, 'firebasedataconnectTable' => $firebasedataconnectTable]; + $params = array_merge($params, $optParams); + return $this->call('postgrestDelete', [$params], HttpBody::class); + } + /** + * Executes a dynamic INSERT (create) or UPSERT mutation on a target table. + * (postgrest.postgrestInsert) + * + * @param string $firebasedataconnectService Required. The resource name of the + * service, in the format: + * `projects/{project}/locations/{location}/services/{service}` + * @param string $firebasedataconnectTable Required. The name of the table to + * insert into. + * @param HttpBody $postBody + * @param array $optParams Optional parameters. + * @return HttpBody + * @throws \Google\Service\Exception + */ + public function postgrestInsert($firebasedataconnectService, $firebasedataconnectTable, HttpBody $postBody, $optParams = []) + { + $params = ['firebasedataconnectService' => $firebasedataconnectService, 'firebasedataconnectTable' => $firebasedataconnectTable, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('postgrestInsert', [$params], HttpBody::class); + } + /** + * Executes a dynamic SELECT (read) query on a target PostgreSQL table. + * Projections, filters, sorting, and embeddings are mapped from the HTTP URL + * query parameters. (postgrest.postgrestSelect) + * + * @param string $firebasedataconnectService Required. The resource name of the + * service, in the format: + * `projects/{project}/locations/{location}/services/{service}` + * @param string $firebasedataconnectTable Required. The name of the table to + * select from. + * @param array $optParams Optional parameters. + * @return HttpBody + * @throws \Google\Service\Exception + */ + public function postgrestSelect($firebasedataconnectService, $firebasedataconnectTable, $optParams = []) + { + $params = ['firebasedataconnectService' => $firebasedataconnectService, 'firebasedataconnectTable' => $firebasedataconnectTable]; + $params = array_merge($params, $optParams); + return $this->call('postgrestSelect', [$params], HttpBody::class); + } + /** + * Executes a dynamic UPDATE (modify) mutation on rows matching the URL filters. + * (postgrest.postgrestUpdate) + * + * @param string $firebasedataconnectService Required. The resource name of the + * service, in the format: + * `projects/{project}/locations/{location}/services/{service}` + * @param string $firebasedataconnectTable Required. The name of the table to + * update. + * @param HttpBody $postBody + * @param array $optParams Optional parameters. + * @return HttpBody + * @throws \Google\Service\Exception + */ + public function postgrestUpdate($firebasedataconnectService, $firebasedataconnectTable, HttpBody $postBody, $optParams = []) + { + $params = ['firebasedataconnectService' => $firebasedataconnectService, 'firebasedataconnectTable' => $firebasedataconnectTable, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('postgrestUpdate', [$params], HttpBody::class); + } + /** + * Executes a dynamic UPSERT (replace or create) mutation on a target table + * identified by primary key filters. (postgrest.postgrestUpsert) + * + * @param string $firebasedataconnectService Required. The resource name of the + * service, in the format: + * `projects/{project}/locations/{location}/services/{service}` + * @param string $firebasedataconnectTable Required. The name of the table to + * upsert into. + * @param HttpBody $postBody + * @param array $optParams Optional parameters. + * @return HttpBody + * @throws \Google\Service\Exception + */ + public function postgrestUpsert($firebasedataconnectService, $firebasedataconnectTable, HttpBody $postBody, $optParams = []) + { + $params = ['firebasedataconnectService' => $firebasedataconnectService, 'firebasedataconnectTable' => $firebasedataconnectTable, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('postgrestUpsert', [$params], HttpBody::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsServicesPostgrest::class, 'Google_Service_FirebaseDataConnect_Resource_ProjectsLocationsServicesPostgrest'); diff --git a/src/FirebaseDataConnect/Resource/ProjectsLocationsServicesPostgrestRpc.php b/src/FirebaseDataConnect/Resource/ProjectsLocationsServicesPostgrestRpc.php new file mode 100644 index 00000000000..f3a938b1875 --- /dev/null +++ b/src/FirebaseDataConnect/Resource/ProjectsLocationsServicesPostgrestRpc.php @@ -0,0 +1,73 @@ + + * $firebasedataconnectService = new Google\Service\FirebaseDataConnect(...); + * $rpc = $firebasedataconnectService->projects_locations_services_postgrest_rpc; + * + */ +class ProjectsLocationsServicesPostgrestRpc extends \Google\Service\Resource +{ + /** + * Executes a PostgreSQL database function. (rpc.postgrestCallFunction) + * + * @param string $firebasedataconnectService Required. The resource name of the + * service, in the format: + * `projects/{project}/locations/{location}/services/{service}` + * @param string $firebasedataconnectFunction Required. The name of the database + * function. + * @param HttpBody $postBody + * @param array $optParams Optional parameters. + * @return HttpBody + * @throws \Google\Service\Exception + */ + public function postgrestCallFunction($firebasedataconnectService, $firebasedataconnectFunction, HttpBody $postBody, $optParams = []) + { + $params = ['firebasedataconnectService' => $firebasedataconnectService, 'firebasedataconnectFunction' => $firebasedataconnectFunction, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('postgrestCallFunction', [$params], HttpBody::class); + } + /** + * Executes a read-only PostgreSQL database function. + * (rpc.postgrestQueryFunction) + * + * @param string $firebasedataconnectService Required. The resource name of the + * service, in the format: + * `projects/{project}/locations/{location}/services/{service}` + * @param string $firebasedataconnectFunction Required. The name of the database + * function. + * @param array $optParams Optional parameters. + * @return HttpBody + * @throws \Google\Service\Exception + */ + public function postgrestQueryFunction($firebasedataconnectService, $firebasedataconnectFunction, $optParams = []) + { + $params = ['firebasedataconnectService' => $firebasedataconnectService, 'firebasedataconnectFunction' => $firebasedataconnectFunction]; + $params = array_merge($params, $optParams); + return $this->call('postgrestQueryFunction', [$params], HttpBody::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsServicesPostgrestRpc::class, 'Google_Service_FirebaseDataConnect_Resource_ProjectsLocationsServicesPostgrestRpc');