Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add container API #781

Merged
merged 7 commits into from
Dec 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ This client supports the following Google Cloud Platform services at a [Beta](#v
* [Google DLP](#google-dlp-beta) (Beta)
* [Google Stackdriver Error Reporting](#google-stackdriver-error-reporting-beta) (Beta)
* [Google Stackdriver Monitoring](#google-stackdriver-monitoring-beta) (Beta)
* [Google Cloud Container](#google-cloud-container-beta) (Beta)

This client supports the following Google Cloud Platform services at an [Alpha](#versioning) quality level:
* [Google Cloud Speech](#google-cloud-speech-alpha) (Alpha)
Expand Down Expand Up @@ -709,6 +710,43 @@ Google Stackdriver Monitoring can be installed separately by requiring the `goog
$ composer require google/cloud-monitoring
```

## Google Cloud Container (Beta)

- [API Documentation](http://googlecloudplatform.github.io/google-cloud-php/#/docs/latest/monitoring/readme)
- [Official Documentation](https://cloud.google.com/kubernetes-engine/docs)

#### Preview

```php
<?php

require 'vendor/autoload.php';

use Google\Cloud\Container\V1\ClusterManagerClient;

$clusterManagerClient = new ClusterManagerClient();

$projectId = '[MY-PROJECT-ID]';
$zone = 'us-central1-a';

try {
$clusters = $clusterManagerClient->listClusters($projectId, $zone);
foreach ($clusters->getClusters() as $cluster) {
print('Cluster: ' . $cluster->getName() . PHP_EOL);
}
} finally {
$clusterManagerClient->close();
}
```

#### google/cloud-container

Google Cloud Container can be installed separately by requiring the `google/cloud-container` composer package:

```
$ composer require google/cloud-container
```

## Google Cloud Speech (Alpha)

- [API Documentation](http://googlecloudplatform.github.io/google-cloud-php/#/docs/latest/speech/speechclient)
Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,25 @@
"phpseclib/phpseclib": "^2"
},
"replace": {
"google/cloud-bigtable": "0.1.0",
"google/cloud-bigquery": "0.4.0",
"google/cloud-bigtable": "0.1.0",
"google/cloud-container": "master",
"google/cloud-core": "1.14.1",
"google/cloud-datastore": "1.2.0",
"google/cloud-dlp": "0.4.1",
"google/cloud-error-reporting": "0.7.1",
"google/cloud-firestore": "0.3.0",
"google/cloud-language": "0.11.0",
"google/cloud-logging": "1.8.0",
"google/cloud-monitoring": "0.7.1",
"google/cloud-language": "0.11.0",
"google/cloud-pubsub": "0.11.0",
"google/cloud-spanner": "0.11.0",
"google/cloud-speech": "0.10.0",
"google/cloud-storage": "1.3.0",
"google/cloud-trace": "0.4.0",
"google/cloud-translate": "1.1.0",
"google/cloud-videointelligence": "0.8.1",
"google/cloud-vision": "0.8.0",
"google/cloud-dlp": "0.4.1"
"google/cloud-vision": "0.8.0"
},
"suggest": {
"phpseclib/phpseclib": "May be used in place of OpenSSL for creating signed Cloud Storage URLs. Please require version ^2."
Expand Down Expand Up @@ -123,4 +124,4 @@
]
}
}
}
}
18 changes: 18 additions & 0 deletions docs/contents/cloud-container.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Container",
"services": [
{
"title": "Overview",
"type": "container\/readme"
},
{
"title": "ClusterManagerClient",
"type": "container\/v1\/clustermanagerclient",
"nav": [],
"patterns": [
"container\/v1\/\\w{1,}"
]
}
],
"pattern": "container\/\\w{1,}"
}
17 changes: 10 additions & 7 deletions docs/contents/google-cloud.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
{
"title": "Google Cloud PHP",
"services": [{
"title": "ServiceBuilder",
"type": "servicebuilder"
}],
"services": [
{
"title": "ServiceBuilder",
"type": "servicebuilder"
}
],
"includes": [
"cloud-bigquery",
"cloud-container",
"cloud-core",
"cloud-datastore",
"cloud-dlp",
"cloud-error-reporting",
"cloud-firestore",
"cloud-language",
"cloud-logging",
"cloud-monitoring",
"cloud-language",
"cloud-pubsub",
"cloud-spanner",
"cloud-speech",
"cloud-storage",
"cloud-trace",
"cloud-translate",
"cloud-videointelligence",
"cloud-vision",
"cloud-core"
"cloud-vision"
]
}
68 changes: 38 additions & 30 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,6 @@
"master"
]
},
{
"id": "cloud-bigtable",
"name": "google/cloud-bigtable",
"defaultService": "bigtable/readme",
"versions": [
"master"
]
},
{
"id": "cloud-bigquery",
"name": "google/cloud-bigquery",
Expand All @@ -100,6 +92,22 @@
"master"
]
},
{
"id": "cloud-bigtable",
"name": "google/cloud-bigtable",
"defaultService": "bigtable/readme",
"versions": [
"master"
]
},
{
"id": "cloud-container",
"name": "google/cloud-container",
"defaultService": "container/readme",
"versions": [
"master"
]
},
{
"id": "cloud-core",
"name": "google/cloud-core",
Expand Down Expand Up @@ -197,6 +205,28 @@
"master"
]
},
{
"id": "cloud-language",
"name": "google/cloud-language",
"defaultService": "language/languageclient",
"versions": [
"v0.11.0",
"v0.10.0",
"v0.9.1",
"v0.9.0",
"v0.8.1",
"v0.8.0",
"v0.7.0",
"v0.6.0",
"v0.5.0",
"v0.4.1",
"v0.4.0",
"v0.3.0",
"v0.2.0",
"v0.1.0",
"master"
]
},
{
"id": "cloud-logging",
"name": "google/cloud-logging",
Expand Down Expand Up @@ -240,28 +270,6 @@
"master"
]
},
{
"id": "cloud-language",
"name": "google/cloud-language",
"defaultService": "language/languageclient",
"versions": [
"v0.11.0",
"v0.10.0",
"v0.9.1",
"v0.9.0",
"v0.8.1",
"v0.8.0",
"v0.7.0",
"v0.6.0",
"v0.5.0",
"v0.4.1",
"v0.4.0",
"v0.3.0",
"v0.2.0",
"v0.1.0",
"master"
]
},
{
"id": "cloud-pubsub",
"name": "google/cloud-pubsub",
Expand Down
4 changes: 2 additions & 2 deletions src/Bigtable/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"minimum-stability": "stable",
"require": {
"ext-grpc": "*",
"google/proto-client": "^0.27",
"google/gax": "^0.27"
"google/proto-client": "^0.28",
"google/gax": "^0.28"
},
"extra": {
"component": {
Expand Down
10 changes: 10 additions & 0 deletions src/Container/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# How to Contribute

We'd love to accept your patches and contributions to this project. We accept
and review pull requests against the main
[Google Cloud PHP](https://github.com/GoogleCloudPlatform/google-cloud-php)
repository, which contains all of our client libraries. You will also need to
sign a Contributor License Agreement. For more details about how to contribute,
see the
[CONTRIBUTING.md](https://github.com/GoogleCloudPlatform/google-cloud-php/blob/master/CONTRIBUTING.md)
file in the main Google Cloud PHP repository.
Loading