Class: Google::Apis::FusiontablesV2::FusiontablesService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::FusiontablesV2::FusiontablesService
- Defined in:
- generated/google/apis/fusiontables_v2/service.rb
Overview
Fusion Tables API
API for working with Fusion Tables data.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
-
#user_ip ⇒ String
IP address of the site where the request originates.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#copy_table(table_id, copy_presentation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Copies a table.
-
#delete_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes the specified column.
-
#delete_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes a style.
-
#delete_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes a table.
-
#delete_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes a specific task by its ID, unless that task has already started running.
-
#delete_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes a template.
-
#get_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Column
Retrieves a specific column by its ID.
-
#get_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSetting
Gets a specific style.
-
#get_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Retrieves a specific table by its ID.
-
#get_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Task
Retrieves a specific task by its ID.
-
#get_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Template
Retrieves a specific template by its id.
-
#import_rows(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Import
Imports more rows into a table.
-
#import_table(name, delimiter: nil, encoding: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Imports a new table.
-
#initialize ⇒ FusiontablesService
constructor
A new instance of FusiontablesService.
-
#insert_column(table_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Column
Adds a new column to the table.
-
#insert_style(table_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSetting
Adds a new style for the table.
-
#insert_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Creates a new table.
-
#insert_template(table_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Template
Creates a new template for the table.
-
#list_columns(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::ColumnList
Retrieves a list of columns.
-
#list_styles(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSettingList
Retrieves a list of styles.
-
#list_tables(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::TableList
Retrieves a list of tables a user owns.
-
#list_tasks(table_id, max_results: nil, page_token: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::TaskList
Retrieves a list of tasks.
-
#list_templates(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::TemplateList
Retrieves a list of templates.
-
#patch_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Column
Updates the name or type of an existing column.
-
#patch_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSetting
Updates an existing style.
-
#patch_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Updates an existing table.
-
#patch_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Template
Updates an existing template.
-
#refetch_table_sheet(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Task
Replaces rows of the table with the rows of the spreadsheet that is first imported from.
-
#replace_table_rows(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Task
Replaces rows of an existing table.
-
#sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Sqlresponse
Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE statement.
-
#sql_query_get(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Sqlresponse
Executes a SQL statement which can be any of - SELECT - SHOW - DESCRIBE.
-
#update_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Column
Updates the name or type of an existing column.
-
#update_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSetting
Updates an existing style.
-
#update_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Updates an existing table.
-
#update_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Template
Updates an existing template.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ FusiontablesService
Returns a new instance of FusiontablesService
51 52 53 54 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 51 def initialize super('https://www.googleapis.com/', 'fusiontables/v2/') @batch_path = 'batch/fusiontables/v2' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
44 45 46 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 44 def quota_user @quota_user end |
#user_ip ⇒ String
Returns IP address of the site where the request originates. Use this if you want to enforce per-user limits.
49 50 51 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 49 def user_ip @user_ip end |
Instance Method Details
#copy_table(table_id, copy_presentation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Copies a table.
671 672 673 674 675 676 677 678 679 680 681 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 671 def copy_table(table_id, copy_presentation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'tables/{tableId}/copy', ) command.response_representation = Google::Apis::FusiontablesV2::Table::Representation command.response_class = Google::Apis::FusiontablesV2::Table command.params['tableId'] = table_id unless table_id.nil? command.query['copyPresentation'] = copy_presentation unless copy_presentation.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes the specified column.
82 83 84 85 86 87 88 89 90 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 82 def delete_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'tables/{tableId}/columns/{columnId}', ) command.params['tableId'] = table_id unless table_id.nil? command.params['columnId'] = column_id unless column_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a style.
436 437 438 439 440 441 442 443 444 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 436 def delete_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'tables/{tableId}/styles/{styleId}', ) command.params['tableId'] = table_id unless table_id.nil? command.params['styleId'] = style_id unless style_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a table.
707 708 709 710 711 712 713 714 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 707 def delete_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'tables/{tableId}', ) command.params['tableId'] = table_id unless table_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a specific task by its ID, unless that task has already started running.
1164 1165 1166 1167 1168 1169 1170 1171 1172 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1164 def delete_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'tables/{tableId}/tasks/{taskId}', ) command.params['tableId'] = table_id unless table_id.nil? command.params['taskId'] = task_id unless task_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#delete_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a template
1282 1283 1284 1285 1286 1287 1288 1289 1290 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1282 def delete_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'tables/{tableId}/templates/{templateId}', ) command.params['tableId'] = table_id unless table_id.nil? command.params['templateId'] = template_id unless template_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Column
Retrieves a specific column by its ID.
118 119 120 121 122 123 124 125 126 127 128 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 118 def get_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables/{tableId}/columns/{columnId}', ) command.response_representation = Google::Apis::FusiontablesV2::Column::Representation command.response_class = Google::Apis::FusiontablesV2::Column command.params['tableId'] = table_id unless table_id.nil? command.params['columnId'] = column_id unless column_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSetting
Gets a specific style.
472 473 474 475 476 477 478 479 480 481 482 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 472 def get_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables/{tableId}/styles/{styleId}', ) command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.response_class = Google::Apis::FusiontablesV2::StyleSetting command.params['tableId'] = table_id unless table_id.nil? command.params['styleId'] = style_id unless style_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Retrieves a specific table by its ID.
740 741 742 743 744 745 746 747 748 749 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 740 def get_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables/{tableId}', ) command.response_representation = Google::Apis::FusiontablesV2::Table::Representation command.response_class = Google::Apis::FusiontablesV2::Table command.params['tableId'] = table_id unless table_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Task
Retrieves a specific task by its ID.
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1200 def get_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables/{tableId}/tasks/{taskId}', ) command.response_representation = Google::Apis::FusiontablesV2::Task::Representation command.response_class = Google::Apis::FusiontablesV2::Task command.params['tableId'] = table_id unless table_id.nil? command.params['taskId'] = task_id unless task_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#get_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Template
Retrieves a specific template by its id
1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1318 def get_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables/{tableId}/templates/{templateId}', ) command.response_representation = Google::Apis::FusiontablesV2::Template::Representation command.response_class = Google::Apis::FusiontablesV2::Template command.params['tableId'] = table_id unless table_id.nil? command.params['templateId'] = template_id unless template_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#import_rows(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Import
Imports more rows into a table.
796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 796 def import_rows(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'tables/{tableId}/import', ) else command = make_upload_command(:post, 'tables/{tableId}/import', ) command.upload_source = upload_source command.upload_content_type = content_type end command.response_representation = Google::Apis::FusiontablesV2::Import::Representation command.response_class = Google::Apis::FusiontablesV2::Import command.params['tableId'] = table_id unless table_id.nil? command.query['delimiter'] = delimiter unless delimiter.nil? command.query['encoding'] = encoding unless encoding.nil? command.query['endLine'] = end_line unless end_line.nil? command.query['isStrict'] = is_strict unless is_strict.nil? command.query['startLine'] = start_line unless start_line.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#import_table(name, delimiter: nil, encoding: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Imports a new table.
852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 852 def import_table(name, delimiter: nil, encoding: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'tables/import', ) else command = make_upload_command(:post, 'tables/import', ) command.upload_source = upload_source command.upload_content_type = content_type end command.response_representation = Google::Apis::FusiontablesV2::Table::Representation command.response_class = Google::Apis::FusiontablesV2::Table command.query['delimiter'] = delimiter unless delimiter.nil? command.query['encoding'] = encoding unless encoding.nil? command.query['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_column(table_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Column
Adds a new column to the table.
155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 155 def insert_column(table_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'tables/{tableId}/columns', ) command.request_representation = Google::Apis::FusiontablesV2::Column::Representation command.request_object = column_object command.response_representation = Google::Apis::FusiontablesV2::Column::Representation command.response_class = Google::Apis::FusiontablesV2::Column command.params['tableId'] = table_id unless table_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_style(table_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSetting
Adds a new style for the table.
509 510 511 512 513 514 515 516 517 518 519 520 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 509 def insert_style(table_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'tables/{tableId}/styles', ) command.request_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.request_object = style_setting_object command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.response_class = Google::Apis::FusiontablesV2::StyleSetting command.params['tableId'] = table_id unless table_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Creates a new table.
894 895 896 897 898 899 900 901 902 903 904 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 894 def insert_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'tables', ) command.request_representation = Google::Apis::FusiontablesV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::FusiontablesV2::Table::Representation command.response_class = Google::Apis::FusiontablesV2::Table command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#insert_template(table_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Template
Creates a new template for the table.
1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1355 def insert_template(table_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'tables/{tableId}/templates', ) command.request_representation = Google::Apis::FusiontablesV2::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::FusiontablesV2::Template::Representation command.response_class = Google::Apis::FusiontablesV2::Template command.params['tableId'] = table_id unless table_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_columns(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::ColumnList
Retrieves a list of columns.
196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 196 def list_columns(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables/{tableId}/columns', ) command.response_representation = Google::Apis::FusiontablesV2::ColumnList::Representation command.response_class = Google::Apis::FusiontablesV2::ColumnList command.params['tableId'] = table_id unless table_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_styles(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSettingList
Retrieves a list of styles.
550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 550 def list_styles(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables/{tableId}/styles', ) command.response_representation = Google::Apis::FusiontablesV2::StyleSettingList::Representation command.response_class = Google::Apis::FusiontablesV2::StyleSettingList command.params['tableId'] = table_id unless table_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_tables(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::TableList
Retrieves a list of tables a user owns.
932 933 934 935 936 937 938 939 940 941 942 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 932 def list_tables(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables', ) command.response_representation = Google::Apis::FusiontablesV2::TableList::Representation command.response_class = Google::Apis::FusiontablesV2::TableList command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_tasks(table_id, max_results: nil, page_token: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::TaskList
Retrieves a list of tasks.
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1242 def list_tasks(table_id, max_results: nil, page_token: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables/{tableId}/tasks', ) command.response_representation = Google::Apis::FusiontablesV2::TaskList::Representation command.response_class = Google::Apis::FusiontablesV2::TaskList command.params['tableId'] = table_id unless table_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['startIndex'] = start_index unless start_index.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_templates(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::TemplateList
Retrieves a list of templates.
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1396 def list_templates(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'tables/{tableId}/templates', ) command.response_representation = Google::Apis::FusiontablesV2::TemplateList::Representation command.response_class = Google::Apis::FusiontablesV2::TemplateList command.params['tableId'] = table_id unless table_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Column
Updates the name or type of an existing column. This method supports patch semantics.
237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 237 def patch_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'tables/{tableId}/columns/{columnId}', ) command.request_representation = Google::Apis::FusiontablesV2::Column::Representation command.request_object = column_object command.response_representation = Google::Apis::FusiontablesV2::Column::Representation command.response_class = Google::Apis::FusiontablesV2::Column command.params['tableId'] = table_id unless table_id.nil? command.params['columnId'] = column_id unless column_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSetting
Updates an existing style. This method supports patch semantics.
590 591 592 593 594 595 596 597 598 599 600 601 602 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 590 def patch_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'tables/{tableId}/styles/{styleId}', ) command.request_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.request_object = style_setting_object command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.response_class = Google::Apis::FusiontablesV2::StyleSetting command.params['tableId'] = table_id unless table_id.nil? command.params['styleId'] = style_id unless style_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
974 975 976 977 978 979 980 981 982 983 984 985 986 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 974 def patch_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'tables/{tableId}', ) command.request_representation = Google::Apis::FusiontablesV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::FusiontablesV2::Table::Representation command.response_class = Google::Apis::FusiontablesV2::Table command.params['tableId'] = table_id unless table_id.nil? command.query['replaceViewDefinition'] = replace_view_definition unless replace_view_definition.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#patch_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Template
Updates an existing template. This method supports patch semantics.
1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1436 def patch_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:patch, 'tables/{tableId}/templates/{templateId}', ) command.request_representation = Google::Apis::FusiontablesV2::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::FusiontablesV2::Template::Representation command.response_class = Google::Apis::FusiontablesV2::Template command.params['tableId'] = table_id unless table_id.nil? command.params['templateId'] = template_id unless template_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#refetch_table_sheet(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Task
Replaces rows of the table with the rows of the spreadsheet that is first imported from. Current rows remain visible until all replacement rows are ready.
1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1014 def refetch_table_sheet(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'tables/{tableId}/refetch', ) command.response_representation = Google::Apis::FusiontablesV2::Task::Representation command.response_class = Google::Apis::FusiontablesV2::Task command.params['tableId'] = table_id unless table_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#replace_table_rows(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Task
Replaces rows of an existing table. Current rows remain visible until all replacement rows are ready.
1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1072 def replace_table_rows(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) if upload_source.nil? command = make_simple_command(:post, 'tables/{tableId}/replace', ) else command = make_upload_command(:post, 'tables/{tableId}/replace', ) command.upload_source = upload_source command.upload_content_type = content_type end command.response_representation = Google::Apis::FusiontablesV2::Task::Representation command.response_class = Google::Apis::FusiontablesV2::Task command.params['tableId'] = table_id unless table_id.nil? command.query['delimiter'] = delimiter unless delimiter.nil? command.query['encoding'] = encoding unless encoding.nil? command.query['endLine'] = end_line unless end_line.nil? command.query['isStrict'] = is_strict unless is_strict.nil? command.query['startLine'] = start_line unless start_line.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Sqlresponse
Executes a Fusion Tables SQL statement, which can be any of
- SELECT
- INSERT
- UPDATE
- DELETE
- SHOW
- DESCRIBE
- CREATE statement.
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 337 def sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? command = make_simple_command(:post, 'query', ) else command = make_download_command(:post, 'query', ) command.download_dest = download_dest end command.response_representation = Google::Apis::FusiontablesV2::Sqlresponse::Representation command.response_class = Google::Apis::FusiontablesV2::Sqlresponse command.query['hdrs'] = hdrs unless hdrs.nil? command.query['sql'] = sql unless sql.nil? command.query['typed'] = typed unless typed.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#sql_query_get(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Sqlresponse
Executes a SQL statement which can be any of
- SELECT
- SHOW
- DESCRIBE
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 392 def sql_query_get(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) if download_dest.nil? command = make_simple_command(:get, 'query', ) else command = make_download_command(:get, 'query', ) command.download_dest = download_dest end command.response_representation = Google::Apis::FusiontablesV2::Sqlresponse::Representation command.response_class = Google::Apis::FusiontablesV2::Sqlresponse command.query['hdrs'] = hdrs unless hdrs.nil? command.query['sql'] = sql unless sql.nil? command.query['typed'] = typed unless typed.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Column
Updates the name or type of an existing column.
278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 278 def update_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'tables/{tableId}/columns/{columnId}', ) command.request_representation = Google::Apis::FusiontablesV2::Column::Representation command.request_object = column_object command.response_representation = Google::Apis::FusiontablesV2::Column::Representation command.response_class = Google::Apis::FusiontablesV2::Column command.params['tableId'] = table_id unless table_id.nil? command.params['columnId'] = column_id unless column_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::StyleSetting
Updates an existing style.
631 632 633 634 635 636 637 638 639 640 641 642 643 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 631 def update_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'tables/{tableId}/styles/{styleId}', ) command.request_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.request_object = style_setting_object command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation command.response_class = Google::Apis::FusiontablesV2::StyleSetting command.params['tableId'] = table_id unless table_id.nil? command.params['styleId'] = style_id unless style_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Table
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.
1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1123 def update_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'tables/{tableId}', ) command.request_representation = Google::Apis::FusiontablesV2::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::FusiontablesV2::Table::Representation command.response_class = Google::Apis::FusiontablesV2::Table command.params['tableId'] = table_id unless table_id.nil? command.query['replaceViewDefinition'] = replace_view_definition unless replace_view_definition.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#update_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV2::Template
Updates an existing template
1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 |
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1477 def update_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'tables/{tableId}/templates/{templateId}', ) command.request_representation = Google::Apis::FusiontablesV2::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::FusiontablesV2::Template::Representation command.response_class = Google::Apis::FusiontablesV2::Template command.params['tableId'] = table_id unless table_id.nil? command.params['templateId'] = template_id unless template_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |