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 new "quickstart" samples. #174

Merged
merged 22 commits into from
Oct 10, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
331c184
Add Pub/Sub quickstart sample.
jmdobry Sep 27, 2016
78c821b
adds tests for quickstarts, adds logging quickstart, and fixes review…
bshaffer Sep 30, 2016
16982ac
updates logging quickstart to log entry
bshaffer Sep 30, 2016
8196545
Merge branch 'master' into quickstarts
bshaffer Oct 4, 2016
0158ed9
moves logging to api subdirectory
bshaffer Oct 4, 2016
09e2cb1
moves dataset->delete to teardown
bshaffer Oct 4, 2016
9340a8b
adds composer autoloading to quickstarts
bshaffer Oct 4, 2016
ac14b65
updates datastore quickstart to use query instead of entity
bshaffer Oct 4, 2016
27e54e5
updates datastore sample to use lookup
bshaffer Oct 5, 2016
fd64f8b
removes project ID from logging, skips tests if ADC is not set
bshaffer Oct 5, 2016
124566c
moves topic deletion to teardown
bshaffer Oct 5, 2016
59f9085
fixes cs
bshaffer Oct 5, 2016
21eaaa6
adds project ID and tests to pubsub sample
bshaffer Oct 5, 2016
d187637
changes datastore entity back to Task
bshaffer Oct 5, 2016
8850d29
Added missing print statements. Added Language, Speech, and Vision qu…
jmdobry Oct 6, 2016
dc00f27
Address comments.
jmdobry Oct 6, 2016
b7bda05
Change datastore quickstart sample to create a task.
jmdobry Oct 6, 2016
a772cd1
Add missing print statment.
jmdobry Oct 7, 2016
ff6a9c4
adds tests for language/speech/vision quickstarts
bshaffer Oct 7, 2016
eda129e
updates all quickstarts to use google-cloud 0.10
bshaffer Oct 7, 2016
4a2c81f
adds projectId back to bigquery, storage, logging, and datastore quic…
bshaffer Oct 8, 2016
bc4e224
Merge branch 'master' into quickstarts
bshaffer Oct 10, 2016
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
Prev Previous commit
Next Next commit
adds composer autoloading to quickstarts
  • Loading branch information
bshaffer committed Oct 4, 2016
commit 9340a8ba2ee3f0a9b54b33ab524b07cd9240e883
3 changes: 2 additions & 1 deletion bigquery/quickstart/quickstart.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

# [START bigquery_quickstart]
# Includes the autoloader for libraries installed with composer
require __DIR__ . '/vendor/autoload.php';

# [START bigquery_quickstart]
# Imports the Google Cloud client library
use Google\Cloud\BigQuery\BigQueryClient;

Expand Down
3 changes: 2 additions & 1 deletion datastore/quickstart/quickstart.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

# [START datastore_quickstart]
# Includes the autoloader for libraries installed with composer
require __DIR__ . '/vendor/autoload.php';

# [START datastore_quickstart]
# Imports the Google Cloud client library
use Google\Cloud\Datastore\DatastoreClient;

Expand Down
3 changes: 2 additions & 1 deletion logging/quickstart/quickstart.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

# [START logging_quickstart]
# Includes the autoloader for libraries installed with composer
require __DIR__ . '/vendor/autoload.php';

# [START logging_quickstart]
# Imports the Google Cloud client library
use Google\Cloud\Logging\LoggingClient;

Expand Down
7 changes: 4 additions & 3 deletions pubsub/quickstart/quickstart.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<?php

# [START pubsub_quickstart]
# Includes the autoloader for libraries installed with composer
require __DIR__ . '/vendor/autoload.php';

# [START pubsub_quickstart]
# Imports the Google Cloud client library
use Google\Cloud\PubSub\PubSubClient;

# Instantiates a client
$pubsubClient = new PubSubClient();
$pubsub = new PubSubClient();

# The name for the new topic
$topicName = 'my-new-topic';

# Creates the new topic
$topic = $pubsubClient->createTopic($topicName);
$topic = $pubsub->createTopic($topicName);
# [END pubsub_quickstart]
return $topic;
3 changes: 2 additions & 1 deletion storage/quickstart/quickstart.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

# [START storage_quickstart]
# Includes the autoloader for libraries installed with composer
require __DIR__ . '/vendor/autoload.php';

# [START storage_quickstart]
# Imports the Google Cloud client library
use Google\Cloud\Storage\StorageClient;

Expand Down
3 changes: 2 additions & 1 deletion translate/quickstart/quickstart.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

# [START translate_quickstart]
# Includes the autoloader for libraries installed with composer
require __DIR__ . '/vendor/autoload.php';

# [START translate_quickstart]
# Imports the Google Cloud client library
use Google\Cloud\Translate\TranslateClient;

Expand Down