google-api-client 0.9.14 → 0.9.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,572 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DatastoreV1
24
+
25
+ class Value
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ReadOptions
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class PropertyOrder
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CommitRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Query
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class RollbackRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class EntityResult
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GqlQueryParameter
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ArrayValue
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Filter
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class BeginTransactionResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class PartitionId
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class QueryResultBatch
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class AllocateIdsRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class KindExpression
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class PropertyFilter
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class PathElement
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class RollbackResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class PropertyReference
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Projection
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class MutationResult
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class AllocateIdsResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class LookupResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class BeginTransactionRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Key
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class RunQueryResponse
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Entity
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class GqlQuery
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class Mutation
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class CommitResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class RunQueryRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class LookupRequest
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class LatLng
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class CompositeFilter
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class Value
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ property :string_value, as: 'stringValue'
233
+ property :array_value, as: 'arrayValue', class: Google::Apis::DatastoreV1::ArrayValue, decorator: Google::Apis::DatastoreV1::ArrayValue::Representation
234
+
235
+ property :entity_value, as: 'entityValue', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
236
+
237
+ property :meaning, as: 'meaning'
238
+ property :integer_value, as: 'integerValue'
239
+ property :double_value, as: 'doubleValue'
240
+ property :blob_value, :base64 => true, as: 'blobValue'
241
+ property :geo_point_value, as: 'geoPointValue', class: Google::Apis::DatastoreV1::LatLng, decorator: Google::Apis::DatastoreV1::LatLng::Representation
242
+
243
+ property :null_value, as: 'nullValue'
244
+ property :boolean_value, as: 'booleanValue'
245
+ property :key_value, as: 'keyValue', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
246
+
247
+ property :exclude_from_indexes, as: 'excludeFromIndexes'
248
+ property :timestamp_value, as: 'timestampValue'
249
+ end
250
+ end
251
+
252
+ class ReadOptions
253
+ # @private
254
+ class Representation < Google::Apis::Core::JsonRepresentation
255
+ property :transaction, :base64 => true, as: 'transaction'
256
+ property :read_consistency, as: 'readConsistency'
257
+ end
258
+ end
259
+
260
+ class PropertyOrder
261
+ # @private
262
+ class Representation < Google::Apis::Core::JsonRepresentation
263
+ property :direction, as: 'direction'
264
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
265
+
266
+ end
267
+ end
268
+
269
+ class CommitRequest
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :transaction, :base64 => true, as: 'transaction'
273
+ property :mode, as: 'mode'
274
+ collection :mutations, as: 'mutations', class: Google::Apis::DatastoreV1::Mutation, decorator: Google::Apis::DatastoreV1::Mutation::Representation
275
+
276
+ end
277
+ end
278
+
279
+ class Query
280
+ # @private
281
+ class Representation < Google::Apis::Core::JsonRepresentation
282
+ property :limit, as: 'limit'
283
+ property :filter, as: 'filter', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
284
+
285
+ property :end_cursor, :base64 => true, as: 'endCursor'
286
+ collection :distinct_on, as: 'distinctOn', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
287
+
288
+ property :offset, as: 'offset'
289
+ collection :projection, as: 'projection', class: Google::Apis::DatastoreV1::Projection, decorator: Google::Apis::DatastoreV1::Projection::Representation
290
+
291
+ collection :order, as: 'order', class: Google::Apis::DatastoreV1::PropertyOrder, decorator: Google::Apis::DatastoreV1::PropertyOrder::Representation
292
+
293
+ property :start_cursor, :base64 => true, as: 'startCursor'
294
+ collection :kind, as: 'kind', class: Google::Apis::DatastoreV1::KindExpression, decorator: Google::Apis::DatastoreV1::KindExpression::Representation
295
+
296
+ end
297
+ end
298
+
299
+ class RollbackRequest
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ property :transaction, :base64 => true, as: 'transaction'
303
+ end
304
+ end
305
+
306
+ class EntityResult
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ property :cursor, :base64 => true, as: 'cursor'
310
+ property :entity, as: 'entity', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
311
+
312
+ property :version, as: 'version'
313
+ end
314
+ end
315
+
316
+ class GqlQueryParameter
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
320
+
321
+ property :cursor, :base64 => true, as: 'cursor'
322
+ end
323
+ end
324
+
325
+ class ArrayValue
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ collection :values, as: 'values', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
329
+
330
+ end
331
+ end
332
+
333
+ class Filter
334
+ # @private
335
+ class Representation < Google::Apis::Core::JsonRepresentation
336
+ property :property_filter, as: 'propertyFilter', class: Google::Apis::DatastoreV1::PropertyFilter, decorator: Google::Apis::DatastoreV1::PropertyFilter::Representation
337
+
338
+ property :composite_filter, as: 'compositeFilter', class: Google::Apis::DatastoreV1::CompositeFilter, decorator: Google::Apis::DatastoreV1::CompositeFilter::Representation
339
+
340
+ end
341
+ end
342
+
343
+ class BeginTransactionResponse
344
+ # @private
345
+ class Representation < Google::Apis::Core::JsonRepresentation
346
+ property :transaction, :base64 => true, as: 'transaction'
347
+ end
348
+ end
349
+
350
+ class PartitionId
351
+ # @private
352
+ class Representation < Google::Apis::Core::JsonRepresentation
353
+ property :namespace_id, as: 'namespaceId'
354
+ property :project_id, as: 'projectId'
355
+ end
356
+ end
357
+
358
+ class QueryResultBatch
359
+ # @private
360
+ class Representation < Google::Apis::Core::JsonRepresentation
361
+ property :snapshot_version, as: 'snapshotVersion'
362
+ property :end_cursor, :base64 => true, as: 'endCursor'
363
+ property :skipped_cursor, :base64 => true, as: 'skippedCursor'
364
+ property :entity_result_type, as: 'entityResultType'
365
+ property :more_results, as: 'moreResults'
366
+ collection :entity_results, as: 'entityResults', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
367
+
368
+ property :skipped_results, as: 'skippedResults'
369
+ end
370
+ end
371
+
372
+ class AllocateIdsRequest
373
+ # @private
374
+ class Representation < Google::Apis::Core::JsonRepresentation
375
+ collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
376
+
377
+ end
378
+ end
379
+
380
+ class KindExpression
381
+ # @private
382
+ class Representation < Google::Apis::Core::JsonRepresentation
383
+ property :name, as: 'name'
384
+ end
385
+ end
386
+
387
+ class PropertyFilter
388
+ # @private
389
+ class Representation < Google::Apis::Core::JsonRepresentation
390
+ property :value, as: 'value', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
391
+
392
+ property :op, as: 'op'
393
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
394
+
395
+ end
396
+ end
397
+
398
+ class PathElement
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ property :kind, as: 'kind'
402
+ property :id, as: 'id'
403
+ property :name, as: 'name'
404
+ end
405
+ end
406
+
407
+ class RollbackResponse
408
+ # @private
409
+ class Representation < Google::Apis::Core::JsonRepresentation
410
+ end
411
+ end
412
+
413
+ class PropertyReference
414
+ # @private
415
+ class Representation < Google::Apis::Core::JsonRepresentation
416
+ property :name, as: 'name'
417
+ end
418
+ end
419
+
420
+ class Projection
421
+ # @private
422
+ class Representation < Google::Apis::Core::JsonRepresentation
423
+ property :property, as: 'property', class: Google::Apis::DatastoreV1::PropertyReference, decorator: Google::Apis::DatastoreV1::PropertyReference::Representation
424
+
425
+ end
426
+ end
427
+
428
+ class MutationResult
429
+ # @private
430
+ class Representation < Google::Apis::Core::JsonRepresentation
431
+ property :conflict_detected, as: 'conflictDetected'
432
+ property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
433
+
434
+ property :version, as: 'version'
435
+ end
436
+ end
437
+
438
+ class AllocateIdsResponse
439
+ # @private
440
+ class Representation < Google::Apis::Core::JsonRepresentation
441
+ collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
442
+
443
+ end
444
+ end
445
+
446
+ class LookupResponse
447
+ # @private
448
+ class Representation < Google::Apis::Core::JsonRepresentation
449
+ collection :found, as: 'found', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
450
+
451
+ collection :missing, as: 'missing', class: Google::Apis::DatastoreV1::EntityResult, decorator: Google::Apis::DatastoreV1::EntityResult::Representation
452
+
453
+ collection :deferred, as: 'deferred', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
454
+
455
+ end
456
+ end
457
+
458
+ class BeginTransactionRequest
459
+ # @private
460
+ class Representation < Google::Apis::Core::JsonRepresentation
461
+ end
462
+ end
463
+
464
+ class Key
465
+ # @private
466
+ class Representation < Google::Apis::Core::JsonRepresentation
467
+ property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
468
+
469
+ collection :path, as: 'path', class: Google::Apis::DatastoreV1::PathElement, decorator: Google::Apis::DatastoreV1::PathElement::Representation
470
+
471
+ end
472
+ end
473
+
474
+ class RunQueryResponse
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :batch, as: 'batch', class: Google::Apis::DatastoreV1::QueryResultBatch, decorator: Google::Apis::DatastoreV1::QueryResultBatch::Representation
478
+
479
+ property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
480
+
481
+ end
482
+ end
483
+
484
+ class Entity
485
+ # @private
486
+ class Representation < Google::Apis::Core::JsonRepresentation
487
+ hash :properties, as: 'properties', class: Google::Apis::DatastoreV1::Value, decorator: Google::Apis::DatastoreV1::Value::Representation
488
+
489
+ property :key, as: 'key', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
490
+
491
+ end
492
+ end
493
+
494
+ class GqlQuery
495
+ # @private
496
+ class Representation < Google::Apis::Core::JsonRepresentation
497
+ property :query_string, as: 'queryString'
498
+ hash :named_bindings, as: 'namedBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
499
+
500
+ property :allow_literals, as: 'allowLiterals'
501
+ collection :positional_bindings, as: 'positionalBindings', class: Google::Apis::DatastoreV1::GqlQueryParameter, decorator: Google::Apis::DatastoreV1::GqlQueryParameter::Representation
502
+
503
+ end
504
+ end
505
+
506
+ class Mutation
507
+ # @private
508
+ class Representation < Google::Apis::Core::JsonRepresentation
509
+ property :insert, as: 'insert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
510
+
511
+ property :update, as: 'update', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
512
+
513
+ property :base_version, as: 'baseVersion'
514
+ property :upsert, as: 'upsert', class: Google::Apis::DatastoreV1::Entity, decorator: Google::Apis::DatastoreV1::Entity::Representation
515
+
516
+ property :delete, as: 'delete', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
517
+
518
+ end
519
+ end
520
+
521
+ class CommitResponse
522
+ # @private
523
+ class Representation < Google::Apis::Core::JsonRepresentation
524
+ collection :mutation_results, as: 'mutationResults', class: Google::Apis::DatastoreV1::MutationResult, decorator: Google::Apis::DatastoreV1::MutationResult::Representation
525
+
526
+ property :index_updates, as: 'indexUpdates'
527
+ end
528
+ end
529
+
530
+ class RunQueryRequest
531
+ # @private
532
+ class Representation < Google::Apis::Core::JsonRepresentation
533
+ property :partition_id, as: 'partitionId', class: Google::Apis::DatastoreV1::PartitionId, decorator: Google::Apis::DatastoreV1::PartitionId::Representation
534
+
535
+ property :gql_query, as: 'gqlQuery', class: Google::Apis::DatastoreV1::GqlQuery, decorator: Google::Apis::DatastoreV1::GqlQuery::Representation
536
+
537
+ property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
538
+
539
+ property :query, as: 'query', class: Google::Apis::DatastoreV1::Query, decorator: Google::Apis::DatastoreV1::Query::Representation
540
+
541
+ end
542
+ end
543
+
544
+ class LookupRequest
545
+ # @private
546
+ class Representation < Google::Apis::Core::JsonRepresentation
547
+ property :read_options, as: 'readOptions', class: Google::Apis::DatastoreV1::ReadOptions, decorator: Google::Apis::DatastoreV1::ReadOptions::Representation
548
+
549
+ collection :keys, as: 'keys', class: Google::Apis::DatastoreV1::Key, decorator: Google::Apis::DatastoreV1::Key::Representation
550
+
551
+ end
552
+ end
553
+
554
+ class LatLng
555
+ # @private
556
+ class Representation < Google::Apis::Core::JsonRepresentation
557
+ property :latitude, as: 'latitude'
558
+ property :longitude, as: 'longitude'
559
+ end
560
+ end
561
+
562
+ class CompositeFilter
563
+ # @private
564
+ class Representation < Google::Apis::Core::JsonRepresentation
565
+ property :op, as: 'op'
566
+ collection :filters, as: 'filters', class: Google::Apis::DatastoreV1::Filter, decorator: Google::Apis::DatastoreV1::Filter::Representation
567
+
568
+ end
569
+ end
570
+ end
571
+ end
572
+ end