google-api-client 0.11.2 → 0.11.3

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 (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -22,6 +22,42 @@ module Google
22
22
  module Apis
23
23
  module DatastoreV1
24
24
 
25
+ class ArrayValue
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Projection
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Mutation
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ReadOptions
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class RollbackResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class MutationResult
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
25
61
  class GqlQuery
26
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
63
 
@@ -34,13 +70,13 @@ module Google
34
70
  include Google::Apis::Core::JsonObjectSupport
35
71
  end
36
72
 
37
- class RollbackRequest
73
+ class RunQueryRequest
38
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
75
 
40
76
  include Google::Apis::Core::JsonObjectSupport
41
77
  end
42
78
 
43
- class RunQueryRequest
79
+ class RollbackRequest
44
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
81
 
46
82
  include Google::Apis::Core::JsonObjectSupport
@@ -76,13 +112,13 @@ module Google
76
112
  include Google::Apis::Core::JsonObjectSupport
77
113
  end
78
114
 
79
- class Value
115
+ class CommitResponse
80
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
117
 
82
118
  include Google::Apis::Core::JsonObjectSupport
83
119
  end
84
120
 
85
- class CommitResponse
121
+ class Value
86
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
123
 
88
124
  include Google::Apis::Core::JsonObjectSupport
@@ -130,7 +166,7 @@ module Google
130
166
  include Google::Apis::Core::JsonObjectSupport
131
167
  end
132
168
 
133
- class AllocateIdsRequest
169
+ class RunQueryResponse
134
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
171
 
136
172
  include Google::Apis::Core::JsonObjectSupport
@@ -142,7 +178,7 @@ module Google
142
178
  include Google::Apis::Core::JsonObjectSupport
143
179
  end
144
180
 
145
- class RunQueryResponse
181
+ class AllocateIdsRequest
146
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
183
 
148
184
  include Google::Apis::Core::JsonObjectSupport
@@ -191,39 +227,58 @@ module Google
191
227
  end
192
228
 
193
229
  class ArrayValue
194
- class Representation < Google::Apis::Core::JsonRepresentation; end
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
195
233
 
196
- include Google::Apis::Core::JsonObjectSupport
234
+ end
197
235
  end
198
236
 
199
237
  class Projection
200
- class Representation < Google::Apis::Core::JsonRepresentation; end
238
+ # @private
239
+ class Representation < Google::Apis::Core::JsonRepresentation
240
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
201
241
 
202
- include Google::Apis::Core::JsonObjectSupport
242
+ end
203
243
  end
204
244
 
205
245
  class Mutation
206
- class Representation < Google::Apis::Core::JsonRepresentation; end
246
+ # @private
247
+ class Representation < Google::Apis::Core::JsonRepresentation
248
+ property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
207
249
 
208
- include Google::Apis::Core::JsonObjectSupport
250
+ property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
251
+
252
+ property :base_version, :numeric_string => true, as: 'baseVersion'
253
+ property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
254
+
255
+ property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
256
+
257
+ end
209
258
  end
210
259
 
211
260
  class ReadOptions
212
- class Representation < Google::Apis::Core::JsonRepresentation; end
213
-
214
- include Google::Apis::Core::JsonObjectSupport
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ property :read_consistency, as: 'readConsistency'
264
+ property :transaction, :base64 => true, as: 'transaction'
265
+ end
215
266
  end
216
267
 
217
268
  class RollbackResponse
218
- class Representation < Google::Apis::Core::JsonRepresentation; end
219
-
220
- include Google::Apis::Core::JsonObjectSupport
269
+ # @private
270
+ class Representation < Google::Apis::Core::JsonRepresentation
271
+ end
221
272
  end
222
273
 
223
274
  class MutationResult
224
- class Representation < Google::Apis::Core::JsonRepresentation; end
275
+ # @private
276
+ class Representation < Google::Apis::Core::JsonRepresentation
277
+ property :version, :numeric_string => true, as: 'version'
278
+ property :conflict_detected, as: 'conflictDetected'
279
+ property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
225
280
 
226
- include Google::Apis::Core::JsonObjectSupport
281
+ end
227
282
  end
228
283
 
229
284
  class GqlQuery
@@ -248,13 +303,6 @@ module Google
248
303
  end
249
304
  end
250
305
 
251
- class RollbackRequest
252
- # @private
253
- class Representation < Google::Apis::Core::JsonRepresentation
254
- property :transaction, :base64 => true, as: 'transaction'
255
- end
256
- end
257
-
258
306
  class RunQueryRequest
259
307
  # @private
260
308
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -269,6 +317,13 @@ module Google
269
317
  end
270
318
  end
271
319
 
320
+ class RollbackRequest
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ property :transaction, :base64 => true, as: 'transaction'
324
+ end
325
+ end
326
+
272
327
  class CompositeFilter
273
328
  # @private
274
329
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -289,20 +344,20 @@ module Google
289
344
  class Query
290
345
  # @private
291
346
  class Representation < Google::Apis::Core::JsonRepresentation
292
- collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
293
-
294
- property :end_cursor, :base64 => true, as: 'endCursor'
295
- property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
296
-
297
- property :limit, as: 'limit'
298
- property :offset, as: 'offset'
299
347
  property :start_cursor, :base64 => true, as: 'startCursor'
348
+ property :offset, as: 'offset'
300
349
  collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
301
350
 
302
351
  collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
303
352
 
304
353
  collection :order, as: 'order', class: Google::Apis::DatastoreV1::PropertyOrder, decorator: Google::Apis::DatastoreV1::PropertyOrder::Representation
305
354
 
355
+ collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
356
+
357
+ property :end_cursor, :base64 => true, as: 'endCursor'
358
+ property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
359
+
360
+ property :limit, as: 'limit'
306
361
  end
307
362
  end
308
363
 
@@ -327,9 +382,20 @@ module Google
327
382
  end
328
383
  end
329
384
 
385
+ class CommitResponse
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
389
+
390
+ property :index_updates, as: 'indexUpdates'
391
+ end
392
+ end
393
+
330
394
  class Value
331
395
  # @private
332
396
  class Representation < Google::Apis::Core::JsonRepresentation
397
+ property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
398
+
333
399
  property :geo_point_value, as: 'geoPointValue', class: Google::Apis::DatastoreV1::LatLng, decorator: Google::Apis::DatastoreV1::LatLng::Representation
334
400
 
335
401
  property :key_value, as: 'keyValue', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
@@ -339,55 +405,44 @@ module Google
339
405
  property :exclude_from_indexes, as: 'excludeFromIndexes'
340
406
  property :double_value, as: 'doubleValue'
341
407
  property :timestamp_value, as: 'timestampValue'
342
- property :null_value, as: 'nullValue'
343
408
  property :boolean_value, as: 'booleanValue'
409
+ property :null_value, as: 'nullValue'
344
410
  property :blob_value, :base64 => true, as: 'blobValue'
345
411
  property :meaning, as: 'meaning'
346
412
  property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
347
413
 
348
- property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
349
-
350
- end
351
- end
352
-
353
- class CommitResponse
354
- # @private
355
- class Representation < Google::Apis::Core::JsonRepresentation
356
- property :index_updates, as: 'indexUpdates'
357
- collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
358
-
359
414
  end
360
415
  end
361
416
 
362
417
  class PartitionId
363
418
  # @private
364
419
  class Representation < Google::Apis::Core::JsonRepresentation
365
- property :namespace_id, as: 'namespaceId'
366
420
  property :project_id, as: 'projectId'
421
+ property :namespace_id, as: 'namespaceId'
367
422
  end
368
423
  end
369
424
 
370
425
  class Entity
371
426
  # @private
372
427
  class Representation < Google::Apis::Core::JsonRepresentation
373
- hash :properties, as: 'properties', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
374
-
375
428
  property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
376
429
 
430
+ hash :properties, as: 'properties', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
431
+
377
432
  end
378
433
  end
379
434
 
380
435
  class QueryResultBatch
381
436
  # @private
382
437
  class Representation < Google::Apis::Core::JsonRepresentation
383
- collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
384
-
385
- property :more_results, as: 'moreResults'
386
- property :end_cursor, :base64 => true, as: 'endCursor'
387
438
  property :snapshot_version, :numeric_string => true, as: 'snapshotVersion'
388
439
  property :skipped_cursor, :base64 => true, as: 'skippedCursor'
389
440
  property :skipped_results, as: 'skippedResults'
390
441
  property :entity_result_type, as: 'entityResultType'
442
+ collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
443
+
444
+ property :end_cursor, :base64 => true, as: 'endCursor'
445
+ property :more_results, as: 'moreResults'
391
446
  end
392
447
  end
393
448
 
@@ -404,9 +459,9 @@ module Google
404
459
  class PathElement
405
460
  # @private
406
461
  class Representation < Google::Apis::Core::JsonRepresentation
407
- property :id, :numeric_string => true, as: 'id'
408
462
  property :name, as: 'name'
409
463
  property :kind, as: 'kind'
464
+ property :id, :numeric_string => true, as: 'id'
410
465
  end
411
466
  end
412
467
 
@@ -426,10 +481,12 @@ module Google
426
481
  end
427
482
  end
428
483
 
429
- class AllocateIdsRequest
484
+ class RunQueryResponse
430
485
  # @private
431
486
  class Representation < Google::Apis::Core::JsonRepresentation
432
- collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
487
+ property :batch, as: 'batch', class: Google::Apis::DatastoreV1::QueryResultBatch, decorator: Google::Apis::DatastoreV1::QueryResultBatch::Representation
488
+
489
+ property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
433
490
 
434
491
  end
435
492
  end
@@ -437,21 +494,19 @@ module Google
437
494
  class LookupResponse
438
495
  # @private
439
496
  class Representation < Google::Apis::Core::JsonRepresentation
440
- collection :deferred, as: 'deferred', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
441
-
442
497
  collection :found, as: 'found', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
443
498
 
444
499
  collection :missing, as: 'missing', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
445
500
 
501
+ collection :deferred, as: 'deferred', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
502
+
446
503
  end
447
504
  end
448
505
 
449
- class RunQueryResponse
506
+ class AllocateIdsRequest
450
507
  # @private
451
508
  class Representation < Google::Apis::Core::JsonRepresentation
452
- property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
453
-
454
- property :batch, as: 'batch', class: Google::Apis::DatastoreV1::QueryResultBatch, decorator: Google::Apis::DatastoreV1::QueryResultBatch::Representation
509
+ collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
455
510
 
456
511
  end
457
512
  end
@@ -459,10 +514,10 @@ module Google
459
514
  class CommitRequest
460
515
  # @private
461
516
  class Representation < Google::Apis::Core::JsonRepresentation
462
- collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
463
-
464
517
  property :transaction, :base64 => true, as: 'transaction'
465
518
  property :mode, as: 'mode'
519
+ collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
520
+
466
521
  end
467
522
  end
468
523
 
@@ -491,8 +546,8 @@ module Google
491
546
  class LatLng
492
547
  # @private
493
548
  class Representation < Google::Apis::Core::JsonRepresentation
494
- property :longitude, as: 'longitude'
495
549
  property :latitude, as: 'latitude'
550
+ property :longitude, as: 'longitude'
496
551
  end
497
552
  end
498
553
 
@@ -512,61 +567,6 @@ module Google
512
567
  property :name, as: 'name'
513
568
  end
514
569
  end
515
-
516
- class ArrayValue
517
- # @private
518
- class Representation < Google::Apis::Core::JsonRepresentation
519
- collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
520
-
521
- end
522
- end
523
-
524
- class Projection
525
- # @private
526
- class Representation < Google::Apis::Core::JsonRepresentation
527
- property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
528
-
529
- end
530
- end
531
-
532
- class Mutation
533
- # @private
534
- class Representation < Google::Apis::Core::JsonRepresentation
535
- property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
536
-
537
- property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
538
-
539
- property :base_version, :numeric_string => true, as: 'baseVersion'
540
- property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
541
-
542
- property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
543
-
544
- end
545
- end
546
-
547
- class ReadOptions
548
- # @private
549
- class Representation < Google::Apis::Core::JsonRepresentation
550
- property :read_consistency, as: 'readConsistency'
551
- property :transaction, :base64 => true, as: 'transaction'
552
- end
553
- end
554
-
555
- class RollbackResponse
556
- # @private
557
- class Representation < Google::Apis::Core::JsonRepresentation
558
- end
559
- end
560
-
561
- class MutationResult
562
- # @private
563
- class Representation < Google::Apis::Core::JsonRepresentation
564
- property :version, :numeric_string => true, as: 'version'
565
- property :conflict_detected, as: 'conflictDetected'
566
- property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::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?