google-api-client 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -22,6 +22,24 @@ module Google
22
22
  module Apis
23
23
  module DatastoreV1
24
24
 
25
+ class MutationResult
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GqlQuery
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Filter
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
25
43
  class RunQueryRequest
26
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
45
 
@@ -64,13 +82,13 @@ module Google
64
82
  include Google::Apis::Core::JsonObjectSupport
65
83
  end
66
84
 
67
- class CommitResponse
85
+ class Value
68
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
87
 
70
88
  include Google::Apis::Core::JsonObjectSupport
71
89
  end
72
90
 
73
- class Value
91
+ class CommitResponse
74
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
93
 
76
94
  include Google::Apis::Core::JsonObjectSupport
@@ -88,13 +106,13 @@ module Google
88
106
  include Google::Apis::Core::JsonObjectSupport
89
107
  end
90
108
 
91
- class QueryResultBatch
109
+ class LookupRequest
92
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
111
 
94
112
  include Google::Apis::Core::JsonObjectSupport
95
113
  end
96
114
 
97
- class LookupRequest
115
+ class QueryResultBatch
98
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
117
 
100
118
  include Google::Apis::Core::JsonObjectSupport
@@ -136,19 +154,19 @@ module Google
136
154
  include Google::Apis::Core::JsonObjectSupport
137
155
  end
138
156
 
139
- class PropertyOrder
157
+ class CommitRequest
140
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
159
 
142
160
  include Google::Apis::Core::JsonObjectSupport
143
161
  end
144
162
 
145
- class CommitRequest
163
+ class BeginTransactionRequest
146
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
165
 
148
166
  include Google::Apis::Core::JsonObjectSupport
149
167
  end
150
168
 
151
- class BeginTransactionRequest
169
+ class PropertyOrder
152
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
171
 
154
172
  include Google::Apis::Core::JsonObjectSupport
@@ -160,13 +178,13 @@ module Google
160
178
  include Google::Apis::Core::JsonObjectSupport
161
179
  end
162
180
 
163
- class LatLng
181
+ class Key
164
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
183
 
166
184
  include Google::Apis::Core::JsonObjectSupport
167
185
  end
168
186
 
169
- class Key
187
+ class LatLng
170
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
189
 
172
190
  include Google::Apis::Core::JsonObjectSupport
@@ -209,30 +227,44 @@ module Google
209
227
  end
210
228
 
211
229
  class MutationResult
212
- class Representation < Google::Apis::Core::JsonRepresentation; end
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ property :version, :numeric_string => true, as: 'version'
233
+ property :conflict_detected, as: 'conflictDetected'
234
+ property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
213
235
 
214
- include Google::Apis::Core::JsonObjectSupport
236
+ end
215
237
  end
216
238
 
217
239
  class GqlQuery
218
- class Representation < Google::Apis::Core::JsonRepresentation; end
240
+ # @private
241
+ class Representation < Google::Apis::Core::JsonRepresentation
242
+ collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
219
243
 
220
- include Google::Apis::Core::JsonObjectSupport
244
+ hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
245
+
246
+ property :allow_literals, as: 'allowLiterals'
247
+ property :query_string, as: 'queryString'
248
+ end
221
249
  end
222
250
 
223
251
  class Filter
224
- class Representation < Google::Apis::Core::JsonRepresentation; end
252
+ # @private
253
+ class Representation < Google::Apis::Core::JsonRepresentation
254
+ property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
225
255
 
226
- include Google::Apis::Core::JsonObjectSupport
256
+ property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
257
+
258
+ end
227
259
  end
228
260
 
229
261
  class RunQueryRequest
230
262
  # @private
231
263
  class Representation < Google::Apis::Core::JsonRepresentation
232
- property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
233
-
234
264
  property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
235
265
 
266
+ property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
267
+
236
268
  property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
237
269
 
238
270
  property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
@@ -270,9 +302,9 @@ module Google
270
302
  collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
271
303
 
272
304
  property :end_cursor, :base64 => true, as: 'endCursor'
273
- property :limit, as: 'limit'
274
305
  property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
275
306
 
307
+ property :limit, as: 'limit'
276
308
  property :start_cursor, :base64 => true, as: 'startCursor'
277
309
  property :offset, as: 'offset'
278
310
  collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
@@ -287,38 +319,31 @@ module Google
287
319
  class PropertyFilter
288
320
  # @private
289
321
  class Representation < Google::Apis::Core::JsonRepresentation
290
- property :op, as: 'op'
291
322
  property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
292
323
 
293
324
  property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
294
325
 
326
+ property :op, as: 'op'
295
327
  end
296
328
  end
297
329
 
298
330
  class EntityResult
299
331
  # @private
300
332
  class Representation < Google::Apis::Core::JsonRepresentation
301
- property :cursor, :base64 => true, as: 'cursor'
302
- property :version, :numeric_string => true, as: 'version'
303
333
  property :entity, as: 'entity', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
304
334
 
305
- end
306
- end
307
-
308
- class CommitResponse
309
- # @private
310
- class Representation < Google::Apis::Core::JsonRepresentation
311
- collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
312
-
313
- property :index_updates, as: 'indexUpdates'
335
+ property :cursor, :base64 => true, as: 'cursor'
336
+ property :version, :numeric_string => true, as: 'version'
314
337
  end
315
338
  end
316
339
 
317
340
  class Value
318
341
  # @private
319
342
  class Representation < Google::Apis::Core::JsonRepresentation
320
- property :boolean_value, as: 'booleanValue'
343
+ property :double_value, as: 'doubleValue'
344
+ property :timestamp_value, as: 'timestampValue'
321
345
  property :null_value, as: 'nullValue'
346
+ property :boolean_value, as: 'booleanValue'
322
347
  property :blob_value, :base64 => true, as: 'blobValue'
323
348
  property :meaning, as: 'meaning'
324
349
  property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
@@ -332,8 +357,15 @@ module Google
332
357
  property :integer_value, :numeric_string => true, as: 'integerValue'
333
358
  property :string_value, as: 'stringValue'
334
359
  property :exclude_from_indexes, as: 'excludeFromIndexes'
335
- property :double_value, as: 'doubleValue'
336
- property :timestamp_value, as: 'timestampValue'
360
+ end
361
+ end
362
+
363
+ class CommitResponse
364
+ # @private
365
+ class Representation < Google::Apis::Core::JsonRepresentation
366
+ property :index_updates, as: 'indexUpdates'
367
+ collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
368
+
337
369
  end
338
370
  end
339
371
 
@@ -355,27 +387,27 @@ module Google
355
387
  end
356
388
  end
357
389
 
358
- class QueryResultBatch
390
+ class LookupRequest
359
391
  # @private
360
392
  class Representation < Google::Apis::Core::JsonRepresentation
361
- collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
393
+ property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
394
+
395
+ collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
362
396
 
363
- property :end_cursor, :base64 => true, as: 'endCursor'
364
- property :more_results, as: 'moreResults'
365
- property :snapshot_version, :numeric_string => true, as: 'snapshotVersion'
366
- property :skipped_cursor, :base64 => true, as: 'skippedCursor'
367
- property :skipped_results, as: 'skippedResults'
368
- property :entity_result_type, as: 'entityResultType'
369
397
  end
370
398
  end
371
399
 
372
- class LookupRequest
400
+ class QueryResultBatch
373
401
  # @private
374
402
  class Representation < Google::Apis::Core::JsonRepresentation
375
- collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
376
-
377
- property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
403
+ property :skipped_cursor, :base64 => true, as: 'skippedCursor'
404
+ property :skipped_results, as: 'skippedResults'
405
+ property :entity_result_type, as: 'entityResultType'
406
+ collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
378
407
 
408
+ property :more_results, as: 'moreResults'
409
+ property :end_cursor, :base64 => true, as: 'endCursor'
410
+ property :snapshot_version, :numeric_string => true, as: 'snapshotVersion'
379
411
  end
380
412
  end
381
413
 
@@ -391,9 +423,9 @@ module Google
391
423
  class GqlQueryParameter
392
424
  # @private
393
425
  class Representation < Google::Apis::Core::JsonRepresentation
426
+ property :cursor, :base64 => true, as: 'cursor'
394
427
  property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
395
428
 
396
- property :cursor, :base64 => true, as: 'cursor'
397
429
  end
398
430
  end
399
431
 
@@ -415,10 +447,10 @@ module Google
415
447
  class LookupResponse
416
448
  # @private
417
449
  class Representation < Google::Apis::Core::JsonRepresentation
418
- collection :found, as: 'found', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
419
-
420
450
  collection :missing, as: 'missing', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
421
451
 
452
+ collection :found, as: 'found', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
453
+
422
454
  collection :deferred, as: 'deferred', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
423
455
 
424
456
  end
@@ -434,22 +466,13 @@ module Google
434
466
  end
435
467
  end
436
468
 
437
- class PropertyOrder
438
- # @private
439
- class Representation < Google::Apis::Core::JsonRepresentation
440
- property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
441
-
442
- property :direction, as: 'direction'
443
- end
444
- end
445
-
446
469
  class CommitRequest
447
470
  # @private
448
471
  class Representation < Google::Apis::Core::JsonRepresentation
449
- property :transaction, :base64 => true, as: 'transaction'
450
472
  property :mode, as: 'mode'
451
473
  collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
452
474
 
475
+ property :transaction, :base64 => true, as: 'transaction'
453
476
  end
454
477
  end
455
478
 
@@ -459,28 +482,37 @@ module Google
459
482
  end
460
483
  end
461
484
 
462
- class KindExpression
485
+ class PropertyOrder
463
486
  # @private
464
487
  class Representation < Google::Apis::Core::JsonRepresentation
465
- property :name, as: 'name'
488
+ property :direction, as: 'direction'
489
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
490
+
466
491
  end
467
492
  end
468
493
 
469
- class LatLng
494
+ class KindExpression
470
495
  # @private
471
496
  class Representation < Google::Apis::Core::JsonRepresentation
472
- property :latitude, as: 'latitude'
473
- property :longitude, as: 'longitude'
497
+ property :name, as: 'name'
474
498
  end
475
499
  end
476
500
 
477
501
  class Key
478
502
  # @private
479
503
  class Representation < Google::Apis::Core::JsonRepresentation
504
+ property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
505
+
480
506
  collection :path, as: 'path', class: Google::Apis::DatastoreV1::PathElement, decorator: Google::Apis::DatastoreV1::PathElement::Representation
481
507
 
482
- property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
508
+ end
509
+ end
483
510
 
511
+ class LatLng
512
+ # @private
513
+ class Representation < Google::Apis::Core::JsonRepresentation
514
+ property :latitude, as: 'latitude'
515
+ property :longitude, as: 'longitude'
484
516
  end
485
517
  end
486
518
 
@@ -510,23 +542,23 @@ module Google
510
542
  class Mutation
511
543
  # @private
512
544
  class Representation < Google::Apis::Core::JsonRepresentation
545
+ property :base_version, :numeric_string => true, as: 'baseVersion'
546
+ property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
547
+
513
548
  property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
514
549
 
515
550
  property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
516
551
 
517
552
  property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
518
553
 
519
- property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
520
-
521
- property :base_version, :numeric_string => true, as: 'baseVersion'
522
554
  end
523
555
  end
524
556
 
525
557
  class ReadOptions
526
558
  # @private
527
559
  class Representation < Google::Apis::Core::JsonRepresentation
528
- property :read_consistency, as: 'readConsistency'
529
560
  property :transaction, :base64 => true, as: 'transaction'
561
+ property :read_consistency, as: 'readConsistency'
530
562
  end
531
563
  end
532
564
 
@@ -535,38 +567,6 @@ module Google
535
567
  class Representation < Google::Apis::Core::JsonRepresentation
536
568
  end
537
569
  end
538
-
539
- class MutationResult
540
- # @private
541
- class Representation < Google::Apis::Core::JsonRepresentation
542
- property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
543
-
544
- property :version, :numeric_string => true, as: 'version'
545
- property :conflict_detected, as: 'conflictDetected'
546
- end
547
- end
548
-
549
- class GqlQuery
550
- # @private
551
- class Representation < Google::Apis::Core::JsonRepresentation
552
- property :query_string, as: 'queryString'
553
- property :allow_literals, as: 'allowLiterals'
554
- hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
555
-
556
- collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
557
-
558
- end
559
- end
560
-
561
- class Filter
562
- # @private
563
- class Representation < Google::Apis::Core::JsonRepresentation
564
- property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
565
-
566
- property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
567
-
568
- end
569
- end
570
570
  end
571
571
  end
572
572
  end
@@ -48,11 +48,10 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Allocates IDs for the given keys, which is useful for referencing an entity
52
- # before it is inserted.
51
+ # Queries for entities.
53
52
  # @param [String] project_id
54
53
  # The ID of the project against which to make the request.
55
- # @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_request_object
54
+ # @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
56
55
  # @param [String] fields
57
56
  # Selector specifying which fields to include in a partial response.
58
57
  # @param [String] quota_user
@@ -62,30 +61,30 @@ module Google
62
61
  # Request-specific options
63
62
  #
64
63
  # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::DatastoreV1::AllocateIdsResponse] parsed result object
64
+ # @yieldparam result [Google::Apis::DatastoreV1::RunQueryResponse] parsed result object
66
65
  # @yieldparam err [StandardError] error object if request failed
67
66
  #
68
- # @return [Google::Apis::DatastoreV1::AllocateIdsResponse]
67
+ # @return [Google::Apis::DatastoreV1::RunQueryResponse]
69
68
  #
70
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def allocate_project_ids(project_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
- command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
75
- command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
76
- command.request_object = allocate_ids_request_object
77
- command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
78
- command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
72
+ def run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
74
+ command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
75
+ command.request_object = run_query_request_object
76
+ command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
77
+ command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
79
78
  command.params['projectId'] = project_id unless project_id.nil?
80
79
  command.query['fields'] = fields unless fields.nil?
81
80
  command.query['quotaUser'] = quota_user unless quota_user.nil?
82
81
  execute_or_queue_command(command, &block)
83
82
  end
84
83
 
85
- # Begins a new transaction.
84
+ # Rolls back a transaction.
86
85
  # @param [String] project_id
87
86
  # The ID of the project against which to make the request.
88
- # @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_request_object
87
+ # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
89
88
  # @param [String] fields
90
89
  # Selector specifying which fields to include in a partial response.
91
90
  # @param [String] quota_user
@@ -95,31 +94,30 @@ module Google
95
94
  # Request-specific options
96
95
  #
97
96
  # @yield [result, err] Result & error if block supplied
98
- # @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
97
+ # @yieldparam result [Google::Apis::DatastoreV1::RollbackResponse] parsed result object
99
98
  # @yieldparam err [StandardError] error object if request failed
100
99
  #
101
- # @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
100
+ # @return [Google::Apis::DatastoreV1::RollbackResponse]
102
101
  #
103
102
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
103
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
104
  # @raise [Google::Apis::AuthorizationError] Authorization is required
106
- def begin_project_transaction(project_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
107
- command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
108
- command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
109
- command.request_object = begin_transaction_request_object
110
- command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
111
- command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
105
+ def rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
106
+ command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
107
+ command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
108
+ command.request_object = rollback_request_object
109
+ command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
110
+ command.response_class = Google::Apis::DatastoreV1::RollbackResponse
112
111
  command.params['projectId'] = project_id unless project_id.nil?
113
112
  command.query['fields'] = fields unless fields.nil?
114
113
  command.query['quotaUser'] = quota_user unless quota_user.nil?
115
114
  execute_or_queue_command(command, &block)
116
115
  end
117
116
 
118
- # Commits a transaction, optionally creating, deleting or modifying some
119
- # entities.
117
+ # Looks up entities by key.
120
118
  # @param [String] project_id
121
119
  # The ID of the project against which to make the request.
122
- # @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
120
+ # @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
123
121
  # @param [String] fields
124
122
  # Selector specifying which fields to include in a partial response.
125
123
  # @param [String] quota_user
@@ -129,30 +127,31 @@ module Google
129
127
  # Request-specific options
130
128
  #
131
129
  # @yield [result, err] Result & error if block supplied
132
- # @yieldparam result [Google::Apis::DatastoreV1::CommitResponse] parsed result object
130
+ # @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
133
131
  # @yieldparam err [StandardError] error object if request failed
134
132
  #
135
- # @return [Google::Apis::DatastoreV1::CommitResponse]
133
+ # @return [Google::Apis::DatastoreV1::LookupResponse]
136
134
  #
137
135
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
136
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
137
  # @raise [Google::Apis::AuthorizationError] Authorization is required
140
- def commit_project(project_id, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
141
- command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
142
- command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
143
- command.request_object = commit_request_object
144
- command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
145
- command.response_class = Google::Apis::DatastoreV1::CommitResponse
138
+ def lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
139
+ command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
140
+ command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
141
+ command.request_object = lookup_request_object
142
+ command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
143
+ command.response_class = Google::Apis::DatastoreV1::LookupResponse
146
144
  command.params['projectId'] = project_id unless project_id.nil?
147
145
  command.query['fields'] = fields unless fields.nil?
148
146
  command.query['quotaUser'] = quota_user unless quota_user.nil?
149
147
  execute_or_queue_command(command, &block)
150
148
  end
151
149
 
152
- # Queries for entities.
150
+ # Allocates IDs for the given keys, which is useful for referencing an entity
151
+ # before it is inserted.
153
152
  # @param [String] project_id
154
153
  # The ID of the project against which to make the request.
155
- # @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
154
+ # @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_request_object
156
155
  # @param [String] fields
157
156
  # Selector specifying which fields to include in a partial response.
158
157
  # @param [String] quota_user
@@ -162,30 +161,30 @@ module Google
162
161
  # Request-specific options
163
162
  #
164
163
  # @yield [result, err] Result & error if block supplied
165
- # @yieldparam result [Google::Apis::DatastoreV1::RunQueryResponse] parsed result object
164
+ # @yieldparam result [Google::Apis::DatastoreV1::AllocateIdsResponse] parsed result object
166
165
  # @yieldparam err [StandardError] error object if request failed
167
166
  #
168
- # @return [Google::Apis::DatastoreV1::RunQueryResponse]
167
+ # @return [Google::Apis::DatastoreV1::AllocateIdsResponse]
169
168
  #
170
169
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
171
170
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
172
171
  # @raise [Google::Apis::AuthorizationError] Authorization is required
173
- def run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
174
- command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
175
- command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
176
- command.request_object = run_query_request_object
177
- command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
178
- command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
172
+ def allocate_project_ids(project_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
173
+ command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
174
+ command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
175
+ command.request_object = allocate_ids_request_object
176
+ command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
177
+ command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
179
178
  command.params['projectId'] = project_id unless project_id.nil?
180
179
  command.query['fields'] = fields unless fields.nil?
181
180
  command.query['quotaUser'] = quota_user unless quota_user.nil?
182
181
  execute_or_queue_command(command, &block)
183
182
  end
184
183
 
185
- # Rolls back a transaction.
184
+ # Begins a new transaction.
186
185
  # @param [String] project_id
187
186
  # The ID of the project against which to make the request.
188
- # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
187
+ # @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_request_object
189
188
  # @param [String] fields
190
189
  # Selector specifying which fields to include in a partial response.
191
190
  # @param [String] quota_user
@@ -195,30 +194,31 @@ module Google
195
194
  # Request-specific options
196
195
  #
197
196
  # @yield [result, err] Result & error if block supplied
198
- # @yieldparam result [Google::Apis::DatastoreV1::RollbackResponse] parsed result object
197
+ # @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
199
198
  # @yieldparam err [StandardError] error object if request failed
200
199
  #
201
- # @return [Google::Apis::DatastoreV1::RollbackResponse]
200
+ # @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
202
201
  #
203
202
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
206
- def rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
207
- command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
208
- command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
209
- command.request_object = rollback_request_object
210
- command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
211
- command.response_class = Google::Apis::DatastoreV1::RollbackResponse
205
+ def begin_project_transaction(project_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
206
+ command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
207
+ command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
208
+ command.request_object = begin_transaction_request_object
209
+ command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
210
+ command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
212
211
  command.params['projectId'] = project_id unless project_id.nil?
213
212
  command.query['fields'] = fields unless fields.nil?
214
213
  command.query['quotaUser'] = quota_user unless quota_user.nil?
215
214
  execute_or_queue_command(command, &block)
216
215
  end
217
216
 
218
- # Looks up entities by key.
217
+ # Commits a transaction, optionally creating, deleting or modifying some
218
+ # entities.
219
219
  # @param [String] project_id
220
220
  # The ID of the project against which to make the request.
221
- # @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
221
+ # @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
222
222
  # @param [String] fields
223
223
  # Selector specifying which fields to include in a partial response.
224
224
  # @param [String] quota_user
@@ -228,20 +228,20 @@ module Google
228
228
  # Request-specific options
229
229
  #
230
230
  # @yield [result, err] Result & error if block supplied
231
- # @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
231
+ # @yieldparam result [Google::Apis::DatastoreV1::CommitResponse] parsed result object
232
232
  # @yieldparam err [StandardError] error object if request failed
233
233
  #
234
- # @return [Google::Apis::DatastoreV1::LookupResponse]
234
+ # @return [Google::Apis::DatastoreV1::CommitResponse]
235
235
  #
236
236
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
237
237
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
238
238
  # @raise [Google::Apis::AuthorizationError] Authorization is required
239
- def lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
240
- command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
241
- command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
242
- command.request_object = lookup_request_object
243
- command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
244
- command.response_class = Google::Apis::DatastoreV1::LookupResponse
239
+ def commit_project(project_id, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
240
+ command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
241
+ command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
242
+ command.request_object = commit_request_object
243
+ command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
244
+ command.response_class = Google::Apis::DatastoreV1::CommitResponse
245
245
  command.params['projectId'] = project_id unless project_id.nil?
246
246
  command.query['fields'] = fields unless fields.nil?
247
247
  command.query['quotaUser'] = quota_user unless quota_user.nil?