google-api-client 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- 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
|
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
|
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
|
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
|
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
|
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
|
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
|
-
|
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
|
-
|
234
|
+
end
|
197
235
|
end
|
198
236
|
|
199
237
|
class Projection
|
200
|
-
|
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
|
-
|
242
|
+
end
|
203
243
|
end
|
204
244
|
|
205
245
|
class Mutation
|
206
|
-
|
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
|
-
|
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
|
-
|
213
|
-
|
214
|
-
|
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
|
-
|
219
|
-
|
220
|
-
|
269
|
+
# @private
|
270
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
271
|
+
end
|
221
272
|
end
|
222
273
|
|
223
274
|
class MutationResult
|
224
|
-
|
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
|
-
|
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
|
484
|
+
class RunQueryResponse
|
430
485
|
# @private
|
431
486
|
class Representation < Google::Apis::Core::JsonRepresentation
|
432
|
-
|
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
|
506
|
+
class AllocateIdsRequest
|
450
507
|
# @private
|
451
508
|
class Representation < Google::Apis::Core::JsonRepresentation
|
452
|
-
|
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
|
-
#
|
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::
|
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::
|
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::
|
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
|
74
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}:
|
75
|
-
command.request_representation = Google::Apis::DatastoreV1::
|
76
|
-
command.request_object =
|
77
|
-
command.response_representation = Google::Apis::DatastoreV1::
|
78
|
-
command.response_class = Google::Apis::DatastoreV1::
|
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
|
-
#
|
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::
|
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::
|
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::
|
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
|
107
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}:
|
108
|
-
command.request_representation = Google::Apis::DatastoreV1::
|
109
|
-
command.request_object =
|
110
|
-
command.response_representation = Google::Apis::DatastoreV1::
|
111
|
-
command.response_class = Google::Apis::DatastoreV1::
|
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
|
-
#
|
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::
|
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::
|
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::
|
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
|
141
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}:
|
142
|
-
command.request_representation = Google::Apis::DatastoreV1::
|
143
|
-
command.request_object =
|
144
|
-
command.response_representation = Google::Apis::DatastoreV1::
|
145
|
-
command.response_class = Google::Apis::DatastoreV1::
|
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
|
-
#
|
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::
|
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::
|
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::
|
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
|
174
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}:
|
175
|
-
command.request_representation = Google::Apis::DatastoreV1::
|
176
|
-
command.request_object =
|
177
|
-
command.response_representation = Google::Apis::DatastoreV1::
|
178
|
-
command.response_class = Google::Apis::DatastoreV1::
|
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
|
-
#
|
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::
|
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::
|
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::
|
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
|
207
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}:
|
208
|
-
command.request_representation = Google::Apis::DatastoreV1::
|
209
|
-
command.request_object =
|
210
|
-
command.response_representation = Google::Apis::DatastoreV1::
|
211
|
-
command.response_class = Google::Apis::DatastoreV1::
|
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
|
-
#
|
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::
|
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::
|
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::
|
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
|
240
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}:
|
241
|
-
command.request_representation = Google::Apis::DatastoreV1::
|
242
|
-
command.request_object =
|
243
|
-
command.response_representation = Google::Apis::DatastoreV1::
|
244
|
-
command.response_class = Google::Apis::DatastoreV1::
|
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?
|