google / cloud-bigquery-reservation
PHP版的Google BigQuery Reservation客户端
v2.0.1
2024-09-07 01:37 UTC
Requires
- php: ^8.0
- google/gax: ^1.34.0
Requires (Dev)
- phpunit/phpunit: ^9.0
Suggests
- ext-grpc: Enables use of gRPC, a universal high-performance RPC framework created by Google.
- ext-protobuf: Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions.
This package is auto-updated.
Last update: 2024-09-07 01:43:18 UTC
README
这是Google BigQuery Reservation的PHP风格的客户端。
注意:该仓库是Google Cloud PHP项目的一部分。任何支持请求、错误报告或开发贡献应指向该项目。
安装
首先,安装PHP的首选依赖管理器 Composer。
现在安装此组件
$ composer require google/cloud-bigquery-reservation
此组件支持HTTP/1.1的REST和gRPC。要利用gRPC(如流式方法)带来的好处,请参阅我们的gRPC安装指南。
身份验证
有关客户端身份验证的更多信息,请参阅我们的身份验证指南。一旦身份验证成功,您就可以开始发送请求。
示例
require 'vendor/autoload.php'; use Google\Cloud\BigQuery\Reservation\V1\ReservationServiceClient; $projectId = '[PROJECT_ID]'; $locationId = '[LOCATION_ID]'; $reservationId = '[RESERVATION_ID]'; $client = new ReservationServiceClient(); $parent = $client->locationName($projectId, $locationId); $reservation = $client->createReservation($parent, [ 'reservationId' => $reservationId ])
版本
此组件被视为GA(一般可用)。因此,它不会在任何一个次要或修补版本中引入向后不兼容的更改。我们将优先处理问题和请求。
下一步
- 了解官方文档。