Skip to content

Commit

Permalink
First Bigtable gapic gen for php (#731)
Browse files Browse the repository at this point in the history
* first bigtable gapic gen for php

* adding bigtable admin

*  ran PHPCBF to format php files; added first draft of Bigtable/composer.json

* copied over bigtable from api-client-staging after regening using php-cs-fixer:2.2.7; ran phpcbf style fixer on result

* adding docs/contents/cloud-bigtable.json

* spacing in composer.json

* adding bigtable VERSION and in composer.json

* updated manifest.json with bigtable and to master

* adding readme for bigtable

* use master's version of non-bigtable things

* update to master

* update tests/ to master

* update to master

* update to master

* update to master

* new line

* bump version to master's proto-client (0.26)

* removed extraneous comma in cloud-bigtable.json

* manifest.json: bigtable/readme

* added readme

* updating json files
  • Loading branch information
andreamlin authored and dwsupplee committed Nov 17, 2017
1 parent 3f9def8 commit 1820c01
Show file tree
Hide file tree
Showing 17 changed files with 3,449 additions and 0 deletions.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"google cloud platform",
"google cloud",
"cloud",
"bigtable",
"bigquery",
"big query",
"datastore",
Expand Down Expand Up @@ -63,6 +64,7 @@
"phpseclib/phpseclib": "^2"
},
"replace": {
"google/cloud-bigtable": "0.1.0",
"google/cloud-bigquery": "0.3.1",
"google/cloud-core": "1.13.1",
"google/cloud-datastore": "1.1.0",
Expand Down
25 changes: 25 additions & 0 deletions docs/contents/cloud-bigtable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"title": "Bigtable",
"pattern": "bigtable\/\\w{1,}",
"services": [{
"title": "BigtableClient",
"type": "bigtable/readme"
}, {
"title": "v2",
"type": "bigtable/v2/readme",
"patterns": [
"bigtable/v2/\\w{1,}",
"bigtable/admin/v2/\\w{1,}"
],
"nav": [{
"title": "BigtableClient",
"type": "bigtable/v2/bigtableclient"
}, {
"title": "BigtableInstanceAdminClient",
"type": "bigtable/admin/v2/bigtableinstanceadminclient"
}, {
"title": "BigtableTableAdminClient",
"type": "bigtable/admin/v2/bigtabletableadminclient"
}]
}]
}
9 changes: 9 additions & 0 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@
"master"
]
},
{
"id": "cloud-bigtable",
"name": "google/cloud-bigtable",
"defaultService": "bigtable/readme",
"versions": [
"v0.1.0",
"master"
]
},
{
"id": "cloud-bigquery",
"name": "google/cloud-bigquery",
Expand Down
41 changes: 41 additions & 0 deletions src/Bigtable/Admin/V2/BigtableInstanceAdminClient.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2017, Google LLC All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* GENERATED CODE WARNING
* This file was generated from the file
* https://github.com/google/googleapis/blob/master/google/bigtable/admin/v2/bigtable_instance_admin.proto
* and updates to that file get reflected here through a refresh process.
*
* EXPERIMENTAL: this client library class has not yet been declared beta. This class may change
* more frequently than those which have been declared beta or 1.0, including changes which break
* backwards compatibility.
*
* @experimental
*/

namespace Google\Cloud\Bigtable\Admin\V2;

use Google\Cloud\Bigtable\Admin\V2\Gapic\BigtableInstanceAdminGapicClient;

/**
* {@inheritdoc}
*/
class BigtableInstanceAdminClient extends BigtableInstanceAdminGapicClient
{
// This class is intentionally empty, and is intended to hold manual additions to the generated {@see BigtableInstanceAdminClientImpl} class.
}
41 changes: 41 additions & 0 deletions src/Bigtable/Admin/V2/BigtableTableAdminClient.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2017, Google LLC All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* GENERATED CODE WARNING
* This file was generated from the file
* https://github.com/google/googleapis/blob/master/google/bigtable/admin/v2/bigtable_table_admin.proto
* and updates to that file get reflected here through a refresh process.
*
* EXPERIMENTAL: this client library class has not yet been declared beta. This class may change
* more frequently than those which have been declared beta or 1.0, including changes which break
* backwards compatibility.
*
* @experimental
*/

namespace Google\Cloud\Bigtable\Admin\V2;

use Google\Cloud\Bigtable\Admin\V2\Gapic\BigtableTableAdminGapicClient;

/**
* {@inheritdoc}
*/
class BigtableTableAdminClient extends BigtableTableAdminGapicClient
{
// This class is intentionally empty, and is intended to hold manual additions to the generated {@see BigtableTableAdminClientImpl} class.
}
Loading

0 comments on commit 1820c01

Please sign in to comment.