Skip to content

Commit ba11ab5

Browse files
alixhamitswast
authored andcommitted
BigQuery: Deletes unused samples and standardizes region tags (GoogleCloudPlatform#1091)
* deletes samples moved to google-cloud-java * updates to standard region tag
1 parent 2514e09 commit ba11ab5

File tree

6 files changed

+8
-620
lines changed

6 files changed

+8
-620
lines changed

bigquery/cloud-client/src/main/java/com/example/bigquery/AuthSnippets.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
public class AuthSnippets {
3434

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

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

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

bigquery/cloud-client/src/main/java/com/example/bigquery/QueryParametersSample.java

Lines changed: 0 additions & 222 deletions
This file was deleted.

0 commit comments

Comments
 (0)