Class: Google::Apis::FusiontablesV1::FusiontablesService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::FusiontablesV1::FusiontablesService
- Defined in:
- generated/google/apis/fusiontables_v1/service.rb
Overview
Fusion Tables API
API for working with Fusion Tables data.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
An opaque string that represents a user for quota purposes.
-
#user_ip ⇒ String
Deprecated.
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::FusiontablesV1::Table
Copies a table.
-
#delete_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes the 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 the task, unless already started.
-
#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::FusiontablesV1::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::FusiontablesV1::StyleSetting
Gets a specific style.
-
#get_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::Template
Retrieves a specific template by its id.
-
#import_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::FusiontablesV1::Import
Import more rows into a table.
-
#import_table_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::FusiontablesV1::Table
Import 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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::Template
Updates an existing template.
-
#sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV1::Sqlresponse
Executes an SQL 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::FusiontablesV1::Sqlresponse
Executes an SQL SELECT/SHOW/DESCRIBE statement.
-
#update_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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
49 50 51 52 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 49 def initialize super('https://www.googleapis.com/', 'fusiontables/v1/') @batch_path = 'batch/fusiontables/v1' 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_v1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
43 44 45 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 43 def quota_user @quota_user end |
#user_ip ⇒ String
Returns Deprecated. Please use quotaUser instead.
47 48 49 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 47 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::FusiontablesV1::Table
Copies a table.
619 620 621 622 623 624 625 626 627 628 629 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 619 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::FusiontablesV1::Table::Representation command.response_class = Google::Apis::FusiontablesV1::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 column.
78 79 80 81 82 83 84 85 86 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 78 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.
396 397 398 399 400 401 402 403 404 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 396 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.
653 654 655 656 657 658 659 660 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 653 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 the task, unless already started.
989 990 991 992 993 994 995 996 997 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 989 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
1098 1099 1100 1101 1102 1103 1104 1105 1106 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1098 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::FusiontablesV1::Column
Retrieves a specific column by its id.
112 113 114 115 116 117 118 119 120 121 122 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 112 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::FusiontablesV1::Column::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::StyleSetting
Gets a specific style.
430 431 432 433 434 435 436 437 438 439 440 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 430 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::FusiontablesV1::StyleSetting::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Table
Retrieves a specific table by its id.
684 685 686 687 688 689 690 691 692 693 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 684 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::FusiontablesV1::Table::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Task
Retrieves a specific task by its id.
1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1022 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::FusiontablesV1::Task::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Template
Retrieves a specific template by its id
1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1132 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::FusiontablesV1::Template::Representation command.response_class = Google::Apis::FusiontablesV1::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_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::FusiontablesV1::Import
Import more rows into a table.
741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 741 def import_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}/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::FusiontablesV1::Import::Representation command.response_class = Google::Apis::FusiontablesV1::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_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::FusiontablesV1::Table
Import a new table.
795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 795 def import_table_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::FusiontablesV1::Table::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Column
Adds a new column to the table.
147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 147 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::FusiontablesV1::Column::Representation command.request_object = column_object command.response_representation = Google::Apis::FusiontablesV1::Column::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::StyleSetting
Adds a new style for the table.
465 466 467 468 469 470 471 472 473 474 475 476 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 465 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::FusiontablesV1::StyleSetting::Representation command.request_object = style_setting_object command.response_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Table
Creates a new table.
835 836 837 838 839 840 841 842 843 844 845 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 835 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::FusiontablesV1::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::FusiontablesV1::Table::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Template
Creates a new template for the table.
1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1167 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::FusiontablesV1::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::FusiontablesV1::Template::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::ColumnList
Retrieves a list of columns.
186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 186 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::FusiontablesV1::ColumnList::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::StyleSettingList
Retrieves a list of styles.
504 505 506 507 508 509 510 511 512 513 514 515 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 504 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::FusiontablesV1::StyleSettingList::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::TableList
Retrieves a list of tables a user owns.
871 872 873 874 875 876 877 878 879 880 881 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 871 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::FusiontablesV1::TableList::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::TaskList
Retrieves a list of tasks.
1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1060 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::FusiontablesV1::TaskList::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::TemplateList
Retrieves a list of templates.
1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1206 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::FusiontablesV1::TemplateList::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Column
Updates the name or type of an existing column. This method supports patch semantics.
225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 225 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::FusiontablesV1::Column::Representation command.request_object = column_object command.response_representation = Google::Apis::FusiontablesV1::Column::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::StyleSetting
Updates an existing style. This method supports patch semantics.
542 543 544 545 546 547 548 549 550 551 552 553 554 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 542 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::FusiontablesV1::StyleSetting::Representation command.request_object = style_setting_object command.response_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Table
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
911 912 913 914 915 916 917 918 919 920 921 922 923 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 911 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::FusiontablesV1::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::FusiontablesV1::Table::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Template
Updates an existing template. This method supports patch semantics.
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1244 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::FusiontablesV1::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::FusiontablesV1::Template::Representation command.response_class = Google::Apis::FusiontablesV1::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 |
#sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV1::Sqlresponse
Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement.
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 307 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::FusiontablesV1::Sqlresponse::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Sqlresponse
Executes an SQL SELECT/SHOW/DESCRIBE statement.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 354 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::FusiontablesV1::Sqlresponse::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Column
Updates the name or type of an existing column.
264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 264 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::FusiontablesV1::Column::Representation command.request_object = column_object command.response_representation = Google::Apis::FusiontablesV1::Column::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::StyleSetting
Updates an existing style.
581 582 583 584 585 586 587 588 589 590 591 592 593 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 581 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::FusiontablesV1::StyleSetting::Representation command.request_object = style_setting_object command.response_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Table
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.
952 953 954 955 956 957 958 959 960 961 962 963 964 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 952 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::FusiontablesV1::Table::Representation command.request_object = table_object command.response_representation = Google::Apis::FusiontablesV1::Table::Representation command.response_class = Google::Apis::FusiontablesV1::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::FusiontablesV1::Template
Updates an existing template
1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 |
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1283 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::FusiontablesV1::Template::Representation command.request_object = template_object command.response_representation = Google::Apis::FusiontablesV1::Template::Representation command.response_class = Google::Apis::FusiontablesV1::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 |