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