google / cloud-security-center
Google Cloud Security Command Center 的 PHP 客户端
v2.0.1
2024-09-13 22:45 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.
- dev-main
- v2.0.1
- v2.0.0
- v2.0.0-RC1
- v1.32.0
- v1.31.0
- v1.30.0
- v1.29.0
- v1.28.2
- v1.28.1
- v1.28.0
- v1.27.0
- v1.26.0
- v1.25.0
- v1.24.0
- v1.23.0
- v1.22.0
- v1.21.1
- v1.21.0
- v1.20.2
- v1.20.1
- v1.19.1
- v1.19.0
- v1.18.0
- v1.17.0
- v1.16.0
- v1.15.1
- v1.15.0
- v1.14.2
- v1.14.1
- v1.14.0
- v1.13.1
- v1.13.0
- v1.12.0
- v1.11.0
- v1.10.0
- v1.9.0
- v1.8.0
- v1.7.0
- v1.6.0
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.1
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.9.0
- v0.8.1
- v0.8.0
- v0.7.1
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.1
- v0.1.0
This package is auto-updated.
Last update: 2024-09-13 22:49:36 UTC
README
这是一个针对Google Cloud Security Command Center的惯用 PHP 客户端。
注意: 该仓库是Google Cloud PHP的一部分。任何支持请求、错误报告或开发贡献都应该指向该项目。
安装
首先,安装 PHP 的首选依赖管理器 Composer。
现在安装此组件
$ composer require google/cloud-security-center
身份验证
请参阅我们的身份验证指南,以获取有关如何验证客户端的更多信息。一旦验证,您就可以开始发起请求。
示例
use Google\Cloud\SecurityCenter\V1\SecurityCenterClient; use Google\Cloud\SecurityCenter\V1\Source; $security = new SecurityCenterClient(); $parent = SecurityCenterClient::organizationName('[YOUR ORGANIZATION]'); $source = new Source([ 'name' => SecurityCenterClient::sourceName('[YOUR ORGANIZATION]', '[YOUR SOURCE]'), 'displayName' => '[YOUR SOURCE]' ]); $res = $security->createSource($parent, $source);
版本
此组件被认为是 GA(一般可用)。因此,它不会在任何次要或补丁版本中引入不兼容的后向兼容更改。我们将优先处理问题和请求。
下一步
- 了解官方文档。