Skip to content

Commit

Permalink
Add missing component info
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpedrie committed Apr 2, 2019
1 parent c920a2f commit 693c708
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ This client supports the following Google Cloud Platform services at an [Alpha](
* [Google Cloud BigQuery Data Transfer](#google-cloud-bigquery-data-transfer-alpha) (Alpha)
* [Google Cloud IoT](#google-cloud-iot-alpha) (Alpha)
* [Google Cloud Redis](#google-cloud-redis-alpha) (Alpha)
* [Google Cloud Security Command Center](#google-cloud-security-command-center-alpha) (Alpha)
* [Google Cloud Speech](#google-cloud-speech-alpha) (Alpha)
* [Google Cloud Talent Solution](#google-cloud-talent-solution-alpha) (Alpha)
* [Google Stackdriver Debugger](#google-stackdriver-debugger-alpha) (Alpha)
Expand Down Expand Up @@ -1261,6 +1262,37 @@ foreach ($response->iterateAllElements() as $instance) {
$ composer require google/cloud-redis
```

## Google Cloud Security Command Center (Alpha)

- [API Documentation](http://googleapis.github.io/google-cloud-php/#/docs/latest/securitycenter/securitycenterclient)
- [Official Documentation](https://cloud.google.com/security-command-center/docs)

#### Preview

```php
require 'vendor/autoload.php';

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);
```

#### google/cloud-security-center

[Google Cloud Security Command Center](https://github.com/googleapis/google-cloud-php-security-center) can be installed separately by requiring the [`google/cloud-security-center`](https://packagist.org/packages/google/cloud-security-center) composer package:

```
$ composer require google/cloud-security-center
```

## Google Cloud Speech (Alpha)

- [API Documentation](http://googleapis.github.io/google-cloud-php/#/docs/latest/speech/speechclient)
Expand Down
11 changes: 11 additions & 0 deletions SecurityCenter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ on authenticating your client. Once authenticated, you'll be ready to start maki
### Sample

```php
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);
```

### Version
Expand Down
16 changes: 16 additions & 0 deletions SecurityCenter/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true">
<testsuites>
<testsuite>
<directory>tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src</directory>
<exclude>
<directory suffix=".php">src/V[!a-zA-Z]*</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
17 changes: 17 additions & 0 deletions SecurityCenter/src/V1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Google Cloud Security Command Center V1 generated client for PHP

### Sample

```php
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);
```
13 changes: 13 additions & 0 deletions docs/contents/cloud-security-center.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
{
"title": "Overview",
"type": "securitycenter\/readme"
},
{
"title": "v1beta1",
"type": "securitycenter\/v1\/readme",
"nav": [
{
"title": "SecurityCenterClient",
"type": "securitycenter\/v1\/securitycenterclient"
}
],
"patterns": [
"securitycenter\/v1\/\\w{1,}"
]
}
],
"pattern": "securitycenter\/\\w{1,}"
Expand Down

0 comments on commit 693c708

Please sign in to comment.