Class: Google::Apis::FusiontablesV2::FusiontablesService

Inherits:
Core::BaseService show all
Defined in:
generated/google/apis/fusiontables_v2/service.rb

Overview

Fusion Tables API

API for working with Fusion Tables data.

Examples:

require 'google/apis/fusiontables_v2'

Fusiontables = Google::Apis::FusiontablesV2 # Alias the module
service = Fusiontables::FusiontablesService.new

See Also:

Instance Attribute Summary collapse

Attributes inherited from Core::BaseService

#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path

Instance Method Summary collapse

Methods inherited from Core::BaseService

#batch, #batch_upload, #fetch_all, #http

Methods included from Core::Logging

#logger

Constructor Details

#initializeFusiontablesService

Returns a new instance of FusiontablesService


49
50
51
52
# File 'generated/google/apis/fusiontables_v2/service.rb', line 49

def initialize
  super('https://www.googleapis.com/', 'fusiontables/v2/')
  @batch_path = 'batch/fusiontables/v2'
end

Instance Attribute Details

#keyString

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.

Returns:

  • (String)

    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_userString

Returns An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

Returns:

  • (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.


43
44
45
# File 'generated/google/apis/fusiontables_v2/service.rb', line 43

def quota_user
  @quota_user
end

#user_ipString

Returns Deprecated. Please use quotaUser instead.

Returns:

  • (String)

    Deprecated. Please use quotaUser instead.


47
48
49
# File 'generated/google/apis/fusiontables_v2/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::FusiontablesV2::Table

Copies a table.

Parameters:

  • table_id (String)

    ID of the table that is being copied.

  • copy_presentation (Boolean)

    Whether to also copy tabs, styles, and templates. Default is false.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


639
640
641
642
643
644
645
646
647
648
649
# File 'generated/google/apis/fusiontables_v2/service.rb', line 639

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', options)
  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.

Parameters:

  • table_id (String)

    Table from which the column is being deleted.

  • column_id (String)

    Name or identifier for the column being deleted.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


78
79
80
81
82
83
84
85
86
# File 'generated/google/apis/fusiontables_v2/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}', options)
  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.

Parameters:

  • table_id (String)

    Table from which the style is being deleted

  • style_id (Fixnum)

    Identifier (within a table) for the style being deleted

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


416
417
418
419
420
421
422
423
424
# File 'generated/google/apis/fusiontables_v2/service.rb', line 416

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}', options)
  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.

Parameters:

  • table_id (String)

    ID of the table to be deleted.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


673
674
675
676
677
678
679
680
# File 'generated/google/apis/fusiontables_v2/service.rb', line 673

def delete_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, 'tables/{tableId}', options)
  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.

Parameters:

  • table_id (String)

    Table from which the task is being deleted.

  • task_id (String)

    The identifier of the task to delete.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1110

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}', options)
  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

Parameters:

  • table_id (String)

    Table from which the template is being deleted

  • template_id (Fixnum)

    Identifier for the template which is being deleted

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


1222
1223
1224
1225
1226
1227
1228
1229
1230
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1222

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}', options)
  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.

Parameters:

  • table_id (String)

    Table to which the column belongs.

  • column_id (String)

    Name or identifier for the column that is being requested.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


112
113
114
115
116
117
118
119
120
121
122
# File 'generated/google/apis/fusiontables_v2/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}', options)
  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.

Parameters:

  • table_id (String)

    Table to which the requested style belongs

  • style_id (Fixnum)

    Identifier (integer) for a specific style in a table

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


450
451
452
453
454
455
456
457
458
459
460
# File 'generated/google/apis/fusiontables_v2/service.rb', line 450

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}', options)
  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.

Parameters:

  • table_id (String)

    Identifier for the table being requested.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


704
705
706
707
708
709
710
711
712
713
# File 'generated/google/apis/fusiontables_v2/service.rb', line 704

def get_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'tables/{tableId}', options)
  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.

Parameters:

  • table_id (String)

    Table to which the task belongs.

  • task_id (String)

    The identifier of the task to get.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1144

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}', options)
  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

Parameters:

  • table_id (String)

    Table to which the template belongs

  • template_id (Fixnum)

    Identifier for the template that is being requested

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1256

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}', options)
  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.

Parameters:

  • table_id (String)

    The table into which new rows are being imported.

  • delimiter (String)

    The delimiter used to separate cell values. This can only consist of a single character. Default is ,.

  • encoding (String)

    The encoding of the content. Default is UTF-8. Use auto-detect if you are unsure of the encoding.

  • end_line (Fixnum)

    The index of the line up to which data will be imported. Default is to import the entire file. If endLine is negative, it is an offset from the end of the file; the imported content will exclude the last endLine lines.

  • is_strict (Boolean)

    Whether the imported CSV must have the same number of values for each row. If false, rows with fewer values will be padded with empty values. Default is true.

  • start_line (Fixnum)

    The index of the first line from which to start importing, inclusive. Default is 0.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • upload_source (IO, String)

    IO stream or filename containing content to upload

  • content_type (String)

    Content type of the uploaded content.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
# File 'generated/google/apis/fusiontables_v2/service.rb', line 758

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', options)
  else
    command = make_upload_command(:post, 'tables/{tableId}/import', options)
    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.

Parameters:

  • name (String)

    The name to be assigned to the new table.

  • delimiter (String)

    The delimiter used to separate cell values. This can only consist of a single character. Default is ,.

  • encoding (String)

    The encoding of the content. Default is UTF-8. Use auto-detect if you are unsure of the encoding.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • upload_source (IO, String)

    IO stream or filename containing content to upload

  • content_type (String)

    Content type of the uploaded content.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
# File 'generated/google/apis/fusiontables_v2/service.rb', line 812

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', options)
  else
    command = make_upload_command(:post, 'tables/import', options)
    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.

Parameters:

  • table_id (String)

    Table for which a new column is being added.

  • column_object (Google::Apis::FusiontablesV2::Column) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


147
148
149
150
151
152
153
154
155
156
157
158
# File 'generated/google/apis/fusiontables_v2/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', options)
  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.

Parameters:

  • table_id (String)

    Table for which a new style is being added

  • style_setting_object (Google::Apis::FusiontablesV2::StyleSetting) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


485
486
487
488
489
490
491
492
493
494
495
496
# File 'generated/google/apis/fusiontables_v2/service.rb', line 485

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', options)
  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.

Parameters:

  • table_object (Google::Apis::FusiontablesV2::Table) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


852
853
854
855
856
857
858
859
860
861
862
# File 'generated/google/apis/fusiontables_v2/service.rb', line 852

def insert_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'tables', options)
  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.

Parameters:

  • table_id (String)

    Table for which a new template is being created

  • template_object (Google::Apis::FusiontablesV2::Template) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1291

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', options)
  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.

Parameters:

  • table_id (String)

    Table whose columns are being listed.

  • max_results (Fixnum)

    Maximum number of columns to return. Default is 5.

  • page_token (String)

    Continuation token specifying which result page to return.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


186
187
188
189
190
191
192
193
194
195
196
197
# File 'generated/google/apis/fusiontables_v2/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', options)
  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.

Parameters:

  • table_id (String)

    Table whose styles are being listed

  • max_results (Fixnum)

    Maximum number of styles to return. Optional. Default is 5.

  • page_token (String)

    Continuation token specifying which result page to return. Optional.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


524
525
526
527
528
529
530
531
532
533
534
535
# File 'generated/google/apis/fusiontables_v2/service.rb', line 524

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', options)
  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.

Parameters:

  • max_results (Fixnum)

    Maximum number of tables to return. Default is 5.

  • page_token (String)

    Continuation token specifying which result page to return.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


888
889
890
891
892
893
894
895
896
897
898
# File 'generated/google/apis/fusiontables_v2/service.rb', line 888

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', options)
  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.

Parameters:

  • table_id (String)

    Table whose tasks are being listed.

  • max_results (Fixnum)

    Maximum number of tasks to return. Default is 5.

  • page_token (String)

    Continuation token specifying which result page to return.

  • start_index (Fixnum)

    Index of the first result returned in the current page.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1184

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', options)
  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.

Parameters:

  • table_id (String)

    Identifier for the table whose templates are being requested

  • max_results (Fixnum)

    Maximum number of templates to return. Optional. Default is 5.

  • page_token (String)

    Continuation token specifying which results page to return. Optional.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1330

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', options)
  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.

Parameters:

  • table_id (String)

    Table for which the column is being updated.

  • column_id (String)

    Name or identifier for the column that is being updated.

  • column_object (Google::Apis::FusiontablesV2::Column) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


225
226
227
228
229
230
231
232
233
234
235
236
237
# File 'generated/google/apis/fusiontables_v2/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}', options)
  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.

Parameters:

  • table_id (String)

    Table whose style is being updated.

  • style_id (Fixnum)

    Identifier (within a table) for the style being updated.

  • style_setting_object (Google::Apis::FusiontablesV2::StyleSetting) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


562
563
564
565
566
567
568
569
570
571
572
573
574
# File 'generated/google/apis/fusiontables_v2/service.rb', line 562

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}', options)
  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.

Parameters:

  • table_id (String)

    ID of the table that is being updated.

  • table_object (Google::Apis::FusiontablesV2::Table) (defaults to: nil)
  • replace_view_definition (Boolean)

    Whether the view definition is also updated. The specified view definition replaces the existing one. Only a view can be updated with a new definition.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


928
929
930
931
932
933
934
935
936
937
938
939
940
# File 'generated/google/apis/fusiontables_v2/service.rb', line 928

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}', options)
  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.

Parameters:

  • table_id (String)

    Table to which the updated template belongs

  • template_id (Fixnum)

    Identifier for the template that is being updated

  • template_object (Google::Apis::FusiontablesV2::Template) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1368

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}', options)
  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.

Parameters:

  • table_id (String)

    Table whose rows will be replaced from the spreadsheet.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


966
967
968
969
970
971
972
973
974
975
# File 'generated/google/apis/fusiontables_v2/service.rb', line 966

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', options)
  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.

Parameters:

  • table_id (String)

    Table whose rows will be replaced.

  • delimiter (String)

    The delimiter used to separate cell values. This can only consist of a single character. Default is ,.

  • encoding (String)

    The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.

  • end_line (Fixnum)

    The index of the line up to which data will be imported. Default is to import the entire file. If endLine is negative, it is an offset from the end of the file; the imported content will exclude the last endLine lines.

  • is_strict (Boolean)

    Whether the imported CSV must have the same number of column values for each row. If true, throws an exception if the CSV does not have the same number of columns. If false, rows with fewer column values will be padded with empty values. Default is true.

  • start_line (Fixnum)

    The index of the first line from which to start importing, inclusive. Default is 0.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • upload_source (IO, String)

    IO stream or filename containing content to upload

  • content_type (String)

    Content type of the uploaded content.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1022

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', options)
  else
    command = make_upload_command(:post, 'tables/{tableId}/replace', options)
    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.

Parameters:

  • sql (String)

    A Fusion Tables SQL statement, which can be any of

    • SELECT
    • INSERT
    • UPDATE
    • DELETE
    • SHOW
    • DESCRIBE
    • CREATE
  • hdrs (Boolean)

    Whether column names are included in the first row. Default is true.

  • typed (Boolean)

    Whether typed values are returned in the (JSON) response: numbers for numeric values and parsed geometries for KML values. Default is true.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • download_dest (IO, String)

    IO stream or filename to receive content download

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
# File 'generated/google/apis/fusiontables_v2/service.rb', line 321

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', options)
  else
    command = make_download_command(:post, 'query', options)
    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

Parameters:

  • sql (String)

    A SQL statement which can be any of

    • SELECT
    • SHOW
    • DESCRIBE
  • hdrs (Boolean)

    Whether column names are included (in the first row). Default is true.

  • typed (Boolean)

    Whether typed values are returned in the (JSON) response: numbers for numeric values and parsed geometries for KML values. Default is true.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • download_dest (IO, String)

    IO stream or filename to receive content download

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# File 'generated/google/apis/fusiontables_v2/service.rb', line 374

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', options)
  else
    command = make_download_command(:get, 'query', options)
    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.

Parameters:

  • table_id (String)

    Table for which the column is being updated.

  • column_id (String)

    Name or identifier for the column that is being updated.

  • column_object (Google::Apis::FusiontablesV2::Column) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


264
265
266
267
268
269
270
271
272
273
274
275
276
# File 'generated/google/apis/fusiontables_v2/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}', options)
  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.

Parameters:

  • table_id (String)

    Table whose style is being updated.

  • style_id (Fixnum)

    Identifier (within a table) for the style being updated.

  • style_setting_object (Google::Apis::FusiontablesV2::StyleSetting) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


601
602
603
604
605
606
607
608
609
610
611
612
613
# File 'generated/google/apis/fusiontables_v2/service.rb', line 601

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}', options)
  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.

Parameters:

  • table_id (String)

    ID of the table that is being updated.

  • table_object (Google::Apis::FusiontablesV2::Table) (defaults to: nil)
  • replace_view_definition (Boolean)

    Whether the view definition is also updated. The specified view definition replaces the existing one. Only a view can be updated with a new definition.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1071

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}', options)
  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

Parameters:

  • table_id (String)

    Table to which the updated template belongs

  • template_id (Fixnum)

    Identifier for the template that is being updated

  • template_object (Google::Apis::FusiontablesV2::Template) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
# File 'generated/google/apis/fusiontables_v2/service.rb', line 1407

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}', options)
  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