Class: Google::Apis::FusiontablesV1::FusiontablesService

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

Overview

Fusion Tables API

API for working with Fusion Tables data.

Examples:

require 'google/apis/fusiontables_v1'

Fusiontables = Google::Apis::FusiontablesV1 # 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



51
52
53
54
# File 'generated/google/apis/fusiontables_v1/service.rb', line 51

def initialize
  super('https://www.googleapis.com/', 'fusiontables/v1/')
  @batch_path = 'batch/fusiontables/v1'
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_v1/service.rb', line 38

def key
  @key
end

#quota_userString

Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

Returns:

  • (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.



44
45
46
# File 'generated/google/apis/fusiontables_v1/service.rb', line 44

def quota_user
  @quota_user
end

#user_ipString

Returns IP address of the site where the request originates. Use this if you want to enforce per-user limits.

Returns:

  • (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.



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

def user_ip
  @user_ip
end

Instance Method Details

#copy_table(table_id, copy_presentation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::FusiontablesV1::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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



651
652
653
654
655
656
657
658
659
660
661
# File 'generated/google/apis/fusiontables_v1/service.rb', line 651

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::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.

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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • 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:



82
83
84
85
86
87
88
89
90
# File 'generated/google/apis/fusiontables_v1/service.rb', line 82

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

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • 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_v1/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 that is being deleted.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • 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:



687
688
689
690
691
692
693
694
# File 'generated/google/apis/fusiontables_v1/service.rb', line 687

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 the task, unless already started.

Parameters:

  • table_id (String)

    Table from which the task is being deleted.

  • task_id (String)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • 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:



1039
1040
1041
1042
1043
1044
1045
1046
1047
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1039

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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • 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:



1154
1155
1156
1157
1158
1159
1160
1161
1162
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1154

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::FusiontablesV1::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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



118
119
120
121
122
123
124
125
126
127
128
# File 'generated/google/apis/fusiontables_v1/service.rb', line 118

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

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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



452
453
454
455
456
457
458
459
460
461
462
# File 'generated/google/apis/fusiontables_v1/service.rb', line 452

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::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.

Parameters:

  • table_id (String)

    Identifier(ID) for the table being requested.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



720
721
722
723
724
725
726
727
728
729
# File 'generated/google/apis/fusiontables_v1/service.rb', line 720

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::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.

Parameters:

  • table_id (String)

    Table to which the task belongs.

  • task_id (String)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1074

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::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

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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1190

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::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.

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 last line from which to start importing, exclusive. Thus, the number of imported lines is endLine - startLine. If this parameter is not provided, the file will be imported until the last line of the file. If endLine is negative, then the imported content will exclude the last endLine lines. That is, if endline is negative, no line will be imported whose index is greater than N + endLine where N is the number of lines in the file, and the number of imported lines will be N + endLine - startLine.

  • is_strict (Boolean)

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

  • 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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • 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:



779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
# File 'generated/google/apis/fusiontables_v1/service.rb', line 779

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', 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::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.

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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • 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:



835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
# File 'generated/google/apis/fusiontables_v1/service.rb', line 835

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', 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::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.

Parameters:

  • table_id (String)

    Table for which a new column is being added.

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



155
156
157
158
159
160
161
162
163
164
165
166
# File 'generated/google/apis/fusiontables_v1/service.rb', line 155

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

Parameters:

  • table_id (String)

    Table for which a new style is being added

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



489
490
491
492
493
494
495
496
497
498
499
500
# File 'generated/google/apis/fusiontables_v1/service.rb', line 489

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::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.

Parameters:

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



877
878
879
880
881
882
883
884
885
886
887
# File 'generated/google/apis/fusiontables_v1/service.rb', line 877

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::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.

Parameters:

  • table_id (String)

    Table for which a new template is being created

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

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1227

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::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.

Parameters:

  • table_id (String)

    Table whose columns are being listed.

  • max_results (Fixnum)

    Maximum number of columns 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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



196
197
198
199
200
201
202
203
204
205
206
207
# File 'generated/google/apis/fusiontables_v1/service.rb', line 196

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

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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



530
531
532
533
534
535
536
537
538
539
540
541
# File 'generated/google/apis/fusiontables_v1/service.rb', line 530

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::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.

Parameters:

  • 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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



915
916
917
918
919
920
921
922
923
924
925
# File 'generated/google/apis/fusiontables_v1/service.rb', line 915

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::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.

Parameters:

  • table_id (String)

    Table whose tasks are being listed.

  • max_results (Fixnum)

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

  • page_token (String)
  • start_index (Fixnum)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1114

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::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.

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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1268

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::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.

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::FusiontablesV1::Column) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



237
238
239
240
241
242
243
244
245
246
247
248
249
# File 'generated/google/apis/fusiontables_v1/service.rb', line 237

def patch_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:patch, 'tables/{tableId}/columns/{columnId}', options)
  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.

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::FusiontablesV1::StyleSetting) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



570
571
572
573
574
575
576
577
578
579
580
581
582
# File 'generated/google/apis/fusiontables_v1/service.rb', line 570

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::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.

Parameters:

  • table_id (String)

    ID of the table that is being updated.

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

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



957
958
959
960
961
962
963
964
965
966
967
968
969
# File 'generated/google/apis/fusiontables_v1/service.rb', line 957

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::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.

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::FusiontablesV1::Template) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1308

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::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.

Parameters:

  • sql (String)

    An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement.

  • hdrs (Boolean)

    Should column names be included (in the first row)?. Default is true.

  • typed (Boolean)

    Should typed values be 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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • 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:



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

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::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.

Parameters:

  • sql (String)

    An SQL SELECT/SHOW/DESCRIBE statement.

  • hdrs (Boolean)

    Should column names be included (in the first row)?. Default is true.

  • typed (Boolean)

    Should typed values be 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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • 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:



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

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::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.

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::FusiontablesV1::Column) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



278
279
280
281
282
283
284
285
286
287
288
289
290
# File 'generated/google/apis/fusiontables_v1/service.rb', line 278

def update_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, 'tables/{tableId}/columns/{columnId}', options)
  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.

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::FusiontablesV1::StyleSetting) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



611
612
613
614
615
616
617
618
619
620
621
622
623
# File 'generated/google/apis/fusiontables_v1/service.rb', line 611

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::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.

Parameters:

  • table_id (String)

    ID of the table that is being updated.

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

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

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1000

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::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

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::FusiontablesV1::Template) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
# File 'generated/google/apis/fusiontables_v1/service.rb', line 1349

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::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