blob: 6cba52caa88597613831094fbda8d0acb4c48ba0 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="fusiontables_v1.html">Fusion Tables API</a> . <a href="fusiontables_v1.table.html">table</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#copy">copy(tableId, copyPresentation=None)</a></code></p>
79<p class="firstline">Copies a table.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(tableId)</a></code></p>
82<p class="firstline">Deletes a table.</p>
83<p class="toc_element">
84 <code><a href="#get">get(tableId)</a></code></p>
85<p class="firstline">Retrieves a specific table by its id.</p>
86<p class="toc_element">
87 <code><a href="#importRows">importRows(tableId, media_body=None, startLine=None, isStrict=None, encoding=None, delimiter=None, endLine=None)</a></code></p>
88<p class="firstline">Import more rows into a table.</p>
89<p class="toc_element">
90 <code><a href="#importTable">importTable(name, media_body=None, encoding=None, delimiter=None)</a></code></p>
91<p class="firstline">Import a new table.</p>
92<p class="toc_element">
93 <code><a href="#insert">insert(body)</a></code></p>
94<p class="firstline">Creates a new table.</p>
95<p class="toc_element">
96 <code><a href="#list">list(pageToken=None, maxResults=None)</a></code></p>
97<p class="firstline">Retrieves a list of tables a user owns.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
102 <code><a href="#patch">patch(tableId, body, replaceViewDefinition=None)</a></code></p>
103<p class="firstline">Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.</p>
104<p class="toc_element">
105 <code><a href="#update">update(tableId, body, replaceViewDefinition=None)</a></code></p>
106<p class="firstline">Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.</p>
107<h3>Method Details</h3>
108<div class="method">
109 <code class="details" id="copy">copy(tableId, copyPresentation=None)</code>
110 <pre>Copies a table.
111
112Args:
113 tableId: string, ID of the table that is being copied. (required)
114 copyPresentation: boolean, Whether to also copy tabs, styles, and templates. Default is false.
115
116Returns:
117 An object of the form:
118
119 { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
120 "kind": "fusiontables#table", # Type name: a template for an individual table.
121 "attribution": "A String", # Optional attribution assigned to the table.
122 "description": "A String", # Optional description assigned to the table.
123 "isExportable": True or False, # Variable for whether table is exportable.
124 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
125 "A String",
126 ],
127 "attributionLink": "A String", # Optional link for attribution.
128 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
129 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
130 "columns": [ # Columns in the table.
131 { # Specifies the id, name and type of a column in a table.
132 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700133 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400134 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
135 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
136 "columnId": 42, # The id of the column in the base table from which this column is derived.
137 },
Craig Citro065b5302014-08-14 00:47:23 -0700138 "columnId": 42, # Identifier for the column.
139 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
140 "type": "A String", # Required type of the column.
141 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400142 },
143 ],
144 "name": "A String", # Name assigned to a table.
145 }</pre>
146</div>
147
148<div class="method">
149 <code class="details" id="delete">delete(tableId)</code>
150 <pre>Deletes a table.
151
152Args:
153 tableId: string, ID of the table that is being deleted. (required)
154</pre>
155</div>
156
157<div class="method">
158 <code class="details" id="get">get(tableId)</code>
159 <pre>Retrieves a specific table by its id.
160
161Args:
162 tableId: string, Identifier(ID) for the table being requested. (required)
163
164Returns:
165 An object of the form:
166
167 { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
168 "kind": "fusiontables#table", # Type name: a template for an individual table.
169 "attribution": "A String", # Optional attribution assigned to the table.
170 "description": "A String", # Optional description assigned to the table.
171 "isExportable": True or False, # Variable for whether table is exportable.
172 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
173 "A String",
174 ],
175 "attributionLink": "A String", # Optional link for attribution.
176 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
177 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
178 "columns": [ # Columns in the table.
179 { # Specifies the id, name and type of a column in a table.
180 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700181 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400182 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
183 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
184 "columnId": 42, # The id of the column in the base table from which this column is derived.
185 },
Craig Citro065b5302014-08-14 00:47:23 -0700186 "columnId": 42, # Identifier for the column.
187 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
188 "type": "A String", # Required type of the column.
189 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400190 },
191 ],
192 "name": "A String", # Name assigned to a table.
193 }</pre>
194</div>
195
196<div class="method">
197 <code class="details" id="importRows">importRows(tableId, media_body=None, startLine=None, isStrict=None, encoding=None, delimiter=None, endLine=None)</code>
198 <pre>Import more rows into a table.
199
200Args:
201 tableId: string, The table into which new rows are being imported. (required)
202 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
203 startLine: integer, The index of the first line from which to start importing, inclusive. Default is 0.
204 isStrict: boolean, Whether the CSV must have the same number of values for each row. If false, rows with fewer values will be padded with empty values. Default is true.
205 encoding: string, The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.
206 delimiter: string, The delimiter used to separate cell values. This can only consist of a single character. Default is ','.
207 endLine: integer, The index of the last line from which to start importing, exclusive. Thus, the number of imported lines is endLine - startLine. If this parameter is not provided, the file will be imported until the last line of the file. If endLine is negative, then the imported content will exclude the last endLine lines. That is, if endline is negative, no line will be imported whose index is greater than N + endLine where N is the number of lines in the file, and the number of imported lines will be N + endLine - startLine.
208
209Returns:
210 An object of the form:
211
212 { # Represents an import request.
213 "numRowsReceived": "A String", # The number of rows received from the import request.
214 "kind": "fusiontables#import", # Type name: a template for an import request.
215 }</pre>
216</div>
217
218<div class="method">
219 <code class="details" id="importTable">importTable(name, media_body=None, encoding=None, delimiter=None)</code>
220 <pre>Import a new table.
221
222Args:
223 name: string, The name to be assigned to the new table. (required)
224 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
225 encoding: string, The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.
226 delimiter: string, The delimiter used to separate cell values. This can only consist of a single character. Default is ','.
227
228Returns:
229 An object of the form:
230
231 { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
232 "kind": "fusiontables#table", # Type name: a template for an individual table.
233 "attribution": "A String", # Optional attribution assigned to the table.
234 "description": "A String", # Optional description assigned to the table.
235 "isExportable": True or False, # Variable for whether table is exportable.
236 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
237 "A String",
238 ],
239 "attributionLink": "A String", # Optional link for attribution.
240 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
241 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
242 "columns": [ # Columns in the table.
243 { # Specifies the id, name and type of a column in a table.
244 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700245 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400246 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
247 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
248 "columnId": 42, # The id of the column in the base table from which this column is derived.
249 },
Craig Citro065b5302014-08-14 00:47:23 -0700250 "columnId": 42, # Identifier for the column.
251 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
252 "type": "A String", # Required type of the column.
253 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400254 },
255 ],
256 "name": "A String", # Name assigned to a table.
257 }</pre>
258</div>
259
260<div class="method">
261 <code class="details" id="insert">insert(body)</code>
262 <pre>Creates a new table.
263
264Args:
265 body: object, The request body. (required)
266 The object takes the form of:
267
268{ # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
269 "kind": "fusiontables#table", # Type name: a template for an individual table.
270 "attribution": "A String", # Optional attribution assigned to the table.
271 "description": "A String", # Optional description assigned to the table.
272 "isExportable": True or False, # Variable for whether table is exportable.
273 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
274 "A String",
275 ],
276 "attributionLink": "A String", # Optional link for attribution.
277 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
278 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
279 "columns": [ # Columns in the table.
280 { # Specifies the id, name and type of a column in a table.
281 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700282 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400283 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
284 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
285 "columnId": 42, # The id of the column in the base table from which this column is derived.
286 },
Craig Citro065b5302014-08-14 00:47:23 -0700287 "columnId": 42, # Identifier for the column.
288 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
289 "type": "A String", # Required type of the column.
290 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400291 },
292 ],
293 "name": "A String", # Name assigned to a table.
294 }
295
296
297Returns:
298 An object of the form:
299
300 { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
301 "kind": "fusiontables#table", # Type name: a template for an individual table.
302 "attribution": "A String", # Optional attribution assigned to the table.
303 "description": "A String", # Optional description assigned to the table.
304 "isExportable": True or False, # Variable for whether table is exportable.
305 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
306 "A String",
307 ],
308 "attributionLink": "A String", # Optional link for attribution.
309 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
310 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
311 "columns": [ # Columns in the table.
312 { # Specifies the id, name and type of a column in a table.
313 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700314 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400315 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
316 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
317 "columnId": 42, # The id of the column in the base table from which this column is derived.
318 },
Craig Citro065b5302014-08-14 00:47:23 -0700319 "columnId": 42, # Identifier for the column.
320 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
321 "type": "A String", # Required type of the column.
322 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400323 },
324 ],
325 "name": "A String", # Name assigned to a table.
326 }</pre>
327</div>
328
329<div class="method">
330 <code class="details" id="list">list(pageToken=None, maxResults=None)</code>
331 <pre>Retrieves a list of tables a user owns.
332
333Args:
334 pageToken: string, Continuation token specifying which result page to return. Optional.
335 maxResults: integer, Maximum number of styles to return. Optional. Default is 5.
336
337Returns:
338 An object of the form:
339
340 { # Represents a list of tables.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700341 "nextPageToken": "A String", # Token used to access the next page of this result. No token is displayed if there are no more pages left.
John Asmuth614db982014-04-24 15:46:26 -0400342 "items": [ # List of all requested tables.
343 { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
344 "kind": "fusiontables#table", # Type name: a template for an individual table.
345 "attribution": "A String", # Optional attribution assigned to the table.
346 "description": "A String", # Optional description assigned to the table.
347 "isExportable": True or False, # Variable for whether table is exportable.
348 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
349 "A String",
350 ],
351 "attributionLink": "A String", # Optional link for attribution.
352 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
353 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
354 "columns": [ # Columns in the table.
355 { # Specifies the id, name and type of a column in a table.
356 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700357 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400358 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
359 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
360 "columnId": 42, # The id of the column in the base table from which this column is derived.
361 },
Craig Citro065b5302014-08-14 00:47:23 -0700362 "columnId": 42, # Identifier for the column.
363 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
364 "type": "A String", # Required type of the column.
365 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400366 },
367 ],
368 "name": "A String", # Name assigned to a table.
369 },
370 ],
371 "kind": "fusiontables#tableList", # Type name: a list of all tables.
372 }</pre>
373</div>
374
375<div class="method">
376 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
377 <pre>Retrieves the next page of results.
378
379Args:
380 previous_request: The request for the previous page. (required)
381 previous_response: The response from the request for the previous page. (required)
382
383Returns:
384 A request object that you can call 'execute()' on to request the next
385 page. Returns None if there are no more items in the collection.
386 </pre>
387</div>
388
389<div class="method">
390 <code class="details" id="patch">patch(tableId, body, replaceViewDefinition=None)</code>
391 <pre>Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
392
393Args:
394 tableId: string, ID of the table that is being updated. (required)
395 body: object, The request body. (required)
396 The object takes the form of:
397
398{ # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
399 "kind": "fusiontables#table", # Type name: a template for an individual table.
400 "attribution": "A String", # Optional attribution assigned to the table.
401 "description": "A String", # Optional description assigned to the table.
402 "isExportable": True or False, # Variable for whether table is exportable.
403 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
404 "A String",
405 ],
406 "attributionLink": "A String", # Optional link for attribution.
407 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
408 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
409 "columns": [ # Columns in the table.
410 { # Specifies the id, name and type of a column in a table.
411 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700412 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400413 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
414 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
415 "columnId": 42, # The id of the column in the base table from which this column is derived.
416 },
Craig Citro065b5302014-08-14 00:47:23 -0700417 "columnId": 42, # Identifier for the column.
418 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
419 "type": "A String", # Required type of the column.
420 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400421 },
422 ],
423 "name": "A String", # Name assigned to a table.
424 }
425
426 replaceViewDefinition: boolean, Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
427
428Returns:
429 An object of the form:
430
431 { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
432 "kind": "fusiontables#table", # Type name: a template for an individual table.
433 "attribution": "A String", # Optional attribution assigned to the table.
434 "description": "A String", # Optional description assigned to the table.
435 "isExportable": True or False, # Variable for whether table is exportable.
436 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
437 "A String",
438 ],
439 "attributionLink": "A String", # Optional link for attribution.
440 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
441 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
442 "columns": [ # Columns in the table.
443 { # Specifies the id, name and type of a column in a table.
444 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700445 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400446 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
447 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
448 "columnId": 42, # The id of the column in the base table from which this column is derived.
449 },
Craig Citro065b5302014-08-14 00:47:23 -0700450 "columnId": 42, # Identifier for the column.
451 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
452 "type": "A String", # Required type of the column.
453 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400454 },
455 ],
456 "name": "A String", # Name assigned to a table.
457 }</pre>
458</div>
459
460<div class="method">
461 <code class="details" id="update">update(tableId, body, replaceViewDefinition=None)</code>
462 <pre>Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.
463
464Args:
465 tableId: string, ID of the table that is being updated. (required)
466 body: object, The request body. (required)
467 The object takes the form of:
468
469{ # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
470 "kind": "fusiontables#table", # Type name: a template for an individual table.
471 "attribution": "A String", # Optional attribution assigned to the table.
472 "description": "A String", # Optional description assigned to the table.
473 "isExportable": True or False, # Variable for whether table is exportable.
474 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
475 "A String",
476 ],
477 "attributionLink": "A String", # Optional link for attribution.
478 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
479 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
480 "columns": [ # Columns in the table.
481 { # Specifies the id, name and type of a column in a table.
482 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700483 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400484 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
485 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
486 "columnId": 42, # The id of the column in the base table from which this column is derived.
487 },
Craig Citro065b5302014-08-14 00:47:23 -0700488 "columnId": 42, # Identifier for the column.
489 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
490 "type": "A String", # Required type of the column.
491 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400492 },
493 ],
494 "name": "A String", # Name assigned to a table.
495 }
496
497 replaceViewDefinition: boolean, Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
498
499Returns:
500 An object of the form:
501
502 { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
503 "kind": "fusiontables#table", # Type name: a template for an individual table.
504 "attribution": "A String", # Optional attribution assigned to the table.
505 "description": "A String", # Optional description assigned to the table.
506 "isExportable": True or False, # Variable for whether table is exportable.
507 "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
508 "A String",
509 ],
510 "attributionLink": "A String", # Optional link for attribution.
511 "sql": "A String", # Optional sql that encodes the table definition for derived tables.
512 "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
513 "columns": [ # Columns in the table.
514 { # Specifies the id, name and type of a column in a table.
515 "kind": "fusiontables#column", # Type name: a template for an individual column.
Craig Citro065b5302014-08-14 00:47:23 -0700516 "description": "A String", # Optional column description.
John Asmuth614db982014-04-24 15:46:26 -0400517 "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
518 "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
519 "columnId": 42, # The id of the column in the base table from which this column is derived.
520 },
Craig Citro065b5302014-08-14 00:47:23 -0700521 "columnId": 42, # Identifier for the column.
522 "graph_predicate": "A String", # Optional column predicate. Used to map table to graph data model (subject,predicate,object) See http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#data-model
523 "type": "A String", # Required type of the column.
524 "name": "A String", # Required name of the column.
John Asmuth614db982014-04-24 15:46:26 -0400525 },
526 ],
527 "name": "A String", # Name assigned to a table.
528 }</pre>
529</div>
530
531</body></html>