1616 */
1717
1818/**
19- * Service definition for Fusiontables (v1 ).
19+ * Service definition for Fusiontables (v2 ).
2020 *
2121 * <p>
2222 * API for working with Fusion Tables data.</p>
@@ -53,8 +53,8 @@ class Google_Service_Fusiontables extends Google_Service
5353 public function __construct (Google_Client $ client )
5454 {
5555 parent ::__construct ($ client );
56- $ this ->servicePath = 'fusiontables/v1 / ' ;
57- $ this ->version = 'v1 ' ;
56+ $ this ->servicePath = 'fusiontables/v2 / ' ;
57+ $ this ->version = 'v2 ' ;
5858 $ this ->serviceName = 'fusiontables ' ;
5959
6060 $ this ->column = new Google_Service_Fusiontables_Column_Resource (
@@ -418,6 +418,36 @@ public function __construct(Google_Client $client)
418418 'type ' => 'boolean ' ,
419419 ),
420420 ),
421+ ),'replaceRows ' => array (
422+ 'path ' => 'tables/{tableId}/replace ' ,
423+ 'httpMethod ' => 'POST ' ,
424+ 'parameters ' => array (
425+ 'tableId ' => array (
426+ 'location ' => 'path ' ,
427+ 'type ' => 'string ' ,
428+ 'required ' => true ,
429+ ),
430+ 'startLine ' => array (
431+ 'location ' => 'query ' ,
432+ 'type ' => 'integer ' ,
433+ ),
434+ 'isStrict ' => array (
435+ 'location ' => 'query ' ,
436+ 'type ' => 'boolean ' ,
437+ ),
438+ 'encoding ' => array (
439+ 'location ' => 'query ' ,
440+ 'type ' => 'string ' ,
441+ ),
442+ 'delimiter ' => array (
443+ 'location ' => 'query ' ,
444+ 'type ' => 'string ' ,
445+ ),
446+ 'endLine ' => array (
447+ 'location ' => 'query ' ,
448+ 'type ' => 'integer ' ,
449+ ),
450+ ),
421451 ),'update ' => array (
422452 'path ' => 'tables/{tableId} ' ,
423453 'httpMethod ' => 'PUT ' ,
@@ -663,9 +693,9 @@ public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $
663693 * @param array $optParams Optional parameters.
664694 *
665695 * @opt_param string pageToken Continuation token specifying which result page
666- * to return. Optional.
667- * @opt_param string maxResults Maximum number of columns to return. Optional.
668- * Default is 5.
696+ * to return.
697+ * @opt_param string maxResults Maximum number of columns to return. Default is
698+ * 5.
669699 * @return Google_Service_Fusiontables_ColumnList
670700 */
671701 public function listColumn ($ tableId , $ optParams = array ())
@@ -1032,6 +1062,36 @@ public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $op
10321062 return $ this ->call ('patch ' , array ($ params ), "Google_Service_Fusiontables_Table " );
10331063 }
10341064
1065+ /**
1066+ * Replaces rows of an existing table. Current rows remain visible until all
1067+ * replacement rows are ready. (table.replaceRows)
1068+ *
1069+ * @param string $tableId Table whose rows will be replaced.
1070+ * @param array $optParams Optional parameters.
1071+ *
1072+ * @opt_param int startLine The index of the first line from which to start
1073+ * importing, inclusive. Default is 0.
1074+ * @opt_param bool isStrict Whether the CSV must have the same number of column
1075+ * values for each row. If true, throws an exception if the CSV does not not
1076+ * have the same number of columns. If false, rows with fewer column values will
1077+ * be padded with empty values. Default is true.
1078+ * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
1079+ * 'auto-detect' if you are unsure of the encoding.
1080+ * @opt_param string delimiter The delimiter used to separate cell values. This
1081+ * can only consist of a single character. Default is ','.
1082+ * @opt_param int endLine The index of the last line to import, exclusive.
1083+ * 'endLine - startLine' rows will be imported. Default is to import through the
1084+ * end of the file. If endLine is negative, it is an offset from the end of the
1085+ * file; the imported content will exclude the last endLine lines.
1086+ * @return Google_Service_Fusiontables_Task
1087+ */
1088+ public function replaceRows ($ tableId , $ optParams = array ())
1089+ {
1090+ $ params = array ('tableId ' => $ tableId );
1091+ $ params = array_merge ($ params , $ optParams );
1092+ return $ this ->call ('replaceRows ' , array ($ params ), "Google_Service_Fusiontables_Task " );
1093+ }
1094+
10351095 /**
10361096 * Updates an existing table. Unless explicitly requested, only the name,
10371097 * description, and attribution will be updated. (table.update)
@@ -1099,10 +1159,11 @@ public function get($tableId, $taskId, $optParams = array())
10991159 * @param string $tableId Table whose tasks are being listed.
11001160 * @param array $optParams Optional parameters.
11011161 *
1102- * @opt_param string pageToken
1103- * @opt_param string startIndex
1104- * @opt_param string maxResults Maximum number of columns to return. Optional.
1105- * Default is 5.
1162+ * @opt_param string pageToken Continuation token specifying which result page
1163+ * to return.
1164+ * @opt_param string startIndex Index of the first result returned in the
1165+ * current page.
1166+ * @opt_param string maxResults Maximum number of tasks to return. Default is 5.
11061167 * @return Google_Service_Fusiontables_TaskList
11071168 */
11081169 public function listTask ($ tableId , $ optParams = array ())
@@ -1287,19 +1348,24 @@ public function getWeight()
12871348 }
12881349}
12891350
1290- class Google_Service_Fusiontables_Column extends Google_Model
1351+ class Google_Service_Fusiontables_Column extends Google_Collection
12911352{
1353+ protected $ collection_key = 'validValues ' ;
12921354 protected $ internal_gapi_mappings = array (
1293- "graphPredicate " => "graph_predicate " ,
12941355 );
12951356 protected $ baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn ' ;
12961357 protected $ baseColumnDataType = '' ;
12971358 public $ columnId ;
1359+ public $ columnJsonSchema ;
1360+ public $ columnPropertiesJson ;
12981361 public $ description ;
1362+ public $ formatPattern ;
12991363 public $ graphPredicate ;
13001364 public $ kind ;
13011365 public $ name ;
13021366 public $ type ;
1367+ public $ validValues ;
1368+ public $ validateData ;
13031369
13041370
13051371 public function setBaseColumn (Google_Service_Fusiontables_ColumnBaseColumn $ baseColumn )
@@ -1318,6 +1384,22 @@ public function getColumnId()
13181384 {
13191385 return $ this ->columnId ;
13201386 }
1387+ public function setColumnJsonSchema ($ columnJsonSchema )
1388+ {
1389+ $ this ->columnJsonSchema = $ columnJsonSchema ;
1390+ }
1391+ public function getColumnJsonSchema ()
1392+ {
1393+ return $ this ->columnJsonSchema ;
1394+ }
1395+ public function setColumnPropertiesJson ($ columnPropertiesJson )
1396+ {
1397+ $ this ->columnPropertiesJson = $ columnPropertiesJson ;
1398+ }
1399+ public function getColumnPropertiesJson ()
1400+ {
1401+ return $ this ->columnPropertiesJson ;
1402+ }
13211403 public function setDescription ($ description )
13221404 {
13231405 $ this ->description = $ description ;
@@ -1326,6 +1408,14 @@ public function getDescription()
13261408 {
13271409 return $ this ->description ;
13281410 }
1411+ public function setFormatPattern ($ formatPattern )
1412+ {
1413+ $ this ->formatPattern = $ formatPattern ;
1414+ }
1415+ public function getFormatPattern ()
1416+ {
1417+ return $ this ->formatPattern ;
1418+ }
13291419 public function setGraphPredicate ($ graphPredicate )
13301420 {
13311421 $ this ->graphPredicate = $ graphPredicate ;
@@ -1358,6 +1448,22 @@ public function getType()
13581448 {
13591449 return $ this ->type ;
13601450 }
1451+ public function setValidValues ($ validValues )
1452+ {
1453+ $ this ->validValues = $ validValues ;
1454+ }
1455+ public function getValidValues ()
1456+ {
1457+ return $ this ->validValues ;
1458+ }
1459+ public function setValidateData ($ validateData )
1460+ {
1461+ $ this ->validateData = $ validateData ;
1462+ }
1463+ public function getValidateData ()
1464+ {
1465+ return $ this ->validateData ;
1466+ }
13611467}
13621468
13631469class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model
@@ -2014,6 +2120,7 @@ class Google_Service_Fusiontables_Table extends Google_Collection
20142120 public $ attribution ;
20152121 public $ attributionLink ;
20162122 public $ baseTableIds ;
2123+ public $ columnPropertiesJsonSchema ;
20172124 protected $ columnsType = 'Google_Service_Fusiontables_Column ' ;
20182125 protected $ columnsDataType = 'array ' ;
20192126 public $ description ;
@@ -2022,6 +2129,8 @@ class Google_Service_Fusiontables_Table extends Google_Collection
20222129 public $ name ;
20232130 public $ sql ;
20242131 public $ tableId ;
2132+ public $ tablePropertiesJson ;
2133+ public $ tablePropertiesJsonSchema ;
20252134
20262135
20272136 public function setAttribution ($ attribution )
@@ -2048,6 +2157,14 @@ public function getBaseTableIds()
20482157 {
20492158 return $ this ->baseTableIds ;
20502159 }
2160+ public function setColumnPropertiesJsonSchema ($ columnPropertiesJsonSchema )
2161+ {
2162+ $ this ->columnPropertiesJsonSchema = $ columnPropertiesJsonSchema ;
2163+ }
2164+ public function getColumnPropertiesJsonSchema ()
2165+ {
2166+ return $ this ->columnPropertiesJsonSchema ;
2167+ }
20512168 public function setColumns ($ columns )
20522169 {
20532170 $ this ->columns = $ columns ;
@@ -2104,6 +2221,22 @@ public function getTableId()
21042221 {
21052222 return $ this ->tableId ;
21062223 }
2224+ public function setTablePropertiesJson ($ tablePropertiesJson )
2225+ {
2226+ $ this ->tablePropertiesJson = $ tablePropertiesJson ;
2227+ }
2228+ public function getTablePropertiesJson ()
2229+ {
2230+ return $ this ->tablePropertiesJson ;
2231+ }
2232+ public function setTablePropertiesJsonSchema ($ tablePropertiesJsonSchema )
2233+ {
2234+ $ this ->tablePropertiesJsonSchema = $ tablePropertiesJsonSchema ;
2235+ }
2236+ public function getTablePropertiesJsonSchema ()
2237+ {
2238+ return $ this ->tablePropertiesJsonSchema ;
2239+ }
21072240}
21082241
21092242class Google_Service_Fusiontables_TableList extends Google_Collection
0 commit comments