Skip to content

Commit

Permalink
BigQuery: Deletes unused samples and standardizes region tags (#1091)
Browse files Browse the repository at this point in the history
* deletes samples moved to google-cloud-java

* updates to standard region tag
  • Loading branch information
alixhami authored and tswast committed Apr 24, 2018
1 parent 2514e09 commit ba11ab5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 620 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
public class AuthSnippets {

// [START default_credentials]
// [START bigquery_client_default_credentials]
public static void implicit() {
// Instantiate a client. If you don't specify credentials when constructing a client, the
// client library will look for credentials in the environment, such as the
Expand All @@ -45,9 +45,9 @@ public static void implicit() {
System.out.printf("%s%n", dataset.getDatasetId().getDataset());
}
}
// [END default_credentials]
// [END bigquery_client_default_credentials]

// [START explicit_service_account]
// [START bigquery_client_json_credentials]
public static void explicit() throws IOException {
// Load credentials from JSON key file. If you can't set the GOOGLE_APPLICATION_CREDENTIALS
// environment variable, you can explicitly load the credentials file to construct the
Expand All @@ -68,7 +68,7 @@ public static void explicit() throws IOException {
System.out.printf("%s%n", dataset.getDatasetId().getDataset());
}
}
// [END explicit_service_account]
// [END bigquery_client_json_credentials]

public static void main(String... args) throws IOException {
boolean validArgs = args.length == 1;
Expand Down

This file was deleted.

Loading

0 comments on commit ba11ab5

Please sign in to comment.