on develop help sign in
Regenerating gogol-datastore from latest service definition
a335a52Brendan Hay
gen/model/datastore/v1/datastore-api.jsonnew file+1075
@@ -0,0 +1,1075 @@
1+{
2+ "id": "datastore:v1",
3+ "auth": {
4+ "oauth2": {
5+ "scopes": {
6+ "https://www.googleapis.com/auth/cloud-platform": {
7+ "description": "View and manage your data across Google Cloud Platform services"
8+ },
9+ "https://www.googleapis.com/auth/datastore": {
10+ "description": "View and manage your Google Cloud Datastore data"
11+ }
12+ }
13+ }
14+ },
15+ "description": "Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application.\n",
16+ "protocol": "rest",
17+ "title": "Google Cloud Datastore API",
18+ "resources": {
19+ "projects": {
20+ "methods": {
21+ "runQuery": {
22+ "id": "datastore.projects.runQuery",
23+ "response": {
24+ "$ref": "RunQueryResponse"
25+ },
26+ "parameterOrder": [
27+ "projectId"
28+ ],
29+ "description": "Queries for entities.",
30+ "request": {
31+ "$ref": "RunQueryRequest"
32+ },
33+ "flatPath": "v1/projects/{projectId}:runQuery",
34+ "httpMethod": "POST",
35+ "parameters": {
36+ "projectId": {
37+ "description": "The ID of the project against which to make the request.",
38+ "required": true,
39+ "location": "path",
40+ "type": "string"
41+ }
42+ },
43+ "path": "v1/projects/{projectId}:runQuery",
44+ "scopes": [
45+ "https://www.googleapis.com/auth/cloud-platform",
46+ "https://www.googleapis.com/auth/datastore"
47+ ]
48+ },
49+ "beginTransaction": {
50+ "id": "datastore.projects.beginTransaction",
51+ "response": {
52+ "$ref": "BeginTransactionResponse"
53+ },
54+ "parameterOrder": [
55+ "projectId"
56+ ],
57+ "description": "Begins a new transaction.",
58+ "request": {
59+ "$ref": "BeginTransactionRequest"
60+ },
61+ "flatPath": "v1/projects/{projectId}:beginTransaction",
62+ "httpMethod": "POST",
63+ "parameters": {
64+ "projectId": {
65+ "description": "The ID of the project against which to make the request.",
66+ "required": true,
67+ "location": "path",
68+ "type": "string"
69+ }
70+ },
71+ "path": "v1/projects/{projectId}:beginTransaction",
72+ "scopes": [
73+ "https://www.googleapis.com/auth/cloud-platform",
74+ "https://www.googleapis.com/auth/datastore"
75+ ]
76+ },
77+ "allocateIds": {
78+ "id": "datastore.projects.allocateIds",
79+ "response": {
80+ "$ref": "AllocateIdsResponse"
81+ },
82+ "parameterOrder": [
83+ "projectId"
84+ ],
85+ "description": "Allocates IDs for the given keys, which is useful for referencing an entity\nbefore it is inserted.",
86+ "request": {
87+ "$ref": "AllocateIdsRequest"
88+ },
89+ "flatPath": "v1/projects/{projectId}:allocateIds",
90+ "httpMethod": "POST",
91+ "parameters": {
92+ "projectId": {
93+ "description": "The ID of the project against which to make the request.",
94+ "required": true,
95+ "location": "path",
96+ "type": "string"
97+ }
98+ },
99+ "path": "v1/projects/{projectId}:allocateIds",
100+ "scopes": [
101+ "https://www.googleapis.com/auth/cloud-platform",
102+ "https://www.googleapis.com/auth/datastore"
103+ ]
104+ },
105+ "lookup": {
106+ "id": "datastore.projects.lookup",
107+ "response": {
108+ "$ref": "LookupResponse"
109+ },
110+ "parameterOrder": [
111+ "projectId"
112+ ],
113+ "description": "Looks up entities by key.",
114+ "request": {
115+ "$ref": "LookupRequest"
116+ },
117+ "flatPath": "v1/projects/{projectId}:lookup",
118+ "httpMethod": "POST",
119+ "parameters": {
120+ "projectId": {
121+ "description": "The ID of the project against which to make the request.",
122+ "required": true,
123+ "location": "path",
124+ "type": "string"
125+ }
126+ },
127+ "path": "v1/projects/{projectId}:lookup",
128+ "scopes": [
129+ "https://www.googleapis.com/auth/cloud-platform",
130+ "https://www.googleapis.com/auth/datastore"
131+ ]
132+ },
133+ "commit": {
134+ "id": "datastore.projects.commit",
135+ "response": {
136+ "$ref": "CommitResponse"
137+ },
138+ "parameterOrder": [
139+ "projectId"
140+ ],
141+ "description": "Commits a transaction, optionally creating, deleting or modifying some\nentities.",
142+ "request": {
143+ "$ref": "CommitRequest"
144+ },
145+ "flatPath": "v1/projects/{projectId}:commit",
146+ "httpMethod": "POST",
147+ "parameters": {
148+ "projectId": {
149+ "description": "The ID of the project against which to make the request.",
150+ "required": true,
151+ "location": "path",
152+ "type": "string"
153+ }
154+ },
155+ "path": "v1/projects/{projectId}:commit",
156+ "scopes": [
157+ "https://www.googleapis.com/auth/cloud-platform",
158+ "https://www.googleapis.com/auth/datastore"
159+ ]
160+ },
161+ "rollback": {
162+ "id": "datastore.projects.rollback",
163+ "response": {
164+ "$ref": "RollbackResponse"
165+ },
166+ "parameterOrder": [
167+ "projectId"
168+ ],
169+ "description": "Rolls back a transaction.",
170+ "request": {
171+ "$ref": "RollbackRequest"
172+ },
173+ "flatPath": "v1/projects/{projectId}:rollback",
174+ "httpMethod": "POST",
175+ "parameters": {
176+ "projectId": {
177+ "description": "The ID of the project against which to make the request.",
178+ "required": true,
179+ "location": "path",
180+ "type": "string"
181+ }
182+ },
183+ "path": "v1/projects/{projectId}:rollback",
184+ "scopes": [
185+ "https://www.googleapis.com/auth/cloud-platform",
186+ "https://www.googleapis.com/auth/datastore"
187+ ]
188+ }
189+ }
190+ }
191+ },
192+ "schemas": {
193+ "Value": {
194+ "description": "A message that can hold any of the supported value types and associated\nmetadata.",
195+ "type": "object",
196+ "properties": {
197+ "stringValue": {
198+ "description": "A UTF-8 encoded string value.\nWhen `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.\nOtherwise, may be set to at least 1,000,000 bytes.",
199+ "type": "string"
200+ },
201+ "arrayValue": {
202+ "description": "An array value.\nCannot contain another array value.\nA `Value` instance that sets field `array_value` must not set fields\n`meaning` or `exclude_from_indexes`.",
203+ "$ref": "ArrayValue"
204+ },
205+ "entityValue": {
206+ "description": "An entity value.\n\n- May have no key.\n- May have a key with an incomplete key path.\n- May have a reserved/read-only key.",
207+ "$ref": "Entity"
208+ },
209+ "meaning": {
210+ "description": "The `meaning` field should only be populated for backwards compatibility.",
211+ "type": "integer",
212+ "format": "int32"
213+ },
214+ "integerValue": {
215+ "description": "An integer value.",
216+ "type": "string",
217+ "format": "int64"
218+ },
219+ "doubleValue": {
220+ "description": "A double value.",
221+ "type": "number",
222+ "format": "double"
223+ },
224+ "blobValue": {
225+ "description": "A blob value.\nMay have at most 1,000,000 bytes.\nWhen `exclude_from_indexes` is false, may have at most 1500 bytes.\nIn JSON requests, must be base64-encoded.",
226+ "type": "string",
227+ "format": "byte"
228+ },
229+ "geoPointValue": {
230+ "description": "A geo point value representing a point on the surface of Earth.",
231+ "$ref": "LatLng"
232+ },
233+ "nullValue": {
234+ "description": "A null value.",
235+ "enum": [
236+ "NULL_VALUE"
237+ ],
238+ "enumDescriptions": [
239+ "Null value."
240+ ],
241+ "type": "string"
242+ },
243+ "booleanValue": {
244+ "description": "A boolean value.",
245+ "type": "boolean"
246+ },
247+ "keyValue": {
248+ "description": "A key value.",
249+ "$ref": "Key"
250+ },
251+ "excludeFromIndexes": {
252+ "description": "If the value should be excluded from all indexes including those defined\nexplicitly.",
253+ "type": "boolean"
254+ },
255+ "timestampValue": {
256+ "description": "A timestamp value.\nWhen stored in the Datastore, precise only to microseconds;\nany additional precision is rounded down.",
257+ "type": "string",
258+ "format": "google-datetime"
259+ }
260+ },
261+ "id": "Value"
262+ },
263+ "ReadOptions": {
264+ "description": "The options shared by read requests.",
265+ "type": "object",
266+ "properties": {
267+ "transaction": {
268+ "description": "The identifier of the transaction in which to read. A\ntransaction identifier is returned by a call to\nDatastore.BeginTransaction.",
269+ "type": "string",
270+ "format": "byte"
271+ },
272+ "readConsistency": {
273+ "description": "The non-transactional read consistency to use.\nCannot be set to `STRONG` for global queries.",
274+ "enum": [
275+ "READ_CONSISTENCY_UNSPECIFIED",
276+ "STRONG",
277+ "EVENTUAL"
278+ ],
279+ "enumDescriptions": [
280+ "Unspecified. This value must not be used.",
281+ "Strong consistency.",
282+ "Eventual consistency."
283+ ],
284+ "type": "string"
285+ }
286+ },
287+ "id": "ReadOptions"
288+ },
289+ "PropertyOrder": {
290+ "description": "The desired order for a specific property.",
291+ "type": "object",
292+ "properties": {
293+ "direction": {
294+ "description": "The direction to order by. Defaults to `ASCENDING`.",
295+ "enum": [
296+ "DIRECTION_UNSPECIFIED",
297+ "ASCENDING",
298+ "DESCENDING"
299+ ],
300+ "enumDescriptions": [
301+ "Unspecified. This value must not be used.",
302+ "Ascending.",
303+ "Descending."
304+ ],
305+ "type": "string"
306+ },
307+ "property": {
308+ "description": "The property to order by.",
309+ "$ref": "PropertyReference"
310+ }
311+ },
312+ "id": "PropertyOrder"
313+ },
314+ "CommitRequest": {
315+ "description": "The request for Datastore.Commit.",
316+ "type": "object",
317+ "properties": {
318+ "transaction": {
319+ "description": "The identifier of the transaction associated with the commit. A\ntransaction identifier is returned by a call to\nDatastore.BeginTransaction.",
320+ "type": "string",
321+ "format": "byte"
322+ },
323+ "mode": {
324+ "description": "The type of commit to perform. Defaults to `TRANSACTIONAL`.",
325+ "enum": [
326+ "MODE_UNSPECIFIED",
327+ "TRANSACTIONAL",
328+ "NON_TRANSACTIONAL"
329+ ],
330+ "enumDescriptions": [
331+ "Unspecified. This value must not be used.",
332+ "Transactional: The mutations are either all applied, or none are applied.\nLearn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).",
333+ "Non-transactional: The mutations may not apply as all or none."
334+ ],
335+ "type": "string"
336+ },
337+ "mutations": {
338+ "description": "The mutations to perform.\n\nWhen mode is `TRANSACTIONAL`, mutations affecting a single entity are\napplied in order. The following sequences of mutations affecting a single\nentity are not permitted in a single `Commit` request:\n\n- `insert` followed by `insert`\n- `update` followed by `insert`\n- `upsert` followed by `insert`\n- `delete` followed by `update`\n\nWhen mode is `NON_TRANSACTIONAL`, no two mutations may affect a single\nentity.",
339+ "type": "array",
340+ "items": {
341+ "$ref": "Mutation"
342+ }
343+ }
344+ },
345+ "id": "CommitRequest"
346+ },
347+ "Query": {
348+ "description": "A query for entities.",
349+ "type": "object",
350+ "properties": {
351+ "limit": {
352+ "description": "The maximum number of results to return. Applies after all other\nconstraints. Optional.\nUnspecified is interpreted as no limit.\nMust be \u003e= 0 if specified.",
353+ "type": "integer",
354+ "format": "int32"
355+ },
356+ "filter": {
357+ "description": "The filter to apply.",
358+ "$ref": "Filter"
359+ },
360+ "endCursor": {
361+ "description": "An ending point for the query results. Query cursors are\nreturned in query result batches and\n[can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).",
362+ "type": "string",
363+ "format": "byte"
364+ },
365+ "distinctOn": {
366+ "description": "The properties to make distinct. The query results will contain the first\nresult for each distinct combination of values for the given properties\n(if empty, all results are returned).",
367+ "type": "array",
368+ "items": {
369+ "$ref": "PropertyReference"
370+ }
371+ },
372+ "offset": {
373+ "description": "The number of results to skip. Applies before limit, but after all other\nconstraints. Optional. Must be \u003e= 0 if specified.",
374+ "type": "integer",
375+ "format": "int32"
376+ },
377+ "projection": {
378+ "description": "The projection to return. Defaults to returning all properties.",
379+ "type": "array",
380+ "items": {
381+ "$ref": "Projection"
382+ }
383+ },
384+ "order": {
385+ "description": "The order to apply to the query results (if empty, order is unspecified).",
386+ "type": "array",
387+ "items": {
388+ "$ref": "PropertyOrder"
389+ }
390+ },
391+ "startCursor": {
392+ "description": "A starting point for the query results. Query cursors are\nreturned in query result batches and\n[can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).",
393+ "type": "string",
394+ "format": "byte"
395+ },
396+ "kind": {
397+ "description": "The kinds to query (if empty, returns entities of all kinds).\nCurrently at most 1 kind may be specified.",
398+ "type": "array",
399+ "items": {
400+ "$ref": "KindExpression"
401+ }
402+ }
403+ },
404+ "id": "Query"
405+ },
406+ "RollbackRequest": {
407+ "description": "The request for Datastore.Rollback.",
408+ "type": "object",
409+ "properties": {
410+ "transaction": {
411+ "description": "The transaction identifier, returned by a call to\nDatastore.BeginTransaction.",
412+ "type": "string",
413+ "format": "byte"
414+ }
415+ },
416+ "id": "RollbackRequest"
417+ },
418+ "EntityResult": {
419+ "description": "The result of fetching an entity from Datastore.",
420+ "type": "object",
421+ "properties": {
422+ "cursor": {
423+ "description": "A cursor that points to the position after the result entity.\nSet only when the `EntityResult` is part of a `QueryResultBatch` message.",
424+ "type": "string",
425+ "format": "byte"
426+ },
427+ "entity": {
428+ "description": "The resulting entity.",
429+ "$ref": "Entity"
430+ },
431+ "version": {
432+ "description": "The version of the entity, a strictly positive number that monotonically\nincreases with changes to the entity.\n\nThis field is set for `FULL` entity\nresults.\n\nFor missing entities in `LookupResponse`, this\nis the version of the snapshot that was used to look up the entity, and it\nis always set except for eventually consistent reads.",
433+ "type": "string",
434+ "format": "int64"
435+ }
436+ },
437+ "id": "EntityResult"
438+ },
439+ "GqlQueryParameter": {
440+ "description": "A binding parameter for a GQL query.",
441+ "type": "object",
442+ "properties": {
443+ "value": {
444+ "description": "A value parameter.",
445+ "$ref": "Value"
446+ },
447+ "cursor": {
448+ "description": "A query cursor. Query cursors are returned in query\nresult batches.",
449+ "type": "string",
450+ "format": "byte"
451+ }
452+ },
453+ "id": "GqlQueryParameter"
454+ },
455+ "ArrayValue": {
456+ "description": "An array value.",
457+ "type": "object",
458+ "properties": {
459+ "values": {
460+ "description": "Values in the array.\nThe order of this array may not be preserved if it contains a mix of\nindexed and unindexed values.",
461+ "type": "array",
462+ "items": {
463+ "$ref": "Value"
464+ }
465+ }
466+ },
467+ "id": "ArrayValue"
468+ },
469+ "Filter": {
470+ "description": "A holder for any type of filter.",
471+ "type": "object",
472+ "properties": {
473+ "propertyFilter": {
474+ "description": "A filter on a property.",
475+ "$ref": "PropertyFilter"
476+ },
477+ "compositeFilter": {
478+ "description": "A composite filter.",
479+ "$ref": "CompositeFilter"
480+ }
481+ },
482+ "id": "Filter"
483+ },
484+ "BeginTransactionResponse": {
485+ "description": "The response for Datastore.BeginTransaction.",
486+ "type": "object",
487+ "properties": {
488+ "transaction": {
489+ "description": "The transaction identifier (always present).",
490+ "type": "string",
491+ "format": "byte"
492+ }
493+ },
494+ "id": "BeginTransactionResponse"
495+ },
496+ "PartitionId": {
497+ "description": "A partition ID identifies a grouping of entities. The grouping is always\nby project and namespace, however the namespace ID may be empty.\n\nA partition ID contains several dimensions:\nproject ID and namespace ID.\n\nPartition dimensions:\n\n- May be `\"\"`.\n- Must be valid UTF-8 bytes.\n- Must have values that match regex `[A-Za-z\\d\\.\\-_]{1,100}`\nIf the value of any dimension matches regex `__.*__`, the partition is\nreserved/read-only.\nA reserved/read-only partition ID is forbidden in certain documented\ncontexts.\n\nForeign partition IDs (in which the project ID does\nnot match the context project ID ) are discouraged.\nReads and writes of foreign partition IDs may fail if the project is not in an active state.",
498+ "type": "object",
499+ "properties": {
500+ "namespaceId": {
501+ "description": "If not empty, the ID of the namespace to which the entities belong.",
502+ "type": "string"
503+ },
504+ "projectId": {
505+ "description": "The ID of the project to which the entities belong.",
506+ "type": "string"
507+ }
508+ },
509+ "id": "PartitionId"
510+ },
511+ "QueryResultBatch": {
512+ "description": "A batch of results produced by a query.",
513+ "type": "object",
514+ "properties": {
515+ "snapshotVersion": {
516+ "description": "The version number of the snapshot this batch was returned from.\nThis applies to the range of results from the query's `start_cursor` (or\nthe beginning of the query if no cursor was given) to this batch's\n`end_cursor` (not the query's `end_cursor`).\n\nIn a single transaction, subsequent query result batches for the same query\ncan have a greater snapshot version number. Each batch's snapshot version\nis valid for all preceding batches.",
517+ "type": "string",
518+ "format": "int64"
519+ },
520+ "endCursor": {
521+ "description": "A cursor that points to the position after the last result in the batch.",
522+ "type": "string",
523+ "format": "byte"
524+ },
525+ "skippedCursor": {
526+ "description": "A cursor that points to the position after the last skipped result.\nWill be set when `skipped_results` != 0.",
527+ "type": "string",
528+ "format": "byte"
529+ },
530+ "entityResultType": {
531+ "description": "The result type for every entity in `entity_results`.",
532+ "enum": [
533+ "RESULT_TYPE_UNSPECIFIED",
534+ "FULL",
535+ "PROJECTION",
536+ "KEY_ONLY"
537+ ],
538+ "enumDescriptions": [
539+ "Unspecified. This value is never used.",
540+ "The key and properties.",
541+ "A projected subset of properties. The entity may have no key.",
542+ "Only the key."
543+ ],
544+ "type": "string"
545+ },
546+ "moreResults": {
547+ "description": "The state of the query after the current batch.",
548+ "enum": [
549+ "MORE_RESULTS_TYPE_UNSPECIFIED",
550+ "NOT_FINISHED",
551+ "MORE_RESULTS_AFTER_LIMIT",
552+ "MORE_RESULTS_AFTER_CURSOR",
553+ "NO_MORE_RESULTS"
554+ ],
555+ "enumDescriptions": [
556+ "Unspecified. This value is never used.",
557+ "There may be additional batches to fetch from this query.",
558+ "The query is finished, but there may be more results after the limit.",
559+ "The query is finished, but there may be more results after the end\ncursor.",
560+ "The query has been exhausted."
561+ ],
562+ "type": "string"
563+ },
564+ "entityResults": {
565+ "description": "The results for this batch.",
566+ "type": "array",
567+ "items": {
568+ "$ref": "EntityResult"
569+ }
570+ },
571+ "skippedResults": {
572+ "description": "The number of results skipped, typically because of an offset.",
573+ "type": "integer",
574+ "format": "int32"
575+ }
576+ },
577+ "id": "QueryResultBatch"
578+ },
579+ "AllocateIdsRequest": {
580+ "description": "The request for Datastore.AllocateIds.",
581+ "type": "object",
582+ "properties": {
583+ "keys": {
584+ "description": "A list of keys with incomplete key paths for which to allocate IDs.\nNo key may be reserved/read-only.",
585+ "type": "array",
586+ "items": {
587+ "$ref": "Key"
588+ }
589+ }
590+ },
591+ "id": "AllocateIdsRequest"
592+ },
593+ "KindExpression": {
594+ "description": "A representation of a kind.",
595+ "type": "object",
596+ "properties": {
597+ "name": {
598+ "description": "The name of the kind.",
599+ "type": "string"
600+ }
601+ },
602+ "id": "KindExpression"
603+ },
604+ "PropertyFilter": {
605+ "description": "A filter on a specific property.",
606+ "type": "object",
607+ "properties": {
608+ "value": {
609+ "description": "The value to compare the property to.",
610+ "$ref": "Value"
611+ },
612+ "op": {
613+ "description": "The operator to filter by.",
614+ "enum": [
615+ "OPERATOR_UNSPECIFIED",
616+ "LESS_THAN",
617+ "LESS_THAN_OR_EQUAL",
618+ "GREATER_THAN",
619+ "GREATER_THAN_OR_EQUAL",
620+ "EQUAL",
621+ "HAS_ANCESTOR"
622+ ],
623+ "enumDescriptions": [
624+ "Unspecified. This value must not be used.",
625+ "Less than.",
626+ "Less than or equal.",
627+ "Greater than.",
628+ "Greater than or equal.",
629+ "Equal.",
630+ "Has ancestor."
631+ ],
632+ "type": "string"
633+ },
634+ "property": {
635+ "description": "The property to filter by.",
636+ "$ref": "PropertyReference"
637+ }
638+ },
639+ "id": "PropertyFilter"
640+ },
641+ "PathElement": {
642+ "description": "A (kind, ID/name) pair used to construct a key path.\n\nIf either name or ID is set, the element is complete.\nIf neither is set, the element is incomplete.",
643+ "type": "object",
644+ "properties": {
645+ "kind": {
646+ "description": "The kind of the entity.\nA kind matching regex `__.*__` is reserved/read-only.\nA kind must not contain more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.",
647+ "type": "string"
648+ },
649+ "id": {
650+ "description": "The auto-allocated ID of the entity.\nNever equal to zero. Values less than zero are discouraged and may not\nbe supported in the future.",
651+ "type": "string",
652+ "format": "int64"
653+ },
654+ "name": {
655+ "description": "The name of the entity.\nA name matching regex `__.*__` is reserved/read-only.\nA name must not be more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.",
656+ "type": "string"
657+ }
658+ },
659+ "id": "PathElement"
660+ },
661+ "RollbackResponse": {
662+ "description": "The response for Datastore.Rollback.\n(an empty message).",
663+ "type": "object",
664+ "properties": {},
665+ "id": "RollbackResponse"
666+ },
667+ "PropertyReference": {
668+ "description": "A reference to a property relative to the kind expressions.",
669+ "type": "object",
670+ "properties": {
671+ "name": {
672+ "description": "The name of the property.\nIf name includes \".\"s, it may be interpreted as a property name path.",
673+ "type": "string"
674+ }
675+ },
676+ "id": "PropertyReference"
677+ },
678+ "Projection": {
679+ "description": "A representation of a property in a projection.",
680+ "type": "object",
681+ "properties": {
682+ "property": {
683+ "description": "The property to project.",
684+ "$ref": "PropertyReference"
685+ }
686+ },
687+ "id": "Projection"
688+ },
689+ "MutationResult": {
690+ "description": "The result of applying a mutation.",
691+ "type": "object",
692+ "properties": {
693+ "conflictDetected": {
694+ "description": "Whether a conflict was detected for this mutation. Always false when a\nconflict detection strategy field is not set in the mutation.",
695+ "type": "boolean"
696+ },
697+ "key": {
698+ "description": "The automatically allocated key.\nSet only when the mutation allocated a key.",
699+ "$ref": "Key"
700+ },
701+ "version": {
702+ "description": "The version of the entity on the server after processing the mutation. If\nthe mutation doesn't change anything on the server, then the version will\nbe the version of the current entity or, if no entity is present, a version\nthat is strictly greater than the version of any previous entity and less\nthan the version of any possible future entity.",
703+ "type": "string",
704+ "format": "int64"
705+ }
706+ },
707+ "id": "MutationResult"
708+ },
709+ "AllocateIdsResponse": {
710+ "description": "The response for Datastore.AllocateIds.",
711+ "type": "object",
712+ "properties": {
713+ "keys": {
714+ "description": "The keys specified in the request (in the same order), each with\nits key path completed with a newly allocated ID.",
715+ "type": "array",
716+ "items": {
717+ "$ref": "Key"
718+ }
719+ }
720+ },
721+ "id": "AllocateIdsResponse"
722+ },
723+ "LookupResponse": {
724+ "description": "The response for Datastore.Lookup.",
725+ "type": "object",
726+ "properties": {
727+ "found": {
728+ "description": "Entities found as `ResultType.FULL` entities. The order of results in this\nfield is undefined and has no relation to the order of the keys in the\ninput.",
729+ "type": "array",
730+ "items": {
731+ "$ref": "EntityResult"
732+ }
733+ },
734+ "missing": {
735+ "description": "Entities not found as `ResultType.KEY_ONLY` entities. The order of results\nin this field is undefined and has no relation to the order of the keys\nin the input.",
736+ "type": "array",
737+ "items": {
738+ "$ref": "EntityResult"
739+ }
740+ },
741+ "deferred": {
742+ "description": "A list of keys that were not looked up due to resource constraints. The\norder of results in this field is undefined and has no relation to the\norder of the keys in the input.",
743+ "type": "array",
744+ "items": {
745+ "$ref": "Key"
746+ }
747+ }
748+ },
749+ "id": "LookupResponse"
750+ },
751+ "BeginTransactionRequest": {
752+ "description": "The request for Datastore.BeginTransaction.",
753+ "type": "object",
754+ "properties": {},
755+ "id": "BeginTransactionRequest"
756+ },
757+ "Key": {
758+ "description": "A unique identifier for an entity.\nIf a key's partition ID or any of its path kinds or names are\nreserved/read-only, the key is reserved/read-only.\nA reserved/read-only key is forbidden in certain documented contexts.",
759+ "type": "object",
760+ "properties": {
761+ "partitionId": {
762+ "description": "Entities are partitioned into subsets, currently identified by a project\nID and namespace ID.\nQueries are scoped to a single partition.",
763+ "$ref": "PartitionId"
764+ },
765+ "path": {
766+ "description": "The entity path.\nAn entity path consists of one or more elements composed of a kind and a\nstring or numerical identifier, which identify entities. The first\nelement identifies a _root entity_, the second element identifies\na _child_ of the root entity, the third element identifies a child of the\nsecond entity, and so forth. The entities identified by all prefixes of\nthe path are called the element's _ancestors_.\n\nAn entity path is always fully complete: *all* of the entity's ancestors\nare required to be in the path along with the entity identifier itself.\nThe only exception is that in some documented cases, the identifier in the\nlast path element (for the entity) itself may be omitted. For example,\nthe last path element of the key of `Mutation.insert` may have no\nidentifier.\n\nA path can never be empty, and a path can have at most 100 elements.",
767+ "type": "array",
768+ "items": {
769+ "$ref": "PathElement"
770+ }
771+ }
772+ },
773+ "id": "Key"
774+ },
775+ "RunQueryResponse": {
776+ "description": "The response for Datastore.RunQuery.",
777+ "type": "object",
778+ "properties": {
779+ "batch": {
780+ "description": "A batch of query results (always present).",
781+ "$ref": "QueryResultBatch"
782+ },
783+ "query": {
784+ "description": "The parsed form of the `GqlQuery` from the request, if it was set.",
785+ "$ref": "Query"
786+ }
787+ },
788+ "id": "RunQueryResponse"
789+ },
790+ "Entity": {
791+ "description": "A Datastore data object.\n\nAn entity is limited to 1 megabyte when stored. That _roughly_\ncorresponds to a limit of 1 megabyte for the serialized form of this\nmessage.",
792+ "type": "object",
793+ "properties": {
794+ "properties": {
795+ "description": "The entity's properties.\nThe map's keys are property names.\nA property name matching regex `__.*__` is reserved.\nA reserved property name is forbidden in certain documented contexts.\nThe name must not contain more than 500 characters.\nThe name cannot be `\"\"`.",
796+ "additionalProperties": {
797+ "$ref": "Value"
798+ },
799+ "type": "object"
800+ },
801+ "key": {
802+ "description": "The entity's key.\n\nAn entity must have a key, unless otherwise documented (for example,\nan entity in `Value.entity_value` may have no key).\nAn entity's kind is its key path's last element's kind,\nor null if it has no key.",
803+ "$ref": "Key"
804+ }
805+ },
806+ "id": "Entity"
807+ },
808+ "GqlQuery": {
809+ "description": "A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).",
810+ "type": "object",
811+ "properties": {
812+ "queryString": {
813+ "description": "A string of the format described\n[here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).",
814+ "type": "string"
815+ },
816+ "namedBindings": {
817+ "description": "For each non-reserved named binding site in the query string, there must be\na named parameter with that name, but not necessarily the inverse.\n\nKey must match regex `A-Za-z_$*`, must not match regex\n`__.*__`, and must not be `\"\"`.",
818+ "additionalProperties": {
819+ "$ref": "GqlQueryParameter"
820+ },
821+ "type": "object"
822+ },
823+ "allowLiterals": {
824+ "description": "When false, the query string must not contain any literals and instead must\nbind all values. For example,\n`SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while\n`SELECT * FROM Kind WHERE a = @value` is.",
825+ "type": "boolean"
826+ },
827+ "positionalBindings": {
828+ "description": "Numbered binding site @1 references the first numbered parameter,\neffectively using 1-based indexing, rather than the usual 0.\n\nFor each binding site numbered i in `query_string`, there must be an i-th\nnumbered parameter. The inverse must also be true.",
829+ "type": "array",
830+ "items": {
831+ "$ref": "GqlQueryParameter"
832+ }
833+ }
834+ },
835+ "id": "GqlQuery"
836+ },
837+ "Mutation": {
838+ "description": "A mutation to apply to an entity.",
839+ "type": "object",
840+ "properties": {
841+ "insert": {
842+ "description": "The entity to insert. The entity must not already exist.\nThe entity key's final path element may be incomplete.",
843+ "$ref": "Entity"
844+ },
845+ "update": {
846+ "description": "The entity to update. The entity must already exist.\nMust have a complete key path.",
847+ "$ref": "Entity"
848+ },
849+ "baseVersion": {
850+ "description": "The version of the entity that this mutation is being applied to. If this\ndoes not match the current version on the server, the mutation conflicts.",
851+ "type": "string",
852+ "format": "int64"
853+ },
854+ "upsert": {
855+ "description": "The entity to upsert. The entity may or may not already exist.\nThe entity key's final path element may be incomplete.",
856+ "$ref": "Entity"
857+ },
858+ "delete": {
859+ "description": "The key of the entity to delete. The entity may or may not already exist.\nMust have a complete key path and must not be reserved/read-only.",
860+ "$ref": "Key"
861+ }
862+ },
863+ "id": "Mutation"
864+ },
865+ "CommitResponse": {
866+ "description": "The response for Datastore.Commit.",
867+ "type": "object",
868+ "properties": {
869+ "mutationResults": {
870+ "description": "The result of performing the mutations.\nThe i-th mutation result corresponds to the i-th mutation in the request.",
871+ "type": "array",
872+ "items": {
873+ "$ref": "MutationResult"
874+ }
875+ },
876+ "indexUpdates": {
877+ "description": "The number of index entries updated during the commit, or zero if none were\nupdated.",
878+ "type": "integer",
879+ "format": "int32"
880+ }
881+ },
882+ "id": "CommitResponse"
883+ },
884+ "RunQueryRequest": {
885+ "description": "The request for Datastore.RunQuery.",
886+ "type": "object",
887+ "properties": {
888+ "partitionId": {
889+ "description": "Entities are partitioned into subsets, identified by a partition ID.\nQueries are scoped to a single partition.\nThis partition ID is normalized with the standard default context\npartition ID.",
890+ "$ref": "PartitionId"
891+ },
892+ "gqlQuery": {
893+ "description": "The GQL query to run.",
894+ "$ref": "GqlQuery"
895+ },
896+ "readOptions": {
897+ "description": "The options for this query.",
898+ "$ref": "ReadOptions"
899+ },
900+ "query": {
901+ "description": "The query to run.",
902+ "$ref": "Query"
903+ }
904+ },
905+ "id": "RunQueryRequest"
906+ },
907+ "LookupRequest": {
908+ "description": "The request for Datastore.Lookup.",
909+ "type": "object",
910+ "properties": {
911+ "readOptions": {
912+ "description": "The options for this lookup request.",
913+ "$ref": "ReadOptions"
914+ },
915+ "keys": {
916+ "description": "Keys of entities to look up.",
917+ "type": "array",
918+ "items": {
919+ "$ref": "Key"
920+ }
921+ }
922+ },
923+ "id": "LookupRequest"
924+ },
925+ "LatLng": {
926+ "description": "An object representing a latitude/longitude pair. This is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n\u003ca href=\"http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\"\u003eWGS84\nstandard\u003c/a\u003e. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n\n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees longitude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r \u003e 180.0 or (r == 180.0 and q \u003c= -1.0):\n return r - 360.0\n return r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], respectively.\"\"\"\n r = latitude % 360.0\n if r \u003c= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r \u003e= 270.0:\n return r - 360, NormalizeLongitude(longitude)\n else:\n return 180 - r, NormalizeLongitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLongitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)",
927+ "type": "object",
928+ "properties": {
929+ "latitude": {
930+ "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
931+ "type": "number",
932+ "format": "double"
933+ },
934+ "longitude": {
935+ "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
936+ "type": "number",
937+ "format": "double"
938+ }
939+ },
940+ "id": "LatLng"
941+ },
942+ "CompositeFilter": {
943+ "description": "A filter that merges multiple other filters using the given operator.",
944+ "type": "object",
945+ "properties": {
946+ "op": {
947+ "description": "The operator for combining multiple filters.",
948+ "enum": [
949+ "OPERATOR_UNSPECIFIED",
950+ "AND"
951+ ],
952+ "enumDescriptions": [
953+ "Unspecified. This value must not be used.",
954+ "The results are required to satisfy each of the combined filters."
955+ ],
956+ "type": "string"
957+ },
958+ "filters": {
959+ "description": "The list of filters to combine.\nMust contain at least one filter.",
960+ "type": "array",
961+ "items": {
962+ "$ref": "Filter"
963+ }
964+ }
965+ },
966+ "id": "CompositeFilter"
967+ }
968+ },
969+ "revision": "20160920",
970+ "basePath": "",
971+ "icons": {
972+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
973+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
974+ },
975+ "version_module": "True",
976+ "discoveryVersion": "v1",
977+ "baseUrl": "https://datastore.googleapis.com/",
978+ "name": "datastore",
979+ "parameters": {
980+ "access_token": {
981+ "description": "OAuth access token.",
982+ "type": "string",
983+ "location": "query"
984+ },
985+ "prettyPrint": {
986+ "description": "Returns response with indentations and line breaks.",
987+ "default": "true",
988+ "type": "boolean",
989+ "location": "query"
990+ },
991+ "key": {
992+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
993+ "type": "string",
994+ "location": "query"
995+ },
996+ "quotaUser": {
997+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
998+ "type": "string",
999+ "location": "query"
1000+ },
1001+ "pp": {
1002+ "description": "Pretty-print response.",
1003+ "default": "true",
1004+ "type": "boolean",
1005+ "location": "query"
1006+ },
1007+ "fields": {
1008+ "description": "Selector specifying which fields to include in a partial response.",
1009+ "type": "string",
1010+ "location": "query"
1011+ },
1012+ "alt": {
1013+ "description": "Data format for response.",
1014+ "location": "query",
1015+ "enum": [
1016+ "json",
1017+ "media",
1018+ "proto"
1019+ ],
1020+ "default": "json",
1021+ "enumDescriptions": [
1022+ "Responses with Content-Type of application/json",
1023+ "Media download with context-dependent Content-Type",
1024+ "Responses with Content-Type of application/x-protobuf"
1025+ ],
1026+ "type": "string"
1027+ },
1028+ "$.xgafv": {
1029+ "description": "V1 error format.",
1030+ "enum": [
1031+ "1",
1032+ "2"
1033+ ],
1034+ "enumDescriptions": [
1035+ "v1 error format",
1036+ "v2 error format"
1037+ ],
1038+ "type": "string",
1039+ "location": "query"
1040+ },
1041+ "callback": {
1042+ "description": "JSONP",
1043+ "type": "string",
1044+ "location": "query"
1045+ },
1046+ "oauth_token": {
1047+ "description": "OAuth 2.0 token for the current user.",
1048+ "type": "string",
1049+ "location": "query"
1050+ },
1051+ "uploadType": {
1052+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
1053+ "type": "string",
1054+ "location": "query"
1055+ },
1056+ "bearer_token": {
1057+ "description": "OAuth bearer token.",
1058+ "type": "string",
1059+ "location": "query"
1060+ },
1061+ "upload_protocol": {
1062+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1063+ "type": "string",
1064+ "location": "query"
1065+ }
1066+ },
1067+ "documentationLink": "https://cloud.google.com/datastore/",
1068+ "ownerDomain": "google.com",
1069+ "batchPath": "batch",
1070+ "servicePath": "",
1071+ "ownerName": "Google",
1072+ "version": "v1",
1073+ "rootUrl": "https://datastore.googleapis.com/",
1074+ "kind": "discovery#restDescription"
1075+}
gen/model/datastore/v1beta3/datastore-api.json+296−272
@@ -30,21 +30,21 @@
30 "request": {
30 "request": {
31 "$ref": "RunQueryRequest"
31 "$ref": "RunQueryRequest"
32 },
32 },
33− "httpMethod": "POST",
34 "flatPath": "v1beta3/projects/{projectId}:runQuery",
33 "flatPath": "v1beta3/projects/{projectId}:runQuery",
34+ "httpMethod": "POST",
35 "parameters": {
35 "parameters": {
36 "projectId": {
36 "projectId": {
37− "required": true,
38 "description": "The ID of the project against which to make the request.",
37 "description": "The ID of the project against which to make the request.",
38+ "required": true,
39+ "location": "path",
39− "type": "string",
40+ "type": "string"
40− "location": "path"
41 }
41 }
42 },
42 },
43+ "path": "v1beta3/projects/{projectId}:runQuery",
43 "scopes": [
44 "scopes": [
44 "https://www.googleapis.com/auth/cloud-platform",
45 "https://www.googleapis.com/auth/cloud-platform",
45 "https://www.googleapis.com/auth/datastore"
46 "https://www.googleapis.com/auth/datastore"
46− ],
47+ ]
47− "path": "v1beta3/projects/{projectId}:runQuery"
48 },
48 },
49 "beginTransaction": {
49 "beginTransaction": {
50 "id": "datastore.projects.beginTransaction",
50 "id": "datastore.projects.beginTransaction",
@@ -58,21 +58,21 @@
58 "request": {
58 "request": {
59 "$ref": "BeginTransactionRequest"
59 "$ref": "BeginTransactionRequest"
60 },
60 },
61− "httpMethod": "POST",
62 "flatPath": "v1beta3/projects/{projectId}:beginTransaction",
61 "flatPath": "v1beta3/projects/{projectId}:beginTransaction",
62+ "httpMethod": "POST",
63 "parameters": {
63 "parameters": {
64 "projectId": {
64 "projectId": {
65− "required": true,
66 "description": "The ID of the project against which to make the request.",
65 "description": "The ID of the project against which to make the request.",
66+ "required": true,
67+ "location": "path",
67− "type": "string",
68+ "type": "string"
68− "location": "path"
69 }
69 }
70 },
70 },
71+ "path": "v1beta3/projects/{projectId}:beginTransaction",
71 "scopes": [
72 "scopes": [
72 "https://www.googleapis.com/auth/cloud-platform",
73 "https://www.googleapis.com/auth/cloud-platform",
73 "https://www.googleapis.com/auth/datastore"
74 "https://www.googleapis.com/auth/datastore"
74− ],
75+ ]
75− "path": "v1beta3/projects/{projectId}:beginTransaction"
76 },
76 },
77 "allocateIds": {
77 "allocateIds": {
78 "id": "datastore.projects.allocateIds",
78 "id": "datastore.projects.allocateIds",
@@ -86,21 +86,21 @@
86 "request": {
86 "request": {
87 "$ref": "AllocateIdsRequest"
87 "$ref": "AllocateIdsRequest"
88 },
88 },
89− "httpMethod": "POST",
90 "flatPath": "v1beta3/projects/{projectId}:allocateIds",
89 "flatPath": "v1beta3/projects/{projectId}:allocateIds",
90+ "httpMethod": "POST",
91 "parameters": {
91 "parameters": {
92 "projectId": {
92 "projectId": {
93− "required": true,
94 "description": "The ID of the project against which to make the request.",
93 "description": "The ID of the project against which to make the request.",
94+ "required": true,
95+ "location": "path",
95− "type": "string",
96+ "type": "string"
96− "location": "path"
97 }
97 }
98 },
98 },
99+ "path": "v1beta3/projects/{projectId}:allocateIds",
99 "scopes": [
100 "scopes": [
100 "https://www.googleapis.com/auth/cloud-platform",
101 "https://www.googleapis.com/auth/cloud-platform",
101 "https://www.googleapis.com/auth/datastore"
102 "https://www.googleapis.com/auth/datastore"
102− ],
103+ ]
103− "path": "v1beta3/projects/{projectId}:allocateIds"
104 },
104 },
105 "lookup": {
105 "lookup": {
106 "id": "datastore.projects.lookup",
106 "id": "datastore.projects.lookup",
@@ -114,21 +114,21 @@
114 "request": {
114 "request": {
115 "$ref": "LookupRequest"
115 "$ref": "LookupRequest"
116 },
116 },
117− "httpMethod": "POST",
118 "flatPath": "v1beta3/projects/{projectId}:lookup",
117 "flatPath": "v1beta3/projects/{projectId}:lookup",
118+ "httpMethod": "POST",
119 "parameters": {
119 "parameters": {
120 "projectId": {
120 "projectId": {
121− "required": true,
122 "description": "The ID of the project against which to make the request.",
121 "description": "The ID of the project against which to make the request.",
122+ "required": true,
123+ "location": "path",
123− "type": "string",
124+ "type": "string"
124− "location": "path"
125 }
125 }
126 },
126 },
127+ "path": "v1beta3/projects/{projectId}:lookup",
127 "scopes": [
128 "scopes": [
128 "https://www.googleapis.com/auth/cloud-platform",
129 "https://www.googleapis.com/auth/cloud-platform",
129 "https://www.googleapis.com/auth/datastore"
130 "https://www.googleapis.com/auth/datastore"
130− ],
131+ ]
131− "path": "v1beta3/projects/{projectId}:lookup"
132 },
132 },
133 "commit": {
133 "commit": {
134 "id": "datastore.projects.commit",
134 "id": "datastore.projects.commit",
@@ -142,21 +142,21 @@
142 "request": {
142 "request": {
143 "$ref": "CommitRequest"
143 "$ref": "CommitRequest"
144 },
144 },
145− "httpMethod": "POST",
146 "flatPath": "v1beta3/projects/{projectId}:commit",
145 "flatPath": "v1beta3/projects/{projectId}:commit",
146+ "httpMethod": "POST",
147 "parameters": {
147 "parameters": {
148 "projectId": {
148 "projectId": {
149− "required": true,
150 "description": "The ID of the project against which to make the request.",
149 "description": "The ID of the project against which to make the request.",
150+ "required": true,
151+ "location": "path",
151− "type": "string",
152+ "type": "string"
152− "location": "path"
153 }
153 }
154 },
154 },
155+ "path": "v1beta3/projects/{projectId}:commit",
155 "scopes": [
156 "scopes": [
156 "https://www.googleapis.com/auth/cloud-platform",
157 "https://www.googleapis.com/auth/cloud-platform",
157 "https://www.googleapis.com/auth/datastore"
158 "https://www.googleapis.com/auth/datastore"
158− ],
159+ ]
159− "path": "v1beta3/projects/{projectId}:commit"
160 },
160 },
161 "rollback": {
161 "rollback": {
162 "id": "datastore.projects.rollback",
162 "id": "datastore.projects.rollback",
@@ -170,21 +170,21 @@
170 "request": {
170 "request": {
171 "$ref": "RollbackRequest"
171 "$ref": "RollbackRequest"
172 },
172 },
173− "httpMethod": "POST",
174 "flatPath": "v1beta3/projects/{projectId}:rollback",
173 "flatPath": "v1beta3/projects/{projectId}:rollback",
174+ "httpMethod": "POST",
175 "parameters": {
175 "parameters": {
176 "projectId": {
176 "projectId": {
177− "required": true,
178 "description": "The ID of the project against which to make the request.",
177 "description": "The ID of the project against which to make the request.",
178+ "required": true,
179+ "location": "path",
179− "type": "string",
180+ "type": "string"
180− "location": "path"
181 }
181 }
182 },
182 },
183+ "path": "v1beta3/projects/{projectId}:rollback",
183 "scopes": [
184 "scopes": [
184 "https://www.googleapis.com/auth/cloud-platform",
185 "https://www.googleapis.com/auth/cloud-platform",
185 "https://www.googleapis.com/auth/datastore"
186 "https://www.googleapis.com/auth/datastore"
186− ],
187+ ]
187− "path": "v1beta3/projects/{projectId}:rollback"
188 }
188 }
189 }
189 }
190 }
190 }
@@ -192,6 +192,7 @@
192 "schemas": {
192 "schemas": {
193 "Value": {
193 "Value": {
194 "description": "A message that can hold any of the supported value types and associated\nmetadata.",
194 "description": "A message that can hold any of the supported value types and associated\nmetadata.",
195+ "type": "object",
195 "properties": {
196 "properties": {
196 "stringValue": {
197 "stringValue": {
197 "description": "A UTF-8 encoded string value.\nWhen `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.\nOtherwise, may be set to at least 1,000,000 bytes.",
198 "description": "A UTF-8 encoded string value.\nWhen `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes.\nOtherwise, may be set to at least 1,000,000 bytes.",
@@ -220,33 +221,33 @@
220 "type": "number",
221 "type": "number",
221 "format": "double"
222 "format": "double"
222 },
223 },
223− "geoPointValue": {
224− "description": "A geo point value representing a point on the surface of Earth.",
225− "$ref": "LatLng"
226− },
227 "blobValue": {
224 "blobValue": {
228 "description": "A blob value.\nMay have at most 1,000,000 bytes.\nWhen `exclude_from_indexes` is false, may have at most 1500 bytes.\nIn JSON requests, must be base64-encoded.",
225 "description": "A blob value.\nMay have at most 1,000,000 bytes.\nWhen `exclude_from_indexes` is false, may have at most 1500 bytes.\nIn JSON requests, must be base64-encoded.",
229 "type": "string",
226 "type": "string",
230 "format": "byte"
227 "format": "byte"
231 },
228 },
229+ "geoPointValue": {
230+ "description": "A geo point value representing a point on the surface of Earth.",
231+ "$ref": "LatLng"
232+ },
232 "nullValue": {
233 "nullValue": {
234+ "description": "A null value.",
233 "enum": [
235 "enum": [
234 "NULL_VALUE"
236 "NULL_VALUE"
235 ],
237 ],
236− "description": "A null value.",
237 "enumDescriptions": [
238 "enumDescriptions": [
238 "Null value."
239 "Null value."
239 ],
240 ],
240 "type": "string"
241 "type": "string"
241 },
242 },
242− "keyValue": {
243− "description": "A key value.",
244− "$ref": "Key"
245− },
246 "booleanValue": {
243 "booleanValue": {
247 "description": "A boolean value.",
244 "description": "A boolean value.",
248 "type": "boolean"
245 "type": "boolean"
249 },
246 },
247+ "keyValue": {
248+ "description": "A key value.",
249+ "$ref": "Key"
250+ },
250 "excludeFromIndexes": {
251 "excludeFromIndexes": {
251 "description": "If the value should be excluded from all indexes including those defined\nexplicitly.",
252 "description": "If the value should be excluded from all indexes including those defined\nexplicitly.",
252 "type": "boolean"
253 "type": "boolean"
@@ -257,24 +258,24 @@
257 "format": "google-datetime"
258 "format": "google-datetime"
258 }
259 }
259 },
260 },
260− "type": "object",
261 "id": "Value"
261 "id": "Value"
262 },
262 },
263 "ReadOptions": {
263 "ReadOptions": {
264 "description": "The options shared by read requests.",
264 "description": "The options shared by read requests.",
265+ "type": "object",
265 "properties": {
266 "properties": {
266 "transaction": {
267 "transaction": {
267− "description": "The identifier of the transaction in which to read. A\ntransaction identifier is returned by a call to\nBeginTransaction.",
268+ "description": "The identifier of the transaction in which to read. A\ntransaction identifier is returned by a call to\nDatastore.BeginTransaction.",
268 "type": "string",
269 "type": "string",
269 "format": "byte"
270 "format": "byte"
270 },
271 },
271 "readConsistency": {
272 "readConsistency": {
273+ "description": "The non-transactional read consistency to use.\nCannot be set to `STRONG` for global queries.",
272 "enum": [
274 "enum": [
273 "READ_CONSISTENCY_UNSPECIFIED",
275 "READ_CONSISTENCY_UNSPECIFIED",
274 "STRONG",
276 "STRONG",
275 "EVENTUAL"
277 "EVENTUAL"
276 ],
278 ],
277− "description": "The non-transactional read consistency to use.\nCannot be set to `STRONG` for global queries.",
278 "enumDescriptions": [
279 "enumDescriptions": [
279 "Unspecified. This value must not be used.",
280 "Unspecified. This value must not be used.",
280 "Strong consistency.",
281 "Strong consistency.",
@@ -283,19 +284,19 @@
283 "type": "string"
284 "type": "string"
284 }
285 }
285 },
286 },
286− "type": "object",
287 "id": "ReadOptions"
287 "id": "ReadOptions"
288 },
288 },
289 "PropertyOrder": {
289 "PropertyOrder": {
290 "description": "The desired order for a specific property.",
290 "description": "The desired order for a specific property.",
291+ "type": "object",
291 "properties": {
292 "properties": {
292 "direction": {
293 "direction": {
294+ "description": "The direction to order by. Defaults to `ASCENDING`.",
293 "enum": [
295 "enum": [
294 "DIRECTION_UNSPECIFIED",
296 "DIRECTION_UNSPECIFIED",
295 "ASCENDING",
297 "ASCENDING",
296 "DESCENDING"
298 "DESCENDING"
297 ],
299 ],
298− "description": "The direction to order by. Defaults to `ASCENDING`.",
299 "enumDescriptions": [
300 "enumDescriptions": [
300 "Unspecified. This value must not be used.",
301 "Unspecified. This value must not be used.",
301 "Ascending.",
302 "Ascending.",
@@ -308,56 +309,44 @@
308 "$ref": "PropertyReference"
309 "$ref": "PropertyReference"
309 }
310 }
310 },
311 },
311− "type": "object",
312 "id": "PropertyOrder"
312 "id": "PropertyOrder"
313 },
313 },
314 "CommitRequest": {
314 "CommitRequest": {
315− "description": "The request for google.datastore.v1beta3.Datastore.Commit.",
315+ "description": "The request for Datastore.Commit.",
316+ "type": "object",
316 "properties": {
317 "properties": {
317 "transaction": {
318 "transaction": {
318− "description": "The identifier of the transaction associated with the commit. A\ntransaction identifier is returned by a call to\nBeginTransaction.",
319+ "description": "The identifier of the transaction associated with the commit. A\ntransaction identifier is returned by a call to\nDatastore.BeginTransaction.",
319 "type": "string",
320 "type": "string",
320 "format": "byte"
321 "format": "byte"
321 },
322 },
322− "mutations": {
323− "description": "The mutations to perform.\n\nWhen mode is `TRANSACTIONAL`, mutations affecting a single entity are\napplied in order. The following sequences of mutations affecting a single\nentity are not permitted in a single `Commit` request:\n\n- `insert` followed by `insert`\n- `update` followed by `insert`\n- `upsert` followed by `insert`\n- `delete` followed by `update`\n\nWhen mode is `NON_TRANSACTIONAL`, no two mutations may affect a single\nentity.",
324− "type": "array",
325− "items": {
326− "$ref": "Mutation"
327− }
328− },
329 "mode": {
323 "mode": {
324+ "description": "The type of commit to perform. Defaults to `TRANSACTIONAL`.",
330 "enum": [
325 "enum": [
331 "MODE_UNSPECIFIED",
326 "MODE_UNSPECIFIED",
332 "TRANSACTIONAL",
327 "TRANSACTIONAL",
333 "NON_TRANSACTIONAL"
328 "NON_TRANSACTIONAL"
334 ],
329 ],
335− "description": "The type of commit to perform. Defaults to `TRANSACTIONAL`.",
336 "enumDescriptions": [
330 "enumDescriptions": [
337 "Unspecified. This value must not be used.",
331 "Unspecified. This value must not be used.",
338 "Transactional: The mutations are either all applied, or none are applied.\nLearn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).",
332 "Transactional: The mutations are either all applied, or none are applied.\nLearn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).",
339 "Non-transactional: The mutations may not apply as all or none."
333 "Non-transactional: The mutations may not apply as all or none."
340 ],
334 ],
341 "type": "string"
335 "type": "string"
336+ },
337+ "mutations": {
338+ "description": "The mutations to perform.\n\nWhen mode is `TRANSACTIONAL`, mutations affecting a single entity are\napplied in order. The following sequences of mutations affecting a single\nentity are not permitted in a single `Commit` request:\n\n- `insert` followed by `insert`\n- `update` followed by `insert`\n- `upsert` followed by `insert`\n- `delete` followed by `update`\n\nWhen mode is `NON_TRANSACTIONAL`, no two mutations may affect a single\nentity.",
339+ "type": "array",
340+ "items": {
341+ "$ref": "Mutation"
342+ }
342 }
343 }
343 },
344 },
344− "type": "object",
345 "id": "CommitRequest"
345 "id": "CommitRequest"
346 },
346 },
347− "RollbackRequest": {
348− "description": "The request for google.datastore.v1beta3.Datastore.Rollback.",
349− "properties": {
350− "transaction": {
351− "description": "The transaction identifier, returned by a call to\ngoogle.datastore.v1beta3.Datastore.BeginTransaction.",
352− "type": "string",
353− "format": "byte"
354− }
355− },
356− "type": "object",
357− "id": "RollbackRequest"
358− },
359 "Query": {
347 "Query": {
360 "description": "A query for entities.",
348 "description": "A query for entities.",
349+ "type": "object",
361 "properties": {
350 "properties": {
362 "limit": {
351 "limit": {
363 "description": "The maximum number of results to return. Applies after all other\nconstraints. Optional.\nUnspecified is interpreted as no limit.\nMust be \u003e= 0 if specified.",
352 "description": "The maximum number of results to return. Applies after all other\nconstraints. Optional.\nUnspecified is interpreted as no limit.\nMust be \u003e= 0 if specified.",
@@ -392,11 +381,6 @@
392 "$ref": "Projection"
381 "$ref": "Projection"
393 }
382 }
394 },
383 },
395− "startCursor": {
396− "description": "A starting point for the query results. Query cursors are\nreturned in query result batches and\n[can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).",
397− "type": "string",
398− "format": "byte"
399− },
400 "order": {
384 "order": {
401 "description": "The order to apply to the query results (if empty, order is unspecified).",
385 "description": "The order to apply to the query results (if empty, order is unspecified).",
402 "type": "array",
386 "type": "array",
@@ -404,6 +388,11 @@
404 "$ref": "PropertyOrder"
388 "$ref": "PropertyOrder"
405 }
389 }
406 },
390 },
391+ "startCursor": {
392+ "description": "A starting point for the query results. Query cursors are\nreturned in query result batches and\n[can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).",
393+ "type": "string",
394+ "format": "byte"
395+ },
407 "kind": {
396 "kind": {
408 "description": "The kinds to query (if empty, returns entities of all kinds).\nCurrently at most 1 kind may be specified.",
397 "description": "The kinds to query (if empty, returns entities of all kinds).\nCurrently at most 1 kind may be specified.",
409 "type": "array",
398 "type": "array",
@@ -412,11 +401,23 @@
412 }
401 }
413 }
402 }
414 },
403 },
415− "type": "object",
416 "id": "Query"
404 "id": "Query"
417 },
405 },
406+ "RollbackRequest": {
407+ "description": "The request for Datastore.Rollback.",
408+ "type": "object",
409+ "properties": {
410+ "transaction": {
411+ "description": "The transaction identifier, returned by a call to\nDatastore.BeginTransaction.",
412+ "type": "string",
413+ "format": "byte"
414+ }
415+ },
416+ "id": "RollbackRequest"
417+ },
418 "EntityResult": {
418 "EntityResult": {
419 "description": "The result of fetching an entity from Datastore.",
419 "description": "The result of fetching an entity from Datastore.",
420+ "type": "object",
420 "properties": {
421 "properties": {
421 "cursor": {
422 "cursor": {
422 "description": "A cursor that points to the position after the result entity.\nSet only when the `EntityResult` is part of a `QueryResultBatch` message.",
423 "description": "A cursor that points to the position after the result entity.\nSet only when the `EntityResult` is part of a `QueryResultBatch` message.",
@@ -426,41 +427,48 @@
426 "entity": {
427 "entity": {
427 "description": "The resulting entity.",
428 "description": "The resulting entity.",
428 "$ref": "Entity"
429 "$ref": "Entity"
430+ },
431+ "version": {
432+ "description": "The version of the entity, a strictly positive number that monotonically\nincreases with changes to the entity.\n\nThis field is set for `FULL` entity\nresults.\n\nFor missing entities in `LookupResponse`, this\nis the version of the snapshot that was used to look up the entity, and it\nis always set except for eventually consistent reads.",
433+ "type": "string",
434+ "format": "int64"
429 }
435 }
430 },
436 },
431− "type": "object",
432 "id": "EntityResult"
437 "id": "EntityResult"
433 },
438 },
434 "GqlQueryParameter": {
439 "GqlQueryParameter": {
435 "description": "A binding parameter for a GQL query.",
440 "description": "A binding parameter for a GQL query.",
441+ "type": "object",
436 "properties": {
442 "properties": {
443+ "value": {
444+ "description": "A value parameter.",
445+ "$ref": "Value"
446+ },
437 "cursor": {
447 "cursor": {
438 "description": "A query cursor. Query cursors are returned in query\nresult batches.",
448 "description": "A query cursor. Query cursors are returned in query\nresult batches.",
439 "type": "string",
449 "type": "string",
440 "format": "byte"
450 "format": "byte"
441− },
442− "value": {
443− "description": "A value parameter.",
444− "$ref": "Value"
445 }
451 }
446 },
452 },
447− "type": "object",
448 "id": "GqlQueryParameter"
453 "id": "GqlQueryParameter"
449 },
454 },
450− "BeginTransactionResponse": {
455+ "ArrayValue": {
451− "description": "The response for google.datastore.v1beta3.Datastore.BeginTransaction.",
456+ "description": "An array value.",
457+ "type": "object",
452 "properties": {
458 "properties": {
453− "transaction": {
459+ "values": {
454− "description": "The transaction identifier (always present).",
460+ "description": "Values in the array.\nThe order of this array may not be preserved if it contains a mix of\nindexed and unindexed values.",
455− "type": "string",
461+ "type": "array",
456− "format": "byte"
462+ "items": {
463+ "$ref": "Value"
464+ }
457 }
465 }
458 },
466 },
459− "type": "object",
467+ "id": "ArrayValue"
460− "id": "BeginTransactionResponse"
461 },
468 },
462 "Filter": {
469 "Filter": {
463 "description": "A holder for any type of filter.",
470 "description": "A holder for any type of filter.",
471+ "type": "object",
464 "properties": {
472 "properties": {
465 "propertyFilter": {
473 "propertyFilter": {
466 "description": "A filter on a property.",
474 "description": "A filter on a property.",
@@ -471,25 +479,23 @@
471 "$ref": "CompositeFilter"
479 "$ref": "CompositeFilter"
472 }
480 }
473 },
481 },
474− "type": "object",
475 "id": "Filter"
482 "id": "Filter"
476 },
483 },
477− "ArrayValue": {
484+ "BeginTransactionResponse": {
478− "description": "An array value.",
485+ "description": "The response for Datastore.BeginTransaction.",
486+ "type": "object",
479 "properties": {
487 "properties": {
480− "values": {
488+ "transaction": {
481− "description": "Values in the array.\nThe order of this array may not be preserved if it contains a mix of\nindexed and unindexed values.",
489+ "description": "The transaction identifier (always present).",
482− "type": "array",
490+ "type": "string",
483− "items": {
491+ "format": "byte"
484− "$ref": "Value"
485− }
486 }
492 }
487 },
493 },
488− "type": "object",
494+ "id": "BeginTransactionResponse"
489− "id": "ArrayValue"
490 },
495 },
491 "PartitionId": {
496 "PartitionId": {
492 "description": "A partition ID identifies a grouping of entities. The grouping is always\nby project and namespace, however the namespace ID may be empty.\n\nA partition ID contains several dimensions:\nproject ID and namespace ID.\n\nPartition dimensions:\n\n- May be `\"\"`.\n- Must be valid UTF-8 bytes.\n- Must have values that match regex `[A-Za-z\\d\\.\\-_]{1,100}`\nIf the value of any dimension matches regex `__.*__`, the partition is\nreserved/read-only.\nA reserved/read-only partition ID is forbidden in certain documented\ncontexts.\n\nForeign partition IDs (in which the project ID does\nnot match the context project ID ) are discouraged.\nReads and writes of foreign partition IDs may fail if the project is not in an active state.",
497 "description": "A partition ID identifies a grouping of entities. The grouping is always\nby project and namespace, however the namespace ID may be empty.\n\nA partition ID contains several dimensions:\nproject ID and namespace ID.\n\nPartition dimensions:\n\n- May be `\"\"`.\n- Must be valid UTF-8 bytes.\n- Must have values that match regex `[A-Za-z\\d\\.\\-_]{1,100}`\nIf the value of any dimension matches regex `__.*__`, the partition is\nreserved/read-only.\nA reserved/read-only partition ID is forbidden in certain documented\ncontexts.\n\nForeign partition IDs (in which the project ID does\nnot match the context project ID ) are discouraged.\nReads and writes of foreign partition IDs may fail if the project is not in an active state.",
498+ "type": "object",
493 "properties": {
499 "properties": {
494 "namespaceId": {
500 "namespaceId": {
495 "description": "If not empty, the ID of the namespace to which the entities belong.",
501 "description": "If not empty, the ID of the namespace to which the entities belong.",
@@ -500,12 +506,17 @@
500 "type": "string"
506 "type": "string"
501 }
507 }
502 },
508 },
503− "type": "object",
504 "id": "PartitionId"
509 "id": "PartitionId"
505 },
510 },
506 "QueryResultBatch": {
511 "QueryResultBatch": {
507 "description": "A batch of results produced by a query.",
512 "description": "A batch of results produced by a query.",
513+ "type": "object",
508 "properties": {
514 "properties": {
515+ "snapshotVersion": {
516+ "description": "The version number of the snapshot this batch was returned from.\nThis applies to the range of results from the query's `start_cursor` (or\nthe beginning of the query if no cursor was given) to this batch's\n`end_cursor` (not the query's `end_cursor`).\n\nIn a single transaction, subsequent query result batches for the same query\ncan have a greater snapshot version number. Each batch's snapshot version\nis valid for all preceding batches.",
517+ "type": "string",
518+ "format": "int64"
519+ },
509 "endCursor": {
520 "endCursor": {
510 "description": "A cursor that points to the position after the last result in the batch.",
521 "description": "A cursor that points to the position after the last result in the batch.",
511 "type": "string",
522 "type": "string",
@@ -517,13 +528,13 @@
517 "format": "byte"
528 "format": "byte"
518 },
529 },
519 "entityResultType": {
530 "entityResultType": {
531+ "description": "The result type for every entity in `entity_results`.",
520 "enum": [
532 "enum": [
521 "RESULT_TYPE_UNSPECIFIED",
533 "RESULT_TYPE_UNSPECIFIED",
522 "FULL",
534 "FULL",
523 "PROJECTION",
535 "PROJECTION",
524 "KEY_ONLY"
536 "KEY_ONLY"
525 ],
537 ],
526− "description": "The result type for every entity in `entity_results`.",
527 "enumDescriptions": [
538 "enumDescriptions": [
528 "Unspecified. This value is never used.",
539 "Unspecified. This value is never used.",
529 "The key and properties.",
540 "The key and properties.",
@@ -533,6 +544,7 @@
533 "type": "string"
544 "type": "string"
534 },
545 },
535 "moreResults": {
546 "moreResults": {
547+ "description": "The state of the query after the current batch.",
536 "enum": [
548 "enum": [
537 "MORE_RESULTS_TYPE_UNSPECIFIED",
549 "MORE_RESULTS_TYPE_UNSPECIFIED",
538 "NOT_FINISHED",
550 "NOT_FINISHED",
@@ -540,12 +552,11 @@
540 "MORE_RESULTS_AFTER_CURSOR",
552 "MORE_RESULTS_AFTER_CURSOR",
541 "NO_MORE_RESULTS"
553 "NO_MORE_RESULTS"
542 ],
554 ],
543− "description": "The state of the query after the current batch.",
544 "enumDescriptions": [
555 "enumDescriptions": [
545 "Unspecified. This value is never used.",
556 "Unspecified. This value is never used.",
546 "There may be additional batches to fetch from this query.",
557 "There may be additional batches to fetch from this query.",
547 "The query is finished, but there may be more results after the limit.",
558 "The query is finished, but there may be more results after the limit.",
548− "The query is finished, but there may be more results after the end cursor.",
559+ "The query is finished, but there may be more results after the end\ncursor.",
549 "The query has been exhausted."
560 "The query has been exhausted."
550 ],
561 ],
551 "type": "string"
562 "type": "string"
@@ -563,11 +574,11 @@
563 "format": "int32"
574 "format": "int32"
564 }
575 }
565 },
576 },
566− "type": "object",
567 "id": "QueryResultBatch"
577 "id": "QueryResultBatch"
568 },
578 },
569 "AllocateIdsRequest": {
579 "AllocateIdsRequest": {
570− "description": "The request for google.datastore.v1beta3.Datastore.AllocateIds.",
580+ "description": "The request for Datastore.AllocateIds.",
581+ "type": "object",
571 "properties": {
582 "properties": {
572 "keys": {
583 "keys": {
573 "description": "A list of keys with incomplete key paths for which to allocate IDs.\nNo key may be reserved/read-only.",
584 "description": "A list of keys with incomplete key paths for which to allocate IDs.\nNo key may be reserved/read-only.",
@@ -577,17 +588,29 @@
577 }
588 }
578 }
589 }
579 },
590 },
580− "type": "object",
581 "id": "AllocateIdsRequest"
591 "id": "AllocateIdsRequest"
582 },
592 },
593+ "KindExpression": {
594+ "description": "A representation of a kind.",
595+ "type": "object",
596+ "properties": {
597+ "name": {
598+ "description": "The name of the kind.",
599+ "type": "string"
600+ }
601+ },
602+ "id": "KindExpression"
603+ },
583 "PropertyFilter": {
604 "PropertyFilter": {
584 "description": "A filter on a specific property.",
605 "description": "A filter on a specific property.",
606+ "type": "object",
585 "properties": {
607 "properties": {
586 "value": {
608 "value": {
587 "description": "The value to compare the property to.",
609 "description": "The value to compare the property to.",
588 "$ref": "Value"
610 "$ref": "Value"
589 },
611 },
590 "op": {
612 "op": {
613+ "description": "The operator to filter by.",
591 "enum": [
614 "enum": [
592 "OPERATOR_UNSPECIFIED",
615 "OPERATOR_UNSPECIFIED",
593 "LESS_THAN",
616 "LESS_THAN",
@@ -597,7 +620,6 @@
597 "EQUAL",
620 "EQUAL",
598 "HAS_ANCESTOR"
621 "HAS_ANCESTOR"
599 ],
622 ],
600− "description": "The operator to filter by.",
601 "enumDescriptions": [
623 "enumDescriptions": [
602 "Unspecified. This value must not be used.",
624 "Unspecified. This value must not be used.",
603 "Less than.",
625 "Less than.",
@@ -614,70 +636,79 @@
614 "$ref": "PropertyReference"
636 "$ref": "PropertyReference"
615 }
637 }
616 },
638 },
617− "type": "object",
618 "id": "PropertyFilter"
639 "id": "PropertyFilter"
619 },
640 },
620− "KindExpression": {
621− "description": "A representation of a kind.",
622− "properties": {
623− "name": {
624− "description": "The name of the kind.",
625− "type": "string"
626− }
627− },
628− "type": "object",
629− "id": "KindExpression"
630− },
631 "PathElement": {
641 "PathElement": {
632 "description": "A (kind, ID/name) pair used to construct a key path.\n\nIf either name or ID is set, the element is complete.\nIf neither is set, the element is incomplete.",
642 "description": "A (kind, ID/name) pair used to construct a key path.\n\nIf either name or ID is set, the element is complete.\nIf neither is set, the element is incomplete.",
643+ "type": "object",
633 "properties": {
644 "properties": {
634 "kind": {
645 "kind": {
635 "description": "The kind of the entity.\nA kind matching regex `__.*__` is reserved/read-only.\nA kind must not contain more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.",
646 "description": "The kind of the entity.\nA kind matching regex `__.*__` is reserved/read-only.\nA kind must not contain more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.",
636 "type": "string"
647 "type": "string"
637 },
648 },
638− "name": {
639− "description": "The name of the entity.\nA name matching regex `__.*__` is reserved/read-only.\nA name must not be more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.",
640− "type": "string"
641− },
642 "id": {
649 "id": {
643 "description": "The auto-allocated ID of the entity.\nNever equal to zero. Values less than zero are discouraged and may not\nbe supported in the future.",
650 "description": "The auto-allocated ID of the entity.\nNever equal to zero. Values less than zero are discouraged and may not\nbe supported in the future.",
644 "type": "string",
651 "type": "string",
645 "format": "int64"
652 "format": "int64"
653+ },
654+ "name": {
655+ "description": "The name of the entity.\nA name matching regex `__.*__` is reserved/read-only.\nA name must not be more than 1500 bytes when UTF-8 encoded.\nCannot be `\"\"`.",
656+ "type": "string"
646 }
657 }
647 },
658 },
648− "type": "object",
649 "id": "PathElement"
659 "id": "PathElement"
650 },
660 },
651 "RollbackResponse": {
661 "RollbackResponse": {
652− "description": "The response for google.datastore.v1beta3.Datastore.Rollback\n(an empty message).",
662+ "description": "The response for Datastore.Rollback.\n(an empty message).",
653− "properties": {},
654 "type": "object",
663 "type": "object",
664+ "properties": {},
655 "id": "RollbackResponse"
665 "id": "RollbackResponse"
656 },
666 },
657 "PropertyReference": {
667 "PropertyReference": {
658 "description": "A reference to a property relative to the kind expressions.",
668 "description": "A reference to a property relative to the kind expressions.",
669+ "type": "object",
659 "properties": {
670 "properties": {
660 "name": {
671 "name": {
661 "description": "The name of the property.\nIf name includes \".\"s, it may be interpreted as a property name path.",
672 "description": "The name of the property.\nIf name includes \".\"s, it may be interpreted as a property name path.",
662 "type": "string"
673 "type": "string"
663 }
674 }
664 },
675 },
665− "type": "object",
666 "id": "PropertyReference"
676 "id": "PropertyReference"
667 },
677 },
668 "Projection": {
678 "Projection": {
669 "description": "A representation of a property in a projection.",
679 "description": "A representation of a property in a projection.",
680+ "type": "object",
670 "properties": {
681 "properties": {
671 "property": {
682 "property": {
672 "description": "The property to project.",
683 "description": "The property to project.",
673 "$ref": "PropertyReference"
684 "$ref": "PropertyReference"
674 }
685 }
675 },
686 },
676− "type": "object",
677 "id": "Projection"
687 "id": "Projection"
678 },
688 },
689+ "MutationResult": {
690+ "description": "The result of applying a mutation.",
691+ "type": "object",
692+ "properties": {
693+ "conflictDetected": {
694+ "description": "Whether a conflict was detected for this mutation. Always false when a\nconflict detection strategy field is not set in the mutation.",
695+ "type": "boolean"
696+ },
697+ "key": {
698+ "description": "The automatically allocated key.\nSet only when the mutation allocated a key.",
699+ "$ref": "Key"
700+ },
701+ "version": {
702+ "description": "The version of the entity on the server after processing the mutation. If\nthe mutation doesn't change anything on the server, then the version will\nbe the version of the current entity or, if no entity is present, a version\nthat is strictly greater than the version of any previous entity and less\nthan the version of any possible future entity.",
703+ "type": "string",
704+ "format": "int64"
705+ }
706+ },
707+ "id": "MutationResult"
708+ },
679 "AllocateIdsResponse": {
709 "AllocateIdsResponse": {
680− "description": "The response for google.datastore.v1beta3.Datastore.AllocateIds.",
710+ "description": "The response for Datastore.AllocateIds.",
711+ "type": "object",
681 "properties": {
712 "properties": {
682 "keys": {
713 "keys": {
683 "description": "The keys specified in the request (in the same order), each with\nits key path completed with a newly allocated ID.",
714 "description": "The keys specified in the request (in the same order), each with\nits key path completed with a newly allocated ID.",
@@ -687,22 +718,11 @@
687 }
718 }
688 }
719 }
689 },
720 },
690− "type": "object",
691 "id": "AllocateIdsResponse"
721 "id": "AllocateIdsResponse"
692 },
722 },
693− "MutationResult": {
694− "description": "The result of applying a mutation.",
695− "properties": {
696− "key": {
697− "description": "The automatically allocated key.\nSet only when the mutation allocated a key.",
698− "$ref": "Key"
699− }
700− },
701− "type": "object",
702− "id": "MutationResult"
703− },
704 "LookupResponse": {
723 "LookupResponse": {
705− "description": "The response for google.datastore.v1beta3.Datastore.Lookup.",
724+ "description": "The response for Datastore.Lookup.",
725+ "type": "object",
706 "properties": {
726 "properties": {
707 "found": {
727 "found": {
708 "description": "Entities found as `ResultType.FULL` entities. The order of results in this\nfield is undefined and has no relation to the order of the keys in the\ninput.",
728 "description": "Entities found as `ResultType.FULL` entities. The order of results in this\nfield is undefined and has no relation to the order of the keys in the\ninput.",
@@ -711,32 +731,32 @@
711 "$ref": "EntityResult"
731 "$ref": "EntityResult"
712 }
732 }
713 },
733 },
714− "deferred": {
734+ "missing": {
715− "description": "A list of keys that were not looked up due to resource constraints. The\norder of results in this field is undefined and has no relation to the\norder of the keys in the input.",
735+ "description": "Entities not found as `ResultType.KEY_ONLY` entities. The order of results\nin this field is undefined and has no relation to the order of the keys\nin the input.",
716 "type": "array",
736 "type": "array",
717 "items": {
737 "items": {
718− "$ref": "Key"
738+ "$ref": "EntityResult"
719 }
739 }
720 },
740 },
721− "missing": {
741+ "deferred": {
722− "description": "Entities not found as `ResultType.KEY_ONLY` entities. The order of results\nin this field is undefined and has no relation to the order of the keys\nin the input.",
742+ "description": "A list of keys that were not looked up due to resource constraints. The\norder of results in this field is undefined and has no relation to the\norder of the keys in the input.",
723 "type": "array",
743 "type": "array",
724 "items": {
744 "items": {
725− "$ref": "EntityResult"
745+ "$ref": "Key"
726 }
746 }
727 }
747 }
728 },
748 },
729− "type": "object",
730 "id": "LookupResponse"
749 "id": "LookupResponse"
731 },
750 },
732 "BeginTransactionRequest": {
751 "BeginTransactionRequest": {
733− "description": "The request for google.datastore.v1beta3.Datastore.BeginTransaction.",
752+ "description": "The request for Datastore.BeginTransaction.",
734− "properties": {},
735 "type": "object",
753 "type": "object",
754+ "properties": {},
736 "id": "BeginTransactionRequest"
755 "id": "BeginTransactionRequest"
737 },
756 },
738 "Key": {
757 "Key": {
739 "description": "A unique identifier for an entity.\nIf a key's partition ID or any of its path kinds or names are\nreserved/read-only, the key is reserved/read-only.\nA reserved/read-only key is forbidden in certain documented contexts.",
758 "description": "A unique identifier for an entity.\nIf a key's partition ID or any of its path kinds or names are\nreserved/read-only, the key is reserved/read-only.\nA reserved/read-only key is forbidden in certain documented contexts.",
759+ "type": "object",
740 "properties": {
760 "properties": {
741 "partitionId": {
761 "partitionId": {
742 "description": "Entities are partitioned into subsets, currently identified by a project\nID and namespace ID.\nQueries are scoped to a single partition.",
762 "description": "Entities are partitioned into subsets, currently identified by a project\nID and namespace ID.\nQueries are scoped to a single partition.",
@@ -750,11 +770,11 @@
750 }
770 }
751 }
771 }
752 },
772 },
753− "type": "object",
754 "id": "Key"
773 "id": "Key"
755 },
774 },
756 "RunQueryResponse": {
775 "RunQueryResponse": {
757− "description": "The response for google.datastore.v1beta3.Datastore.RunQuery.",
776+ "description": "The response for Datastore.RunQuery.",
777+ "type": "object",
758 "properties": {
778 "properties": {
759 "batch": {
779 "batch": {
760 "description": "A batch of query results (always present).",
780 "description": "A batch of query results (always present).",
@@ -765,17 +785,17 @@
765 "$ref": "Query"
785 "$ref": "Query"
766 }
786 }
767 },
787 },
768− "type": "object",
769 "id": "RunQueryResponse"
788 "id": "RunQueryResponse"
770 },
789 },
771 "Entity": {
790 "Entity": {
772 "description": "A Datastore data object.\n\nAn entity is limited to 1 megabyte when stored. That _roughly_\ncorresponds to a limit of 1 megabyte for the serialized form of this\nmessage.",
791 "description": "A Datastore data object.\n\nAn entity is limited to 1 megabyte when stored. That _roughly_\ncorresponds to a limit of 1 megabyte for the serialized form of this\nmessage.",
792+ "type": "object",
773 "properties": {
793 "properties": {
774 "properties": {
794 "properties": {
795+ "description": "The entity's properties.\nThe map's keys are property names.\nA property name matching regex `__.*__` is reserved.\nA reserved property name is forbidden in certain documented contexts.\nThe name must not contain more than 500 characters.\nThe name cannot be `\"\"`.",
775 "additionalProperties": {
796 "additionalProperties": {
776 "$ref": "Value"
797 "$ref": "Value"
777 },
798 },
778− "description": "The entity's properties.\nThe map's keys are property names.\nA property name matching regex `__.*__` is reserved.\nA reserved property name is forbidden in certain documented contexts.\nThe name must not contain more than 500 characters.\nThe name cannot be `\"\"`.",
779 "type": "object"
799 "type": "object"
780 },
800 },
781 "key": {
801 "key": {
@@ -783,40 +803,68 @@
783 "$ref": "Key"
803 "$ref": "Key"
784 }
804 }
785 },
805 },
786− "type": "object",
787 "id": "Entity"
806 "id": "Entity"
788 },
807 },
789 "GqlQuery": {
808 "GqlQuery": {
790 "description": "A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).",
809 "description": "A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).",
810+ "type": "object",
791 "properties": {
811 "properties": {
812+ "queryString": {
813+ "description": "A string of the format described\n[here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).",
814+ "type": "string"
815+ },
792 "namedBindings": {
816 "namedBindings": {
817+ "description": "For each non-reserved named binding site in the query string, there must be\na named parameter with that name, but not necessarily the inverse.\n\nKey must match regex `A-Za-z_$*`, must not match regex\n`__.*__`, and must not be `\"\"`.",
793 "additionalProperties": {
818 "additionalProperties": {
794 "$ref": "GqlQueryParameter"
819 "$ref": "GqlQueryParameter"
795 },
820 },
796− "description": "For each non-reserved named binding site in the query string,\nthere must be a named parameter with that name,\nbut not necessarily the inverse.\nKey must match regex `A-Za-z_$*`, must not match regex\n`__.*__`, and must not be `\"\"`.",
797 "type": "object"
821 "type": "object"
798 },
822 },
799− "queryString": {
800− "description": "A string of the format described\n[here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).",
801− "type": "string"
802− },
803 "allowLiterals": {
823 "allowLiterals": {
804− "description": "When false, the query string must not contain any literals and instead\nmust bind all values. For example,\n`SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while\n`SELECT * FROM Kind WHERE a = @value` is.",
824+ "description": "When false, the query string must not contain any literals and instead must\nbind all values. For example,\n`SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while\n`SELECT * FROM Kind WHERE a = @value` is.",
805 "type": "boolean"
825 "type": "boolean"
806 },
826 },
807 "positionalBindings": {
827 "positionalBindings": {
808− "description": "Numbered binding site @1 references the first numbered parameter,\neffectively using 1-based indexing, rather than the usual 0.\nFor each binding site numbered i in `query_string`,\nthere must be an i-th numbered parameter.\nThe inverse must also be true.",
828+ "description": "Numbered binding site @1 references the first numbered parameter,\neffectively using 1-based indexing, rather than the usual 0.\n\nFor each binding site numbered i in `query_string`, there must be an i-th\nnumbered parameter. The inverse must also be true.",
809 "type": "array",
829 "type": "array",
810 "items": {
830 "items": {
811 "$ref": "GqlQueryParameter"
831 "$ref": "GqlQueryParameter"
812 }
832 }
813 }
833 }
814 },
834 },
815− "type": "object",
816 "id": "GqlQuery"
835 "id": "GqlQuery"
817 },
836 },
837+ "Mutation": {
838+ "description": "A mutation to apply to an entity.",
839+ "type": "object",
840+ "properties": {
841+ "insert": {
842+ "description": "The entity to insert. The entity must not already exist.\nThe entity key's final path element may be incomplete.",
843+ "$ref": "Entity"
844+ },
845+ "update": {
846+ "description": "The entity to update. The entity must already exist.\nMust have a complete key path.",
847+ "$ref": "Entity"
848+ },
849+ "baseVersion": {
850+ "description": "The version of the entity that this mutation is being applied to. If this\ndoes not match the current version on the server, the mutation conflicts.",
851+ "type": "string",
852+ "format": "int64"
853+ },
854+ "upsert": {
855+ "description": "The entity to upsert. The entity may or may not already exist.\nThe entity key's final path element may be incomplete.",
856+ "$ref": "Entity"
857+ },
858+ "delete": {
859+ "description": "The key of the entity to delete. The entity may or may not already exist.\nMust have a complete key path and must not be reserved/read-only.",
860+ "$ref": "Key"
861+ }
862+ },
863+ "id": "Mutation"
864+ },
818 "CommitResponse": {
865 "CommitResponse": {
819− "description": "The response for google.datastore.v1beta3.Datastore.Commit.",
866+ "description": "The response for Datastore.Commit.",
867+ "type": "object",
820 "properties": {
868 "properties": {
821 "mutationResults": {
869 "mutationResults": {
822 "description": "The result of performing the mutations.\nThe i-th mutation result corresponds to the i-th mutation in the request.",
870 "description": "The result of performing the mutations.\nThe i-th mutation result corresponds to the i-th mutation in the request.",
@@ -831,34 +879,11 @@
831 "format": "int32"
879 "format": "int32"
832 }
880 }
833 },
881 },
834− "type": "object",
835 "id": "CommitResponse"
882 "id": "CommitResponse"
836 },
883 },
837− "Mutation": {
838− "description": "A mutation to apply to an entity.",
839− "properties": {
840− "update": {
841− "description": "The entity to update. The entity must already exist.\nMust have a complete key path.",
842− "$ref": "Entity"
843− },
844− "insert": {
845− "description": "The entity to insert. The entity must not already exist.\nThe entity key's final path element may be incomplete.",
846− "$ref": "Entity"
847− },
848− "delete": {
849− "description": "The key of the entity to delete. The entity may or may not already exist.\nMust have a complete key path and must not be reserved/read-only.",
850− "$ref": "Key"
851− },
852− "upsert": {
853− "description": "The entity to upsert. The entity may or may not already exist.\nThe entity key's final path element may be incomplete.",
854− "$ref": "Entity"
855− }
856− },
857− "type": "object",
858− "id": "Mutation"
859− },
860 "RunQueryRequest": {
884 "RunQueryRequest": {
861− "description": "The request for google.datastore.v1beta3.Datastore.RunQuery.",
885+ "description": "The request for Datastore.RunQuery.",
886+ "type": "object",
862 "properties": {
887 "properties": {
863 "partitionId": {
888 "partitionId": {
864 "description": "Entities are partitioned into subsets, identified by a partition ID.\nQueries are scoped to a single partition.\nThis partition ID is normalized with the standard default context\npartition ID.",
889 "description": "Entities are partitioned into subsets, identified by a partition ID.\nQueries are scoped to a single partition.\nThis partition ID is normalized with the standard default context\npartition ID.",
@@ -868,81 +893,80 @@
868 "description": "The GQL query to run.",
893 "description": "The GQL query to run.",
869 "$ref": "GqlQuery"
894 "$ref": "GqlQuery"
870 },
895 },
871− "query": {
872− "description": "The query to run.",
873− "$ref": "Query"
874− },
875 "readOptions": {
896 "readOptions": {
876 "description": "The options for this query.",
897 "description": "The options for this query.",
877 "$ref": "ReadOptions"
898 "$ref": "ReadOptions"
899+ },
900+ "query": {
901+ "description": "The query to run.",
902+ "$ref": "Query"
878 }
903 }
879 },
904 },
880− "type": "object",
881 "id": "RunQueryRequest"
905 "id": "RunQueryRequest"
882 },
906 },
883− "CompositeFilter": {
907+ "LookupRequest": {
884− "description": "A filter that merges multiple other filters using the given operator.",
908+ "description": "The request for Datastore.Lookup.",
909+ "type": "object",
885 "properties": {
910 "properties": {
886− "op": {
911+ "readOptions": {
887− "enum": [
912+ "description": "The options for this lookup request.",
888− "OPERATOR_UNSPECIFIED",
913+ "$ref": "ReadOptions"
889− "AND"
890− ],
891− "description": "The operator for combining multiple filters.",
892− "enumDescriptions": [
893− "Unspecified. This value must not be used.",
894− "The results are required to satisfy each of the combined filters."
895− ],
896− "type": "string"
897 },
914 },
898− "filters": {
915+ "keys": {
899− "description": "The list of filters to combine.\nMust contain at least one filter.",
916+ "description": "Keys of entities to look up.",
900 "type": "array",
917 "type": "array",
901 "items": {
918 "items": {
902− "$ref": "Filter"
919+ "$ref": "Key"
903 }
920 }
904 }
921 }
905 },
922 },
906− "type": "object",
923+ "id": "LookupRequest"
907− "id": "CompositeFilter"
908 },
924 },
909 "LatLng": {
925 "LatLng": {
910− "description": "An object representing a latitude/longitude pair. This is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n\u003ca href=\"http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\"\u003eWGS84\nstandard\u003c/a\u003e. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n\n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees longitude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r \u003e 180.0 or (r == 180.0 and q \u003c= -1.0):\n return r - 360.0\n return r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-180.0, 180.0] and [-90.0, 90.0], respectively.\"\"\"\n r = latitude % 360.0\n if r \u003c= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r \u003e= 270.0:\n return r - 360, NormalizeLongitude(longitude)\n else:\n return 180 - r, NormalizeLongitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLongitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)",
926+ "description": "An object representing a latitude/longitude pair. This is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n\u003ca href=\"http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\"\u003eWGS84\nstandard\u003c/a\u003e. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n\n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees longitude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r \u003e 180.0 or (r == 180.0 and q \u003c= -1.0):\n return r - 360.0\n return r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], respectively.\"\"\"\n r = latitude % 360.0\n if r \u003c= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r \u003e= 270.0:\n return r - 360, NormalizeLongitude(longitude)\n else:\n return 180 - r, NormalizeLongitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLongitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)",
927+ "type": "object",
911 "properties": {
928 "properties": {
912− "longitude": {
929+ "latitude": {
913− "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
930+ "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
914 "type": "number",
931 "type": "number",
915 "format": "double"
932 "format": "double"
916 },
933 },
917− "latitude": {
934+ "longitude": {
918− "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
935+ "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
919 "type": "number",
936 "type": "number",
920 "format": "double"
937 "format": "double"
921 }
938 }
922 },
939 },
923− "type": "object",
924 "id": "LatLng"
940 "id": "LatLng"
925 },
941 },
926− "LookupRequest": {
942+ "CompositeFilter": {
927− "description": "The request for google.datastore.v1beta3.Datastore.Lookup.",
943+ "description": "A filter that merges multiple other filters using the given operator.",
944+ "type": "object",
928 "properties": {
945 "properties": {
929− "keys": {
946+ "op": {
930− "description": "Keys of entities to look up.",
947+ "description": "The operator for combining multiple filters.",
948+ "enum": [
949+ "OPERATOR_UNSPECIFIED",
950+ "AND"
951+ ],
952+ "enumDescriptions": [
953+ "Unspecified. This value must not be used.",
954+ "The results are required to satisfy each of the combined filters."
955+ ],
956+ "type": "string"
957+ },
958+ "filters": {
959+ "description": "The list of filters to combine.\nMust contain at least one filter.",
931 "type": "array",
960 "type": "array",
932 "items": {
961 "items": {
933− "$ref": "Key"
962+ "$ref": "Filter"
934 }
963 }
935− },
936− "readOptions": {
937− "description": "The options for this lookup request.",
938− "$ref": "ReadOptions"
939 }
964 }
940 },
965 },
941− "type": "object",
966+ "id": "CompositeFilter"
942− "id": "LookupRequest"
943 }
967 }
944 },
968 },
945− "revision": "20160502",
969+ "revision": "20160920",
946 "basePath": "",
970 "basePath": "",
947 "icons": {
971 "icons": {
948 "x32": "http://www.google.com/images/icons/product/search-32.gif",
972 "x32": "http://www.google.com/images/icons/product/search-32.gif",
@@ -950,38 +974,40 @@
950 },
974 },
951 "version_module": "True",
975 "version_module": "True",
952 "discoveryVersion": "v1",
976 "discoveryVersion": "v1",
977+ "baseUrl": "https://datastore.googleapis.com/",
978+ "name": "datastore",
953 "parameters": {
979 "parameters": {
954 "access_token": {
980 "access_token": {
955 "description": "OAuth access token.",
981 "description": "OAuth access token.",
982+ "type": "string",
956− "location": "query",
983+ "location": "query"
957− "type": "string"
958 },
984 },
959 "prettyPrint": {
985 "prettyPrint": {
960− "default": "true",
961 "description": "Returns response with indentations and line breaks.",
986 "description": "Returns response with indentations and line breaks.",
987+ "default": "true",
988+ "type": "boolean",
962− "location": "query",
989+ "location": "query"
963− "type": "boolean"
964 },
990 },
965 "key": {
991 "key": {
966 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
992 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
993+ "type": "string",
967− "location": "query",
994+ "location": "query"
968− "type": "string"
969 },
995 },
970 "quotaUser": {
996 "quotaUser": {
971 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
997 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
998+ "type": "string",
972− "location": "query",
999+ "location": "query"
973− "type": "string"
974 },
1000 },
975 "pp": {
1001 "pp": {
976− "default": "true",
977 "description": "Pretty-print response.",
1002 "description": "Pretty-print response.",
1003+ "default": "true",
1004+ "type": "boolean",
978− "location": "query",
1005+ "location": "query"
979− "type": "boolean"
980 },
1006 },
981 "fields": {
1007 "fields": {
982 "description": "Selector specifying which fields to include in a partial response.",
1008 "description": "Selector specifying which fields to include in a partial response.",
1009+ "type": "string",
983− "location": "query",
1010+ "location": "query"
984− "type": "string"
985 },
1011 },
986 "alt": {
1012 "alt": {
987 "description": "Data format for response.",
1013 "description": "Data format for response.",
@@ -1000,48 +1026,46 @@
1000 "type": "string"
1026 "type": "string"
1001 },
1027 },
1002 "$.xgafv": {
1028 "$.xgafv": {
1029+ "description": "V1 error format.",
1003 "enum": [
1030 "enum": [
1004 "1",
1031 "1",
1005 "2"
1032 "2"
1006 ],
1033 ],
1007− "description": "V1 error format.",
1008 "enumDescriptions": [
1034 "enumDescriptions": [
1009 "v1 error format",
1035 "v1 error format",
1010 "v2 error format"
1036 "v2 error format"
1011 ],
1037 ],
1038+ "type": "string",
1012− "location": "query",
1039+ "location": "query"
1013− "type": "string"
1014 },
1040 },
1015 "callback": {
1041 "callback": {
1016 "description": "JSONP",
1042 "description": "JSONP",
1017− "location": "query",
1018− "type": "string"
1043+ "type": "string",
1019− },
1020− "uploadType": {
1021− "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
1022− "location": "query",
1044+ "location": "query"
1023− "type": "string"
1024 },
1045 },
1025 "oauth_token": {
1046 "oauth_token": {
1026 "description": "OAuth 2.0 token for the current user.",
1047 "description": "OAuth 2.0 token for the current user.",
1048+ "type": "string",
1027− "location": "query",
1049+ "location": "query"
1028− "type": "string"
1029 },
1050 },
1030− "upload_protocol": {
1051+ "uploadType": {
1031− "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1052+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
1032− "location": "query",
1033− "type": "string"
1053+ "type": "string",
1054+ "location": "query"
1034 },
1055 },
1035 "bearer_token": {
1056 "bearer_token": {
1036 "description": "OAuth bearer token.",
1057 "description": "OAuth bearer token.",
1058+ "type": "string",
1037− "location": "query",
1059+ "location": "query"
1060+ },
1061+ "upload_protocol": {
1062+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1038− "type": "string"
1063+ "type": "string",
1064+ "location": "query"
1039 }
1065 }
1040 },
1066 },
1041− "name": "datastore",
1042− "baseUrl": "https://datastore.googleapis.com/",
1043− "ownerDomain": "google.com",
1044 "documentationLink": "https://cloud.google.com/datastore/",
1067 "documentationLink": "https://cloud.google.com/datastore/",
1068+ "ownerDomain": "google.com",
1045 "batchPath": "batch",
1069 "batchPath": "batch",
1046 "servicePath": "",
1070 "servicePath": "",
1047 "ownerName": "Google",
1071 "ownerName": "Google",
gogol-datastore/gen/Network/Google/Datastore.hs+5
@@ -77,6 +77,7 @@ module Network.Google.Datastore
77 , qrbSkippedResults
77 , qrbSkippedResults
78 , qrbSkippedCursor
78 , qrbSkippedCursor
79 , qrbEntityResultType
79 , qrbEntityResultType
80+ , qrbSnapshotVersion
80 , qrbEntityResults
81 , qrbEntityResults
81 , qrbMoreResults
82 , qrbMoreResults
82 , qrbEndCursor
83 , qrbEndCursor
@@ -126,7 +127,9 @@ module Network.Google.Datastore
126 -- ** MutationResult
127 -- ** MutationResult
127 , MutationResult
128 , MutationResult
128 , mutationResult
129 , mutationResult
130+ , mrConflictDetected
129 , mrKey
131 , mrKey
132+ , mrVersion
130
133
131 -- ** AllocateIdsResponse
134 -- ** AllocateIdsResponse
132 , AllocateIdsResponse
135 , AllocateIdsResponse
@@ -179,6 +182,7 @@ module Network.Google.Datastore
179 -- ** Mutation
182 -- ** Mutation
180 , Mutation
183 , Mutation
181 , mutation
184 , mutation
185+ , mBaseVersion
182 , mInsert
186 , mInsert
183 , mUpsert
187 , mUpsert
184 , mDelete
188 , mDelete
@@ -229,6 +233,7 @@ module Network.Google.Datastore
229 , EntityResult
233 , EntityResult
230 , entityResult
234 , entityResult
231 , erCursor
235 , erCursor
236+ , erVersion
232 , erEntity
237 , erEntity
233
238
234 -- ** Xgafv
239 -- ** Xgafv
gogol-datastore/gen/Network/Google/Datastore/Types.hs+7−2
@@ -49,6 +49,7 @@ module Network.Google.Datastore.Types
49 , qrbSkippedResults
49 , qrbSkippedResults
50 , qrbSkippedCursor
50 , qrbSkippedCursor
51 , qrbEntityResultType
51 , qrbEntityResultType
52+ , qrbSnapshotVersion
52 , qrbEntityResults
53 , qrbEntityResults
53 , qrbMoreResults
54 , qrbMoreResults
54 , qrbEndCursor
55 , qrbEndCursor
@@ -98,7 +99,9 @@ module Network.Google.Datastore.Types
98 -- * MutationResult
99 -- * MutationResult
99 , MutationResult
100 , MutationResult
100 , mutationResult
101 , mutationResult
102+ , mrConflictDetected
101 , mrKey
103 , mrKey
104+ , mrVersion
102
105
103 -- * AllocateIdsResponse
106 -- * AllocateIdsResponse
104 , AllocateIdsResponse
107 , AllocateIdsResponse
@@ -151,6 +154,7 @@ module Network.Google.Datastore.Types
151 -- * Mutation
154 -- * Mutation
152 , Mutation
155 , Mutation
153 , mutation
156 , mutation
157+ , mBaseVersion
154 , mInsert
158 , mInsert
155 , mUpsert
159 , mUpsert
156 , mDelete
160 , mDelete
@@ -201,6 +205,7 @@ module Network.Google.Datastore.Types
201 , EntityResult
205 , EntityResult
202 , entityResult
206 , entityResult
203 , erCursor
207 , erCursor
208+ , erVersion
204 , erEntity
209 , erEntity
205
210
206 -- * Xgafv
211 -- * Xgafv
@@ -288,10 +293,10 @@ import Network.Google.Datastore.Types.Product
288import Network.Google.Datastore.Types.Sum
293import Network.Google.Datastore.Types.Sum
289import Network.Google.Prelude
294import Network.Google.Prelude
290
295
291−-- | Default request referring to version 'v1beta3' of the Google Cloud Datastore API. This contains the host and root path used as a starting point for constructing service requests.
296+-- | Default request referring to version 'v1' of the Google Cloud Datastore API. This contains the host and root path used as a starting point for constructing service requests.
292datastoreService :: ServiceConfig
297datastoreService :: ServiceConfig
293datastoreService
298datastoreService
294− = defaultService (ServiceId "datastore:v1beta3")
299+ = defaultService (ServiceId "datastore:v1")
295 "datastore.googleapis.com"
300 "datastore.googleapis.com"
296
301
297-- | View and manage your data across Google Cloud Platform services
302-- | View and manage your data across Google Cloud Platform services
gogol-datastore/gen/Network/Google/Datastore/Types/Product.hs+114−33
@@ -29,7 +29,7 @@ import Network.Google.Prelude
29-- degrees longitude to [-180.0, 180.0].\"\"\" q, r = divmod(longitude,
29-- degrees longitude to [-180.0, 180.0].\"\"\" q, r = divmod(longitude,
30-- 360.0) if r > 180.0 or (r == 180.0 and q \<= -1.0): return r - 360.0
30-- 360.0) if r > 180.0 or (r == 180.0 and q \<= -1.0): return r - 360.0
31-- return r def NormalizeLatLng(latitude, longitude): \"\"\"Wraps decimal
31-- return r def NormalizeLatLng(latitude, longitude): \"\"\"Wraps decimal
32−-- degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90.0],
32+-- degrees latitude and longitude to [-90.0, 90.0] and [-180.0, 180.0],
33-- respectively.\"\"\" r = latitude % 360.0 if r \<= 90.0: return r,
33-- respectively.\"\"\" r = latitude % 360.0 if r \<= 90.0: return r,
34-- NormalizeLongitude(longitude) elif r >= 270.0: return r - 360,
34-- NormalizeLongitude(longitude) elif r >= 270.0: return r - 360,
35-- NormalizeLongitude(longitude) else: return 180 - r,
35-- NormalizeLongitude(longitude) else: return 180 - r,
@@ -93,7 +93,7 @@ instance ToJSON LatLng where
93 [("latitude" .=) <$> _llLatitude,
93 [("latitude" .=) <$> _llLatitude,
94 ("longitude" .=) <$> _llLongitude])
94 ("longitude" .=) <$> _llLongitude])
95
95
96−-- | The request for google.datastore.v1beta3.Datastore.Rollback.
96+-- | The request for Datastore.Rollback.
97--
97--
98-- /See:/ 'rollbackRequest' smart constructor.
98-- /See:/ 'rollbackRequest' smart constructor.
99newtype RollbackRequest = RollbackRequest'
99newtype RollbackRequest = RollbackRequest'
@@ -113,7 +113,7 @@ rollbackRequest =
113 }
113 }
114
114
115-- | The transaction identifier, returned by a call to
115-- | The transaction identifier, returned by a call to
116−-- google.datastore.v1beta3.Datastore.BeginTransaction.
116+-- Datastore.BeginTransaction.
117rrTransaction :: Lens' RollbackRequest (Maybe ByteString)
117rrTransaction :: Lens' RollbackRequest (Maybe ByteString)
118rrTransaction
118rrTransaction
119 = lens _rrTransaction
119 = lens _rrTransaction
@@ -195,6 +195,7 @@ data QueryResultBatch = QueryResultBatch'
195 { _qrbSkippedResults :: !(Maybe (Textual Int32))
195 { _qrbSkippedResults :: !(Maybe (Textual Int32))
196 , _qrbSkippedCursor :: !(Maybe Base64)
196 , _qrbSkippedCursor :: !(Maybe Base64)
197 , _qrbEntityResultType :: !(Maybe QueryResultBatchEntityResultType)
197 , _qrbEntityResultType :: !(Maybe QueryResultBatchEntityResultType)
198+ , _qrbSnapshotVersion :: !(Maybe (Textual Int64))
198 , _qrbEntityResults :: !(Maybe [EntityResult])
199 , _qrbEntityResults :: !(Maybe [EntityResult])
199 , _qrbMoreResults :: !(Maybe QueryResultBatchMoreResults)
200 , _qrbMoreResults :: !(Maybe QueryResultBatchMoreResults)
200 , _qrbEndCursor :: !(Maybe Base64)
201 , _qrbEndCursor :: !(Maybe Base64)
@@ -210,6 +211,8 @@ data QueryResultBatch = QueryResultBatch'
210--
211--
211-- * 'qrbEntityResultType'
212-- * 'qrbEntityResultType'
212--
213--
214+-- * 'qrbSnapshotVersion'
215+--
213-- * 'qrbEntityResults'
216-- * 'qrbEntityResults'
214--
217--
215-- * 'qrbMoreResults'
218-- * 'qrbMoreResults'
@@ -222,6 +225,7 @@ queryResultBatch =
222 { _qrbSkippedResults = Nothing
225 { _qrbSkippedResults = Nothing
223 , _qrbSkippedCursor = Nothing
226 , _qrbSkippedCursor = Nothing
224 , _qrbEntityResultType = Nothing
227 , _qrbEntityResultType = Nothing
228+ , _qrbSnapshotVersion = Nothing
225 , _qrbEntityResults = Nothing
229 , _qrbEntityResults = Nothing
226 , _qrbMoreResults = Nothing
230 , _qrbMoreResults = Nothing
227 , _qrbEndCursor = Nothing
231 , _qrbEndCursor = Nothing
@@ -248,6 +252,19 @@ qrbEntityResultType
248 = lens _qrbEntityResultType
252 = lens _qrbEntityResultType
249 (\ s a -> s{_qrbEntityResultType = a})
253 (\ s a -> s{_qrbEntityResultType = a})
250
254
255+-- | The version number of the snapshot this batch was returned from. This
256+-- applies to the range of results from the query\'s \`start_cursor\` (or
257+-- the beginning of the query if no cursor was given) to this batch\'s
258+-- \`end_cursor\` (not the query\'s \`end_cursor\`). In a single
259+-- transaction, subsequent query result batches for the same query can have
260+-- a greater snapshot version number. Each batch\'s snapshot version is
261+-- valid for all preceding batches.
262+qrbSnapshotVersion :: Lens' QueryResultBatch (Maybe Int64)
263+qrbSnapshotVersion
264+ = lens _qrbSnapshotVersion
265+ (\ s a -> s{_qrbSnapshotVersion = a})
266+ . mapping _Coerce
267+
251-- | The results for this batch.
268-- | The results for this batch.
252qrbEntityResults :: Lens' QueryResultBatch [EntityResult]
269qrbEntityResults :: Lens' QueryResultBatch [EntityResult]
253qrbEntityResults
270qrbEntityResults
@@ -275,6 +292,7 @@ instance FromJSON QueryResultBatch where
275 QueryResultBatch' <$>
292 QueryResultBatch' <$>
276 (o .:? "skippedResults") <*> (o .:? "skippedCursor")
293 (o .:? "skippedResults") <*> (o .:? "skippedCursor")
277 <*> (o .:? "entityResultType")
294 <*> (o .:? "entityResultType")
295+ <*> (o .:? "snapshotVersion")
278 <*> (o .:? "entityResults" .!= mempty)
296 <*> (o .:? "entityResults" .!= mempty)
279 <*> (o .:? "moreResults")
297 <*> (o .:? "moreResults")
280 <*> (o .:? "endCursor"))
298 <*> (o .:? "endCursor"))
@@ -286,6 +304,7 @@ instance ToJSON QueryResultBatch where
286 [("skippedResults" .=) <$> _qrbSkippedResults,
304 [("skippedResults" .=) <$> _qrbSkippedResults,
287 ("skippedCursor" .=) <$> _qrbSkippedCursor,
305 ("skippedCursor" .=) <$> _qrbSkippedCursor,
288 ("entityResultType" .=) <$> _qrbEntityResultType,
306 ("entityResultType" .=) <$> _qrbEntityResultType,
307+ ("snapshotVersion" .=) <$> _qrbSnapshotVersion,
289 ("entityResults" .=) <$> _qrbEntityResults,
308 ("entityResults" .=) <$> _qrbEntityResults,
290 ("moreResults" .=) <$> _qrbMoreResults,
309 ("moreResults" .=) <$> _qrbMoreResults,
291 ("endCursor" .=) <$> _qrbEndCursor])
310 ("endCursor" .=) <$> _qrbEndCursor])
@@ -326,7 +345,7 @@ instance FromJSON EntityProperties where
326instance ToJSON EntityProperties where
345instance ToJSON EntityProperties where
327 toJSON = toJSON . _epAddtional
346 toJSON = toJSON . _epAddtional
328
347
329−-- | The request for google.datastore.v1beta3.Datastore.BeginTransaction.
348+-- | The request for Datastore.BeginTransaction.
330--
349--
331-- /See:/ 'beginTransactionRequest' smart constructor.
350-- /See:/ 'beginTransactionRequest' smart constructor.
332data BeginTransactionRequest =
351data BeginTransactionRequest =
@@ -347,7 +366,7 @@ instance FromJSON BeginTransactionRequest where
347instance ToJSON BeginTransactionRequest where
366instance ToJSON BeginTransactionRequest where
348 toJSON = const emptyObject
367 toJSON = const emptyObject
349
368
350−-- | The request for google.datastore.v1beta3.Datastore.RunQuery.
369+-- | The request for Datastore.RunQuery.
351--
370--
352-- /See:/ 'runQueryRequest' smart constructor.
371-- /See:/ 'runQueryRequest' smart constructor.
353data RunQueryRequest = RunQueryRequest'
372data RunQueryRequest = RunQueryRequest'
@@ -419,7 +438,7 @@ instance ToJSON RunQueryRequest where
419 ("query" .=) <$> _rqrQuery,
438 ("query" .=) <$> _rqrQuery,
420 ("readOptions" .=) <$> _rqrReadOptions])
439 ("readOptions" .=) <$> _rqrReadOptions])
421
440
422−-- | The request for google.datastore.v1beta3.Datastore.AllocateIds.
441+-- | The request for Datastore.AllocateIds.
423--
442--
424-- /See:/ 'allocateIdsRequest' smart constructor.
443-- /See:/ 'allocateIdsRequest' smart constructor.
425newtype AllocateIdsRequest = AllocateIdsRequest'
444newtype AllocateIdsRequest = AllocateIdsRequest'
@@ -502,7 +521,7 @@ instance ToJSON CompositeFilter where
502 (catMaybes
521 (catMaybes
503 [("op" .=) <$> _cfOp, ("filters" .=) <$> _cfFilters])
522 [("op" .=) <$> _cfOp, ("filters" .=) <$> _cfFilters])
504
523
505−-- | The response for google.datastore.v1beta3.Datastore.BeginTransaction.
524+-- | The response for Datastore.BeginTransaction.
506--
525--
507-- /See:/ 'beginTransactionResponse' smart constructor.
526-- /See:/ 'beginTransactionResponse' smart constructor.
508newtype BeginTransactionResponse = BeginTransactionResponse'
527newtype BeginTransactionResponse = BeginTransactionResponse'
@@ -542,37 +561,69 @@ instance ToJSON BeginTransactionResponse where
542-- | The result of applying a mutation.
561-- | The result of applying a mutation.
543--
562--
544-- /See:/ 'mutationResult' smart constructor.
563-- /See:/ 'mutationResult' smart constructor.
545−newtype MutationResult = MutationResult'
564+data MutationResult = MutationResult'
565+ { _mrConflictDetected :: !(Maybe Bool)
546− { _mrKey :: Maybe Key
566+ , _mrKey :: !(Maybe Key)
567+ , _mrVersion :: !(Maybe (Textual Int64))
547 } deriving (Eq,Show,Data,Typeable,Generic)
568 } deriving (Eq,Show,Data,Typeable,Generic)
548
569
549-- | Creates a value of 'MutationResult' with the minimum fields required to make a request.
570-- | Creates a value of 'MutationResult' with the minimum fields required to make a request.
550--
571--
551-- Use one of the following lenses to modify other fields as desired:
572-- Use one of the following lenses to modify other fields as desired:
552--
573--
574+-- * 'mrConflictDetected'
575+--
553-- * 'mrKey'
576-- * 'mrKey'
577+--
578+-- * 'mrVersion'
554mutationResult
579mutationResult
555 :: MutationResult
580 :: MutationResult
556mutationResult =
581mutationResult =
557 MutationResult'
582 MutationResult'
583+ { _mrConflictDetected = Nothing
558− { _mrKey = Nothing
584+ , _mrKey = Nothing
585+ , _mrVersion = Nothing
559 }
586 }
560
587
588+-- | Whether a conflict was detected for this mutation. Always false when a
589+-- conflict detection strategy field is not set in the mutation.
590+mrConflictDetected :: Lens' MutationResult (Maybe Bool)
591+mrConflictDetected
592+ = lens _mrConflictDetected
593+ (\ s a -> s{_mrConflictDetected = a})
594+
561-- | The automatically allocated key. Set only when the mutation allocated a
595-- | The automatically allocated key. Set only when the mutation allocated a
562-- key.
596-- key.
563mrKey :: Lens' MutationResult (Maybe Key)
597mrKey :: Lens' MutationResult (Maybe Key)
564mrKey = lens _mrKey (\ s a -> s{_mrKey = a})
598mrKey = lens _mrKey (\ s a -> s{_mrKey = a})
565
599
600+-- | The version of the entity on the server after processing the mutation.
601+-- If the mutation doesn\'t change anything on the server, then the version
602+-- will be the version of the current entity or, if no entity is present, a
603+-- version that is strictly greater than the version of any previous entity
604+-- and less than the version of any possible future entity.
605+mrVersion :: Lens' MutationResult (Maybe Int64)
606+mrVersion
607+ = lens _mrVersion (\ s a -> s{_mrVersion = a}) .
608+ mapping _Coerce
609+
566instance FromJSON MutationResult where
610instance FromJSON MutationResult where
567 parseJSON
611 parseJSON
568 = withObject "MutationResult"
612 = withObject "MutationResult"
613+ (\ o ->
569− (\ o -> MutationResult' <$> (o .:? "key"))
614+ MutationResult' <$>
615+ (o .:? "conflictDetected") <*> (o .:? "key") <*>
616+ (o .:? "version"))
570
617
571instance ToJSON MutationResult where
618instance ToJSON MutationResult where
572 toJSON MutationResult'{..}
619 toJSON MutationResult'{..}
620+ = object
573− = object (catMaybes [("key" .=) <$> _mrKey])
621+ (catMaybes
622+ [("conflictDetected" .=) <$> _mrConflictDetected,
623+ ("key" .=) <$> _mrKey,
624+ ("version" .=) <$> _mrVersion])
574
625
575−-- | The response for google.datastore.v1beta3.Datastore.AllocateIds.
626+-- | The response for Datastore.AllocateIds.
576--
627--
577-- /See:/ 'allocateIdsResponse' smart constructor.
628-- /See:/ 'allocateIdsResponse' smart constructor.
578newtype AllocateIdsResponse = AllocateIdsResponse'
629newtype AllocateIdsResponse = AllocateIdsResponse'
@@ -695,7 +746,7 @@ instance ToJSON GqlQuery where
695 ("queryString" .=) <$> _gqQueryString,
746 ("queryString" .=) <$> _gqQueryString,
696 ("allowLiterals" .=) <$> _gqAllowLiterals])
747 ("allowLiterals" .=) <$> _gqAllowLiterals])
697
748
698−-- | The response for google.datastore.v1beta3.Datastore.RunQuery.
749+-- | The response for Datastore.RunQuery.
699--
750--
700-- /See:/ 'runQueryResponse' smart constructor.
751-- /See:/ 'runQueryResponse' smart constructor.
701data RunQueryResponse = RunQueryResponse'
752data RunQueryResponse = RunQueryResponse'
@@ -928,7 +979,7 @@ instance ToJSON Value where
928 ("nullValue" .=) <$> _vNullValue,
979 ("nullValue" .=) <$> _vNullValue,
929 ("blobValue" .=) <$> _vBlobValue])
980 ("blobValue" .=) <$> _vBlobValue])
930
981
931−-- | The request for google.datastore.v1beta3.Datastore.Lookup.
982+-- | The request for Datastore.Lookup.
932--
983--
933-- /See:/ 'lookupRequest' smart constructor.
984-- /See:/ 'lookupRequest' smart constructor.
934data LookupRequest = LookupRequest'
985data LookupRequest = LookupRequest'
@@ -981,16 +1032,19 @@ instance ToJSON LookupRequest where
981--
1032--
982-- /See:/ 'mutation' smart constructor.
1033-- /See:/ 'mutation' smart constructor.
983data Mutation = Mutation'
1034data Mutation = Mutation'
1035+ { _mBaseVersion :: !(Maybe (Textual Int64))
984− { _mInsert :: !(Maybe Entity)
1036+ , _mInsert :: !(Maybe Entity)
985− , _mUpsert :: !(Maybe Entity)
1037+ , _mUpsert :: !(Maybe Entity)
986− , _mDelete :: !(Maybe Key)
1038+ , _mDelete :: !(Maybe Key)
987− , _mUpdate :: !(Maybe Entity)
1039+ , _mUpdate :: !(Maybe Entity)
988 } deriving (Eq,Show,Data,Typeable,Generic)
1040 } deriving (Eq,Show,Data,Typeable,Generic)
989
1041
990-- | Creates a value of 'Mutation' with the minimum fields required to make a request.
1042-- | Creates a value of 'Mutation' with the minimum fields required to make a request.
991--
1043--
992-- Use one of the following lenses to modify other fields as desired:
1044-- Use one of the following lenses to modify other fields as desired:
993--
1045--
1046+-- * 'mBaseVersion'
1047+--
994-- * 'mInsert'
1048-- * 'mInsert'
995--
1049--
996-- * 'mUpsert'
1050-- * 'mUpsert'
@@ -1002,12 +1056,21 @@ mutation
1002 :: Mutation
1056 :: Mutation
1003mutation =
1057mutation =
1004 Mutation'
1058 Mutation'
1059+ { _mBaseVersion = Nothing
1005− { _mInsert = Nothing
1060+ , _mInsert = Nothing
1006 , _mUpsert = Nothing
1061 , _mUpsert = Nothing
1007 , _mDelete = Nothing
1062 , _mDelete = Nothing
1008 , _mUpdate = Nothing
1063 , _mUpdate = Nothing
1009 }
1064 }
1010
1065
1066+-- | The version of the entity that this mutation is being applied to. If
1067+-- this does not match the current version on the server, the mutation
1068+-- conflicts.
1069+mBaseVersion :: Lens' Mutation (Maybe Int64)
1070+mBaseVersion
1071+ = lens _mBaseVersion (\ s a -> s{_mBaseVersion = a})
1072+ . mapping _Coerce
1073+
1011-- | The entity to insert. The entity must not already exist. The entity
1074-- | The entity to insert. The entity must not already exist. The entity
1012-- key\'s final path element may be incomplete.
1075-- key\'s final path element may be incomplete.
1013mInsert :: Lens' Mutation (Maybe Entity)
1076mInsert :: Lens' Mutation (Maybe Entity)
@@ -1034,15 +1097,17 @@ instance FromJSON Mutation where
1034 = withObject "Mutation"
1097 = withObject "Mutation"
1035 (\ o ->
1098 (\ o ->
1036 Mutation' <$>
1099 Mutation' <$>
1100+ (o .:? "baseVersion") <*> (o .:? "insert") <*>
1037− (o .:? "insert") <*> (o .:? "upsert") <*>
1101+ (o .:? "upsert")
1038− (o .:? "delete")
1102+ <*> (o .:? "delete")
1039 <*> (o .:? "update"))
1103 <*> (o .:? "update"))
1040
1104
1041instance ToJSON Mutation where
1105instance ToJSON Mutation where
1042 toJSON Mutation'{..}
1106 toJSON Mutation'{..}
1043 = object
1107 = object
1044 (catMaybes
1108 (catMaybes
1109+ [("baseVersion" .=) <$> _mBaseVersion,
1045− [("insert" .=) <$> _mInsert,
1110+ ("insert" .=) <$> _mInsert,
1046 ("upsert" .=) <$> _mUpsert,
1111 ("upsert" .=) <$> _mUpsert,
1047 ("delete" .=) <$> _mDelete,
1112 ("delete" .=) <$> _mDelete,
1048 ("update" .=) <$> _mUpdate])
1113 ("update" .=) <$> _mUpdate])
@@ -1420,8 +1485,9 @@ instance ToJSON ArrayValue where
1420--
1485--
1421-- /See:/ 'entityResult' smart constructor.
1486-- /See:/ 'entityResult' smart constructor.
1422data EntityResult = EntityResult'
1487data EntityResult = EntityResult'
1423− { _erCursor :: !(Maybe Base64)
1488+ { _erCursor :: !(Maybe Base64)
1489+ , _erVersion :: !(Maybe (Textual Int64))
1424− , _erEntity :: !(Maybe Entity)
1490+ , _erEntity :: !(Maybe Entity)
1425 } deriving (Eq,Show,Data,Typeable,Generic)
1491 } deriving (Eq,Show,Data,Typeable,Generic)
1426
1492
1427-- | Creates a value of 'EntityResult' with the minimum fields required to make a request.
1493-- | Creates a value of 'EntityResult' with the minimum fields required to make a request.
@@ -1430,12 +1496,15 @@ data EntityResult = EntityResult'
1430--
1496--
1431-- * 'erCursor'
1497-- * 'erCursor'
1432--
1498--
1499+-- * 'erVersion'
1500+--
1433-- * 'erEntity'
1501-- * 'erEntity'
1434entityResult
1502entityResult
1435 :: EntityResult
1503 :: EntityResult
1436entityResult =
1504entityResult =
1437 EntityResult'
1505 EntityResult'
1438 { _erCursor = Nothing
1506 { _erCursor = Nothing
1507+ , _erVersion = Nothing
1439 , _erEntity = Nothing
1508 , _erEntity = Nothing
1440 }
1509 }
1441
1510
@@ -1446,6 +1515,16 @@ erCursor
1446 = lens _erCursor (\ s a -> s{_erCursor = a}) .
1515 = lens _erCursor (\ s a -> s{_erCursor = a}) .
1447 mapping _Base64
1516 mapping _Base64
1448
1517
1518+-- | The version of the entity, a strictly positive number that monotonically
1519+-- increases with changes to the entity. This field is set for \`FULL\`
1520+-- entity results. For missing entities in \`LookupResponse\`, this is the
1521+-- version of the snapshot that was used to look up the entity, and it is
1522+-- always set except for eventually consistent reads.
1523+erVersion :: Lens' EntityResult (Maybe Int64)
1524+erVersion
1525+ = lens _erVersion (\ s a -> s{_erVersion = a}) .
1526+ mapping _Coerce
1527+
1449-- | The resulting entity.
1528-- | The resulting entity.
1450erEntity :: Lens' EntityResult (Maybe Entity)
1529erEntity :: Lens' EntityResult (Maybe Entity)
1451erEntity = lens _erEntity (\ s a -> s{_erEntity = a})
1530erEntity = lens _erEntity (\ s a -> s{_erEntity = a})
@@ -1455,16 +1534,18 @@ instance FromJSON EntityResult where
1455 = withObject "EntityResult"
1534 = withObject "EntityResult"
1456 (\ o ->
1535 (\ o ->
1457 EntityResult' <$>
1536 EntityResult' <$>
1537+ (o .:? "cursor") <*> (o .:? "version") <*>
1458− (o .:? "cursor") <*> (o .:? "entity"))
1538+ (o .:? "entity"))
1459
1539
1460instance ToJSON EntityResult where
1540instance ToJSON EntityResult where
1461 toJSON EntityResult'{..}
1541 toJSON EntityResult'{..}
1462 = object
1542 = object
1463 (catMaybes
1543 (catMaybes
1464 [("cursor" .=) <$> _erCursor,
1544 [("cursor" .=) <$> _erCursor,
1545+ ("version" .=) <$> _erVersion,
1465 ("entity" .=) <$> _erEntity])
1546 ("entity" .=) <$> _erEntity])
1466
1547
1467−-- | The response for google.datastore.v1beta3.Datastore.Commit.
1548+-- | The response for Datastore.Commit.
1468--
1549--
1469-- /See:/ 'commitResponse' smart constructor.
1550-- /See:/ 'commitResponse' smart constructor.
1470data CommitResponse = CommitResponse'
1551data CommitResponse = CommitResponse'
@@ -1582,7 +1663,7 @@ roReadConsistency
1582 (\ s a -> s{_roReadConsistency = a})
1663 (\ s a -> s{_roReadConsistency = a})
1583
1664
1584-- | The identifier of the transaction in which to read. A transaction
1665-- | The identifier of the transaction in which to read. A transaction
1585−-- identifier is returned by a call to BeginTransaction.
1666+-- identifier is returned by a call to Datastore.BeginTransaction.
1586roTransaction :: Lens' ReadOptions (Maybe ByteString)
1667roTransaction :: Lens' ReadOptions (Maybe ByteString)
1587roTransaction
1668roTransaction
1588 = lens _roTransaction
1669 = lens _roTransaction
@@ -1603,8 +1684,7 @@ instance ToJSON ReadOptions where
1603 [("readConsistency" .=) <$> _roReadConsistency,
1684 [("readConsistency" .=) <$> _roReadConsistency,
1604 ("transaction" .=) <$> _roTransaction])
1685 ("transaction" .=) <$> _roTransaction])
1605
1686
1606−-- | The response for google.datastore.v1beta3.Datastore.Rollback (an empty
1687+-- | The response for Datastore.Rollback. (an empty message).
1607−-- message).
1608--
1688--
1609-- /See:/ 'rollbackResponse' smart constructor.
1689-- /See:/ 'rollbackResponse' smart constructor.
1610data RollbackResponse =
1690data RollbackResponse =
@@ -1708,7 +1788,7 @@ instance ToJSON Filter where
1708 [("compositeFilter" .=) <$> _fCompositeFilter,
1788 [("compositeFilter" .=) <$> _fCompositeFilter,
1709 ("propertyFilter" .=) <$> _fPropertyFilter])
1789 ("propertyFilter" .=) <$> _fPropertyFilter])
1710
1790
1711−-- | The request for google.datastore.v1beta3.Datastore.Commit.
1791+-- | The request for Datastore.Commit.
1712--
1792--
1713-- /See:/ 'commitRequest' smart constructor.
1793-- /See:/ 'commitRequest' smart constructor.
1714data CommitRequest = CommitRequest'
1794data CommitRequest = CommitRequest'
@@ -1753,7 +1833,8 @@ crMode :: Lens' CommitRequest (Maybe CommitRequestMode)
1753crMode = lens _crMode (\ s a -> s{_crMode = a})
1833crMode = lens _crMode (\ s a -> s{_crMode = a})
1754
1834
1755-- | The identifier of the transaction associated with the commit. A
1835-- | The identifier of the transaction associated with the commit. A
1756−-- transaction identifier is returned by a call to BeginTransaction.
1836+-- transaction identifier is returned by a call to
1837+-- Datastore.BeginTransaction.
1757crTransaction :: Lens' CommitRequest (Maybe ByteString)
1838crTransaction :: Lens' CommitRequest (Maybe ByteString)
1758crTransaction
1839crTransaction
1759 = lens _crTransaction
1840 = lens _crTransaction
@@ -1891,7 +1972,7 @@ instance ToJSON Entity where
1891 [("key" .=) <$> _eKey,
1972 [("key" .=) <$> _eKey,
1892 ("properties" .=) <$> _eProperties])
1973 ("properties" .=) <$> _eProperties])
1893
1974
1894−-- | The response for google.datastore.v1beta3.Datastore.Lookup.
1975+-- | The response for Datastore.Lookup.
1895--
1976--
1896-- /See:/ 'lookupResponse' smart constructor.
1977-- /See:/ 'lookupResponse' smart constructor.
1897data LookupResponse = LookupResponse'
1978data LookupResponse = LookupResponse'
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/AllocateIds.hs+1−1
@@ -51,7 +51,7 @@ import Network.Google.Prelude
51-- | A resource alias for @datastore.projects.allocateIds@ method which the
51-- | A resource alias for @datastore.projects.allocateIds@ method which the
52-- 'ProjectsAllocateIds' request conforms to.
52-- 'ProjectsAllocateIds' request conforms to.
53type ProjectsAllocateIdsResource =
53type ProjectsAllocateIdsResource =
54− "v1beta3" :>
54+ "v1" :>
55 "projects" :>
55 "projects" :>
56 CaptureMode "projectId" "allocateIds" Text :>
56 CaptureMode "projectId" "allocateIds" Text :>
57 QueryParam "$.xgafv" Xgafv :>
57 QueryParam "$.xgafv" Xgafv :>
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/BeginTransaction.hs+1−1
@@ -50,7 +50,7 @@ import Network.Google.Prelude
50-- | A resource alias for @datastore.projects.beginTransaction@ method which the
50-- | A resource alias for @datastore.projects.beginTransaction@ method which the
51-- 'ProjectsBeginTransaction' request conforms to.
51-- 'ProjectsBeginTransaction' request conforms to.
52type ProjectsBeginTransactionResource =
52type ProjectsBeginTransactionResource =
53− "v1beta3" :>
53+ "v1" :>
54 "projects" :>
54 "projects" :>
55 CaptureMode "projectId" "beginTransaction" Text :>
55 CaptureMode "projectId" "beginTransaction" Text :>
56 QueryParam "$.xgafv" Xgafv :>
56 QueryParam "$.xgafv" Xgafv :>
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/Commit.hs+1−1
@@ -51,7 +51,7 @@ import Network.Google.Prelude
51-- | A resource alias for @datastore.projects.commit@ method which the
51-- | A resource alias for @datastore.projects.commit@ method which the
52-- 'ProjectsCommit' request conforms to.
52-- 'ProjectsCommit' request conforms to.
53type ProjectsCommitResource =
53type ProjectsCommitResource =
54− "v1beta3" :>
54+ "v1" :>
55 "projects" :>
55 "projects" :>
56 CaptureMode "projectId" "commit" Text :>
56 CaptureMode "projectId" "commit" Text :>
57 QueryParam "$.xgafv" Xgafv :>
57 QueryParam "$.xgafv" Xgafv :>
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/Lookup.hs+1−1
@@ -50,7 +50,7 @@ import Network.Google.Prelude
50-- | A resource alias for @datastore.projects.lookup@ method which the
50-- | A resource alias for @datastore.projects.lookup@ method which the
51-- 'ProjectsLookup' request conforms to.
51-- 'ProjectsLookup' request conforms to.
52type ProjectsLookupResource =
52type ProjectsLookupResource =
53− "v1beta3" :>
53+ "v1" :>
54 "projects" :>
54 "projects" :>
55 CaptureMode "projectId" "lookup" Text :>
55 CaptureMode "projectId" "lookup" Text :>
56 QueryParam "$.xgafv" Xgafv :>
56 QueryParam "$.xgafv" Xgafv :>
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/Rollback.hs+1−1
@@ -50,7 +50,7 @@ import Network.Google.Prelude
50-- | A resource alias for @datastore.projects.rollback@ method which the
50-- | A resource alias for @datastore.projects.rollback@ method which the
51-- 'ProjectsRollback' request conforms to.
51-- 'ProjectsRollback' request conforms to.
52type ProjectsRollbackResource =
52type ProjectsRollbackResource =
53− "v1beta3" :>
53+ "v1" :>
54 "projects" :>
54 "projects" :>
55 CaptureMode "projectId" "rollback" Text :>
55 CaptureMode "projectId" "rollback" Text :>
56 QueryParam "$.xgafv" Xgafv :>
56 QueryParam "$.xgafv" Xgafv :>
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/RunQuery.hs+1−1
@@ -50,7 +50,7 @@ import Network.Google.Prelude
50-- | A resource alias for @datastore.projects.runQuery@ method which the
50-- | A resource alias for @datastore.projects.runQuery@ method which the
51-- 'ProjectsRunQuery' request conforms to.
51-- 'ProjectsRunQuery' request conforms to.
52type ProjectsRunQueryResource =
52type ProjectsRunQueryResource =
53− "v1beta3" :>
53+ "v1" :>
54 "projects" :>
54 "projects" :>
55 CaptureMode "projectId" "runQuery" Text :>
55 CaptureMode "projectId" "runQuery" Text :>
56 QueryParam "$.xgafv" Xgafv :>
56 QueryParam "$.xgafv" Xgafv :>
gogol-datastore/gogol-datastore.cabal+1−1
@@ -20,7 +20,7 @@ description:
20 /Warning:/ This is an experimental prototype/preview release which is still
20 /Warning:/ This is an experimental prototype/preview release which is still
21 under exploratory development and not intended for public use, caveat emptor!
21 under exploratory development and not intended for public use, caveat emptor!
22 .
22 .
23− This library is compatible with version @v1beta3@
23+ This library is compatible with version @v1@
24 of the API.
24 of the API.
25
25
26source-repository head
26source-repository head