google-api-client 0.36.0 → 0.36.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +69 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +7 -4
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +32 -32
- data/generated/google/apis/androidpublisher_v3/representations.rb +17 -17
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +2 -1
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +81 -41
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +8 -8
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +60 -30
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +75 -40
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +75 -41
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +75 -41
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/service.rb +5 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +206 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
- data/generated/google/apis/cloudasset_v1/service.rb +174 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +59 -41
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +9 -5
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +75 -41
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +75 -41
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +104 -41
- data/generated/google/apis/cloudkms_v1/representations.rb +15 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +75 -41
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +75 -41
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +75 -41
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +75 -41
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +3 -2
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +81 -47
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +75 -41
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +81 -47
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +5 -3
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +68 -47
- data/generated/google/apis/compute_alpha/representations.rb +2 -1
- data/generated/google/apis/compute_alpha/service.rb +54 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +597 -40
- data/generated/google/apis/compute_beta/representations.rb +164 -0
- data/generated/google/apis/compute_beta/service.rb +343 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +54 -39
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +75 -41
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +77 -43
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +46 -42
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +46 -42
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +75 -41
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +16 -22
- data/generated/google/apis/datastore_v1/service.rb +10 -10
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +5 -4
- data/generated/google/apis/datastore_v1beta3/service.rb +8 -8
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +88 -88
- data/generated/google/apis/dfareporting_v3_4/representations.rb +39 -39
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +77 -0
- data/generated/google/apis/dlp_v2/representations.rb +42 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +59 -12
- data/generated/google/apis/file_v1/representations.rb +19 -2
- data/generated/google/apis/file_v1/service.rb +8 -4
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +59 -12
- data/generated/google/apis/file_v1beta1/representations.rb +19 -2
- data/generated/google/apis/file_v1beta1/service.rb +8 -4
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +75 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +35 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +6 -2
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +7 -4
- data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +225 -40
- data/generated/google/apis/iap_v1/representations.rb +84 -0
- data/generated/google/apis/iap_v1/service.rb +292 -0
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +75 -40
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +29 -41
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +14 -21
- data/generated/google/apis/ml_v1/service.rb +15 -18
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +15 -11
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +6 -10
- data/generated/google/apis/monitoring_v3/representations.rb +0 -1
- data/generated/google/apis/{fusiontables_v1.rb → policytroubleshooter_v1.rb} +10 -13
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +700 -0
- data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
- data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +75 -41
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +75 -41
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +75 -41
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +82 -41
- data/generated/google/apis/run_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/{fusiontables_v2.rb → secretmanager_v1beta1.rb} +11 -14
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +936 -0
- data/generated/google/apis/secretmanager_v1beta1/representations.rb +388 -0
- data/generated/google/apis/secretmanager_v1beta1/service.rb +674 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +85 -1
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +4 -3
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +38 -1
- data/generated/google/apis/servicenetworking_v1/representations.rb +14 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +35 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -1
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +16 -1
- data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +16 -1
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/service.rb +4 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +374 -2
- data/generated/google/apis/toolresults_v1beta3/representations.rb +109 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +98 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -11
- data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
- data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
- data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
- data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
- data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
- data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
@@ -1,1431 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module FusiontablesV2
|
23
|
-
# Fusion Tables API
|
24
|
-
#
|
25
|
-
# API for working with Fusion Tables data.
|
26
|
-
#
|
27
|
-
# @example
|
28
|
-
# require 'google/apis/fusiontables_v2'
|
29
|
-
#
|
30
|
-
# Fusiontables = Google::Apis::FusiontablesV2 # Alias the module
|
31
|
-
# service = Fusiontables::FusiontablesService.new
|
32
|
-
#
|
33
|
-
# @see https://developers.google.com/fusiontables
|
34
|
-
class FusiontablesService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
|
-
# @return [String]
|
41
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
42
|
-
# characters.
|
43
|
-
attr_accessor :quota_user
|
44
|
-
|
45
|
-
# @return [String]
|
46
|
-
# Deprecated. Please use quotaUser instead.
|
47
|
-
attr_accessor :user_ip
|
48
|
-
|
49
|
-
def initialize
|
50
|
-
super('https://www.googleapis.com/', 'fusiontables/v2/')
|
51
|
-
@batch_path = 'batch/fusiontables/v2'
|
52
|
-
end
|
53
|
-
|
54
|
-
# Deletes the specified column.
|
55
|
-
# @param [String] table_id
|
56
|
-
# Table from which the column is being deleted.
|
57
|
-
# @param [String] column_id
|
58
|
-
# Name or identifier for the column being deleted.
|
59
|
-
# @param [String] fields
|
60
|
-
# Selector specifying which fields to include in a partial response.
|
61
|
-
# @param [String] quota_user
|
62
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
63
|
-
# characters.
|
64
|
-
# @param [String] user_ip
|
65
|
-
# Deprecated. Please use quotaUser instead.
|
66
|
-
# @param [Google::Apis::RequestOptions] options
|
67
|
-
# Request-specific options
|
68
|
-
#
|
69
|
-
# @yield [result, err] Result & error if block supplied
|
70
|
-
# @yieldparam result [NilClass] No result returned for this method
|
71
|
-
# @yieldparam err [StandardError] error object if request failed
|
72
|
-
#
|
73
|
-
# @return [void]
|
74
|
-
#
|
75
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
-
def delete_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
79
|
-
command = make_simple_command(:delete, 'tables/{tableId}/columns/{columnId}', options)
|
80
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
81
|
-
command.params['columnId'] = column_id unless column_id.nil?
|
82
|
-
command.query['fields'] = fields unless fields.nil?
|
83
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
85
|
-
execute_or_queue_command(command, &block)
|
86
|
-
end
|
87
|
-
|
88
|
-
# Retrieves a specific column by its ID.
|
89
|
-
# @param [String] table_id
|
90
|
-
# Table to which the column belongs.
|
91
|
-
# @param [String] column_id
|
92
|
-
# Name or identifier for the column that is being requested.
|
93
|
-
# @param [String] fields
|
94
|
-
# Selector specifying which fields to include in a partial response.
|
95
|
-
# @param [String] quota_user
|
96
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
97
|
-
# characters.
|
98
|
-
# @param [String] user_ip
|
99
|
-
# Deprecated. Please use quotaUser instead.
|
100
|
-
# @param [Google::Apis::RequestOptions] options
|
101
|
-
# Request-specific options
|
102
|
-
#
|
103
|
-
# @yield [result, err] Result & error if block supplied
|
104
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Column] parsed result object
|
105
|
-
# @yieldparam err [StandardError] error object if request failed
|
106
|
-
#
|
107
|
-
# @return [Google::Apis::FusiontablesV2::Column]
|
108
|
-
#
|
109
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
-
def get_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
113
|
-
command = make_simple_command(:get, 'tables/{tableId}/columns/{columnId}', options)
|
114
|
-
command.response_representation = Google::Apis::FusiontablesV2::Column::Representation
|
115
|
-
command.response_class = Google::Apis::FusiontablesV2::Column
|
116
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
117
|
-
command.params['columnId'] = column_id unless column_id.nil?
|
118
|
-
command.query['fields'] = fields unless fields.nil?
|
119
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
120
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
121
|
-
execute_or_queue_command(command, &block)
|
122
|
-
end
|
123
|
-
|
124
|
-
# Adds a new column to the table.
|
125
|
-
# @param [String] table_id
|
126
|
-
# Table for which a new column is being added.
|
127
|
-
# @param [Google::Apis::FusiontablesV2::Column] column_object
|
128
|
-
# @param [String] fields
|
129
|
-
# Selector specifying which fields to include in a partial response.
|
130
|
-
# @param [String] quota_user
|
131
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
132
|
-
# characters.
|
133
|
-
# @param [String] user_ip
|
134
|
-
# Deprecated. Please use quotaUser instead.
|
135
|
-
# @param [Google::Apis::RequestOptions] options
|
136
|
-
# Request-specific options
|
137
|
-
#
|
138
|
-
# @yield [result, err] Result & error if block supplied
|
139
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Column] parsed result object
|
140
|
-
# @yieldparam err [StandardError] error object if request failed
|
141
|
-
#
|
142
|
-
# @return [Google::Apis::FusiontablesV2::Column]
|
143
|
-
#
|
144
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
-
def insert_column(table_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
148
|
-
command = make_simple_command(:post, 'tables/{tableId}/columns', options)
|
149
|
-
command.request_representation = Google::Apis::FusiontablesV2::Column::Representation
|
150
|
-
command.request_object = column_object
|
151
|
-
command.response_representation = Google::Apis::FusiontablesV2::Column::Representation
|
152
|
-
command.response_class = Google::Apis::FusiontablesV2::Column
|
153
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
154
|
-
command.query['fields'] = fields unless fields.nil?
|
155
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
156
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
157
|
-
execute_or_queue_command(command, &block)
|
158
|
-
end
|
159
|
-
|
160
|
-
# Retrieves a list of columns.
|
161
|
-
# @param [String] table_id
|
162
|
-
# Table whose columns are being listed.
|
163
|
-
# @param [Fixnum] max_results
|
164
|
-
# Maximum number of columns to return. Default is 5.
|
165
|
-
# @param [String] page_token
|
166
|
-
# Continuation token specifying which result page to return.
|
167
|
-
# @param [String] fields
|
168
|
-
# Selector specifying which fields to include in a partial response.
|
169
|
-
# @param [String] quota_user
|
170
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
171
|
-
# characters.
|
172
|
-
# @param [String] user_ip
|
173
|
-
# Deprecated. Please use quotaUser instead.
|
174
|
-
# @param [Google::Apis::RequestOptions] options
|
175
|
-
# Request-specific options
|
176
|
-
#
|
177
|
-
# @yield [result, err] Result & error if block supplied
|
178
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::ColumnList] parsed result object
|
179
|
-
# @yieldparam err [StandardError] error object if request failed
|
180
|
-
#
|
181
|
-
# @return [Google::Apis::FusiontablesV2::ColumnList]
|
182
|
-
#
|
183
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
-
def list_columns(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
187
|
-
command = make_simple_command(:get, 'tables/{tableId}/columns', options)
|
188
|
-
command.response_representation = Google::Apis::FusiontablesV2::ColumnList::Representation
|
189
|
-
command.response_class = Google::Apis::FusiontablesV2::ColumnList
|
190
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
191
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
192
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
193
|
-
command.query['fields'] = fields unless fields.nil?
|
194
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
195
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
196
|
-
execute_or_queue_command(command, &block)
|
197
|
-
end
|
198
|
-
|
199
|
-
# Updates the name or type of an existing column. This method supports patch
|
200
|
-
# semantics.
|
201
|
-
# @param [String] table_id
|
202
|
-
# Table for which the column is being updated.
|
203
|
-
# @param [String] column_id
|
204
|
-
# Name or identifier for the column that is being updated.
|
205
|
-
# @param [Google::Apis::FusiontablesV2::Column] column_object
|
206
|
-
# @param [String] fields
|
207
|
-
# Selector specifying which fields to include in a partial response.
|
208
|
-
# @param [String] quota_user
|
209
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
210
|
-
# characters.
|
211
|
-
# @param [String] user_ip
|
212
|
-
# Deprecated. Please use quotaUser instead.
|
213
|
-
# @param [Google::Apis::RequestOptions] options
|
214
|
-
# Request-specific options
|
215
|
-
#
|
216
|
-
# @yield [result, err] Result & error if block supplied
|
217
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Column] parsed result object
|
218
|
-
# @yieldparam err [StandardError] error object if request failed
|
219
|
-
#
|
220
|
-
# @return [Google::Apis::FusiontablesV2::Column]
|
221
|
-
#
|
222
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
223
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
224
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
225
|
-
def patch_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
226
|
-
command = make_simple_command(:patch, 'tables/{tableId}/columns/{columnId}', options)
|
227
|
-
command.request_representation = Google::Apis::FusiontablesV2::Column::Representation
|
228
|
-
command.request_object = column_object
|
229
|
-
command.response_representation = Google::Apis::FusiontablesV2::Column::Representation
|
230
|
-
command.response_class = Google::Apis::FusiontablesV2::Column
|
231
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
232
|
-
command.params['columnId'] = column_id unless column_id.nil?
|
233
|
-
command.query['fields'] = fields unless fields.nil?
|
234
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
235
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
236
|
-
execute_or_queue_command(command, &block)
|
237
|
-
end
|
238
|
-
|
239
|
-
# Updates the name or type of an existing column.
|
240
|
-
# @param [String] table_id
|
241
|
-
# Table for which the column is being updated.
|
242
|
-
# @param [String] column_id
|
243
|
-
# Name or identifier for the column that is being updated.
|
244
|
-
# @param [Google::Apis::FusiontablesV2::Column] column_object
|
245
|
-
# @param [String] fields
|
246
|
-
# Selector specifying which fields to include in a partial response.
|
247
|
-
# @param [String] quota_user
|
248
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
249
|
-
# characters.
|
250
|
-
# @param [String] user_ip
|
251
|
-
# Deprecated. Please use quotaUser instead.
|
252
|
-
# @param [Google::Apis::RequestOptions] options
|
253
|
-
# Request-specific options
|
254
|
-
#
|
255
|
-
# @yield [result, err] Result & error if block supplied
|
256
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Column] parsed result object
|
257
|
-
# @yieldparam err [StandardError] error object if request failed
|
258
|
-
#
|
259
|
-
# @return [Google::Apis::FusiontablesV2::Column]
|
260
|
-
#
|
261
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
262
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
263
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
264
|
-
def update_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
265
|
-
command = make_simple_command(:put, 'tables/{tableId}/columns/{columnId}', options)
|
266
|
-
command.request_representation = Google::Apis::FusiontablesV2::Column::Representation
|
267
|
-
command.request_object = column_object
|
268
|
-
command.response_representation = Google::Apis::FusiontablesV2::Column::Representation
|
269
|
-
command.response_class = Google::Apis::FusiontablesV2::Column
|
270
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
271
|
-
command.params['columnId'] = column_id unless column_id.nil?
|
272
|
-
command.query['fields'] = fields unless fields.nil?
|
273
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
274
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
275
|
-
execute_or_queue_command(command, &block)
|
276
|
-
end
|
277
|
-
|
278
|
-
# Executes a Fusion Tables SQL statement, which can be any of
|
279
|
-
# - SELECT
|
280
|
-
# - INSERT
|
281
|
-
# - UPDATE
|
282
|
-
# - DELETE
|
283
|
-
# - SHOW
|
284
|
-
# - DESCRIBE
|
285
|
-
# - CREATE statement.
|
286
|
-
# @param [String] sql
|
287
|
-
# A Fusion Tables SQL statement, which can be any of
|
288
|
-
# - SELECT
|
289
|
-
# - INSERT
|
290
|
-
# - UPDATE
|
291
|
-
# - DELETE
|
292
|
-
# - SHOW
|
293
|
-
# - DESCRIBE
|
294
|
-
# - CREATE
|
295
|
-
# @param [Boolean] hdrs
|
296
|
-
# Whether column names are included in the first row. Default is true.
|
297
|
-
# @param [Boolean] typed
|
298
|
-
# Whether typed values are returned in the (JSON) response: numbers for numeric
|
299
|
-
# values and parsed geometries for KML values. Default is true.
|
300
|
-
# @param [String] fields
|
301
|
-
# Selector specifying which fields to include in a partial response.
|
302
|
-
# @param [String] quota_user
|
303
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
304
|
-
# characters.
|
305
|
-
# @param [String] user_ip
|
306
|
-
# Deprecated. Please use quotaUser instead.
|
307
|
-
# @param [IO, String] download_dest
|
308
|
-
# IO stream or filename to receive content download
|
309
|
-
# @param [Google::Apis::RequestOptions] options
|
310
|
-
# Request-specific options
|
311
|
-
#
|
312
|
-
# @yield [result, err] Result & error if block supplied
|
313
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Sqlresponse] parsed result object
|
314
|
-
# @yieldparam err [StandardError] error object if request failed
|
315
|
-
#
|
316
|
-
# @return [Google::Apis::FusiontablesV2::Sqlresponse]
|
317
|
-
#
|
318
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
319
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
320
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
321
|
-
def sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
322
|
-
if download_dest.nil?
|
323
|
-
command = make_simple_command(:post, 'query', options)
|
324
|
-
else
|
325
|
-
command = make_download_command(:post, 'query', options)
|
326
|
-
command.download_dest = download_dest
|
327
|
-
end
|
328
|
-
command.response_representation = Google::Apis::FusiontablesV2::Sqlresponse::Representation
|
329
|
-
command.response_class = Google::Apis::FusiontablesV2::Sqlresponse
|
330
|
-
command.query['hdrs'] = hdrs unless hdrs.nil?
|
331
|
-
command.query['sql'] = sql unless sql.nil?
|
332
|
-
command.query['typed'] = typed unless typed.nil?
|
333
|
-
command.query['fields'] = fields unless fields.nil?
|
334
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
335
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
336
|
-
execute_or_queue_command(command, &block)
|
337
|
-
end
|
338
|
-
|
339
|
-
# Executes a SQL statement which can be any of
|
340
|
-
# - SELECT
|
341
|
-
# - SHOW
|
342
|
-
# - DESCRIBE
|
343
|
-
# @param [String] sql
|
344
|
-
# A SQL statement which can be any of
|
345
|
-
# - SELECT
|
346
|
-
# - SHOW
|
347
|
-
# - DESCRIBE
|
348
|
-
# @param [Boolean] hdrs
|
349
|
-
# Whether column names are included (in the first row). Default is true.
|
350
|
-
# @param [Boolean] typed
|
351
|
-
# Whether typed values are returned in the (JSON) response: numbers for numeric
|
352
|
-
# values and parsed geometries for KML values. Default is true.
|
353
|
-
# @param [String] fields
|
354
|
-
# Selector specifying which fields to include in a partial response.
|
355
|
-
# @param [String] quota_user
|
356
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
357
|
-
# characters.
|
358
|
-
# @param [String] user_ip
|
359
|
-
# Deprecated. Please use quotaUser instead.
|
360
|
-
# @param [IO, String] download_dest
|
361
|
-
# IO stream or filename to receive content download
|
362
|
-
# @param [Google::Apis::RequestOptions] options
|
363
|
-
# Request-specific options
|
364
|
-
#
|
365
|
-
# @yield [result, err] Result & error if block supplied
|
366
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Sqlresponse] parsed result object
|
367
|
-
# @yieldparam err [StandardError] error object if request failed
|
368
|
-
#
|
369
|
-
# @return [Google::Apis::FusiontablesV2::Sqlresponse]
|
370
|
-
#
|
371
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
372
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
373
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
374
|
-
def sql_query_get(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
375
|
-
if download_dest.nil?
|
376
|
-
command = make_simple_command(:get, 'query', options)
|
377
|
-
else
|
378
|
-
command = make_download_command(:get, 'query', options)
|
379
|
-
command.download_dest = download_dest
|
380
|
-
end
|
381
|
-
command.response_representation = Google::Apis::FusiontablesV2::Sqlresponse::Representation
|
382
|
-
command.response_class = Google::Apis::FusiontablesV2::Sqlresponse
|
383
|
-
command.query['hdrs'] = hdrs unless hdrs.nil?
|
384
|
-
command.query['sql'] = sql unless sql.nil?
|
385
|
-
command.query['typed'] = typed unless typed.nil?
|
386
|
-
command.query['fields'] = fields unless fields.nil?
|
387
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
388
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
389
|
-
execute_or_queue_command(command, &block)
|
390
|
-
end
|
391
|
-
|
392
|
-
# Deletes a style.
|
393
|
-
# @param [String] table_id
|
394
|
-
# Table from which the style is being deleted
|
395
|
-
# @param [Fixnum] style_id
|
396
|
-
# Identifier (within a table) for the style being deleted
|
397
|
-
# @param [String] fields
|
398
|
-
# Selector specifying which fields to include in a partial response.
|
399
|
-
# @param [String] quota_user
|
400
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
401
|
-
# characters.
|
402
|
-
# @param [String] user_ip
|
403
|
-
# Deprecated. Please use quotaUser instead.
|
404
|
-
# @param [Google::Apis::RequestOptions] options
|
405
|
-
# Request-specific options
|
406
|
-
#
|
407
|
-
# @yield [result, err] Result & error if block supplied
|
408
|
-
# @yieldparam result [NilClass] No result returned for this method
|
409
|
-
# @yieldparam err [StandardError] error object if request failed
|
410
|
-
#
|
411
|
-
# @return [void]
|
412
|
-
#
|
413
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
414
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
415
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
416
|
-
def delete_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
417
|
-
command = make_simple_command(:delete, 'tables/{tableId}/styles/{styleId}', options)
|
418
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
419
|
-
command.params['styleId'] = style_id unless style_id.nil?
|
420
|
-
command.query['fields'] = fields unless fields.nil?
|
421
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
422
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
423
|
-
execute_or_queue_command(command, &block)
|
424
|
-
end
|
425
|
-
|
426
|
-
# Gets a specific style.
|
427
|
-
# @param [String] table_id
|
428
|
-
# Table to which the requested style belongs
|
429
|
-
# @param [Fixnum] style_id
|
430
|
-
# Identifier (integer) for a specific style in a table
|
431
|
-
# @param [String] fields
|
432
|
-
# Selector specifying which fields to include in a partial response.
|
433
|
-
# @param [String] quota_user
|
434
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
435
|
-
# characters.
|
436
|
-
# @param [String] user_ip
|
437
|
-
# Deprecated. Please use quotaUser instead.
|
438
|
-
# @param [Google::Apis::RequestOptions] options
|
439
|
-
# Request-specific options
|
440
|
-
#
|
441
|
-
# @yield [result, err] Result & error if block supplied
|
442
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::StyleSetting] parsed result object
|
443
|
-
# @yieldparam err [StandardError] error object if request failed
|
444
|
-
#
|
445
|
-
# @return [Google::Apis::FusiontablesV2::StyleSetting]
|
446
|
-
#
|
447
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
448
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
449
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
450
|
-
def get_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
451
|
-
command = make_simple_command(:get, 'tables/{tableId}/styles/{styleId}', options)
|
452
|
-
command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation
|
453
|
-
command.response_class = Google::Apis::FusiontablesV2::StyleSetting
|
454
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
455
|
-
command.params['styleId'] = style_id unless style_id.nil?
|
456
|
-
command.query['fields'] = fields unless fields.nil?
|
457
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
458
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
459
|
-
execute_or_queue_command(command, &block)
|
460
|
-
end
|
461
|
-
|
462
|
-
# Adds a new style for the table.
|
463
|
-
# @param [String] table_id
|
464
|
-
# Table for which a new style is being added
|
465
|
-
# @param [Google::Apis::FusiontablesV2::StyleSetting] style_setting_object
|
466
|
-
# @param [String] fields
|
467
|
-
# Selector specifying which fields to include in a partial response.
|
468
|
-
# @param [String] quota_user
|
469
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
470
|
-
# characters.
|
471
|
-
# @param [String] user_ip
|
472
|
-
# Deprecated. Please use quotaUser instead.
|
473
|
-
# @param [Google::Apis::RequestOptions] options
|
474
|
-
# Request-specific options
|
475
|
-
#
|
476
|
-
# @yield [result, err] Result & error if block supplied
|
477
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::StyleSetting] parsed result object
|
478
|
-
# @yieldparam err [StandardError] error object if request failed
|
479
|
-
#
|
480
|
-
# @return [Google::Apis::FusiontablesV2::StyleSetting]
|
481
|
-
#
|
482
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
483
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
484
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
485
|
-
def insert_style(table_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
486
|
-
command = make_simple_command(:post, 'tables/{tableId}/styles', options)
|
487
|
-
command.request_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation
|
488
|
-
command.request_object = style_setting_object
|
489
|
-
command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation
|
490
|
-
command.response_class = Google::Apis::FusiontablesV2::StyleSetting
|
491
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
492
|
-
command.query['fields'] = fields unless fields.nil?
|
493
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
494
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
495
|
-
execute_or_queue_command(command, &block)
|
496
|
-
end
|
497
|
-
|
498
|
-
# Retrieves a list of styles.
|
499
|
-
# @param [String] table_id
|
500
|
-
# Table whose styles are being listed
|
501
|
-
# @param [Fixnum] max_results
|
502
|
-
# Maximum number of styles to return. Optional. Default is 5.
|
503
|
-
# @param [String] page_token
|
504
|
-
# Continuation token specifying which result page to return. Optional.
|
505
|
-
# @param [String] fields
|
506
|
-
# Selector specifying which fields to include in a partial response.
|
507
|
-
# @param [String] quota_user
|
508
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
509
|
-
# characters.
|
510
|
-
# @param [String] user_ip
|
511
|
-
# Deprecated. Please use quotaUser instead.
|
512
|
-
# @param [Google::Apis::RequestOptions] options
|
513
|
-
# Request-specific options
|
514
|
-
#
|
515
|
-
# @yield [result, err] Result & error if block supplied
|
516
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::StyleSettingList] parsed result object
|
517
|
-
# @yieldparam err [StandardError] error object if request failed
|
518
|
-
#
|
519
|
-
# @return [Google::Apis::FusiontablesV2::StyleSettingList]
|
520
|
-
#
|
521
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
522
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
523
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
524
|
-
def list_styles(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
525
|
-
command = make_simple_command(:get, 'tables/{tableId}/styles', options)
|
526
|
-
command.response_representation = Google::Apis::FusiontablesV2::StyleSettingList::Representation
|
527
|
-
command.response_class = Google::Apis::FusiontablesV2::StyleSettingList
|
528
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
529
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
530
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
531
|
-
command.query['fields'] = fields unless fields.nil?
|
532
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
533
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
534
|
-
execute_or_queue_command(command, &block)
|
535
|
-
end
|
536
|
-
|
537
|
-
# Updates an existing style. This method supports patch semantics.
|
538
|
-
# @param [String] table_id
|
539
|
-
# Table whose style is being updated.
|
540
|
-
# @param [Fixnum] style_id
|
541
|
-
# Identifier (within a table) for the style being updated.
|
542
|
-
# @param [Google::Apis::FusiontablesV2::StyleSetting] style_setting_object
|
543
|
-
# @param [String] fields
|
544
|
-
# Selector specifying which fields to include in a partial response.
|
545
|
-
# @param [String] quota_user
|
546
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
547
|
-
# characters.
|
548
|
-
# @param [String] user_ip
|
549
|
-
# Deprecated. Please use quotaUser instead.
|
550
|
-
# @param [Google::Apis::RequestOptions] options
|
551
|
-
# Request-specific options
|
552
|
-
#
|
553
|
-
# @yield [result, err] Result & error if block supplied
|
554
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::StyleSetting] parsed result object
|
555
|
-
# @yieldparam err [StandardError] error object if request failed
|
556
|
-
#
|
557
|
-
# @return [Google::Apis::FusiontablesV2::StyleSetting]
|
558
|
-
#
|
559
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
560
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
561
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
562
|
-
def patch_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
563
|
-
command = make_simple_command(:patch, 'tables/{tableId}/styles/{styleId}', options)
|
564
|
-
command.request_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation
|
565
|
-
command.request_object = style_setting_object
|
566
|
-
command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation
|
567
|
-
command.response_class = Google::Apis::FusiontablesV2::StyleSetting
|
568
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
569
|
-
command.params['styleId'] = style_id unless style_id.nil?
|
570
|
-
command.query['fields'] = fields unless fields.nil?
|
571
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
572
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
573
|
-
execute_or_queue_command(command, &block)
|
574
|
-
end
|
575
|
-
|
576
|
-
# Updates an existing style.
|
577
|
-
# @param [String] table_id
|
578
|
-
# Table whose style is being updated.
|
579
|
-
# @param [Fixnum] style_id
|
580
|
-
# Identifier (within a table) for the style being updated.
|
581
|
-
# @param [Google::Apis::FusiontablesV2::StyleSetting] style_setting_object
|
582
|
-
# @param [String] fields
|
583
|
-
# Selector specifying which fields to include in a partial response.
|
584
|
-
# @param [String] quota_user
|
585
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
586
|
-
# characters.
|
587
|
-
# @param [String] user_ip
|
588
|
-
# Deprecated. Please use quotaUser instead.
|
589
|
-
# @param [Google::Apis::RequestOptions] options
|
590
|
-
# Request-specific options
|
591
|
-
#
|
592
|
-
# @yield [result, err] Result & error if block supplied
|
593
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::StyleSetting] parsed result object
|
594
|
-
# @yieldparam err [StandardError] error object if request failed
|
595
|
-
#
|
596
|
-
# @return [Google::Apis::FusiontablesV2::StyleSetting]
|
597
|
-
#
|
598
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
599
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
600
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
601
|
-
def update_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
602
|
-
command = make_simple_command(:put, 'tables/{tableId}/styles/{styleId}', options)
|
603
|
-
command.request_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation
|
604
|
-
command.request_object = style_setting_object
|
605
|
-
command.response_representation = Google::Apis::FusiontablesV2::StyleSetting::Representation
|
606
|
-
command.response_class = Google::Apis::FusiontablesV2::StyleSetting
|
607
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
608
|
-
command.params['styleId'] = style_id unless style_id.nil?
|
609
|
-
command.query['fields'] = fields unless fields.nil?
|
610
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
611
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
612
|
-
execute_or_queue_command(command, &block)
|
613
|
-
end
|
614
|
-
|
615
|
-
# Copies a table.
|
616
|
-
# @param [String] table_id
|
617
|
-
# ID of the table that is being copied.
|
618
|
-
# @param [Boolean] copy_presentation
|
619
|
-
# Whether to also copy tabs, styles, and templates. Default is false.
|
620
|
-
# @param [String] fields
|
621
|
-
# Selector specifying which fields to include in a partial response.
|
622
|
-
# @param [String] quota_user
|
623
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
624
|
-
# characters.
|
625
|
-
# @param [String] user_ip
|
626
|
-
# Deprecated. Please use quotaUser instead.
|
627
|
-
# @param [Google::Apis::RequestOptions] options
|
628
|
-
# Request-specific options
|
629
|
-
#
|
630
|
-
# @yield [result, err] Result & error if block supplied
|
631
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Table] parsed result object
|
632
|
-
# @yieldparam err [StandardError] error object if request failed
|
633
|
-
#
|
634
|
-
# @return [Google::Apis::FusiontablesV2::Table]
|
635
|
-
#
|
636
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
637
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
638
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
639
|
-
def copy_table(table_id, copy_presentation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
640
|
-
command = make_simple_command(:post, 'tables/{tableId}/copy', options)
|
641
|
-
command.response_representation = Google::Apis::FusiontablesV2::Table::Representation
|
642
|
-
command.response_class = Google::Apis::FusiontablesV2::Table
|
643
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
644
|
-
command.query['copyPresentation'] = copy_presentation unless copy_presentation.nil?
|
645
|
-
command.query['fields'] = fields unless fields.nil?
|
646
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
647
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
648
|
-
execute_or_queue_command(command, &block)
|
649
|
-
end
|
650
|
-
|
651
|
-
# Deletes a table.
|
652
|
-
# @param [String] table_id
|
653
|
-
# ID of the table to be deleted.
|
654
|
-
# @param [String] fields
|
655
|
-
# Selector specifying which fields to include in a partial response.
|
656
|
-
# @param [String] quota_user
|
657
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
658
|
-
# characters.
|
659
|
-
# @param [String] user_ip
|
660
|
-
# Deprecated. Please use quotaUser instead.
|
661
|
-
# @param [Google::Apis::RequestOptions] options
|
662
|
-
# Request-specific options
|
663
|
-
#
|
664
|
-
# @yield [result, err] Result & error if block supplied
|
665
|
-
# @yieldparam result [NilClass] No result returned for this method
|
666
|
-
# @yieldparam err [StandardError] error object if request failed
|
667
|
-
#
|
668
|
-
# @return [void]
|
669
|
-
#
|
670
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
671
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
672
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
673
|
-
def delete_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
674
|
-
command = make_simple_command(:delete, 'tables/{tableId}', options)
|
675
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
676
|
-
command.query['fields'] = fields unless fields.nil?
|
677
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
678
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
679
|
-
execute_or_queue_command(command, &block)
|
680
|
-
end
|
681
|
-
|
682
|
-
# Retrieves a specific table by its ID.
|
683
|
-
# @param [String] table_id
|
684
|
-
# Identifier for the table being requested.
|
685
|
-
# @param [String] fields
|
686
|
-
# Selector specifying which fields to include in a partial response.
|
687
|
-
# @param [String] quota_user
|
688
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
689
|
-
# characters.
|
690
|
-
# @param [String] user_ip
|
691
|
-
# Deprecated. Please use quotaUser instead.
|
692
|
-
# @param [Google::Apis::RequestOptions] options
|
693
|
-
# Request-specific options
|
694
|
-
#
|
695
|
-
# @yield [result, err] Result & error if block supplied
|
696
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Table] parsed result object
|
697
|
-
# @yieldparam err [StandardError] error object if request failed
|
698
|
-
#
|
699
|
-
# @return [Google::Apis::FusiontablesV2::Table]
|
700
|
-
#
|
701
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
702
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
703
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
704
|
-
def get_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
705
|
-
command = make_simple_command(:get, 'tables/{tableId}', options)
|
706
|
-
command.response_representation = Google::Apis::FusiontablesV2::Table::Representation
|
707
|
-
command.response_class = Google::Apis::FusiontablesV2::Table
|
708
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
709
|
-
command.query['fields'] = fields unless fields.nil?
|
710
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
711
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
712
|
-
execute_or_queue_command(command, &block)
|
713
|
-
end
|
714
|
-
|
715
|
-
# Imports more rows into a table.
|
716
|
-
# @param [String] table_id
|
717
|
-
# The table into which new rows are being imported.
|
718
|
-
# @param [String] delimiter
|
719
|
-
# The delimiter used to separate cell values. This can only consist of a single
|
720
|
-
# character. Default is ,.
|
721
|
-
# @param [String] encoding
|
722
|
-
# The encoding of the content. Default is UTF-8. Use auto-detect if you are
|
723
|
-
# unsure of the encoding.
|
724
|
-
# @param [Fixnum] end_line
|
725
|
-
# The index of the line up to which data will be imported. Default is to import
|
726
|
-
# the entire file. If endLine is negative, it is an offset from the end of the
|
727
|
-
# file; the imported content will exclude the last endLine lines.
|
728
|
-
# @param [Boolean] is_strict
|
729
|
-
# Whether the imported CSV must have the same number of values for each row. If
|
730
|
-
# false, rows with fewer values will be padded with empty values. Default is
|
731
|
-
# true.
|
732
|
-
# @param [Fixnum] start_line
|
733
|
-
# The index of the first line from which to start importing, inclusive. Default
|
734
|
-
# is 0.
|
735
|
-
# @param [String] fields
|
736
|
-
# Selector specifying which fields to include in a partial response.
|
737
|
-
# @param [String] quota_user
|
738
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
739
|
-
# characters.
|
740
|
-
# @param [String] user_ip
|
741
|
-
# Deprecated. Please use quotaUser instead.
|
742
|
-
# @param [IO, String] upload_source
|
743
|
-
# IO stream or filename containing content to upload
|
744
|
-
# @param [String] content_type
|
745
|
-
# Content type of the uploaded content.
|
746
|
-
# @param [Google::Apis::RequestOptions] options
|
747
|
-
# Request-specific options
|
748
|
-
#
|
749
|
-
# @yield [result, err] Result & error if block supplied
|
750
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Import] parsed result object
|
751
|
-
# @yieldparam err [StandardError] error object if request failed
|
752
|
-
#
|
753
|
-
# @return [Google::Apis::FusiontablesV2::Import]
|
754
|
-
#
|
755
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
756
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
757
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
759
|
-
if upload_source.nil?
|
760
|
-
command = make_simple_command(:post, 'tables/{tableId}/import', options)
|
761
|
-
else
|
762
|
-
command = make_upload_command(:post, 'tables/{tableId}/import', options)
|
763
|
-
command.upload_source = upload_source
|
764
|
-
command.upload_content_type = content_type
|
765
|
-
end
|
766
|
-
command.response_representation = Google::Apis::FusiontablesV2::Import::Representation
|
767
|
-
command.response_class = Google::Apis::FusiontablesV2::Import
|
768
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
769
|
-
command.query['delimiter'] = delimiter unless delimiter.nil?
|
770
|
-
command.query['encoding'] = encoding unless encoding.nil?
|
771
|
-
command.query['endLine'] = end_line unless end_line.nil?
|
772
|
-
command.query['isStrict'] = is_strict unless is_strict.nil?
|
773
|
-
command.query['startLine'] = start_line unless start_line.nil?
|
774
|
-
command.query['fields'] = fields unless fields.nil?
|
775
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
776
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
777
|
-
execute_or_queue_command(command, &block)
|
778
|
-
end
|
779
|
-
|
780
|
-
# Imports a new table.
|
781
|
-
# @param [String] name
|
782
|
-
# The name to be assigned to the new table.
|
783
|
-
# @param [String] delimiter
|
784
|
-
# The delimiter used to separate cell values. This can only consist of a single
|
785
|
-
# character. Default is ,.
|
786
|
-
# @param [String] encoding
|
787
|
-
# The encoding of the content. Default is UTF-8. Use auto-detect if you are
|
788
|
-
# unsure of the encoding.
|
789
|
-
# @param [String] fields
|
790
|
-
# Selector specifying which fields to include in a partial response.
|
791
|
-
# @param [String] quota_user
|
792
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
793
|
-
# characters.
|
794
|
-
# @param [String] user_ip
|
795
|
-
# Deprecated. Please use quotaUser instead.
|
796
|
-
# @param [IO, String] upload_source
|
797
|
-
# IO stream or filename containing content to upload
|
798
|
-
# @param [String] content_type
|
799
|
-
# Content type of the uploaded content.
|
800
|
-
# @param [Google::Apis::RequestOptions] options
|
801
|
-
# Request-specific options
|
802
|
-
#
|
803
|
-
# @yield [result, err] Result & error if block supplied
|
804
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Table] parsed result object
|
805
|
-
# @yieldparam err [StandardError] error object if request failed
|
806
|
-
#
|
807
|
-
# @return [Google::Apis::FusiontablesV2::Table]
|
808
|
-
#
|
809
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
810
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
811
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
813
|
-
if upload_source.nil?
|
814
|
-
command = make_simple_command(:post, 'tables/import', options)
|
815
|
-
else
|
816
|
-
command = make_upload_command(:post, 'tables/import', options)
|
817
|
-
command.upload_source = upload_source
|
818
|
-
command.upload_content_type = content_type
|
819
|
-
end
|
820
|
-
command.response_representation = Google::Apis::FusiontablesV2::Table::Representation
|
821
|
-
command.response_class = Google::Apis::FusiontablesV2::Table
|
822
|
-
command.query['delimiter'] = delimiter unless delimiter.nil?
|
823
|
-
command.query['encoding'] = encoding unless encoding.nil?
|
824
|
-
command.query['name'] = name unless name.nil?
|
825
|
-
command.query['fields'] = fields unless fields.nil?
|
826
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
827
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
828
|
-
execute_or_queue_command(command, &block)
|
829
|
-
end
|
830
|
-
|
831
|
-
# Creates a new table.
|
832
|
-
# @param [Google::Apis::FusiontablesV2::Table] table_object
|
833
|
-
# @param [String] fields
|
834
|
-
# Selector specifying which fields to include in a partial response.
|
835
|
-
# @param [String] quota_user
|
836
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
837
|
-
# characters.
|
838
|
-
# @param [String] user_ip
|
839
|
-
# Deprecated. Please use quotaUser instead.
|
840
|
-
# @param [Google::Apis::RequestOptions] options
|
841
|
-
# Request-specific options
|
842
|
-
#
|
843
|
-
# @yield [result, err] Result & error if block supplied
|
844
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Table] parsed result object
|
845
|
-
# @yieldparam err [StandardError] error object if request failed
|
846
|
-
#
|
847
|
-
# @return [Google::Apis::FusiontablesV2::Table]
|
848
|
-
#
|
849
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
850
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
851
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
852
|
-
def insert_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
853
|
-
command = make_simple_command(:post, 'tables', options)
|
854
|
-
command.request_representation = Google::Apis::FusiontablesV2::Table::Representation
|
855
|
-
command.request_object = table_object
|
856
|
-
command.response_representation = Google::Apis::FusiontablesV2::Table::Representation
|
857
|
-
command.response_class = Google::Apis::FusiontablesV2::Table
|
858
|
-
command.query['fields'] = fields unless fields.nil?
|
859
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
860
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
861
|
-
execute_or_queue_command(command, &block)
|
862
|
-
end
|
863
|
-
|
864
|
-
# Retrieves a list of tables a user owns.
|
865
|
-
# @param [Fixnum] max_results
|
866
|
-
# Maximum number of tables to return. Default is 5.
|
867
|
-
# @param [String] page_token
|
868
|
-
# Continuation token specifying which result page to return.
|
869
|
-
# @param [String] fields
|
870
|
-
# Selector specifying which fields to include in a partial response.
|
871
|
-
# @param [String] quota_user
|
872
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
873
|
-
# characters.
|
874
|
-
# @param [String] user_ip
|
875
|
-
# Deprecated. Please use quotaUser instead.
|
876
|
-
# @param [Google::Apis::RequestOptions] options
|
877
|
-
# Request-specific options
|
878
|
-
#
|
879
|
-
# @yield [result, err] Result & error if block supplied
|
880
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::TableList] parsed result object
|
881
|
-
# @yieldparam err [StandardError] error object if request failed
|
882
|
-
#
|
883
|
-
# @return [Google::Apis::FusiontablesV2::TableList]
|
884
|
-
#
|
885
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
886
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
887
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
888
|
-
def list_tables(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
889
|
-
command = make_simple_command(:get, 'tables', options)
|
890
|
-
command.response_representation = Google::Apis::FusiontablesV2::TableList::Representation
|
891
|
-
command.response_class = Google::Apis::FusiontablesV2::TableList
|
892
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
893
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
894
|
-
command.query['fields'] = fields unless fields.nil?
|
895
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
896
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
897
|
-
execute_or_queue_command(command, &block)
|
898
|
-
end
|
899
|
-
|
900
|
-
# Updates an existing table. Unless explicitly requested, only the name,
|
901
|
-
# description, and attribution will be updated. This method supports patch
|
902
|
-
# semantics.
|
903
|
-
# @param [String] table_id
|
904
|
-
# ID of the table that is being updated.
|
905
|
-
# @param [Google::Apis::FusiontablesV2::Table] table_object
|
906
|
-
# @param [Boolean] replace_view_definition
|
907
|
-
# Whether the view definition is also updated. The specified view definition
|
908
|
-
# replaces the existing one. Only a view can be updated with a new definition.
|
909
|
-
# @param [String] fields
|
910
|
-
# Selector specifying which fields to include in a partial response.
|
911
|
-
# @param [String] quota_user
|
912
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
913
|
-
# characters.
|
914
|
-
# @param [String] user_ip
|
915
|
-
# Deprecated. Please use quotaUser instead.
|
916
|
-
# @param [Google::Apis::RequestOptions] options
|
917
|
-
# Request-specific options
|
918
|
-
#
|
919
|
-
# @yield [result, err] Result & error if block supplied
|
920
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Table] parsed result object
|
921
|
-
# @yieldparam err [StandardError] error object if request failed
|
922
|
-
#
|
923
|
-
# @return [Google::Apis::FusiontablesV2::Table]
|
924
|
-
#
|
925
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
926
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
927
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
928
|
-
def patch_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
929
|
-
command = make_simple_command(:patch, 'tables/{tableId}', options)
|
930
|
-
command.request_representation = Google::Apis::FusiontablesV2::Table::Representation
|
931
|
-
command.request_object = table_object
|
932
|
-
command.response_representation = Google::Apis::FusiontablesV2::Table::Representation
|
933
|
-
command.response_class = Google::Apis::FusiontablesV2::Table
|
934
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
935
|
-
command.query['replaceViewDefinition'] = replace_view_definition unless replace_view_definition.nil?
|
936
|
-
command.query['fields'] = fields unless fields.nil?
|
937
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
938
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
939
|
-
execute_or_queue_command(command, &block)
|
940
|
-
end
|
941
|
-
|
942
|
-
# Replaces rows of the table with the rows of the spreadsheet that is first
|
943
|
-
# imported from. Current rows remain visible until all replacement rows are
|
944
|
-
# ready.
|
945
|
-
# @param [String] table_id
|
946
|
-
# Table whose rows will be replaced from the spreadsheet.
|
947
|
-
# @param [String] fields
|
948
|
-
# Selector specifying which fields to include in a partial response.
|
949
|
-
# @param [String] quota_user
|
950
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
951
|
-
# characters.
|
952
|
-
# @param [String] user_ip
|
953
|
-
# Deprecated. Please use quotaUser instead.
|
954
|
-
# @param [Google::Apis::RequestOptions] options
|
955
|
-
# Request-specific options
|
956
|
-
#
|
957
|
-
# @yield [result, err] Result & error if block supplied
|
958
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Task] parsed result object
|
959
|
-
# @yieldparam err [StandardError] error object if request failed
|
960
|
-
#
|
961
|
-
# @return [Google::Apis::FusiontablesV2::Task]
|
962
|
-
#
|
963
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
964
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
965
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
966
|
-
def refetch_table_sheet(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
967
|
-
command = make_simple_command(:post, 'tables/{tableId}/refetch', options)
|
968
|
-
command.response_representation = Google::Apis::FusiontablesV2::Task::Representation
|
969
|
-
command.response_class = Google::Apis::FusiontablesV2::Task
|
970
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
971
|
-
command.query['fields'] = fields unless fields.nil?
|
972
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
973
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
974
|
-
execute_or_queue_command(command, &block)
|
975
|
-
end
|
976
|
-
|
977
|
-
# Replaces rows of an existing table. Current rows remain visible until all
|
978
|
-
# replacement rows are ready.
|
979
|
-
# @param [String] table_id
|
980
|
-
# Table whose rows will be replaced.
|
981
|
-
# @param [String] delimiter
|
982
|
-
# The delimiter used to separate cell values. This can only consist of a single
|
983
|
-
# character. Default is ,.
|
984
|
-
# @param [String] encoding
|
985
|
-
# The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are
|
986
|
-
# unsure of the encoding.
|
987
|
-
# @param [Fixnum] end_line
|
988
|
-
# The index of the line up to which data will be imported. Default is to import
|
989
|
-
# the entire file. If endLine is negative, it is an offset from the end of the
|
990
|
-
# file; the imported content will exclude the last endLine lines.
|
991
|
-
# @param [Boolean] is_strict
|
992
|
-
# Whether the imported CSV must have the same number of column values for each
|
993
|
-
# row. If true, throws an exception if the CSV does not have the same number of
|
994
|
-
# columns. If false, rows with fewer column values will be padded with empty
|
995
|
-
# values. Default is true.
|
996
|
-
# @param [Fixnum] start_line
|
997
|
-
# The index of the first line from which to start importing, inclusive. Default
|
998
|
-
# is 0.
|
999
|
-
# @param [String] fields
|
1000
|
-
# Selector specifying which fields to include in a partial response.
|
1001
|
-
# @param [String] quota_user
|
1002
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1003
|
-
# characters.
|
1004
|
-
# @param [String] user_ip
|
1005
|
-
# Deprecated. Please use quotaUser instead.
|
1006
|
-
# @param [IO, String] upload_source
|
1007
|
-
# IO stream or filename containing content to upload
|
1008
|
-
# @param [String] content_type
|
1009
|
-
# Content type of the uploaded content.
|
1010
|
-
# @param [Google::Apis::RequestOptions] options
|
1011
|
-
# Request-specific options
|
1012
|
-
#
|
1013
|
-
# @yield [result, err] Result & error if block supplied
|
1014
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Task] parsed result object
|
1015
|
-
# @yieldparam err [StandardError] error object if request failed
|
1016
|
-
#
|
1017
|
-
# @return [Google::Apis::FusiontablesV2::Task]
|
1018
|
-
#
|
1019
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1020
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1021
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
1023
|
-
if upload_source.nil?
|
1024
|
-
command = make_simple_command(:post, 'tables/{tableId}/replace', options)
|
1025
|
-
else
|
1026
|
-
command = make_upload_command(:post, 'tables/{tableId}/replace', options)
|
1027
|
-
command.upload_source = upload_source
|
1028
|
-
command.upload_content_type = content_type
|
1029
|
-
end
|
1030
|
-
command.response_representation = Google::Apis::FusiontablesV2::Task::Representation
|
1031
|
-
command.response_class = Google::Apis::FusiontablesV2::Task
|
1032
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1033
|
-
command.query['delimiter'] = delimiter unless delimiter.nil?
|
1034
|
-
command.query['encoding'] = encoding unless encoding.nil?
|
1035
|
-
command.query['endLine'] = end_line unless end_line.nil?
|
1036
|
-
command.query['isStrict'] = is_strict unless is_strict.nil?
|
1037
|
-
command.query['startLine'] = start_line unless start_line.nil?
|
1038
|
-
command.query['fields'] = fields unless fields.nil?
|
1039
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1040
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1041
|
-
execute_or_queue_command(command, &block)
|
1042
|
-
end
|
1043
|
-
|
1044
|
-
# Updates an existing table. Unless explicitly requested, only the name,
|
1045
|
-
# description, and attribution will be updated.
|
1046
|
-
# @param [String] table_id
|
1047
|
-
# ID of the table that is being updated.
|
1048
|
-
# @param [Google::Apis::FusiontablesV2::Table] table_object
|
1049
|
-
# @param [Boolean] replace_view_definition
|
1050
|
-
# Whether the view definition is also updated. The specified view definition
|
1051
|
-
# replaces the existing one. Only a view can be updated with a new definition.
|
1052
|
-
# @param [String] fields
|
1053
|
-
# Selector specifying which fields to include in a partial response.
|
1054
|
-
# @param [String] quota_user
|
1055
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1056
|
-
# characters.
|
1057
|
-
# @param [String] user_ip
|
1058
|
-
# Deprecated. Please use quotaUser instead.
|
1059
|
-
# @param [Google::Apis::RequestOptions] options
|
1060
|
-
# Request-specific options
|
1061
|
-
#
|
1062
|
-
# @yield [result, err] Result & error if block supplied
|
1063
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Table] parsed result object
|
1064
|
-
# @yieldparam err [StandardError] error object if request failed
|
1065
|
-
#
|
1066
|
-
# @return [Google::Apis::FusiontablesV2::Table]
|
1067
|
-
#
|
1068
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1069
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1070
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1071
|
-
def update_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1072
|
-
command = make_simple_command(:put, 'tables/{tableId}', options)
|
1073
|
-
command.request_representation = Google::Apis::FusiontablesV2::Table::Representation
|
1074
|
-
command.request_object = table_object
|
1075
|
-
command.response_representation = Google::Apis::FusiontablesV2::Table::Representation
|
1076
|
-
command.response_class = Google::Apis::FusiontablesV2::Table
|
1077
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1078
|
-
command.query['replaceViewDefinition'] = replace_view_definition unless replace_view_definition.nil?
|
1079
|
-
command.query['fields'] = fields unless fields.nil?
|
1080
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1081
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1082
|
-
execute_or_queue_command(command, &block)
|
1083
|
-
end
|
1084
|
-
|
1085
|
-
# Deletes a specific task by its ID, unless that task has already started
|
1086
|
-
# running.
|
1087
|
-
# @param [String] table_id
|
1088
|
-
# Table from which the task is being deleted.
|
1089
|
-
# @param [String] task_id
|
1090
|
-
# The identifier of the task to delete.
|
1091
|
-
# @param [String] fields
|
1092
|
-
# Selector specifying which fields to include in a partial response.
|
1093
|
-
# @param [String] quota_user
|
1094
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1095
|
-
# characters.
|
1096
|
-
# @param [String] user_ip
|
1097
|
-
# Deprecated. Please use quotaUser instead.
|
1098
|
-
# @param [Google::Apis::RequestOptions] options
|
1099
|
-
# Request-specific options
|
1100
|
-
#
|
1101
|
-
# @yield [result, err] Result & error if block supplied
|
1102
|
-
# @yieldparam result [NilClass] No result returned for this method
|
1103
|
-
# @yieldparam err [StandardError] error object if request failed
|
1104
|
-
#
|
1105
|
-
# @return [void]
|
1106
|
-
#
|
1107
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1108
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1109
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1110
|
-
def delete_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1111
|
-
command = make_simple_command(:delete, 'tables/{tableId}/tasks/{taskId}', options)
|
1112
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1113
|
-
command.params['taskId'] = task_id unless task_id.nil?
|
1114
|
-
command.query['fields'] = fields unless fields.nil?
|
1115
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1116
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1117
|
-
execute_or_queue_command(command, &block)
|
1118
|
-
end
|
1119
|
-
|
1120
|
-
# Retrieves a specific task by its ID.
|
1121
|
-
# @param [String] table_id
|
1122
|
-
# Table to which the task belongs.
|
1123
|
-
# @param [String] task_id
|
1124
|
-
# The identifier of the task to get.
|
1125
|
-
# @param [String] fields
|
1126
|
-
# Selector specifying which fields to include in a partial response.
|
1127
|
-
# @param [String] quota_user
|
1128
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1129
|
-
# characters.
|
1130
|
-
# @param [String] user_ip
|
1131
|
-
# Deprecated. Please use quotaUser instead.
|
1132
|
-
# @param [Google::Apis::RequestOptions] options
|
1133
|
-
# Request-specific options
|
1134
|
-
#
|
1135
|
-
# @yield [result, err] Result & error if block supplied
|
1136
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Task] parsed result object
|
1137
|
-
# @yieldparam err [StandardError] error object if request failed
|
1138
|
-
#
|
1139
|
-
# @return [Google::Apis::FusiontablesV2::Task]
|
1140
|
-
#
|
1141
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1142
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1143
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1144
|
-
def get_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1145
|
-
command = make_simple_command(:get, 'tables/{tableId}/tasks/{taskId}', options)
|
1146
|
-
command.response_representation = Google::Apis::FusiontablesV2::Task::Representation
|
1147
|
-
command.response_class = Google::Apis::FusiontablesV2::Task
|
1148
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1149
|
-
command.params['taskId'] = task_id unless task_id.nil?
|
1150
|
-
command.query['fields'] = fields unless fields.nil?
|
1151
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1152
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1153
|
-
execute_or_queue_command(command, &block)
|
1154
|
-
end
|
1155
|
-
|
1156
|
-
# Retrieves a list of tasks.
|
1157
|
-
# @param [String] table_id
|
1158
|
-
# Table whose tasks are being listed.
|
1159
|
-
# @param [Fixnum] max_results
|
1160
|
-
# Maximum number of tasks to return. Default is 5.
|
1161
|
-
# @param [String] page_token
|
1162
|
-
# Continuation token specifying which result page to return.
|
1163
|
-
# @param [Fixnum] start_index
|
1164
|
-
# Index of the first result returned in the current page.
|
1165
|
-
# @param [String] fields
|
1166
|
-
# Selector specifying which fields to include in a partial response.
|
1167
|
-
# @param [String] quota_user
|
1168
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1169
|
-
# characters.
|
1170
|
-
# @param [String] user_ip
|
1171
|
-
# Deprecated. Please use quotaUser instead.
|
1172
|
-
# @param [Google::Apis::RequestOptions] options
|
1173
|
-
# Request-specific options
|
1174
|
-
#
|
1175
|
-
# @yield [result, err] Result & error if block supplied
|
1176
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::TaskList] parsed result object
|
1177
|
-
# @yieldparam err [StandardError] error object if request failed
|
1178
|
-
#
|
1179
|
-
# @return [Google::Apis::FusiontablesV2::TaskList]
|
1180
|
-
#
|
1181
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1182
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1183
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
1185
|
-
command = make_simple_command(:get, 'tables/{tableId}/tasks', options)
|
1186
|
-
command.response_representation = Google::Apis::FusiontablesV2::TaskList::Representation
|
1187
|
-
command.response_class = Google::Apis::FusiontablesV2::TaskList
|
1188
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1189
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
1190
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1191
|
-
command.query['startIndex'] = start_index unless start_index.nil?
|
1192
|
-
command.query['fields'] = fields unless fields.nil?
|
1193
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1194
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1195
|
-
execute_or_queue_command(command, &block)
|
1196
|
-
end
|
1197
|
-
|
1198
|
-
# Deletes a template
|
1199
|
-
# @param [String] table_id
|
1200
|
-
# Table from which the template is being deleted
|
1201
|
-
# @param [Fixnum] template_id
|
1202
|
-
# Identifier for the template which is being deleted
|
1203
|
-
# @param [String] fields
|
1204
|
-
# Selector specifying which fields to include in a partial response.
|
1205
|
-
# @param [String] quota_user
|
1206
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1207
|
-
# characters.
|
1208
|
-
# @param [String] user_ip
|
1209
|
-
# Deprecated. Please use quotaUser instead.
|
1210
|
-
# @param [Google::Apis::RequestOptions] options
|
1211
|
-
# Request-specific options
|
1212
|
-
#
|
1213
|
-
# @yield [result, err] Result & error if block supplied
|
1214
|
-
# @yieldparam result [NilClass] No result returned for this method
|
1215
|
-
# @yieldparam err [StandardError] error object if request failed
|
1216
|
-
#
|
1217
|
-
# @return [void]
|
1218
|
-
#
|
1219
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1220
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1221
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1222
|
-
def delete_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1223
|
-
command = make_simple_command(:delete, 'tables/{tableId}/templates/{templateId}', options)
|
1224
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1225
|
-
command.params['templateId'] = template_id unless template_id.nil?
|
1226
|
-
command.query['fields'] = fields unless fields.nil?
|
1227
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1228
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1229
|
-
execute_or_queue_command(command, &block)
|
1230
|
-
end
|
1231
|
-
|
1232
|
-
# Retrieves a specific template by its id
|
1233
|
-
# @param [String] table_id
|
1234
|
-
# Table to which the template belongs
|
1235
|
-
# @param [Fixnum] template_id
|
1236
|
-
# Identifier for the template that is being requested
|
1237
|
-
# @param [String] fields
|
1238
|
-
# Selector specifying which fields to include in a partial response.
|
1239
|
-
# @param [String] quota_user
|
1240
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1241
|
-
# characters.
|
1242
|
-
# @param [String] user_ip
|
1243
|
-
# Deprecated. Please use quotaUser instead.
|
1244
|
-
# @param [Google::Apis::RequestOptions] options
|
1245
|
-
# Request-specific options
|
1246
|
-
#
|
1247
|
-
# @yield [result, err] Result & error if block supplied
|
1248
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Template] parsed result object
|
1249
|
-
# @yieldparam err [StandardError] error object if request failed
|
1250
|
-
#
|
1251
|
-
# @return [Google::Apis::FusiontablesV2::Template]
|
1252
|
-
#
|
1253
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1254
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1255
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1256
|
-
def get_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1257
|
-
command = make_simple_command(:get, 'tables/{tableId}/templates/{templateId}', options)
|
1258
|
-
command.response_representation = Google::Apis::FusiontablesV2::Template::Representation
|
1259
|
-
command.response_class = Google::Apis::FusiontablesV2::Template
|
1260
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1261
|
-
command.params['templateId'] = template_id unless template_id.nil?
|
1262
|
-
command.query['fields'] = fields unless fields.nil?
|
1263
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1264
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1265
|
-
execute_or_queue_command(command, &block)
|
1266
|
-
end
|
1267
|
-
|
1268
|
-
# Creates a new template for the table.
|
1269
|
-
# @param [String] table_id
|
1270
|
-
# Table for which a new template is being created
|
1271
|
-
# @param [Google::Apis::FusiontablesV2::Template] template_object
|
1272
|
-
# @param [String] fields
|
1273
|
-
# Selector specifying which fields to include in a partial response.
|
1274
|
-
# @param [String] quota_user
|
1275
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1276
|
-
# characters.
|
1277
|
-
# @param [String] user_ip
|
1278
|
-
# Deprecated. Please use quotaUser instead.
|
1279
|
-
# @param [Google::Apis::RequestOptions] options
|
1280
|
-
# Request-specific options
|
1281
|
-
#
|
1282
|
-
# @yield [result, err] Result & error if block supplied
|
1283
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Template] parsed result object
|
1284
|
-
# @yieldparam err [StandardError] error object if request failed
|
1285
|
-
#
|
1286
|
-
# @return [Google::Apis::FusiontablesV2::Template]
|
1287
|
-
#
|
1288
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1289
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1290
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1291
|
-
def insert_template(table_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1292
|
-
command = make_simple_command(:post, 'tables/{tableId}/templates', options)
|
1293
|
-
command.request_representation = Google::Apis::FusiontablesV2::Template::Representation
|
1294
|
-
command.request_object = template_object
|
1295
|
-
command.response_representation = Google::Apis::FusiontablesV2::Template::Representation
|
1296
|
-
command.response_class = Google::Apis::FusiontablesV2::Template
|
1297
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1298
|
-
command.query['fields'] = fields unless fields.nil?
|
1299
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1300
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1301
|
-
execute_or_queue_command(command, &block)
|
1302
|
-
end
|
1303
|
-
|
1304
|
-
# Retrieves a list of templates.
|
1305
|
-
# @param [String] table_id
|
1306
|
-
# Identifier for the table whose templates are being requested
|
1307
|
-
# @param [Fixnum] max_results
|
1308
|
-
# Maximum number of templates to return. Optional. Default is 5.
|
1309
|
-
# @param [String] page_token
|
1310
|
-
# Continuation token specifying which results page to return. Optional.
|
1311
|
-
# @param [String] fields
|
1312
|
-
# Selector specifying which fields to include in a partial response.
|
1313
|
-
# @param [String] quota_user
|
1314
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1315
|
-
# characters.
|
1316
|
-
# @param [String] user_ip
|
1317
|
-
# Deprecated. Please use quotaUser instead.
|
1318
|
-
# @param [Google::Apis::RequestOptions] options
|
1319
|
-
# Request-specific options
|
1320
|
-
#
|
1321
|
-
# @yield [result, err] Result & error if block supplied
|
1322
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::TemplateList] parsed result object
|
1323
|
-
# @yieldparam err [StandardError] error object if request failed
|
1324
|
-
#
|
1325
|
-
# @return [Google::Apis::FusiontablesV2::TemplateList]
|
1326
|
-
#
|
1327
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1328
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1329
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1330
|
-
def list_templates(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1331
|
-
command = make_simple_command(:get, 'tables/{tableId}/templates', options)
|
1332
|
-
command.response_representation = Google::Apis::FusiontablesV2::TemplateList::Representation
|
1333
|
-
command.response_class = Google::Apis::FusiontablesV2::TemplateList
|
1334
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1335
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
1336
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1337
|
-
command.query['fields'] = fields unless fields.nil?
|
1338
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1339
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1340
|
-
execute_or_queue_command(command, &block)
|
1341
|
-
end
|
1342
|
-
|
1343
|
-
# Updates an existing template. This method supports patch semantics.
|
1344
|
-
# @param [String] table_id
|
1345
|
-
# Table to which the updated template belongs
|
1346
|
-
# @param [Fixnum] template_id
|
1347
|
-
# Identifier for the template that is being updated
|
1348
|
-
# @param [Google::Apis::FusiontablesV2::Template] template_object
|
1349
|
-
# @param [String] fields
|
1350
|
-
# Selector specifying which fields to include in a partial response.
|
1351
|
-
# @param [String] quota_user
|
1352
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1353
|
-
# characters.
|
1354
|
-
# @param [String] user_ip
|
1355
|
-
# Deprecated. Please use quotaUser instead.
|
1356
|
-
# @param [Google::Apis::RequestOptions] options
|
1357
|
-
# Request-specific options
|
1358
|
-
#
|
1359
|
-
# @yield [result, err] Result & error if block supplied
|
1360
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Template] parsed result object
|
1361
|
-
# @yieldparam err [StandardError] error object if request failed
|
1362
|
-
#
|
1363
|
-
# @return [Google::Apis::FusiontablesV2::Template]
|
1364
|
-
#
|
1365
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1366
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1367
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1368
|
-
def patch_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1369
|
-
command = make_simple_command(:patch, 'tables/{tableId}/templates/{templateId}', options)
|
1370
|
-
command.request_representation = Google::Apis::FusiontablesV2::Template::Representation
|
1371
|
-
command.request_object = template_object
|
1372
|
-
command.response_representation = Google::Apis::FusiontablesV2::Template::Representation
|
1373
|
-
command.response_class = Google::Apis::FusiontablesV2::Template
|
1374
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1375
|
-
command.params['templateId'] = template_id unless template_id.nil?
|
1376
|
-
command.query['fields'] = fields unless fields.nil?
|
1377
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1378
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1379
|
-
execute_or_queue_command(command, &block)
|
1380
|
-
end
|
1381
|
-
|
1382
|
-
# Updates an existing template
|
1383
|
-
# @param [String] table_id
|
1384
|
-
# Table to which the updated template belongs
|
1385
|
-
# @param [Fixnum] template_id
|
1386
|
-
# Identifier for the template that is being updated
|
1387
|
-
# @param [Google::Apis::FusiontablesV2::Template] template_object
|
1388
|
-
# @param [String] fields
|
1389
|
-
# Selector specifying which fields to include in a partial response.
|
1390
|
-
# @param [String] quota_user
|
1391
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
1392
|
-
# characters.
|
1393
|
-
# @param [String] user_ip
|
1394
|
-
# Deprecated. Please use quotaUser instead.
|
1395
|
-
# @param [Google::Apis::RequestOptions] options
|
1396
|
-
# Request-specific options
|
1397
|
-
#
|
1398
|
-
# @yield [result, err] Result & error if block supplied
|
1399
|
-
# @yieldparam result [Google::Apis::FusiontablesV2::Template] parsed result object
|
1400
|
-
# @yieldparam err [StandardError] error object if request failed
|
1401
|
-
#
|
1402
|
-
# @return [Google::Apis::FusiontablesV2::Template]
|
1403
|
-
#
|
1404
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1405
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1406
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1407
|
-
def update_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1408
|
-
command = make_simple_command(:put, 'tables/{tableId}/templates/{templateId}', options)
|
1409
|
-
command.request_representation = Google::Apis::FusiontablesV2::Template::Representation
|
1410
|
-
command.request_object = template_object
|
1411
|
-
command.response_representation = Google::Apis::FusiontablesV2::Template::Representation
|
1412
|
-
command.response_class = Google::Apis::FusiontablesV2::Template
|
1413
|
-
command.params['tableId'] = table_id unless table_id.nil?
|
1414
|
-
command.params['templateId'] = template_id unless template_id.nil?
|
1415
|
-
command.query['fields'] = fields unless fields.nil?
|
1416
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1417
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1418
|
-
execute_or_queue_command(command, &block)
|
1419
|
-
end
|
1420
|
-
|
1421
|
-
protected
|
1422
|
-
|
1423
|
-
def apply_command_defaults(command)
|
1424
|
-
command.query['key'] = key unless key.nil?
|
1425
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1426
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
1427
|
-
end
|
1428
|
-
end
|
1429
|
-
end
|
1430
|
-
end
|
1431
|
-
end
|