1+ <!DOCTYPE html>
2+
3+
4+ < html xmlns ="http://www.w3.org/1999/xhtml ">
5+ < head >
6+ < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
7+
8+ < title > gcloud.bigquery.connection — gcloud 0.8.0 documentation</ title >
9+
10+ < link rel ="stylesheet " href ="../../../_static/css/main.css " type ="text/css " />
11+ < link rel ="stylesheet " href ="../../../_static/pygments.css " type ="text/css " />
12+ < link rel ="stylesheet " href ="../../../_static/css/normalize.css " type ="text/css " />
13+
14+ < script type ="text/javascript ">
15+ var DOCUMENTATION_OPTIONS = {
16+ URL_ROOT : '../../../' ,
17+ VERSION : '0.8.0' ,
18+ COLLAPSE_INDEX : false ,
19+ FILE_SUFFIX : '.html' ,
20+ HAS_SOURCE : true
21+ } ;
22+ </ script >
23+ < script type ="text/javascript " src ="../../../_static/js/vendor/modernizr-2.6.2.min.js "> </ script >
24+ < link rel ="shortcut icon " href ="../../../_static/favicon.ico "/>
25+ < link rel ="top " title ="gcloud 0.8.0 documentation " href ="../../../index.html " />
26+ < link rel ="up " title ="Module code " href ="../../index.html " />
27+ </ head >
28+ < body role ="document ">
29+ < header class ="page-header fixed " role ="banner ">
30+ < h1 class ="logo ">
31+ < a href ="index.html " title ="back to home ">
32+ < img src ="../../../_static/images/logo.svg " alt ="Google Cloud Platform " />
33+ < span class ="gcloud "> gcloud</ span >
34+ </ a >
35+ </ h1 >
36+ < nav class ="main-nav ">
37+ < div class ="nav-current "> Python</ div >
38+ < ul class ="menu ">
39+ < li >
40+ < a href ="
41+ https://googlecloudplatform.github.io/gcloud-java/ " title ="gcloud-java page ">
42+ < img src ="../../../_static/images/icon-lang-java-duke.svg " alt ="Duke icon " class ="menu-icon " />
43+ Java
44+ </ a >
45+ </ li >
46+ < li >
47+ < a href ="
48+ https://googlecloudplatform.github.io/gcloud-node/#/docs " title ="Node.js docs page ">
49+ < img src ="../../../_static/images/icon-lang-nodejs.svg " alt ="Node.js icon " class ="menu-icon " />
50+ Node.js
51+ </ a >
52+ </ li >
53+ < li >
54+ < a href ="# " title ="Python docs page ">
55+ < img src ="../../../_static/images/icon-lang-python.svg " alt ="Python icon " class ="menu-icon " />
56+ Python
57+ </ a >
58+ </ li >
59+ < li >
60+ < a href ="
61+ http://googlecloudplatform.github.io/gcloud-ruby/docs/latest " title ="Ruby docs page ">
62+ < img src ="../../../_static/images/icon-lang-ruby.svg " alt ="Ruby icon " class ="menu-icon " />
63+ Ruby
64+ </ a >
65+ </ li >
66+ </ ul >
67+ </ nav > <!-- end of .main-nav -->
68+ < a href ="https://github.com/GoogleCloudPlatform/gcloud-python/issues/new?title=%5BDocumentation+Issue%5D+&body=Page+Name%3A+_modules/gcloud/bigquery/connection%0ARelease%3A%200.8.0 " target ="_blank " class ="v-btn " id ="file-issue ">
69+ < img src ="_static/images/icon-link-github.svg " />
70+ Report an Issue
71+ </ a >
72+ </ header > <!-- end of .page-header -->
73+
74+ < article class ="main lang-page " role ="main ">
75+
76+ < header class ="docs-header ">
77+ < div class ="versions ">
78+ < a href ="/gcloud-python/versions.html " class ="v-btn ">
79+ < img src ="_static/images/icon-arrow-bullet.svg " />
80+ Version History (0.8.0)
81+ </ a >
82+ </ div > <!-- end of .versions -->
83+ < div >
84+ < a href ="https://github.com/GoogleCloudPlatform/gcloud-python/issues/new?title=%5BDocumentation+Issue%5D+ " target ="_blank " class ="v-btn " id ="file-issue-secondary ">
85+ < img src ="_static/images/icon-link-github.svg " />
86+ Report an Issue
87+ </ a >
88+ </ div >
89+ </ header >
90+
91+ < section class ="content ">
92+
93+ < h1 > Source code for gcloud.bigquery.connection</ h1 > < div class ="highlight "> < pre >
94+ < span class ="c "> # Copyright 2015 Google Inc. All rights reserved.</ span >
95+ < span class ="c "> #</ span >
96+ < span class ="c "> # Licensed under the Apache License, Version 2.0 (the "License");</ span >
97+ < span class ="c "> # you may not use this file except in compliance with the License.</ span >
98+ < span class ="c "> # You may obtain a copy of the License at</ span >
99+ < span class ="c "> #</ span >
100+ < span class ="c "> # http://www.apache.org/licenses/LICENSE-2.0</ span >
101+ < span class ="c "> #</ span >
102+ < span class ="c "> # Unless required by applicable law or agreed to in writing, software</ span >
103+ < span class ="c "> # distributed under the License is distributed on an "AS IS" BASIS,</ span >
104+ < span class ="c "> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</ span >
105+ < span class ="c "> # See the License for the specific language governing permissions and</ span >
106+ < span class ="c "> # limitations under the License.</ span >
107+
108+ < span class ="sd "> """Create / interact with gcloud bigquery connections."""</ span >
109+
110+ < span class ="kn "> from</ span > < span class ="nn "> gcloud</ span > < span class ="kn "> import</ span > < span class ="n "> connection</ span > < span class ="k "> as</ span > < span class ="n "> base_connection</ span >
111+
112+
113+ < div class ="viewcode-block " id ="Connection "> < a class ="viewcode-back " href ="../../../bigquery-client.html#gcloud.bigquery.connection.Connection "> [docs]</ a > < span class ="k "> class</ span > < span class ="nc "> Connection</ span > < span class ="p "> (</ span > < span class ="n "> base_connection</ span > < span class ="o "> .</ span > < span class ="n "> JSONConnection</ span > < span class ="p "> ):</ span >
114+ < span class ="sd "> """A connection to Google Cloud BigQuery via the JSON REST API."""</ span >
115+
116+ < span class ="n "> API_BASE_URL</ span > < span class ="o "> =</ span > < span class ="s "> 'https://www.googleapis.com'</ span >
117+ < span class ="sd "> """The base of the API call URL."""</ span >
118+
119+ < span class ="n "> API_VERSION</ span > < span class ="o "> =</ span > < span class ="s "> 'v2'</ span >
120+ < span class ="sd "> """The version of the API, used in building the API call's URL."""</ span >
121+
122+ < span class ="n "> API_URL_TEMPLATE</ span > < span class ="o "> =</ span > < span class ="s "> '{api_base_url}/bigquery/{api_version}{path}'</ span >
123+ < span class ="sd "> """A template for the URL of a particular API call."""</ span >
124+
125+ < span class ="n "> SCOPE</ span > < span class ="o "> =</ span > < span class ="p "> (</ span > < span class ="s "> 'https://www.googleapis.com/auth/bigquery'</ span > < span class ="p "> ,</ span >
126+ < span class ="s "> 'https://www.googleapis.com/auth/cloud-platform'</ span > < span class ="p "> )</ span >
127+ < span class ="sd "> """The scopes required for authenticating as a Cloud BigQuery consumer."""</ span > </ div >
128+ </ pre > </ div >
129+
130+ </ section > <!-- end of .content -->
131+ < nav class ="side-nav ">
132+ < p class ="caption "> < span class ="caption-text "> gcloud</ span > </ p >
133+ < ul >
134+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../gcloud-api.html "> Shared Core Modules</ a > </ li >
135+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../gcloud-auth.html "> Authentication</ a > </ li >
136+ </ ul >
137+ < p class ="caption "> < span class ="caption-text "> Datastore</ span > </ p >
138+ < ul >
139+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../datastore-client.html "> Client</ a > </ li >
140+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../datastore-entities.html "> Entities</ a > </ li >
141+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../datastore-keys.html "> Keys</ a > </ li >
142+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../datastore-queries.html "> Queries</ a > </ li >
143+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../datastore-transactions.html "> Transactions</ a > </ li >
144+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../datastore-batches.html "> Batches</ a > </ li >
145+ </ ul >
146+ < p class ="caption "> < span class ="caption-text "> Storage</ span > </ p >
147+ < ul >
148+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../storage-client.html "> Client</ a > </ li >
149+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../storage-blobs.html "> Blobs / Objects</ a > </ li >
150+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../storage-buckets.html "> Buckets</ a > </ li >
151+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../storage-acl.html "> ACL</ a > </ li >
152+ </ ul >
153+ < p class ="caption "> < span class ="caption-text "> Pub/Sub</ span > </ p >
154+ < ul >
155+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../pubsub-usage.html "> Using the API</ a > </ li >
156+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../pubsub-client.html "> Client</ a > </ li >
157+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../pubsub-topic.html "> Topics</ a > </ li >
158+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../pubsub-subscription.html "> Subscriptions</ a > </ li >
159+ </ ul >
160+ < p class ="caption "> < span class ="caption-text "> BigQuery</ span > </ p >
161+ < ul >
162+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../bigquery-usage.html "> Using the API</ a > </ li >
163+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../bigquery-client.html "> Client</ a > </ li >
164+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../bigquery-dataset.html "> Datasets</ a > </ li >
165+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../bigquery-job.html "> Jobs</ a > </ li >
166+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../bigquery-table.html "> Tables</ a > </ li >
167+ </ ul >
168+ < p class ="caption "> < span class ="caption-text "> Resource Manager</ span > </ p >
169+ < ul >
170+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../resource-manager-api.html "> Overview</ a > </ li >
171+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../resource-manager-client.html "> Client</ a > </ li >
172+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../resource-manager-project.html "> Projects</ a > </ li >
173+ </ ul >
174+ < p class ="caption "> < span class ="caption-text "> DNS</ span > </ p >
175+ < ul >
176+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../dns-usage.html "> Using the API</ a > </ li >
177+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../dns-client.html "> Client</ a > </ li >
178+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../dns-zone.html "> Managed Zones</ a > </ li >
179+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../dns-resource_record_set.html "> Resource Record Sets</ a > </ li >
180+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../dns-changes.html "> Change Sets</ a > </ li >
181+ </ ul >
182+ < p class ="caption "> < span class ="caption-text "> Cloud Search</ span > </ p >
183+ < ul >
184+ < li class ="toctree-l1 "> < a class ="reference internal " href ="../../../search-usage.html "> Using the API</ a > </ li >
185+ </ ul >
186+ < p class ="caption "> < span class ="caption-text "> External Links</ span > </ p >
187+ < ul >
188+ < li class ="toctree-l1 "> < a class ="reference external " href ="https://github.com/GoogleCloudPlatform/gcloud-python/ "> GitHub</ a > </ li >
189+ < li class ="toctree-l1 "> < a class ="reference external " href ="https://github.com/GoogleCloudPlatform/gcloud-python/issues "> Issues</ a > </ li >
190+ < li class ="toctree-l1 "> < a class ="reference external " href ="http://stackoverflow.com/questions/tagged/gcloud-python "> Stack Overflow</ a > </ li >
191+ < li class ="toctree-l1 "> < a class ="reference external " href ="https://pypi.python.org/pypi/gcloud "> PyPI</ a > </ li >
192+ </ ul >
193+
194+ </ nav > <!-- end of .side-nav -->
195+ </ article > <!-- end of .main -->
196+
197+ < script src ="../../../_static/js/vendor/jquery-1.10.2.min.js "> </ script >
198+ < script src ="../../../_static/js/plugins.js "> </ script >
199+ < script src ="../../../_static/js/main.js "> </ script >
200+
201+ </ body >
202+ </ html >
0 commit comments