|
1 | | -Python Client for BigQuery Data Transfer API (`Alpha`_) |
2 | | -======================================================= |
| 1 | +.. include:: /../bigquery_datatransfer/README.rst |
3 | 2 |
|
4 | | -`BigQuery Data Transfer API`_: Transfers data from partner SaaS applications to Google BigQuery on a |
5 | | -scheduled, managed basis. |
6 | | - |
7 | | -- `Client Library Documentation`_ |
8 | | -- `Product Documentation`_ |
9 | | - |
10 | | -.. _Alpha: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst |
11 | | -.. _BigQuery Data Transfer API: https://cloud.google.com/bigquery/docs/transfer-service-overview |
12 | | -.. _Client Library Documentation: https://googlecloudplatform.github.io/google-cloud-python/latest/bigquery_datatransfer/index.html |
13 | | -.. _Product Documentation: https://cloud.google.com/bigquery/transfer |
14 | | - |
15 | | -Quick Start |
16 | | ------------ |
17 | | - |
18 | | -In order to use this library, you first need to go through the following steps: |
19 | | - |
20 | | -1. `Select or create a Cloud Platform project.`_ |
21 | | -2. `Enable the BigQuery Data Transfer API.`_ |
22 | | -3. `Setup Authentication.`_ |
23 | | - |
24 | | -.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project |
25 | | -.. _Enable the BigQuery Data Transfer API.: https://cloud.google.com/bigquery/docs/transfer-service-overview |
26 | | -.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html |
27 | | - |
28 | | -Installation |
29 | | -~~~~~~~~~~~~ |
30 | | - |
31 | | -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to |
32 | | -create isolated Python environments. The basic problem it addresses is one of |
33 | | -dependencies and versions, and indirectly permissions. |
34 | | - |
35 | | -With `virtualenv`_, it's possible to install this library without needing system |
36 | | -install permissions, and without clashing with the installed system |
37 | | -dependencies. |
38 | | - |
39 | | -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ |
40 | | - |
41 | | - |
42 | | -Mac/Linux |
43 | | -^^^^^^^^^ |
44 | | - |
45 | | -.. code-block:: console |
46 | | -
|
47 | | - pip install virtualenv |
48 | | - virtualenv <your-env> |
49 | | - source <your-env>/bin/activate |
50 | | - <your-env>/bin/pip install google-cloud-bigquerydatatransfer |
51 | | -
|
52 | | -
|
53 | | -Windows |
54 | | -^^^^^^^ |
55 | | - |
56 | | -.. code-block:: console |
57 | | -
|
58 | | - pip install virtualenv |
59 | | - virtualenv <your-env> |
60 | | - <your-env>\Scripts\activate |
61 | | - <your-env>\Scripts\pip.exe install google-cloud-bigquerydatatransfer |
62 | | -
|
63 | | -Preview |
64 | | -~~~~~~~ |
65 | | - |
66 | | -DataTransferServiceClient |
67 | | -^^^^^^^^^^^^^^^^^^^^^^^^^ |
68 | | - |
69 | | -.. code:: py |
70 | | -
|
71 | | - from google.cloud import bigquery_datatransfer_v1 |
72 | | -
|
73 | | - client = bigquery_datatransfer_v1.DataTransferServiceClient() |
74 | | -
|
75 | | - parent = client.location_path('[PROJECT]', '[LOCATION]') |
76 | 3 |
|
| 4 | +API Reference |
| 5 | +------------- |
77 | 6 |
|
78 | | - # Iterate over all results |
79 | | - for element in client.list_data_sources(parent): |
80 | | - # process element |
81 | | - pass |
| 7 | +.. toctree:: |
| 8 | + :maxdepth: 2 |
82 | 9 |
|
83 | | - # Or iterate over results one page at a time |
84 | | - for page in client.list_data_sources(parent, options=CallOptions(page_token=INITIAL_PAGE)): |
85 | | - for element in page: |
86 | | - # process element |
87 | | - pass |
| 10 | + gapic/v1/api |
| 11 | + gapic/v1/types |
88 | 12 |
|
89 | | -Next Steps |
90 | | -~~~~~~~~~~ |
91 | 13 |
|
92 | | -- Read the `Client Library Documentation`_ for BigQuery Data Transfer API |
93 | | - API to see other available methods on the client. |
94 | | -- Read the `BigQuery Data Transfer API Product documentation`_ to learn |
95 | | - more about the product and see How-to Guides. |
96 | | -- View this `repository’s main README`_ to see the full list of Cloud |
97 | | - APIs that we cover. |
| 14 | +Changelog |
| 15 | +--------- |
98 | 16 |
|
99 | | -.. _BigQuery Data Transfer API Product documentation: https://cloud.google.com/bigquery/docs/transfer-service-overview |
100 | | -.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst |
| 17 | +For a list of all ``google-cloud-bigquery-bigquery-datatransfer`` releases: |
101 | 18 |
|
102 | | -Api Reference |
103 | | -------------- |
104 | 19 | .. toctree:: |
105 | | - :maxdepth: 2 |
| 20 | + :maxdepth: 2 |
106 | 21 |
|
107 | | - gapic/v1/api |
108 | | - gapic/v1/types |
109 | | - changelog |
| 22 | + changelog |
0 commit comments