Skip to content

Commit f0a8ffa

Browse files
plamutbusunkim96leahecole
authored
chore: remove BigQuery cloud-client samples (GoogleCloudPlatform#4179)
* chore: remove BigQuery cloud-client samples * chore: add link to new samples location in README Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
1 parent 7fe4123 commit f0a8ffa

19 files changed

+2
-1086
lines changed

bigquery/cloud-client/.gitignore

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

bigquery/cloud-client/README.rst

Lines changed: 2 additions & 148 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,3 @@
1-
.. This file is automatically generated. Do not edit this file directly.
1+
These samples have been moved.
22

3-
Google BigQuery Python Samples
4-
===============================================================================
5-
6-
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
7-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/README.rst
8-
9-
10-
This directory contains samples for Google BigQuery. `Google BigQuery`_ is Google's fully managed, petabyte scale, low cost analytics data warehouse. BigQuery is NoOps—there is no infrastructure to manage and you don't need a database administrator—so you can focus on analyzing data to find meaningful insights, use familiar SQL, and take advantage of our pay-as-you-go model.
11-
12-
13-
14-
15-
.. _Google BigQuery: https://cloud.google.com/bigquery/docs
16-
17-
18-
To run the sample, you need to have `BigQuery Admin` role.
19-
20-
21-
22-
Setup
23-
-------------------------------------------------------------------------------
24-
25-
26-
Authentication
27-
++++++++++++++
28-
29-
This sample requires you to have authentication setup. Refer to the
30-
`Authentication Getting Started Guide`_ for instructions on setting up
31-
credentials for applications.
32-
33-
.. _Authentication Getting Started Guide:
34-
https://cloud.google.com/docs/authentication/getting-started
35-
36-
Install Dependencies
37-
++++++++++++++++++++
38-
39-
#. Clone python-docs-samples and change directory to the sample directory you want to use.
40-
41-
.. code-block:: bash
42-
43-
$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
44-
45-
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
46-
47-
.. _Python Development Environment Setup Guide:
48-
https://cloud.google.com/python/setup
49-
50-
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
51-
52-
.. code-block:: bash
53-
54-
$ virtualenv env
55-
$ source env/bin/activate
56-
57-
#. Install the dependencies needed to run the samples.
58-
59-
.. code-block:: bash
60-
61-
$ pip install -r requirements.txt
62-
63-
.. _pip: https://pip.pypa.io/
64-
.. _virtualenv: https://virtualenv.pypa.io/
65-
66-
Samples
67-
-------------------------------------------------------------------------------
68-
69-
Quickstart
70-
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
71-
72-
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
73-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/quickstart.py,bigquery/cloud-client/README.rst
74-
75-
76-
77-
78-
To run this sample:
79-
80-
.. code-block:: bash
81-
82-
$ python quickstart.py
83-
84-
85-
Simple Application
86-
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
87-
88-
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
89-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/simple_app.py,bigquery/cloud-client/README.rst
90-
91-
92-
93-
94-
To run this sample:
95-
96-
.. code-block:: bash
97-
98-
$ python simple_app.py
99-
100-
101-
User Credentials
102-
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
103-
104-
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
105-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/user_credentials.py,bigquery/cloud-client/README.rst
106-
107-
108-
109-
110-
To run this sample:
111-
112-
.. code-block:: bash
113-
114-
$ python user_credentials.py
115-
116-
usage: user_credentials.py [-h] [--launch-browser] project
117-
118-
Command-line application to run a query using user credentials.
119-
120-
You must supply a client secrets file, which would normally be bundled with
121-
your application.
122-
123-
positional arguments:
124-
project Project to use for BigQuery billing.
125-
126-
optional arguments:
127-
-h, --help show this help message and exit
128-
--launch-browser Use a local server flow to authenticate.
129-
130-
131-
132-
133-
134-
The client library
135-
-------------------------------------------------------------------------------
136-
137-
This sample uses the `Google Cloud Client Library for Python`_.
138-
You can read the documentation for more details on API usage and use GitHub
139-
to `browse the source`_ and `report issues`_.
140-
141-
.. _Google Cloud Client Library for Python:
142-
https://googlecloudplatform.github.io/google-cloud-python/
143-
.. _browse the source:
144-
https://github.com/GoogleCloudPlatform/google-cloud-python
145-
.. _report issues:
146-
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
147-
148-
149-
.. _Google Cloud SDK: https://cloud.google.com/sdk/
3+
https://github.com/googleapis/python-bigquery/tree/master/samples/snippets

bigquery/cloud-client/README.rst.in

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

bigquery/cloud-client/authenticate_service_account.py

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

bigquery/cloud-client/authenticate_service_account_test.py

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

bigquery/cloud-client/authorized_view_tutorial.py

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

0 commit comments

Comments
 (0)