on develop help sign in
Regenerating all services
ecbc697Brendan Hay
gen/model/datastore/v1beta1/datastore-api.jsonnew file+988
@@ -0,0 +1,988 @@
1+{
2+ "kind": "discovery#restDescription",
3+ "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/dy6n0rfohZWlTzhdDX3ZUa-EJxE\"",
4+ "discoveryVersion": "v1",
5+ "id": "datastore:v1beta1",
6+ "name": "datastore",
7+ "version": "v1beta1",
8+ "revision": "20160314",
9+ "title": "Google Cloud Datastore API",
10+ "description": "Stores and queries data in Google Cloud Datastore.",
11+ "ownerDomain": "google.com",
12+ "ownerName": "Google",
13+ "icons": {
14+ "x16": "http://www.google.com/images/icons/product/search-16.gif",
15+ "x32": "http://www.google.com/images/icons/product/search-32.gif"
16+ },
17+ "documentationLink": "https://developers.google.com/datastore/",
18+ "protocol": "rest",
19+ "baseUrl": "https://www.googleapis.com/datastore/v1beta1/datasets/",
20+ "basePath": "/datastore/v1beta1/datasets/",
21+ "rootUrl": "https://www.googleapis.com/",
22+ "servicePath": "datastore/v1beta1/datasets/",
23+ "batchPath": "batch",
24+ "parameters": {
25+ "alt": {
26+ "type": "string",
27+ "description": "Data format for the response.",
28+ "default": "proto",
29+ "enum": [
30+ "json",
31+ "proto"
32+ ],
33+ "enumDescriptions": [
34+ "Responses with Content-Type of application/json",
35+ "Responses with Content-Type of application/x-protobuf"
36+ ],
37+ "location": "query"
38+ },
39+ "fields": {
40+ "type": "string",
41+ "description": "Selector specifying which fields to include in a partial response.",
42+ "location": "query"
43+ },
44+ "key": {
45+ "type": "string",
46+ "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.",
47+ "location": "query"
48+ },
49+ "oauth_token": {
50+ "type": "string",
51+ "description": "OAuth 2.0 token for the current user.",
52+ "location": "query"
53+ },
54+ "prettyPrint": {
55+ "type": "boolean",
56+ "description": "Returns response with indentations and line breaks.",
57+ "default": "true",
58+ "location": "query"
59+ },
60+ "quotaUser": {
61+ "type": "string",
62+ "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. Overrides userIp if both are provided.",
63+ "location": "query"
64+ },
65+ "userIp": {
66+ "type": "string",
67+ "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
68+ "location": "query"
69+ }
70+ },
71+ "auth": {
72+ "oauth2": {
73+ "scopes": {
74+ "https://www.googleapis.com/auth/cloud-platform": {
75+ "description": "View and manage your data across Google Cloud Platform services"
76+ },
77+ "https://www.googleapis.com/auth/datastore": {
78+ "description": "View and manage your Google Cloud Datastore data"
79+ },
80+ "https://www.googleapis.com/auth/userinfo.email": {
81+ "description": "View your email address"
82+ }
83+ }
84+ }
85+ },
86+ "schemas": {
87+ "AllocateIdsRequest": {
88+ "id": "AllocateIdsRequest",
89+ "type": "object",
90+ "properties": {
91+ "keys": {
92+ "type": "array",
93+ "description": "A list of keys with incomplete key paths to allocate IDs for. No key may be reserved/read-only.",
94+ "items": {
95+ "$ref": "Key"
96+ }
97+ }
98+ }
99+ },
100+ "AllocateIdsResponse": {
101+ "id": "AllocateIdsResponse",
102+ "type": "object",
103+ "properties": {
104+ "header": {
105+ "$ref": "ResponseHeader"
106+ },
107+ "keys": {
108+ "type": "array",
109+ "description": "The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.",
110+ "items": {
111+ "$ref": "Key"
112+ }
113+ }
114+ }
115+ },
116+ "BeginTransactionRequest": {
117+ "id": "BeginTransactionRequest",
118+ "type": "object",
119+ "properties": {
120+ "isolationLevel": {
121+ "type": "string",
122+ "description": "The transaction isolation level. Either snapshot or serializable. The default isolation level is snapshot isolation, which means that another transaction may not concurrently modify the data that is modified by this transaction. Optionally, a transaction can request to be made serializable which means that another transaction cannot concurrently modify the data that is read or modified by this transaction."
123+ }
124+ }
125+ },
126+ "BeginTransactionResponse": {
127+ "id": "BeginTransactionResponse",
128+ "type": "object",
129+ "properties": {
130+ "header": {
131+ "$ref": "ResponseHeader"
132+ },
133+ "transaction": {
134+ "type": "string",
135+ "description": "The transaction identifier (always present).",
136+ "format": "byte"
137+ }
138+ }
139+ },
140+ "BlindWriteRequest": {
141+ "id": "BlindWriteRequest",
142+ "type": "object",
143+ "properties": {
144+ "mutation": {
145+ "$ref": "Mutation",
146+ "description": "The mutation to perform."
147+ }
148+ }
149+ },
150+ "BlindWriteResponse": {
151+ "id": "BlindWriteResponse",
152+ "type": "object",
153+ "properties": {
154+ "header": {
155+ "$ref": "ResponseHeader"
156+ },
157+ "mutationResult": {
158+ "$ref": "MutationResult",
159+ "description": "The result of performing the mutation (always present)."
160+ }
161+ }
162+ },
163+ "CommitRequest": {
164+ "id": "CommitRequest",
165+ "type": "object",
166+ "properties": {
167+ "ignoreReadOnly": {
168+ "type": "boolean"
169+ },
170+ "mutation": {
171+ "$ref": "Mutation",
172+ "description": "The mutation to perform. Optional."
173+ },
174+ "transaction": {
175+ "type": "string",
176+ "description": "The transaction identifier, returned by a call to beginTransaction. Must be set when mode is TRANSACTIONAL.",
177+ "format": "byte"
178+ }
179+ }
180+ },
181+ "CommitResponse": {
182+ "id": "CommitResponse",
183+ "type": "object",
184+ "properties": {
185+ "header": {
186+ "$ref": "ResponseHeader"
187+ },
188+ "mutationResult": {
189+ "$ref": "MutationResult",
190+ "description": "The result of performing the mutation (if any)."
191+ }
192+ }
193+ },
194+ "CompositeFilter": {
195+ "id": "CompositeFilter",
196+ "type": "object",
197+ "description": "A filter that merges the multiple other filters using the given operation.",
198+ "properties": {
199+ "filters": {
200+ "type": "array",
201+ "description": "The list of filters to combine. Must contain at least one filter.",
202+ "items": {
203+ "$ref": "Filter"
204+ }
205+ },
206+ "operator": {
207+ "type": "string",
208+ "description": "The operator for combining multiple filters. Only \"and\" is currently supported."
209+ }
210+ }
211+ },
212+ "Entity": {
213+ "id": "Entity",
214+ "type": "object",
215+ "description": "An entity.",
216+ "properties": {
217+ "key": {
218+ "$ref": "Key",
219+ "description": "The entity's key.\n\nAn entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key."
220+ },
221+ "properties": {
222+ "type": "object",
223+ "description": "The entity's properties.",
224+ "additionalProperties": {
225+ "$ref": "Property",
226+ "description": "The name of the property. A property name matching regex \"__.*__\" is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. Cannot be \"\"."
227+ }
228+ }
229+ }
230+ },
231+ "EntityResult": {
232+ "id": "EntityResult",
233+ "type": "object",
234+ "description": "The result of fetching an entity from the datastore.",
235+ "properties": {
236+ "entity": {
237+ "$ref": "Entity",
238+ "description": "The resulting entity."
239+ }
240+ }
241+ },
242+ "Filter": {
243+ "id": "Filter",
244+ "type": "object",
245+ "description": "A holder for any type of filter. Exactly one field should be specified.",
246+ "properties": {
247+ "compositeFilter": {
248+ "$ref": "CompositeFilter",
249+ "description": "A composite filter."
250+ },
251+ "propertyFilter": {
252+ "$ref": "PropertyFilter",
253+ "description": "A filter on a property."
254+ }
255+ }
256+ },
257+ "GqlQuery": {
258+ "id": "GqlQuery",
259+ "type": "object",
260+ "description": "A GQL query.",
261+ "properties": {
262+ "allowLiteral": {
263+ "type": "boolean",
264+ "description": "When false, the query string must not contain a literal."
265+ },
266+ "nameArgs": {
267+ "type": "array",
268+ "description": "A named argument must set field GqlQueryArg.name. No two named arguments may have the same name. For each non-reserved named binding site in the query string, there must be a named argument with that name, but not necessarily the inverse.",
269+ "items": {
270+ "$ref": "GqlQueryArg"
271+ }
272+ },
273+ "numberArgs": {
274+ "type": "array",
275+ "description": "Numbered binding site @1 references the first numbered argument, effectively using 1-based indexing, rather than the usual 0. A numbered argument must NOT set field GqlQueryArg.name. For each binding site numbered i in query_string, there must be an ith numbered argument. The inverse must also be true.",
276+ "items": {
277+ "$ref": "GqlQueryArg"
278+ }
279+ },
280+ "queryString": {
281+ "type": "string",
282+ "description": "The query string."
283+ }
284+ }
285+ },
286+ "GqlQueryArg": {
287+ "id": "GqlQueryArg",
288+ "type": "object",
289+ "description": "A binding argument for a GQL query.",
290+ "properties": {
291+ "cursor": {
292+ "type": "string",
293+ "format": "byte"
294+ },
295+ "name": {
296+ "type": "string",
297+ "description": "Must match regex \"[A-Za-z_$][A-Za-z_$0-9]*\". Must not match regex \"__.*__\". Must not be \"\"."
298+ },
299+ "value": {
300+ "$ref": "Value"
301+ }
302+ }
303+ },
304+ "Key": {
305+ "id": "Key",
306+ "type": "object",
307+ "description": "A unique identifier for an entity.",
308+ "properties": {
309+ "partitionId": {
310+ "$ref": "PartitionId",
311+ "description": "Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition."
312+ },
313+ "path": {
314+ "type": "array",
315+ "description": "The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.",
316+ "items": {
317+ "$ref": "KeyPathElement"
318+ }
319+ }
320+ }
321+ },
322+ "KeyPathElement": {
323+ "id": "KeyPathElement",
324+ "type": "object",
325+ "description": "A (kind, ID/name) pair used to construct a key path.\n\nAt most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.",
326+ "properties": {
327+ "id": {
328+ "type": "string",
329+ "description": "The ID of the entity. Never equal to zero. Values less than zero are discouraged and will not be supported in the future.",
330+ "format": "int64"
331+ },
332+ "kind": {
333+ "type": "string",
334+ "description": "The kind of the entity. A kind matching regex \"__.*__\" is reserved/read-only. A kind must not contain more than 500 characters. Cannot be \"\"."
335+ },
336+ "name": {
337+ "type": "string",
338+ "description": "The name of the entity. A name matching regex \"__.*__\" is reserved/read-only. A name must not be more than 500 characters. Cannot be \"\"."
339+ }
340+ }
341+ },
342+ "KindExpression": {
343+ "id": "KindExpression",
344+ "type": "object",
345+ "description": "A representation of a kind.",
346+ "properties": {
347+ "name": {
348+ "type": "string",
349+ "description": "The name of the kind."
350+ }
351+ }
352+ },
353+ "LookupRequest": {
354+ "id": "LookupRequest",
355+ "type": "object",
356+ "properties": {
357+ "keys": {
358+ "type": "array",
359+ "description": "Keys of entities to look up from the datastore.",
360+ "items": {
361+ "$ref": "Key"
362+ }
363+ },
364+ "readOptions": {
365+ "$ref": "ReadOptions",
366+ "description": "Options for this lookup request. Optional."
367+ }
368+ }
369+ },
370+ "LookupResponse": {
371+ "id": "LookupResponse",
372+ "type": "object",
373+ "properties": {
374+ "deferred": {
375+ "type": "array",
376+ "description": "A list of keys that were not looked up due to resource constraints.",
377+ "items": {
378+ "$ref": "Key"
379+ }
380+ },
381+ "found": {
382+ "type": "array",
383+ "description": "Entities found.",
384+ "items": {
385+ "$ref": "EntityResult"
386+ }
387+ },
388+ "header": {
389+ "$ref": "ResponseHeader"
390+ },
391+ "missing": {
392+ "type": "array",
393+ "description": "Entities not found, with only the key populated.",
394+ "items": {
395+ "$ref": "EntityResult"
396+ }
397+ }
398+ }
399+ },
400+ "Mutation": {
401+ "id": "Mutation",
402+ "type": "object",
403+ "description": "A set of changes to apply.",
404+ "properties": {
405+ "delete": {
406+ "type": "array",
407+ "description": "Keys of entities to delete. Each key must have a complete key path and must not be reserved/read-only.",
408+ "items": {
409+ "$ref": "Key"
410+ }
411+ },
412+ "force": {
413+ "type": "boolean",
414+ "description": "Ignore a user specified read-only period. Optional."
415+ },
416+ "insert": {
417+ "type": "array",
418+ "description": "Entities to insert. Each inserted entity's key must have a complete path and must not be reserved/read-only.",
419+ "items": {
420+ "$ref": "Entity"
421+ }
422+ },
423+ "insertAutoId": {
424+ "type": "array",
425+ "description": "Insert entities with a newly allocated ID. Each inserted entity's key must omit the final identifier in its path and must not be reserved/read-only.",
426+ "items": {
427+ "$ref": "Entity"
428+ }
429+ },
430+ "update": {
431+ "type": "array",
432+ "description": "Entities to update. Each updated entity's key must have a complete path and must not be reserved/read-only.",
433+ "items": {
434+ "$ref": "Entity"
435+ }
436+ },
437+ "upsert": {
438+ "type": "array",
439+ "description": "Entities to upsert. Each upserted entity's key must have a complete path and must not be reserved/read-only.",
440+ "items": {
441+ "$ref": "Entity"
442+ }
443+ }
444+ }
445+ },
446+ "MutationResult": {
447+ "id": "MutationResult",
448+ "type": "object",
449+ "properties": {
450+ "indexUpdates": {
451+ "type": "integer",
452+ "description": "Number of index writes.",
453+ "format": "int32"
454+ },
455+ "insertAutoIdKeys": {
456+ "type": "array",
457+ "description": "Keys for insertAutoId entities. One per entity from the request, in the same order.",
458+ "items": {
459+ "$ref": "Key"
460+ }
461+ }
462+ }
463+ },
464+ "PartitionId": {
465+ "id": "PartitionId",
466+ "type": "object",
467+ "description": "An identifier for a particular subset of entities.\n\nEntities are partitioned into various subsets, each used by different datasets and different namespaces within a dataset and so forth.",
468+ "properties": {
469+ "datasetId": {
470+ "type": "string",
471+ "description": "The dataset ID."
472+ },
473+ "namespace": {
474+ "type": "string",
475+ "description": "The namespace."
476+ }
477+ }
478+ },
479+ "Property": {
480+ "id": "Property",
481+ "type": "object",
482+ "description": "An entity property.",
483+ "properties": {
484+ "multi": {
485+ "type": "boolean",
486+ "description": "If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi."
487+ },
488+ "values": {
489+ "type": "array",
490+ "description": "The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: \"a\" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: \"a\" } ] }.",
491+ "items": {
492+ "$ref": "Value"
493+ }
494+ }
495+ }
496+ },
497+ "PropertyExpression": {
498+ "id": "PropertyExpression",
499+ "type": "object",
500+ "description": "A representation of a property in a projection.",
501+ "properties": {
502+ "aggregationFunction": {
503+ "type": "string",
504+ "description": "The aggregation function to apply to the property. Optional. Can only be used when grouping by at least one property. Must then be set on all properties in the projection that are not being grouped by. Aggregation functions: first selects the first result as determined by the query's order."
505+ },
506+ "property": {
507+ "$ref": "PropertyReference",
508+ "description": "The property to project."
509+ }
510+ }
511+ },
512+ "PropertyFilter": {
513+ "id": "PropertyFilter",
514+ "type": "object",
515+ "description": "A filter on a specific property.",
516+ "properties": {
517+ "operator": {
518+ "type": "string",
519+ "description": "The operator to filter by. One of lessThan, lessThanOrEqual, greaterThan, greaterThanOrEqual, equal, or hasAncestor."
520+ },
521+ "property": {
522+ "$ref": "PropertyReference",
523+ "description": "The property to filter by."
524+ },
525+ "value": {
526+ "$ref": "Value",
527+ "description": "The value to compare the property to."
528+ }
529+ }
530+ },
531+ "PropertyOrder": {
532+ "id": "PropertyOrder",
533+ "type": "object",
534+ "description": "The desired order for a specific property.",
535+ "properties": {
536+ "direction": {
537+ "type": "string",
538+ "description": "The direction to order by. One of ascending or descending. Optional, defaults to ascending."
539+ },
540+ "property": {
541+ "$ref": "PropertyReference",
542+ "description": "The property to order by."
543+ }
544+ }
545+ },
546+ "PropertyReference": {
547+ "id": "PropertyReference",
548+ "type": "object",
549+ "description": "A reference to a property relative to the kind expressions.",
550+ "properties": {
551+ "name": {
552+ "type": "string",
553+ "description": "The name of the property."
554+ }
555+ }
556+ },
557+ "Query": {
558+ "id": "Query",
559+ "type": "object",
560+ "description": "A query.",
561+ "properties": {
562+ "endCursor": {
563+ "type": "string",
564+ "description": "An ending point for the query results. Optional. Query cursors are returned in query result batches.",
565+ "format": "byte"
566+ },
567+ "filter": {
568+ "$ref": "Filter",
569+ "description": "The filter to apply (optional)."
570+ },
571+ "groupBy": {
572+ "type": "array",
573+ "description": "The properties to group by (if empty, no grouping is applied to the result set).",
574+ "items": {
575+ "$ref": "PropertyReference"
576+ }
577+ },
578+ "kinds": {
579+ "type": "array",
580+ "description": "The kinds to query (if empty, returns entities from all kinds).",
581+ "items": {
582+ "$ref": "KindExpression"
583+ }
584+ },
585+ "limit": {
586+ "type": "integer",
587+ "description": "The maximum number of results to return. Applies after all other constraints. Optional.",
588+ "format": "int32"
589+ },
590+ "offset": {
591+ "type": "integer",
592+ "description": "The number of results to skip. Applies before limit, but after all other constraints (optional, defaults to 0).",
593+ "format": "int32"
594+ },
595+ "order": {
596+ "type": "array",
597+ "description": "The order to apply to the query results (if empty, order is unspecified).",
598+ "items": {
599+ "$ref": "PropertyOrder"
600+ }
601+ },
602+ "projection": {
603+ "type": "array",
604+ "description": "The projection to return. If not set the entire entity is returned.",
605+ "items": {
606+ "$ref": "PropertyExpression"
607+ }
608+ },
609+ "startCursor": {
610+ "type": "string",
611+ "description": "A starting point for the query results. Optional. Query cursors are returned in query result batches.",
612+ "format": "byte"
613+ }
614+ }
615+ },
616+ "QueryResultBatch": {
617+ "id": "QueryResultBatch",
618+ "type": "object",
619+ "description": "A batch of results produced by a query.",
620+ "properties": {
621+ "endCursor": {
622+ "type": "string",
623+ "description": "A cursor that points to the position after the last result in the batch. May be absent. TODO(arfuller): Once all plans produce cursors update documentation here.",
624+ "format": "byte"
625+ },
626+ "entityResultType": {
627+ "type": "string",
628+ "description": "The result type for every entity in entityResults. full for full entities, projection for entities with only projected properties, keyOnly for entities with only a key."
629+ },
630+ "entityResults": {
631+ "type": "array",
632+ "description": "The results for this batch.",
633+ "items": {
634+ "$ref": "EntityResult"
635+ }
636+ },
637+ "moreResults": {
638+ "type": "string",
639+ "description": "The state of the query after the current batch. One of notFinished, moreResultsAfterLimit, noMoreResults."
640+ },
641+ "skippedResults": {
642+ "type": "integer",
643+ "description": "The number of results skipped because of Query.offset.",
644+ "format": "int32"
645+ }
646+ }
647+ },
648+ "ReadOptions": {
649+ "id": "ReadOptions",
650+ "type": "object",
651+ "properties": {
652+ "readConsistency": {
653+ "type": "string",
654+ "description": "The read consistency to use. One of default, strong, or eventual. Cannot be set when transaction is set. Lookup and ancestor queries default to strong, global queries default to eventual and cannot be set to strong. Optional. Default is default."
655+ },
656+ "transaction": {
657+ "type": "string",
658+ "description": "The transaction to use. Optional.",
659+ "format": "byte"
660+ }
661+ }
662+ },
663+ "ResponseHeader": {
664+ "id": "ResponseHeader",
665+ "type": "object",
666+ "properties": {
667+ "kind": {
668+ "type": "string",
669+ "description": "Identifies what kind of resource this is. Value: the fixed string \"datastore#responseHeader\".",
670+ "default": "datastore#responseHeader"
671+ }
672+ }
673+ },
674+ "RollbackRequest": {
675+ "id": "RollbackRequest",
676+ "type": "object",
677+ "properties": {
678+ "transaction": {
679+ "type": "string",
680+ "description": "The transaction identifier, returned by a call to beginTransaction.",
681+ "format": "byte"
682+ }
683+ }
684+ },
685+ "RollbackResponse": {
686+ "id": "RollbackResponse",
687+ "type": "object",
688+ "properties": {
689+ "header": {
690+ "$ref": "ResponseHeader"
691+ }
692+ }
693+ },
694+ "RunQueryRequest": {
695+ "id": "RunQueryRequest",
696+ "type": "object",
697+ "properties": {
698+ "gqlQuery": {
699+ "$ref": "GqlQuery",
700+ "description": "The GQL query to run. Either this field or field query must be set, but not both."
701+ },
702+ "partitionId": {
703+ "$ref": "PartitionId",
704+ "description": "Entities are partitioned into subsets, identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID, but all other partition IDs in RunQueryRequest are normalized with this partition ID as the context partition ID."
705+ },
706+ "query": {
707+ "$ref": "Query",
708+ "description": "The query to run. Either this field or field gql_query must be set, but not both."
709+ },
710+ "readOptions": {
711+ "$ref": "ReadOptions",
712+ "description": "The options for this query."
713+ }
714+ }
715+ },
716+ "RunQueryResponse": {
717+ "id": "RunQueryResponse",
718+ "type": "object",
719+ "properties": {
720+ "batch": {
721+ "$ref": "QueryResultBatch",
722+ "description": "A batch of query results (always present)."
723+ },
724+ "header": {
725+ "$ref": "ResponseHeader"
726+ }
727+ }
728+ },
729+ "Value": {
730+ "id": "Value",
731+ "type": "object",
732+ "description": "A message that can hold any of the supported value types and associated metadata.",
733+ "properties": {
734+ "blobKeyValue": {
735+ "type": "string",
736+ "description": "A blob key value."
737+ },
738+ "blobValue": {
739+ "type": "string",
740+ "description": "A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may have at most 500 bytes.",
741+ "format": "byte"
742+ },
743+ "booleanValue": {
744+ "type": "boolean",
745+ "description": "A boolean value."
746+ },
747+ "dateTimeValue": {
748+ "type": "string",
749+ "description": "A timestamp value.",
750+ "format": "date-time"
751+ },
752+ "doubleValue": {
753+ "type": "number",
754+ "description": "A double value.",
755+ "format": "double"
756+ },
757+ "entityValue": {
758+ "$ref": "Entity",
759+ "description": "An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key."
760+ },
761+ "indexed": {
762+ "type": "boolean",
763+ "description": "If the value should be indexed.\n\nThe indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true."
764+ },
765+ "integerValue": {
766+ "type": "string",
767+ "description": "An integer value.",
768+ "format": "int64"
769+ },
770+ "keyValue": {
771+ "$ref": "Key",
772+ "description": "A key value."
773+ },
774+ "meaning": {
775+ "type": "integer",
776+ "description": "The meaning field is reserved and should not be used.",
777+ "format": "int32"
778+ },
779+ "stringValue": {
780+ "type": "string",
781+ "description": "A UTF-8 encoded string value. When indexed is true, may have at most 500 characters."
782+ }
783+ }
784+ }
785+ },
786+ "resources": {
787+ "datasets": {
788+ "methods": {
789+ "allocateIds": {
790+ "id": "datastore.datasets.allocateIds",
791+ "path": "{datasetId}/allocateIds",
792+ "httpMethod": "POST",
793+ "description": "Allocate IDs for incomplete keys (useful for referencing an entity before it is inserted).",
794+ "parameters": {
795+ "datasetId": {
796+ "type": "string",
797+ "description": "Identifies the dataset.",
798+ "required": true,
799+ "location": "path"
800+ }
801+ },
802+ "parameterOrder": [
803+ "datasetId"
804+ ],
805+ "request": {
806+ "$ref": "AllocateIdsRequest"
807+ },
808+ "response": {
809+ "$ref": "AllocateIdsResponse"
810+ },
811+ "scopes": [
812+ "https://www.googleapis.com/auth/cloud-platform",
813+ "https://www.googleapis.com/auth/datastore",
814+ "https://www.googleapis.com/auth/userinfo.email"
815+ ]
816+ },
817+ "beginTransaction": {
818+ "id": "datastore.datasets.beginTransaction",
819+ "path": "{datasetId}/beginTransaction",
820+ "httpMethod": "POST",
821+ "description": "Begin a new transaction.",
822+ "parameters": {
823+ "datasetId": {
824+ "type": "string",
825+ "description": "Identifies the dataset.",
826+ "required": true,
827+ "location": "path"
828+ }
829+ },
830+ "parameterOrder": [
831+ "datasetId"
832+ ],
833+ "request": {
834+ "$ref": "BeginTransactionRequest"
835+ },
836+ "response": {
837+ "$ref": "BeginTransactionResponse"
838+ },
839+ "scopes": [
840+ "https://www.googleapis.com/auth/cloud-platform",
841+ "https://www.googleapis.com/auth/datastore",
842+ "https://www.googleapis.com/auth/userinfo.email"
843+ ]
844+ },
845+ "blindWrite": {
846+ "id": "datastore.datasets.blindWrite",
847+ "path": "{datasetId}/blindWrite",
848+ "httpMethod": "POST",
849+ "description": "Create, delete or modify some entities outside a transaction.",
850+ "parameters": {
851+ "datasetId": {
852+ "type": "string",
853+ "description": "Identifies the dataset.",
854+ "required": true,
855+ "location": "path"
856+ }
857+ },
858+ "parameterOrder": [
859+ "datasetId"
860+ ],
861+ "request": {
862+ "$ref": "BlindWriteRequest"
863+ },
864+ "response": {
865+ "$ref": "BlindWriteResponse"
866+ },
867+ "scopes": [
868+ "https://www.googleapis.com/auth/cloud-platform",
869+ "https://www.googleapis.com/auth/datastore",
870+ "https://www.googleapis.com/auth/userinfo.email"
871+ ]
872+ },
873+ "commit": {
874+ "id": "datastore.datasets.commit",
875+ "path": "{datasetId}/commit",
876+ "httpMethod": "POST",
877+ "description": "Commit a transaction, optionally creating, deleting or modifying some entities.",
878+ "parameters": {
879+ "datasetId": {
880+ "type": "string",
881+ "description": "Identifies the dataset.",
882+ "required": true,
883+ "location": "path"
884+ }
885+ },
886+ "parameterOrder": [
887+ "datasetId"
888+ ],
889+ "request": {
890+ "$ref": "CommitRequest"
891+ },
892+ "response": {
893+ "$ref": "CommitResponse"
894+ },
895+ "scopes": [
896+ "https://www.googleapis.com/auth/cloud-platform",
897+ "https://www.googleapis.com/auth/datastore",
898+ "https://www.googleapis.com/auth/userinfo.email"
899+ ]
900+ },
901+ "lookup": {
902+ "id": "datastore.datasets.lookup",
903+ "path": "{datasetId}/lookup",
904+ "httpMethod": "POST",
905+ "description": "Look up some entities by key.",
906+ "parameters": {
907+ "datasetId": {
908+ "type": "string",
909+ "description": "Identifies the dataset.",
910+ "required": true,
911+ "location": "path"
912+ }
913+ },
914+ "parameterOrder": [
915+ "datasetId"
916+ ],
917+ "request": {
918+ "$ref": "LookupRequest"
919+ },
920+ "response": {
921+ "$ref": "LookupResponse"
922+ },
923+ "scopes": [
924+ "https://www.googleapis.com/auth/cloud-platform",
925+ "https://www.googleapis.com/auth/datastore",
926+ "https://www.googleapis.com/auth/userinfo.email"
927+ ]
928+ },
929+ "rollback": {
930+ "id": "datastore.datasets.rollback",
931+ "path": "{datasetId}/rollback",
932+ "httpMethod": "POST",
933+ "description": "Roll back a transaction.",
934+ "parameters": {
935+ "datasetId": {
936+ "type": "string",
937+ "description": "Identifies the dataset.",
938+ "required": true,
939+ "location": "path"
940+ }
941+ },
942+ "parameterOrder": [
943+ "datasetId"
944+ ],
945+ "request": {
946+ "$ref": "RollbackRequest"
947+ },
948+ "response": {
949+ "$ref": "RollbackResponse"
950+ },
951+ "scopes": [
952+ "https://www.googleapis.com/auth/cloud-platform",
953+ "https://www.googleapis.com/auth/datastore",
954+ "https://www.googleapis.com/auth/userinfo.email"
955+ ]
956+ },
957+ "runQuery": {
958+ "id": "datastore.datasets.runQuery",
959+ "path": "{datasetId}/runQuery",
960+ "httpMethod": "POST",
961+ "description": "Query for entities.",
962+ "parameters": {
963+ "datasetId": {
964+ "type": "string",
965+ "description": "Identifies the dataset.",
966+ "required": true,
967+ "location": "path"
968+ }
969+ },
970+ "parameterOrder": [
971+ "datasetId"
972+ ],
973+ "request": {
974+ "$ref": "RunQueryRequest"
975+ },
976+ "response": {
977+ "$ref": "RunQueryResponse"
978+ },
979+ "scopes": [
980+ "https://www.googleapis.com/auth/cloud-platform",
981+ "https://www.googleapis.com/auth/datastore",
982+ "https://www.googleapis.com/auth/userinfo.email"
983+ ]
984+ }
985+ }
986+ }
987+ }
988+}
gen/model/datastore/v1beta2/datastore-api.jsonnew file+1075
@@ -0,0 +1,1075 @@
1+{
2+ "kind": "discovery#restDescription",
3+ "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/xlRfXybj491s9T9Q90yjlG-attA\"",
4+ "discoveryVersion": "v1",
5+ "id": "datastore:v1beta2",
6+ "name": "datastore",
7+ "version": "v1beta2",
8+ "revision": "20160314",
9+ "title": "Google Cloud Datastore API",
10+ "description": "Stores and queries data in Google Cloud Datastore.",
11+ "ownerDomain": "google.com",
12+ "ownerName": "Google",
13+ "icons": {
14+ "x16": "http://www.google.com/images/icons/product/search-16.gif",
15+ "x32": "http://www.google.com/images/icons/product/search-32.gif"
16+ },
17+ "documentationLink": "https://developers.google.com/datastore/",
18+ "protocol": "rest",
19+ "baseUrl": "https://www.googleapis.com/datastore/v1beta2/datasets/",
20+ "basePath": "/datastore/v1beta2/datasets/",
21+ "rootUrl": "https://www.googleapis.com/",
22+ "servicePath": "datastore/v1beta2/datasets/",
23+ "batchPath": "batch",
24+ "parameters": {
25+ "alt": {
26+ "type": "string",
27+ "description": "Data format for the response.",
28+ "default": "proto",
29+ "enum": [
30+ "json",
31+ "proto"
32+ ],
33+ "enumDescriptions": [
34+ "Responses with Content-Type of application/json",
35+ "Responses with Content-Type of application/x-protobuf"
36+ ],
37+ "location": "query"
38+ },
39+ "fields": {
40+ "type": "string",
41+ "description": "Selector specifying which fields to include in a partial response.",
42+ "location": "query"
43+ },
44+ "key": {
45+ "type": "string",
46+ "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.",
47+ "location": "query"
48+ },
49+ "oauth_token": {
50+ "type": "string",
51+ "description": "OAuth 2.0 token for the current user.",
52+ "location": "query"
53+ },
54+ "prettyPrint": {
55+ "type": "boolean",
56+ "description": "Returns response with indentations and line breaks.",
57+ "default": "true",
58+ "location": "query"
59+ },
60+ "quotaUser": {
61+ "type": "string",
62+ "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. Overrides userIp if both are provided.",
63+ "location": "query"
64+ },
65+ "userIp": {
66+ "type": "string",
67+ "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
68+ "location": "query"
69+ }
70+ },
71+ "auth": {
72+ "oauth2": {
73+ "scopes": {
74+ "https://www.googleapis.com/auth/cloud-platform": {
75+ "description": "View and manage your data across Google Cloud Platform services"
76+ },
77+ "https://www.googleapis.com/auth/datastore": {
78+ "description": "View and manage your Google Cloud Datastore data"
79+ },
80+ "https://www.googleapis.com/auth/userinfo.email": {
81+ "description": "View your email address"
82+ }
83+ }
84+ }
85+ },
86+ "schemas": {
87+ "AllocateIdsRequest": {
88+ "id": "AllocateIdsRequest",
89+ "type": "object",
90+ "properties": {
91+ "keys": {
92+ "type": "array",
93+ "description": "A list of keys with incomplete key paths to allocate IDs for. No key may be reserved/read-only.",
94+ "items": {
95+ "$ref": "Key"
96+ }
97+ }
98+ }
99+ },
100+ "AllocateIdsResponse": {
101+ "id": "AllocateIdsResponse",
102+ "type": "object",
103+ "properties": {
104+ "header": {
105+ "$ref": "ResponseHeader"
106+ },
107+ "keys": {
108+ "type": "array",
109+ "description": "The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.",
110+ "items": {
111+ "$ref": "Key"
112+ }
113+ }
114+ }
115+ },
116+ "BeginTransactionRequest": {
117+ "id": "BeginTransactionRequest",
118+ "type": "object",
119+ "properties": {
120+ "isolationLevel": {
121+ "type": "string",
122+ "description": "The transaction isolation level. Either snapshot or serializable. The default isolation level is snapshot isolation, which means that another transaction may not concurrently modify the data that is modified by this transaction. Optionally, a transaction can request to be made serializable which means that another transaction cannot concurrently modify the data that is read or modified by this transaction.",
123+ "enum": [
124+ "SERIALIZABLE",
125+ "SNAPSHOT"
126+ ],
127+ "enumDescriptions": [
128+ "",
129+ ""
130+ ]
131+ }
132+ }
133+ },
134+ "BeginTransactionResponse": {
135+ "id": "BeginTransactionResponse",
136+ "type": "object",
137+ "properties": {
138+ "header": {
139+ "$ref": "ResponseHeader"
140+ },
141+ "transaction": {
142+ "type": "string",
143+ "description": "The transaction identifier (always present).",
144+ "format": "byte"
145+ }
146+ }
147+ },
148+ "CommitRequest": {
149+ "id": "CommitRequest",
150+ "type": "object",
151+ "properties": {
152+ "ignoreReadOnly": {
153+ "type": "boolean"
154+ },
155+ "mode": {
156+ "type": "string",
157+ "description": "The type of commit to perform. Either TRANSACTIONAL or NON_TRANSACTIONAL.",
158+ "enum": [
159+ "NON_TRANSACTIONAL",
160+ "TRANSACTIONAL"
161+ ],
162+ "enumDescriptions": [
163+ "",
164+ ""
165+ ]
166+ },
167+ "mutation": {
168+ "$ref": "Mutation",
169+ "description": "The mutation to perform. Optional."
170+ },
171+ "transaction": {
172+ "type": "string",
173+ "description": "The transaction identifier, returned by a call to beginTransaction. Must be set when mode is TRANSACTIONAL.",
174+ "format": "byte"
175+ }
176+ }
177+ },
178+ "CommitResponse": {
179+ "id": "CommitResponse",
180+ "type": "object",
181+ "properties": {
182+ "header": {
183+ "$ref": "ResponseHeader"
184+ },
185+ "mutationResult": {
186+ "$ref": "MutationResult",
187+ "description": "The result of performing the mutation (if any)."
188+ }
189+ }
190+ },
191+ "CompositeFilter": {
192+ "id": "CompositeFilter",
193+ "type": "object",
194+ "description": "A filter that merges the multiple other filters using the given operation.",
195+ "properties": {
196+ "filters": {
197+ "type": "array",
198+ "description": "The list of filters to combine. Must contain at least one filter.",
199+ "items": {
200+ "$ref": "Filter"
201+ }
202+ },
203+ "operator": {
204+ "type": "string",
205+ "description": "The operator for combining multiple filters. Only \"and\" is currently supported.",
206+ "enum": [
207+ "AND"
208+ ],
209+ "enumDescriptions": [
210+ ""
211+ ]
212+ }
213+ }
214+ },
215+ "Entity": {
216+ "id": "Entity",
217+ "type": "object",
218+ "description": "An entity.",
219+ "properties": {
220+ "key": {
221+ "$ref": "Key",
222+ "description": "The entity's key.\n\nAn entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key."
223+ },
224+ "properties": {
225+ "type": "object",
226+ "description": "The entity's properties.",
227+ "additionalProperties": {
228+ "$ref": "Property",
229+ "description": "The name of the property. A property name matching regex \"__.*__\" is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. Cannot be \"\"."
230+ }
231+ }
232+ }
233+ },
234+ "EntityResult": {
235+ "id": "EntityResult",
236+ "type": "object",
237+ "description": "The result of fetching an entity from the datastore.",
238+ "properties": {
239+ "entity": {
240+ "$ref": "Entity",
241+ "description": "The resulting entity."
242+ }
243+ }
244+ },
245+ "Filter": {
246+ "id": "Filter",
247+ "type": "object",
248+ "description": "A holder for any type of filter. Exactly one field should be specified.",
249+ "properties": {
250+ "compositeFilter": {
251+ "$ref": "CompositeFilter",
252+ "description": "A composite filter."
253+ },
254+ "propertyFilter": {
255+ "$ref": "PropertyFilter",
256+ "description": "A filter on a property."
257+ }
258+ }
259+ },
260+ "GqlQuery": {
261+ "id": "GqlQuery",
262+ "type": "object",
263+ "description": "A GQL query.",
264+ "properties": {
265+ "allowLiteral": {
266+ "type": "boolean",
267+ "description": "When false, the query string must not contain a literal."
268+ },
269+ "nameArgs": {
270+ "type": "array",
271+ "description": "A named argument must set field GqlQueryArg.name. No two named arguments may have the same name. For each non-reserved named binding site in the query string, there must be a named argument with that name, but not necessarily the inverse.",
272+ "items": {
273+ "$ref": "GqlQueryArg"
274+ }
275+ },
276+ "numberArgs": {
277+ "type": "array",
278+ "description": "Numbered binding site @1 references the first numbered argument, effectively using 1-based indexing, rather than the usual 0. A numbered argument must NOT set field GqlQueryArg.name. For each binding site numbered i in query_string, there must be an ith numbered argument. The inverse must also be true.",
279+ "items": {
280+ "$ref": "GqlQueryArg"
281+ }
282+ },
283+ "queryString": {
284+ "type": "string",
285+ "description": "The query string."
286+ }
287+ }
288+ },
289+ "GqlQueryArg": {
290+ "id": "GqlQueryArg",
291+ "type": "object",
292+ "description": "A binding argument for a GQL query.",
293+ "properties": {
294+ "cursor": {
295+ "type": "string",
296+ "format": "byte"
297+ },
298+ "name": {
299+ "type": "string",
300+ "description": "Must match regex \"[A-Za-z_$][A-Za-z_$0-9]*\". Must not match regex \"__.*__\". Must not be \"\"."
301+ },
302+ "value": {
303+ "$ref": "Value"
304+ }
305+ }
306+ },
307+ "Key": {
308+ "id": "Key",
309+ "type": "object",
310+ "description": "A unique identifier for an entity.",
311+ "properties": {
312+ "partitionId": {
313+ "$ref": "PartitionId",
314+ "description": "Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition."
315+ },
316+ "path": {
317+ "type": "array",
318+ "description": "The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty. The path can have at most 100 elements.",
319+ "items": {
320+ "$ref": "KeyPathElement"
321+ }
322+ }
323+ }
324+ },
325+ "KeyPathElement": {
326+ "id": "KeyPathElement",
327+ "type": "object",
328+ "description": "A (kind, ID/name) pair used to construct a key path.\n\nAt most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.",
329+ "properties": {
330+ "id": {
331+ "type": "string",
332+ "description": "The ID of the entity. Never equal to zero. Values less than zero are discouraged and will not be supported in the future.",
333+ "format": "int64"
334+ },
335+ "kind": {
336+ "type": "string",
337+ "description": "The kind of the entity. A kind matching regex \"__.*__\" is reserved/read-only. A kind must not contain more than 500 characters. Cannot be \"\"."
338+ },
339+ "name": {
340+ "type": "string",
341+ "description": "The name of the entity. A name matching regex \"__.*__\" is reserved/read-only. A name must not be more than 500 characters. Cannot be \"\"."
342+ }
343+ }
344+ },
345+ "KindExpression": {
346+ "id": "KindExpression",
347+ "type": "object",
348+ "description": "A representation of a kind.",
349+ "properties": {
350+ "name": {
351+ "type": "string",
352+ "description": "The name of the kind."
353+ }
354+ }
355+ },
356+ "LookupRequest": {
357+ "id": "LookupRequest",
358+ "type": "object",
359+ "properties": {
360+ "keys": {
361+ "type": "array",
362+ "description": "Keys of entities to look up from the datastore.",
363+ "items": {
364+ "$ref": "Key"
365+ }
366+ },
367+ "readOptions": {
368+ "$ref": "ReadOptions",
369+ "description": "Options for this lookup request. Optional."
370+ }
371+ }
372+ },
373+ "LookupResponse": {
374+ "id": "LookupResponse",
375+ "type": "object",
376+ "properties": {
377+ "deferred": {
378+ "type": "array",
379+ "description": "A list of keys that were not looked up due to resource constraints.",
380+ "items": {
381+ "$ref": "Key"
382+ }
383+ },
384+ "found": {
385+ "type": "array",
386+ "description": "Entities found.",
387+ "items": {
388+ "$ref": "EntityResult"
389+ }
390+ },
391+ "header": {
392+ "$ref": "ResponseHeader"
393+ },
394+ "missing": {
395+ "type": "array",
396+ "description": "Entities not found, with only the key populated.",
397+ "items": {
398+ "$ref": "EntityResult"
399+ }
400+ }
401+ }
402+ },
403+ "Mutation": {
404+ "id": "Mutation",
405+ "type": "object",
406+ "description": "A set of changes to apply.",
407+ "properties": {
408+ "delete": {
409+ "type": "array",
410+ "description": "Keys of entities to delete. Each key must have a complete key path and must not be reserved/read-only.",
411+ "items": {
412+ "$ref": "Key"
413+ }
414+ },
415+ "force": {
416+ "type": "boolean",
417+ "description": "Ignore a user specified read-only period. Optional."
418+ },
419+ "insert": {
420+ "type": "array",
421+ "description": "Entities to insert. Each inserted entity's key must have a complete path and must not be reserved/read-only.",
422+ "items": {
423+ "$ref": "Entity"
424+ }
425+ },
426+ "insertAutoId": {
427+ "type": "array",
428+ "description": "Insert entities with a newly allocated ID. Each inserted entity's key must omit the final identifier in its path and must not be reserved/read-only.",
429+ "items": {
430+ "$ref": "Entity"
431+ }
432+ },
433+ "update": {
434+ "type": "array",
435+ "description": "Entities to update. Each updated entity's key must have a complete path and must not be reserved/read-only.",
436+ "items": {
437+ "$ref": "Entity"
438+ }
439+ },
440+ "upsert": {
441+ "type": "array",
442+ "description": "Entities to upsert. Each upserted entity's key must have a complete path and must not be reserved/read-only.",
443+ "items": {
444+ "$ref": "Entity"
445+ }
446+ }
447+ }
448+ },
449+ "MutationResult": {
450+ "id": "MutationResult",
451+ "type": "object",
452+ "properties": {
453+ "indexUpdates": {
454+ "type": "integer",
455+ "description": "Number of index writes.",
456+ "format": "int32"
457+ },
458+ "insertAutoIdKeys": {
459+ "type": "array",
460+ "description": "Keys for insertAutoId entities. One per entity from the request, in the same order.",
461+ "items": {
462+ "$ref": "Key"
463+ }
464+ }
465+ }
466+ },
467+ "PartitionId": {
468+ "id": "PartitionId",
469+ "type": "object",
470+ "description": "An identifier for a particular subset of entities.\n\nEntities are partitioned into various subsets, each used by different datasets and different namespaces within a dataset and so forth.",
471+ "properties": {
472+ "datasetId": {
473+ "type": "string",
474+ "description": "The dataset ID."
475+ },
476+ "namespace": {
477+ "type": "string",
478+ "description": "The namespace."
479+ }
480+ }
481+ },
482+ "Property": {
483+ "id": "Property",
484+ "type": "object",
485+ "description": "An entity property.",
486+ "properties": {
487+ "blobKeyValue": {
488+ "type": "string",
489+ "description": "A blob key value."
490+ },
491+ "blobValue": {
492+ "type": "string",
493+ "description": "A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may have at most 500 bytes.",
494+ "format": "byte"
495+ },
496+ "booleanValue": {
497+ "type": "boolean",
498+ "description": "A boolean value."
499+ },
500+ "dateTimeValue": {
501+ "type": "string",
502+ "description": "A timestamp value.",
503+ "format": "date-time"
504+ },
505+ "doubleValue": {
506+ "type": "number",
507+ "description": "A double value.",
508+ "format": "double"
509+ },
510+ "entityValue": {
511+ "$ref": "Entity",
512+ "description": "An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key."
513+ },
514+ "indexed": {
515+ "type": "boolean",
516+ "description": "If the value should be indexed.\n\nThe indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true."
517+ },
518+ "integerValue": {
519+ "type": "string",
520+ "description": "An integer value.",
521+ "format": "int64"
522+ },
523+ "keyValue": {
524+ "$ref": "Key",
525+ "description": "A key value."
526+ },
527+ "listValue": {
528+ "type": "array",
529+ "description": "A list value. Cannot contain another list value. A Value instance that sets field list_value must not set field meaning or field indexed.",
530+ "items": {
531+ "$ref": "Value"
532+ }
533+ },
534+ "meaning": {
535+ "type": "integer",
536+ "description": "The meaning field is reserved and should not be used.",
537+ "format": "int32"
538+ },
539+ "stringValue": {
540+ "type": "string",
541+ "description": "A UTF-8 encoded string value. When indexed is true, may have at most 500 characters."
542+ }
543+ }
544+ },
545+ "PropertyExpression": {
546+ "id": "PropertyExpression",
547+ "type": "object",
548+ "description": "A representation of a property in a projection.",
549+ "properties": {
550+ "aggregationFunction": {
551+ "type": "string",
552+ "description": "The aggregation function to apply to the property. Optional. Can only be used when grouping by at least one property. Must then be set on all properties in the projection that are not being grouped by. Aggregation functions: first selects the first result as determined by the query's order.",
553+ "enum": [
554+ "FIRST"
555+ ],
556+ "enumDescriptions": [
557+ ""
558+ ]
559+ },
560+ "property": {
561+ "$ref": "PropertyReference",
562+ "description": "The property to project."
563+ }
564+ }
565+ },
566+ "PropertyFilter": {
567+ "id": "PropertyFilter",
568+ "type": "object",
569+ "description": "A filter on a specific property.",
570+ "properties": {
571+ "operator": {
572+ "type": "string",
573+ "description": "The operator to filter by. One of lessThan, lessThanOrEqual, greaterThan, greaterThanOrEqual, equal, or hasAncestor.",
574+ "enum": [
575+ "EQUAL",
576+ "GREATER_THAN",
577+ "GREATER_THAN_OR_EQUAL",
578+ "HAS_ANCESTOR",
579+ "LESS_THAN",
580+ "LESS_THAN_OR_EQUAL"
581+ ],
582+ "enumDescriptions": [
583+ "",
584+ "",
585+ "",
586+ "",
587+ "",
588+ ""
589+ ]
590+ },
591+ "property": {
592+ "$ref": "PropertyReference",
593+ "description": "The property to filter by."
594+ },
595+ "value": {
596+ "$ref": "Value",
597+ "description": "The value to compare the property to."
598+ }
599+ }
600+ },
601+ "PropertyOrder": {
602+ "id": "PropertyOrder",
603+ "type": "object",
604+ "description": "The desired order for a specific property.",
605+ "properties": {
606+ "direction": {
607+ "type": "string",
608+ "description": "The direction to order by. One of ascending or descending. Optional, defaults to ascending.",
609+ "enum": [
610+ "ASCENDING",
611+ "DESCENDING"
612+ ],
613+ "enumDescriptions": [
614+ "",
615+ ""
616+ ]
617+ },
618+ "property": {
619+ "$ref": "PropertyReference",
620+ "description": "The property to order by."
621+ }
622+ }
623+ },
624+ "PropertyReference": {
625+ "id": "PropertyReference",
626+ "type": "object",
627+ "description": "A reference to a property relative to the kind expressions.",
628+ "properties": {
629+ "name": {
630+ "type": "string",
631+ "description": "The name of the property."
632+ }
633+ }
634+ },
635+ "Query": {
636+ "id": "Query",
637+ "type": "object",
638+ "description": "A query.",
639+ "properties": {
640+ "endCursor": {
641+ "type": "string",
642+ "description": "An ending point for the query results. Optional. Query cursors are returned in query result batches.",
643+ "format": "byte"
644+ },
645+ "filter": {
646+ "$ref": "Filter",
647+ "description": "The filter to apply (optional)."
648+ },
649+ "groupBy": {
650+ "type": "array",
651+ "description": "The properties to group by (if empty, no grouping is applied to the result set).",
652+ "items": {
653+ "$ref": "PropertyReference"
654+ }
655+ },
656+ "kinds": {
657+ "type": "array",
658+ "description": "The kinds to query (if empty, returns entities from all kinds).",
659+ "items": {
660+ "$ref": "KindExpression"
661+ }
662+ },
663+ "limit": {
664+ "type": "integer",
665+ "description": "The maximum number of results to return. Applies after all other constraints. Optional.",
666+ "format": "int32"
667+ },
668+ "offset": {
669+ "type": "integer",
670+ "description": "The number of results to skip. Applies before limit, but after all other constraints (optional, defaults to 0).",
671+ "format": "int32"
672+ },
673+ "order": {
674+ "type": "array",
675+ "description": "The order to apply to the query results (if empty, order is unspecified).",
676+ "items": {
677+ "$ref": "PropertyOrder"
678+ }
679+ },
680+ "projection": {
681+ "type": "array",
682+ "description": "The projection to return. If not set the entire entity is returned.",
683+ "items": {
684+ "$ref": "PropertyExpression"
685+ }
686+ },
687+ "startCursor": {
688+ "type": "string",
689+ "description": "A starting point for the query results. Optional. Query cursors are returned in query result batches.",
690+ "format": "byte"
691+ }
692+ }
693+ },
694+ "QueryResultBatch": {
695+ "id": "QueryResultBatch",
696+ "type": "object",
697+ "description": "A batch of results produced by a query.",
698+ "properties": {
699+ "endCursor": {
700+ "type": "string",
701+ "description": "A cursor that points to the position after the last result in the batch. May be absent. TODO(arfuller): Once all plans produce cursors update documentation here.",
702+ "format": "byte"
703+ },
704+ "entityResultType": {
705+ "type": "string",
706+ "description": "The result type for every entity in entityResults. full for full entities, projection for entities with only projected properties, keyOnly for entities with only a key.",
707+ "enum": [
708+ "FULL",
709+ "KEY_ONLY",
710+ "PROJECTION"
711+ ],
712+ "enumDescriptions": [
713+ "",
714+ "",
715+ ""
716+ ]
717+ },
718+ "entityResults": {
719+ "type": "array",
720+ "description": "The results for this batch.",
721+ "items": {
722+ "$ref": "EntityResult"
723+ }
724+ },
725+ "moreResults": {
726+ "type": "string",
727+ "description": "The state of the query after the current batch. One of notFinished, moreResultsAfterLimit, noMoreResults.",
728+ "enum": [
729+ "MORE_RESULTS_AFTER_LIMIT",
730+ "NOT_FINISHED",
731+ "NO_MORE_RESULTS"
732+ ],
733+ "enumDescriptions": [
734+ "",
735+ "",
736+ ""
737+ ]
738+ },
739+ "skippedResults": {
740+ "type": "integer",
741+ "description": "The number of results skipped because of Query.offset.",
742+ "format": "int32"
743+ }
744+ }
745+ },
746+ "ReadOptions": {
747+ "id": "ReadOptions",
748+ "type": "object",
749+ "properties": {
750+ "readConsistency": {
751+ "type": "string",
752+ "description": "The read consistency to use. One of default, strong, or eventual. Cannot be set when transaction is set. Lookup and ancestor queries default to strong, global queries default to eventual and cannot be set to strong. Optional. Default is default.",
753+ "enum": [
754+ "DEFAULT",
755+ "EVENTUAL",
756+ "STRONG"
757+ ],
758+ "enumDescriptions": [
759+ "",
760+ "",
761+ ""
762+ ]
763+ },
764+ "transaction": {
765+ "type": "string",
766+ "description": "The transaction to use. Optional.",
767+ "format": "byte"
768+ }
769+ }
770+ },
771+ "ResponseHeader": {
772+ "id": "ResponseHeader",
773+ "type": "object",
774+ "properties": {
775+ "kind": {
776+ "type": "string",
777+ "description": "Identifies what kind of resource this is. Value: the fixed string \"datastore#responseHeader\".",
778+ "default": "datastore#responseHeader"
779+ }
780+ }
781+ },
782+ "RollbackRequest": {
783+ "id": "RollbackRequest",
784+ "type": "object",
785+ "properties": {
786+ "transaction": {
787+ "type": "string",
788+ "description": "The transaction identifier, returned by a call to beginTransaction.",
789+ "format": "byte"
790+ }
791+ }
792+ },
793+ "RollbackResponse": {
794+ "id": "RollbackResponse",
795+ "type": "object",
796+ "properties": {
797+ "header": {
798+ "$ref": "ResponseHeader"
799+ }
800+ }
801+ },
802+ "RunQueryRequest": {
803+ "id": "RunQueryRequest",
804+ "type": "object",
805+ "properties": {
806+ "gqlQuery": {
807+ "$ref": "GqlQuery",
808+ "description": "The GQL query to run. Either this field or field query must be set, but not both."
809+ },
810+ "partitionId": {
811+ "$ref": "PartitionId",
812+ "description": "Entities are partitioned into subsets, identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID, but all other partition IDs in RunQueryRequest are normalized with this partition ID as the context partition ID."
813+ },
814+ "query": {
815+ "$ref": "Query",
816+ "description": "The query to run. Either this field or field gql_query must be set, but not both."
817+ },
818+ "readOptions": {
819+ "$ref": "ReadOptions",
820+ "description": "The options for this query."
821+ }
822+ }
823+ },
824+ "RunQueryResponse": {
825+ "id": "RunQueryResponse",
826+ "type": "object",
827+ "properties": {
828+ "batch": {
829+ "$ref": "QueryResultBatch",
830+ "description": "A batch of query results (always present)."
831+ },
832+ "header": {
833+ "$ref": "ResponseHeader"
834+ }
835+ }
836+ },
837+ "Value": {
838+ "id": "Value",
839+ "type": "object",
840+ "description": "A message that can hold any of the supported value types and associated metadata.",
841+ "properties": {
842+ "blobKeyValue": {
843+ "type": "string",
844+ "description": "A blob key value."
845+ },
846+ "blobValue": {
847+ "type": "string",
848+ "description": "A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may have at most 500 bytes.",
849+ "format": "byte"
850+ },
851+ "booleanValue": {
852+ "type": "boolean",
853+ "description": "A boolean value."
854+ },
855+ "dateTimeValue": {
856+ "type": "string",
857+ "description": "A timestamp value.",
858+ "format": "date-time"
859+ },
860+ "doubleValue": {
861+ "type": "number",
862+ "description": "A double value.",
863+ "format": "double"
864+ },
865+ "entityValue": {
866+ "$ref": "Entity",
867+ "description": "An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key."
868+ },
869+ "indexed": {
870+ "type": "boolean",
871+ "description": "If the value should be indexed.\n\nThe indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true."
872+ },
873+ "integerValue": {
874+ "type": "string",
875+ "description": "An integer value.",
876+ "format": "int64"
877+ },
878+ "keyValue": {
879+ "$ref": "Key",
880+ "description": "A key value."
881+ },
882+ "listValue": {
883+ "type": "array",
884+ "description": "A list value. Cannot contain another list value. A Value instance that sets field list_value must not set field meaning or field indexed.",
885+ "items": {
886+ "$ref": "Value"
887+ }
888+ },
889+ "meaning": {
890+ "type": "integer",
891+ "description": "The meaning field is reserved and should not be used.",
892+ "format": "int32"
893+ },
894+ "stringValue": {
895+ "type": "string",
896+ "description": "A UTF-8 encoded string value. When indexed is true, may have at most 500 characters."
897+ }
898+ }
899+ }
900+ },
901+ "resources": {
902+ "datasets": {
903+ "methods": {
904+ "allocateIds": {
905+ "id": "datastore.datasets.allocateIds",
906+ "path": "{datasetId}/allocateIds",
907+ "httpMethod": "POST",
908+ "description": "Allocate IDs for incomplete keys (useful for referencing an entity before it is inserted).",
909+ "parameters": {
910+ "datasetId": {
911+ "type": "string",
912+ "description": "Identifies the dataset.",
913+ "required": true,
914+ "location": "path"
915+ }
916+ },
917+ "parameterOrder": [
918+ "datasetId"
919+ ],
920+ "request": {
921+ "$ref": "AllocateIdsRequest"
922+ },
923+ "response": {
924+ "$ref": "AllocateIdsResponse"
925+ },
926+ "scopes": [
927+ "https://www.googleapis.com/auth/cloud-platform",
928+ "https://www.googleapis.com/auth/datastore",
929+ "https://www.googleapis.com/auth/userinfo.email"
930+ ]
931+ },
932+ "beginTransaction": {
933+ "id": "datastore.datasets.beginTransaction",
934+ "path": "{datasetId}/beginTransaction",
935+ "httpMethod": "POST",
936+ "description": "Begin a new transaction.",
937+ "parameters": {
938+ "datasetId": {
939+ "type": "string",
940+ "description": "Identifies the dataset.",
941+ "required": true,
942+ "location": "path"
943+ }
944+ },
945+ "parameterOrder": [
946+ "datasetId"
947+ ],
948+ "request": {
949+ "$ref": "BeginTransactionRequest"
950+ },
951+ "response": {
952+ "$ref": "BeginTransactionResponse"
953+ },
954+ "scopes": [
955+ "https://www.googleapis.com/auth/cloud-platform",
956+ "https://www.googleapis.com/auth/datastore",
957+ "https://www.googleapis.com/auth/userinfo.email"
958+ ]
959+ },
960+ "commit": {
961+ "id": "datastore.datasets.commit",
962+ "path": "{datasetId}/commit",
963+ "httpMethod": "POST",
964+ "description": "Commit a transaction, optionally creating, deleting or modifying some entities.",
965+ "parameters": {
966+ "datasetId": {
967+ "type": "string",
968+ "description": "Identifies the dataset.",
969+ "required": true,
970+ "location": "path"
971+ }
972+ },
973+ "parameterOrder": [
974+ "datasetId"
975+ ],
976+ "request": {
977+ "$ref": "CommitRequest"
978+ },
979+ "response": {
980+ "$ref": "CommitResponse"
981+ },
982+ "scopes": [
983+ "https://www.googleapis.com/auth/cloud-platform",
984+ "https://www.googleapis.com/auth/datastore",
985+ "https://www.googleapis.com/auth/userinfo.email"
986+ ]
987+ },
988+ "lookup": {
989+ "id": "datastore.datasets.lookup",
990+ "path": "{datasetId}/lookup",
991+ "httpMethod": "POST",
992+ "description": "Look up some entities by key.",
993+ "parameters": {
994+ "datasetId": {
995+ "type": "string",
996+ "description": "Identifies the dataset.",
997+ "required": true,
998+ "location": "path"
999+ }
1000+ },
1001+ "parameterOrder": [
1002+ "datasetId"
1003+ ],
1004+ "request": {
1005+ "$ref": "LookupRequest"
1006+ },
1007+ "response": {
1008+ "$ref": "LookupResponse"
1009+ },
1010+ "scopes": [
1011+ "https://www.googleapis.com/auth/cloud-platform",
1012+ "https://www.googleapis.com/auth/datastore",
1013+ "https://www.googleapis.com/auth/userinfo.email"
1014+ ]
1015+ },
1016+ "rollback": {
1017+ "id": "datastore.datasets.rollback",
1018+ "path": "{datasetId}/rollback",
1019+ "httpMethod": "POST",
1020+ "description": "Roll back a transaction.",
1021+ "parameters": {
1022+ "datasetId": {
1023+ "type": "string",
1024+ "description": "Identifies the dataset.",
1025+ "required": true,
1026+ "location": "path"
1027+ }
1028+ },
1029+ "parameterOrder": [
1030+ "datasetId"
1031+ ],
1032+ "request": {
1033+ "$ref": "RollbackRequest"
1034+ },
1035+ "response": {
1036+ "$ref": "RollbackResponse"
1037+ },
1038+ "scopes": [
1039+ "https://www.googleapis.com/auth/cloud-platform",
1040+ "https://www.googleapis.com/auth/datastore",
1041+ "https://www.googleapis.com/auth/userinfo.email"
1042+ ]
1043+ },
1044+ "runQuery": {
1045+ "id": "datastore.datasets.runQuery",
1046+ "path": "{datasetId}/runQuery",
1047+ "httpMethod": "POST",
1048+ "description": "Query for entities.",
1049+ "parameters": {
1050+ "datasetId": {
1051+ "type": "string",
1052+ "description": "Identifies the dataset.",
1053+ "required": true,
1054+ "location": "path"
1055+ }
1056+ },
1057+ "parameterOrder": [
1058+ "datasetId"
1059+ ],
1060+ "request": {
1061+ "$ref": "RunQueryRequest"
1062+ },
1063+ "response": {
1064+ "$ref": "RunQueryResponse"
1065+ },
1066+ "scopes": [
1067+ "https://www.googleapis.com/auth/cloud-platform",
1068+ "https://www.googleapis.com/auth/datastore",
1069+ "https://www.googleapis.com/auth/userinfo.email"
1070+ ]
1071+ }
1072+ }
1073+ }
1074+ }
1075+}
gen/model/datastore/v1beta3/datastore-api.jsonnew file+1051
@@ -0,0 +1,1051 @@
1+{
2+ "id": "datastore:v1beta3",
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": "Google Cloud Datastore is a schemaless NoSQL datastore providing 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+ "httpMethod": "POST",
34+ "flatPath": "v1beta3/projects/{projectId}:runQuery",
35+ "parameters": {
36+ "projectId": {
37+ "required": true,
38+ "description": "The ID of the project against which to make the request.",
39+ "type": "string",
40+ "location": "path"
41+ }
42+ },
43+ "scopes": [
44+ "https://www.googleapis.com/auth/cloud-platform",
45+ "https://www.googleapis.com/auth/datastore"
46+ ],
47+ "path": "v1beta3/projects/{projectId}:runQuery"
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+ "httpMethod": "POST",
62+ "flatPath": "v1beta3/projects/{projectId}:beginTransaction",
63+ "parameters": {
64+ "projectId": {
65+ "required": true,
66+ "description": "The ID of the project against which to make the request.",
67+ "type": "string",
68+ "location": "path"
69+ }
70+ },
71+ "scopes": [
72+ "https://www.googleapis.com/auth/cloud-platform",
73+ "https://www.googleapis.com/auth/datastore"
74+ ],
75+ "path": "v1beta3/projects/{projectId}:beginTransaction"
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+ "httpMethod": "POST",
90+ "flatPath": "v1beta3/projects/{projectId}:allocateIds",
91+ "parameters": {
92+ "projectId": {
93+ "required": true,
94+ "description": "The ID of the project against which to make the request.",
95+ "type": "string",
96+ "location": "path"
97+ }
98+ },
99+ "scopes": [
100+ "https://www.googleapis.com/auth/cloud-platform",
101+ "https://www.googleapis.com/auth/datastore"
102+ ],
103+ "path": "v1beta3/projects/{projectId}:allocateIds"
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+ "httpMethod": "POST",
118+ "flatPath": "v1beta3/projects/{projectId}:lookup",
119+ "parameters": {
120+ "projectId": {
121+ "required": true,
122+ "description": "The ID of the project against which to make the request.",
123+ "type": "string",
124+ "location": "path"
125+ }
126+ },
127+ "scopes": [
128+ "https://www.googleapis.com/auth/cloud-platform",
129+ "https://www.googleapis.com/auth/datastore"
130+ ],
131+ "path": "v1beta3/projects/{projectId}:lookup"
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+ "httpMethod": "POST",
146+ "flatPath": "v1beta3/projects/{projectId}:commit",
147+ "parameters": {
148+ "projectId": {
149+ "required": true,
150+ "description": "The ID of the project against which to make the request.",
151+ "type": "string",
152+ "location": "path"
153+ }
154+ },
155+ "scopes": [
156+ "https://www.googleapis.com/auth/cloud-platform",
157+ "https://www.googleapis.com/auth/datastore"
158+ ],
159+ "path": "v1beta3/projects/{projectId}:commit"
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+ "httpMethod": "POST",
174+ "flatPath": "v1beta3/projects/{projectId}:rollback",
175+ "parameters": {
176+ "projectId": {
177+ "required": true,
178+ "description": "The ID of the project against which to make the request.",
179+ "type": "string",
180+ "location": "path"
181+ }
182+ },
183+ "scopes": [
184+ "https://www.googleapis.com/auth/cloud-platform",
185+ "https://www.googleapis.com/auth/datastore"
186+ ],
187+ "path": "v1beta3/projects/{projectId}:rollback"
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+ "properties": {
196+ "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+ "type": "string"
199+ },
200+ "arrayValue": {
201+ "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`.",
202+ "$ref": "ArrayValue"
203+ },
204+ "entityValue": {
205+ "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.",
206+ "$ref": "Entity"
207+ },
208+ "meaning": {
209+ "description": "The `meaning` field should only be populated for backwards compatibility.",
210+ "type": "integer",
211+ "format": "int32"
212+ },
213+ "integerValue": {
214+ "description": "An integer value.",
215+ "type": "string",
216+ "format": "int64"
217+ },
218+ "doubleValue": {
219+ "description": "A double value.",
220+ "type": "number",
221+ "format": "double"
222+ },
223+ "geoPointValue": {
224+ "description": "A geo point value representing a point on the surface of Earth.",
225+ "$ref": "LatLng"
226+ },
227+ "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.",
229+ "type": "string",
230+ "format": "byte"
231+ },
232+ "nullValue": {
233+ "enum": [
234+ "NULL_VALUE"
235+ ],
236+ "description": "A null value.",
237+ "enumDescriptions": [
238+ "Null value."
239+ ],
240+ "type": "string"
241+ },
242+ "keyValue": {
243+ "description": "A key value.",
244+ "$ref": "Key"
245+ },
246+ "booleanValue": {
247+ "description": "A boolean value.",
248+ "type": "boolean"
249+ },
250+ "excludeFromIndexes": {
251+ "description": "If the value should be excluded from all indexes including those defined\nexplicitly.",
252+ "type": "boolean"
253+ },
254+ "timestampValue": {
255+ "description": "A timestamp value.\nWhen stored in the Datastore, precise only to microseconds;\nany additional precision is rounded down.",
256+ "type": "string",
257+ "format": "google-datetime"
258+ }
259+ },
260+ "type": "object",
261+ "id": "Value"
262+ },
263+ "ReadOptions": {
264+ "description": "The options shared by read requests.",
265+ "properties": {
266+ "transaction": {
267+ "description": "The transaction in which to read.",
268+ "type": "string",
269+ "format": "byte"
270+ },
271+ "readConsistency": {
272+ "enum": [
273+ "READ_CONSISTENCY_UNSPECIFIED",
274+ "STRONG",
275+ "EVENTUAL"
276+ ],
277+ "description": "The non-transactional read consistency to use.\nCannot be set to `STRONG` for global queries.",
278+ "enumDescriptions": [
279+ "Unspecified. This value must not be used.",
280+ "Strong consistency.",
281+ "Eventual consistency."
282+ ],
283+ "type": "string"
284+ }
285+ },
286+ "type": "object",
287+ "id": "ReadOptions"
288+ },
289+ "PropertyOrder": {
290+ "description": "The desired order for a specific property.",
291+ "properties": {
292+ "direction": {
293+ "enum": [
294+ "DIRECTION_UNSPECIFIED",
295+ "ASCENDING",
296+ "DESCENDING"
297+ ],
298+ "description": "The direction to order by. Defaults to `ASCENDING`.",
299+ "enumDescriptions": [
300+ "Unspecified. This value must not be used.",
301+ "Ascending.",
302+ "Descending."
303+ ],
304+ "type": "string"
305+ },
306+ "property": {
307+ "description": "The property to order by.",
308+ "$ref": "PropertyReference"
309+ }
310+ },
311+ "type": "object",
312+ "id": "PropertyOrder"
313+ },
314+ "CommitRequest": {
315+ "description": "The request for google.datastore.v1beta3.Datastore.Commit.",
316+ "properties": {
317+ "transaction": {
318+ "description": "The identifier of the transaction associated with the commit. A\ntransaction identifier is returned by a call to\nBeginTransaction.",
319+ "type": "string",
320+ "format": "byte"
321+ },
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": {
330+ "enum": [
331+ "MODE_UNSPECIFIED",
332+ "TRANSACTIONAL",
333+ "NON_TRANSACTIONAL"
334+ ],
335+ "description": "The type of commit to perform. Defaults to `TRANSACTIONAL`.",
336+ "enumDescriptions": [
337+ "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).",
339+ "Non-transactional: The mutations may not apply as all or none."
340+ ],
341+ "type": "string"
342+ }
343+ },
344+ "type": "object",
345+ "id": "CommitRequest"
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": {
360+ "description": "A query for entities.",
361+ "properties": {
362+ "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.",
364+ "type": "integer",
365+ "format": "int32"
366+ },
367+ "filter": {
368+ "description": "The filter to apply.",
369+ "$ref": "Filter"
370+ },
371+ "endCursor": {
372+ "description": "An ending point for the query results. Query cursors are\nreturned in query result batches.",
373+ "type": "string",
374+ "format": "byte"
375+ },
376+ "distinctOn": {
377+ "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).",
378+ "type": "array",
379+ "items": {
380+ "$ref": "PropertyReference"
381+ }
382+ },
383+ "offset": {
384+ "description": "The number of results to skip. Applies before limit, but after all other\nconstraints. Optional. Must be \u003e= 0 if specified.",
385+ "type": "integer",
386+ "format": "int32"
387+ },
388+ "projection": {
389+ "description": "The projection to return. Defaults to returning all properties.",
390+ "type": "array",
391+ "items": {
392+ "$ref": "Projection"
393+ }
394+ },
395+ "startCursor": {
396+ "description": "A starting point for the query results. Query cursors are\nreturned in query result batches.",
397+ "type": "string",
398+ "format": "byte"
399+ },
400+ "order": {
401+ "description": "The order to apply to the query results (if empty, order is unspecified).",
402+ "type": "array",
403+ "items": {
404+ "$ref": "PropertyOrder"
405+ }
406+ },
407+ "kind": {
408+ "description": "The kinds to query (if empty, returns entities of all kinds).\nCurrently at most 1 kind may be specified.",
409+ "type": "array",
410+ "items": {
411+ "$ref": "KindExpression"
412+ }
413+ }
414+ },
415+ "type": "object",
416+ "id": "Query"
417+ },
418+ "EntityResult": {
419+ "description": "The result of fetching an entity from Datastore.",
420+ "properties": {
421+ "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+ "type": "string",
424+ "format": "byte"
425+ },
426+ "entity": {
427+ "description": "The resulting entity.",
428+ "$ref": "Entity"
429+ }
430+ },
431+ "type": "object",
432+ "id": "EntityResult"
433+ },
434+ "GqlQueryParameter": {
435+ "description": "A binding parameter for a GQL query.",
436+ "properties": {
437+ "cursor": {
438+ "description": "A query cursor. Query cursors are returned in query\nresult batches.",
439+ "type": "string",
440+ "format": "byte"
441+ },
442+ "value": {
443+ "description": "A value parameter.",
444+ "$ref": "Value"
445+ }
446+ },
447+ "type": "object",
448+ "id": "GqlQueryParameter"
449+ },
450+ "BeginTransactionResponse": {
451+ "description": "The response for google.datastore.v1beta3.Datastore.BeginTransaction.",
452+ "properties": {
453+ "transaction": {
454+ "description": "The transaction identifier (always present).",
455+ "type": "string",
456+ "format": "byte"
457+ }
458+ },
459+ "type": "object",
460+ "id": "BeginTransactionResponse"
461+ },
462+ "Filter": {
463+ "description": "A holder for any type of filter.",
464+ "properties": {
465+ "propertyFilter": {
466+ "description": "A filter on a property.",
467+ "$ref": "PropertyFilter"
468+ },
469+ "compositeFilter": {
470+ "description": "A composite filter.",
471+ "$ref": "CompositeFilter"
472+ }
473+ },
474+ "type": "object",
475+ "id": "Filter"
476+ },
477+ "ArrayValue": {
478+ "description": "An array value.",
479+ "properties": {
480+ "values": {
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.",
482+ "type": "array",
483+ "items": {
484+ "$ref": "Value"
485+ }
486+ }
487+ },
488+ "type": "object",
489+ "id": "ArrayValue"
490+ },
491+ "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.",
493+ "properties": {
494+ "namespaceId": {
495+ "description": "If not empty, the ID of the namespace to which the entities belong.",
496+ "type": "string"
497+ },
498+ "projectId": {
499+ "description": "The ID of the project to which the entities belong.",
500+ "type": "string"
501+ }
502+ },
503+ "type": "object",
504+ "id": "PartitionId"
505+ },
506+ "QueryResultBatch": {
507+ "description": "A batch of results produced by a query.",
508+ "properties": {
509+ "endCursor": {
510+ "description": "A cursor that points to the position after the last result in the batch.",
511+ "type": "string",
512+ "format": "byte"
513+ },
514+ "skippedCursor": {
515+ "description": "A cursor that points to the position after the last skipped result.\nWill be set when `skipped_results` != 0.",
516+ "type": "string",
517+ "format": "byte"
518+ },
519+ "entityResultType": {
520+ "enum": [
521+ "RESULT_TYPE_UNSPECIFIED",
522+ "FULL",
523+ "PROJECTION",
524+ "KEY_ONLY"
525+ ],
526+ "description": "The result type for every entity in `entity_results`.",
527+ "enumDescriptions": [
528+ "Unspecified. This value is never used.",
529+ "The key and properties.",
530+ "A projected subset of properties. The entity may have no key.",
531+ "Only the key."
532+ ],
533+ "type": "string"
534+ },
535+ "moreResults": {
536+ "enum": [
537+ "MORE_RESULTS_TYPE_UNSPECIFIED",
538+ "NOT_FINISHED",
539+ "MORE_RESULTS_AFTER_LIMIT",
540+ "MORE_RESULTS_AFTER_CURSOR",
541+ "NO_MORE_RESULTS"
542+ ],
543+ "description": "The state of the query after the current batch.",
544+ "enumDescriptions": [
545+ "Unspecified. This value is never used.",
546+ "There may be additional batches to fetch from this query.",
547+ "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.",
549+ "The query has been exhausted."
550+ ],
551+ "type": "string"
552+ },
553+ "entityResults": {
554+ "description": "The results for this batch.",
555+ "type": "array",
556+ "items": {
557+ "$ref": "EntityResult"
558+ }
559+ },
560+ "skippedResults": {
561+ "description": "The number of results skipped, typically because of an offset.",
562+ "type": "integer",
563+ "format": "int32"
564+ }
565+ },
566+ "type": "object",
567+ "id": "QueryResultBatch"
568+ },
569+ "AllocateIdsRequest": {
570+ "description": "The request for google.datastore.v1beta3.Datastore.AllocateIds.",
571+ "properties": {
572+ "keys": {
573+ "description": "A list of keys with incomplete key paths for which to allocate IDs.\nNo key may be reserved/read-only.",
574+ "type": "array",
575+ "items": {
576+ "$ref": "Key"
577+ }
578+ }
579+ },
580+ "type": "object",
581+ "id": "AllocateIdsRequest"
582+ },
583+ "PropertyFilter": {
584+ "description": "A filter on a specific property.",
585+ "properties": {
586+ "value": {
587+ "description": "The value to compare the property to.",
588+ "$ref": "Value"
589+ },
590+ "op": {
591+ "enum": [
592+ "OPERATOR_UNSPECIFIED",
593+ "LESS_THAN",
594+ "LESS_THAN_OR_EQUAL",
595+ "GREATER_THAN",
596+ "GREATER_THAN_OR_EQUAL",
597+ "EQUAL",
598+ "HAS_ANCESTOR"
599+ ],
600+ "description": "The operator to filter by.",
601+ "enumDescriptions": [
602+ "Unspecified. This value must not be used.",
603+ "Less than.",
604+ "Less than or equal.",
605+ "Greater than.",
606+ "Greater than or equal.",
607+ "Equal.",
608+ "Has ancestor."
609+ ],
610+ "type": "string"
611+ },
612+ "property": {
613+ "description": "The property to filter by.",
614+ "$ref": "PropertyReference"
615+ }
616+ },
617+ "type": "object",
618+ "id": "PropertyFilter"
619+ },
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": {
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.",
633+ "properties": {
634+ "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 `\"\"`.",
636+ "type": "string"
637+ },
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": {
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.",
644+ "type": "string",
645+ "format": "int64"
646+ }
647+ },
648+ "type": "object",
649+ "id": "PathElement"
650+ },
651+ "RollbackResponse": {
652+ "description": "The response for google.datastore.v1beta3.Datastore.Rollback\n(an empty message).",
653+ "properties": {},
654+ "type": "object",
655+ "id": "RollbackResponse"
656+ },
657+ "PropertyReference": {
658+ "description": "A reference to a property relative to the kind expressions.",
659+ "properties": {
660+ "name": {
661+ "description": "The name of the property.\nIf name includes \".\"s, it may be interpreted as a property name path.",
662+ "type": "string"
663+ }
664+ },
665+ "type": "object",
666+ "id": "PropertyReference"
667+ },
668+ "Projection": {
669+ "description": "A representation of a property in a projection.",
670+ "properties": {
671+ "property": {
672+ "description": "The property to project.",
673+ "$ref": "PropertyReference"
674+ }
675+ },
676+ "type": "object",
677+ "id": "Projection"
678+ },
679+ "AllocateIdsResponse": {
680+ "description": "The response for google.datastore.v1beta3.Datastore.AllocateIds.",
681+ "properties": {
682+ "keys": {
683+ "description": "The keys specified in the request (in the same order), each with\nits key path completed with a newly allocated ID.",
684+ "type": "array",
685+ "items": {
686+ "$ref": "Key"
687+ }
688+ }
689+ },
690+ "type": "object",
691+ "id": "AllocateIdsResponse"
692+ },
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": {
705+ "description": "The response for google.datastore.v1beta3.Datastore.Lookup.",
706+ "properties": {
707+ "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.",
709+ "type": "array",
710+ "items": {
711+ "$ref": "EntityResult"
712+ }
713+ },
714+ "deferred": {
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.",
716+ "type": "array",
717+ "items": {
718+ "$ref": "Key"
719+ }
720+ },
721+ "missing": {
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.",
723+ "type": "array",
724+ "items": {
725+ "$ref": "EntityResult"
726+ }
727+ }
728+ },
729+ "type": "object",
730+ "id": "LookupResponse"
731+ },
732+ "BeginTransactionRequest": {
733+ "description": "The request for google.datastore.v1beta3.Datastore.BeginTransaction.",
734+ "properties": {},
735+ "type": "object",
736+ "id": "BeginTransactionRequest"
737+ },
738+ "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.",
740+ "properties": {
741+ "partitionId": {
742+ "description": "Entities are partitioned into subsets, currently identified by a project\nID and namespace ID.\nQueries are scoped to a single partition.",
743+ "$ref": "PartitionId"
744+ },
745+ "path": {
746+ "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.",
747+ "type": "array",
748+ "items": {
749+ "$ref": "PathElement"
750+ }
751+ }
752+ },
753+ "type": "object",
754+ "id": "Key"
755+ },
756+ "RunQueryResponse": {
757+ "description": "The response for google.datastore.v1beta3.Datastore.RunQuery.",
758+ "properties": {
759+ "batch": {
760+ "description": "A batch of query results (always present).",
761+ "$ref": "QueryResultBatch"
762+ },
763+ "query": {
764+ "description": "The parsed form of the `GqlQuery` from the request, if it was set.",
765+ "$ref": "Query"
766+ }
767+ },
768+ "type": "object",
769+ "id": "RunQueryResponse"
770+ },
771+ "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.",
773+ "properties": {
774+ "properties": {
775+ "additionalProperties": {
776+ "$ref": "Value"
777+ },
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"
780+ },
781+ "key": {
782+ "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.",
783+ "$ref": "Key"
784+ }
785+ },
786+ "type": "object",
787+ "id": "Entity"
788+ },
789+ "GqlQuery": {
790+ "description": "A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).",
791+ "properties": {
792+ "namedBindings": {
793+ "additionalProperties": {
794+ "$ref": "GqlQueryParameter"
795+ },
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"
798+ },
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": {
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.",
805+ "type": "boolean"
806+ },
807+ "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.",
809+ "type": "array",
810+ "items": {
811+ "$ref": "GqlQueryParameter"
812+ }
813+ }
814+ },
815+ "type": "object",
816+ "id": "GqlQuery"
817+ },
818+ "CommitResponse": {
819+ "description": "The response for google.datastore.v1beta3.Datastore.Commit.",
820+ "properties": {
821+ "mutationResults": {
822+ "description": "The result of performing the mutations.\nThe i-th mutation result corresponds to the i-th mutation in the request.",
823+ "type": "array",
824+ "items": {
825+ "$ref": "MutationResult"
826+ }
827+ },
828+ "indexUpdates": {
829+ "description": "The number of index entries updated during the commit, or zero if none were\nupdated.",
830+ "type": "integer",
831+ "format": "int32"
832+ }
833+ },
834+ "type": "object",
835+ "id": "CommitResponse"
836+ },
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": {
861+ "description": "The request for google.datastore.v1beta3.Datastore.RunQuery.",
862+ "properties": {
863+ "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.",
865+ "$ref": "PartitionId"
866+ },
867+ "gqlQuery": {
868+ "description": "The GQL query to run.",
869+ "$ref": "GqlQuery"
870+ },
871+ "query": {
872+ "description": "The query to run.",
873+ "$ref": "Query"
874+ },
875+ "readOptions": {
876+ "description": "The options for this query.",
877+ "$ref": "ReadOptions"
878+ }
879+ },
880+ "type": "object",
881+ "id": "RunQueryRequest"
882+ },
883+ "CompositeFilter": {
884+ "description": "A filter that merges multiple other filters using the given operator.",
885+ "properties": {
886+ "op": {
887+ "enum": [
888+ "OPERATOR_UNSPECIFIED",
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+ },
898+ "filters": {
899+ "description": "The list of filters to combine.\nMust contain at least one filter.",
900+ "type": "array",
901+ "items": {
902+ "$ref": "Filter"
903+ }
904+ }
905+ },
906+ "type": "object",
907+ "id": "CompositeFilter"
908+ },
909+ "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)",
911+ "properties": {
912+ "longitude": {
913+ "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
914+ "type": "number",
915+ "format": "double"
916+ },
917+ "latitude": {
918+ "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
919+ "type": "number",
920+ "format": "double"
921+ }
922+ },
923+ "type": "object",
924+ "id": "LatLng"
925+ },
926+ "LookupRequest": {
927+ "description": "The request for google.datastore.v1beta3.Datastore.Lookup.",
928+ "properties": {
929+ "keys": {
930+ "description": "Keys of entities to look up.",
931+ "type": "array",
932+ "items": {
933+ "$ref": "Key"
934+ }
935+ },
936+ "readOptions": {
937+ "description": "The options for this lookup request.",
938+ "$ref": "ReadOptions"
939+ }
940+ },
941+ "type": "object",
942+ "id": "LookupRequest"
943+ }
944+ },
945+ "revision": "20160413",
946+ "basePath": "",
947+ "icons": {
948+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
949+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
950+ },
951+ "version_module": "True",
952+ "discoveryVersion": "v1",
953+ "parameters": {
954+ "access_token": {
955+ "description": "OAuth access token.",
956+ "location": "query",
957+ "type": "string"
958+ },
959+ "prettyPrint": {
960+ "default": "true",
961+ "description": "Returns response with indentations and line breaks.",
962+ "location": "query",
963+ "type": "boolean"
964+ },
965+ "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.",
967+ "location": "query",
968+ "type": "string"
969+ },
970+ "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.",
972+ "location": "query",
973+ "type": "string"
974+ },
975+ "pp": {
976+ "default": "true",
977+ "description": "Pretty-print response.",
978+ "location": "query",
979+ "type": "boolean"
980+ },
981+ "fields": {
982+ "description": "Selector specifying which fields to include in a partial response.",
983+ "location": "query",
984+ "type": "string"
985+ },
986+ "alt": {
987+ "description": "Data format for response.",
988+ "location": "query",
989+ "enum": [
990+ "json",
991+ "media",
992+ "proto"
993+ ],
994+ "default": "json",
995+ "enumDescriptions": [
996+ "Responses with Content-Type of application/json",
997+ "Media download with context-dependent Content-Type",
998+ "Responses with Content-Type of application/x-protobuf"
999+ ],
1000+ "type": "string"
1001+ },
1002+ "$.xgafv": {
1003+ "enum": [
1004+ "1",
1005+ "2"
1006+ ],
1007+ "description": "V1 error format.",
1008+ "enumDescriptions": [
1009+ "v1 error format",
1010+ "v2 error format"
1011+ ],
1012+ "location": "query",
1013+ "type": "string"
1014+ },
1015+ "callback": {
1016+ "description": "JSONP",
1017+ "location": "query",
1018+ "type": "string"
1019+ },
1020+ "uploadType": {
1021+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
1022+ "location": "query",
1023+ "type": "string"
1024+ },
1025+ "oauth_token": {
1026+ "description": "OAuth 2.0 token for the current user.",
1027+ "location": "query",
1028+ "type": "string"
1029+ },
1030+ "upload_protocol": {
1031+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
1032+ "location": "query",
1033+ "type": "string"
1034+ },
1035+ "bearer_token": {
1036+ "description": "OAuth bearer token.",
1037+ "location": "query",
1038+ "type": "string"
1039+ }
1040+ },
1041+ "name": "datastore",
1042+ "baseUrl": "https://datastore.googleapis.com/",
1043+ "ownerDomain": "google.com",
1044+ "documentationLink": "https://cloud.google.com/datastore/",
1045+ "batchPath": "batch",
1046+ "servicePath": "",
1047+ "ownerName": "Google",
1048+ "version": "v1beta3",
1049+ "rootUrl": "https://datastore.googleapis.com/",
1050+ "kind": "discovery#restDescription"
1051+}
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Sum.hs+4−4
@@ -34,7 +34,7 @@ data CreativesListOpenAuctionStatusFilter
34 | NotChecked
34 | NotChecked
35 -- ^ @not_checked@
35 -- ^ @not_checked@
36 -- Creatives whose open auction status is not yet checked.
36 -- Creatives whose open auction status is not yet checked.
37− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
37+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
38
38
39instance Hashable CreativesListOpenAuctionStatusFilter
39instance Hashable CreativesListOpenAuctionStatusFilter
40
40
@@ -71,7 +71,7 @@ data ProposalsPatchUpdateAction
71 -- ^ @unknownAction@
71 -- ^ @unknownAction@
72 | UpdateFinalized
72 | UpdateFinalized
73 -- ^ @updateFinalized@
73 -- ^ @updateFinalized@
74− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
74+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
75
75
76instance Hashable ProposalsPatchUpdateAction
76instance Hashable ProposalsPatchUpdateAction
77
77
@@ -113,7 +113,7 @@ data CreativesListDealsStatusFilter
113 | CLDSFNotChecked
113 | CLDSFNotChecked
114 -- ^ @not_checked@
114 -- ^ @not_checked@
115 -- Creatives whose deals status is not yet checked.
115 -- Creatives whose deals status is not yet checked.
116− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
116+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
117
117
118instance Hashable CreativesListDealsStatusFilter
118instance Hashable CreativesListDealsStatusFilter
119
119
@@ -150,7 +150,7 @@ data ProposalsUpdateUpdateAction
150 -- ^ @unknownAction@
150 -- ^ @unknownAction@
151 | PUUAUpdateFinalized
151 | PUUAUpdateFinalized
152 -- ^ @updateFinalized@
152 -- ^ @updateFinalized@
153− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
153+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
154
154
155instance Hashable ProposalsUpdateUpdateAction
155instance Hashable ProposalsUpdateUpdateAction
156
156
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Delete.hsdeleted−98
@@ -1,98 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.ClientAccess.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.clientaccess.delete@.
24−module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Delete
25− (
26− -- * REST Resource
27− ClientAccessDeleteResource
28−
29− -- * Creating a Request
30− , clientAccessDelete
31− , ClientAccessDelete
32−
33− -- * Request Lenses
34− , cadSponsorAccountId
35− , cadClientAccountId
36− ) where
37−
38−import Network.Google.AdExchangeBuyer.Types
39−import Network.Google.Prelude
40−
41−-- | A resource alias for @adexchangebuyer.clientaccess.delete@ method which the
42−-- 'ClientAccessDelete' request conforms to.
43−type ClientAccessDeleteResource =
44− "adexchangebuyer" :>
45− "v1.4" :>
46− "clientAccess" :>
47− Capture "clientAccountId" (Textual Int64) :>
48− QueryParam "sponsorAccountId" (Textual Int32) :>
49− QueryParam "alt" AltJSON :> Delete '[JSON] ()
50−
51−--
52−-- /See:/ 'clientAccessDelete' smart constructor.
53−data ClientAccessDelete = ClientAccessDelete
54− { _cadSponsorAccountId :: !(Textual Int32)
55− , _cadClientAccountId :: !(Textual Int64)
56− } deriving (Eq,Show,Data,Typeable,Generic)
57−
58−-- | Creates a value of 'ClientAccessDelete' with the minimum fields required to make a request.
59−--
60−-- Use one of the following lenses to modify other fields as desired:
61−--
62−-- * 'cadSponsorAccountId'
63−--
64−-- * 'cadClientAccountId'
65−clientAccessDelete
66− :: Int32 -- ^ 'cadSponsorAccountId'
67− -> Int64 -- ^ 'cadClientAccountId'
68− -> ClientAccessDelete
69−clientAccessDelete pCadSponsorAccountId_ pCadClientAccountId_ =
70− ClientAccessDelete
71− { _cadSponsorAccountId = _Coerce # pCadSponsorAccountId_
72− , _cadClientAccountId = _Coerce # pCadClientAccountId_
73− }
74−
75−cadSponsorAccountId :: Lens' ClientAccessDelete Int32
76−cadSponsorAccountId
77− = lens _cadSponsorAccountId
78− (\ s a -> s{_cadSponsorAccountId = a})
79− . _Coerce
80−
81−cadClientAccountId :: Lens' ClientAccessDelete Int64
82−cadClientAccountId
83− = lens _cadClientAccountId
84− (\ s a -> s{_cadClientAccountId = a})
85− . _Coerce
86−
87−instance GoogleRequest ClientAccessDelete where
88− type Rs ClientAccessDelete = ()
89− type Scopes ClientAccessDelete =
90− '["https://www.googleapis.com/auth/adexchange.buyer"]
91− requestClient ClientAccessDelete{..}
92− = go _cadClientAccountId (Just _cadSponsorAccountId)
93− (Just AltJSON)
94− adExchangeBuyerService
95− where go
96− = buildClient
97− (Proxy :: Proxy ClientAccessDeleteResource)
98− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Get.hsdeleted−99
@@ -1,99 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.ClientAccess.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.clientaccess.get@.
24−module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Get
25− (
26− -- * REST Resource
27− ClientAccessGetResource
28−
29− -- * Creating a Request
30− , clientAccessGet
31− , ClientAccessGet
32−
33− -- * Request Lenses
34− , cagSponsorAccountId
35− , cagClientAccountId
36− ) where
37−
38−import Network.Google.AdExchangeBuyer.Types
39−import Network.Google.Prelude
40−
41−-- | A resource alias for @adexchangebuyer.clientaccess.get@ method which the
42−-- 'ClientAccessGet' request conforms to.
43−type ClientAccessGetResource =
44− "adexchangebuyer" :>
45− "v1.4" :>
46− "clientAccess" :>
47− Capture "clientAccountId" (Textual Int64) :>
48− QueryParam "sponsorAccountId" (Textual Int32) :>
49− QueryParam "alt" AltJSON :>
50− Get '[JSON] ClientAccessCapabilities
51−
52−--
53−-- /See:/ 'clientAccessGet' smart constructor.
54−data ClientAccessGet = ClientAccessGet
55− { _cagSponsorAccountId :: !(Textual Int32)
56− , _cagClientAccountId :: !(Textual Int64)
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'ClientAccessGet' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'cagSponsorAccountId'
64−--
65−-- * 'cagClientAccountId'
66−clientAccessGet
67− :: Int32 -- ^ 'cagSponsorAccountId'
68− -> Int64 -- ^ 'cagClientAccountId'
69− -> ClientAccessGet
70−clientAccessGet pCagSponsorAccountId_ pCagClientAccountId_ =
71− ClientAccessGet
72− { _cagSponsorAccountId = _Coerce # pCagSponsorAccountId_
73− , _cagClientAccountId = _Coerce # pCagClientAccountId_
74− }
75−
76−cagSponsorAccountId :: Lens' ClientAccessGet Int32
77−cagSponsorAccountId
78− = lens _cagSponsorAccountId
79− (\ s a -> s{_cagSponsorAccountId = a})
80− . _Coerce
81−
82−cagClientAccountId :: Lens' ClientAccessGet Int64
83−cagClientAccountId
84− = lens _cagClientAccountId
85− (\ s a -> s{_cagClientAccountId = a})
86− . _Coerce
87−
88−instance GoogleRequest ClientAccessGet where
89− type Rs ClientAccessGet = ClientAccessCapabilities
90− type Scopes ClientAccessGet =
91− '["https://www.googleapis.com/auth/adexchange.buyer"]
92− requestClient ClientAccessGet{..}
93− = go _cagClientAccountId (Just _cagSponsorAccountId)
94− (Just AltJSON)
95− adExchangeBuyerService
96− where go
97− = buildClient
98− (Proxy :: Proxy ClientAccessGetResource)
99− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Insert.hsdeleted−110
@@ -1,110 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.ClientAccess.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.clientaccess.insert@.
24−module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Insert
25− (
26− -- * REST Resource
27− ClientAccessInsertResource
28−
29− -- * Creating a Request
30− , clientAccessInsert
31− , ClientAccessInsert
32−
33− -- * Request Lenses
34− , caiSponsorAccountId
35− , caiPayload
36− , caiClientAccountId
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.clientaccess.insert@ method which the
43−-- 'ClientAccessInsert' request conforms to.
44−type ClientAccessInsertResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "clientAccess" :>
48− QueryParam "sponsorAccountId" (Textual Int32) :>
49− QueryParam "clientAccountId" (Textual Int64) :>
50− QueryParam "alt" AltJSON :>
51− ReqBody '[JSON] ClientAccessCapabilities :>
52− Post '[JSON] ClientAccessCapabilities
53−
54−--
55−-- /See:/ 'clientAccessInsert' smart constructor.
56−data ClientAccessInsert = ClientAccessInsert
57− { _caiSponsorAccountId :: !(Maybe (Textual Int32))
58− , _caiPayload :: !ClientAccessCapabilities
59− , _caiClientAccountId :: !(Maybe (Textual Int64))
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'ClientAccessInsert' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'caiSponsorAccountId'
67−--
68−-- * 'caiPayload'
69−--
70−-- * 'caiClientAccountId'
71−clientAccessInsert
72− :: ClientAccessCapabilities -- ^ 'caiPayload'
73− -> ClientAccessInsert
74−clientAccessInsert pCaiPayload_ =
75− ClientAccessInsert
76− { _caiSponsorAccountId = Nothing
77− , _caiPayload = pCaiPayload_
78− , _caiClientAccountId = Nothing
79− }
80−
81−caiSponsorAccountId :: Lens' ClientAccessInsert (Maybe Int32)
82−caiSponsorAccountId
83− = lens _caiSponsorAccountId
84− (\ s a -> s{_caiSponsorAccountId = a})
85− . mapping _Coerce
86−
87−-- | Multipart request metadata.
88−caiPayload :: Lens' ClientAccessInsert ClientAccessCapabilities
89−caiPayload
90− = lens _caiPayload (\ s a -> s{_caiPayload = a})
91−
92−caiClientAccountId :: Lens' ClientAccessInsert (Maybe Int64)
93−caiClientAccountId
94− = lens _caiClientAccountId
95− (\ s a -> s{_caiClientAccountId = a})
96− . mapping _Coerce
97−
98−instance GoogleRequest ClientAccessInsert where
99− type Rs ClientAccessInsert = ClientAccessCapabilities
100− type Scopes ClientAccessInsert =
101− '["https://www.googleapis.com/auth/adexchange.buyer"]
102− requestClient ClientAccessInsert{..}
103− = go _caiSponsorAccountId _caiClientAccountId
104− (Just AltJSON)
105− _caiPayload
106− adExchangeBuyerService
107− where go
108− = buildClient
109− (Proxy :: Proxy ClientAccessInsertResource)
110− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/List.hsdeleted−85
@@ -1,85 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.ClientAccess.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.clientaccess.list@.
24−module Network.Google.Resource.AdExchangeBuyer.ClientAccess.List
25− (
26− -- * REST Resource
27− ClientAccessListResource
28−
29− -- * Creating a Request
30− , clientAccessList
31− , ClientAccessList
32−
33− -- * Request Lenses
34− , calPayload
35− ) where
36−
37−import Network.Google.AdExchangeBuyer.Types
38−import Network.Google.Prelude
39−
40−-- | A resource alias for @adexchangebuyer.clientaccess.list@ method which the
41−-- 'ClientAccessList' request conforms to.
42−type ClientAccessListResource =
43− "adexchangebuyer" :>
44− "v1.4" :>
45− "clientAccess" :>
46− QueryParam "alt" AltJSON :>
47− ReqBody '[JSON] ListClientAccessCapabilitiesRequest
48− :> Get '[JSON] ListClientAccessCapabilitiesResponse
49−
50−--
51−-- /See:/ 'clientAccessList' smart constructor.
52−newtype ClientAccessList = ClientAccessList
53− { _calPayload :: ListClientAccessCapabilitiesRequest
54− } deriving (Eq,Show,Data,Typeable,Generic)
55−
56−-- | Creates a value of 'ClientAccessList' with the minimum fields required to make a request.
57−--
58−-- Use one of the following lenses to modify other fields as desired:
59−--
60−-- * 'calPayload'
61−clientAccessList
62− :: ListClientAccessCapabilitiesRequest -- ^ 'calPayload'
63− -> ClientAccessList
64−clientAccessList pCalPayload_ =
65− ClientAccessList
66− { _calPayload = pCalPayload_
67− }
68−
69−-- | Multipart request metadata.
70−calPayload :: Lens' ClientAccessList ListClientAccessCapabilitiesRequest
71−calPayload
72− = lens _calPayload (\ s a -> s{_calPayload = a})
73−
74−instance GoogleRequest ClientAccessList where
75− type Rs ClientAccessList =
76− ListClientAccessCapabilitiesResponse
77− type Scopes ClientAccessList =
78− '["https://www.googleapis.com/auth/adexchange.buyer"]
79− requestClient ClientAccessList{..}
80− = go (Just AltJSON) _calPayload
81− adExchangeBuyerService
82− where go
83− = buildClient
84− (Proxy :: Proxy ClientAccessListResource)
85− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Patch.hsdeleted−112
@@ -1,112 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.ClientAccess.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.clientaccess.patch@.
24−module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Patch
25− (
26− -- * REST Resource
27− ClientAccessPatchResource
28−
29− -- * Creating a Request
30− , clientAccessPatch
31− , ClientAccessPatch
32−
33− -- * Request Lenses
34− , capSponsorAccountId
35− , capPayload
36− , capClientAccountId
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.clientaccess.patch@ method which the
43−-- 'ClientAccessPatch' request conforms to.
44−type ClientAccessPatchResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "clientAccess" :>
48− Capture "clientAccountId" (Textual Int64) :>
49− QueryParam "sponsorAccountId" (Textual Int32) :>
50− QueryParam "alt" AltJSON :>
51− ReqBody '[JSON] ClientAccessCapabilities :>
52− Patch '[JSON] ClientAccessCapabilities
53−
54−--
55−-- /See:/ 'clientAccessPatch' smart constructor.
56−data ClientAccessPatch = ClientAccessPatch
57− { _capSponsorAccountId :: !(Textual Int32)
58− , _capPayload :: !ClientAccessCapabilities
59− , _capClientAccountId :: !(Textual Int64)
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'ClientAccessPatch' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'capSponsorAccountId'
67−--
68−-- * 'capPayload'
69−--
70−-- * 'capClientAccountId'
71−clientAccessPatch
72− :: Int32 -- ^ 'capSponsorAccountId'
73− -> ClientAccessCapabilities -- ^ 'capPayload'
74− -> Int64 -- ^ 'capClientAccountId'
75− -> ClientAccessPatch
76−clientAccessPatch pCapSponsorAccountId_ pCapPayload_ pCapClientAccountId_ =
77− ClientAccessPatch
78− { _capSponsorAccountId = _Coerce # pCapSponsorAccountId_
79− , _capPayload = pCapPayload_
80− , _capClientAccountId = _Coerce # pCapClientAccountId_
81− }
82−
83−capSponsorAccountId :: Lens' ClientAccessPatch Int32
84−capSponsorAccountId
85− = lens _capSponsorAccountId
86− (\ s a -> s{_capSponsorAccountId = a})
87− . _Coerce
88−
89−-- | Multipart request metadata.
90−capPayload :: Lens' ClientAccessPatch ClientAccessCapabilities
91−capPayload
92− = lens _capPayload (\ s a -> s{_capPayload = a})
93−
94−capClientAccountId :: Lens' ClientAccessPatch Int64
95−capClientAccountId
96− = lens _capClientAccountId
97− (\ s a -> s{_capClientAccountId = a})
98− . _Coerce
99−
100−instance GoogleRequest ClientAccessPatch where
101− type Rs ClientAccessPatch = ClientAccessCapabilities
102− type Scopes ClientAccessPatch =
103− '["https://www.googleapis.com/auth/adexchange.buyer"]
104− requestClient ClientAccessPatch{..}
105− = go _capClientAccountId (Just _capSponsorAccountId)
106− (Just AltJSON)
107− _capPayload
108− adExchangeBuyerService
109− where go
110− = buildClient
111− (Proxy :: Proxy ClientAccessPatchResource)
112− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Update.hsdeleted−112
@@ -1,112 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.ClientAccess.Update
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.clientaccess.update@.
24−module Network.Google.Resource.AdExchangeBuyer.ClientAccess.Update
25− (
26− -- * REST Resource
27− ClientAccessUpdateResource
28−
29− -- * Creating a Request
30− , clientAccessUpdate
31− , ClientAccessUpdate
32−
33− -- * Request Lenses
34− , cauSponsorAccountId
35− , cauPayload
36− , cauClientAccountId
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.clientaccess.update@ method which the
43−-- 'ClientAccessUpdate' request conforms to.
44−type ClientAccessUpdateResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "clientAccess" :>
48− Capture "clientAccountId" (Textual Int64) :>
49− QueryParam "sponsorAccountId" (Textual Int32) :>
50− QueryParam "alt" AltJSON :>
51− ReqBody '[JSON] ClientAccessCapabilities :>
52− Put '[JSON] ClientAccessCapabilities
53−
54−--
55−-- /See:/ 'clientAccessUpdate' smart constructor.
56−data ClientAccessUpdate = ClientAccessUpdate
57− { _cauSponsorAccountId :: !(Textual Int32)
58− , _cauPayload :: !ClientAccessCapabilities
59− , _cauClientAccountId :: !(Textual Int64)
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'ClientAccessUpdate' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'cauSponsorAccountId'
67−--
68−-- * 'cauPayload'
69−--
70−-- * 'cauClientAccountId'
71−clientAccessUpdate
72− :: Int32 -- ^ 'cauSponsorAccountId'
73− -> ClientAccessCapabilities -- ^ 'cauPayload'
74− -> Int64 -- ^ 'cauClientAccountId'
75− -> ClientAccessUpdate
76−clientAccessUpdate pCauSponsorAccountId_ pCauPayload_ pCauClientAccountId_ =
77− ClientAccessUpdate
78− { _cauSponsorAccountId = _Coerce # pCauSponsorAccountId_
79− , _cauPayload = pCauPayload_
80− , _cauClientAccountId = _Coerce # pCauClientAccountId_
81− }
82−
83−cauSponsorAccountId :: Lens' ClientAccessUpdate Int32
84−cauSponsorAccountId
85− = lens _cauSponsorAccountId
86− (\ s a -> s{_cauSponsorAccountId = a})
87− . _Coerce
88−
89−-- | Multipart request metadata.
90−cauPayload :: Lens' ClientAccessUpdate ClientAccessCapabilities
91−cauPayload
92− = lens _cauPayload (\ s a -> s{_cauPayload = a})
93−
94−cauClientAccountId :: Lens' ClientAccessUpdate Int64
95−cauClientAccountId
96− = lens _cauClientAccountId
97− (\ s a -> s{_cauClientAccountId = a})
98− . _Coerce
99−
100−instance GoogleRequest ClientAccessUpdate where
101− type Rs ClientAccessUpdate = ClientAccessCapabilities
102− type Scopes ClientAccessUpdate =
103− '["https://www.googleapis.com/auth/adexchange.buyer"]
104− requestClient ClientAccessUpdate{..}
105− = go _cauClientAccountId (Just _cauSponsorAccountId)
106− (Just AltJSON)
107− _cauPayload
108− adExchangeBuyerService
109− where go
110− = buildClient
111− (Proxy :: Proxy ClientAccessUpdateResource)
112− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Deals/Get.hsdeleted−99
@@ -1,99 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.Deals.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets the requested deal.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.deals.get@.
26−module Network.Google.Resource.AdExchangeBuyer.Deals.Get
27− (
28− -- * REST Resource
29− DealsGetResource
30−
31− -- * Creating a Request
32− , dealsGet
33− , DealsGet
34−
35− -- * Request Lenses
36− , dgPayload
37− , dgDealId
38− ) where
39−
40−import Network.Google.AdExchangeBuyer.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @adexchangebuyer.deals.get@ method which the
44−-- 'DealsGet' request conforms to.
45−type DealsGetResource =
46− "adexchangebuyer" :>
47− "v1.4" :>
48− "deals" :>
49− Capture "dealId" (Textual Int64) :>
50− QueryParam "alt" AltJSON :>
51− ReqBody '[JSON]
52− GetFinalizedNegotiationByExternalDealIdRequest
53− :> Get '[JSON] NegotiationDTO
54−
55−-- | Gets the requested deal.
56−--
57−-- /See:/ 'dealsGet' smart constructor.
58−data DealsGet = DealsGet
59− { _dgPayload :: !GetFinalizedNegotiationByExternalDealIdRequest
60− , _dgDealId :: !(Textual Int64)
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'DealsGet' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'dgPayload'
68−--
69−-- * 'dgDealId'
70−dealsGet
71− :: GetFinalizedNegotiationByExternalDealIdRequest -- ^ 'dgPayload'
72− -> Int64 -- ^ 'dgDealId'
73− -> DealsGet
74−dealsGet pDgPayload_ pDgDealId_ =
75− DealsGet
76− { _dgPayload = pDgPayload_
77− , _dgDealId = _Coerce # pDgDealId_
78− }
79−
80−-- | Multipart request metadata.
81−dgPayload :: Lens' DealsGet GetFinalizedNegotiationByExternalDealIdRequest
82−dgPayload
83− = lens _dgPayload (\ s a -> s{_dgPayload = a})
84−
85−dgDealId :: Lens' DealsGet Int64
86−dgDealId
87− = lens _dgDealId (\ s a -> s{_dgDealId = a}) .
88− _Coerce
89−
90−instance GoogleRequest DealsGet where
91− type Rs DealsGet = NegotiationDTO
92− type Scopes DealsGet =
93− '["https://www.googleapis.com/auth/adexchange.buyer"]
94− requestClient DealsGet{..}
95− = go _dgDealId (Just AltJSON) _dgPayload
96− adExchangeBuyerService
97− where go
98− = buildClient (Proxy :: Proxy DealsGetResource)
99− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOffers/Get.hsdeleted−87
@@ -1,87 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets the requested negotiation.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplaceoffers.get@.
26−module Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Get
27− (
28− -- * REST Resource
29− MarketplaceOffersGetResource
30−
31− -- * Creating a Request
32− , marketplaceOffersGet
33− , MarketplaceOffersGet
34−
35− -- * Request Lenses
36− , mogOfferId
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.marketplaceoffers.get@ method which the
43−-- 'MarketplaceOffersGet' request conforms to.
44−type MarketplaceOffersGetResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "marketplaceOffers" :>
48− Capture "offerId" Text :>
49− QueryParam "alt" AltJSON :>
50− Get '[JSON] MarketplaceOffer
51−
52−-- | Gets the requested negotiation.
53−--
54−-- /See:/ 'marketplaceOffersGet' smart constructor.
55−newtype MarketplaceOffersGet = MarketplaceOffersGet
56− { _mogOfferId :: Text
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'MarketplaceOffersGet' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'mogOfferId'
64−marketplaceOffersGet
65− :: Text -- ^ 'mogOfferId'
66− -> MarketplaceOffersGet
67−marketplaceOffersGet pMogOfferId_ =
68− MarketplaceOffersGet
69− { _mogOfferId = pMogOfferId_
70− }
71−
72−-- | The offerId for the offer to get the head revision for.
73−mogOfferId :: Lens' MarketplaceOffersGet Text
74−mogOfferId
75− = lens _mogOfferId (\ s a -> s{_mogOfferId = a})
76−
77−instance GoogleRequest MarketplaceOffersGet where
78− type Rs MarketplaceOffersGet = MarketplaceOffer
79− type Scopes MarketplaceOffersGet =
80− '["https://www.googleapis.com/auth/adexchange.buyer"]
81− requestClient MarketplaceOffersGet{..}
82− = go _mogOfferId (Just AltJSON)
83− adExchangeBuyerService
84− where go
85− = buildClient
86− (Proxy :: Proxy MarketplaceOffersGetResource)
87− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOffers/Search.hsdeleted−86
@@ -1,86 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Search
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets the requested negotiation.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplaceoffers.search@.
26−module Network.Google.Resource.AdExchangeBuyer.MarketplaceOffers.Search
27− (
28− -- * REST Resource
29− MarketplaceOffersSearchResource
30−
31− -- * Creating a Request
32− , marketplaceOffersSearch
33− , MarketplaceOffersSearch
34−
35− -- * Request Lenses
36− , mPqlQuery
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.marketplaceoffers.search@ method which the
43−-- 'MarketplaceOffersSearch' request conforms to.
44−type MarketplaceOffersSearchResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "marketplaceOffers" :>
48− "search" :>
49− QueryParam "pqlQuery" Text :>
50− QueryParam "alt" AltJSON :>
51− Get '[JSON] GetOffersResponse
52−
53−-- | Gets the requested negotiation.
54−--
55−-- /See:/ 'marketplaceOffersSearch' smart constructor.
56−newtype MarketplaceOffersSearch = MarketplaceOffersSearch
57− { _mPqlQuery :: Maybe Text
58− } deriving (Eq,Show,Data,Typeable,Generic)
59−
60−-- | Creates a value of 'MarketplaceOffersSearch' with the minimum fields required to make a request.
61−--
62−-- Use one of the following lenses to modify other fields as desired:
63−--
64−-- * 'mPqlQuery'
65−marketplaceOffersSearch
66− :: MarketplaceOffersSearch
67−marketplaceOffersSearch =
68− MarketplaceOffersSearch
69− { _mPqlQuery = Nothing
70− }
71−
72−-- | The pql query used to query for offers.
73−mPqlQuery :: Lens' MarketplaceOffersSearch (Maybe Text)
74−mPqlQuery
75− = lens _mPqlQuery (\ s a -> s{_mPqlQuery = a})
76−
77−instance GoogleRequest MarketplaceOffersSearch where
78− type Rs MarketplaceOffersSearch = GetOffersResponse
79− type Scopes MarketplaceOffersSearch =
80− '["https://www.googleapis.com/auth/adexchange.buyer"]
81− requestClient MarketplaceOffersSearch{..}
82− = go _mPqlQuery (Just AltJSON) adExchangeBuyerService
83− where go
84− = buildClient
85− (Proxy :: Proxy MarketplaceOffersSearchResource)
86− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Get.hsdeleted−87
@@ -1,87 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Get an order given its id
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplaceorders.get@.
26−module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Get
27− (
28− -- * REST Resource
29− MarketplaceOrdersGetResource
30−
31− -- * Creating a Request
32− , marketplaceOrdersGet
33− , MarketplaceOrdersGet
34−
35− -- * Request Lenses
36− , mogOrderId
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.marketplaceorders.get@ method which the
43−-- 'MarketplaceOrdersGet' request conforms to.
44−type MarketplaceOrdersGetResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "marketplaceOrders" :>
48− Capture "orderId" Text :>
49− QueryParam "alt" AltJSON :>
50− Get '[JSON] MarketplaceOrder
51−
52−-- | Get an order given its id
53−--
54−-- /See:/ 'marketplaceOrdersGet' smart constructor.
55−newtype MarketplaceOrdersGet = MarketplaceOrdersGet
56− { _mogOrderId :: Text
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'MarketplaceOrdersGet' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'mogOrderId'
64−marketplaceOrdersGet
65− :: Text -- ^ 'mogOrderId'
66− -> MarketplaceOrdersGet
67−marketplaceOrdersGet pMogOrderId_ =
68− MarketplaceOrdersGet
69− { _mogOrderId = pMogOrderId_
70− }
71−
72−-- | Id of the order to retrieve.
73−mogOrderId :: Lens' MarketplaceOrdersGet Text
74−mogOrderId
75− = lens _mogOrderId (\ s a -> s{_mogOrderId = a})
76−
77−instance GoogleRequest MarketplaceOrdersGet where
78− type Rs MarketplaceOrdersGet = MarketplaceOrder
79− type Scopes MarketplaceOrdersGet =
80− '["https://www.googleapis.com/auth/adexchange.buyer"]
81− requestClient MarketplaceOrdersGet{..}
82− = go _mogOrderId (Just AltJSON)
83− adExchangeBuyerService
84− where go
85− = buildClient
86− (Proxy :: Proxy MarketplaceOrdersGetResource)
87− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Insert.hsdeleted−89
@@ -1,89 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Create the given list of orders
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplaceorders.insert@.
26−module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Insert
27− (
28− -- * REST Resource
29− MarketplaceOrdersInsertResource
30−
31− -- * Creating a Request
32− , marketplaceOrdersInsert
33− , MarketplaceOrdersInsert
34−
35− -- * Request Lenses
36− , moiPayload
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.marketplaceorders.insert@ method which the
43−-- 'MarketplaceOrdersInsert' request conforms to.
44−type MarketplaceOrdersInsertResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "marketplaceOrders" :>
48− "insert" :>
49− QueryParam "alt" AltJSON :>
50− ReqBody '[JSON] CreateOrdersRequest :>
51− Post '[JSON] CreateOrdersResponse
52−
53−-- | Create the given list of orders
54−--
55−-- /See:/ 'marketplaceOrdersInsert' smart constructor.
56−newtype MarketplaceOrdersInsert = MarketplaceOrdersInsert
57− { _moiPayload :: CreateOrdersRequest
58− } deriving (Eq,Show,Data,Typeable,Generic)
59−
60−-- | Creates a value of 'MarketplaceOrdersInsert' with the minimum fields required to make a request.
61−--
62−-- Use one of the following lenses to modify other fields as desired:
63−--
64−-- * 'moiPayload'
65−marketplaceOrdersInsert
66− :: CreateOrdersRequest -- ^ 'moiPayload'
67− -> MarketplaceOrdersInsert
68−marketplaceOrdersInsert pMoiPayload_ =
69− MarketplaceOrdersInsert
70− { _moiPayload = pMoiPayload_
71− }
72−
73−-- | Multipart request metadata.
74−moiPayload :: Lens' MarketplaceOrdersInsert CreateOrdersRequest
75−moiPayload
76− = lens _moiPayload (\ s a -> s{_moiPayload = a})
77−
78−instance GoogleRequest MarketplaceOrdersInsert where
79− type Rs MarketplaceOrdersInsert =
80− CreateOrdersResponse
81− type Scopes MarketplaceOrdersInsert =
82− '["https://www.googleapis.com/auth/adexchange.buyer"]
83− requestClient MarketplaceOrdersInsert{..}
84− = go (Just AltJSON) _moiPayload
85− adExchangeBuyerService
86− where go
87− = buildClient
88− (Proxy :: Proxy MarketplaceOrdersInsertResource)
89− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Patch.hsdeleted−133
@@ -1,133 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Update the given order. This method supports patch semantics.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplaceorders.patch@.
26−module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Patch
27− (
28− -- * REST Resource
29− MarketplaceOrdersPatchResource
30−
31− -- * Creating a Request
32− , marketplaceOrdersPatch
33− , MarketplaceOrdersPatch
34−
35− -- * Request Lenses
36− , mopUpdateAction
37− , mopRevisionNumber
38− , mopPayload
39− , mopOrderId
40− ) where
41−
42−import Network.Google.AdExchangeBuyer.Types
43−import Network.Google.Prelude
44−
45−-- | A resource alias for @adexchangebuyer.marketplaceorders.patch@ method which the
46−-- 'MarketplaceOrdersPatch' request conforms to.
47−type MarketplaceOrdersPatchResource =
48− "adexchangebuyer" :>
49− "v1.4" :>
50− "marketplaceOrders" :>
51− Capture "orderId" Text :>
52− Capture "revisionNumber" (Textual Int64) :>
53− Capture "updateAction"
54− MarketplaceOrdersPatchUpdateAction
55− :>
56− QueryParam "alt" AltJSON :>
57− ReqBody '[JSON] MarketplaceOrder :>
58− Patch '[JSON] MarketplaceOrder
59−
60−-- | Update the given order. This method supports patch semantics.
61−--
62−-- /See:/ 'marketplaceOrdersPatch' smart constructor.
63−data MarketplaceOrdersPatch = MarketplaceOrdersPatch
64− { _mopUpdateAction :: !MarketplaceOrdersPatchUpdateAction
65− , _mopRevisionNumber :: !(Textual Int64)
66− , _mopPayload :: !MarketplaceOrder
67− , _mopOrderId :: !Text
68− } deriving (Eq,Show,Data,Typeable,Generic)
69−
70−-- | Creates a value of 'MarketplaceOrdersPatch' with the minimum fields required to make a request.
71−--
72−-- Use one of the following lenses to modify other fields as desired:
73−--
74−-- * 'mopUpdateAction'
75−--
76−-- * 'mopRevisionNumber'
77−--
78−-- * 'mopPayload'
79−--
80−-- * 'mopOrderId'
81−marketplaceOrdersPatch
82− :: MarketplaceOrdersPatchUpdateAction -- ^ 'mopUpdateAction'
83− -> Int64 -- ^ 'mopRevisionNumber'
84− -> MarketplaceOrder -- ^ 'mopPayload'
85− -> Text -- ^ 'mopOrderId'
86− -> MarketplaceOrdersPatch
87−marketplaceOrdersPatch pMopUpdateAction_ pMopRevisionNumber_ pMopPayload_ pMopOrderId_ =
88− MarketplaceOrdersPatch
89− { _mopUpdateAction = pMopUpdateAction_
90− , _mopRevisionNumber = _Coerce # pMopRevisionNumber_
91− , _mopPayload = pMopPayload_
92− , _mopOrderId = pMopOrderId_
93− }
94−
95−-- | The proposed action to take on the order.
96−mopUpdateAction :: Lens' MarketplaceOrdersPatch MarketplaceOrdersPatchUpdateAction
97−mopUpdateAction
98− = lens _mopUpdateAction
99− (\ s a -> s{_mopUpdateAction = a})
100−
101−-- | The last known revision number to update. If the head revision in the
102−-- marketplace database has since changed, an error will be thrown. The
103−-- caller should then fetch the lastest order at head revision and retry
104−-- the update at that revision.
105−mopRevisionNumber :: Lens' MarketplaceOrdersPatch Int64
106−mopRevisionNumber
107− = lens _mopRevisionNumber
108− (\ s a -> s{_mopRevisionNumber = a})
109− . _Coerce
110−
111−-- | Multipart request metadata.
112−mopPayload :: Lens' MarketplaceOrdersPatch MarketplaceOrder
113−mopPayload
114− = lens _mopPayload (\ s a -> s{_mopPayload = a})
115−
116−-- | The order id to update.
117−mopOrderId :: Lens' MarketplaceOrdersPatch Text
118−mopOrderId
119− = lens _mopOrderId (\ s a -> s{_mopOrderId = a})
120−
121−instance GoogleRequest MarketplaceOrdersPatch where
122− type Rs MarketplaceOrdersPatch = MarketplaceOrder
123− type Scopes MarketplaceOrdersPatch =
124− '["https://www.googleapis.com/auth/adexchange.buyer"]
125− requestClient MarketplaceOrdersPatch{..}
126− = go _mopOrderId _mopRevisionNumber _mopUpdateAction
127− (Just AltJSON)
128− _mopPayload
129− adExchangeBuyerService
130− where go
131− = buildClient
132− (Proxy :: Proxy MarketplaceOrdersPatchResource)
133− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Search.hsdeleted−87
@@ -1,87 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Search
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Search for orders using pql query
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplaceorders.search@.
26−module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Search
27− (
28− -- * REST Resource
29− MarketplaceOrdersSearchResource
30−
31− -- * Creating a Request
32− , marketplaceOrdersSearch
33− , MarketplaceOrdersSearch
34−
35− -- * Request Lenses
36− , mosPqlQuery
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.marketplaceorders.search@ method which the
43−-- 'MarketplaceOrdersSearch' request conforms to.
44−type MarketplaceOrdersSearchResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "marketplaceOrders" :>
48− "search" :>
49− QueryParam "pqlQuery" Text :>
50− QueryParam "alt" AltJSON :>
51− Get '[JSON] GetOrdersResponse
52−
53−-- | Search for orders using pql query
54−--
55−-- /See:/ 'marketplaceOrdersSearch' smart constructor.
56−newtype MarketplaceOrdersSearch = MarketplaceOrdersSearch
57− { _mosPqlQuery :: Maybe Text
58− } deriving (Eq,Show,Data,Typeable,Generic)
59−
60−-- | Creates a value of 'MarketplaceOrdersSearch' with the minimum fields required to make a request.
61−--
62−-- Use one of the following lenses to modify other fields as desired:
63−--
64−-- * 'mosPqlQuery'
65−marketplaceOrdersSearch
66− :: MarketplaceOrdersSearch
67−marketplaceOrdersSearch =
68− MarketplaceOrdersSearch
69− { _mosPqlQuery = Nothing
70− }
71−
72−-- | Query string to retrieve specific orders.
73−mosPqlQuery :: Lens' MarketplaceOrdersSearch (Maybe Text)
74−mosPqlQuery
75− = lens _mosPqlQuery (\ s a -> s{_mosPqlQuery = a})
76−
77−instance GoogleRequest MarketplaceOrdersSearch where
78− type Rs MarketplaceOrdersSearch = GetOrdersResponse
79− type Scopes MarketplaceOrdersSearch =
80− '["https://www.googleapis.com/auth/adexchange.buyer"]
81− requestClient MarketplaceOrdersSearch{..}
82− = go _mosPqlQuery (Just AltJSON)
83− adExchangeBuyerService
84− where go
85− = buildClient
86− (Proxy :: Proxy MarketplaceOrdersSearchResource)
87− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Update.hsdeleted−133
@@ -1,133 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Update
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Update the given order
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.marketplaceorders.update@.
26−module Network.Google.Resource.AdExchangeBuyer.MarketplaceOrders.Update
27− (
28− -- * REST Resource
29− MarketplaceOrdersUpdateResource
30−
31− -- * Creating a Request
32− , marketplaceOrdersUpdate
33− , MarketplaceOrdersUpdate
34−
35− -- * Request Lenses
36− , mouUpdateAction
37− , mouRevisionNumber
38− , mouPayload
39− , mouOrderId
40− ) where
41−
42−import Network.Google.AdExchangeBuyer.Types
43−import Network.Google.Prelude
44−
45−-- | A resource alias for @adexchangebuyer.marketplaceorders.update@ method which the
46−-- 'MarketplaceOrdersUpdate' request conforms to.
47−type MarketplaceOrdersUpdateResource =
48− "adexchangebuyer" :>
49− "v1.4" :>
50− "marketplaceOrders" :>
51− Capture "orderId" Text :>
52− Capture "revisionNumber" (Textual Int64) :>
53− Capture "updateAction"
54− MarketplaceOrdersUpdateUpdateAction
55− :>
56− QueryParam "alt" AltJSON :>
57− ReqBody '[JSON] MarketplaceOrder :>
58− Put '[JSON] MarketplaceOrder
59−
60−-- | Update the given order
61−--
62−-- /See:/ 'marketplaceOrdersUpdate' smart constructor.
63−data MarketplaceOrdersUpdate = MarketplaceOrdersUpdate
64− { _mouUpdateAction :: !MarketplaceOrdersUpdateUpdateAction
65− , _mouRevisionNumber :: !(Textual Int64)
66− , _mouPayload :: !MarketplaceOrder
67− , _mouOrderId :: !Text
68− } deriving (Eq,Show,Data,Typeable,Generic)
69−
70−-- | Creates a value of 'MarketplaceOrdersUpdate' with the minimum fields required to make a request.
71−--
72−-- Use one of the following lenses to modify other fields as desired:
73−--
74−-- * 'mouUpdateAction'
75−--
76−-- * 'mouRevisionNumber'
77−--
78−-- * 'mouPayload'
79−--
80−-- * 'mouOrderId'
81−marketplaceOrdersUpdate
82− :: MarketplaceOrdersUpdateUpdateAction -- ^ 'mouUpdateAction'
83− -> Int64 -- ^ 'mouRevisionNumber'
84− -> MarketplaceOrder -- ^ 'mouPayload'
85− -> Text -- ^ 'mouOrderId'
86− -> MarketplaceOrdersUpdate
87−marketplaceOrdersUpdate pMouUpdateAction_ pMouRevisionNumber_ pMouPayload_ pMouOrderId_ =
88− MarketplaceOrdersUpdate
89− { _mouUpdateAction = pMouUpdateAction_
90− , _mouRevisionNumber = _Coerce # pMouRevisionNumber_
91− , _mouPayload = pMouPayload_
92− , _mouOrderId = pMouOrderId_
93− }
94−
95−-- | The proposed action to take on the order.
96−mouUpdateAction :: Lens' MarketplaceOrdersUpdate MarketplaceOrdersUpdateUpdateAction
97−mouUpdateAction
98− = lens _mouUpdateAction
99− (\ s a -> s{_mouUpdateAction = a})
100−
101−-- | The last known revision number to update. If the head revision in the
102−-- marketplace database has since changed, an error will be thrown. The
103−-- caller should then fetch the lastest order at head revision and retry
104−-- the update at that revision.
105−mouRevisionNumber :: Lens' MarketplaceOrdersUpdate Int64
106−mouRevisionNumber
107− = lens _mouRevisionNumber
108− (\ s a -> s{_mouRevisionNumber = a})
109− . _Coerce
110−
111−-- | Multipart request metadata.
112−mouPayload :: Lens' MarketplaceOrdersUpdate MarketplaceOrder
113−mouPayload
114− = lens _mouPayload (\ s a -> s{_mouPayload = a})
115−
116−-- | The order id to update.
117−mouOrderId :: Lens' MarketplaceOrdersUpdate Text
118−mouOrderId
119− = lens _mouOrderId (\ s a -> s{_mouOrderId = a})
120−
121−instance GoogleRequest MarketplaceOrdersUpdate where
122− type Rs MarketplaceOrdersUpdate = MarketplaceOrder
123− type Scopes MarketplaceOrdersUpdate =
124− '["https://www.googleapis.com/auth/adexchange.buyer"]
125− requestClient MarketplaceOrdersUpdate{..}
126− = go _mouOrderId _mouRevisionNumber _mouUpdateAction
127− (Just AltJSON)
128− _mouPayload
129− adExchangeBuyerService
130− where go
131− = buildClient
132− (Proxy :: Proxy MarketplaceOrdersUpdateResource)
133− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/NegotiationRounds/Insert.hsdeleted−101
@@ -1,101 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.NegotiationRounds.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Adds the requested negotiationRound to the requested negotiation.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.negotiationrounds.insert@.
26−module Network.Google.Resource.AdExchangeBuyer.NegotiationRounds.Insert
27− (
28− -- * REST Resource
29− NegotiationRoundsInsertResource
30−
31− -- * Creating a Request
32− , negotiationRoundsInsert
33− , NegotiationRoundsInsert
34−
35− -- * Request Lenses
36− , nriPayload
37− , nriNegotiationId
38− ) where
39−
40−import Network.Google.AdExchangeBuyer.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @adexchangebuyer.negotiationrounds.insert@ method which the
44−-- 'NegotiationRoundsInsert' request conforms to.
45−type NegotiationRoundsInsertResource =
46− "adexchangebuyer" :>
47− "v1.4" :>
48− "negotiations" :>
49− Capture "negotiationId" (Textual Int64) :>
50− "negotiationrounds" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] NegotiationRoundDTO :>
53− Post '[JSON] NegotiationRoundDTO
54−
55−-- | Adds the requested negotiationRound to the requested negotiation.
56−--
57−-- /See:/ 'negotiationRoundsInsert' smart constructor.
58−data NegotiationRoundsInsert = NegotiationRoundsInsert
59− { _nriPayload :: !NegotiationRoundDTO
60− , _nriNegotiationId :: !(Textual Int64)
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'NegotiationRoundsInsert' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'nriPayload'
68−--
69−-- * 'nriNegotiationId'
70−negotiationRoundsInsert
71− :: NegotiationRoundDTO -- ^ 'nriPayload'
72− -> Int64 -- ^ 'nriNegotiationId'
73− -> NegotiationRoundsInsert
74−negotiationRoundsInsert pNriPayload_ pNriNegotiationId_ =
75− NegotiationRoundsInsert
76− { _nriPayload = pNriPayload_
77− , _nriNegotiationId = _Coerce # pNriNegotiationId_
78− }
79−
80−-- | Multipart request metadata.
81−nriPayload :: Lens' NegotiationRoundsInsert NegotiationRoundDTO
82−nriPayload
83− = lens _nriPayload (\ s a -> s{_nriPayload = a})
84−
85−nriNegotiationId :: Lens' NegotiationRoundsInsert Int64
86−nriNegotiationId
87− = lens _nriNegotiationId
88− (\ s a -> s{_nriNegotiationId = a})
89− . _Coerce
90−
91−instance GoogleRequest NegotiationRoundsInsert where
92− type Rs NegotiationRoundsInsert = NegotiationRoundDTO
93− type Scopes NegotiationRoundsInsert =
94− '["https://www.googleapis.com/auth/adexchange.buyer"]
95− requestClient NegotiationRoundsInsert{..}
96− = go _nriNegotiationId (Just AltJSON) _nriPayload
97− adExchangeBuyerService
98− where go
99− = buildClient
100− (Proxy :: Proxy NegotiationRoundsInsertResource)
101− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/Get.hsdeleted−100
@@ -1,100 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.Negotiations.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets the requested negotiation.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.negotiations.get@.
26−module Network.Google.Resource.AdExchangeBuyer.Negotiations.Get
27− (
28− -- * REST Resource
29− NegotiationsGetResource
30−
31− -- * Creating a Request
32− , negotiationsGet
33− , NegotiationsGet
34−
35− -- * Request Lenses
36− , ngPayload
37− , ngNegotiationId
38− ) where
39−
40−import Network.Google.AdExchangeBuyer.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @adexchangebuyer.negotiations.get@ method which the
44−-- 'NegotiationsGet' request conforms to.
45−type NegotiationsGetResource =
46− "adexchangebuyer" :>
47− "v1.4" :>
48− "negotiations" :>
49− Capture "negotiationId" (Textual Int64) :>
50− QueryParam "alt" AltJSON :>
51− ReqBody '[JSON] GetNegotiationByIdRequest :>
52− Get '[JSON] NegotiationDTO
53−
54−-- | Gets the requested negotiation.
55−--
56−-- /See:/ 'negotiationsGet' smart constructor.
57−data NegotiationsGet = NegotiationsGet
58− { _ngPayload :: !GetNegotiationByIdRequest
59− , _ngNegotiationId :: !(Textual Int64)
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'NegotiationsGet' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'ngPayload'
67−--
68−-- * 'ngNegotiationId'
69−negotiationsGet
70− :: GetNegotiationByIdRequest -- ^ 'ngPayload'
71− -> Int64 -- ^ 'ngNegotiationId'
72− -> NegotiationsGet
73−negotiationsGet pNgPayload_ pNgNegotiationId_ =
74− NegotiationsGet
75− { _ngPayload = pNgPayload_
76− , _ngNegotiationId = _Coerce # pNgNegotiationId_
77− }
78−
79−-- | Multipart request metadata.
80−ngPayload :: Lens' NegotiationsGet GetNegotiationByIdRequest
81−ngPayload
82− = lens _ngPayload (\ s a -> s{_ngPayload = a})
83−
84−ngNegotiationId :: Lens' NegotiationsGet Int64
85−ngNegotiationId
86− = lens _ngNegotiationId
87− (\ s a -> s{_ngNegotiationId = a})
88− . _Coerce
89−
90−instance GoogleRequest NegotiationsGet where
91− type Rs NegotiationsGet = NegotiationDTO
92− type Scopes NegotiationsGet =
93− '["https://www.googleapis.com/auth/adexchange.buyer"]
94− requestClient NegotiationsGet{..}
95− = go _ngNegotiationId (Just AltJSON) _ngPayload
96− adExchangeBuyerService
97− where go
98− = buildClient
99− (Proxy :: Proxy NegotiationsGetResource)
100− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/Insert.hsdeleted−86
@@ -1,86 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.Negotiations.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Creates or updates the requested negotiation.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.negotiations.insert@.
26−module Network.Google.Resource.AdExchangeBuyer.Negotiations.Insert
27− (
28− -- * REST Resource
29− NegotiationsInsertResource
30−
31− -- * Creating a Request
32− , negotiationsInsert
33− , NegotiationsInsert
34−
35− -- * Request Lenses
36− , niPayload
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.negotiations.insert@ method which the
43−-- 'NegotiationsInsert' request conforms to.
44−type NegotiationsInsertResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "negotiations" :>
48− QueryParam "alt" AltJSON :>
49− ReqBody '[JSON] NegotiationDTO :>
50− Post '[JSON] NegotiationDTO
51−
52−-- | Creates or updates the requested negotiation.
53−--
54−-- /See:/ 'negotiationsInsert' smart constructor.
55−newtype NegotiationsInsert = NegotiationsInsert
56− { _niPayload :: NegotiationDTO
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'NegotiationsInsert' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'niPayload'
64−negotiationsInsert
65− :: NegotiationDTO -- ^ 'niPayload'
66− -> NegotiationsInsert
67−negotiationsInsert pNiPayload_ =
68− NegotiationsInsert
69− { _niPayload = pNiPayload_
70− }
71−
72−-- | Multipart request metadata.
73−niPayload :: Lens' NegotiationsInsert NegotiationDTO
74−niPayload
75− = lens _niPayload (\ s a -> s{_niPayload = a})
76−
77−instance GoogleRequest NegotiationsInsert where
78− type Rs NegotiationsInsert = NegotiationDTO
79− type Scopes NegotiationsInsert =
80− '["https://www.googleapis.com/auth/adexchange.buyer"]
81− requestClient NegotiationsInsert{..}
82− = go (Just AltJSON) _niPayload adExchangeBuyerService
83− where go
84− = buildClient
85− (Proxy :: Proxy NegotiationsInsertResource)
86− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/List.hsdeleted−86
@@ -1,86 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.Negotiations.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists all negotiations the authenticated user has access to.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.negotiations.list@.
26−module Network.Google.Resource.AdExchangeBuyer.Negotiations.List
27− (
28− -- * REST Resource
29− NegotiationsListResource
30−
31− -- * Creating a Request
32− , negotiationsList
33− , NegotiationsList
34−
35− -- * Request Lenses
36− , nlPayload
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.negotiations.list@ method which the
43−-- 'NegotiationsList' request conforms to.
44−type NegotiationsListResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "negotiations" :>
48− QueryParam "alt" AltJSON :>
49− ReqBody '[JSON] GetNegotiationsRequest :>
50− Get '[JSON] GetNegotiationsResponse
51−
52−-- | Lists all negotiations the authenticated user has access to.
53−--
54−-- /See:/ 'negotiationsList' smart constructor.
55−newtype NegotiationsList = NegotiationsList
56− { _nlPayload :: GetNegotiationsRequest
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'NegotiationsList' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'nlPayload'
64−negotiationsList
65− :: GetNegotiationsRequest -- ^ 'nlPayload'
66− -> NegotiationsList
67−negotiationsList pNlPayload_ =
68− NegotiationsList
69− { _nlPayload = pNlPayload_
70− }
71−
72−-- | Multipart request metadata.
73−nlPayload :: Lens' NegotiationsList GetNegotiationsRequest
74−nlPayload
75− = lens _nlPayload (\ s a -> s{_nlPayload = a})
76−
77−instance GoogleRequest NegotiationsList where
78− type Rs NegotiationsList = GetNegotiationsResponse
79− type Scopes NegotiationsList =
80− '["https://www.googleapis.com/auth/adexchange.buyer"]
81− requestClient NegotiationsList{..}
82− = go (Just AltJSON) _nlPayload adExchangeBuyerService
83− where go
84− = buildClient
85− (Proxy :: Proxy NegotiationsListResource)
86− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/Get.hsdeleted−84
@@ -1,84 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.Offers.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets the requested offer.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.offers.get@.
26−module Network.Google.Resource.AdExchangeBuyer.Offers.Get
27− (
28− -- * REST Resource
29− OffersGetResource
30−
31− -- * Creating a Request
32− , offersGet
33− , OffersGet
34−
35− -- * Request Lenses
36− , ogOfferId
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.offers.get@ method which the
43−-- 'OffersGet' request conforms to.
44−type OffersGetResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "offers" :>
48− Capture "offerId" (Textual Int64) :>
49− QueryParam "alt" AltJSON :> Get '[JSON] OfferDTO
50−
51−-- | Gets the requested offer.
52−--
53−-- /See:/ 'offersGet' smart constructor.
54−newtype OffersGet = OffersGet
55− { _ogOfferId :: Textual Int64
56− } deriving (Eq,Show,Data,Typeable,Generic)
57−
58−-- | Creates a value of 'OffersGet' with the minimum fields required to make a request.
59−--
60−-- Use one of the following lenses to modify other fields as desired:
61−--
62−-- * 'ogOfferId'
63−offersGet
64− :: Int64 -- ^ 'ogOfferId'
65− -> OffersGet
66−offersGet pOgOfferId_ =
67− OffersGet
68− { _ogOfferId = _Coerce # pOgOfferId_
69− }
70−
71−ogOfferId :: Lens' OffersGet Int64
72−ogOfferId
73− = lens _ogOfferId (\ s a -> s{_ogOfferId = a}) .
74− _Coerce
75−
76−instance GoogleRequest OffersGet where
77− type Rs OffersGet = OfferDTO
78− type Scopes OffersGet =
79− '["https://www.googleapis.com/auth/adexchange.buyer"]
80− requestClient OffersGet{..}
81− = go _ogOfferId (Just AltJSON) adExchangeBuyerService
82− where go
83− = buildClient (Proxy :: Proxy OffersGetResource)
84− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/Insert.hsdeleted−84
@@ -1,84 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.Offers.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Creates or updates the requested offer.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.offers.insert@.
26−module Network.Google.Resource.AdExchangeBuyer.Offers.Insert
27− (
28− -- * REST Resource
29− OffersInsertResource
30−
31− -- * Creating a Request
32− , offersInsert
33− , OffersInsert
34−
35− -- * Request Lenses
36− , oiPayload
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.offers.insert@ method which the
43−-- 'OffersInsert' request conforms to.
44−type OffersInsertResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "offers" :>
48− QueryParam "alt" AltJSON :>
49− ReqBody '[JSON] OfferDTO :> Post '[JSON] OfferDTO
50−
51−-- | Creates or updates the requested offer.
52−--
53−-- /See:/ 'offersInsert' smart constructor.
54−newtype OffersInsert = OffersInsert
55− { _oiPayload :: OfferDTO
56− } deriving (Eq,Show,Data,Typeable,Generic)
57−
58−-- | Creates a value of 'OffersInsert' with the minimum fields required to make a request.
59−--
60−-- Use one of the following lenses to modify other fields as desired:
61−--
62−-- * 'oiPayload'
63−offersInsert
64− :: OfferDTO -- ^ 'oiPayload'
65− -> OffersInsert
66−offersInsert pOiPayload_ =
67− OffersInsert
68− { _oiPayload = pOiPayload_
69− }
70−
71−-- | Multipart request metadata.
72−oiPayload :: Lens' OffersInsert OfferDTO
73−oiPayload
74− = lens _oiPayload (\ s a -> s{_oiPayload = a})
75−
76−instance GoogleRequest OffersInsert where
77− type Rs OffersInsert = OfferDTO
78− type Scopes OffersInsert =
79− '["https://www.googleapis.com/auth/adexchange.buyer"]
80− requestClient OffersInsert{..}
81− = go (Just AltJSON) _oiPayload adExchangeBuyerService
82− where go
83− = buildClient (Proxy :: Proxy OffersInsertResource)
84− mempty
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/List.hsdeleted−85
@@ -1,85 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AdExchangeBuyer.Offers.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists all offers the authenticated user has access to.
24−--
25−-- /See:/ <https://developers.google.com/ad-exchange/buyer-rest Ad Exchange Buyer API Reference> for @adexchangebuyer.offers.list@.
26−module Network.Google.Resource.AdExchangeBuyer.Offers.List
27− (
28− -- * REST Resource
29− OffersListResource
30−
31− -- * Creating a Request
32− , offersList
33− , OffersList
34−
35− -- * Request Lenses
36− , olPayload
37− ) where
38−
39−import Network.Google.AdExchangeBuyer.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @adexchangebuyer.offers.list@ method which the
43−-- 'OffersList' request conforms to.
44−type OffersListResource =
45− "adexchangebuyer" :>
46− "v1.4" :>
47− "offers" :>
48− QueryParam "alt" AltJSON :>
49− ReqBody '[JSON] ListOffersRequest :>
50− Get '[JSON] ListOffersResponse
51−
52−-- | Lists all offers the authenticated user has access to.
53−--
54−-- /See:/ 'offersList' smart constructor.
55−newtype OffersList = OffersList
56− { _olPayload :: ListOffersRequest
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'OffersList' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'olPayload'
64−offersList
65− :: ListOffersRequest -- ^ 'olPayload'
66− -> OffersList
67−offersList pOlPayload_ =
68− OffersList
69− { _olPayload = pOlPayload_
70− }
71−
72−-- | Multipart request metadata.
73−olPayload :: Lens' OffersList ListOffersRequest
74−olPayload
75− = lens _olPayload (\ s a -> s{_olPayload = a})
76−
77−instance GoogleRequest OffersList where
78− type Rs OffersList = ListOffersResponse
79− type Scopes OffersList =
80− '["https://www.googleapis.com/auth/adexchange.buyer"]
81− requestClient OffersList{..}
82− = go (Just AltJSON) _olPayload adExchangeBuyerService
83− where go
84− = buildClient (Proxy :: Proxy OffersListResource)
85− mempty
gogol-admin-directory/gen/Network/Google/Directory/Types/Sum.hs+25−25
@@ -35,7 +35,7 @@ data UsersListEvent
35 | Update
35 | Update
36 -- ^ @update@
36 -- ^ @update@
37 -- User Updated Event
37 -- User Updated Event
38− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
38+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
39
39
40instance Hashable UsersListEvent
40instance Hashable UsersListEvent
41
41
@@ -70,7 +70,7 @@ data UsersAliasesListEvent
70 | UALEDelete'
70 | UALEDelete'
71 -- ^ @delete@
71 -- ^ @delete@
72 -- Alias Deleted Event
72 -- Alias Deleted Event
73− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
73+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
74
74
75instance Hashable UsersAliasesListEvent
75instance Hashable UsersAliasesListEvent
76
76
@@ -99,7 +99,7 @@ data UsersAliasesWatchEvent
99 | UAWEDelete'
99 | UAWEDelete'
100 -- ^ @delete@
100 -- ^ @delete@
101 -- Alias Deleted Event
101 -- Alias Deleted Event
102− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
102+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
103
103
104instance Hashable UsersAliasesWatchEvent
104instance Hashable UsersAliasesWatchEvent
105
105
@@ -137,7 +137,7 @@ data UsersWatchEvent
137 | UWEUpdate
137 | UWEUpdate
138 -- ^ @update@
138 -- ^ @update@
139 -- User Updated Event
139 -- User Updated Event
140− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
140+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
141
141
142instance Hashable UsersWatchEvent
142instance Hashable UsersWatchEvent
143
143
@@ -173,7 +173,7 @@ data ChromeosDevicesPatchProjection
173 | Full
173 | Full
174 -- ^ @FULL@
174 -- ^ @FULL@
175 -- Includes all metadata fields
175 -- Includes all metadata fields
176− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
176+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
177
177
178instance Hashable ChromeosDevicesPatchProjection
178instance Hashable ChromeosDevicesPatchProjection
179
179
@@ -203,7 +203,7 @@ data ChromeosDevicesGetProjection
203 | CDGPFull
203 | CDGPFull
204 -- ^ @FULL@
204 -- ^ @FULL@
205 -- Includes all metadata fields
205 -- Includes all metadata fields
206− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
206+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
207
207
208instance Hashable ChromeosDevicesGetProjection
208instance Hashable ChromeosDevicesGetProjection
209
209
@@ -232,7 +232,7 @@ data UsersListViewType
232 | DomainPublic
232 | DomainPublic
233 -- ^ @domain_public@
233 -- ^ @domain_public@
234 -- Fetches the DOMAIN_PUBLIC view of the user.
234 -- Fetches the DOMAIN_PUBLIC view of the user.
235− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
235+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
236
236
237instance Hashable UsersListViewType
237instance Hashable UsersListViewType
238
238
@@ -261,7 +261,7 @@ data OrgUnitsListType
261 | Children
261 | Children
262 -- ^ @children@
262 -- ^ @children@
263 -- Immediate children only (default).
263 -- Immediate children only (default).
264− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
264+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
265
265
266instance Hashable OrgUnitsListType
266instance Hashable OrgUnitsListType
267
267
@@ -291,7 +291,7 @@ data MobileDevicesListSortOrder
291 | Descending
291 | Descending
292 -- ^ @DESCENDING@
292 -- ^ @DESCENDING@
293 -- Descending order.
293 -- Descending order.
294− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
294+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
295
295
296instance Hashable MobileDevicesListSortOrder
296instance Hashable MobileDevicesListSortOrder
297
297
@@ -323,7 +323,7 @@ data UsersListOrderBy
323 | GivenName
323 | GivenName
324 -- ^ @givenName@
324 -- ^ @givenName@
325 -- User\'s given name.
325 -- User\'s given name.
326− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
326+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
327
327
328instance Hashable UsersListOrderBy
328instance Hashable UsersListOrderBy
329
329
@@ -354,7 +354,7 @@ data UsersWatchViewType
354 | UWVTDomainPublic
354 | UWVTDomainPublic
355 -- ^ @domain_public@
355 -- ^ @domain_public@
356 -- Fetches the DOMAIN_PUBLIC view of the user.
356 -- Fetches the DOMAIN_PUBLIC view of the user.
357− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
357+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
358
358
359instance Hashable UsersWatchViewType
359instance Hashable UsersWatchViewType
360
360
@@ -386,7 +386,7 @@ data UsersGetProjection
386 | UGPFull
386 | UGPFull
387 -- ^ @full@
387 -- ^ @full@
388 -- Include all fields associated with this user.
388 -- Include all fields associated with this user.
389− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
389+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
390
390
391instance Hashable UsersGetProjection
391instance Hashable UsersGetProjection
392
392
@@ -418,7 +418,7 @@ data MobileDevicesListProjection
418 | MDLPFull
418 | MDLPFull
419 -- ^ @FULL@
419 -- ^ @FULL@
420 -- Includes all metadata fields
420 -- Includes all metadata fields
421− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
421+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
422
422
423instance Hashable MobileDevicesListProjection
423instance Hashable MobileDevicesListProjection
424
424
@@ -465,7 +465,7 @@ data MobileDevicesListOrderBy
465 | MDLOBType
465 | MDLOBType
466 -- ^ @type@
466 -- ^ @type@
467 -- Type of the device.
467 -- Type of the device.
468− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
468+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
469
469
470instance Hashable MobileDevicesListOrderBy
470instance Hashable MobileDevicesListOrderBy
471
471
@@ -506,7 +506,7 @@ data UsersListSortOrder
506 | ULSODescending
506 | ULSODescending
507 -- ^ @DESCENDING@
507 -- ^ @DESCENDING@
508 -- Descending order.
508 -- Descending order.
509− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
509+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
510
510
511instance Hashable UsersListSortOrder
511instance Hashable UsersListSortOrder
512
512
@@ -536,7 +536,7 @@ data ChromeosDevicesListSortOrder
536 | CDLSODescending
536 | CDLSODescending
537 -- ^ @DESCENDING@
537 -- ^ @DESCENDING@
538 -- Descending order.
538 -- Descending order.
539− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
539+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
540
540
541instance Hashable ChromeosDevicesListSortOrder
541instance Hashable ChromeosDevicesListSortOrder
542
542
@@ -565,7 +565,7 @@ data UsersWatchSortOrder
565 | UWSODescending
565 | UWSODescending
566 -- ^ @DESCENDING@
566 -- ^ @DESCENDING@
567 -- Descending order.
567 -- Descending order.
568− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
568+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
569
569
570instance Hashable UsersWatchSortOrder
570instance Hashable UsersWatchSortOrder
571
571
@@ -597,7 +597,7 @@ data UsersListProjection
597 | ULPFull
597 | ULPFull
598 -- ^ @full@
598 -- ^ @full@
599 -- Include all fields associated with this user.
599 -- Include all fields associated with this user.
600− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
600+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
601
601
602instance Hashable UsersListProjection
602instance Hashable UsersListProjection
603
603
@@ -629,7 +629,7 @@ data ChromeosDevicesUpdateProjection
629 | CDUPFull
629 | CDUPFull
630 -- ^ @FULL@
630 -- ^ @FULL@
631 -- Includes all metadata fields
631 -- Includes all metadata fields
632− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
632+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
633
633
634instance Hashable ChromeosDevicesUpdateProjection
634instance Hashable ChromeosDevicesUpdateProjection
635
635
@@ -659,7 +659,7 @@ data MobileDevicesGetProjection
659 | MDGPFull
659 | MDGPFull
660 -- ^ @FULL@
660 -- ^ @FULL@
661 -- Includes all metadata fields
661 -- Includes all metadata fields
662− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
662+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
663
663
664instance Hashable MobileDevicesGetProjection
664instance Hashable MobileDevicesGetProjection
665
665
@@ -703,7 +703,7 @@ data ChromeosDevicesListOrderBy
703 | SupportEndDate
703 | SupportEndDate
704 -- ^ @supportEndDate@
704 -- ^ @supportEndDate@
705 -- Chromebook support end date.
705 -- Chromebook support end date.
706− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
706+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
707
707
708instance Hashable ChromeosDevicesListOrderBy
708instance Hashable ChromeosDevicesListOrderBy
709
709
@@ -745,7 +745,7 @@ data UsersWatchProjection
745 | UWPFull
745 | UWPFull
746 -- ^ @full@
746 -- ^ @full@
747 -- Include all fields associated with this user.
747 -- Include all fields associated with this user.
748− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
748+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
749
749
750instance Hashable UsersWatchProjection
750instance Hashable UsersWatchProjection
751
751
@@ -779,7 +779,7 @@ data UsersWatchOrderBy
779 | UWOBGivenName
779 | UWOBGivenName
780 -- ^ @givenName@
780 -- ^ @givenName@
781 -- User\'s given name.
781 -- User\'s given name.
782− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
782+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
783
783
784instance Hashable UsersWatchOrderBy
784instance Hashable UsersWatchOrderBy
785
785
@@ -811,7 +811,7 @@ data ChromeosDevicesListProjection
811 | CDLPFull
811 | CDLPFull
812 -- ^ @FULL@
812 -- ^ @FULL@
813 -- Includes all metadata fields
813 -- Includes all metadata fields
814− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
814+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
815
815
816instance Hashable ChromeosDevicesListProjection
816instance Hashable ChromeosDevicesListProjection
817
817
@@ -840,7 +840,7 @@ data UsersGetViewType
840 | UGVTDomainPublic
840 | UGVTDomainPublic
841 -- ^ @domain_public@
841 -- ^ @domain_public@
842 -- Fetches the DOMAIN_PUBLIC view of the user.
842 -- Fetches the DOMAIN_PUBLIC view of the user.
843− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
843+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
844
844
845instance Hashable UsersGetViewType
845instance Hashable UsersGetViewType
846
846
gogol-admin-emailmigration/gen/Network/Google/Resource/EmailMigration/Mail/Insert.hs+3−4
@@ -58,9 +58,8 @@ type MailInsertResource =
58 Capture "userKey" Text :>
58 Capture "userKey" Text :>
59 "mail" :>
59 "mail" :>
60 QueryParam "alt" AltJSON :>
60 QueryParam "alt" AltJSON :>
61− QueryParam "uploadType" AltMedia :>
61+ QueryParam "uploadType" Multipart :>
62− MultipartRelated '[JSON] MailItem RequestBody :>
62+ MultipartRelated '[JSON] MailItem :> Post '[JSON] ()
63− Post '[JSON] ()
64
63
65-- | Insert Mail into Google\'s Gmail backends
64-- | Insert Mail into Google\'s Gmail backends
66--
65--
@@ -113,7 +112,7 @@ instance GoogleRequest (MediaUpload MailInsert) where
113 type Scopes (MediaUpload MailInsert) =
112 type Scopes (MediaUpload MailInsert) =
114 Scopes MailInsert
113 Scopes MailInsert
115 requestClient (MediaUpload MailInsert'{..} body)
114 requestClient (MediaUpload MailInsert'{..} body)
116− = go _miUserKey (Just AltJSON) (Just AltMedia)
115+ = go _miUserKey (Just AltJSON) (Just Multipart)
117 _miPayload
116 _miPayload
118 body
117 body
119 emailMigrationService
118 emailMigrationService
gogol-adsense-host/gen/Network/Google/AdSenseHost/Types/Sum.hs+1−1
@@ -35,7 +35,7 @@ data AssociationSessionsStartProductCode
35 | Afv
35 | Afv
36 -- ^ @AFV@
36 -- ^ @AFV@
37 -- AdSense For Video
37 -- AdSense For Video
38− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
38+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
39
39
40instance Hashable AssociationSessionsStartProductCode
40instance Hashable AssociationSessionsStartProductCode
41
41
gogol-affiliates/gen/Network/Google/Affiliates/Types/Sum.hs+22−22
@@ -27,7 +27,7 @@ data PublishersGetRole
27 | PGRPublishers
27 | PGRPublishers
28 -- ^ @publishers@
28 -- ^ @publishers@
29 -- The requester is requesting as a publisher.
29 -- The requester is requesting as a publisher.
30− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
30+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
31
31
32instance Hashable PublishersGetRole
32instance Hashable PublishersGetRole
33
33
@@ -60,7 +60,7 @@ data ReportsGetEventType
60 | Transaction
60 | Transaction
61 -- ^ @transaction@
61 -- ^ @transaction@
62 -- Event type is transaction.
62 -- Event type is transaction.
63− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
63+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
64
64
65instance Hashable ReportsGetEventType
65instance Hashable ReportsGetEventType
66
66
@@ -95,7 +95,7 @@ data ReportsGetStatus
95 | Invalid
95 | Invalid
96 -- ^ @invalid@
96 -- ^ @invalid@
97 -- Event is currently invalid.
97 -- Event is currently invalid.
98− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
98+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
99
99
100instance Hashable ReportsGetStatus
100instance Hashable ReportsGetStatus
101
101
@@ -130,7 +130,7 @@ data LinksListPromotionType
130 -- ^ @percent_off@
130 -- ^ @percent_off@
131 | PriceCut
131 | PriceCut
132 -- ^ @price_cut@
132 -- ^ @price_cut@
133− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
133+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
134
134
135instance Hashable LinksListPromotionType
135instance Hashable LinksListPromotionType
136
136
@@ -174,7 +174,7 @@ data EventsListType
174 -- A conversion event, typically an e-commerce transaction. Some
174 -- A conversion event, typically an e-commerce transaction. Some
175 -- advertisers use a transaction to record other types of events, such as
175 -- advertisers use a transaction to record other types of events, such as
176 -- magazine subscriptions.
176 -- magazine subscriptions.
177− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
177+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
178
178
179instance Hashable EventsListType
179instance Hashable EventsListType
180
180
@@ -206,7 +206,7 @@ data LinksListRole
206 | LLRPublishers
206 | LLRPublishers
207 -- ^ @publishers@
207 -- ^ @publishers@
208 -- The requester is requesting as a publisher.
208 -- The requester is requesting as a publisher.
209− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
209+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
210
210
211instance Hashable LinksListRole
211instance Hashable LinksListRole
212
212
@@ -233,7 +233,7 @@ data ReportsGetReportType
233 = OrderDelta
233 = OrderDelta
234 -- ^ @order_delta@
234 -- ^ @order_delta@
235 -- The order delta report type.
235 -- The order delta report type.
236− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
236+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
237
237
238instance Hashable ReportsGetReportType
238instance Hashable ReportsGetReportType
239
239
@@ -261,7 +261,7 @@ data AdvertisersListRole
261 | ALRPublishers
261 | ALRPublishers
262 -- ^ @publishers@
262 -- ^ @publishers@
263 -- The requester is requesting as a publisher.
263 -- The requester is requesting as a publisher.
264− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
264+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
265
265
266instance Hashable AdvertisersListRole
266instance Hashable AdvertisersListRole
267
267
@@ -291,7 +291,7 @@ data LinksInsertRole
291 | LIRPublishers
291 | LIRPublishers
292 -- ^ @publishers@
292 -- ^ @publishers@
293 -- The requester is requesting as a publisher.
293 -- The requester is requesting as a publisher.
294− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
294+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
295
295
296instance Hashable LinksInsertRole
296instance Hashable LinksInsertRole
297
297
@@ -321,7 +321,7 @@ data PublishersListRole
321 | PLRPublishers
321 | PLRPublishers
322 -- ^ @publishers@
322 -- ^ @publishers@
323 -- The requester is requesting as a publisher.
323 -- The requester is requesting as a publisher.
324− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
324+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
325
325
326instance Hashable PublishersListRole
326instance Hashable PublishersListRole
327
327
@@ -348,7 +348,7 @@ data LinksListAuthorship
348 -- ^ @advertiser@
348 -- ^ @advertiser@
349 | LLAPublisher
349 | LLAPublisher
350 -- ^ @publisher@
350 -- ^ @publisher@
351− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
351+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
352
352
353instance Hashable LinksListAuthorship
353instance Hashable LinksListAuthorship
354
354
@@ -378,7 +378,7 @@ data LinksGetRole
378 | LGRPublishers
378 | LGRPublishers
379 -- ^ @publishers@
379 -- ^ @publishers@
380 -- The requester is requesting as a publisher.
380 -- The requester is requesting as a publisher.
381− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
381+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
382
382
383instance Hashable LinksGetRole
383instance Hashable LinksGetRole
384
384
@@ -405,7 +405,7 @@ data LinksListLinkType
405 -- ^ @banner@
405 -- ^ @banner@
406 | Text
406 | Text
407 -- ^ @text@
407 -- ^ @text@
408− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
408+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
409
409
410instance Hashable LinksListLinkType
410instance Hashable LinksListLinkType
411
411
@@ -435,7 +435,7 @@ data EventsListRole
435 | ELRPublishers
435 | ELRPublishers
436 -- ^ @publishers@
436 -- ^ @publishers@
437 -- The requester is requesting as a publisher.
437 -- The requester is requesting as a publisher.
438− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
438+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
439
439
440instance Hashable EventsListRole
440instance Hashable EventsListRole
441
441
@@ -477,7 +477,7 @@ data AdvertisersListRelationshipStatus
477 -- ^ @pending@
477 -- ^ @pending@
478 -- An advertiser program that you\'ve already applied to, but they haven\'t
478 -- An advertiser program that you\'ve already applied to, but they haven\'t
479 -- yet decided to approve or decline your application.
479 -- yet decided to approve or decline your application.
480− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
480+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
481
481
482instance Hashable AdvertisersListRelationshipStatus
482instance Hashable AdvertisersListRelationshipStatus
483
483
@@ -512,7 +512,7 @@ data CcOffersListProjection
512 | Summary
512 | Summary
513 -- ^ @summary@
513 -- ^ @summary@
514 -- Include only the basic fields needed to display an offer.
514 -- Include only the basic fields needed to display an offer.
515− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
515+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
516
516
517instance Hashable CcOffersListProjection
517instance Hashable CcOffersListProjection
518
518
@@ -542,7 +542,7 @@ data AdvertisersGetRole
542 | AGRPublishers
542 | AGRPublishers
543 -- ^ @publishers@
543 -- ^ @publishers@
544 -- The requester is requesting as a publisher.
544 -- The requester is requesting as a publisher.
545− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
545+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
546
546
547instance Hashable AdvertisersGetRole
547instance Hashable AdvertisersGetRole
548
548
@@ -589,7 +589,7 @@ data EventsListChargeType
589 -- ^ @tier_bonus@
589 -- ^ @tier_bonus@
590 -- A payment from an advertiser to a publisher for the publisher
590 -- A payment from an advertiser to a publisher for the publisher
591 -- maintaining a high tier level
591 -- maintaining a high tier level
592− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
592+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
593
593
594instance Hashable EventsListChargeType
594instance Hashable EventsListChargeType
595
595
@@ -638,7 +638,7 @@ data PublishersListRelationshipStatus
638 -- ^ @pending@
638 -- ^ @pending@
639 -- Publishers that have applied to your program. We recommend reviewing and
639 -- Publishers that have applied to your program. We recommend reviewing and
640 -- deciding on pending publishers on a weekly basis.
640 -- deciding on pending publishers on a weekly basis.
641− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
641+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
642
642
643instance Hashable PublishersListRelationshipStatus
643instance Hashable PublishersListRelationshipStatus
644
644
@@ -674,7 +674,7 @@ data ReportsGetRole
674 | RGRPublishers
674 | RGRPublishers
675 -- ^ @publishers@
675 -- ^ @publishers@
676 -- The requester is requesting as a publisher.
676 -- The requester is requesting as a publisher.
677− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
677+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
678
678
679instance Hashable ReportsGetRole
679instance Hashable ReportsGetRole
680
680
@@ -701,7 +701,7 @@ data LinksListRelationshipStatus
701 -- ^ @approved@
701 -- ^ @approved@
702 | LLRSAvailable
702 | LLRSAvailable
703 -- ^ @available@
703 -- ^ @available@
704− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
704+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
705
705
706instance Hashable LinksListRelationshipStatus
706instance Hashable LinksListRelationshipStatus
707
707
@@ -731,7 +731,7 @@ data EventsListStatus
731 | ELSCanceled
731 | ELSCanceled
732 -- ^ @canceled@
732 -- ^ @canceled@
733 -- Event is currently canceled.
733 -- Event is currently canceled.
734− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
734+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
735
735
736instance Hashable EventsListStatus
736instance Hashable EventsListStatus
737
737
gogol-analytics/gen/Network/Google/Analytics/Types/Sum.hs+3−3
@@ -30,7 +30,7 @@ data DataGaGetSamplingLevel
30 -- ^ @HIGHER_PRECISION@
30 -- ^ @HIGHER_PRECISION@
31 -- Returns a more accurate response using a large sample size, but this may
31 -- Returns a more accurate response using a large sample size, but this may
32 -- result in the response being slower.
32 -- result in the response being slower.
33− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
33+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
34
34
35instance Hashable DataGaGetSamplingLevel
35instance Hashable DataGaGetSamplingLevel
36
36
@@ -62,7 +62,7 @@ data DataGaGetOutput
62 | JSON
62 | JSON
63 -- ^ @json@
63 -- ^ @json@
64 -- Returns the response in standard JSON format.
64 -- Returns the response in standard JSON format.
65− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
65+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
66
66
67instance Hashable DataGaGetOutput
67instance Hashable DataGaGetOutput
68
68
@@ -95,7 +95,7 @@ data DataMcfGetSamplingLevel
95 -- ^ @HIGHER_PRECISION@
95 -- ^ @HIGHER_PRECISION@
96 -- Returns a more accurate response using a large sample size, but this may
96 -- Returns a more accurate response using a large sample size, but this may
97 -- result in the response being slower.
97 -- result in the response being slower.
98− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
98+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
99
99
100instance Hashable DataMcfGetSamplingLevel
100instance Hashable DataMcfGetSamplingLevel
101
101
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/Uploads/UploadData.hs+1−2
@@ -69,8 +69,7 @@ type ManagementUploadsUploadDataResource =
69 "uploads" :>
69 "uploads" :>
70 QueryParam "alt" AltJSON :>
70 QueryParam "alt" AltJSON :>
71 QueryParam "uploadType" AltMedia :>
71 QueryParam "uploadType" AltMedia :>
72− ReqBody '[OctetStream] RequestBody :>
73− Post '[JSON] Upload
72+ AltMedia :> Post '[JSON] Upload
74
73
75-- | Upload data for a custom data source.
74-- | Upload data for a custom data source.
76--
75--
gogol-android-publisher/gen/Network/Google/AndroidPublisher/Types/Sum.hs+14−14
@@ -37,7 +37,7 @@ data EditsImagesDeleteallImageType
37 -- ^ @tvScreenshots@
37 -- ^ @tvScreenshots@
38 | WearScreenshots
38 | WearScreenshots
39 -- ^ @wearScreenshots@
39 -- ^ @wearScreenshots@
40− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
40+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
41
41
42instance Hashable EditsImagesDeleteallImageType
42instance Hashable EditsImagesDeleteallImageType
43
43
@@ -82,7 +82,7 @@ data EditsTracksPatchTrack
82 -- ^ @production@
82 -- ^ @production@
83 | Rollout
83 | Rollout
84 -- ^ @rollout@
84 -- ^ @rollout@
85− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
85+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
86
86
87instance Hashable EditsTracksPatchTrack
87instance Hashable EditsTracksPatchTrack
88
88
@@ -117,7 +117,7 @@ data EditsTracksGetTrack
117 -- ^ @production@
117 -- ^ @production@
118 | ETGTRollout
118 | ETGTRollout
119 -- ^ @rollout@
119 -- ^ @rollout@
120− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
120+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
121
121
122instance Hashable EditsTracksGetTrack
122instance Hashable EditsTracksGetTrack
123
123
@@ -152,7 +152,7 @@ data EditsTracksUpdateTrack
152 -- ^ @production@
152 -- ^ @production@
153 | ETUTRollout
153 | ETUTRollout
154 -- ^ @rollout@
154 -- ^ @rollout@
155− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
155+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
156
156
157instance Hashable EditsTracksUpdateTrack
157instance Hashable EditsTracksUpdateTrack
158
158
@@ -196,7 +196,7 @@ data EditsImagesListImageType
196 -- ^ @tvScreenshots@
196 -- ^ @tvScreenshots@
197 | EILITWearScreenshots
197 | EILITWearScreenshots
198 -- ^ @wearScreenshots@
198 -- ^ @wearScreenshots@
199− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
199+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
200
200
201instance Hashable EditsImagesListImageType
201instance Hashable EditsImagesListImageType
202
202
@@ -240,7 +240,7 @@ data EditsTestersPatchTrack
240 -- ^ @production@
240 -- ^ @production@
241 | ETPTRollout
241 | ETPTRollout
242 -- ^ @rollout@
242 -- ^ @rollout@
243− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
243+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
244
244
245instance Hashable EditsTestersPatchTrack
245instance Hashable EditsTestersPatchTrack
246
246
@@ -274,7 +274,7 @@ data EditsTestersGetTrack
274 -- ^ @production@
274 -- ^ @production@
275 | ERollout
275 | ERollout
276 -- ^ @rollout@
276 -- ^ @rollout@
277− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
277+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
278
278
279instance Hashable EditsTestersGetTrack
279instance Hashable EditsTestersGetTrack
280
280
@@ -318,7 +318,7 @@ data EditsImagesUploadImageType
318 -- ^ @tvScreenshots@
318 -- ^ @tvScreenshots@
319 | EIUITWearScreenshots
319 | EIUITWearScreenshots
320 -- ^ @wearScreenshots@
320 -- ^ @wearScreenshots@
321− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
321+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
322
322
323instance Hashable EditsImagesUploadImageType
323instance Hashable EditsImagesUploadImageType
324
324
@@ -358,7 +358,7 @@ data EditsExpansionFilesUploadExpansionFileType
358 -- ^ @main@
358 -- ^ @main@
359 | Patch'
359 | Patch'
360 -- ^ @patch@
360 -- ^ @patch@
361− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
361+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
362
362
363instance Hashable EditsExpansionFilesUploadExpansionFileType
363instance Hashable EditsExpansionFilesUploadExpansionFileType
364
364
@@ -384,7 +384,7 @@ data EditsExpansionFilesGetExpansionFileType
384 -- ^ @main@
384 -- ^ @main@
385 | EEFGEFTPatch'
385 | EEFGEFTPatch'
386 -- ^ @patch@
386 -- ^ @patch@
387− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
387+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
388
388
389instance Hashable EditsExpansionFilesGetExpansionFileType
389instance Hashable EditsExpansionFilesGetExpansionFileType
390
390
@@ -410,7 +410,7 @@ data EditsExpansionFilesPatchExpansionFileType
410 -- ^ @main@
410 -- ^ @main@
411 | EEFPEFTPatch'
411 | EEFPEFTPatch'
412 -- ^ @patch@
412 -- ^ @patch@
413− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
413+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
414
414
415instance Hashable EditsExpansionFilesPatchExpansionFileType
415instance Hashable EditsExpansionFilesPatchExpansionFileType
416
416
@@ -436,7 +436,7 @@ data EditsExpansionFilesUpdateExpansionFileType
436 -- ^ @main@
436 -- ^ @main@
437 | EEFUEFTPatch'
437 | EEFUEFTPatch'
438 -- ^ @patch@
438 -- ^ @patch@
439− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
439+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
440
440
441instance Hashable EditsExpansionFilesUpdateExpansionFileType
441instance Hashable EditsExpansionFilesUpdateExpansionFileType
442
442
@@ -476,7 +476,7 @@ data EditsImagesDeleteImageType
476 -- ^ @tvScreenshots@
476 -- ^ @tvScreenshots@
477 | EIDITWearScreenshots
477 | EIDITWearScreenshots
478 -- ^ @wearScreenshots@
478 -- ^ @wearScreenshots@
479− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
479+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
480
480
481instance Hashable EditsImagesDeleteImageType
481instance Hashable EditsImagesDeleteImageType
482
482
@@ -520,7 +520,7 @@ data EditsTestersUpdateTrack
520 -- ^ @production@
520 -- ^ @production@
521 | EDIRollout
521 | EDIRollout
522 -- ^ @rollout@
522 -- ^ @rollout@
523− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
523+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
524
524
525instance Hashable EditsTestersUpdateTrack
525instance Hashable EditsTestersUpdateTrack
526
526
gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/APKs/Upload.hs+1−2
@@ -60,8 +60,7 @@ type EditsAPKsUploadResource =
60 "apks" :>
60 "apks" :>
61 QueryParam "alt" AltJSON :>
61 QueryParam "alt" AltJSON :>
62 QueryParam "uploadType" AltMedia :>
62 QueryParam "uploadType" AltMedia :>
63− ReqBody '[OctetStream] RequestBody :>
64− Post '[JSON] APK
63+ AltMedia :> Post '[JSON] APK
65
64
66--
65--
67-- /See:/ 'editsAPKsUpload' smart constructor.
66-- /See:/ 'editsAPKsUpload' smart constructor.
gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/ExpansionFiles/Upload.hs+1−1
@@ -75,7 +75,7 @@ type EditsExpansionFilesUploadResource =
75 :>
75 :>
76 QueryParam "alt" AltJSON :>
76 QueryParam "alt" AltJSON :>
77 QueryParam "uploadType" AltMedia :>
77 QueryParam "uploadType" AltMedia :>
78− ReqBody '[OctetStream] RequestBody :>
78+ AltMedia :>
79 Post '[JSON] ExpansionFilesUploadResponse
79 Post '[JSON] ExpansionFilesUploadResponse
80
80
81-- | Uploads and attaches a new Expansion File to the APK specified.
81-- | Uploads and attaches a new Expansion File to the APK specified.
gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/Images/Upload.hs+1−2
@@ -70,8 +70,7 @@ type EditsImagesUploadResource =
70 Capture "imageType" EditsImagesUploadImageType :>
70 Capture "imageType" EditsImagesUploadImageType :>
71 QueryParam "alt" AltJSON :>
71 QueryParam "alt" AltJSON :>
72 QueryParam "uploadType" AltMedia :>
72 QueryParam "uploadType" AltMedia :>
73− ReqBody '[OctetStream] RequestBody :>
74− Post '[JSON] ImagesUploadResponse
73+ AltMedia :> Post '[JSON] ImagesUploadResponse
75
74
76-- | Uploads a new image and adds it to the list of images for the specified
75-- | Uploads a new image and adds it to the list of images for the specified
77-- language and image type.
76-- language and image type.
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Delete.hsdeleted−186
@@ -1,186 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AppEngine.Apps.Modules.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Deletes a module and all enclosed versions.
24−--
25−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.modules.delete@.
26−module Network.Google.Resource.AppEngine.Apps.Modules.Delete
27− (
28− -- * REST Resource
29− AppsModulesDeleteResource
30−
31− -- * Creating a Request
32− , appsModulesDelete
33− , AppsModulesDelete
34−
35− -- * Request Lenses
36− , amdXgafv
37− , amdUploadProtocol
38− , amdPp
39− , amdAccessToken
40− , amdUploadType
41− , amdModulesId
42− , amdBearerToken
43− , amdAppsId
44− , amdCallback
45− ) where
46−
47−import Network.Google.AppEngine.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @appengine.apps.modules.delete@ method which the
51−-- 'AppsModulesDelete' request conforms to.
52−type AppsModulesDeleteResource =
53− "v1beta4" :>
54− "apps" :>
55− Capture "appsId" Text :>
56− "modules" :>
57− Capture "modulesId" Text :>
58− QueryParam "$.xgafv" Text :>
59− QueryParam "upload_protocol" Text :>
60− QueryParam "pp" Bool :>
61− QueryParam "access_token" Text :>
62− QueryParam "uploadType" Text :>
63− QueryParam "bearer_token" Text :>
64− QueryParam "callback" Text :>
65− QueryParam "alt" AltJSON :>
66− Delete '[JSON] Operation
67−
68−-- | Deletes a module and all enclosed versions.
69−--
70−-- /See:/ 'appsModulesDelete' smart constructor.
71−data AppsModulesDelete = AppsModulesDelete
72− { _amdXgafv :: !(Maybe Text)
73− , _amdUploadProtocol :: !(Maybe Text)
74− , _amdPp :: !Bool
75− , _amdAccessToken :: !(Maybe Text)
76− , _amdUploadType :: !(Maybe Text)
77− , _amdModulesId :: !Text
78− , _amdBearerToken :: !(Maybe Text)
79− , _amdAppsId :: !Text
80− , _amdCallback :: !(Maybe Text)
81− } deriving (Eq,Show,Data,Typeable,Generic)
82−
83−-- | Creates a value of 'AppsModulesDelete' with the minimum fields required to make a request.
84−--
85−-- Use one of the following lenses to modify other fields as desired:
86−--
87−-- * 'amdXgafv'
88−--
89−-- * 'amdUploadProtocol'
90−--
91−-- * 'amdPp'
92−--
93−-- * 'amdAccessToken'
94−--
95−-- * 'amdUploadType'
96−--
97−-- * 'amdModulesId'
98−--
99−-- * 'amdBearerToken'
100−--
101−-- * 'amdAppsId'
102−--
103−-- * 'amdCallback'
104−appsModulesDelete
105− :: Text -- ^ 'amdModulesId'
106− -> Text -- ^ 'amdAppsId'
107− -> AppsModulesDelete
108−appsModulesDelete pAmdModulesId_ pAmdAppsId_ =
109− AppsModulesDelete
110− { _amdXgafv = Nothing
111− , _amdUploadProtocol = Nothing
112− , _amdPp = True
113− , _amdAccessToken = Nothing
114− , _amdUploadType = Nothing
115− , _amdModulesId = pAmdModulesId_
116− , _amdBearerToken = Nothing
117− , _amdAppsId = pAmdAppsId_
118− , _amdCallback = Nothing
119− }
120−
121−-- | V1 error format.
122−amdXgafv :: Lens' AppsModulesDelete (Maybe Text)
123−amdXgafv = lens _amdXgafv (\ s a -> s{_amdXgafv = a})
124−
125−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
126−amdUploadProtocol :: Lens' AppsModulesDelete (Maybe Text)
127−amdUploadProtocol
128− = lens _amdUploadProtocol
129− (\ s a -> s{_amdUploadProtocol = a})
130−
131−-- | Pretty-print response.
132−amdPp :: Lens' AppsModulesDelete Bool
133−amdPp = lens _amdPp (\ s a -> s{_amdPp = a})
134−
135−-- | OAuth access token.
136−amdAccessToken :: Lens' AppsModulesDelete (Maybe Text)
137−amdAccessToken
138− = lens _amdAccessToken
139− (\ s a -> s{_amdAccessToken = a})
140−
141−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
142−amdUploadType :: Lens' AppsModulesDelete (Maybe Text)
143−amdUploadType
144− = lens _amdUploadType
145− (\ s a -> s{_amdUploadType = a})
146−
147−-- | Part of \`name\`. See documentation of \`appsId\`.
148−amdModulesId :: Lens' AppsModulesDelete Text
149−amdModulesId
150− = lens _amdModulesId (\ s a -> s{_amdModulesId = a})
151−
152−-- | OAuth bearer token.
153−amdBearerToken :: Lens' AppsModulesDelete (Maybe Text)
154−amdBearerToken
155− = lens _amdBearerToken
156− (\ s a -> s{_amdBearerToken = a})
157−
158−-- | Part of \`name\`. Name of the resource requested. For example:
159−-- \"apps\/myapp\/modules\/default\".
160−amdAppsId :: Lens' AppsModulesDelete Text
161−amdAppsId
162− = lens _amdAppsId (\ s a -> s{_amdAppsId = a})
163−
164−-- | JSONP
165−amdCallback :: Lens' AppsModulesDelete (Maybe Text)
166−amdCallback
167− = lens _amdCallback (\ s a -> s{_amdCallback = a})
168−
169−instance GoogleRequest AppsModulesDelete where
170− type Rs AppsModulesDelete = Operation
171− type Scopes AppsModulesDelete =
172− '["https://www.googleapis.com/auth/cloud-platform"]
173− requestClient AppsModulesDelete{..}
174− = go _amdAppsId _amdModulesId _amdXgafv
175− _amdUploadProtocol
176− (Just _amdPp)
177− _amdAccessToken
178− _amdUploadType
179− _amdBearerToken
180− _amdCallback
181− (Just AltJSON)
182− appEngineService
183− where go
184− = buildClient
185− (Proxy :: Proxy AppsModulesDeleteResource)
186− mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Get.hsdeleted−184
@@ -1,184 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AppEngine.Apps.Modules.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets the current configuration of the module.
24−--
25−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.modules.get@.
26−module Network.Google.Resource.AppEngine.Apps.Modules.Get
27− (
28− -- * REST Resource
29− AppsModulesGetResource
30−
31− -- * Creating a Request
32− , appsModulesGet
33− , AppsModulesGet
34−
35− -- * Request Lenses
36− , amgXgafv
37− , amgUploadProtocol
38− , amgPp
39− , amgAccessToken
40− , amgUploadType
41− , amgModulesId
42− , amgBearerToken
43− , amgAppsId
44− , amgCallback
45− ) where
46−
47−import Network.Google.AppEngine.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @appengine.apps.modules.get@ method which the
51−-- 'AppsModulesGet' request conforms to.
52−type AppsModulesGetResource =
53− "v1beta4" :>
54− "apps" :>
55− Capture "appsId" Text :>
56− "modules" :>
57− Capture "modulesId" Text :>
58− QueryParam "$.xgafv" Text :>
59− QueryParam "upload_protocol" Text :>
60− QueryParam "pp" Bool :>
61− QueryParam "access_token" Text :>
62− QueryParam "uploadType" Text :>
63− QueryParam "bearer_token" Text :>
64− QueryParam "callback" Text :>
65− QueryParam "alt" AltJSON :> Get '[JSON] Module
66−
67−-- | Gets the current configuration of the module.
68−--
69−-- /See:/ 'appsModulesGet' smart constructor.
70−data AppsModulesGet = AppsModulesGet
71− { _amgXgafv :: !(Maybe Text)
72− , _amgUploadProtocol :: !(Maybe Text)
73− , _amgPp :: !Bool
74− , _amgAccessToken :: !(Maybe Text)
75− , _amgUploadType :: !(Maybe Text)
76− , _amgModulesId :: !Text
77− , _amgBearerToken :: !(Maybe Text)
78− , _amgAppsId :: !Text
79− , _amgCallback :: !(Maybe Text)
80− } deriving (Eq,Show,Data,Typeable,Generic)
81−
82−-- | Creates a value of 'AppsModulesGet' with the minimum fields required to make a request.
83−--
84−-- Use one of the following lenses to modify other fields as desired:
85−--
86−-- * 'amgXgafv'
87−--
88−-- * 'amgUploadProtocol'
89−--
90−-- * 'amgPp'
91−--
92−-- * 'amgAccessToken'
93−--
94−-- * 'amgUploadType'
95−--
96−-- * 'amgModulesId'
97−--
98−-- * 'amgBearerToken'
99−--
100−-- * 'amgAppsId'
101−--
102−-- * 'amgCallback'
103−appsModulesGet
104− :: Text -- ^ 'amgModulesId'
105− -> Text -- ^ 'amgAppsId'
106− -> AppsModulesGet
107−appsModulesGet pAmgModulesId_ pAmgAppsId_ =
108− AppsModulesGet
109− { _amgXgafv = Nothing
110− , _amgUploadProtocol = Nothing
111− , _amgPp = True
112− , _amgAccessToken = Nothing
113− , _amgUploadType = Nothing
114− , _amgModulesId = pAmgModulesId_
115− , _amgBearerToken = Nothing
116− , _amgAppsId = pAmgAppsId_
117− , _amgCallback = Nothing
118− }
119−
120−-- | V1 error format.
121−amgXgafv :: Lens' AppsModulesGet (Maybe Text)
122−amgXgafv = lens _amgXgafv (\ s a -> s{_amgXgafv = a})
123−
124−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125−amgUploadProtocol :: Lens' AppsModulesGet (Maybe Text)
126−amgUploadProtocol
127− = lens _amgUploadProtocol
128− (\ s a -> s{_amgUploadProtocol = a})
129−
130−-- | Pretty-print response.
131−amgPp :: Lens' AppsModulesGet Bool
132−amgPp = lens _amgPp (\ s a -> s{_amgPp = a})
133−
134−-- | OAuth access token.
135−amgAccessToken :: Lens' AppsModulesGet (Maybe Text)
136−amgAccessToken
137− = lens _amgAccessToken
138− (\ s a -> s{_amgAccessToken = a})
139−
140−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141−amgUploadType :: Lens' AppsModulesGet (Maybe Text)
142−amgUploadType
143− = lens _amgUploadType
144− (\ s a -> s{_amgUploadType = a})
145−
146−-- | Part of \`name\`. See documentation of \`appsId\`.
147−amgModulesId :: Lens' AppsModulesGet Text
148−amgModulesId
149− = lens _amgModulesId (\ s a -> s{_amgModulesId = a})
150−
151−-- | OAuth bearer token.
152−amgBearerToken :: Lens' AppsModulesGet (Maybe Text)
153−amgBearerToken
154− = lens _amgBearerToken
155− (\ s a -> s{_amgBearerToken = a})
156−
157−-- | Part of \`name\`. Name of the resource requested. For example:
158−-- \"apps\/myapp\/modules\/default\".
159−amgAppsId :: Lens' AppsModulesGet Text
160−amgAppsId
161− = lens _amgAppsId (\ s a -> s{_amgAppsId = a})
162−
163−-- | JSONP
164−amgCallback :: Lens' AppsModulesGet (Maybe Text)
165−amgCallback
166− = lens _amgCallback (\ s a -> s{_amgCallback = a})
167−
168−instance GoogleRequest AppsModulesGet where
169− type Rs AppsModulesGet = Module
170− type Scopes AppsModulesGet =
171− '["https://www.googleapis.com/auth/cloud-platform"]
172− requestClient AppsModulesGet{..}
173− = go _amgAppsId _amgModulesId _amgXgafv
174− _amgUploadProtocol
175− (Just _amgPp)
176− _amgAccessToken
177− _amgUploadType
178− _amgBearerToken
179− _amgCallback
180− (Just AltJSON)
181− appEngineService
182− where go
183− = buildClient (Proxy :: Proxy AppsModulesGetResource)
184− mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/List.hsdeleted−198
@@ -1,198 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AppEngine.Apps.Modules.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists all the modules in the application.
24−--
25−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.modules.list@.
26−module Network.Google.Resource.AppEngine.Apps.Modules.List
27− (
28− -- * REST Resource
29− AppsModulesListResource
30−
31− -- * Creating a Request
32− , appsModulesList
33− , AppsModulesList
34−
35− -- * Request Lenses
36− , amlXgafv
37− , amlUploadProtocol
38− , amlPp
39− , amlAccessToken
40− , amlUploadType
41− , amlBearerToken
42− , amlAppsId
43− , amlPageToken
44− , amlPageSize
45− , amlCallback
46− ) where
47−
48−import Network.Google.AppEngine.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @appengine.apps.modules.list@ method which the
52−-- 'AppsModulesList' request conforms to.
53−type AppsModulesListResource =
54− "v1beta4" :>
55− "apps" :>
56− Capture "appsId" Text :>
57− "modules" :>
58− QueryParam "$.xgafv" Text :>
59− QueryParam "upload_protocol" Text :>
60− QueryParam "pp" Bool :>
61− QueryParam "access_token" Text :>
62− QueryParam "uploadType" Text :>
63− QueryParam "bearer_token" Text :>
64− QueryParam "pageToken" Text :>
65− QueryParam "pageSize" (Textual Int32) :>
66− QueryParam "callback" Text :>
67− QueryParam "alt" AltJSON :>
68− Get '[JSON] ListModulesResponse
69−
70−-- | Lists all the modules in the application.
71−--
72−-- /See:/ 'appsModulesList' smart constructor.
73−data AppsModulesList = AppsModulesList
74− { _amlXgafv :: !(Maybe Text)
75− , _amlUploadProtocol :: !(Maybe Text)
76− , _amlPp :: !Bool
77− , _amlAccessToken :: !(Maybe Text)
78− , _amlUploadType :: !(Maybe Text)
79− , _amlBearerToken :: !(Maybe Text)
80− , _amlAppsId :: !Text
81− , _amlPageToken :: !(Maybe Text)
82− , _amlPageSize :: !(Maybe (Textual Int32))
83− , _amlCallback :: !(Maybe Text)
84− } deriving (Eq,Show,Data,Typeable,Generic)
85−
86−-- | Creates a value of 'AppsModulesList' with the minimum fields required to make a request.
87−--
88−-- Use one of the following lenses to modify other fields as desired:
89−--
90−-- * 'amlXgafv'
91−--
92−-- * 'amlUploadProtocol'
93−--
94−-- * 'amlPp'
95−--
96−-- * 'amlAccessToken'
97−--
98−-- * 'amlUploadType'
99−--
100−-- * 'amlBearerToken'
101−--
102−-- * 'amlAppsId'
103−--
104−-- * 'amlPageToken'
105−--
106−-- * 'amlPageSize'
107−--
108−-- * 'amlCallback'
109−appsModulesList
110− :: Text -- ^ 'amlAppsId'
111− -> AppsModulesList
112−appsModulesList pAmlAppsId_ =
113− AppsModulesList
114− { _amlXgafv = Nothing
115− , _amlUploadProtocol = Nothing
116− , _amlPp = True
117− , _amlAccessToken = Nothing
118− , _amlUploadType = Nothing
119− , _amlBearerToken = Nothing
120− , _amlAppsId = pAmlAppsId_
121− , _amlPageToken = Nothing
122− , _amlPageSize = Nothing
123− , _amlCallback = Nothing
124− }
125−
126−-- | V1 error format.
127−amlXgafv :: Lens' AppsModulesList (Maybe Text)
128−amlXgafv = lens _amlXgafv (\ s a -> s{_amlXgafv = a})
129−
130−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
131−amlUploadProtocol :: Lens' AppsModulesList (Maybe Text)
132−amlUploadProtocol
133− = lens _amlUploadProtocol
134− (\ s a -> s{_amlUploadProtocol = a})
135−
136−-- | Pretty-print response.
137−amlPp :: Lens' AppsModulesList Bool
138−amlPp = lens _amlPp (\ s a -> s{_amlPp = a})
139−
140−-- | OAuth access token.
141−amlAccessToken :: Lens' AppsModulesList (Maybe Text)
142−amlAccessToken
143− = lens _amlAccessToken
144− (\ s a -> s{_amlAccessToken = a})
145−
146−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
147−amlUploadType :: Lens' AppsModulesList (Maybe Text)
148−amlUploadType
149− = lens _amlUploadType
150− (\ s a -> s{_amlUploadType = a})
151−
152−-- | OAuth bearer token.
153−amlBearerToken :: Lens' AppsModulesList (Maybe Text)
154−amlBearerToken
155− = lens _amlBearerToken
156− (\ s a -> s{_amlBearerToken = a})
157−
158−-- | Part of \`name\`. Name of the resource requested. For example:
159−-- \"apps\/myapp\".
160−amlAppsId :: Lens' AppsModulesList Text
161−amlAppsId
162− = lens _amlAppsId (\ s a -> s{_amlAppsId = a})
163−
164−-- | Continuation token for fetching the next page of results.
165−amlPageToken :: Lens' AppsModulesList (Maybe Text)
166−amlPageToken
167− = lens _amlPageToken (\ s a -> s{_amlPageToken = a})
168−
169−-- | Maximum results to return per page.
170−amlPageSize :: Lens' AppsModulesList (Maybe Int32)
171−amlPageSize
172− = lens _amlPageSize (\ s a -> s{_amlPageSize = a}) .
173− mapping _Coerce
174−
175−-- | JSONP
176−amlCallback :: Lens' AppsModulesList (Maybe Text)
177−amlCallback
178− = lens _amlCallback (\ s a -> s{_amlCallback = a})
179−
180−instance GoogleRequest AppsModulesList where
181− type Rs AppsModulesList = ListModulesResponse
182− type Scopes AppsModulesList =
183− '["https://www.googleapis.com/auth/cloud-platform"]
184− requestClient AppsModulesList{..}
185− = go _amlAppsId _amlXgafv _amlUploadProtocol
186− (Just _amlPp)
187− _amlAccessToken
188− _amlUploadType
189− _amlBearerToken
190− _amlPageToken
191− _amlPageSize
192− _amlCallback
193− (Just AltJSON)
194− appEngineService
195− where go
196− = buildClient
197− (Proxy :: Proxy AppsModulesListResource)
198− mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Patch.hsdeleted−224
@@ -1,224 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AppEngine.Apps.Modules.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates the configuration of the specified module.
24−--
25−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.modules.patch@.
26−module Network.Google.Resource.AppEngine.Apps.Modules.Patch
27− (
28− -- * REST Resource
29− AppsModulesPatchResource
30−
31− -- * Creating a Request
32− , appsModulesPatch
33− , AppsModulesPatch
34−
35− -- * Request Lenses
36− , ampXgafv
37− , ampUploadProtocol
38− , ampPp
39− , ampAccessToken
40− , ampUploadType
41− , ampPayload
42− , ampModulesId
43− , ampMigrateTraffic
44− , ampMask
45− , ampBearerToken
46− , ampAppsId
47− , ampCallback
48− ) where
49−
50−import Network.Google.AppEngine.Types
51−import Network.Google.Prelude
52−
53−-- | A resource alias for @appengine.apps.modules.patch@ method which the
54−-- 'AppsModulesPatch' request conforms to.
55−type AppsModulesPatchResource =
56− "v1beta4" :>
57− "apps" :>
58− Capture "appsId" Text :>
59− "modules" :>
60− Capture "modulesId" Text :>
61− QueryParam "$.xgafv" Text :>
62− QueryParam "upload_protocol" Text :>
63− QueryParam "pp" Bool :>
64− QueryParam "access_token" Text :>
65− QueryParam "uploadType" Text :>
66− QueryParam "migrateTraffic" Bool :>
67− QueryParam "mask" Text :>
68− QueryParam "bearer_token" Text :>
69− QueryParam "callback" Text :>
70− QueryParam "alt" AltJSON :>
71− ReqBody '[JSON] Module :>
72− Patch '[JSON] Operation
73−
74−-- | Updates the configuration of the specified module.
75−--
76−-- /See:/ 'appsModulesPatch' smart constructor.
77−data AppsModulesPatch = AppsModulesPatch
78− { _ampXgafv :: !(Maybe Text)
79− , _ampUploadProtocol :: !(Maybe Text)
80− , _ampPp :: !Bool
81− , _ampAccessToken :: !(Maybe Text)
82− , _ampUploadType :: !(Maybe Text)
83− , _ampPayload :: !Module
84− , _ampModulesId :: !Text
85− , _ampMigrateTraffic :: !(Maybe Bool)
86− , _ampMask :: !(Maybe Text)
87− , _ampBearerToken :: !(Maybe Text)
88− , _ampAppsId :: !Text
89− , _ampCallback :: !(Maybe Text)
90− } deriving (Eq,Show,Data,Typeable,Generic)
91−
92−-- | Creates a value of 'AppsModulesPatch' with the minimum fields required to make a request.
93−--
94−-- Use one of the following lenses to modify other fields as desired:
95−--
96−-- * 'ampXgafv'
97−--
98−-- * 'ampUploadProtocol'
99−--
100−-- * 'ampPp'
101−--
102−-- * 'ampAccessToken'
103−--
104−-- * 'ampUploadType'
105−--
106−-- * 'ampPayload'
107−--
108−-- * 'ampModulesId'
109−--
110−-- * 'ampMigrateTraffic'
111−--
112−-- * 'ampMask'
113−--
114−-- * 'ampBearerToken'
115−--
116−-- * 'ampAppsId'
117−--
118−-- * 'ampCallback'
119−appsModulesPatch
120− :: Module -- ^ 'ampPayload'
121− -> Text -- ^ 'ampModulesId'
122− -> Text -- ^ 'ampAppsId'
123− -> AppsModulesPatch
124−appsModulesPatch pAmpPayload_ pAmpModulesId_ pAmpAppsId_ =
125− AppsModulesPatch
126− { _ampXgafv = Nothing
127− , _ampUploadProtocol = Nothing
128− , _ampPp = True
129− , _ampAccessToken = Nothing
130− , _ampUploadType = Nothing
131− , _ampPayload = pAmpPayload_
132− , _ampModulesId = pAmpModulesId_
133− , _ampMigrateTraffic = Nothing
134− , _ampMask = Nothing
135− , _ampBearerToken = Nothing
136− , _ampAppsId = pAmpAppsId_
137− , _ampCallback = Nothing
138− }
139−
140−-- | V1 error format.
141−ampXgafv :: Lens' AppsModulesPatch (Maybe Text)
142−ampXgafv = lens _ampXgafv (\ s a -> s{_ampXgafv = a})
143−
144−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
145−ampUploadProtocol :: Lens' AppsModulesPatch (Maybe Text)
146−ampUploadProtocol
147− = lens _ampUploadProtocol
148− (\ s a -> s{_ampUploadProtocol = a})
149−
150−-- | Pretty-print response.
151−ampPp :: Lens' AppsModulesPatch Bool
152−ampPp = lens _ampPp (\ s a -> s{_ampPp = a})
153−
154−-- | OAuth access token.
155−ampAccessToken :: Lens' AppsModulesPatch (Maybe Text)
156−ampAccessToken
157− = lens _ampAccessToken
158− (\ s a -> s{_ampAccessToken = a})
159−
160−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
161−ampUploadType :: Lens' AppsModulesPatch (Maybe Text)
162−ampUploadType
163− = lens _ampUploadType
164− (\ s a -> s{_ampUploadType = a})
165−
166−-- | Multipart request metadata.
167−ampPayload :: Lens' AppsModulesPatch Module
168−ampPayload
169− = lens _ampPayload (\ s a -> s{_ampPayload = a})
170−
171−-- | Part of \`name\`. See documentation of \`appsId\`.
172−ampModulesId :: Lens' AppsModulesPatch Text
173−ampModulesId
174− = lens _ampModulesId (\ s a -> s{_ampModulesId = a})
175−
176−-- | Whether to use Traffic Migration to shift traffic gradually. Traffic can
177−-- only be migrated from a single version to another single version.
178−ampMigrateTraffic :: Lens' AppsModulesPatch (Maybe Bool)
179−ampMigrateTraffic
180− = lens _ampMigrateTraffic
181− (\ s a -> s{_ampMigrateTraffic = a})
182−
183−-- | Standard field mask for the set of fields to be updated.
184−ampMask :: Lens' AppsModulesPatch (Maybe Text)
185−ampMask = lens _ampMask (\ s a -> s{_ampMask = a})
186−
187−-- | OAuth bearer token.
188−ampBearerToken :: Lens' AppsModulesPatch (Maybe Text)
189−ampBearerToken
190− = lens _ampBearerToken
191− (\ s a -> s{_ampBearerToken = a})
192−
193−-- | Part of \`name\`. Name of the resource to update. For example:
194−-- \"apps\/myapp\/modules\/default\".
195−ampAppsId :: Lens' AppsModulesPatch Text
196−ampAppsId
197− = lens _ampAppsId (\ s a -> s{_ampAppsId = a})
198−
199−-- | JSONP
200−ampCallback :: Lens' AppsModulesPatch (Maybe Text)
201−ampCallback
202− = lens _ampCallback (\ s a -> s{_ampCallback = a})
203−
204−instance GoogleRequest AppsModulesPatch where
205− type Rs AppsModulesPatch = Operation
206− type Scopes AppsModulesPatch =
207− '["https://www.googleapis.com/auth/cloud-platform"]
208− requestClient AppsModulesPatch{..}
209− = go _ampAppsId _ampModulesId _ampXgafv
210− _ampUploadProtocol
211− (Just _ampPp)
212− _ampAccessToken
213− _ampUploadType
214− _ampMigrateTraffic
215− _ampMask
216− _ampBearerToken
217− _ampCallback
218− (Just AltJSON)
219− _ampPayload
220− appEngineService
221− where go
222− = buildClient
223− (Proxy :: Proxy AppsModulesPatchResource)
224− mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Versions/Create.hsdeleted−203
@@ -1,203 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AppEngine.Apps.Modules.Versions.Create
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Deploys new code and resource files to a version.
24−--
25−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.modules.versions.create@.
26−module Network.Google.Resource.AppEngine.Apps.Modules.Versions.Create
27− (
28− -- * REST Resource
29− AppsModulesVersionsCreateResource
30−
31− -- * Creating a Request
32− , appsModulesVersionsCreate
33− , AppsModulesVersionsCreate
34−
35− -- * Request Lenses
36− , amvcXgafv
37− , amvcUploadProtocol
38− , amvcPp
39− , amvcAccessToken
40− , amvcUploadType
41− , amvcPayload
42− , amvcModulesId
43− , amvcBearerToken
44− , amvcAppsId
45− , amvcCallback
46− ) where
47−
48−import Network.Google.AppEngine.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @appengine.apps.modules.versions.create@ method which the
52−-- 'AppsModulesVersionsCreate' request conforms to.
53−type AppsModulesVersionsCreateResource =
54− "v1beta4" :>
55− "apps" :>
56− Capture "appsId" Text :>
57− "modules" :>
58− Capture "modulesId" Text :>
59− "versions" :>
60− QueryParam "$.xgafv" Text :>
61− QueryParam "upload_protocol" Text :>
62− QueryParam "pp" Bool :>
63− QueryParam "access_token" Text :>
64− QueryParam "uploadType" Text :>
65− QueryParam "bearer_token" Text :>
66− QueryParam "callback" Text :>
67− QueryParam "alt" AltJSON :>
68− ReqBody '[JSON] Version :>
69− Post '[JSON] Operation
70−
71−-- | Deploys new code and resource files to a version.
72−--
73−-- /See:/ 'appsModulesVersionsCreate' smart constructor.
74−data AppsModulesVersionsCreate = AppsModulesVersionsCreate
75− { _amvcXgafv :: !(Maybe Text)
76− , _amvcUploadProtocol :: !(Maybe Text)
77− , _amvcPp :: !Bool
78− , _amvcAccessToken :: !(Maybe Text)
79− , _amvcUploadType :: !(Maybe Text)
80− , _amvcPayload :: !Version
81− , _amvcModulesId :: !Text
82− , _amvcBearerToken :: !(Maybe Text)
83− , _amvcAppsId :: !Text
84− , _amvcCallback :: !(Maybe Text)
85− } deriving (Eq,Show,Data,Typeable,Generic)
86−
87−-- | Creates a value of 'AppsModulesVersionsCreate' with the minimum fields required to make a request.
88−--
89−-- Use one of the following lenses to modify other fields as desired:
90−--
91−-- * 'amvcXgafv'
92−--
93−-- * 'amvcUploadProtocol'
94−--
95−-- * 'amvcPp'
96−--
97−-- * 'amvcAccessToken'
98−--
99−-- * 'amvcUploadType'
100−--
101−-- * 'amvcPayload'
102−--
103−-- * 'amvcModulesId'
104−--
105−-- * 'amvcBearerToken'
106−--
107−-- * 'amvcAppsId'
108−--
109−-- * 'amvcCallback'
110−appsModulesVersionsCreate
111− :: Version -- ^ 'amvcPayload'
112− -> Text -- ^ 'amvcModulesId'
113− -> Text -- ^ 'amvcAppsId'
114− -> AppsModulesVersionsCreate
115−appsModulesVersionsCreate pAmvcPayload_ pAmvcModulesId_ pAmvcAppsId_ =
116− AppsModulesVersionsCreate
117− { _amvcXgafv = Nothing
118− , _amvcUploadProtocol = Nothing
119− , _amvcPp = True
120− , _amvcAccessToken = Nothing
121− , _amvcUploadType = Nothing
122− , _amvcPayload = pAmvcPayload_
123− , _amvcModulesId = pAmvcModulesId_
124− , _amvcBearerToken = Nothing
125− , _amvcAppsId = pAmvcAppsId_
126− , _amvcCallback = Nothing
127− }
128−
129−-- | V1 error format.
130−amvcXgafv :: Lens' AppsModulesVersionsCreate (Maybe Text)
131−amvcXgafv
132− = lens _amvcXgafv (\ s a -> s{_amvcXgafv = a})
133−
134−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
135−amvcUploadProtocol :: Lens' AppsModulesVersionsCreate (Maybe Text)
136−amvcUploadProtocol
137− = lens _amvcUploadProtocol
138− (\ s a -> s{_amvcUploadProtocol = a})
139−
140−-- | Pretty-print response.
141−amvcPp :: Lens' AppsModulesVersionsCreate Bool
142−amvcPp = lens _amvcPp (\ s a -> s{_amvcPp = a})
143−
144−-- | OAuth access token.
145−amvcAccessToken :: Lens' AppsModulesVersionsCreate (Maybe Text)
146−amvcAccessToken
147− = lens _amvcAccessToken
148− (\ s a -> s{_amvcAccessToken = a})
149−
150−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
151−amvcUploadType :: Lens' AppsModulesVersionsCreate (Maybe Text)
152−amvcUploadType
153− = lens _amvcUploadType
154− (\ s a -> s{_amvcUploadType = a})
155−
156−-- | Multipart request metadata.
157−amvcPayload :: Lens' AppsModulesVersionsCreate Version
158−amvcPayload
159− = lens _amvcPayload (\ s a -> s{_amvcPayload = a})
160−
161−-- | Part of \`name\`. See documentation of \`appsId\`.
162−amvcModulesId :: Lens' AppsModulesVersionsCreate Text
163−amvcModulesId
164− = lens _amvcModulesId
165− (\ s a -> s{_amvcModulesId = a})
166−
167−-- | OAuth bearer token.
168−amvcBearerToken :: Lens' AppsModulesVersionsCreate (Maybe Text)
169−amvcBearerToken
170− = lens _amvcBearerToken
171− (\ s a -> s{_amvcBearerToken = a})
172−
173−-- | Part of \`name\`. Name of the resource to update. For example:
174−-- \"apps\/myapp\/modules\/default\".
175−amvcAppsId :: Lens' AppsModulesVersionsCreate Text
176−amvcAppsId
177− = lens _amvcAppsId (\ s a -> s{_amvcAppsId = a})
178−
179−-- | JSONP
180−amvcCallback :: Lens' AppsModulesVersionsCreate (Maybe Text)
181−amvcCallback
182− = lens _amvcCallback (\ s a -> s{_amvcCallback = a})
183−
184−instance GoogleRequest AppsModulesVersionsCreate
185− where
186− type Rs AppsModulesVersionsCreate = Operation
187− type Scopes AppsModulesVersionsCreate =
188− '["https://www.googleapis.com/auth/cloud-platform"]
189− requestClient AppsModulesVersionsCreate{..}
190− = go _amvcAppsId _amvcModulesId _amvcXgafv
191− _amvcUploadProtocol
192− (Just _amvcPp)
193− _amvcAccessToken
194− _amvcUploadType
195− _amvcBearerToken
196− _amvcCallback
197− (Just AltJSON)
198− _amvcPayload
199− appEngineService
200− where go
201− = buildClient
202− (Proxy :: Proxy AppsModulesVersionsCreateResource)
203− mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Versions/Delete.hsdeleted−204
@@ -1,204 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AppEngine.Apps.Modules.Versions.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Deletes an existing version.
24−--
25−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.modules.versions.delete@.
26−module Network.Google.Resource.AppEngine.Apps.Modules.Versions.Delete
27− (
28− -- * REST Resource
29− AppsModulesVersionsDeleteResource
30−
31− -- * Creating a Request
32− , appsModulesVersionsDelete
33− , AppsModulesVersionsDelete
34−
35− -- * Request Lenses
36− , amvdXgafv
37− , amvdUploadProtocol
38− , amvdPp
39− , amvdAccessToken
40− , amvdUploadType
41− , amvdVersionsId
42− , amvdModulesId
43− , amvdBearerToken
44− , amvdAppsId
45− , amvdCallback
46− ) where
47−
48−import Network.Google.AppEngine.Types
49−import Network.Google.Prelude
50−
51−-- | A resource alias for @appengine.apps.modules.versions.delete@ method which the
52−-- 'AppsModulesVersionsDelete' request conforms to.
53−type AppsModulesVersionsDeleteResource =
54− "v1beta4" :>
55− "apps" :>
56− Capture "appsId" Text :>
57− "modules" :>
58− Capture "modulesId" Text :>
59− "versions" :>
60− Capture "versionsId" Text :>
61− QueryParam "$.xgafv" Text :>
62− QueryParam "upload_protocol" Text :>
63− QueryParam "pp" Bool :>
64− QueryParam "access_token" Text :>
65− QueryParam "uploadType" Text :>
66− QueryParam "bearer_token" Text :>
67− QueryParam "callback" Text :>
68− QueryParam "alt" AltJSON :>
69− Delete '[JSON] Operation
70−
71−-- | Deletes an existing version.
72−--
73−-- /See:/ 'appsModulesVersionsDelete' smart constructor.
74−data AppsModulesVersionsDelete = AppsModulesVersionsDelete
75− { _amvdXgafv :: !(Maybe Text)
76− , _amvdUploadProtocol :: !(Maybe Text)
77− , _amvdPp :: !Bool
78− , _amvdAccessToken :: !(Maybe Text)
79− , _amvdUploadType :: !(Maybe Text)
80− , _amvdVersionsId :: !Text
81− , _amvdModulesId :: !Text
82− , _amvdBearerToken :: !(Maybe Text)
83− , _amvdAppsId :: !Text
84− , _amvdCallback :: !(Maybe Text)
85− } deriving (Eq,Show,Data,Typeable,Generic)
86−
87−-- | Creates a value of 'AppsModulesVersionsDelete' with the minimum fields required to make a request.
88−--
89−-- Use one of the following lenses to modify other fields as desired:
90−--
91−-- * 'amvdXgafv'
92−--
93−-- * 'amvdUploadProtocol'
94−--
95−-- * 'amvdPp'
96−--
97−-- * 'amvdAccessToken'
98−--
99−-- * 'amvdUploadType'
100−--
101−-- * 'amvdVersionsId'
102−--
103−-- * 'amvdModulesId'
104−--
105−-- * 'amvdBearerToken'
106−--
107−-- * 'amvdAppsId'
108−--
109−-- * 'amvdCallback'
110−appsModulesVersionsDelete
111− :: Text -- ^ 'amvdVersionsId'
112− -> Text -- ^ 'amvdModulesId'
113− -> Text -- ^ 'amvdAppsId'
114− -> AppsModulesVersionsDelete
115−appsModulesVersionsDelete pAmvdVersionsId_ pAmvdModulesId_ pAmvdAppsId_ =
116− AppsModulesVersionsDelete
117− { _amvdXgafv = Nothing
118− , _amvdUploadProtocol = Nothing
119− , _amvdPp = True
120− , _amvdAccessToken = Nothing
121− , _amvdUploadType = Nothing
122− , _amvdVersionsId = pAmvdVersionsId_
123− , _amvdModulesId = pAmvdModulesId_
124− , _amvdBearerToken = Nothing
125− , _amvdAppsId = pAmvdAppsId_
126− , _amvdCallback = Nothing
127− }
128−
129−-- | V1 error format.
130−amvdXgafv :: Lens' AppsModulesVersionsDelete (Maybe Text)
131−amvdXgafv
132− = lens _amvdXgafv (\ s a -> s{_amvdXgafv = a})
133−
134−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
135−amvdUploadProtocol :: Lens' AppsModulesVersionsDelete (Maybe Text)
136−amvdUploadProtocol
137− = lens _amvdUploadProtocol
138− (\ s a -> s{_amvdUploadProtocol = a})
139−
140−-- | Pretty-print response.
141−amvdPp :: Lens' AppsModulesVersionsDelete Bool
142−amvdPp = lens _amvdPp (\ s a -> s{_amvdPp = a})
143−
144−-- | OAuth access token.
145−amvdAccessToken :: Lens' AppsModulesVersionsDelete (Maybe Text)
146−amvdAccessToken
147− = lens _amvdAccessToken
148− (\ s a -> s{_amvdAccessToken = a})
149−
150−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
151−amvdUploadType :: Lens' AppsModulesVersionsDelete (Maybe Text)
152−amvdUploadType
153− = lens _amvdUploadType
154− (\ s a -> s{_amvdUploadType = a})
155−
156−-- | Part of \`name\`. See documentation of \`appsId\`.
157−amvdVersionsId :: Lens' AppsModulesVersionsDelete Text
158−amvdVersionsId
159− = lens _amvdVersionsId
160− (\ s a -> s{_amvdVersionsId = a})
161−
162−-- | Part of \`name\`. See documentation of \`appsId\`.
163−amvdModulesId :: Lens' AppsModulesVersionsDelete Text
164−amvdModulesId
165− = lens _amvdModulesId
166− (\ s a -> s{_amvdModulesId = a})
167−
168−-- | OAuth bearer token.
169−amvdBearerToken :: Lens' AppsModulesVersionsDelete (Maybe Text)
170−amvdBearerToken
171− = lens _amvdBearerToken
172− (\ s a -> s{_amvdBearerToken = a})
173−
174−-- | Part of \`name\`. Name of the resource requested. For example:
175−-- \"apps\/myapp\/modules\/default\/versions\/v1\".
176−amvdAppsId :: Lens' AppsModulesVersionsDelete Text
177−amvdAppsId
178− = lens _amvdAppsId (\ s a -> s{_amvdAppsId = a})
179−
180−-- | JSONP
181−amvdCallback :: Lens' AppsModulesVersionsDelete (Maybe Text)
182−amvdCallback
183− = lens _amvdCallback (\ s a -> s{_amvdCallback = a})
184−
185−instance GoogleRequest AppsModulesVersionsDelete
186− where
187− type Rs AppsModulesVersionsDelete = Operation
188− type Scopes AppsModulesVersionsDelete =
189− '["https://www.googleapis.com/auth/cloud-platform"]
190− requestClient AppsModulesVersionsDelete{..}
191− = go _amvdAppsId _amvdModulesId _amvdVersionsId
192− _amvdXgafv
193− _amvdUploadProtocol
194− (Just _amvdPp)
195− _amvdAccessToken
196− _amvdUploadType
197− _amvdBearerToken
198− _amvdCallback
199− (Just AltJSON)
200− appEngineService
201− where go
202− = buildClient
203− (Proxy :: Proxy AppsModulesVersionsDeleteResource)
204− mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Versions/Get.hsdeleted−214
@@ -1,214 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AppEngine.Apps.Modules.Versions.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets application deployment information.
24−--
25−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.modules.versions.get@.
26−module Network.Google.Resource.AppEngine.Apps.Modules.Versions.Get
27− (
28− -- * REST Resource
29− AppsModulesVersionsGetResource
30−
31− -- * Creating a Request
32− , appsModulesVersionsGet
33− , AppsModulesVersionsGet
34−
35− -- * Request Lenses
36− , amvgXgafv
37− , amvgUploadProtocol
38− , amvgPp
39− , amvgAccessToken
40− , amvgUploadType
41− , amvgVersionsId
42− , amvgModulesId
43− , amvgBearerToken
44− , amvgAppsId
45− , amvgView
46− , amvgCallback
47− ) where
48−
49−import Network.Google.AppEngine.Types
50−import Network.Google.Prelude
51−
52−-- | A resource alias for @appengine.apps.modules.versions.get@ method which the
53−-- 'AppsModulesVersionsGet' request conforms to.
54−type AppsModulesVersionsGetResource =
55− "v1beta4" :>
56− "apps" :>
57− Capture "appsId" Text :>
58− "modules" :>
59− Capture "modulesId" Text :>
60− "versions" :>
61− Capture "versionsId" Text :>
62− QueryParam "$.xgafv" Text :>
63− QueryParam "upload_protocol" Text :>
64− QueryParam "pp" Bool :>
65− QueryParam "access_token" Text :>
66− QueryParam "uploadType" Text :>
67− QueryParam "bearer_token" Text :>
68− QueryParam "view" Text :>
69− QueryParam "callback" Text :>
70− QueryParam "alt" AltJSON :>
71− Get '[JSON] Version
72−
73−-- | Gets application deployment information.
74−--
75−-- /See:/ 'appsModulesVersionsGet' smart constructor.
76−data AppsModulesVersionsGet = AppsModulesVersionsGet
77− { _amvgXgafv :: !(Maybe Text)
78− , _amvgUploadProtocol :: !(Maybe Text)
79− , _amvgPp :: !Bool
80− , _amvgAccessToken :: !(Maybe Text)
81− , _amvgUploadType :: !(Maybe Text)
82− , _amvgVersionsId :: !Text
83− , _amvgModulesId :: !Text
84− , _amvgBearerToken :: !(Maybe Text)
85− , _amvgAppsId :: !Text
86− , _amvgView :: !(Maybe Text)
87− , _amvgCallback :: !(Maybe Text)
88− } deriving (Eq,Show,Data,Typeable,Generic)
89−
90−-- | Creates a value of 'AppsModulesVersionsGet' with the minimum fields required to make a request.
91−--
92−-- Use one of the following lenses to modify other fields as desired:
93−--
94−-- * 'amvgXgafv'
95−--
96−-- * 'amvgUploadProtocol'
97−--
98−-- * 'amvgPp'
99−--
100−-- * 'amvgAccessToken'
101−--
102−-- * 'amvgUploadType'
103−--
104−-- * 'amvgVersionsId'
105−--
106−-- * 'amvgModulesId'
107−--
108−-- * 'amvgBearerToken'
109−--
110−-- * 'amvgAppsId'
111−--
112−-- * 'amvgView'
113−--
114−-- * 'amvgCallback'
115−appsModulesVersionsGet
116− :: Text -- ^ 'amvgVersionsId'
117− -> Text -- ^ 'amvgModulesId'
118− -> Text -- ^ 'amvgAppsId'
119− -> AppsModulesVersionsGet
120−appsModulesVersionsGet pAmvgVersionsId_ pAmvgModulesId_ pAmvgAppsId_ =
121− AppsModulesVersionsGet
122− { _amvgXgafv = Nothing
123− , _amvgUploadProtocol = Nothing
124− , _amvgPp = True
125− , _amvgAccessToken = Nothing
126− , _amvgUploadType = Nothing
127− , _amvgVersionsId = pAmvgVersionsId_
128− , _amvgModulesId = pAmvgModulesId_
129− , _amvgBearerToken = Nothing
130− , _amvgAppsId = pAmvgAppsId_
131− , _amvgView = Nothing
132− , _amvgCallback = Nothing
133− }
134−
135−-- | V1 error format.
136−amvgXgafv :: Lens' AppsModulesVersionsGet (Maybe Text)
137−amvgXgafv
138− = lens _amvgXgafv (\ s a -> s{_amvgXgafv = a})
139−
140−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
141−amvgUploadProtocol :: Lens' AppsModulesVersionsGet (Maybe Text)
142−amvgUploadProtocol
143− = lens _amvgUploadProtocol
144− (\ s a -> s{_amvgUploadProtocol = a})
145−
146−-- | Pretty-print response.
147−amvgPp :: Lens' AppsModulesVersionsGet Bool
148−amvgPp = lens _amvgPp (\ s a -> s{_amvgPp = a})
149−
150−-- | OAuth access token.
151−amvgAccessToken :: Lens' AppsModulesVersionsGet (Maybe Text)
152−amvgAccessToken
153− = lens _amvgAccessToken
154− (\ s a -> s{_amvgAccessToken = a})
155−
156−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
157−amvgUploadType :: Lens' AppsModulesVersionsGet (Maybe Text)
158−amvgUploadType
159− = lens _amvgUploadType
160− (\ s a -> s{_amvgUploadType = a})
161−
162−-- | Part of \`name\`. See documentation of \`appsId\`.
163−amvgVersionsId :: Lens' AppsModulesVersionsGet Text
164−amvgVersionsId
165− = lens _amvgVersionsId
166− (\ s a -> s{_amvgVersionsId = a})
167−
168−-- | Part of \`name\`. See documentation of \`appsId\`.
169−amvgModulesId :: Lens' AppsModulesVersionsGet Text
170−amvgModulesId
171− = lens _amvgModulesId
172− (\ s a -> s{_amvgModulesId = a})
173−
174−-- | OAuth bearer token.
175−amvgBearerToken :: Lens' AppsModulesVersionsGet (Maybe Text)
176−amvgBearerToken
177− = lens _amvgBearerToken
178− (\ s a -> s{_amvgBearerToken = a})
179−
180−-- | Part of \`name\`. Name of the resource requested. For example:
181−-- \"apps\/myapp\/modules\/default\/versions\/v1\".
182−amvgAppsId :: Lens' AppsModulesVersionsGet Text
183−amvgAppsId
184− = lens _amvgAppsId (\ s a -> s{_amvgAppsId = a})
185−
186−-- | Controls the set of fields returned in the \`Get\` response.
187−amvgView :: Lens' AppsModulesVersionsGet (Maybe Text)
188−amvgView = lens _amvgView (\ s a -> s{_amvgView = a})
189−
190−-- | JSONP
191−amvgCallback :: Lens' AppsModulesVersionsGet (Maybe Text)
192−amvgCallback
193− = lens _amvgCallback (\ s a -> s{_amvgCallback = a})
194−
195−instance GoogleRequest AppsModulesVersionsGet where
196− type Rs AppsModulesVersionsGet = Version
197− type Scopes AppsModulesVersionsGet =
198− '["https://www.googleapis.com/auth/cloud-platform"]
199− requestClient AppsModulesVersionsGet{..}
200− = go _amvgAppsId _amvgModulesId _amvgVersionsId
201− _amvgXgafv
202− _amvgUploadProtocol
203− (Just _amvgPp)
204− _amvgAccessToken
205− _amvgUploadType
206− _amvgBearerToken
207− _amvgView
208− _amvgCallback
209− (Just AltJSON)
210− appEngineService
211− where go
212− = buildClient
213− (Proxy :: Proxy AppsModulesVersionsGetResource)
214− mempty
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Versions/List.hsdeleted−227
@@ -1,227 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AppEngine.Apps.Modules.Versions.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists the versions of a module.
24−--
25−-- /See:/ <https://developers.google.com/appengine/ Google App Engine Admin API Reference> for @appengine.apps.modules.versions.list@.
26−module Network.Google.Resource.AppEngine.Apps.Modules.Versions.List
27− (
28− -- * REST Resource
29− AppsModulesVersionsListResource
30−
31− -- * Creating a Request
32− , appsModulesVersionsList
33− , AppsModulesVersionsList
34−
35− -- * Request Lenses
36− , amvlXgafv
37− , amvlUploadProtocol
38− , amvlPp
39− , amvlAccessToken
40− , amvlUploadType
41− , amvlModulesId
42− , amvlBearerToken
43− , amvlAppsId
44− , amvlView
45− , amvlPageToken
46− , amvlPageSize
47− , amvlCallback
48− ) where
49−
50−import Network.Google.AppEngine.Types
51−import Network.Google.Prelude
52−
53−-- | A resource alias for @appengine.apps.modules.versions.list@ method which the
54−-- 'AppsModulesVersionsList' request conforms to.
55−type AppsModulesVersionsListResource =
56− "v1beta4" :>
57− "apps" :>
58− Capture "appsId" Text :>
59− "modules" :>
60− Capture "modulesId" Text :>
61− "versions" :>
62− QueryParam "$.xgafv" Text :>
63− QueryParam "upload_protocol" Text :>
64− QueryParam "pp" Bool :>
65− QueryParam "access_token" Text :>
66− QueryParam "uploadType" Text :>
67− QueryParam "bearer_token" Text :>
68− QueryParam "view" Text :>
69− QueryParam "pageToken" Text :>
70− QueryParam "pageSize" (Textual Int32) :>
71− QueryParam "callback" Text :>
72− QueryParam "alt" AltJSON :>
73− Get '[JSON] ListVersionsResponse
74−
75−-- | Lists the versions of a module.
76−--
77−-- /See:/ 'appsModulesVersionsList' smart constructor.
78−data AppsModulesVersionsList = AppsModulesVersionsList
79− { _amvlXgafv :: !(Maybe Text)
80− , _amvlUploadProtocol :: !(Maybe Text)
81− , _amvlPp :: !Bool
82− , _amvlAccessToken :: !(Maybe Text)
83− , _amvlUploadType :: !(Maybe Text)
84− , _amvlModulesId :: !Text
85− , _amvlBearerToken :: !(Maybe Text)
86− , _amvlAppsId :: !Text
87− , _amvlView :: !(Maybe Text)
88− , _amvlPageToken :: !(Maybe Text)
89− , _amvlPageSize :: !(Maybe (Textual Int32))
90− , _amvlCallback :: !(Maybe Text)
91− } deriving (Eq,Show,Data,Typeable,Generic)
92−
93−-- | Creates a value of 'AppsModulesVersionsList' with the minimum fields required to make a request.
94−--
95−-- Use one of the following lenses to modify other fields as desired:
96−--
97−-- * 'amvlXgafv'
98−--
99−-- * 'amvlUploadProtocol'
100−--
101−-- * 'amvlPp'
102−--
103−-- * 'amvlAccessToken'
104−--
105−-- * 'amvlUploadType'
106−--
107−-- * 'amvlModulesId'
108−--
109−-- * 'amvlBearerToken'
110−--
111−-- * 'amvlAppsId'
112−--
113−-- * 'amvlView'
114−--
115−-- * 'amvlPageToken'
116−--
117−-- * 'amvlPageSize'
118−--
119−-- * 'amvlCallback'
120−appsModulesVersionsList
121− :: Text -- ^ 'amvlModulesId'
122− -> Text -- ^ 'amvlAppsId'
123− -> AppsModulesVersionsList
124−appsModulesVersionsList pAmvlModulesId_ pAmvlAppsId_ =
125− AppsModulesVersionsList
126− { _amvlXgafv = Nothing
127− , _amvlUploadProtocol = Nothing
128− , _amvlPp = True
129− , _amvlAccessToken = Nothing
130− , _amvlUploadType = Nothing
131− , _amvlModulesId = pAmvlModulesId_
132− , _amvlBearerToken = Nothing
133− , _amvlAppsId = pAmvlAppsId_
134− , _amvlView = Nothing
135− , _amvlPageToken = Nothing
136− , _amvlPageSize = Nothing
137− , _amvlCallback = Nothing
138− }
139−
140−-- | V1 error format.
141−amvlXgafv :: Lens' AppsModulesVersionsList (Maybe Text)
142−amvlXgafv
143− = lens _amvlXgafv (\ s a -> s{_amvlXgafv = a})
144−
145−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
146−amvlUploadProtocol :: Lens' AppsModulesVersionsList (Maybe Text)
147−amvlUploadProtocol
148− = lens _amvlUploadProtocol
149− (\ s a -> s{_amvlUploadProtocol = a})
150−
151−-- | Pretty-print response.
152−amvlPp :: Lens' AppsModulesVersionsList Bool
153−amvlPp = lens _amvlPp (\ s a -> s{_amvlPp = a})
154−
155−-- | OAuth access token.
156−amvlAccessToken :: Lens' AppsModulesVersionsList (Maybe Text)
157−amvlAccessToken
158− = lens _amvlAccessToken
159− (\ s a -> s{_amvlAccessToken = a})
160−
161−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
162−amvlUploadType :: Lens' AppsModulesVersionsList (Maybe Text)
163−amvlUploadType
164− = lens _amvlUploadType
165− (\ s a -> s{_amvlUploadType = a})
166−
167−-- | Part of \`name\`. See documentation of \`appsId\`.
168−amvlModulesId :: Lens' AppsModulesVersionsList Text
169−amvlModulesId
170− = lens _amvlModulesId
171− (\ s a -> s{_amvlModulesId = a})
172−
173−-- | OAuth bearer token.
174−amvlBearerToken :: Lens' AppsModulesVersionsList (Maybe Text)
175−amvlBearerToken
176− = lens _amvlBearerToken
177− (\ s a -> s{_amvlBearerToken = a})
178−
179−-- | Part of \`name\`. Name of the resource requested. For example:
180−-- \"apps\/myapp\/modules\/default\".
181−amvlAppsId :: Lens' AppsModulesVersionsList Text
182−amvlAppsId
183− = lens _amvlAppsId (\ s a -> s{_amvlAppsId = a})
184−
185−-- | Controls the set of fields returned in the \`List\` response.
186−amvlView :: Lens' AppsModulesVersionsList (Maybe Text)
187−amvlView = lens _amvlView (\ s a -> s{_amvlView = a})
188−
189−-- | Continuation token for fetching the next page of results.
190−amvlPageToken :: Lens' AppsModulesVersionsList (Maybe Text)
191−amvlPageToken
192− = lens _amvlPageToken
193− (\ s a -> s{_amvlPageToken = a})
194−
195−-- | Maximum results to return per page.
196−amvlPageSize :: Lens' AppsModulesVersionsList (Maybe Int32)
197−amvlPageSize
198− = lens _amvlPageSize (\ s a -> s{_amvlPageSize = a})
199− . mapping _Coerce
200−
201−-- | JSONP
202−amvlCallback :: Lens' AppsModulesVersionsList (Maybe Text)
203−amvlCallback
204− = lens _amvlCallback (\ s a -> s{_amvlCallback = a})
205−
206−instance GoogleRequest AppsModulesVersionsList where
207− type Rs AppsModulesVersionsList =
208− ListVersionsResponse
209− type Scopes AppsModulesVersionsList =
210− '["https://www.googleapis.com/auth/cloud-platform"]
211− requestClient AppsModulesVersionsList{..}
212− = go _amvlAppsId _amvlModulesId _amvlXgafv
213− _amvlUploadProtocol
214− (Just _amvlPp)
215− _amvlAccessToken
216− _amvlUploadType
217− _amvlBearerToken
218− _amvlView
219− _amvlPageToken
220− _amvlPageSize
221− _amvlCallback
222− (Just AltJSON)
223− appEngineService
224− where go
225− = buildClient
226− (Proxy :: Proxy AppsModulesVersionsListResource)
227− mempty
gogol-apps-activity/gen/Network/Google/AppsActivity/Types/Sum.hs+5−5
@@ -42,7 +42,7 @@ data EventPrimaryEventType
42 -- ^ @untrash@
42 -- ^ @untrash@
43 | EPETUpload
43 | EPETUpload
44 -- ^ @upload@
44 -- ^ @upload@
45− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
45+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
46
46
47instance Hashable EventPrimaryEventType
47instance Hashable EventPrimaryEventType
48
48
@@ -92,7 +92,7 @@ data PermissionRole
92 -- ^ @reader@
92 -- ^ @reader@
93 | Writer
93 | Writer
94 -- ^ @writer@
94 -- ^ @writer@
95− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
95+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
96
96
97instance Hashable PermissionRole
97instance Hashable PermissionRole
98
98
@@ -127,7 +127,7 @@ data PermissionType
127 -- ^ @group@
127 -- ^ @group@
128 | PTUser
128 | PTUser
129 -- ^ @user@
129 -- ^ @user@
130− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
130+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
131
131
132instance Hashable PermissionType
132instance Hashable PermissionType
133
133
@@ -175,7 +175,7 @@ data EventAdditionalEventTypesItem
175 -- ^ @untrash@
175 -- ^ @untrash@
176 | EAETIUpload
176 | EAETIUpload
177 -- ^ @upload@
177 -- ^ @upload@
178− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
178+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
179
179
180instance Hashable EventAdditionalEventTypesItem
180instance Hashable EventAdditionalEventTypesItem
181
181
@@ -221,7 +221,7 @@ data ActivitiesListGroupingStrategy
221 -- ^ @driveUi@
221 -- ^ @driveUi@
222 | None
222 | None
223 -- ^ @none@
223 -- ^ @none@
224− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
224+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
225
225
226instance Hashable ActivitiesListGroupingStrategy
226instance Hashable ActivitiesListGroupingStrategy
227
227
gogol-apps-calendar/gen/Network/Google/AppsCalendar/Types/Sum.hs+4−4
@@ -28,7 +28,7 @@ data EventsListOrderBy
28 | Updated
28 | Updated
29 -- ^ @updated@
29 -- ^ @updated@
30 -- Order by last modification time (ascending).
30 -- Order by last modification time (ascending).
31− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
31+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
32
32
33instance Hashable EventsListOrderBy
33instance Hashable EventsListOrderBy
34
34
@@ -64,7 +64,7 @@ data CalendarListListMinAccessRole
64 | Writer
64 | Writer
65 -- ^ @writer@
65 -- ^ @writer@
66 -- The user can read and modify events.
66 -- The user can read and modify events.
67− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
67+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
68
68
69instance Hashable CalendarListListMinAccessRole
69instance Hashable CalendarListListMinAccessRole
70
70
@@ -99,7 +99,7 @@ data EventsWatchOrderBy
99 | EWOBUpdated
99 | EWOBUpdated
100 -- ^ @updated@
100 -- ^ @updated@
101 -- Order by last modification time (ascending).
101 -- Order by last modification time (ascending).
102− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
102+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
103
103
104instance Hashable EventsWatchOrderBy
104instance Hashable EventsWatchOrderBy
105
105
@@ -135,7 +135,7 @@ data CalendarListWatchMinAccessRole
135 | CLWMARWriter
135 | CLWMARWriter
136 -- ^ @writer@
136 -- ^ @writer@
137 -- The user can read and modify events.
137 -- The user can read and modify events.
138− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
138+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
139
139
140instance Hashable CalendarListWatchMinAccessRole
140instance Hashable CalendarListWatchMinAccessRole
141
141
gogol-apps-reseller/gen/Network/Google/AppsReseller/Types/Sum.hs+1−1
@@ -32,7 +32,7 @@ data SubscriptionsDeleteDeletionType
32 | TransferToDirect
32 | TransferToDirect
33 -- ^ @transfer_to_direct@
33 -- ^ @transfer_to_direct@
34 -- Transfers a subscription directly to Google
34 -- Transfers a subscription directly to Google
35− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
35+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
36
36
37instance Hashable SubscriptionsDeleteDeletionType
37instance Hashable SubscriptionsDeleteDeletionType
38
38
gogol-bigquery/gen/Network/Google/BigQuery/Types/Sum.hs+2−2
@@ -26,7 +26,7 @@ data JobsListProjection
26 | Minimal
26 | Minimal
27 -- ^ @minimal@
27 -- ^ @minimal@
28 -- Does not include the job configuration
28 -- Does not include the job configuration
29− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
29+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
30
30
31instance Hashable JobsListProjection
31instance Hashable JobsListProjection
32
32
@@ -58,7 +58,7 @@ data JobsListStateFilter
58 | Running
58 | Running
59 -- ^ @running@
59 -- ^ @running@
60 -- Running jobs
60 -- Running jobs
61− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
61+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
62
62
63instance Hashable JobsListStateFilter
63instance Hashable JobsListStateFilter
64
64
gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/Insert.hs+3−4
@@ -58,9 +58,8 @@ type JobsInsertResource =
58 Capture "projectId" Text :>
58 Capture "projectId" Text :>
59 "jobs" :>
59 "jobs" :>
60 QueryParam "alt" AltJSON :>
60 QueryParam "alt" AltJSON :>
61− QueryParam "uploadType" AltMedia :>
61+ QueryParam "uploadType" Multipart :>
62− MultipartRelated '[JSON] Job RequestBody :>
62+ MultipartRelated '[JSON] Job :> Post '[JSON] Job
63− Post '[JSON] Job
64
63
65-- | Starts a new asynchronous job. Requires the Can View project role.
64-- | Starts a new asynchronous job. Requires the Can View project role.
66--
65--
@@ -117,7 +116,7 @@ instance GoogleRequest (MediaUpload JobsInsert) where
117 type Scopes (MediaUpload JobsInsert) =
116 type Scopes (MediaUpload JobsInsert) =
118 Scopes JobsInsert
117 Scopes JobsInsert
119 requestClient (MediaUpload JobsInsert'{..} body)
118 requestClient (MediaUpload JobsInsert'{..} body)
120− = go _jiProjectId (Just AltJSON) (Just AltMedia)
119+ = go _jiProjectId (Just AltJSON) (Just Multipart)
121 _jiPayload
120 _jiPayload
122 body
121 body
123 bigQueryService
122 bigQueryService
gogol-blogger/gen/Network/Google/Blogger/Types/Sum.hs+22−22
@@ -26,7 +26,7 @@ data PostsListOrderBy
26 | Updated
26 | Updated
27 -- ^ @updated@
27 -- ^ @updated@
28 -- Order by the date the post was last updated
28 -- Order by the date the post was last updated
29− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
29+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
30
30
31instance Hashable PostsListOrderBy
31instance Hashable PostsListOrderBy
32
32
@@ -59,7 +59,7 @@ data PostsListView
59 | Reader
59 | Reader
60 -- ^ @READER@
60 -- ^ @READER@
61 -- Reader level detail
61 -- Reader level detail
62− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
62+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
63
63
64instance Hashable PostsListView
64instance Hashable PostsListView
65
65
@@ -92,7 +92,7 @@ data PageViewsGetRange
92 | PVGRAll
92 | PVGRAll
93 -- ^ @all@
93 -- ^ @all@
94 -- Total page view counts from all time.
94 -- Total page view counts from all time.
95− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
95+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
96
96
97instance Hashable PageViewsGetRange
97instance Hashable PageViewsGetRange
98
98
@@ -127,7 +127,7 @@ data CommentsListView
127 | CLVReader
127 | CLVReader
128 -- ^ @READER@
128 -- ^ @READER@
129 -- Reader level detail
129 -- Reader level detail
130− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
130+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
131
131
132instance Hashable CommentsListView
132instance Hashable CommentsListView
133
133
@@ -160,7 +160,7 @@ data PostUserInfosListStatus
160 | Scheduled
160 | Scheduled
161 -- ^ @scheduled@
161 -- ^ @scheduled@
162 -- Posts that are scheduled to publish in future.
162 -- Posts that are scheduled to publish in future.
163− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
163+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
164
164
165instance Hashable PostUserInfosListStatus
165instance Hashable PostUserInfosListStatus
166
166
@@ -195,7 +195,7 @@ data PostsGetView
195 | PGVReader
195 | PGVReader
196 -- ^ @READER@
196 -- ^ @READER@
197 -- Reader level detail
197 -- Reader level detail
198− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
198+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
199
199
200instance Hashable PostsGetView
200instance Hashable PostsGetView
201
201
@@ -226,7 +226,7 @@ data PostsSearchOrderBy
226 | PSOBUpdated
226 | PSOBUpdated
227 -- ^ @updated@
227 -- ^ @updated@
228 -- Order by the date the post was last updated
228 -- Order by the date the post was last updated
229− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
229+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
230
230
231instance Hashable PostsSearchOrderBy
231instance Hashable PostsSearchOrderBy
232
232
@@ -260,7 +260,7 @@ data CommentsListByBlogStatus
260 | CLBBSSpam
260 | CLBBSSpam
261 -- ^ @spam@
261 -- ^ @spam@
262 -- Comments marked as spam by the administrator
262 -- Comments marked as spam by the administrator
263− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
263+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
264
264
265instance Hashable CommentsListByBlogStatus
265instance Hashable CommentsListByBlogStatus
266
266
@@ -295,7 +295,7 @@ data PagesGetView
295 | PReader
295 | PReader
296 -- ^ @READER@
296 -- ^ @READER@
297 -- Reader level detail
297 -- Reader level detail
298− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
298+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
299
299
300instance Hashable PagesGetView
300instance Hashable PagesGetView
301
301
@@ -326,7 +326,7 @@ data PostUserInfosListOrderBy
326 | PUILOBUpdated
326 | PUILOBUpdated
327 -- ^ @updated@
327 -- ^ @updated@
328 -- Order by the date the post was last updated
328 -- Order by the date the post was last updated
329− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
329+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
330
330
331instance Hashable PostUserInfosListOrderBy
331instance Hashable PostUserInfosListOrderBy
332
332
@@ -359,7 +359,7 @@ data BlogsGetView
359 | BGVReader
359 | BGVReader
360 -- ^ @READER@
360 -- ^ @READER@
361 -- Reader level detail.
361 -- Reader level detail.
362− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
362+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
363
363
364instance Hashable BlogsGetView
364instance Hashable BlogsGetView
365
365
@@ -394,7 +394,7 @@ data BlogsGetByURLView
394 | BGBUVReader
394 | BGBUVReader
395 -- ^ @READER@
395 -- ^ @READER@
396 -- Reader level detail.
396 -- Reader level detail.
397− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
397+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
398
398
399instance Hashable BlogsGetByURLView
399instance Hashable BlogsGetByURLView
400
400
@@ -430,7 +430,7 @@ data CommentsListStatus
430 | CLSSpam
430 | CLSSpam
431 -- ^ @spam@
431 -- ^ @spam@
432 -- Comments marked as spam by the administrator
432 -- Comments marked as spam by the administrator
433− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
433+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
434
434
435instance Hashable CommentsListStatus
435instance Hashable CommentsListStatus
436
436
@@ -464,7 +464,7 @@ data BlogsListByUserStatus
464 | BLBUSLive
464 | BLBUSLive
465 -- ^ @LIVE@
465 -- ^ @LIVE@
466 -- Blog is currently live.
466 -- Blog is currently live.
467− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
467+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
468
468
469instance Hashable BlogsListByUserStatus
469instance Hashable BlogsListByUserStatus
470
470
@@ -497,7 +497,7 @@ data PagesListView
497 | PLVReader
497 | PLVReader
498 -- ^ @READER@
498 -- ^ @READER@
499 -- Reader level detail
499 -- Reader level detail
500− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
500+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
501
501
502instance Hashable PagesListView
502instance Hashable PagesListView
503
503
@@ -531,7 +531,7 @@ data PostsListStatus
531 | PLSScheduled
531 | PLSScheduled
532 -- ^ @scheduled@
532 -- ^ @scheduled@
533 -- Posts that are scheduled to publish in the future.
533 -- Posts that are scheduled to publish in the future.
534− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
534+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
535
535
536instance Hashable PostsListStatus
536instance Hashable PostsListStatus
537
537
@@ -566,7 +566,7 @@ data BlogsListByUserView
566 | BLBUVReader
566 | BLBUVReader
567 -- ^ @READER@
567 -- ^ @READER@
568 -- Reader level detail.
568 -- Reader level detail.
569− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
569+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
570
570
571instance Hashable BlogsListByUserView
571instance Hashable BlogsListByUserView
572
572
@@ -601,7 +601,7 @@ data PostUserInfosListView
601 | PUILVReader
601 | PUILVReader
602 -- ^ @READER@
602 -- ^ @READER@
603 -- Reader level detail
603 -- Reader level detail
604− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
604+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
605
605
606instance Hashable PostUserInfosListView
606instance Hashable PostUserInfosListView
607
607
@@ -638,7 +638,7 @@ data CommentsGetView
638 | CGVReader
638 | CGVReader
639 -- ^ @READER@
639 -- ^ @READER@
640 -- Admin level detail
640 -- Admin level detail
641− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
641+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
642
642
643instance Hashable CommentsGetView
643instance Hashable CommentsGetView
644
644
@@ -673,7 +673,7 @@ data PostsGetByPathView
673 | PGBPVReader
673 | PGBPVReader
674 -- ^ @READER@
674 -- ^ @READER@
675 -- Reader level detail
675 -- Reader level detail
676− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
676+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
677
677
678instance Hashable PostsGetByPathView
678instance Hashable PostsGetByPathView
679
679
@@ -703,7 +703,7 @@ data PagesListStatus
703 | PLive
703 | PLive
704 -- ^ @live@
704 -- ^ @live@
705 -- Pages that are publicly visible
705 -- Pages that are publicly visible
706− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
706+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
707
707
708instance Hashable PagesListStatus
708instance Hashable PagesListStatus
709
709
@@ -738,7 +738,7 @@ data BlogsListByUserRole
738 -- ^ @READER@
738 -- ^ @READER@
739 -- Reader role - Blogs where the user has Reader level access (to a private
739 -- Reader role - Blogs where the user has Reader level access (to a private
740 -- blog).
740 -- blog).
741− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
741+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
742
742
743instance Hashable BlogsListByUserRole
743instance Hashable BlogsListByUserRole
744
744
gogol-books/gen/Network/Google/Books/Types/Sum.hs+22−22
@@ -26,7 +26,7 @@ data VolumesListProjection
26 | Lite
26 | Lite
27 -- ^ @lite@
27 -- ^ @lite@
28 -- Includes a subset of fields in volumeInfo and accessInfo.
28 -- Includes a subset of fields in volumeInfo and accessInfo.
29− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
29+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
30
30
31instance Hashable VolumesListProjection
31instance Hashable VolumesListProjection
32
32
@@ -55,7 +55,7 @@ data MyLibraryBookshelvesVolumesListProjection
55 | MLBVLPLite
55 | MLBVLPLite
56 -- ^ @lite@
56 -- ^ @lite@
57 -- Includes a subset of fields in volumeInfo and accessInfo.
57 -- Includes a subset of fields in volumeInfo and accessInfo.
58− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
58+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
59
59
60instance Hashable MyLibraryBookshelvesVolumesListProjection
60instance Hashable MyLibraryBookshelvesVolumesListProjection
61
61
@@ -84,7 +84,7 @@ data VolumesListOrderBy
84 | Relevance
84 | Relevance
85 -- ^ @relevance@
85 -- ^ @relevance@
86 -- Relevance to search terms.
86 -- Relevance to search terms.
87− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
87+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
88
88
89instance Hashable VolumesListOrderBy
89instance Hashable VolumesListOrderBy
90
90
@@ -113,7 +113,7 @@ data VolumesListLibraryRestrict
113 | NoRestrict
113 | NoRestrict
114 -- ^ @no-restrict@
114 -- ^ @no-restrict@
115 -- Do not restrict based on user\'s library.
115 -- Do not restrict based on user\'s library.
116− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
116+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
117
117
118instance Hashable VolumesListLibraryRestrict
118instance Hashable VolumesListLibraryRestrict
119
119
@@ -139,7 +139,7 @@ data MyLibraryBookshelvesRemoveVolumeReason
139 = Onboarding
139 = Onboarding
140 -- ^ @ONBOARDING@
140 -- ^ @ONBOARDING@
141 -- Samples removed from the Onboarding flow.
141 -- Samples removed from the Onboarding flow.
142− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
142+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
143
143
144instance Hashable MyLibraryBookshelvesRemoveVolumeReason
144instance Hashable MyLibraryBookshelvesRemoveVolumeReason
145
145
@@ -167,7 +167,7 @@ data OnboardingListCategoryVolumesMaxAllowedMaturityRating
167 | NotMature
167 | NotMature
168 -- ^ @not-mature@
168 -- ^ @not-mature@
169 -- Show books which are rated not mature.
169 -- Show books which are rated not mature.
170− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
170+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
171
171
172instance Hashable OnboardingListCategoryVolumesMaxAllowedMaturityRating
172instance Hashable OnboardingListCategoryVolumesMaxAllowedMaturityRating
173
173
@@ -193,7 +193,7 @@ data VolumesListDownload
193 = Epub
193 = Epub
194 -- ^ @epub@
194 -- ^ @epub@
195 -- All volumes with epub.
195 -- All volumes with epub.
196− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
196+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
197
197
198instance Hashable VolumesListDownload
198instance Hashable VolumesListDownload
199
199
@@ -220,7 +220,7 @@ data VolumesGetProjection
220 | VGPLite
220 | VGPLite
221 -- ^ @lite@
221 -- ^ @lite@
222 -- Includes a subset of fields in volumeInfo and accessInfo.
222 -- Includes a subset of fields in volumeInfo and accessInfo.
223− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
223+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
224
224
225instance Hashable VolumesGetProjection
225instance Hashable VolumesGetProjection
226
226
@@ -252,7 +252,7 @@ data VolumesAssociatedListAssociation
252 | RelatedForPlay
252 | RelatedForPlay
253 -- ^ @related-for-play@
253 -- ^ @related-for-play@
254 -- Related volumes for Play Store.
254 -- Related volumes for Play Store.
255− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
255+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
256
256
257instance Hashable VolumesAssociatedListAssociation
257instance Hashable VolumesAssociatedListAssociation
258
258
@@ -283,7 +283,7 @@ data VolumesRecommendedRateRating
283 | NotInterested
283 | NotInterested
284 -- ^ @NOT_INTERESTED@
284 -- ^ @NOT_INTERESTED@
285 -- Rating indicating a negative dismissal of a volume.
285 -- Rating indicating a negative dismissal of a volume.
286− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
286+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
287
287
288instance Hashable VolumesRecommendedRateRating
288instance Hashable VolumesRecommendedRateRating
289
289
@@ -315,7 +315,7 @@ data VolumesUserUploadedListProcessingState
315 | Running
315 | Running
316 -- ^ @RUNNING@
316 -- ^ @RUNNING@
317 -- The volume processing is not completed.
317 -- The volume processing is not completed.
318− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
318+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
319
319
320instance Hashable VolumesUserUploadedListProcessingState
320instance Hashable VolumesUserUploadedListProcessingState
321
321
@@ -343,7 +343,7 @@ data MyConfigSyncVolumeLicensesFeatures
343 = Rentals
343 = Rentals
344 -- ^ @RENTALS@
344 -- ^ @RENTALS@
345 -- Client supports rentals.
345 -- Client supports rentals.
346− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
346+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
347
347
348instance Hashable MyConfigSyncVolumeLicensesFeatures
348instance Hashable MyConfigSyncVolumeLicensesFeatures
349
349
@@ -371,7 +371,7 @@ data VolumesAssociatedListMaxAllowedMaturityRating
371 | VALMAMRNotMature
371 | VALMAMRNotMature
372 -- ^ @not-mature@
372 -- ^ @not-mature@
373 -- Show books which are rated not mature.
373 -- Show books which are rated not mature.
374− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
374+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
375
375
376instance Hashable VolumesAssociatedListMaxAllowedMaturityRating
376instance Hashable VolumesAssociatedListMaxAllowedMaturityRating
377
377
@@ -409,7 +409,7 @@ data VolumesListFilter
409 | VLFPartial
409 | VLFPartial
410 -- ^ @partial@
410 -- ^ @partial@
411 -- Public able to see parts of text.
411 -- Public able to see parts of text.
412− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
412+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
413
413
414instance Hashable VolumesListFilter
414instance Hashable VolumesListFilter
415
415
@@ -445,7 +445,7 @@ data VolumesRecommendedListMaxAllowedMaturityRating
445 | VRLMAMRNotMature
445 | VRLMAMRNotMature
446 -- ^ @not-mature@
446 -- ^ @not-mature@
447 -- Show books which are rated not mature.
447 -- Show books which are rated not mature.
448− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
448+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
449
449
450instance Hashable VolumesRecommendedListMaxAllowedMaturityRating
450instance Hashable VolumesRecommendedListMaxAllowedMaturityRating
451
451
@@ -477,7 +477,7 @@ data MyLibraryBookshelvesAddVolumeReason
477 | MLBAVROnboarding
477 | MLBAVROnboarding
478 -- ^ @ONBOARDING@
478 -- ^ @ONBOARDING@
479 -- Volumes added from the Onboarding flow.
479 -- Volumes added from the Onboarding flow.
480− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
480+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
481
481
482instance Hashable MyLibraryBookshelvesAddVolumeReason
482instance Hashable MyLibraryBookshelvesAddVolumeReason
483
483
@@ -523,7 +523,7 @@ data VolumesMybooksListAcquireMethod
523 | Uploaded
523 | Uploaded
524 -- ^ @UPLOADED@
524 -- ^ @UPLOADED@
525 -- User uploaded books
525 -- User uploaded books
526− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
526+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
527
527
528instance Hashable VolumesMybooksListAcquireMethod
528instance Hashable VolumesMybooksListAcquireMethod
529
529
@@ -563,7 +563,7 @@ data PersonalizedstreamGetMaxAllowedMaturityRating
563 | PGMAMRNotMature
563 | PGMAMRNotMature
564 -- ^ @not-mature@
564 -- ^ @not-mature@
565 -- Show books which are rated not mature.
565 -- Show books which are rated not mature.
566− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
566+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
567
567
568instance Hashable PersonalizedstreamGetMaxAllowedMaturityRating
568instance Hashable PersonalizedstreamGetMaxAllowedMaturityRating
569
569
@@ -595,7 +595,7 @@ data VolumesListPrintType
595 | Magazines
595 | Magazines
596 -- ^ @magazines@
596 -- ^ @magazines@
597 -- Just magazines.
597 -- Just magazines.
598− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
598+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
599
599
600instance Hashable VolumesListPrintType
600instance Hashable VolumesListPrintType
601
601
@@ -630,7 +630,7 @@ data VolumesMybooksListProcessingState
630 | VMLPSRunning
630 | VMLPSRunning
631 -- ^ @RUNNING@
631 -- ^ @RUNNING@
632 -- The volume processing is not completed.
632 -- The volume processing is not completed.
633− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
633+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
634
634
635instance Hashable VolumesMybooksListProcessingState
635instance Hashable VolumesMybooksListProcessingState
636
636
@@ -665,7 +665,7 @@ data MyConfigRequestAccessLicenseTypes
665 | Download
665 | Download
666 -- ^ @DOWNLOAD@
666 -- ^ @DOWNLOAD@
667 -- Offline download access license.
667 -- Offline download access license.
668− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
668+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
669
669
670instance Hashable MyConfigRequestAccessLicenseTypes
670instance Hashable MyConfigRequestAccessLicenseTypes
671
671
@@ -708,7 +708,7 @@ data MyLibraryReadingPositionsSetPositionAction
708 | Search
708 | Search
709 -- ^ @search@
709 -- ^ @search@
710 -- User chose search results within volume.
710 -- User chose search results within volume.
711− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
711+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
712
712
713instance Hashable MyLibraryReadingPositionsSetPositionAction
713instance Hashable MyLibraryReadingPositionsSetPositionAction
714
714
gogol-civicinfo/gen/Network/Google/CivicInfo/Types/Sum.hs+4−4
@@ -40,7 +40,7 @@ data RepresentativesRepresentativeInfoByDivisionLevels
40 -- ^ @subLocality1@
40 -- ^ @subLocality1@
41 | SUBLOCALITY2
41 | SUBLOCALITY2
42 -- ^ @subLocality2@
42 -- ^ @subLocality2@
43− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
43+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
44
44
45instance Hashable RepresentativesRepresentativeInfoByDivisionLevels
45instance Hashable RepresentativesRepresentativeInfoByDivisionLevels
46
46
@@ -97,7 +97,7 @@ data RepresentativesRepresentativeInfoByAddressLevels
97 -- ^ @subLocality1@
97 -- ^ @subLocality1@
98 | RRIBALSUBLOCALITY2
98 | RRIBALSUBLOCALITY2
99 -- ^ @subLocality2@
99 -- ^ @subLocality2@
100− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
100+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
101
101
102instance Hashable RepresentativesRepresentativeInfoByAddressLevels
102instance Hashable RepresentativesRepresentativeInfoByAddressLevels
103
103
@@ -158,7 +158,7 @@ data RepresentativesRepresentativeInfoByDivisionRoles
158 -- ^ @schoolBoard@
158 -- ^ @schoolBoard@
159 | SpecialPurposeOfficer
159 | SpecialPurposeOfficer
160 -- ^ @specialPurposeOfficer@
160 -- ^ @specialPurposeOfficer@
161− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
161+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
162
162
163instance Hashable RepresentativesRepresentativeInfoByDivisionRoles
163instance Hashable RepresentativesRepresentativeInfoByDivisionRoles
164
164
@@ -223,7 +223,7 @@ data RepresentativesRepresentativeInfoByAddressRoles
223 -- ^ @schoolBoard@
223 -- ^ @schoolBoard@
224 | RRIBARSpecialPurposeOfficer
224 | RRIBARSpecialPurposeOfficer
225 -- ^ @specialPurposeOfficer@
225 -- ^ @specialPurposeOfficer@
226− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
226+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
227
227
228instance Hashable RepresentativesRepresentativeInfoByAddressRoles
228instance Hashable RepresentativesRepresentativeInfoByAddressRoles
229
229
gogol-cloudmonitoring/gen/Network/Google/CloudMonitoring/Types/Sum.hs+2−2
@@ -30,7 +30,7 @@ data TimeseriesListAggregator
30 -- ^ @min@
30 -- ^ @min@
31 | Sum
31 | Sum
32 -- ^ @sum@
32 -- ^ @sum@
33− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
33+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
34
34
35instance Hashable TimeseriesListAggregator
35instance Hashable TimeseriesListAggregator
36
36
@@ -67,7 +67,7 @@ data TimeseriesDescriptorsListAggregator
67 -- ^ @min@
67 -- ^ @min@
68 | TDLASum
68 | TDLASum
69 -- ^ @sum@
69 -- ^ @sum@
70− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
70+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
71
71
72instance Hashable TimeseriesDescriptorsListAggregator
72instance Hashable TimeseriesDescriptorsListAggregator
73
73
gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/GetDiscovery.hsdeleted−207
@@ -1,207 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.CloudTrace.GetDiscovery
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Returns a discovery document in the specified \`format\`. The typeurl in
24−-- the returned google.protobuf.Any value depends on the requested format.
25−--
26−-- /See:/ <https://cloud.google.com/tools/cloud-trace Google Cloud Trace API Reference> for @cloudtrace.getDiscovery@.
27−module Network.Google.Resource.CloudTrace.GetDiscovery
28− (
29− -- * REST Resource
30− GetDiscoveryResource
31−
32− -- * Creating a Request
33− , getDiscovery
34− , GetDiscovery
35−
36− -- * Request Lenses
37− , gdXgafv
38− , gdArgs
39− , gdUploadProtocol
40− , gdPp
41− , gdAccessToken
42− , gdFormat
43− , gdUploadType
44− , gdBearerToken
45− , gdVersion
46− , gdLabels
47− , gdCallback
48− ) where
49−
50−import Network.Google.CloudTrace.Types
51−import Network.Google.Prelude
52−
53−-- | A resource alias for @cloudtrace.getDiscovery@ method which the
54−-- 'GetDiscovery' request conforms to.
55−type GetDiscoveryResource =
56− "v1" :>
57− "discovery" :>
58− QueryParam "$.xgafv" Text :>
59− QueryParams "args" Text :>
60− QueryParam "upload_protocol" Text :>
61− QueryParam "pp" Bool :>
62− QueryParam "access_token" Text :>
63− QueryParam "format" Text :>
64− QueryParam "uploadType" Text :>
65− QueryParam "bearer_token" Text :>
66− QueryParam "version" Text :>
67− QueryParams "labels" Text :>
68− QueryParam "callback" Text :>
69− QueryParam "alt" AltJSON :> Get '[JSON] ()
70−
71−-- | Returns a discovery document in the specified \`format\`. The typeurl in
72−-- the returned google.protobuf.Any value depends on the requested format.
73−--
74−-- /See:/ 'getDiscovery' smart constructor.
75−data GetDiscovery = GetDiscovery
76− { _gdXgafv :: !(Maybe Text)
77− , _gdArgs :: !(Maybe [Text])
78− , _gdUploadProtocol :: !(Maybe Text)
79− , _gdPp :: !Bool
80− , _gdAccessToken :: !(Maybe Text)
81− , _gdFormat :: !(Maybe Text)
82− , _gdUploadType :: !(Maybe Text)
83− , _gdBearerToken :: !(Maybe Text)
84− , _gdVersion :: !(Maybe Text)
85− , _gdLabels :: !(Maybe [Text])
86− , _gdCallback :: !(Maybe Text)
87− } deriving (Eq,Show,Data,Typeable,Generic)
88−
89−-- | Creates a value of 'GetDiscovery' with the minimum fields required to make a request.
90−--
91−-- Use one of the following lenses to modify other fields as desired:
92−--
93−-- * 'gdXgafv'
94−--
95−-- * 'gdArgs'
96−--
97−-- * 'gdUploadProtocol'
98−--
99−-- * 'gdPp'
100−--
101−-- * 'gdAccessToken'
102−--
103−-- * 'gdFormat'
104−--
105−-- * 'gdUploadType'
106−--
107−-- * 'gdBearerToken'
108−--
109−-- * 'gdVersion'
110−--
111−-- * 'gdLabels'
112−--
113−-- * 'gdCallback'
114−getDiscovery
115− :: GetDiscovery
116−getDiscovery =
117− GetDiscovery
118− { _gdXgafv = Nothing
119− , _gdArgs = Nothing
120− , _gdUploadProtocol = Nothing
121− , _gdPp = True
122− , _gdAccessToken = Nothing
123− , _gdFormat = Nothing
124− , _gdUploadType = Nothing
125− , _gdBearerToken = Nothing
126− , _gdVersion = Nothing
127− , _gdLabels = Nothing
128− , _gdCallback = Nothing
129− }
130−
131−-- | V1 error format.
132−gdXgafv :: Lens' GetDiscovery (Maybe Text)
133−gdXgafv = lens _gdXgafv (\ s a -> s{_gdXgafv = a})
134−
135−-- | Any additional arguments.
136−gdArgs :: Lens' GetDiscovery [Text]
137−gdArgs
138− = lens _gdArgs (\ s a -> s{_gdArgs = a}) . _Default .
139− _Coerce
140−
141−-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
142−gdUploadProtocol :: Lens' GetDiscovery (Maybe Text)
143−gdUploadProtocol
144− = lens _gdUploadProtocol
145− (\ s a -> s{_gdUploadProtocol = a})
146−
147−-- | Pretty-print response.
148−gdPp :: Lens' GetDiscovery Bool
149−gdPp = lens _gdPp (\ s a -> s{_gdPp = a})
150−
151−-- | OAuth access token.
152−gdAccessToken :: Lens' GetDiscovery (Maybe Text)
153−gdAccessToken
154− = lens _gdAccessToken
155− (\ s a -> s{_gdAccessToken = a})
156−
157−-- | The format requested for discovery.
158−gdFormat :: Lens' GetDiscovery (Maybe Text)
159−gdFormat = lens _gdFormat (\ s a -> s{_gdFormat = a})
160−
161−-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
162−gdUploadType :: Lens' GetDiscovery (Maybe Text)
163−gdUploadType
164− = lens _gdUploadType (\ s a -> s{_gdUploadType = a})
165−
166−-- | OAuth bearer token.
167−gdBearerToken :: Lens' GetDiscovery (Maybe Text)
168−gdBearerToken
169− = lens _gdBearerToken
170− (\ s a -> s{_gdBearerToken = a})
171−
172−-- | The API version of the requested discovery doc.
173−gdVersion :: Lens' GetDiscovery (Maybe Text)
174−gdVersion
175− = lens _gdVersion (\ s a -> s{_gdVersion = a})
176−
177−-- | A list of labels (like visibility) influencing the scope of the
178−-- requested doc.
179−gdLabels :: Lens' GetDiscovery [Text]
180−gdLabels
181− = lens _gdLabels (\ s a -> s{_gdLabels = a}) .
182− _Default
183− . _Coerce
184−
185−-- | JSONP
186−gdCallback :: Lens' GetDiscovery (Maybe Text)
187−gdCallback
188− = lens _gdCallback (\ s a -> s{_gdCallback = a})
189−
190−instance GoogleRequest GetDiscovery where
191− type Rs GetDiscovery = ()
192− type Scopes GetDiscovery = '[]
193− requestClient GetDiscovery{..}
194− = go _gdXgafv (_gdArgs ^. _Default) _gdUploadProtocol
195− (Just _gdPp)
196− _gdAccessToken
197− _gdFormat
198− _gdUploadType
199− _gdBearerToken
200− _gdVersion
201− (_gdLabels ^. _Default)
202− _gdCallback
203− (Just AltJSON)
204− cloudTraceService
205− where go
206− = buildClient (Proxy :: Proxy GetDiscoveryResource)
207− mempty
gogol-compute/gen/Network/Google/Compute/Types/Sum.hs+48−48
@@ -27,7 +27,7 @@ data SchedulingOnHostMaintenance
27 -- ^ @MIGRATE@
27 -- ^ @MIGRATE@
28 | Terminate
28 | Terminate
29 -- ^ @TERMINATE@
29 -- ^ @TERMINATE@
30− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
30+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
31
31
32instance Hashable SchedulingOnHostMaintenance
32instance Hashable SchedulingOnHostMaintenance
33
33
@@ -58,7 +58,7 @@ data AutoscalingPolicyCustomMetricUtilizationUtilizationTargetType
58 -- ^ @DELTA_PER_SECOND@
58 -- ^ @DELTA_PER_SECOND@
59 | Gauge
59 | Gauge
60 -- ^ @GAUGE@
60 -- ^ @GAUGE@
61− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
61+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
62
62
63instance Hashable AutoscalingPolicyCustomMetricUtilizationUtilizationTargetType
63instance Hashable AutoscalingPolicyCustomMetricUtilizationUtilizationTargetType
64
64
@@ -114,7 +114,7 @@ data OperationWarningsItemCode
114 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
114 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
115 | Unreachable
115 | Unreachable
116 -- ^ @UNREACHABLE@
116 -- ^ @UNREACHABLE@
117− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
117+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
118
118
119instance Hashable OperationWarningsItemCode
119instance Hashable OperationWarningsItemCode
120
120
@@ -168,7 +168,7 @@ data BackendServiceProtocol
168 -- ^ @HTTP@
168 -- ^ @HTTP@
169 | HTTPS
169 | HTTPS
170 -- ^ @HTTPS@
170 -- ^ @HTTPS@
171− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
171+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
172
172
173instance Hashable BackendServiceProtocol
173instance Hashable BackendServiceProtocol
174
174
@@ -196,7 +196,7 @@ data AttachedDiskType
196 -- ^ @PERSISTENT@
196 -- ^ @PERSISTENT@
197 | Scratch
197 | Scratch
198 -- ^ @SCRATCH@
198 -- ^ @SCRATCH@
199− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
199+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
200
200
201instance Hashable AttachedDiskType
201instance Hashable AttachedDiskType
202
202
@@ -222,7 +222,7 @@ instance ToJSON AttachedDiskType where
222data ImageSourceType
222data ImageSourceType
223 = Raw
223 = Raw
224 -- ^ @RAW@
224 -- ^ @RAW@
225− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
225+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
226
226
227instance Hashable ImageSourceType
227instance Hashable ImageSourceType
228
228
@@ -274,7 +274,7 @@ data ForwardingRulesScopedListWarningCode
274 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
274 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
275 | FRSLWCUnreachable
275 | FRSLWCUnreachable
276 -- ^ @UNREACHABLE@
276 -- ^ @UNREACHABLE@
277− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
277+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
278
278
279instance Hashable ForwardingRulesScopedListWarningCode
279instance Hashable ForwardingRulesScopedListWarningCode
280
280
@@ -354,7 +354,7 @@ data OperationsScopedListWarningCode
354 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
354 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
355 | OSLWCUnreachable
355 | OSLWCUnreachable
356 -- ^ @UNREACHABLE@
356 -- ^ @UNREACHABLE@
357− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
357+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
358
358
359instance Hashable OperationsScopedListWarningCode
359instance Hashable OperationsScopedListWarningCode
360
360
@@ -434,7 +434,7 @@ data DisksScopedListWarningCode
434 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
434 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
435 | DSLWCUnreachable
435 | DSLWCUnreachable
436 -- ^ @UNREACHABLE@
436 -- ^ @UNREACHABLE@
437− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
437+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
438
438
439instance Hashable DisksScopedListWarningCode
439instance Hashable DisksScopedListWarningCode
440
440
@@ -514,7 +514,7 @@ data InstanceGroupManagersScopedListWarningCode
514 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
514 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
515 | IGMSLWCUnreachable
515 | IGMSLWCUnreachable
516 -- ^ @UNREACHABLE@
516 -- ^ @UNREACHABLE@
517− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
517+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
518
518
519instance Hashable InstanceGroupManagersScopedListWarningCode
519instance Hashable InstanceGroupManagersScopedListWarningCode
520
520
@@ -594,7 +594,7 @@ data TargetPoolsScopedListWarningCode
594 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
594 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
595 | TPSLWCUnreachable
595 | TPSLWCUnreachable
596 -- ^ @UNREACHABLE@
596 -- ^ @UNREACHABLE@
597− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
597+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
598
598
599instance Hashable TargetPoolsScopedListWarningCode
599instance Hashable TargetPoolsScopedListWarningCode
600
600
@@ -651,7 +651,7 @@ data TargetVPNGatewayStatus
651 -- ^ @FAILED@
651 -- ^ @FAILED@
652 | Ready
652 | Ready
653 -- ^ @READY@
653 -- ^ @READY@
654− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
654+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
655
655
656instance Hashable TargetVPNGatewayStatus
656instance Hashable TargetVPNGatewayStatus
657
657
@@ -689,7 +689,7 @@ data SnapshotStatus
689 -- ^ @READY@
689 -- ^ @READY@
690 | SSUploading
690 | SSUploading
691 -- ^ @UPLOADING@
691 -- ^ @UPLOADING@
692− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
692+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
693
693
694instance Hashable SnapshotStatus
694instance Hashable SnapshotStatus
695
695
@@ -749,7 +749,7 @@ data TargetInstancesScopedListWarningCode
749 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
749 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
750 | TISLWCUnreachable
750 | TISLWCUnreachable
751 -- ^ @UNREACHABLE@
751 -- ^ @UNREACHABLE@
752− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
752+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
753
753
754instance Hashable TargetInstancesScopedListWarningCode
754instance Hashable TargetInstancesScopedListWarningCode
755
755
@@ -829,7 +829,7 @@ data RouteWarningsItemCode
829 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
829 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
830 | RWICUnreachable
830 | RWICUnreachable
831 -- ^ @UNREACHABLE@
831 -- ^ @UNREACHABLE@
832− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
832+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
833
833
834instance Hashable RouteWarningsItemCode
834instance Hashable RouteWarningsItemCode
835
835
@@ -885,7 +885,7 @@ data SnapshotStorageBytesStatus
885 -- ^ @UPDATING@
885 -- ^ @UPDATING@
886 | UpToDate
886 | UpToDate
887 -- ^ @UP_TO_DATE@
887 -- ^ @UP_TO_DATE@
888− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
888+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
889
889
890instance Hashable SnapshotStorageBytesStatus
890instance Hashable SnapshotStorageBytesStatus
891
891
@@ -939,7 +939,7 @@ data AddressesScopedListWarningCode
939 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
939 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
940 | ASLWCUnreachable
940 | ASLWCUnreachable
941 -- ^ @UNREACHABLE@
941 -- ^ @UNREACHABLE@
942− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
942+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
943
943
944instance Hashable AddressesScopedListWarningCode
944instance Hashable AddressesScopedListWarningCode
945
945
@@ -997,7 +997,7 @@ data ImageStatus
997 -- ^ @PENDING@
997 -- ^ @PENDING@
998 | ISReady
998 | ISReady
999 -- ^ @READY@
999 -- ^ @READY@
1000− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1000+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1001
1001
1002instance Hashable ImageStatus
1002instance Hashable ImageStatus
1003
1003
@@ -1026,7 +1026,7 @@ data HealthStatusHealthState
1026 -- ^ @HEALTHY@
1026 -- ^ @HEALTHY@
1027 | Unhealthy
1027 | Unhealthy
1028 -- ^ @UNHEALTHY@
1028 -- ^ @UNHEALTHY@
1029− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1029+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1030
1030
1031instance Hashable HealthStatusHealthState
1031instance Hashable HealthStatusHealthState
1032
1032
@@ -1060,7 +1060,7 @@ data DeprecationStatusState
1060 -- ^ @DEPRECATED@
1060 -- ^ @DEPRECATED@
1061 | Obsolete
1061 | Obsolete
1062 -- ^ @OBSOLETE@
1062 -- ^ @OBSOLETE@
1063− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1063+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1064
1064
1065instance Hashable DeprecationStatusState
1065instance Hashable DeprecationStatusState
1066
1066
@@ -1116,7 +1116,7 @@ data ManagedInstanceCurrentAction
1116 -- ^ @REFRESHING@
1116 -- ^ @REFRESHING@
1117 | MICARestarting
1117 | MICARestarting
1118 -- ^ @RESTARTING@
1118 -- ^ @RESTARTING@
1119− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1119+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1120
1120
1121instance Hashable ManagedInstanceCurrentAction
1121instance Hashable ManagedInstanceCurrentAction
1122
1122
@@ -1152,7 +1152,7 @@ instance ToJSON ManagedInstanceCurrentAction where
1152data TargetInstanceNATPolicy
1152data TargetInstanceNATPolicy
1153 = NoNAT
1153 = NoNAT
1154 -- ^ @NO_NAT@
1154 -- ^ @NO_NAT@
1155− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1155+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1156
1156
1157instance Hashable TargetInstanceNATPolicy
1157instance Hashable TargetInstanceNATPolicy
1158
1158
@@ -1176,7 +1176,7 @@ instance ToJSON TargetInstanceNATPolicy where
1176data AccessConfigType
1176data AccessConfigType
1177 = OneToOneNAT
1177 = OneToOneNAT
1178 -- ^ @ONE_TO_ONE_NAT@
1178 -- ^ @ONE_TO_ONE_NAT@
1179− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1179+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1180
1180
1181instance Hashable AccessConfigType
1181instance Hashable AccessConfigType
1182
1182
@@ -1204,7 +1204,7 @@ data OperationStatus
1204 -- ^ @PENDING@
1204 -- ^ @PENDING@
1205 | Running
1205 | Running
1206 -- ^ @RUNNING@
1206 -- ^ @RUNNING@
1207− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1207+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1208
1208
1209instance Hashable OperationStatus
1209instance Hashable OperationStatus
1210
1210
@@ -1260,7 +1260,7 @@ data TargetVPNGatewaysScopedListWarningCode
1260 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
1260 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
1261 | TVGSLWCUnreachable
1261 | TVGSLWCUnreachable
1262 -- ^ @UNREACHABLE@
1262 -- ^ @UNREACHABLE@
1263− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1263+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1264
1264
1265instance Hashable TargetVPNGatewaysScopedListWarningCode
1265instance Hashable TargetVPNGatewaysScopedListWarningCode
1266
1266
@@ -1318,7 +1318,7 @@ data DiskStatus
1318 -- ^ @READY@
1318 -- ^ @READY@
1319 | DSRestoring
1319 | DSRestoring
1320 -- ^ @RESTORING@
1320 -- ^ @RESTORING@
1321− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1321+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1322
1322
1323instance Hashable DiskStatus
1323instance Hashable DiskStatus
1324
1324
@@ -1362,7 +1362,7 @@ data ManagedInstanceInstanceStatus
1362 -- ^ @SUSPENDING@
1362 -- ^ @SUSPENDING@
1363 | MIISTerminated
1363 | MIISTerminated
1364 -- ^ @TERMINATED@
1364 -- ^ @TERMINATED@
1365− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1365+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1366
1366
1367instance Hashable ManagedInstanceInstanceStatus
1367instance Hashable ManagedInstanceInstanceStatus
1368
1368
@@ -1402,7 +1402,7 @@ data AttachedDiskMode
1402 -- ^ @READ_ONLY@
1402 -- ^ @READ_ONLY@
1403 | ReadWrite
1403 | ReadWrite
1404 -- ^ @READ_WRITE@
1404 -- ^ @READ_WRITE@
1405− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1405+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1406
1406
1407instance Hashable AttachedDiskMode
1407instance Hashable AttachedDiskMode
1408
1408
@@ -1429,7 +1429,7 @@ data RegionStatus
1429 -- ^ @DOWN@
1429 -- ^ @DOWN@
1430 | UP
1430 | UP
1431 -- ^ @UP@
1431 -- ^ @UP@
1432− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1432+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1433
1433
1434instance Hashable RegionStatus
1434instance Hashable RegionStatus
1435
1435
@@ -1476,7 +1476,7 @@ data VPNTunnelStatus
1476 -- ^ @REJECTED@
1476 -- ^ @REJECTED@
1477 | VTSWaitingForFullConfig
1477 | VTSWaitingForFullConfig
1478 -- ^ @WAITING_FOR_FULL_CONFIG@
1478 -- ^ @WAITING_FOR_FULL_CONFIG@
1479− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1479+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1480
1480
1481instance Hashable VPNTunnelStatus
1481instance Hashable VPNTunnelStatus
1482
1482
@@ -1525,7 +1525,7 @@ data BackendBalancingMode
1525 -- ^ @RATE@
1525 -- ^ @RATE@
1526 | Utilization
1526 | Utilization
1527 -- ^ @UTILIZATION@
1527 -- ^ @UTILIZATION@
1528− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1528+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1529
1529
1530instance Hashable BackendBalancingMode
1530instance Hashable BackendBalancingMode
1531
1531
@@ -1559,7 +1559,7 @@ data ForwardingRuleIPProtocol
1559 -- ^ @TCP@
1559 -- ^ @TCP@
1560 | Udp
1560 | Udp
1561 -- ^ @UDP@
1561 -- ^ @UDP@
1562− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1562+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1563
1563
1564instance Hashable ForwardingRuleIPProtocol
1564instance Hashable ForwardingRuleIPProtocol
1565
1565
@@ -1595,7 +1595,7 @@ data AddressStatus
1595 -- ^ @IN_USE@
1595 -- ^ @IN_USE@
1596 | Reserved
1596 | Reserved
1597 -- ^ @RESERVED@
1597 -- ^ @RESERVED@
1598− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1598+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1599
1599
1600instance Hashable AddressStatus
1600instance Hashable AddressStatus
1601
1601
@@ -1624,7 +1624,7 @@ data InstanceGroupsListInstancesRequestInstanceState
1624 -- ^ @ALL@
1624 -- ^ @ALL@
1625 | IGLIRISRunning
1625 | IGLIRISRunning
1626 -- ^ @RUNNING@
1626 -- ^ @RUNNING@
1627− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1627+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1628
1628
1629instance Hashable InstanceGroupsListInstancesRequestInstanceState
1629instance Hashable InstanceGroupsListInstancesRequestInstanceState
1630
1630
@@ -1656,7 +1656,7 @@ data AttachedDiskInterface
1656 -- ^ @NVME@
1656 -- ^ @NVME@
1657 | Scsi
1657 | Scsi
1658 -- ^ @SCSI@
1658 -- ^ @SCSI@
1659− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1659+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1660
1660
1661instance Hashable AttachedDiskInterface
1661instance Hashable AttachedDiskInterface
1662
1662
@@ -1683,7 +1683,7 @@ data ZoneStatus
1683 -- ^ @DOWN@
1683 -- ^ @DOWN@
1684 | ZSUP
1684 | ZSUP
1685 -- ^ @UP@
1685 -- ^ @UP@
1686− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1686+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1687
1687
1688instance Hashable ZoneStatus
1688instance Hashable ZoneStatus
1689
1689
@@ -1737,7 +1737,7 @@ data SubnetworksScopedListWarningCode
1737 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
1737 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
1738 | SSLWCUnreachable
1738 | SSLWCUnreachable
1739 -- ^ @UNREACHABLE@
1739 -- ^ @UNREACHABLE@
1740− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1740+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1741
1741
1742instance Hashable SubnetworksScopedListWarningCode
1742instance Hashable SubnetworksScopedListWarningCode
1743
1743
@@ -1842,7 +1842,7 @@ data QuotaMetric
1842 -- ^ @URL_MAPS@
1842 -- ^ @URL_MAPS@
1843 | VPNTunnels
1843 | VPNTunnels
1844 -- ^ @VPN_TUNNELS@
1844 -- ^ @VPN_TUNNELS@
1845− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1845+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1846
1846
1847instance Hashable QuotaMetric
1847instance Hashable QuotaMetric
1848
1848
@@ -1934,7 +1934,7 @@ data InstanceStatus
1934 -- ^ @SUSPENDING@
1934 -- ^ @SUSPENDING@
1935 | ISTerminated
1935 | ISTerminated
1936 -- ^ @TERMINATED@
1936 -- ^ @TERMINATED@
1937− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1937+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1938
1938
1939instance Hashable InstanceStatus
1939instance Hashable InstanceStatus
1940
1940
@@ -2000,7 +2000,7 @@ data MachineTypesScopedListWarningCode
2000 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2000 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2001 | MTSLWCUnreachable
2001 | MTSLWCUnreachable
2002 -- ^ @UNREACHABLE@
2002 -- ^ @UNREACHABLE@
2003− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2003+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2004
2004
2005instance Hashable MachineTypesScopedListWarningCode
2005instance Hashable MachineTypesScopedListWarningCode
2006
2006
@@ -2080,7 +2080,7 @@ data DiskTypesScopedListWarningCode
2080 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2080 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2081 | DTSLWCUnreachable
2081 | DTSLWCUnreachable
2082 -- ^ @UNREACHABLE@
2082 -- ^ @UNREACHABLE@
2083− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2083+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2084
2084
2085instance Hashable DiskTypesScopedListWarningCode
2085instance Hashable DiskTypesScopedListWarningCode
2086
2086
@@ -2160,7 +2160,7 @@ data AutoscalersScopedListWarningCode
2160 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2160 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2161 | AUnreachable
2161 | AUnreachable
2162 -- ^ @UNREACHABLE@
2162 -- ^ @UNREACHABLE@
2163− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2163+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2164
2164
2165instance Hashable AutoscalersScopedListWarningCode
2165instance Hashable AutoscalersScopedListWarningCode
2166
2166
@@ -2240,7 +2240,7 @@ data VPNTunnelsScopedListWarningCode
2240 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2240 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2241 | VTSLWCUnreachable
2241 | VTSLWCUnreachable
2242 -- ^ @UNREACHABLE@
2242 -- ^ @UNREACHABLE@
2243− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2243+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2244
2244
2245instance Hashable VPNTunnelsScopedListWarningCode
2245instance Hashable VPNTunnelsScopedListWarningCode
2246
2246
@@ -2320,7 +2320,7 @@ data InstanceGroupsScopedListWarningCode
2320 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2320 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2321 | IGSLWCUnreachable
2321 | IGSLWCUnreachable
2322 -- ^ @UNREACHABLE@
2322 -- ^ @UNREACHABLE@
2323− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2323+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2324
2324
2325instance Hashable InstanceGroupsScopedListWarningCode
2325instance Hashable InstanceGroupsScopedListWarningCode
2326
2326
@@ -2385,7 +2385,7 @@ data InstanceWithNamedPortsStatus
2385 -- ^ @SUSPENDING@
2385 -- ^ @SUSPENDING@
2386 | IWNPSTerminated
2386 | IWNPSTerminated
2387 -- ^ @TERMINATED@
2387 -- ^ @TERMINATED@
2388− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2388+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2389
2389
2390instance Hashable InstanceWithNamedPortsStatus
2390instance Hashable InstanceWithNamedPortsStatus
2391
2391
@@ -2451,7 +2451,7 @@ data InstancesScopedListWarningCode
2451 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2451 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
2452 | ISLWCUnreachable
2452 | ISLWCUnreachable
2453 -- ^ @UNREACHABLE@
2453 -- ^ @UNREACHABLE@
2454− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2454+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2455
2455
2456instance Hashable InstancesScopedListWarningCode
2456instance Hashable InstancesScopedListWarningCode
2457
2457
@@ -2512,7 +2512,7 @@ data TargetPoolSessionAffinity
2512 -- ^ @CLIENT_IP_PROTO@
2512 -- ^ @CLIENT_IP_PROTO@
2513 | None
2513 | None
2514 -- ^ @NONE@
2514 -- ^ @NONE@
2515− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2515+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2516
2516
2517instance Hashable TargetPoolSessionAffinity
2517instance Hashable TargetPoolSessionAffinity
2518
2518
@@ -2541,7 +2541,7 @@ instance ToJSON TargetPoolSessionAffinity where
2541data ImageRawDiskContainerType
2541data ImageRawDiskContainerType
2542 = TAR
2542 = TAR
2543 -- ^ @TAR@
2543 -- ^ @TAR@
2544− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2544+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2545
2545
2546instance Hashable ImageRawDiskContainerType
2546instance Hashable ImageRawDiskContainerType
2547
2547
gogol-customsearch/gen/Network/Google/CustomSearch/Types/Sum.hs+9−9
@@ -36,7 +36,7 @@ data CSEListImgType
36 | Photo
36 | Photo
37 -- ^ @photo@
37 -- ^ @photo@
38 -- photo
38 -- photo
39− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
39+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
40
40
41instance Hashable CSEListImgType
41instance Hashable CSEListImgType
42
42
@@ -72,7 +72,7 @@ data CSEListSiteSearchFilter
72 | I
72 | I
73 -- ^ @i@
73 -- ^ @i@
74 -- include
74 -- include
75− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
75+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
76
76
77instance Hashable CSEListSiteSearchFilter
77instance Hashable CSEListSiteSearchFilter
78
78
@@ -126,7 +126,7 @@ data CSEListImgDominantColor
126 | Yellow
126 | Yellow
127 -- ^ @yellow@
127 -- ^ @yellow@
128 -- yellow
128 -- yellow
129− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
129+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
130
130
131instance Hashable CSEListImgDominantColor
131instance Hashable CSEListImgDominantColor
132
132
@@ -174,7 +174,7 @@ data CSEListSafe
174 | Off
174 | Off
175 -- ^ @off@
175 -- ^ @off@
176 -- Disables safe search filtering.
176 -- Disables safe search filtering.
177− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
177+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
178
178
179instance Hashable CSEListSafe
179instance Hashable CSEListSafe
180
180
@@ -209,7 +209,7 @@ data CSEListImgColorType
209 | CSELICTMono
209 | CSELICTMono
210 -- ^ @mono@
210 -- ^ @mono@
211 -- mono
211 -- mono
212− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
212+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
213
213
214instance Hashable CSEListImgColorType
214instance Hashable CSEListImgColorType
215
215
@@ -240,7 +240,7 @@ data CSEListFilter
240 | CSELF1
240 | CSELF1
241 -- ^ @1@
241 -- ^ @1@
242 -- Turns on duplicate content filter.
242 -- Turns on duplicate content filter.
243− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
243+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
244
244
245instance Hashable CSEListFilter
245instance Hashable CSEListFilter
246
246
@@ -368,7 +368,7 @@ data CSEListLr
368 | LangZhTw
368 | LangZhTw
369 -- ^ @lang_zh-TW@
369 -- ^ @lang_zh-TW@
370 -- Chinese (Traditional)
370 -- Chinese (Traditional)
371− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
371+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
372
372
373instance Hashable CSEListLr
373instance Hashable CSEListLr
374
374
@@ -460,7 +460,7 @@ data CSEListSearchType
460 = Image
460 = Image
461 -- ^ @image@
461 -- ^ @image@
462 -- custom image search
462 -- custom image search
463− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
463+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
464
464
465instance Hashable CSEListSearchType
465instance Hashable CSEListSearchType
466
466
@@ -503,7 +503,7 @@ data CSEListImgSize
503 | CSELISXxlarge
503 | CSELISXxlarge
504 -- ^ @xxlarge@
504 -- ^ @xxlarge@
505 -- xxlarge
505 -- xxlarge
506− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
506+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
507
507
508instance Hashable CSEListImgSize
508instance Hashable CSEListImgSize
509
509
gogol-dataproc/gen/Network/Google/Resource/Dataproc/Media/Upload.hs+3−3
@@ -76,8 +76,8 @@ type MediaUploadResource =
76 QueryParam "bearer_token" Text :>
76 QueryParam "bearer_token" Text :>
77 QueryParam "callback" Text :>
77 QueryParam "callback" Text :>
78 QueryParam "alt" AltJSON :>
78 QueryParam "alt" AltJSON :>
79− QueryParam "uploadType" AltMedia :>
79+ QueryParam "uploadType" Multipart :>
80− MultipartRelated '[JSON] Media RequestBody :>
80+ MultipartRelated '[JSON] Media :>
81 Post '[JSON] Media
81 Post '[JSON] Media
82
82
83-- | Method for media upload. Upload is supported on the URI
83-- | Method for media upload. Upload is supported on the URI
@@ -216,7 +216,7 @@ instance GoogleRequest (MediaUpload MediaUpload')
216 _muBearerToken
216 _muBearerToken
217 _muCallback
217 _muCallback
218 (Just AltJSON)
218 (Just AltJSON)
219− (Just AltMedia)
219+ (Just Multipart)
220 _muPayload
220 _muPayload
221 body
221 body
222 dataprocService
222 dataprocService
gogol-datastore/gen/Network/Google/Datastore.hs+91−104
@@ -13,16 +13,16 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- API for accessing Google Cloud Datastore.
16+-- Google Cloud Datastore is a schemaless NoSQL datastore providing robust,
17+-- scalable storage for your application.
17--
18--
18−-- /See:/ <https://developers.google.com/datastore/ Google Cloud Datastore API Reference>
19+-- /See:/ <https://cloud.google.com/datastore/ Google Cloud Datastore API Reference>
19module Network.Google.Datastore
20module Network.Google.Datastore
20 (
21 (
21 -- * Service Configuration
22 -- * Service Configuration
22 datastoreService
23 datastoreService
23
24
24 -- * OAuth Scopes
25 -- * OAuth Scopes
25− , userInfoEmailScope
26 , cloudPlatformScope
26 , cloudPlatformScope
27 , datastoreScope
27 , datastoreScope
28
28
@@ -31,26 +31,32 @@ module Network.Google.Datastore
31
31
32 -- * Resources
32 -- * Resources
33
33
34− -- ** datastore.datasets.allocateIds
34+ -- ** datastore.projects.allocateIds
35− , module Network.Google.Resource.Datastore.DataSets.AllocateIds
35+ , module Network.Google.Resource.Datastore.Projects.AllocateIds
36
36
37− -- ** datastore.datasets.beginTransaction
37+ -- ** datastore.projects.beginTransaction
38− , module Network.Google.Resource.Datastore.DataSets.BeginTransaction
38+ , module Network.Google.Resource.Datastore.Projects.BeginTransaction
39
39
40− -- ** datastore.datasets.commit
40+ -- ** datastore.projects.commit
41− , module Network.Google.Resource.Datastore.DataSets.Commit
41+ , module Network.Google.Resource.Datastore.Projects.Commit
42
42
43− -- ** datastore.datasets.lookup
43+ -- ** datastore.projects.lookup
44− , module Network.Google.Resource.Datastore.DataSets.Lookup
44+ , module Network.Google.Resource.Datastore.Projects.Lookup
45
45
46− -- ** datastore.datasets.rollback
46+ -- ** datastore.projects.rollback
47− , module Network.Google.Resource.Datastore.DataSets.Rollback
47+ , module Network.Google.Resource.Datastore.Projects.Rollback
48
48
49− -- ** datastore.datasets.runQuery
49+ -- ** datastore.projects.runQuery
50− , module Network.Google.Resource.Datastore.DataSets.RunQuery
50+ , module Network.Google.Resource.Datastore.Projects.RunQuery
51
51
52 -- * Types
52 -- * Types
53
53
54+ -- ** LatLng
55+ , LatLng
56+ , latLng
57+ , llLatitude
58+ , llLongitude
59+
54 -- ** PropertyOrderDirection
60 -- ** PropertyOrderDirection
55 , PropertyOrderDirection (..)
61 , PropertyOrderDirection (..)
56
62
@@ -59,37 +65,25 @@ module Network.Google.Datastore
59 , rollbackRequest
65 , rollbackRequest
60 , rrTransaction
66 , rrTransaction
61
67
62− -- ** Property
63− , Property
64− , property
65− , pKeyValue
66− , pBlobKeyValue
67− , pDateTimeValue
68− , pIntegerValue
69− , pEntityValue
70− , pDoubleValue
71− , pStringValue
72− , pListValue
73− , pIndexed
74− , pBooleanValue
75− , pMeaning
76− , pBlobValue
77−
78 -- ** PartitionId
68 -- ** PartitionId
79 , PartitionId
69 , PartitionId
80 , partitionId
70 , partitionId
81− , piNamespace
71+ , piNamespaceId
82− , piDataSetId
72+ , piProjectId
83
73
84 -- ** QueryResultBatch
74 -- ** QueryResultBatch
85 , QueryResultBatch
75 , QueryResultBatch
86 , queryResultBatch
76 , queryResultBatch
87 , qrbSkippedResults
77 , qrbSkippedResults
78+ , qrbSkippedCursor
88 , qrbEntityResultType
79 , qrbEntityResultType
89 , qrbEntityResults
80 , qrbEntityResults
90 , qrbMoreResults
81 , qrbMoreResults
91 , qrbEndCursor
82 , qrbEndCursor
92
83
84+ -- ** CompositeFilterOp
85+ , CompositeFilterOp (..)
86+
93 -- ** EntityProperties
87 -- ** EntityProperties
94 , EntityProperties
88 , EntityProperties
95 , entityProperties
89 , entityProperties
@@ -98,7 +92,6 @@ module Network.Google.Datastore
98 -- ** BeginTransactionRequest
92 -- ** BeginTransactionRequest
99 , BeginTransactionRequest
93 , BeginTransactionRequest
100 , beginTransactionRequest
94 , beginTransactionRequest
101− , btrIsolationLevel
102
95
103 -- ** RunQueryRequest
96 -- ** RunQueryRequest
104 , RunQueryRequest
97 , RunQueryRequest
@@ -119,12 +112,9 @@ module Network.Google.Datastore
119 -- ** CompositeFilter
112 -- ** CompositeFilter
120 , CompositeFilter
113 , CompositeFilter
121 , compositeFilter
114 , compositeFilter
122− , cfOperator
115+ , cfOp
123 , cfFilters
116 , cfFilters
124
117
125− -- ** CompositeFilterOperator
126− , CompositeFilterOperator (..)
127−
128 -- ** QueryResultBatchMoreResults
118 -- ** QueryResultBatchMoreResults
129 , QueryResultBatchMoreResults (..)
119 , QueryResultBatchMoreResults (..)
130
120
@@ -132,50 +122,51 @@ module Network.Google.Datastore
132 , BeginTransactionResponse
122 , BeginTransactionResponse
133 , beginTransactionResponse
123 , beginTransactionResponse
134 , btrTransaction
124 , btrTransaction
135− , btrHeader
136
125
137 -- ** MutationResult
126 -- ** MutationResult
138 , MutationResult
127 , MutationResult
139 , mutationResult
128 , mutationResult
140− , mrInsertAutoIdKeys
129+ , mrKey
141− , mrIndexUpdates
142
130
143 -- ** AllocateIdsResponse
131 -- ** AllocateIdsResponse
144 , AllocateIdsResponse
132 , AllocateIdsResponse
145 , allocateIdsResponse
133 , allocateIdsResponse
146 , aKeys
134 , aKeys
147− , aHeader
148
135
149 -- ** GqlQuery
136 -- ** GqlQuery
150 , GqlQuery
137 , GqlQuery
151 , gqlQuery
138 , gqlQuery
152− , gqAllowLiteral
139+ , gqPositionalBindings
153− , gqNumberArgs
140+ , gqNamedBindings
154 , gqQueryString
141 , gqQueryString
155− , gqNameArgs
142+ , gqAllowLiterals
156
143
157 -- ** RunQueryResponse
144 -- ** RunQueryResponse
158 , RunQueryResponse
145 , RunQueryResponse
159 , runQueryResponse
146 , runQueryResponse
160− , rqrBatch
147+ , rBatch
161− , rqrHeader
148+ , rQuery
162
149
163 -- ** Value
150 -- ** Value
164 , Value
151 , Value
165 , value
152 , value
166 , vKeyValue
153 , vKeyValue
167− , vBlobKeyValue
154+ , vGeoPointValue
168− , vDateTimeValue
169 , vIntegerValue
155 , vIntegerValue
156+ , vTimestampValue
170 , vEntityValue
157 , vEntityValue
158+ , vExcludeFromIndexes
171 , vDoubleValue
159 , vDoubleValue
172 , vStringValue
160 , vStringValue
173− , vListValue
174− , vIndexed
175 , vBooleanValue
161 , vBooleanValue
176 , vMeaning
162 , vMeaning
163+ , vArrayValue
164+ , vNullValue
177 , vBlobValue
165 , vBlobValue
178
166
167+ -- ** ValueNullValue
168+ , ValueNullValue (..)
169+
179 -- ** LookupRequest
170 -- ** LookupRequest
180 , LookupRequest
171 , LookupRequest
181 , lookupRequest
172 , lookupRequest
@@ -189,75 +180,65 @@ module Network.Google.Datastore
189 , Mutation
180 , Mutation
190 , mutation
181 , mutation
191 , mInsert
182 , mInsert
192− , mForce
193− , mInsertAutoId
194 , mUpsert
183 , mUpsert
195 , mDelete
184 , mDelete
196 , mUpdate
185 , mUpdate
197
186
198− -- ** ResponseHeader
187+ -- ** GqlQueryNamedBindings
199− , ResponseHeader
188+ , GqlQueryNamedBindings
200− , responseHeader
189+ , gqlQueryNamedBindings
201− , rhKind
190+ , gqnbAddtional
202−
203− -- ** KeyPathElement
204− , KeyPathElement
205− , keyPathElement
206− , kpeKind
207− , kpeName
208− , kpeId
209
191
210 -- ** PropertyReference
192 -- ** PropertyReference
211 , PropertyReference
193 , PropertyReference
212 , propertyReference
194 , propertyReference
213 , prName
195 , prName
214
196
215− -- ** GqlQueryArg
216− , GqlQueryArg
217− , gqlQueryArg
218− , gqaCursor
219− , gqaValue
220− , gqaName
221−
222 -- ** Key
197 -- ** Key
223 , Key
198 , Key
224 , key
199 , key
225 , kPartitionId
200 , kPartitionId
226 , kPath
201 , kPath
227
202
228− -- ** PropertyFilterOperator
229− , PropertyFilterOperator (..)
230−
231 -- ** PropertyFilter
203 -- ** PropertyFilter
232 , PropertyFilter
204 , PropertyFilter
233 , propertyFilter
205 , propertyFilter
234 , pfProperty
206 , pfProperty
235− , pfOperator
207+ , pfOp
236 , pfValue
208 , pfValue
237
209
238 -- ** Query
210 -- ** Query
239 , Query
211 , Query
240 , query
212 , query
241− , qGroupBy
242 , qStartCursor
213 , qStartCursor
243 , qOffSet
214 , qOffSet
215+ , qKind
216+ , qDistinctOn
244 , qEndCursor
217 , qEndCursor
245 , qLimit
218 , qLimit
246 , qProjection
219 , qProjection
247 , qFilter
220 , qFilter
248− , qKinds
249 , qOrder
221 , qOrder
250
222
223+ -- ** ArrayValue
224+ , ArrayValue
225+ , arrayValue
226+ , avValues
227+
251 -- ** EntityResult
228 -- ** EntityResult
252 , EntityResult
229 , EntityResult
253 , entityResult
230 , entityResult
231+ , erCursor
254 , erEntity
232 , erEntity
255
233
234+ -- ** Xgafv
235+ , Xgafv (..)
236+
256 -- ** CommitResponse
237 -- ** CommitResponse
257 , CommitResponse
238 , CommitResponse
258 , commitResponse
239 , commitResponse
259− , crMutationResult
240+ , crIndexUpdates
260− , crHeader
241+ , crMutationResults
261
242
262 -- ** KindExpression
243 -- ** KindExpression
263 , KindExpression
244 , KindExpression
@@ -273,13 +254,11 @@ module Network.Google.Datastore
273 -- ** RollbackResponse
254 -- ** RollbackResponse
274 , RollbackResponse
255 , RollbackResponse
275 , rollbackResponse
256 , rollbackResponse
276− , rrHeader
277
257
278− -- ** PropertyExpression
258+ -- ** Projection
279− , PropertyExpression
259+ , Projection
280− , propertyExpression
260+ , projection
281− , peProperty
261+ , pProperty
282− , peAggregationFunction
283
262
284 -- ** Filter
263 -- ** Filter
285 , Filter
264 , Filter
@@ -287,22 +266,25 @@ module Network.Google.Datastore
287 , fCompositeFilter
266 , fCompositeFilter
288 , fPropertyFilter
267 , fPropertyFilter
289
268
290− -- ** BeginTransactionRequestIsolationLevel
269+ -- ** PropertyFilterOp
291− , BeginTransactionRequestIsolationLevel (..)
270+ , PropertyFilterOp (..)
292
271
293 -- ** CommitRequest
272 -- ** CommitRequest
294 , CommitRequest
273 , CommitRequest
295 , commitRequest
274 , commitRequest
275+ , crMutations
296 , crMode
276 , crMode
297− , crMutation
298 , crTransaction
277 , crTransaction
299− , crIgnoreReadOnly
300
278
301 -- ** CommitRequestMode
279 -- ** CommitRequestMode
302 , CommitRequestMode (..)
280 , CommitRequestMode (..)
303
281
304− -- ** PropertyExpressionAggregationFunction
282+ -- ** PathElement
305− , PropertyExpressionAggregationFunction (..)
283+ , PathElement
284+ , pathElement
285+ , peKind
286+ , peName
287+ , peId
306
288
307 -- ** Entity
289 -- ** Entity
308 , Entity
290 , Entity
@@ -316,23 +298,28 @@ module Network.Google.Datastore
316 , lrDeferred
298 , lrDeferred
317 , lrFound
299 , lrFound
318 , lrMissing
300 , lrMissing
319− , lrHeader
320
301
321 -- ** PropertyOrder
302 -- ** PropertyOrder
322 , PropertyOrder
303 , PropertyOrder
323 , propertyOrder
304 , propertyOrder
324 , poProperty
305 , poProperty
325 , poDirection
306 , poDirection
307+
308+ -- ** GqlQueryParameter
309+ , GqlQueryParameter
310+ , gqlQueryParameter
311+ , gqpCursor
312+ , gqpValue
326 ) where
313 ) where
327
314
328import Network.Google.Datastore.Types
315import Network.Google.Datastore.Types
329import Network.Google.Prelude
316import Network.Google.Prelude
330−import Network.Google.Resource.Datastore.DataSets.AllocateIds
317+import Network.Google.Resource.Datastore.Projects.AllocateIds
331−import Network.Google.Resource.Datastore.DataSets.BeginTransaction
318+import Network.Google.Resource.Datastore.Projects.BeginTransaction
332−import Network.Google.Resource.Datastore.DataSets.Commit
319+import Network.Google.Resource.Datastore.Projects.Commit
333−import Network.Google.Resource.Datastore.DataSets.Lookup
320+import Network.Google.Resource.Datastore.Projects.Lookup
334−import Network.Google.Resource.Datastore.DataSets.Rollback
321+import Network.Google.Resource.Datastore.Projects.Rollback
335−import Network.Google.Resource.Datastore.DataSets.RunQuery
322+import Network.Google.Resource.Datastore.Projects.RunQuery
336
323
337{- $resources
324{- $resources
338TODO
325TODO
@@ -340,9 +327,9 @@ TODO
340
327
341-- | Represents the entirety of the methods and resources available for the Google Cloud Datastore API service.
328-- | Represents the entirety of the methods and resources available for the Google Cloud Datastore API service.
342type DatastoreAPI =
329type DatastoreAPI =
343− DataSetsBeginTransactionResource :<|>
330+ ProjectsBeginTransactionResource :<|>
344− DataSetsAllocateIdsResource
331+ ProjectsAllocateIdsResource
345− :<|> DataSetsRunQueryResource
332+ :<|> ProjectsRunQueryResource
346− :<|> DataSetsRollbackResource
333+ :<|> ProjectsRollbackResource
347− :<|> DataSetsLookupResource
334+ :<|> ProjectsLookupResource
348− :<|> DataSetsCommitResource
335+ :<|> ProjectsCommitResource
gogol-datastore/gen/Network/Google/Datastore/Types.hs+67−85
@@ -20,10 +20,15 @@ module Network.Google.Datastore.Types
20 datastoreService
20 datastoreService
21
21
22 -- * OAuth Scopes
22 -- * OAuth Scopes
23− , userInfoEmailScope
24 , cloudPlatformScope
23 , cloudPlatformScope
25 , datastoreScope
24 , datastoreScope
26
25
26+ -- * LatLng
27+ , LatLng
28+ , latLng
29+ , llLatitude
30+ , llLongitude
31+
27 -- * PropertyOrderDirection
32 -- * PropertyOrderDirection
28 , PropertyOrderDirection (..)
33 , PropertyOrderDirection (..)
29
34
@@ -32,37 +37,25 @@ module Network.Google.Datastore.Types
32 , rollbackRequest
37 , rollbackRequest
33 , rrTransaction
38 , rrTransaction
34
39
35− -- * Property
36− , Property
37− , property
38− , pKeyValue
39− , pBlobKeyValue
40− , pDateTimeValue
41− , pIntegerValue
42− , pEntityValue
43− , pDoubleValue
44− , pStringValue
45− , pListValue
46− , pIndexed
47− , pBooleanValue
48− , pMeaning
49− , pBlobValue
50−
51 -- * PartitionId
40 -- * PartitionId
52 , PartitionId
41 , PartitionId
53 , partitionId
42 , partitionId
54− , piNamespace
43+ , piNamespaceId
55− , piDataSetId
44+ , piProjectId
56
45
57 -- * QueryResultBatch
46 -- * QueryResultBatch
58 , QueryResultBatch
47 , QueryResultBatch
59 , queryResultBatch
48 , queryResultBatch
60 , qrbSkippedResults
49 , qrbSkippedResults
50+ , qrbSkippedCursor
61 , qrbEntityResultType
51 , qrbEntityResultType
62 , qrbEntityResults
52 , qrbEntityResults
63 , qrbMoreResults
53 , qrbMoreResults
64 , qrbEndCursor
54 , qrbEndCursor
65
55
56+ -- * CompositeFilterOp
57+ , CompositeFilterOp (..)
58+
66 -- * EntityProperties
59 -- * EntityProperties
67 , EntityProperties
60 , EntityProperties
68 , entityProperties
61 , entityProperties
@@ -71,7 +64,6 @@ module Network.Google.Datastore.Types
71 -- * BeginTransactionRequest
64 -- * BeginTransactionRequest
72 , BeginTransactionRequest
65 , BeginTransactionRequest
73 , beginTransactionRequest
66 , beginTransactionRequest
74− , btrIsolationLevel
75
67
76 -- * RunQueryRequest
68 -- * RunQueryRequest
77 , RunQueryRequest
69 , RunQueryRequest
@@ -92,12 +84,9 @@ module Network.Google.Datastore.Types
92 -- * CompositeFilter
84 -- * CompositeFilter
93 , CompositeFilter
85 , CompositeFilter
94 , compositeFilter
86 , compositeFilter
95− , cfOperator
87+ , cfOp
96 , cfFilters
88 , cfFilters
97
89
98− -- * CompositeFilterOperator
99− , CompositeFilterOperator (..)
100−
101 -- * QueryResultBatchMoreResults
90 -- * QueryResultBatchMoreResults
102 , QueryResultBatchMoreResults (..)
91 , QueryResultBatchMoreResults (..)
103
92
@@ -105,50 +94,51 @@ module Network.Google.Datastore.Types
105 , BeginTransactionResponse
94 , BeginTransactionResponse
106 , beginTransactionResponse
95 , beginTransactionResponse
107 , btrTransaction
96 , btrTransaction
108− , btrHeader
109
97
110 -- * MutationResult
98 -- * MutationResult
111 , MutationResult
99 , MutationResult
112 , mutationResult
100 , mutationResult
113− , mrInsertAutoIdKeys
101+ , mrKey
114− , mrIndexUpdates
115
102
116 -- * AllocateIdsResponse
103 -- * AllocateIdsResponse
117 , AllocateIdsResponse
104 , AllocateIdsResponse
118 , allocateIdsResponse
105 , allocateIdsResponse
119 , aKeys
106 , aKeys
120− , aHeader
121
107
122 -- * GqlQuery
108 -- * GqlQuery
123 , GqlQuery
109 , GqlQuery
124 , gqlQuery
110 , gqlQuery
125− , gqAllowLiteral
111+ , gqPositionalBindings
126− , gqNumberArgs
112+ , gqNamedBindings
127 , gqQueryString
113 , gqQueryString
128− , gqNameArgs
114+ , gqAllowLiterals
129
115
130 -- * RunQueryResponse
116 -- * RunQueryResponse
131 , RunQueryResponse
117 , RunQueryResponse
132 , runQueryResponse
118 , runQueryResponse
133− , rqrBatch
119+ , rBatch
134− , rqrHeader
120+ , rQuery
135
121
136 -- * Value
122 -- * Value
137 , Value
123 , Value
138 , value
124 , value
139 , vKeyValue
125 , vKeyValue
140− , vBlobKeyValue
126+ , vGeoPointValue
141− , vDateTimeValue
142 , vIntegerValue
127 , vIntegerValue
128+ , vTimestampValue
143 , vEntityValue
129 , vEntityValue
130+ , vExcludeFromIndexes
144 , vDoubleValue
131 , vDoubleValue
145 , vStringValue
132 , vStringValue
146− , vListValue
147− , vIndexed
148 , vBooleanValue
133 , vBooleanValue
149 , vMeaning
134 , vMeaning
135+ , vArrayValue
136+ , vNullValue
150 , vBlobValue
137 , vBlobValue
151
138
139+ -- * ValueNullValue
140+ , ValueNullValue (..)
141+
152 -- * LookupRequest
142 -- * LookupRequest
153 , LookupRequest
143 , LookupRequest
154 , lookupRequest
144 , lookupRequest
@@ -162,75 +152,65 @@ module Network.Google.Datastore.Types
162 , Mutation
152 , Mutation
163 , mutation
153 , mutation
164 , mInsert
154 , mInsert
165− , mForce
166− , mInsertAutoId
167 , mUpsert
155 , mUpsert
168 , mDelete
156 , mDelete
169 , mUpdate
157 , mUpdate
170
158
171− -- * ResponseHeader
159+ -- * GqlQueryNamedBindings
172− , ResponseHeader
160+ , GqlQueryNamedBindings
173− , responseHeader
161+ , gqlQueryNamedBindings
174− , rhKind
162+ , gqnbAddtional
175−
176− -- * KeyPathElement
177− , KeyPathElement
178− , keyPathElement
179− , kpeKind
180− , kpeName
181− , kpeId
182
163
183 -- * PropertyReference
164 -- * PropertyReference
184 , PropertyReference
165 , PropertyReference
185 , propertyReference
166 , propertyReference
186 , prName
167 , prName
187
168
188− -- * GqlQueryArg
189− , GqlQueryArg
190− , gqlQueryArg
191− , gqaCursor
192− , gqaValue
193− , gqaName
194−
195 -- * Key
169 -- * Key
196 , Key
170 , Key
197 , key
171 , key
198 , kPartitionId
172 , kPartitionId
199 , kPath
173 , kPath
200
174
201− -- * PropertyFilterOperator
202− , PropertyFilterOperator (..)
203−
204 -- * PropertyFilter
175 -- * PropertyFilter
205 , PropertyFilter
176 , PropertyFilter
206 , propertyFilter
177 , propertyFilter
207 , pfProperty
178 , pfProperty
208− , pfOperator
179+ , pfOp
209 , pfValue
180 , pfValue
210
181
211 -- * Query
182 -- * Query
212 , Query
183 , Query
213 , query
184 , query
214− , qGroupBy
215 , qStartCursor
185 , qStartCursor
216 , qOffSet
186 , qOffSet
187+ , qKind
188+ , qDistinctOn
217 , qEndCursor
189 , qEndCursor
218 , qLimit
190 , qLimit
219 , qProjection
191 , qProjection
220 , qFilter
192 , qFilter
221− , qKinds
222 , qOrder
193 , qOrder
223
194
195+ -- * ArrayValue
196+ , ArrayValue
197+ , arrayValue
198+ , avValues
199+
224 -- * EntityResult
200 -- * EntityResult
225 , EntityResult
201 , EntityResult
226 , entityResult
202 , entityResult
203+ , erCursor
227 , erEntity
204 , erEntity
228
205
206+ -- * Xgafv
207+ , Xgafv (..)
208+
229 -- * CommitResponse
209 -- * CommitResponse
230 , CommitResponse
210 , CommitResponse
231 , commitResponse
211 , commitResponse
232− , crMutationResult
212+ , crIndexUpdates
233− , crHeader
213+ , crMutationResults
234
214
235 -- * KindExpression
215 -- * KindExpression
236 , KindExpression
216 , KindExpression
@@ -246,13 +226,11 @@ module Network.Google.Datastore.Types
246 -- * RollbackResponse
226 -- * RollbackResponse
247 , RollbackResponse
227 , RollbackResponse
248 , rollbackResponse
228 , rollbackResponse
249− , rrHeader
250
229
251− -- * PropertyExpression
230+ -- * Projection
252− , PropertyExpression
231+ , Projection
253− , propertyExpression
232+ , projection
254− , peProperty
233+ , pProperty
255− , peAggregationFunction
256
234
257 -- * Filter
235 -- * Filter
258 , Filter
236 , Filter
@@ -260,22 +238,25 @@ module Network.Google.Datastore.Types
260 , fCompositeFilter
238 , fCompositeFilter
261 , fPropertyFilter
239 , fPropertyFilter
262
240
263− -- * BeginTransactionRequestIsolationLevel
241+ -- * PropertyFilterOp
264− , BeginTransactionRequestIsolationLevel (..)
242+ , PropertyFilterOp (..)
265
243
266 -- * CommitRequest
244 -- * CommitRequest
267 , CommitRequest
245 , CommitRequest
268 , commitRequest
246 , commitRequest
247+ , crMutations
269 , crMode
248 , crMode
270− , crMutation
271 , crTransaction
249 , crTransaction
272− , crIgnoreReadOnly
273
250
274 -- * CommitRequestMode
251 -- * CommitRequestMode
275 , CommitRequestMode (..)
252 , CommitRequestMode (..)
276
253
277− -- * PropertyExpressionAggregationFunction
254+ -- * PathElement
278− , PropertyExpressionAggregationFunction (..)
255+ , PathElement
256+ , pathElement
257+ , peKind
258+ , peName
259+ , peId
279
260
280 -- * Entity
261 -- * Entity
281 , Entity
262 , Entity
@@ -289,28 +270,29 @@ module Network.Google.Datastore.Types
289 , lrDeferred
270 , lrDeferred
290 , lrFound
271 , lrFound
291 , lrMissing
272 , lrMissing
292− , lrHeader
293
273
294 -- * PropertyOrder
274 -- * PropertyOrder
295 , PropertyOrder
275 , PropertyOrder
296 , propertyOrder
276 , propertyOrder
297 , poProperty
277 , poProperty
298 , poDirection
278 , poDirection
279+
280+ -- * GqlQueryParameter
281+ , GqlQueryParameter
282+ , gqlQueryParameter
283+ , gqpCursor
284+ , gqpValue
299 ) where
285 ) where
300
286
301import Network.Google.Datastore.Types.Product
287import Network.Google.Datastore.Types.Product
302import Network.Google.Datastore.Types.Sum
288import Network.Google.Datastore.Types.Sum
303import Network.Google.Prelude
289import Network.Google.Prelude
304
290
305−-- | Default request referring to version 'v1beta2' of the Google Cloud Datastore API. This contains the host and root path used as a starting point for constructing service requests.
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.
306datastoreService :: ServiceConfig
292datastoreService :: ServiceConfig
307datastoreService
293datastoreService
308− = defaultService (ServiceId "datastore:v1beta2")
294+ = defaultService (ServiceId "datastore:v1beta3")
309− "www.googleapis.com"
295+ "datastore.googleapis.com"
310−
311−-- | View your email address
312−userInfoEmailScope :: Proxy '["https://www.googleapis.com/auth/userinfo.email"]
313−userInfoEmailScope = Proxy;
314
296
315-- | View and manage your data across Google Cloud Platform services
297-- | View and manage your data across Google Cloud Platform services
316cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
298cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
gogol-datastore/gen/Network/Google/Datastore/Types/Product.hs+720−859
@@ -20,6 +20,80 @@ module Network.Google.Datastore.Types.Product where
20import Network.Google.Datastore.Types.Sum
20import Network.Google.Datastore.Types.Sum
21import Network.Google.Prelude
21import Network.Google.Prelude
22
22
23+-- | An object representing a latitude\/longitude pair. This is expressed as
24+-- a pair of doubles representing degrees latitude and degrees longitude.
25+-- Unless specified otherwise, this must conform to the
26+-- <http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf WGS84 standard>.
27+-- Values must be within normalized ranges. Example of normalization code
28+-- in Python: def NormalizeLongitude(longitude): \"\"\"Wraps decimal
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
31+-- return r def NormalizeLatLng(latitude, longitude): \"\"\"Wraps decimal
32+-- degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90.0],
33+-- respectively.\"\"\" r = latitude % 360.0 if r \<= 90.0: return r,
34+-- NormalizeLongitude(longitude) elif r >= 270.0: return r - 360,
35+-- NormalizeLongitude(longitude) else: return 180 - r,
36+-- NormalizeLongitude(longitude + 180.0) assert 180.0 ==
37+-- NormalizeLongitude(180.0) assert -180.0 == NormalizeLongitude(-180.0)
38+-- assert -179.0 == NormalizeLongitude(181.0) assert (0.0, 0.0) ==
39+-- NormalizeLatLng(360.0, 0.0) assert (0.0, 0.0) == NormalizeLatLng(-360.0,
40+-- 0.0) assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) assert (-85.0,
41+-- -170.0) == NormalizeLatLng(-95.0, 10.0) assert (90.0, 10.0) ==
42+-- NormalizeLatLng(90.0, 10.0) assert (-90.0, -10.0) ==
43+-- NormalizeLatLng(-90.0, -10.0) assert (0.0, -170.0) ==
44+-- NormalizeLatLng(-180.0, 10.0) assert (0.0, -170.0) ==
45+-- NormalizeLatLng(180.0, 10.0) assert (-90.0, 10.0) ==
46+-- NormalizeLatLng(270.0, 10.0) assert (90.0, 10.0) ==
47+-- NormalizeLatLng(-270.0, 10.0)
48+--
49+-- /See:/ 'latLng' smart constructor.
50+data LatLng = LatLng'
51+ { _llLatitude :: !(Maybe (Textual Double))
52+ , _llLongitude :: !(Maybe (Textual Double))
53+ } deriving (Eq,Show,Data,Typeable,Generic)
54+
55+-- | Creates a value of 'LatLng' with the minimum fields required to make a request.
56+--
57+-- Use one of the following lenses to modify other fields as desired:
58+--
59+-- * 'llLatitude'
60+--
61+-- * 'llLongitude'
62+latLng
63+ :: LatLng
64+latLng =
65+ LatLng'
66+ { _llLatitude = Nothing
67+ , _llLongitude = Nothing
68+ }
69+
70+-- | The latitude in degrees. It must be in the range [-90.0, +90.0].
71+llLatitude :: Lens' LatLng (Maybe Double)
72+llLatitude
73+ = lens _llLatitude (\ s a -> s{_llLatitude = a}) .
74+ mapping _Coerce
75+
76+-- | The longitude in degrees. It must be in the range [-180.0, +180.0].
77+llLongitude :: Lens' LatLng (Maybe Double)
78+llLongitude
79+ = lens _llLongitude (\ s a -> s{_llLongitude = a}) .
80+ mapping _Coerce
81+
82+instance FromJSON LatLng where
83+ parseJSON
84+ = withObject "LatLng"
85+ (\ o ->
86+ LatLng' <$>
87+ (o .:? "latitude") <*> (o .:? "longitude"))
88+
89+instance ToJSON LatLng where
90+ toJSON LatLng'{..}
91+ = object
92+ (catMaybes
93+ [("latitude" .=) <$> _llLatitude,
94+ ("longitude" .=) <$> _llLongitude])
95+
96+-- | The request for google.datastore.v1beta3.Datastore.Rollback.
23--
97--
24-- /See:/ 'rollbackRequest' smart constructor.
98-- /See:/ 'rollbackRequest' smart constructor.
25newtype RollbackRequest = RollbackRequest'
99newtype RollbackRequest = RollbackRequest'
@@ -38,7 +112,8 @@ rollbackRequest =
38 { _rrTransaction = Nothing
112 { _rrTransaction = Nothing
39 }
113 }
40
114
41−-- | The transaction identifier, returned by a call to beginTransaction.
115+-- | The transaction identifier, returned by a call to
116+-- google.datastore.v1beta3.Datastore.BeginTransaction.
42rrTransaction :: Lens' RollbackRequest (Maybe Word8)
117rrTransaction :: Lens' RollbackRequest (Maybe Word8)
43rrTransaction
118rrTransaction
44 = lens _rrTransaction
119 = lens _rrTransaction
@@ -55,237 +130,70 @@ instance ToJSON RollbackRequest where
55 = object
130 = object
56 (catMaybes [("transaction" .=) <$> _rrTransaction])
131 (catMaybes [("transaction" .=) <$> _rrTransaction])
57
132
58−-- | An entity property.
133+-- | A partition ID identifies a grouping of entities. The grouping is always
59−--
134+-- by project and namespace, however the namespace ID may be empty. A
60−-- /See:/ 'property' smart constructor.
135+-- partition ID contains several dimensions: project ID and namespace ID.
61−data Property = Property'
136+-- Partition dimensions: - May be \`\"\"\`. - Must be valid UTF-8 bytes. -
62− { _pKeyValue :: !(Maybe Key)
137+-- Must have values that match regex \`[A-Za-z\\d\\.\\-_]{1,100}\` If the
63− , _pBlobKeyValue :: !(Maybe Text)
138+-- value of any dimension matches regex \`__.*__\`, the partition is
64− , _pDateTimeValue :: !(Maybe DateTime')
139+-- reserved\/read-only. A reserved\/read-only partition ID is forbidden in
65− , _pIntegerValue :: !(Maybe (Textual Int64))
140+-- certain documented contexts. Foreign partition IDs (in which the project
66− , _pEntityValue :: !(Maybe Entity)
141+-- ID does not match the context project ID ) are discouraged. Reads and
67− , _pDoubleValue :: !(Maybe (Textual Double))
142+-- writes of foreign partition IDs may fail if the project is not in an
68− , _pStringValue :: !(Maybe Text)
143+-- active state.
69− , _pListValue :: !(Maybe [Value])
70− , _pIndexed :: !(Maybe Bool)
71− , _pBooleanValue :: !(Maybe Bool)
72− , _pMeaning :: !(Maybe (Textual Int32))
73− , _pBlobValue :: !(Maybe (Textual Word8))
74− } deriving (Eq,Show,Data,Typeable,Generic)
75−
76−-- | Creates a value of 'Property' with the minimum fields required to make a request.
77−--
78−-- Use one of the following lenses to modify other fields as desired:
79−--
80−-- * 'pKeyValue'
81−--
82−-- * 'pBlobKeyValue'
83−--
84−-- * 'pDateTimeValue'
85−--
86−-- * 'pIntegerValue'
87−--
88−-- * 'pEntityValue'
89−--
90−-- * 'pDoubleValue'
91−--
92−-- * 'pStringValue'
93−--
94−-- * 'pListValue'
95−--
96−-- * 'pIndexed'
97−--
98−-- * 'pBooleanValue'
99−--
100−-- * 'pMeaning'
101−--
102−-- * 'pBlobValue'
103−property
104− :: Property
105−property =
106− Property'
107− { _pKeyValue = Nothing
108− , _pBlobKeyValue = Nothing
109− , _pDateTimeValue = Nothing
110− , _pIntegerValue = Nothing
111− , _pEntityValue = Nothing
112− , _pDoubleValue = Nothing
113− , _pStringValue = Nothing
114− , _pListValue = Nothing
115− , _pIndexed = Nothing
116− , _pBooleanValue = Nothing
117− , _pMeaning = Nothing
118− , _pBlobValue = Nothing
119− }
120−
121−-- | A key value.
122−pKeyValue :: Lens' Property (Maybe Key)
123−pKeyValue
124− = lens _pKeyValue (\ s a -> s{_pKeyValue = a})
125−
126−-- | A blob key value.
127−pBlobKeyValue :: Lens' Property (Maybe Text)
128−pBlobKeyValue
129− = lens _pBlobKeyValue
130− (\ s a -> s{_pBlobKeyValue = a})
131−
132−-- | A timestamp value.
133−pDateTimeValue :: Lens' Property (Maybe UTCTime)
134−pDateTimeValue
135− = lens _pDateTimeValue
136− (\ s a -> s{_pDateTimeValue = a})
137− . mapping _DateTime
138−
139−-- | An integer value.
140−pIntegerValue :: Lens' Property (Maybe Int64)
141−pIntegerValue
142− = lens _pIntegerValue
143− (\ s a -> s{_pIntegerValue = a})
144− . mapping _Coerce
145−
146−-- | An entity value. May have no key. May have a key with an incomplete key
147−-- path. May have a reserved\/read-only key.
148−pEntityValue :: Lens' Property (Maybe Entity)
149−pEntityValue
150− = lens _pEntityValue (\ s a -> s{_pEntityValue = a})
151−
152−-- | A double value.
153−pDoubleValue :: Lens' Property (Maybe Double)
154−pDoubleValue
155− = lens _pDoubleValue (\ s a -> s{_pDoubleValue = a})
156− . mapping _Coerce
157−
158−-- | A UTF-8 encoded string value. When indexed is true, may have at most 500
159−-- characters.
160−pStringValue :: Lens' Property (Maybe Text)
161−pStringValue
162− = lens _pStringValue (\ s a -> s{_pStringValue = a})
163−
164−-- | A list value. Cannot contain another list value. A Value instance that
165−-- sets field list_value must not set field meaning or field indexed.
166−pListValue :: Lens' Property [Value]
167−pListValue
168− = lens _pListValue (\ s a -> s{_pListValue = a}) .
169− _Default
170− . _Coerce
171−
172−-- | If the value should be indexed. The indexed property may be set for a
173−-- null value. When indexed is true, stringValue is limited to 500
174−-- characters and the blob value is limited to 500 bytes. Input values by
175−-- default have indexed set to true; however, you can explicitly set
176−-- indexed to true if you want. (An output value never has indexed
177−-- explicitly set to true.) If a value is itself an entity, it cannot have
178−-- indexed set to true.
179−pIndexed :: Lens' Property (Maybe Bool)
180−pIndexed = lens _pIndexed (\ s a -> s{_pIndexed = a})
181−
182−-- | A boolean value.
183−pBooleanValue :: Lens' Property (Maybe Bool)
184−pBooleanValue
185− = lens _pBooleanValue
186− (\ s a -> s{_pBooleanValue = a})
187−
188−-- | The meaning field is reserved and should not be used.
189−pMeaning :: Lens' Property (Maybe Int32)
190−pMeaning
191− = lens _pMeaning (\ s a -> s{_pMeaning = a}) .
192− mapping _Coerce
193−
194−-- | A blob value. May be a maximum of 1,000,000 bytes. When indexed is true,
195−-- may have at most 500 bytes.
196−pBlobValue :: Lens' Property (Maybe Word8)
197−pBlobValue
198− = lens _pBlobValue (\ s a -> s{_pBlobValue = a}) .
199− mapping _Coerce
200−
201−instance FromJSON Property where
202− parseJSON
203− = withObject "Property"
204− (\ o ->
205− Property' <$>
206− (o .:? "keyValue") <*> (o .:? "blobKeyValue") <*>
207− (o .:? "dateTimeValue")
208− <*> (o .:? "integerValue")
209− <*> (o .:? "entityValue")
210− <*> (o .:? "doubleValue")
211− <*> (o .:? "stringValue")
212− <*> (o .:? "listValue" .!= mempty)
213− <*> (o .:? "indexed")
214− <*> (o .:? "booleanValue")
215− <*> (o .:? "meaning")
216− <*> (o .:? "blobValue"))
217−
218−instance ToJSON Property where
219− toJSON Property'{..}
220− = object
221− (catMaybes
222− [("keyValue" .=) <$> _pKeyValue,
223− ("blobKeyValue" .=) <$> _pBlobKeyValue,
224− ("dateTimeValue" .=) <$> _pDateTimeValue,
225− ("integerValue" .=) <$> _pIntegerValue,
226− ("entityValue" .=) <$> _pEntityValue,
227− ("doubleValue" .=) <$> _pDoubleValue,
228− ("stringValue" .=) <$> _pStringValue,
229− ("listValue" .=) <$> _pListValue,
230− ("indexed" .=) <$> _pIndexed,
231− ("booleanValue" .=) <$> _pBooleanValue,
232− ("meaning" .=) <$> _pMeaning,
233− ("blobValue" .=) <$> _pBlobValue])
234−
235−-- | An identifier for a particular subset of entities. Entities are
236−-- partitioned into various subsets, each used by different datasets and
237−-- different namespaces within a dataset and so forth.
238--
144--
239-- /See:/ 'partitionId' smart constructor.
145-- /See:/ 'partitionId' smart constructor.
240data PartitionId = PartitionId'
146data PartitionId = PartitionId'
241− { _piNamespace :: !(Maybe Text)
147+ { _piNamespaceId :: !(Maybe Text)
242− , _piDataSetId :: !(Maybe Text)
148+ , _piProjectId :: !(Maybe Text)
243 } deriving (Eq,Show,Data,Typeable,Generic)
149 } deriving (Eq,Show,Data,Typeable,Generic)
244
150
245-- | Creates a value of 'PartitionId' with the minimum fields required to make a request.
151-- | Creates a value of 'PartitionId' with the minimum fields required to make a request.
246--
152--
247-- Use one of the following lenses to modify other fields as desired:
153-- Use one of the following lenses to modify other fields as desired:
248--
154--
249−-- * 'piNamespace'
155+-- * 'piNamespaceId'
250--
156--
251−-- * 'piDataSetId'
157+-- * 'piProjectId'
252partitionId
158partitionId
253 :: PartitionId
159 :: PartitionId
254partitionId =
160partitionId =
255 PartitionId'
161 PartitionId'
256− { _piNamespace = Nothing
162+ { _piNamespaceId = Nothing
257− , _piDataSetId = Nothing
163+ , _piProjectId = Nothing
258 }
164 }
259
165
260−-- | The namespace.
166+-- | If not empty, the ID of the namespace to which the entities belong.
261−piNamespace :: Lens' PartitionId (Maybe Text)
167+piNamespaceId :: Lens' PartitionId (Maybe Text)
262−piNamespace
168+piNamespaceId
263− = lens _piNamespace (\ s a -> s{_piNamespace = a})
169+ = lens _piNamespaceId
170+ (\ s a -> s{_piNamespaceId = a})
264
171
265−-- | The dataset ID.
172+-- | The ID of the project to which the entities belong.
266−piDataSetId :: Lens' PartitionId (Maybe Text)
173+piProjectId :: Lens' PartitionId (Maybe Text)
267−piDataSetId
174+piProjectId
268− = lens _piDataSetId (\ s a -> s{_piDataSetId = a})
175+ = lens _piProjectId (\ s a -> s{_piProjectId = a})
269
176
270instance FromJSON PartitionId where
177instance FromJSON PartitionId where
271 parseJSON
178 parseJSON
272 = withObject "PartitionId"
179 = withObject "PartitionId"
273 (\ o ->
180 (\ o ->
274 PartitionId' <$>
181 PartitionId' <$>
275− (o .:? "namespace") <*> (o .:? "datasetId"))
182+ (o .:? "namespaceId") <*> (o .:? "projectId"))
276
183
277instance ToJSON PartitionId where
184instance ToJSON PartitionId where
278 toJSON PartitionId'{..}
185 toJSON PartitionId'{..}
279 = object
186 = object
280 (catMaybes
187 (catMaybes
281− [("namespace" .=) <$> _piNamespace,
188+ [("namespaceId" .=) <$> _piNamespaceId,
282− ("datasetId" .=) <$> _piDataSetId])
189+ ("projectId" .=) <$> _piProjectId])
283
190
284-- | A batch of results produced by a query.
191-- | A batch of results produced by a query.
285--
192--
286-- /See:/ 'queryResultBatch' smart constructor.
193-- /See:/ 'queryResultBatch' smart constructor.
287data QueryResultBatch = QueryResultBatch'
194data QueryResultBatch = QueryResultBatch'
288 { _qrbSkippedResults :: !(Maybe (Textual Int32))
195 { _qrbSkippedResults :: !(Maybe (Textual Int32))
196+ , _qrbSkippedCursor :: !(Maybe (Textual Word8))
289 , _qrbEntityResultType :: !(Maybe QueryResultBatchEntityResultType)
197 , _qrbEntityResultType :: !(Maybe QueryResultBatchEntityResultType)
290 , _qrbEntityResults :: !(Maybe [EntityResult])
198 , _qrbEntityResults :: !(Maybe [EntityResult])
291 , _qrbMoreResults :: !(Maybe QueryResultBatchMoreResults)
199 , _qrbMoreResults :: !(Maybe QueryResultBatchMoreResults)
@@ -298,6 +206,8 @@ data QueryResultBatch = QueryResultBatch'
298--
206--
299-- * 'qrbSkippedResults'
207-- * 'qrbSkippedResults'
300--
208--
209+-- * 'qrbSkippedCursor'
210+--
301-- * 'qrbEntityResultType'
211-- * 'qrbEntityResultType'
302--
212--
303-- * 'qrbEntityResults'
213-- * 'qrbEntityResults'
@@ -310,22 +220,29 @@ queryResultBatch
310queryResultBatch =
220queryResultBatch =
311 QueryResultBatch'
221 QueryResultBatch'
312 { _qrbSkippedResults = Nothing
222 { _qrbSkippedResults = Nothing
223+ , _qrbSkippedCursor = Nothing
313 , _qrbEntityResultType = Nothing
224 , _qrbEntityResultType = Nothing
314 , _qrbEntityResults = Nothing
225 , _qrbEntityResults = Nothing
315 , _qrbMoreResults = Nothing
226 , _qrbMoreResults = Nothing
316 , _qrbEndCursor = Nothing
227 , _qrbEndCursor = Nothing
317 }
228 }
318
229
319−-- | The number of results skipped because of Query.offset.
230+-- | The number of results skipped, typically because of an offset.
320qrbSkippedResults :: Lens' QueryResultBatch (Maybe Int32)
231qrbSkippedResults :: Lens' QueryResultBatch (Maybe Int32)
321qrbSkippedResults
232qrbSkippedResults
322 = lens _qrbSkippedResults
233 = lens _qrbSkippedResults
323 (\ s a -> s{_qrbSkippedResults = a})
234 (\ s a -> s{_qrbSkippedResults = a})
324 . mapping _Coerce
235 . mapping _Coerce
325
236
237+-- | A cursor that points to the position after the last skipped result. Will
238+-- be set when \`skipped_results\` != 0.
239+qrbSkippedCursor :: Lens' QueryResultBatch (Maybe Word8)
240+qrbSkippedCursor
241+ = lens _qrbSkippedCursor
242+ (\ s a -> s{_qrbSkippedCursor = a})
243+ . mapping _Coerce
244+
326−-- | The result type for every entity in entityResults. full for full
245+-- | The result type for every entity in \`entity_results\`.
327−-- entities, projection for entities with only projected properties,
328−-- keyOnly for entities with only a key.
329qrbEntityResultType :: Lens' QueryResultBatch (Maybe QueryResultBatchEntityResultType)
246qrbEntityResultType :: Lens' QueryResultBatch (Maybe QueryResultBatchEntityResultType)
330qrbEntityResultType
247qrbEntityResultType
331 = lens _qrbEntityResultType
248 = lens _qrbEntityResultType
@@ -339,16 +256,13 @@ qrbEntityResults
339 . _Default
256 . _Default
340 . _Coerce
257 . _Coerce
341
258
342−-- | The state of the query after the current batch. One of notFinished,
259+-- | The state of the query after the current batch.
343−-- moreResultsAfterLimit, noMoreResults.
344qrbMoreResults :: Lens' QueryResultBatch (Maybe QueryResultBatchMoreResults)
260qrbMoreResults :: Lens' QueryResultBatch (Maybe QueryResultBatchMoreResults)
345qrbMoreResults
261qrbMoreResults
346 = lens _qrbMoreResults
262 = lens _qrbMoreResults
347 (\ s a -> s{_qrbMoreResults = a})
263 (\ s a -> s{_qrbMoreResults = a})
348
264
349-- | A cursor that points to the position after the last result in the batch.
265-- | A cursor that points to the position after the last result in the batch.
350−-- May be absent. TODO(arfuller): Once all plans produce cursors update
351−-- documentation here.
352qrbEndCursor :: Lens' QueryResultBatch (Maybe Word8)
266qrbEndCursor :: Lens' QueryResultBatch (Maybe Word8)
353qrbEndCursor
267qrbEndCursor
354 = lens _qrbEndCursor (\ s a -> s{_qrbEndCursor = a})
268 = lens _qrbEndCursor (\ s a -> s{_qrbEndCursor = a})
@@ -359,8 +273,8 @@ instance FromJSON QueryResultBatch where
359 = withObject "QueryResultBatch"
273 = withObject "QueryResultBatch"
360 (\ o ->
274 (\ o ->
361 QueryResultBatch' <$>
275 QueryResultBatch' <$>
362− (o .:? "skippedResults") <*>
276+ (o .:? "skippedResults") <*> (o .:? "skippedCursor")
363− (o .:? "entityResultType")
277+ <*> (o .:? "entityResultType")
364 <*> (o .:? "entityResults" .!= mempty)
278 <*> (o .:? "entityResults" .!= mempty)
365 <*> (o .:? "moreResults")
279 <*> (o .:? "moreResults")
366 <*> (o .:? "endCursor"))
280 <*> (o .:? "endCursor"))
@@ -370,16 +284,20 @@ instance ToJSON QueryResultBatch where
370 = object
284 = object
371 (catMaybes
285 (catMaybes
372 [("skippedResults" .=) <$> _qrbSkippedResults,
286 [("skippedResults" .=) <$> _qrbSkippedResults,
287+ ("skippedCursor" .=) <$> _qrbSkippedCursor,
373 ("entityResultType" .=) <$> _qrbEntityResultType,
288 ("entityResultType" .=) <$> _qrbEntityResultType,
374 ("entityResults" .=) <$> _qrbEntityResults,
289 ("entityResults" .=) <$> _qrbEntityResults,
375 ("moreResults" .=) <$> _qrbMoreResults,
290 ("moreResults" .=) <$> _qrbMoreResults,
376 ("endCursor" .=) <$> _qrbEndCursor])
291 ("endCursor" .=) <$> _qrbEndCursor])
377
292
378−-- | The entity\'s properties.
293+-- | The entity\'s properties. The map\'s keys are property names. A property
294+-- name matching regex \`__.*__\` is reserved. A reserved property name is
295+-- forbidden in certain documented contexts. The name must not contain more
296+-- than 500 characters. The name cannot be \`\"\"\`.
379--
297--
380-- /See:/ 'entityProperties' smart constructor.
298-- /See:/ 'entityProperties' smart constructor.
381newtype EntityProperties = EntityProperties'
299newtype EntityProperties = EntityProperties'
382− { _epAddtional :: HashMap Text Property
300+ { _epAddtional :: HashMap Text Value
383 } deriving (Eq,Show,Data,Typeable,Generic)
301 } deriving (Eq,Show,Data,Typeable,Generic)
384
302
385-- | Creates a value of 'EntityProperties' with the minimum fields required to make a request.
303-- | Creates a value of 'EntityProperties' with the minimum fields required to make a request.
@@ -388,18 +306,14 @@ newtype EntityProperties = EntityProperties'
388--
306--
389-- * 'epAddtional'
307-- * 'epAddtional'
390entityProperties
308entityProperties
391− :: HashMap Text Property -- ^ 'epAddtional'
309+ :: HashMap Text Value -- ^ 'epAddtional'
392 -> EntityProperties
310 -> EntityProperties
393entityProperties pEpAddtional_ =
311entityProperties pEpAddtional_ =
394 EntityProperties'
312 EntityProperties'
395 { _epAddtional = _Coerce # pEpAddtional_
313 { _epAddtional = _Coerce # pEpAddtional_
396 }
314 }
397
315
398−-- | The name of the property. A property name matching regex \"__.*__\" is
399−-- reserved. A reserved property name is forbidden in certain documented
400−-- contexts. The name must not contain more than 500 characters. Cannot be
401−-- \"\".
402−epAddtional :: Lens' EntityProperties (HashMap Text Property)
316+epAddtional :: Lens' EntityProperties (HashMap Text Value)
403epAddtional
317epAddtional
404 = lens _epAddtional (\ s a -> s{_epAddtional = a}) .
318 = lens _epAddtional (\ s a -> s{_epAddtional = a}) .
405 _Coerce
319 _Coerce
@@ -412,48 +326,28 @@ instance FromJSON EntityProperties where
412instance ToJSON EntityProperties where
326instance ToJSON EntityProperties where
413 toJSON = toJSON . _epAddtional
327 toJSON = toJSON . _epAddtional
414
328
329+-- | The request for google.datastore.v1beta3.Datastore.BeginTransaction.
415--
330--
416-- /See:/ 'beginTransactionRequest' smart constructor.
331-- /See:/ 'beginTransactionRequest' smart constructor.
332+data BeginTransactionRequest =
417−newtype BeginTransactionRequest = BeginTransactionRequest'
333+ BeginTransactionRequest'
418− { _btrIsolationLevel :: Maybe BeginTransactionRequestIsolationLevel
419− } deriving (Eq,Show,Data,Typeable,Generic)
334+ deriving (Eq,Show,Data,Typeable,Generic)
420
335
421-- | Creates a value of 'BeginTransactionRequest' with the minimum fields required to make a request.
336-- | Creates a value of 'BeginTransactionRequest' with the minimum fields required to make a request.
422--
337--
423−-- Use one of the following lenses to modify other fields as desired:
424−--
425−-- * 'btrIsolationLevel'
426beginTransactionRequest
338beginTransactionRequest
427 :: BeginTransactionRequest
339 :: BeginTransactionRequest
428−beginTransactionRequest =
340+beginTransactionRequest = BeginTransactionRequest'
429− BeginTransactionRequest'
430− { _btrIsolationLevel = Nothing
431− }
432−
433−-- | The transaction isolation level. Either snapshot or serializable. The
434−-- default isolation level is snapshot isolation, which means that another
435−-- transaction may not concurrently modify the data that is modified by
436−-- this transaction. Optionally, a transaction can request to be made
437−-- serializable which means that another transaction cannot concurrently
438−-- modify the data that is read or modified by this transaction.
439−btrIsolationLevel :: Lens' BeginTransactionRequest (Maybe BeginTransactionRequestIsolationLevel)
440−btrIsolationLevel
441− = lens _btrIsolationLevel
442− (\ s a -> s{_btrIsolationLevel = a})
443
341
444instance FromJSON BeginTransactionRequest where
342instance FromJSON BeginTransactionRequest where
445 parseJSON
343 parseJSON
446 = withObject "BeginTransactionRequest"
344 = withObject "BeginTransactionRequest"
447− (\ o ->
448− BeginTransactionRequest' <$>
345+ (\ o -> pure BeginTransactionRequest')
449− (o .:? "isolationLevel"))
450
346
451instance ToJSON BeginTransactionRequest where
347instance ToJSON BeginTransactionRequest where
452− toJSON BeginTransactionRequest'{..}
348+ toJSON = const emptyObject
453− = object
454− (catMaybes
455− [("isolationLevel" .=) <$> _btrIsolationLevel])
456
349
350+-- | The request for google.datastore.v1beta3.Datastore.RunQuery.
457--
351--
458-- /See:/ 'runQueryRequest' smart constructor.
352-- /See:/ 'runQueryRequest' smart constructor.
459data RunQueryRequest = RunQueryRequest'
353data RunQueryRequest = RunQueryRequest'
@@ -484,25 +378,20 @@ runQueryRequest =
484 , _rqrReadOptions = Nothing
378 , _rqrReadOptions = Nothing
485 }
379 }
486
380
487−-- | Entities are partitioned into subsets, identified by a dataset (usually
381+-- | Entities are partitioned into subsets, identified by a partition ID.
488−-- implicitly specified by the project) and namespace ID. Queries are
489−-- scoped to a single partition. This partition ID is normalized with the
382+-- Queries are scoped to a single partition. This partition ID is
490−-- standard default context partition ID, but all other partition IDs in
383+-- normalized with the standard default context partition ID.
491−-- RunQueryRequest are normalized with this partition ID as the context
492−-- partition ID.
493rqrPartitionId :: Lens' RunQueryRequest (Maybe PartitionId)
384rqrPartitionId :: Lens' RunQueryRequest (Maybe PartitionId)
494rqrPartitionId
385rqrPartitionId
495 = lens _rqrPartitionId
386 = lens _rqrPartitionId
496 (\ s a -> s{_rqrPartitionId = a})
387 (\ s a -> s{_rqrPartitionId = a})
497
388
498−-- | The GQL query to run. Either this field or field query must be set, but
389+-- | The GQL query to run.
499−-- not both.
500rqrGqlQuery :: Lens' RunQueryRequest (Maybe GqlQuery)
390rqrGqlQuery :: Lens' RunQueryRequest (Maybe GqlQuery)
501rqrGqlQuery
391rqrGqlQuery
502 = lens _rqrGqlQuery (\ s a -> s{_rqrGqlQuery = a})
392 = lens _rqrGqlQuery (\ s a -> s{_rqrGqlQuery = a})
503
393
504−-- | The query to run. Either this field or field gql_query must be set, but
394+-- | The query to run.
505−-- not both.
506rqrQuery :: Lens' RunQueryRequest (Maybe Query)
395rqrQuery :: Lens' RunQueryRequest (Maybe Query)
507rqrQuery = lens _rqrQuery (\ s a -> s{_rqrQuery = a})
396rqrQuery = lens _rqrQuery (\ s a -> s{_rqrQuery = a})
508
397
@@ -530,6 +419,7 @@ instance ToJSON RunQueryRequest where
530 ("query" .=) <$> _rqrQuery,
419 ("query" .=) <$> _rqrQuery,
531 ("readOptions" .=) <$> _rqrReadOptions])
420 ("readOptions" .=) <$> _rqrReadOptions])
532
421
422+-- | The request for google.datastore.v1beta3.Datastore.AllocateIds.
533--
423--
534-- /See:/ 'allocateIdsRequest' smart constructor.
424-- /See:/ 'allocateIdsRequest' smart constructor.
535newtype AllocateIdsRequest = AllocateIdsRequest'
425newtype AllocateIdsRequest = AllocateIdsRequest'
@@ -548,8 +438,8 @@ allocateIdsRequest =
548 { _airKeys = Nothing
438 { _airKeys = Nothing
549 }
439 }
550
440
551−-- | A list of keys with incomplete key paths to allocate IDs for. No key may
441+-- | A list of keys with incomplete key paths for which to allocate IDs. No
552−-- be reserved\/read-only.
442+-- key may be reserved\/read-only.
553airKeys :: Lens' AllocateIdsRequest [Key]
443airKeys :: Lens' AllocateIdsRequest [Key]
554airKeys
444airKeys
555 = lens _airKeys (\ s a -> s{_airKeys = a}) . _Default
445 = lens _airKeys (\ s a -> s{_airKeys = a}) . _Default
@@ -565,35 +455,32 @@ instance ToJSON AllocateIdsRequest where
565 toJSON AllocateIdsRequest'{..}
455 toJSON AllocateIdsRequest'{..}
566 = object (catMaybes [("keys" .=) <$> _airKeys])
456 = object (catMaybes [("keys" .=) <$> _airKeys])
567
457
568−-- | A filter that merges the multiple other filters using the given
458+-- | A filter that merges multiple other filters using the given operator.
569−-- operation.
570--
459--
571-- /See:/ 'compositeFilter' smart constructor.
460-- /See:/ 'compositeFilter' smart constructor.
572data CompositeFilter = CompositeFilter'
461data CompositeFilter = CompositeFilter'
573− { _cfOperator :: !(Maybe CompositeFilterOperator)
462+ { _cfOp :: !(Maybe CompositeFilterOp)
574− , _cfFilters :: !(Maybe [Filter])
463+ , _cfFilters :: !(Maybe [Filter])
575 } deriving (Eq,Show,Data,Typeable,Generic)
464 } deriving (Eq,Show,Data,Typeable,Generic)
576
465
577-- | Creates a value of 'CompositeFilter' with the minimum fields required to make a request.
466-- | Creates a value of 'CompositeFilter' with the minimum fields required to make a request.
578--
467--
579-- Use one of the following lenses to modify other fields as desired:
468-- Use one of the following lenses to modify other fields as desired:
580--
469--
581−-- * 'cfOperator'
470+-- * 'cfOp'
582--
471--
583-- * 'cfFilters'
472-- * 'cfFilters'
584compositeFilter
473compositeFilter
585 :: CompositeFilter
474 :: CompositeFilter
586compositeFilter =
475compositeFilter =
587 CompositeFilter'
476 CompositeFilter'
588− { _cfOperator = Nothing
477+ { _cfOp = Nothing
589 , _cfFilters = Nothing
478 , _cfFilters = Nothing
590 }
479 }
591
480
592−-- | The operator for combining multiple filters. Only \"and\" is currently
481+-- | The operator for combining multiple filters.
593−-- supported.
594−cfOperator :: Lens' CompositeFilter (Maybe CompositeFilterOperator)
482+cfOp :: Lens' CompositeFilter (Maybe CompositeFilterOp)
595−cfOperator
483+cfOp = lens _cfOp (\ s a -> s{_cfOp = a})
596− = lens _cfOperator (\ s a -> s{_cfOperator = a})
597
484
598-- | The list of filters to combine. Must contain at least one filter.
485-- | The list of filters to combine. Must contain at least one filter.
599cfFilters :: Lens' CompositeFilter [Filter]
486cfFilters :: Lens' CompositeFilter [Filter]
@@ -607,20 +494,19 @@ instance FromJSON CompositeFilter where
607 = withObject "CompositeFilter"
494 = withObject "CompositeFilter"
608 (\ o ->
495 (\ o ->
609 CompositeFilter' <$>
496 CompositeFilter' <$>
610− (o .:? "operator") <*> (o .:? "filters" .!= mempty))
497+ (o .:? "op") <*> (o .:? "filters" .!= mempty))
611
498
612instance ToJSON CompositeFilter where
499instance ToJSON CompositeFilter where
613 toJSON CompositeFilter'{..}
500 toJSON CompositeFilter'{..}
614 = object
501 = object
615 (catMaybes
502 (catMaybes
616− [("operator" .=) <$> _cfOperator,
617− ("filters" .=) <$> _cfFilters])
503+ [("op" .=) <$> _cfOp, ("filters" .=) <$> _cfFilters])
618
504
505+-- | The response for google.datastore.v1beta3.Datastore.BeginTransaction.
619--
506--
620-- /See:/ 'beginTransactionResponse' smart constructor.
507-- /See:/ 'beginTransactionResponse' smart constructor.
621−data BeginTransactionResponse = BeginTransactionResponse'
508+newtype BeginTransactionResponse = BeginTransactionResponse'
622− { _btrTransaction :: !(Maybe (Textual Word8))
509+ { _btrTransaction :: Maybe (Textual Word8)
623− , _btrHeader :: !(Maybe ResponseHeader)
624 } deriving (Eq,Show,Data,Typeable,Generic)
510 } deriving (Eq,Show,Data,Typeable,Generic)
625
511
626-- | Creates a value of 'BeginTransactionResponse' with the minimum fields required to make a request.
512-- | Creates a value of 'BeginTransactionResponse' with the minimum fields required to make a request.
@@ -628,14 +514,11 @@ data BeginTransactionResponse = BeginTransactionResponse'
628-- Use one of the following lenses to modify other fields as desired:
514-- Use one of the following lenses to modify other fields as desired:
629--
515--
630-- * 'btrTransaction'
516-- * 'btrTransaction'
631−--
632−-- * 'btrHeader'
633beginTransactionResponse
517beginTransactionResponse
634 :: BeginTransactionResponse
518 :: BeginTransactionResponse
635beginTransactionResponse =
519beginTransactionResponse =
636 BeginTransactionResponse'
520 BeginTransactionResponse'
637 { _btrTransaction = Nothing
521 { _btrTransaction = Nothing
638− , _btrHeader = Nothing
639 }
522 }
640
523
641-- | The transaction identifier (always present).
524-- | The transaction identifier (always present).
@@ -645,82 +528,55 @@ btrTransaction
645 (\ s a -> s{_btrTransaction = a})
528 (\ s a -> s{_btrTransaction = a})
646 . mapping _Coerce
529 . mapping _Coerce
647
530
648−btrHeader :: Lens' BeginTransactionResponse (Maybe ResponseHeader)
649−btrHeader
650− = lens _btrHeader (\ s a -> s{_btrHeader = a})
651−
652instance FromJSON BeginTransactionResponse where
531instance FromJSON BeginTransactionResponse where
653 parseJSON
532 parseJSON
654 = withObject "BeginTransactionResponse"
533 = withObject "BeginTransactionResponse"
655 (\ o ->
534 (\ o ->
656− BeginTransactionResponse' <$>
535+ BeginTransactionResponse' <$> (o .:? "transaction"))
657− (o .:? "transaction") <*> (o .:? "header"))
658
536
659instance ToJSON BeginTransactionResponse where
537instance ToJSON BeginTransactionResponse where
660 toJSON BeginTransactionResponse'{..}
538 toJSON BeginTransactionResponse'{..}
661 = object
539 = object
662− (catMaybes
663− [("transaction" .=) <$> _btrTransaction,
540+ (catMaybes [("transaction" .=) <$> _btrTransaction])
664− ("header" .=) <$> _btrHeader])
665
541
542+-- | The result of applying a mutation.
666--
543--
667-- /See:/ 'mutationResult' smart constructor.
544-- /See:/ 'mutationResult' smart constructor.
668−data MutationResult = MutationResult'
545+newtype MutationResult = MutationResult'
669− { _mrInsertAutoIdKeys :: !(Maybe [Key])
546+ { _mrKey :: Maybe Key
670− , _mrIndexUpdates :: !(Maybe (Textual Int32))
671 } deriving (Eq,Show,Data,Typeable,Generic)
547 } deriving (Eq,Show,Data,Typeable,Generic)
672
548
673-- | Creates a value of 'MutationResult' with the minimum fields required to make a request.
549-- | Creates a value of 'MutationResult' with the minimum fields required to make a request.
674--
550--
675-- Use one of the following lenses to modify other fields as desired:
551-- Use one of the following lenses to modify other fields as desired:
676--
552--
677−-- * 'mrInsertAutoIdKeys'
553+-- * 'mrKey'
678−--
679−-- * 'mrIndexUpdates'
680mutationResult
554mutationResult
681 :: MutationResult
555 :: MutationResult
682mutationResult =
556mutationResult =
683 MutationResult'
557 MutationResult'
684− { _mrInsertAutoIdKeys = Nothing
685− , _mrIndexUpdates = Nothing
558+ { _mrKey = Nothing
686 }
559 }
687
560
688−-- | Keys for insertAutoId entities. One per entity from the request, in the
561+-- | The automatically allocated key. Set only when the mutation allocated a
689−-- same order.
562+-- key.
690−mrInsertAutoIdKeys :: Lens' MutationResult [Key]
691−mrInsertAutoIdKeys
692− = lens _mrInsertAutoIdKeys
693− (\ s a -> s{_mrInsertAutoIdKeys = a})
694− . _Default
695− . _Coerce
696−
697−-- | Number of index writes.
698−mrIndexUpdates :: Lens' MutationResult (Maybe Int32)
563+mrKey :: Lens' MutationResult (Maybe Key)
699−mrIndexUpdates
564+mrKey = lens _mrKey (\ s a -> s{_mrKey = a})
700− = lens _mrIndexUpdates
701− (\ s a -> s{_mrIndexUpdates = a})
702− . mapping _Coerce
703
565
704instance FromJSON MutationResult where
566instance FromJSON MutationResult where
705 parseJSON
567 parseJSON
706 = withObject "MutationResult"
568 = withObject "MutationResult"
707− (\ o ->
708− MutationResult' <$>
569+ (\ o -> MutationResult' <$> (o .:? "key"))
709− (o .:? "insertAutoIdKeys" .!= mempty) <*>
710− (o .:? "indexUpdates"))
711
570
712instance ToJSON MutationResult where
571instance ToJSON MutationResult where
713 toJSON MutationResult'{..}
572 toJSON MutationResult'{..}
714− = object
715− (catMaybes
573+ = object (catMaybes [("key" .=) <$> _mrKey])
716− [("insertAutoIdKeys" .=) <$> _mrInsertAutoIdKeys,
717− ("indexUpdates" .=) <$> _mrIndexUpdates])
718
574
575+-- | The response for google.datastore.v1beta3.Datastore.AllocateIds.
719--
576--
720-- /See:/ 'allocateIdsResponse' smart constructor.
577-- /See:/ 'allocateIdsResponse' smart constructor.
721−data AllocateIdsResponse = AllocateIdsResponse'
578+newtype AllocateIdsResponse = AllocateIdsResponse'
722− { _aKeys :: !(Maybe [Key])
579+ { _aKeys :: Maybe [Key]
723− , _aHeader :: !(Maybe ResponseHeader)
724 } deriving (Eq,Show,Data,Typeable,Generic)
580 } deriving (Eq,Show,Data,Typeable,Generic)
725
581
726-- | Creates a value of 'AllocateIdsResponse' with the minimum fields required to make a request.
582-- | Creates a value of 'AllocateIdsResponse' with the minimum fields required to make a request.
@@ -728,14 +584,11 @@ data AllocateIdsResponse = AllocateIdsResponse'
728-- Use one of the following lenses to modify other fields as desired:
584-- Use one of the following lenses to modify other fields as desired:
729--
585--
730-- * 'aKeys'
586-- * 'aKeys'
731−--
732−-- * 'aHeader'
733allocateIdsResponse
587allocateIdsResponse
734 :: AllocateIdsResponse
588 :: AllocateIdsResponse
735allocateIdsResponse =
589allocateIdsResponse =
736 AllocateIdsResponse'
590 AllocateIdsResponse'
737 { _aKeys = Nothing
591 { _aKeys = Nothing
738− , _aHeader = Nothing
739 }
592 }
740
593
741-- | The keys specified in the request (in the same order), each with its key
594-- | The keys specified in the request (in the same order), each with its key
@@ -745,166 +598,165 @@ aKeys
745 = lens _aKeys (\ s a -> s{_aKeys = a}) . _Default .
598 = lens _aKeys (\ s a -> s{_aKeys = a}) . _Default .
746 _Coerce
599 _Coerce
747
600
748−aHeader :: Lens' AllocateIdsResponse (Maybe ResponseHeader)
749−aHeader = lens _aHeader (\ s a -> s{_aHeader = a})
750−
751instance FromJSON AllocateIdsResponse where
601instance FromJSON AllocateIdsResponse where
752 parseJSON
602 parseJSON
753 = withObject "AllocateIdsResponse"
603 = withObject "AllocateIdsResponse"
754 (\ o ->
604 (\ o ->
755− AllocateIdsResponse' <$>
605+ AllocateIdsResponse' <$> (o .:? "keys" .!= mempty))
756− (o .:? "keys" .!= mempty) <*> (o .:? "header"))
757
606
758instance ToJSON AllocateIdsResponse where
607instance ToJSON AllocateIdsResponse where
759 toJSON AllocateIdsResponse'{..}
608 toJSON AllocateIdsResponse'{..}
760− = object
761− (catMaybes
609+ = object (catMaybes [("keys" .=) <$> _aKeys])
762− [("keys" .=) <$> _aKeys, ("header" .=) <$> _aHeader])
763
610
764−-- | A GQL query.
611+-- | A [GQL
612+-- query](https:\/\/cloud.google.com\/datastore\/docs\/apis\/gql\/gql_reference).
765--
613--
766-- /See:/ 'gqlQuery' smart constructor.
614-- /See:/ 'gqlQuery' smart constructor.
767data GqlQuery = GqlQuery'
615data GqlQuery = GqlQuery'
768− { _gqAllowLiteral :: !(Maybe Bool)
616+ { _gqPositionalBindings :: !(Maybe [GqlQueryParameter])
769− , _gqNumberArgs :: !(Maybe [GqlQueryArg])
617+ , _gqNamedBindings :: !(Maybe GqlQueryNamedBindings)
770− , _gqQueryString :: !(Maybe Text)
618+ , _gqQueryString :: !(Maybe Text)
771− , _gqNameArgs :: !(Maybe [GqlQueryArg])
619+ , _gqAllowLiterals :: !(Maybe Bool)
772 } deriving (Eq,Show,Data,Typeable,Generic)
620 } deriving (Eq,Show,Data,Typeable,Generic)
773
621
774-- | Creates a value of 'GqlQuery' with the minimum fields required to make a request.
622-- | Creates a value of 'GqlQuery' with the minimum fields required to make a request.
775--
623--
776-- Use one of the following lenses to modify other fields as desired:
624-- Use one of the following lenses to modify other fields as desired:
777--
625--
778−-- * 'gqAllowLiteral'
626+-- * 'gqPositionalBindings'
779--
627--
780−-- * 'gqNumberArgs'
628+-- * 'gqNamedBindings'
781--
629--
782-- * 'gqQueryString'
630-- * 'gqQueryString'
783--
631--
784−-- * 'gqNameArgs'
632+-- * 'gqAllowLiterals'
785gqlQuery
633gqlQuery
786 :: GqlQuery
634 :: GqlQuery
787gqlQuery =
635gqlQuery =
788 GqlQuery'
636 GqlQuery'
789− { _gqAllowLiteral = Nothing
637+ { _gqPositionalBindings = Nothing
790− , _gqNumberArgs = Nothing
638+ , _gqNamedBindings = Nothing
791 , _gqQueryString = Nothing
639 , _gqQueryString = Nothing
792− , _gqNameArgs = Nothing
640+ , _gqAllowLiterals = Nothing
793 }
641 }
794
642
795−-- | When false, the query string must not contain a literal.
796−gqAllowLiteral :: Lens' GqlQuery (Maybe Bool)
797−gqAllowLiteral
798− = lens _gqAllowLiteral
799− (\ s a -> s{_gqAllowLiteral = a})
800−
801−-- | Numbered binding site \'1 references the first numbered argument,
643+-- | Numbered binding site \'1 references the first numbered parameter,
802−-- effectively using 1-based indexing, rather than the usual 0. A numbered
644+-- effectively using 1-based indexing, rather than the usual 0. For each
803−-- argument must NOT set field GqlQueryArg.name. For each binding site
804−-- numbered i in query_string, there must be an ith numbered argument. The
645+-- binding site numbered i in \`query_string\`, there must be an i-th
805−-- inverse must also be true.
646+-- numbered parameter. The inverse must also be true.
806−gqNumberArgs :: Lens' GqlQuery [GqlQueryArg]
647+gqPositionalBindings :: Lens' GqlQuery [GqlQueryParameter]
807−gqNumberArgs
648+gqPositionalBindings
808− = lens _gqNumberArgs (\ s a -> s{_gqNumberArgs = a})
649+ = lens _gqPositionalBindings
650+ (\ s a -> s{_gqPositionalBindings = a})
809 . _Default
651 . _Default
810 . _Coerce
652 . _Coerce
811
653
812−-- | The query string.
654+-- | For each non-reserved named binding site in the query string, there must
655+-- be a named parameter with that name, but not necessarily the inverse.
656+-- Key must match regex \`A-Za-z_$*\`, must not match regex \`__.*__\`, and
657+-- must not be \`\"\"\`.
658+gqNamedBindings :: Lens' GqlQuery (Maybe GqlQueryNamedBindings)
659+gqNamedBindings
660+ = lens _gqNamedBindings
661+ (\ s a -> s{_gqNamedBindings = a})
662+
663+-- | A string of the format described
664+-- [here](https:\/\/cloud.google.com\/datastore\/docs\/apis\/gql\/gql_reference).
813gqQueryString :: Lens' GqlQuery (Maybe Text)
665gqQueryString :: Lens' GqlQuery (Maybe Text)
814gqQueryString
666gqQueryString
815 = lens _gqQueryString
667 = lens _gqQueryString
816 (\ s a -> s{_gqQueryString = a})
668 (\ s a -> s{_gqQueryString = a})
817
669
818−-- | A named argument must set field GqlQueryArg.name. No two named arguments
670+-- | When false, the query string must not contain any literals and instead
819−-- may have the same name. For each non-reserved named binding site in the
671+-- must bind all values. For example, \`SELECT * FROM Kind WHERE a =
820−-- query string, there must be a named argument with that name, but not
672+-- \'string literal\'\` is not allowed, while \`SELECT * FROM Kind WHERE a
821−-- necessarily the inverse.
673+-- = \'value\` is.
822−gqNameArgs :: Lens' GqlQuery [GqlQueryArg]
674+gqAllowLiterals :: Lens' GqlQuery (Maybe Bool)
823−gqNameArgs
675+gqAllowLiterals
824− = lens _gqNameArgs (\ s a -> s{_gqNameArgs = a}) .
676+ = lens _gqAllowLiterals
825− _Default
677+ (\ s a -> s{_gqAllowLiterals = a})
826− . _Coerce
827
678
828instance FromJSON GqlQuery where
679instance FromJSON GqlQuery where
829 parseJSON
680 parseJSON
830 = withObject "GqlQuery"
681 = withObject "GqlQuery"
831 (\ o ->
682 (\ o ->
832 GqlQuery' <$>
683 GqlQuery' <$>
833− (o .:? "allowLiteral") <*>
684+ (o .:? "positionalBindings" .!= mempty) <*>
834− (o .:? "numberArgs" .!= mempty)
685+ (o .:? "namedBindings")
835 <*> (o .:? "queryString")
686 <*> (o .:? "queryString")
836− <*> (o .:? "nameArgs" .!= mempty))
687+ <*> (o .:? "allowLiterals"))
837
688
838instance ToJSON GqlQuery where
689instance ToJSON GqlQuery where
839 toJSON GqlQuery'{..}
690 toJSON GqlQuery'{..}
840 = object
691 = object
841 (catMaybes
692 (catMaybes
842− [("allowLiteral" .=) <$> _gqAllowLiteral,
693+ [("positionalBindings" .=) <$> _gqPositionalBindings,
843− ("numberArgs" .=) <$> _gqNumberArgs,
694+ ("namedBindings" .=) <$> _gqNamedBindings,
844 ("queryString" .=) <$> _gqQueryString,
695 ("queryString" .=) <$> _gqQueryString,
845− ("nameArgs" .=) <$> _gqNameArgs])
696+ ("allowLiterals" .=) <$> _gqAllowLiterals])
846
697
698+-- | The response for google.datastore.v1beta3.Datastore.RunQuery.
847--
699--
848-- /See:/ 'runQueryResponse' smart constructor.
700-- /See:/ 'runQueryResponse' smart constructor.
849data RunQueryResponse = RunQueryResponse'
701data RunQueryResponse = RunQueryResponse'
850− { _rqrBatch :: !(Maybe QueryResultBatch)
702+ { _rBatch :: !(Maybe QueryResultBatch)
851− , _rqrHeader :: !(Maybe ResponseHeader)
703+ , _rQuery :: !(Maybe Query)
852 } deriving (Eq,Show,Data,Typeable,Generic)
704 } deriving (Eq,Show,Data,Typeable,Generic)
853
705
854-- | Creates a value of 'RunQueryResponse' with the minimum fields required to make a request.
706-- | Creates a value of 'RunQueryResponse' with the minimum fields required to make a request.
855--
707--
856-- Use one of the following lenses to modify other fields as desired:
708-- Use one of the following lenses to modify other fields as desired:
857--
709--
858−-- * 'rqrBatch'
710+-- * 'rBatch'
859--
711--
860−-- * 'rqrHeader'
712+-- * 'rQuery'
861runQueryResponse
713runQueryResponse
862 :: RunQueryResponse
714 :: RunQueryResponse
863runQueryResponse =
715runQueryResponse =
864 RunQueryResponse'
716 RunQueryResponse'
865− { _rqrBatch = Nothing
717+ { _rBatch = Nothing
866− , _rqrHeader = Nothing
718+ , _rQuery = Nothing
867 }
719 }
868
720
869-- | A batch of query results (always present).
721-- | A batch of query results (always present).
870−rqrBatch :: Lens' RunQueryResponse (Maybe QueryResultBatch)
722+rBatch :: Lens' RunQueryResponse (Maybe QueryResultBatch)
871−rqrBatch = lens _rqrBatch (\ s a -> s{_rqrBatch = a})
723+rBatch = lens _rBatch (\ s a -> s{_rBatch = a})
872
724
725+-- | The parsed form of the \`GqlQuery\` from the request, if it was set.
873−rqrHeader :: Lens' RunQueryResponse (Maybe ResponseHeader)
726+rQuery :: Lens' RunQueryResponse (Maybe Query)
874−rqrHeader
727+rQuery = lens _rQuery (\ s a -> s{_rQuery = a})
875− = lens _rqrHeader (\ s a -> s{_rqrHeader = a})
876
728
877instance FromJSON RunQueryResponse where
729instance FromJSON RunQueryResponse where
878 parseJSON
730 parseJSON
879 = withObject "RunQueryResponse"
731 = withObject "RunQueryResponse"
880 (\ o ->
732 (\ o ->
881 RunQueryResponse' <$>
733 RunQueryResponse' <$>
882− (o .:? "batch") <*> (o .:? "header"))
734+ (o .:? "batch") <*> (o .:? "query"))
883
735
884instance ToJSON RunQueryResponse where
736instance ToJSON RunQueryResponse where
885 toJSON RunQueryResponse'{..}
737 toJSON RunQueryResponse'{..}
886 = object
738 = object
887 (catMaybes
739 (catMaybes
888− [("batch" .=) <$> _rqrBatch,
740+ [("batch" .=) <$> _rBatch, ("query" .=) <$> _rQuery])
889− ("header" .=) <$> _rqrHeader])
890
741
891-- | A message that can hold any of the supported value types and associated
742-- | A message that can hold any of the supported value types and associated
892-- metadata.
743-- metadata.
893--
744--
894-- /See:/ 'value' smart constructor.
745-- /See:/ 'value' smart constructor.
895data Value = Value'
746data Value = Value'
896− { _vKeyValue :: !(Maybe Key)
747+ { _vKeyValue :: !(Maybe Key)
897− , _vBlobKeyValue :: !(Maybe Text)
748+ , _vGeoPointValue :: !(Maybe LatLng)
898− , _vDateTimeValue :: !(Maybe DateTime')
899− , _vIntegerValue :: !(Maybe (Textual Int64))
749+ , _vIntegerValue :: !(Maybe (Textual Int64))
750+ , _vTimestampValue :: !(Maybe DateTime')
900− , _vEntityValue :: !(Maybe Entity)
751+ , _vEntityValue :: !(Maybe Entity)
752+ , _vExcludeFromIndexes :: !(Maybe Bool)
901− , _vDoubleValue :: !(Maybe (Textual Double))
753+ , _vDoubleValue :: !(Maybe (Textual Double))
902− , _vStringValue :: !(Maybe Text)
754+ , _vStringValue :: !(Maybe Text)
903− , _vListValue :: !(Maybe [Value])
904− , _vIndexed :: !(Maybe Bool)
905− , _vBooleanValue :: !(Maybe Bool)
755+ , _vBooleanValue :: !(Maybe Bool)
906− , _vMeaning :: !(Maybe (Textual Int32))
756+ , _vMeaning :: !(Maybe (Textual Int32))
757+ , _vArrayValue :: !(Maybe ArrayValue)
758+ , _vNullValue :: !(Maybe ValueNullValue)
907− , _vBlobValue :: !(Maybe (Textual Word8))
759+ , _vBlobValue :: !(Maybe (Textual Word8))
908 } deriving (Eq,Show,Data,Typeable,Generic)
760 } deriving (Eq,Show,Data,Typeable,Generic)
909
761
910-- | Creates a value of 'Value' with the minimum fields required to make a request.
762-- | Creates a value of 'Value' with the minimum fields required to make a request.
@@ -913,42 +765,45 @@ data Value = Value'
913--
765--
914-- * 'vKeyValue'
766-- * 'vKeyValue'
915--
767--
916−-- * 'vBlobKeyValue'
768+-- * 'vGeoPointValue'
917−--
918−-- * 'vDateTimeValue'
919--
769--
920-- * 'vIntegerValue'
770-- * 'vIntegerValue'
921--
771--
772+-- * 'vTimestampValue'
773+--
922-- * 'vEntityValue'
774-- * 'vEntityValue'
923--
775--
776+-- * 'vExcludeFromIndexes'
777+--
924-- * 'vDoubleValue'
778-- * 'vDoubleValue'
925--
779--
926-- * 'vStringValue'
780-- * 'vStringValue'
927--
781--
928−-- * 'vListValue'
929−--
930−-- * 'vIndexed'
931−--
932-- * 'vBooleanValue'
782-- * 'vBooleanValue'
933--
783--
934-- * 'vMeaning'
784-- * 'vMeaning'
935--
785--
786+-- * 'vArrayValue'
787+--
788+-- * 'vNullValue'
789+--
936-- * 'vBlobValue'
790-- * 'vBlobValue'
937value
791value
938 :: Value
792 :: Value
939value =
793value =
940 Value'
794 Value'
941 { _vKeyValue = Nothing
795 { _vKeyValue = Nothing
942− , _vBlobKeyValue = Nothing
796+ , _vGeoPointValue = Nothing
943− , _vDateTimeValue = Nothing
944 , _vIntegerValue = Nothing
797 , _vIntegerValue = Nothing
798+ , _vTimestampValue = Nothing
945 , _vEntityValue = Nothing
799 , _vEntityValue = Nothing
800+ , _vExcludeFromIndexes = Nothing
946 , _vDoubleValue = Nothing
801 , _vDoubleValue = Nothing
947 , _vStringValue = Nothing
802 , _vStringValue = Nothing
948− , _vListValue = Nothing
949− , _vIndexed = Nothing
950 , _vBooleanValue = Nothing
803 , _vBooleanValue = Nothing
951 , _vMeaning = Nothing
804 , _vMeaning = Nothing
805+ , _vArrayValue = Nothing
806+ , _vNullValue = Nothing
952 , _vBlobValue = Nothing
807 , _vBlobValue = Nothing
953 }
808 }
954
809
@@ -957,18 +812,11 @@ vKeyValue :: Lens' Value (Maybe Key)
957vKeyValue
812vKeyValue
958 = lens _vKeyValue (\ s a -> s{_vKeyValue = a})
813 = lens _vKeyValue (\ s a -> s{_vKeyValue = a})
959
814
960−-- | A blob key value.
815+-- | A geo point value representing a point on the surface of Earth.
961−vBlobKeyValue :: Lens' Value (Maybe Text)
962−vBlobKeyValue
963− = lens _vBlobKeyValue
964− (\ s a -> s{_vBlobKeyValue = a})
965−
966−-- | A timestamp value.
967−vDateTimeValue :: Lens' Value (Maybe UTCTime)
816+vGeoPointValue :: Lens' Value (Maybe LatLng)
968−vDateTimeValue
817+vGeoPointValue
969− = lens _vDateTimeValue
818+ = lens _vGeoPointValue
970− (\ s a -> s{_vDateTimeValue = a})
819+ (\ s a -> s{_vGeoPointValue = a})
971− . mapping _DateTime
972
820
973-- | An integer value.
821-- | An integer value.
974vIntegerValue :: Lens' Value (Maybe Int64)
822vIntegerValue :: Lens' Value (Maybe Int64)
@@ -977,56 +825,68 @@ vIntegerValue
977 (\ s a -> s{_vIntegerValue = a})
825 (\ s a -> s{_vIntegerValue = a})
978 . mapping _Coerce
826 . mapping _Coerce
979
827
828+-- | A timestamp value. When stored in the Datastore, precise only to
829+-- microseconds; any additional precision is rounded down.
830+vTimestampValue :: Lens' Value (Maybe UTCTime)
831+vTimestampValue
832+ = lens _vTimestampValue
833+ (\ s a -> s{_vTimestampValue = a})
834+ . mapping _DateTime
835+
980−-- | An entity value. May have no key. May have a key with an incomplete key
836+-- | An entity value. - May have no key. - May have a key with an incomplete
981−-- path. May have a reserved\/read-only key.
837+-- key path. - May have a reserved\/read-only key.
982vEntityValue :: Lens' Value (Maybe Entity)
838vEntityValue :: Lens' Value (Maybe Entity)
983vEntityValue
839vEntityValue
984 = lens _vEntityValue (\ s a -> s{_vEntityValue = a})
840 = lens _vEntityValue (\ s a -> s{_vEntityValue = a})
985
841
842+-- | If the value should be excluded from all indexes including those defined
843+-- explicitly.
844+vExcludeFromIndexes :: Lens' Value (Maybe Bool)
845+vExcludeFromIndexes
846+ = lens _vExcludeFromIndexes
847+ (\ s a -> s{_vExcludeFromIndexes = a})
848+
986-- | A double value.
849-- | A double value.
987vDoubleValue :: Lens' Value (Maybe Double)
850vDoubleValue :: Lens' Value (Maybe Double)
988vDoubleValue
851vDoubleValue
989 = lens _vDoubleValue (\ s a -> s{_vDoubleValue = a})
852 = lens _vDoubleValue (\ s a -> s{_vDoubleValue = a})
990 . mapping _Coerce
853 . mapping _Coerce
991
854
992−-- | A UTF-8 encoded string value. When indexed is true, may have at most 500
855+-- | A UTF-8 encoded string value. When \`exclude_from_indexes\` is false (it
993−-- characters.
856+-- is indexed) , may have at most 1500 bytes. Otherwise, may be set to at
857+-- least 1,000,000 bytes.
994vStringValue :: Lens' Value (Maybe Text)
858vStringValue :: Lens' Value (Maybe Text)
995vStringValue
859vStringValue
996 = lens _vStringValue (\ s a -> s{_vStringValue = a})
860 = lens _vStringValue (\ s a -> s{_vStringValue = a})
997
861
998−-- | A list value. Cannot contain another list value. A Value instance that
999−-- sets field list_value must not set field meaning or field indexed.
1000−vListValue :: Lens' Value [Value]
1001−vListValue
1002− = lens _vListValue (\ s a -> s{_vListValue = a}) .
1003− _Default
1004− . _Coerce
1005−
1006−-- | If the value should be indexed. The indexed property may be set for a
1007−-- null value. When indexed is true, stringValue is limited to 500
1008−-- characters and the blob value is limited to 500 bytes. Input values by
1009−-- default have indexed set to true; however, you can explicitly set
1010−-- indexed to true if you want. (An output value never has indexed
1011−-- explicitly set to true.) If a value is itself an entity, it cannot have
1012−-- indexed set to true.
1013−vIndexed :: Lens' Value (Maybe Bool)
1014−vIndexed = lens _vIndexed (\ s a -> s{_vIndexed = a})
1015−
1016-- | A boolean value.
862-- | A boolean value.
1017vBooleanValue :: Lens' Value (Maybe Bool)
863vBooleanValue :: Lens' Value (Maybe Bool)
1018vBooleanValue
864vBooleanValue
1019 = lens _vBooleanValue
865 = lens _vBooleanValue
1020 (\ s a -> s{_vBooleanValue = a})
866 (\ s a -> s{_vBooleanValue = a})
1021
867
1022−-- | The meaning field is reserved and should not be used.
868+-- | The \`meaning\` field should only be populated for backwards
869+-- compatibility.
1023vMeaning :: Lens' Value (Maybe Int32)
870vMeaning :: Lens' Value (Maybe Int32)
1024vMeaning
871vMeaning
1025 = lens _vMeaning (\ s a -> s{_vMeaning = a}) .
872 = lens _vMeaning (\ s a -> s{_vMeaning = a}) .
1026 mapping _Coerce
873 mapping _Coerce
1027
874
875+-- | An array value. Cannot contain another array value. A \`Value\` instance
876+-- that sets field \`array_value\` must not set fields \`meaning\` or
877+-- \`exclude_from_indexes\`.
878+vArrayValue :: Lens' Value (Maybe ArrayValue)
879+vArrayValue
880+ = lens _vArrayValue (\ s a -> s{_vArrayValue = a})
881+
882+-- | A null value.
883+vNullValue :: Lens' Value (Maybe ValueNullValue)
884+vNullValue
885+ = lens _vNullValue (\ s a -> s{_vNullValue = a})
886+
1028−-- | A blob value. May be a maximum of 1,000,000 bytes. When indexed is true,
887+-- | A blob value. May have at most 1,000,000 bytes. When
1029−-- may have at most 500 bytes.
888+-- \`exclude_from_indexes\` is false, may have at most 1500 bytes. In JSON
889+-- requests, must be base64-encoded.
1030vBlobValue :: Lens' Value (Maybe Word8)
890vBlobValue :: Lens' Value (Maybe Word8)
1031vBlobValue
891vBlobValue
1032 = lens _vBlobValue (\ s a -> s{_vBlobValue = a}) .
892 = lens _vBlobValue (\ s a -> s{_vBlobValue = a}) .
@@ -1037,16 +897,17 @@ instance FromJSON Value where
1037 = withObject "Value"
897 = withObject "Value"
1038 (\ o ->
898 (\ o ->
1039 Value' <$>
899 Value' <$>
1040− (o .:? "keyValue") <*> (o .:? "blobKeyValue") <*>
900+ (o .:? "keyValue") <*> (o .:? "geoPointValue") <*>
1041− (o .:? "dateTimeValue")
1042− <*> (o .:? "integerValue")
901+ (o .:? "integerValue")
902+ <*> (o .:? "timestampValue")
1043 <*> (o .:? "entityValue")
903 <*> (o .:? "entityValue")
904+ <*> (o .:? "excludeFromIndexes")
1044 <*> (o .:? "doubleValue")
905 <*> (o .:? "doubleValue")
1045 <*> (o .:? "stringValue")
906 <*> (o .:? "stringValue")
1046− <*> (o .:? "listValue" .!= mempty)
1047− <*> (o .:? "indexed")
1048 <*> (o .:? "booleanValue")
907 <*> (o .:? "booleanValue")
1049 <*> (o .:? "meaning")
908 <*> (o .:? "meaning")
909+ <*> (o .:? "arrayValue")
910+ <*> (o .:? "nullValue")
1050 <*> (o .:? "blobValue"))
911 <*> (o .:? "blobValue"))
1051
912
1052instance ToJSON Value where
913instance ToJSON Value where
@@ -1054,18 +915,20 @@ instance ToJSON Value where
1054 = object
915 = object
1055 (catMaybes
916 (catMaybes
1056 [("keyValue" .=) <$> _vKeyValue,
917 [("keyValue" .=) <$> _vKeyValue,
1057− ("blobKeyValue" .=) <$> _vBlobKeyValue,
918+ ("geoPointValue" .=) <$> _vGeoPointValue,
1058− ("dateTimeValue" .=) <$> _vDateTimeValue,
1059 ("integerValue" .=) <$> _vIntegerValue,
919 ("integerValue" .=) <$> _vIntegerValue,
920+ ("timestampValue" .=) <$> _vTimestampValue,
1060 ("entityValue" .=) <$> _vEntityValue,
921 ("entityValue" .=) <$> _vEntityValue,
922+ ("excludeFromIndexes" .=) <$> _vExcludeFromIndexes,
1061 ("doubleValue" .=) <$> _vDoubleValue,
923 ("doubleValue" .=) <$> _vDoubleValue,
1062 ("stringValue" .=) <$> _vStringValue,
924 ("stringValue" .=) <$> _vStringValue,
1063− ("listValue" .=) <$> _vListValue,
1064− ("indexed" .=) <$> _vIndexed,
1065 ("booleanValue" .=) <$> _vBooleanValue,
925 ("booleanValue" .=) <$> _vBooleanValue,
1066 ("meaning" .=) <$> _vMeaning,
926 ("meaning" .=) <$> _vMeaning,
927+ ("arrayValue" .=) <$> _vArrayValue,
928+ ("nullValue" .=) <$> _vNullValue,
1067 ("blobValue" .=) <$> _vBlobValue])
929 ("blobValue" .=) <$> _vBlobValue])
1068
930
931+-- | The request for google.datastore.v1beta3.Datastore.Lookup.
1069--
932--
1070-- /See:/ 'lookupRequest' smart constructor.
933-- /See:/ 'lookupRequest' smart constructor.
1071data LookupRequest = LookupRequest'
934data LookupRequest = LookupRequest'
@@ -1088,13 +951,13 @@ lookupRequest =
1088 , _lrReadOptions = Nothing
951 , _lrReadOptions = Nothing
1089 }
952 }
1090
953
1091−-- | Keys of entities to look up from the datastore.
954+-- | Keys of entities to look up.
1092lrKeys :: Lens' LookupRequest [Key]
955lrKeys :: Lens' LookupRequest [Key]
1093lrKeys
956lrKeys
1094 = lens _lrKeys (\ s a -> s{_lrKeys = a}) . _Default .
957 = lens _lrKeys (\ s a -> s{_lrKeys = a}) . _Default .
1095 _Coerce
958 _Coerce
1096
959
1097−-- | Options for this lookup request. Optional.
960+-- | The options for this lookup request.
1098lrReadOptions :: Lens' LookupRequest (Maybe ReadOptions)
961lrReadOptions :: Lens' LookupRequest (Maybe ReadOptions)
1099lrReadOptions
962lrReadOptions
1100 = lens _lrReadOptions
963 = lens _lrReadOptions
@@ -1114,16 +977,14 @@ instance ToJSON LookupRequest where
1114 [("keys" .=) <$> _lrKeys,
977 [("keys" .=) <$> _lrKeys,
1115 ("readOptions" .=) <$> _lrReadOptions])
978 ("readOptions" .=) <$> _lrReadOptions])
1116
979
1117−-- | A set of changes to apply.
980+-- | A mutation to apply to an entity.
1118--
981--
1119-- /See:/ 'mutation' smart constructor.
982-- /See:/ 'mutation' smart constructor.
1120data Mutation = Mutation'
983data Mutation = Mutation'
1121− { _mInsert :: !(Maybe [Entity])
1122− , _mForce :: !(Maybe Bool)
1123− , _mInsertAutoId :: !(Maybe [Entity])
984+ { _mInsert :: !(Maybe Entity)
1124− , _mUpsert :: !(Maybe [Entity])
985+ , _mUpsert :: !(Maybe Entity)
1125− , _mDelete :: !(Maybe [Key])
986+ , _mDelete :: !(Maybe Key)
1126− , _mUpdate :: !(Maybe [Entity])
987+ , _mUpdate :: !(Maybe Entity)
1127 } deriving (Eq,Show,Data,Typeable,Generic)
988 } deriving (Eq,Show,Data,Typeable,Generic)
1128
989
1129-- | Creates a value of 'Mutation' with the minimum fields required to make a request.
990-- | Creates a value of 'Mutation' with the minimum fields required to make a request.
@@ -1132,10 +993,6 @@ data Mutation = Mutation'
1132--
993--
1133-- * 'mInsert'
994-- * 'mInsert'
1134--
995--
1135−-- * 'mForce'
1136−--
1137−-- * 'mInsertAutoId'
1138−--
1139-- * 'mUpsert'
996-- * 'mUpsert'
1140--
997--
1141-- * 'mDelete'
998-- * 'mDelete'
@@ -1146,172 +1003,87 @@ mutation
1146mutation =
1003mutation =
1147 Mutation'
1004 Mutation'
1148 { _mInsert = Nothing
1005 { _mInsert = Nothing
1149− , _mForce = Nothing
1150− , _mInsertAutoId = Nothing
1151 , _mUpsert = Nothing
1006 , _mUpsert = Nothing
1152 , _mDelete = Nothing
1007 , _mDelete = Nothing
1153 , _mUpdate = Nothing
1008 , _mUpdate = Nothing
1154 }
1009 }
1155
1010
1156−-- | Entities to insert. Each inserted entity\'s key must have a complete
1011+-- | The entity to insert. The entity must not already exist. The entity
1157−-- path and must not be reserved\/read-only.
1012+-- key\'s final path element may be incomplete.
1158−mInsert :: Lens' Mutation [Entity]
1013+mInsert :: Lens' Mutation (Maybe Entity)
1159−mInsert
1160− = lens _mInsert (\ s a -> s{_mInsert = a}) . _Default
1014+mInsert = lens _mInsert (\ s a -> s{_mInsert = a})
1161− . _Coerce
1162
1015
1163−-- | Ignore a user specified read-only period. Optional.
1016+-- | The entity to upsert. The entity may or may not already exist. The
1017+-- entity key\'s final path element may be incomplete.
1164−mForce :: Lens' Mutation (Maybe Bool)
1018+mUpsert :: Lens' Mutation (Maybe Entity)
1165−mForce = lens _mForce (\ s a -> s{_mForce = a})
1019+mUpsert = lens _mUpsert (\ s a -> s{_mUpsert = a})
1166
1020
1167−-- | Insert entities with a newly allocated ID. Each inserted entity\'s key
1021+-- | The key of the entity to delete. The entity may or may not already
1168−-- must omit the final identifier in its path and must not be
1022+-- exist. Must have a complete key path and must not be
1169-- reserved\/read-only.
1023-- reserved\/read-only.
1170−mInsertAutoId :: Lens' Mutation [Entity]
1024+mDelete :: Lens' Mutation (Maybe Key)
1171−mInsertAutoId
1025+mDelete = lens _mDelete (\ s a -> s{_mDelete = a})
1172− = lens _mInsertAutoId
1173− (\ s a -> s{_mInsertAutoId = a})
1174− . _Default
1175− . _Coerce
1176−
1177−-- | Entities to upsert. Each upserted entity\'s key must have a complete
1178−-- path and must not be reserved\/read-only.
1179−mUpsert :: Lens' Mutation [Entity]
1180−mUpsert
1181− = lens _mUpsert (\ s a -> s{_mUpsert = a}) . _Default
1182− . _Coerce
1183
1026
1184−-- | Keys of entities to delete. Each key must have a complete key path and
1027+-- | The entity to update. The entity must already exist. Must have a
1185−-- must not be reserved\/read-only.
1028+-- complete key path.
1186−mDelete :: Lens' Mutation [Key]
1187−mDelete
1188− = lens _mDelete (\ s a -> s{_mDelete = a}) . _Default
1189− . _Coerce
1190−
1191−-- | Entities to update. Each updated entity\'s key must have a complete path
1192−-- and must not be reserved\/read-only.
1193−mUpdate :: Lens' Mutation [Entity]
1029+mUpdate :: Lens' Mutation (Maybe Entity)
1194−mUpdate
1195− = lens _mUpdate (\ s a -> s{_mUpdate = a}) . _Default
1030+mUpdate = lens _mUpdate (\ s a -> s{_mUpdate = a})
1196− . _Coerce
1197
1031
1198instance FromJSON Mutation where
1032instance FromJSON Mutation where
1199 parseJSON
1033 parseJSON
1200 = withObject "Mutation"
1034 = withObject "Mutation"
1201 (\ o ->
1035 (\ o ->
1202 Mutation' <$>
1036 Mutation' <$>
1203− (o .:? "insert" .!= mempty) <*> (o .:? "force") <*>
1204− (o .:? "insertAutoId" .!= mempty)
1205− <*> (o .:? "upsert" .!= mempty)
1037+ (o .:? "insert") <*> (o .:? "upsert") <*>
1206− <*> (o .:? "delete" .!= mempty)
1038+ (o .:? "delete")
1207− <*> (o .:? "update" .!= mempty))
1039+ <*> (o .:? "update"))
1208
1040
1209instance ToJSON Mutation where
1041instance ToJSON Mutation where
1210 toJSON Mutation'{..}
1042 toJSON Mutation'{..}
1211 = object
1043 = object
1212 (catMaybes
1044 (catMaybes
1213 [("insert" .=) <$> _mInsert,
1045 [("insert" .=) <$> _mInsert,
1214− ("force" .=) <$> _mForce,
1215− ("insertAutoId" .=) <$> _mInsertAutoId,
1216 ("upsert" .=) <$> _mUpsert,
1046 ("upsert" .=) <$> _mUpsert,
1217 ("delete" .=) <$> _mDelete,
1047 ("delete" .=) <$> _mDelete,
1218 ("update" .=) <$> _mUpdate])
1048 ("update" .=) <$> _mUpdate])
1219
1049
1050+-- | For each non-reserved named binding site in the query string, there must
1051+-- be a named parameter with that name, but not necessarily the inverse.
1052+-- Key must match regex \`A-Za-z_$*\`, must not match regex \`__.*__\`, and
1053+-- must not be \`\"\"\`.
1220--
1054--
1221−-- /See:/ 'responseHeader' smart constructor.
1055+-- /See:/ 'gqlQueryNamedBindings' smart constructor.
1222−newtype ResponseHeader = ResponseHeader'
1056+newtype GqlQueryNamedBindings = GqlQueryNamedBindings'
1223− { _rhKind :: Text
1057+ { _gqnbAddtional :: HashMap Text GqlQueryParameter
1224− } deriving (Eq,Show,Data,Typeable,Generic)
1225−
1226−-- | Creates a value of 'ResponseHeader' with the minimum fields required to make a request.
1227−--
1228−-- Use one of the following lenses to modify other fields as desired:
1229−--
1230−-- * 'rhKind'
1231−responseHeader
1232− :: ResponseHeader
1233−responseHeader =
1234− ResponseHeader'
1235− { _rhKind = "datastore#responseHeader"
1236− }
1237−
1238−-- | Identifies what kind of resource this is. Value: the fixed string
1239−-- \"datastore#responseHeader\".
1240−rhKind :: Lens' ResponseHeader Text
1241−rhKind = lens _rhKind (\ s a -> s{_rhKind = a})
1242−
1243−instance FromJSON ResponseHeader where
1244− parseJSON
1245− = withObject "ResponseHeader"
1246− (\ o ->
1247− ResponseHeader' <$>
1248− (o .:? "kind" .!= "datastore#responseHeader"))
1249−
1250−instance ToJSON ResponseHeader where
1251− toJSON ResponseHeader'{..}
1252− = object (catMaybes [Just ("kind" .= _rhKind)])
1253−
1254−-- | A (kind, ID\/name) pair used to construct a key path. At most one of
1255−-- name or ID may be set. If either is set, the element is complete. If
1256−-- neither is set, the element is incomplete.
1257−--
1258−-- /See:/ 'keyPathElement' smart constructor.
1259−data KeyPathElement = KeyPathElement'
1260− { _kpeKind :: !(Maybe Text)
1261− , _kpeName :: !(Maybe Text)
1262− , _kpeId :: !(Maybe (Textual Int64))
1263 } deriving (Eq,Show,Data,Typeable,Generic)
1058 } deriving (Eq,Show,Data,Typeable,Generic)
1264
1059
1265−-- | Creates a value of 'KeyPathElement' with the minimum fields required to make a request.
1060+-- | Creates a value of 'GqlQueryNamedBindings' with the minimum fields required to make a request.
1266--
1061--
1267-- Use one of the following lenses to modify other fields as desired:
1062-- Use one of the following lenses to modify other fields as desired:
1268--
1063--
1269−-- * 'kpeKind'
1064+-- * 'gqnbAddtional'
1270−--
1065+gqlQueryNamedBindings
1271−-- * 'kpeName'
1066+ :: HashMap Text GqlQueryParameter -- ^ 'gqnbAddtional'
1272−--
1067+ -> GqlQueryNamedBindings
1273−-- * 'kpeId'
1068+gqlQueryNamedBindings pGqnbAddtional_ =
1274−keyPathElement
1069+ GqlQueryNamedBindings'
1275− :: KeyPathElement
1070+ { _gqnbAddtional = _Coerce # pGqnbAddtional_
1276−keyPathElement =
1277− KeyPathElement'
1278− { _kpeKind = Nothing
1279− , _kpeName = Nothing
1280− , _kpeId = Nothing
1281 }
1071 }
1282
1072
1283−-- | The kind of the entity. A kind matching regex \"__.*__\" is
1073+gqnbAddtional :: Lens' GqlQueryNamedBindings (HashMap Text GqlQueryParameter)
1284−-- reserved\/read-only. A kind must not contain more than 500 characters.
1074+gqnbAddtional
1285−-- Cannot be \"\".
1075+ = lens _gqnbAddtional
1286−kpeKind :: Lens' KeyPathElement (Maybe Text)
1076+ (\ s a -> s{_gqnbAddtional = a})
1287−kpeKind = lens _kpeKind (\ s a -> s{_kpeKind = a})
1288−
1289−-- | The name of the entity. A name matching regex \"__.*__\" is
1290−-- reserved\/read-only. A name must not be more than 500 characters. Cannot
1291−-- be \"\".
1292−kpeName :: Lens' KeyPathElement (Maybe Text)
1293−kpeName = lens _kpeName (\ s a -> s{_kpeName = a})
1294−
1295−-- | The ID of the entity. Never equal to zero. Values less than zero are
1296−-- discouraged and will not be supported in the future.
1297−kpeId :: Lens' KeyPathElement (Maybe Int64)
1298−kpeId
1299− = lens _kpeId (\ s a -> s{_kpeId = a}) .
1300− mapping _Coerce
1077+ . _Coerce
1301
1078
1302−instance FromJSON KeyPathElement where
1079+instance FromJSON GqlQueryNamedBindings where
1303 parseJSON
1080 parseJSON
1304− = withObject "KeyPathElement"
1081+ = withObject "GqlQueryNamedBindings"
1305 (\ o ->
1082 (\ o ->
1306− KeyPathElement' <$>
1083+ GqlQueryNamedBindings' <$> (parseJSONObject o))
1307− (o .:? "kind") <*> (o .:? "name") <*> (o .:? "id"))
1308
1084
1309−instance ToJSON KeyPathElement where
1085+instance ToJSON GqlQueryNamedBindings where
1310− toJSON KeyPathElement'{..}
1086+ toJSON = toJSON . _gqnbAddtional
1311− = object
1312− (catMaybes
1313− [("kind" .=) <$> _kpeKind, ("name" .=) <$> _kpeName,
1314− ("id" .=) <$> _kpeId])
1315
1087
1316-- | A reference to a property relative to the kind expressions.
1088-- | A reference to a property relative to the kind expressions.
1317--
1089--
@@ -1332,7 +1104,8 @@ propertyReference =
1332 { _prName = Nothing
1104 { _prName = Nothing
1333 }
1105 }
1334
1106
1335−-- | The name of the property.
1107+-- | The name of the property. If name includes \".\"s, it may be interpreted
1108+-- as a property name path.
1336prName :: Lens' PropertyReference (Maybe Text)
1109prName :: Lens' PropertyReference (Maybe Text)
1337prName = lens _prName (\ s a -> s{_prName = a})
1110prName = lens _prName (\ s a -> s{_prName = a})
1338
1111
@@ -1345,68 +1118,15 @@ instance ToJSON PropertyReference where
1345 toJSON PropertyReference'{..}
1118 toJSON PropertyReference'{..}
1346 = object (catMaybes [("name" .=) <$> _prName])
1119 = object (catMaybes [("name" .=) <$> _prName])
1347
1120
1348−-- | A binding argument for a GQL query.
1349−--
1350−-- /See:/ 'gqlQueryArg' smart constructor.
1351−data GqlQueryArg = GqlQueryArg'
1352− { _gqaCursor :: !(Maybe (Textual Word8))
1353− , _gqaValue :: !(Maybe Value)
1354− , _gqaName :: !(Maybe Text)
1355− } deriving (Eq,Show,Data,Typeable,Generic)
1356−
1357−-- | Creates a value of 'GqlQueryArg' with the minimum fields required to make a request.
1358−--
1359−-- Use one of the following lenses to modify other fields as desired:
1360−--
1361−-- * 'gqaCursor'
1362−--
1363−-- * 'gqaValue'
1364−--
1365−-- * 'gqaName'
1366−gqlQueryArg
1367− :: GqlQueryArg
1368−gqlQueryArg =
1369− GqlQueryArg'
1370− { _gqaCursor = Nothing
1371− , _gqaValue = Nothing
1372− , _gqaName = Nothing
1373− }
1374−
1375−gqaCursor :: Lens' GqlQueryArg (Maybe Word8)
1376−gqaCursor
1377− = lens _gqaCursor (\ s a -> s{_gqaCursor = a}) .
1378− mapping _Coerce
1379−
1380−gqaValue :: Lens' GqlQueryArg (Maybe Value)
1381−gqaValue = lens _gqaValue (\ s a -> s{_gqaValue = a})
1382−
1383−-- | Must match regex \"[A-Za-z_$][A-Za-z_$0-9]*\". Must not match regex
1384−-- \"__.*__\". Must not be \"\".
1385−gqaName :: Lens' GqlQueryArg (Maybe Text)
1386−gqaName = lens _gqaName (\ s a -> s{_gqaName = a})
1387−
1388−instance FromJSON GqlQueryArg where
1389− parseJSON
1390− = withObject "GqlQueryArg"
1391− (\ o ->
1392− GqlQueryArg' <$>
1393− (o .:? "cursor") <*> (o .:? "value") <*>
1394− (o .:? "name"))
1395−
1396−instance ToJSON GqlQueryArg where
1397− toJSON GqlQueryArg'{..}
1398− = object
1399− (catMaybes
1400− [("cursor" .=) <$> _gqaCursor,
1401− ("value" .=) <$> _gqaValue,
1402− ("name" .=) <$> _gqaName])
1403−
1404−-- | A unique identifier for an entity.
1121+-- | A unique identifier for an entity. If a key\'s partition ID or any of
1122+-- its path kinds or names are reserved\/read-only, the key is
1123+-- reserved\/read-only. A reserved\/read-only key is forbidden in certain
1124+-- documented contexts.
1405--
1125--
1406-- /See:/ 'key' smart constructor.
1126-- /See:/ 'key' smart constructor.
1407data Key = Key'
1127data Key = Key'
1408 { _kPartitionId :: !(Maybe PartitionId)
1128 { _kPartitionId :: !(Maybe PartitionId)
1409− , _kPath :: !(Maybe [KeyPathElement])
1129+ , _kPath :: !(Maybe [PathElement])
1410 } deriving (Eq,Show,Data,Typeable,Generic)
1130 } deriving (Eq,Show,Data,Typeable,Generic)
1411
1131
1412-- | Creates a value of 'Key' with the minimum fields required to make a request.
1132-- | Creates a value of 'Key' with the minimum fields required to make a request.
@@ -1424,25 +1144,26 @@ key =
1424 , _kPath = Nothing
1144 , _kPath = Nothing
1425 }
1145 }
1426
1146
1427−-- | Entities are partitioned into subsets, currently identified by a dataset
1147+-- | Entities are partitioned into subsets, currently identified by a project
1428−-- (usually implicitly specified by the project) and namespace ID. Queries
1429−-- are scoped to a single partition.
1148+-- ID and namespace ID. Queries are scoped to a single partition.
1430kPartitionId :: Lens' Key (Maybe PartitionId)
1149kPartitionId :: Lens' Key (Maybe PartitionId)
1431kPartitionId
1150kPartitionId
1432 = lens _kPartitionId (\ s a -> s{_kPartitionId = a})
1151 = lens _kPartitionId (\ s a -> s{_kPartitionId = a})
1433
1152
1434-- | The entity path. An entity path consists of one or more elements
1153-- | The entity path. An entity path consists of one or more elements
1435-- composed of a kind and a string or numerical identifier, which identify
1154-- composed of a kind and a string or numerical identifier, which identify
1436−-- entities. The first element identifies a root entity, the second element
1155+-- entities. The first element identifies a _root entity_, the second
1437−-- identifies a child of the root entity, the third element a child of the
1156+-- element identifies a _child_ of the root entity, the third element
1438−-- second entity, and so forth. The entities identified by all prefixes of
1157+-- identifies a child of the second entity, and so forth. The entities
1439−-- the path are called the element\'s ancestors. An entity path is always
1158+-- identified by all prefixes of the path are called the element\'s
1159+-- _ancestors_. An entity path is always fully complete: *all* of the
1440−-- fully complete: ALL of the entity\'s ancestors are required to be in the
1160+-- entity\'s ancestors are required to be in the path along with the entity
1441−-- path along with the entity identifier itself. The only exception is that
1161+-- identifier itself. The only exception is that in some documented cases,
1442−-- in some documented cases, the identifier in the last path element (for
1162+-- the identifier in the last path element (for the entity) itself may be
1443−-- the entity) itself may be omitted. A path can never be empty. The path
1163+-- omitted. For example, the last path element of the key of
1164+-- \`Mutation.insert\` may have no identifier. A path can never be empty,
1444−-- can have at most 100 elements.
1165+-- and a path can have at most 100 elements.
1445−kPath :: Lens' Key [KeyPathElement]
1166+kPath :: Lens' Key [PathElement]
1446kPath
1167kPath
1447 = lens _kPath (\ s a -> s{_kPath = a}) . _Default .
1168 = lens _kPath (\ s a -> s{_kPath = a}) . _Default .
1448 _Coerce
1169 _Coerce
@@ -1466,7 +1187,7 @@ instance ToJSON Key where
1466-- /See:/ 'propertyFilter' smart constructor.
1187-- /See:/ 'propertyFilter' smart constructor.
1467data PropertyFilter = PropertyFilter'
1188data PropertyFilter = PropertyFilter'
1468 { _pfProperty :: !(Maybe PropertyReference)
1189 { _pfProperty :: !(Maybe PropertyReference)
1469− , _pfOperator :: !(Maybe PropertyFilterOperator)
1190+ , _pfOp :: !(Maybe PropertyFilterOp)
1470 , _pfValue :: !(Maybe Value)
1191 , _pfValue :: !(Maybe Value)
1471 } deriving (Eq,Show,Data,Typeable,Generic)
1192 } deriving (Eq,Show,Data,Typeable,Generic)
1472
1193
@@ -1476,7 +1197,7 @@ data PropertyFilter = PropertyFilter'
1476--
1197--
1477-- * 'pfProperty'
1198-- * 'pfProperty'
1478--
1199--
1479−-- * 'pfOperator'
1200+-- * 'pfOp'
1480--
1201--
1481-- * 'pfValue'
1202-- * 'pfValue'
1482propertyFilter
1203propertyFilter
@@ -1484,7 +1205,7 @@ propertyFilter
1484propertyFilter =
1205propertyFilter =
1485 PropertyFilter'
1206 PropertyFilter'
1486 { _pfProperty = Nothing
1207 { _pfProperty = Nothing
1487− , _pfOperator = Nothing
1208+ , _pfOp = Nothing
1488 , _pfValue = Nothing
1209 , _pfValue = Nothing
1489 }
1210 }
1490
1211
@@ -1493,11 +1214,9 @@ pfProperty :: Lens' PropertyFilter (Maybe PropertyReference)
1493pfProperty
1214pfProperty
1494 = lens _pfProperty (\ s a -> s{_pfProperty = a})
1215 = lens _pfProperty (\ s a -> s{_pfProperty = a})
1495
1216
1496−-- | The operator to filter by. One of lessThan, lessThanOrEqual,
1217+-- | The operator to filter by.
1497−-- greaterThan, greaterThanOrEqual, equal, or hasAncestor.
1498−pfOperator :: Lens' PropertyFilter (Maybe PropertyFilterOperator)
1218+pfOp :: Lens' PropertyFilter (Maybe PropertyFilterOp)
1499−pfOperator
1219+pfOp = lens _pfOp (\ s a -> s{_pfOp = a})
1500− = lens _pfOperator (\ s a -> s{_pfOperator = a})
1501
1220
1502-- | The value to compare the property to.
1221-- | The value to compare the property to.
1503pfValue :: Lens' PropertyFilter (Maybe Value)
1222pfValue :: Lens' PropertyFilter (Maybe Value)
@@ -1508,7 +1227,7 @@ instance FromJSON PropertyFilter where
1508 = withObject "PropertyFilter"
1227 = withObject "PropertyFilter"
1509 (\ o ->
1228 (\ o ->
1510 PropertyFilter' <$>
1229 PropertyFilter' <$>
1511− (o .:? "property") <*> (o .:? "operator") <*>
1230+ (o .:? "property") <*> (o .:? "op") <*>
1512 (o .:? "value"))
1231 (o .:? "value"))
1513
1232
1514instance ToJSON PropertyFilter where
1233instance ToJSON PropertyFilter where
@@ -1516,21 +1235,20 @@ instance ToJSON PropertyFilter where
1516 = object
1235 = object
1517 (catMaybes
1236 (catMaybes
1518 [("property" .=) <$> _pfProperty,
1237 [("property" .=) <$> _pfProperty,
1519− ("operator" .=) <$> _pfOperator,
1520− ("value" .=) <$> _pfValue])
1238+ ("op" .=) <$> _pfOp, ("value" .=) <$> _pfValue])
1521
1239
1522−-- | A query.
1240+-- | A query for entities.
1523--
1241--
1524-- /See:/ 'query' smart constructor.
1242-- /See:/ 'query' smart constructor.
1525data Query = Query'
1243data Query = Query'
1526− { _qGroupBy :: !(Maybe [PropertyReference])
1527− , _qStartCursor :: !(Maybe (Textual Word8))
1244+ { _qStartCursor :: !(Maybe (Textual Word8))
1528 , _qOffSet :: !(Maybe (Textual Int32))
1245 , _qOffSet :: !(Maybe (Textual Int32))
1246+ , _qKind :: !(Maybe [KindExpression])
1247+ , _qDistinctOn :: !(Maybe [PropertyReference])
1529 , _qEndCursor :: !(Maybe (Textual Word8))
1248 , _qEndCursor :: !(Maybe (Textual Word8))
1530 , _qLimit :: !(Maybe (Textual Int32))
1249 , _qLimit :: !(Maybe (Textual Int32))
1531− , _qProjection :: !(Maybe [PropertyExpression])
1250+ , _qProjection :: !(Maybe [Projection])
1532 , _qFilter :: !(Maybe Filter)
1251 , _qFilter :: !(Maybe Filter)
1533− , _qKinds :: !(Maybe [KindExpression])
1534 , _qOrder :: !(Maybe [PropertyOrder])
1252 , _qOrder :: !(Maybe [PropertyOrder])
1535 } deriving (Eq,Show,Data,Typeable,Generic)
1253 } deriving (Eq,Show,Data,Typeable,Generic)
1536
1254
@@ -1538,12 +1256,14 @@ data Query = Query'
1538--
1256--
1539-- Use one of the following lenses to modify other fields as desired:
1257-- Use one of the following lenses to modify other fields as desired:
1540--
1258--
1541−-- * 'qGroupBy'
1542−--
1543-- * 'qStartCursor'
1259-- * 'qStartCursor'
1544--
1260--
1545-- * 'qOffSet'
1261-- * 'qOffSet'
1546--
1262--
1263+-- * 'qKind'
1264+--
1265+-- * 'qDistinctOn'
1266+--
1547-- * 'qEndCursor'
1267-- * 'qEndCursor'
1548--
1268--
1549-- * 'qLimit'
1269-- * 'qLimit'
@@ -1552,77 +1272,78 @@ data Query = Query'
1552--
1272--
1553-- * 'qFilter'
1273-- * 'qFilter'
1554--
1274--
1555−-- * 'qKinds'
1556−--
1557-- * 'qOrder'
1275-- * 'qOrder'
1558query
1276query
1559 :: Query
1277 :: Query
1560query =
1278query =
1561 Query'
1279 Query'
1562− { _qGroupBy = Nothing
1563− , _qStartCursor = Nothing
1280+ { _qStartCursor = Nothing
1564 , _qOffSet = Nothing
1281 , _qOffSet = Nothing
1282+ , _qKind = Nothing
1283+ , _qDistinctOn = Nothing
1565 , _qEndCursor = Nothing
1284 , _qEndCursor = Nothing
1566 , _qLimit = Nothing
1285 , _qLimit = Nothing
1567 , _qProjection = Nothing
1286 , _qProjection = Nothing
1568 , _qFilter = Nothing
1287 , _qFilter = Nothing
1569− , _qKinds = Nothing
1570 , _qOrder = Nothing
1288 , _qOrder = Nothing
1571 }
1289 }
1572
1290
1573−-- | The properties to group by (if empty, no grouping is applied to the
1574−-- result set).
1575−qGroupBy :: Lens' Query [PropertyReference]
1576−qGroupBy
1577− = lens _qGroupBy (\ s a -> s{_qGroupBy = a}) .
1578− _Default
1579− . _Coerce
1580−
1581−-- | A starting point for the query results. Optional. Query cursors are
1291+-- | A starting point for the query results. Query cursors are returned in
1582−-- returned in query result batches.
1292+-- query result batches.
1583qStartCursor :: Lens' Query (Maybe Word8)
1293qStartCursor :: Lens' Query (Maybe Word8)
1584qStartCursor
1294qStartCursor
1585 = lens _qStartCursor (\ s a -> s{_qStartCursor = a})
1295 = lens _qStartCursor (\ s a -> s{_qStartCursor = a})
1586 . mapping _Coerce
1296 . mapping _Coerce
1587
1297
1588-- | The number of results to skip. Applies before limit, but after all other
1298-- | The number of results to skip. Applies before limit, but after all other
1589−-- constraints (optional, defaults to 0).
1299+-- constraints. Optional. Must be >= 0 if specified.
1590qOffSet :: Lens' Query (Maybe Int32)
1300qOffSet :: Lens' Query (Maybe Int32)
1591qOffSet
1301qOffSet
1592 = lens _qOffSet (\ s a -> s{_qOffSet = a}) .
1302 = lens _qOffSet (\ s a -> s{_qOffSet = a}) .
1593 mapping _Coerce
1303 mapping _Coerce
1594
1304
1305+-- | The kinds to query (if empty, returns entities of all kinds). Currently
1306+-- at most 1 kind may be specified.
1307+qKind :: Lens' Query [KindExpression]
1308+qKind
1309+ = lens _qKind (\ s a -> s{_qKind = a}) . _Default .
1310+ _Coerce
1311+
1312+-- | The properties to make distinct. The query results will contain the
1313+-- first result for each distinct combination of values for the given
1314+-- properties (if empty, all results are returned).
1315+qDistinctOn :: Lens' Query [PropertyReference]
1316+qDistinctOn
1317+ = lens _qDistinctOn (\ s a -> s{_qDistinctOn = a}) .
1318+ _Default
1319+ . _Coerce
1320+
1595−-- | An ending point for the query results. Optional. Query cursors are
1321+-- | An ending point for the query results. Query cursors are returned in
1596−-- returned in query result batches.
1322+-- query result batches.
1597qEndCursor :: Lens' Query (Maybe Word8)
1323qEndCursor :: Lens' Query (Maybe Word8)
1598qEndCursor
1324qEndCursor
1599 = lens _qEndCursor (\ s a -> s{_qEndCursor = a}) .
1325 = lens _qEndCursor (\ s a -> s{_qEndCursor = a}) .
1600 mapping _Coerce
1326 mapping _Coerce
1601
1327
1602-- | The maximum number of results to return. Applies after all other
1328-- | The maximum number of results to return. Applies after all other
1603−-- constraints. Optional.
1329+-- constraints. Optional. Unspecified is interpreted as no limit. Must be
1330+-- >= 0 if specified.
1604qLimit :: Lens' Query (Maybe Int32)
1331qLimit :: Lens' Query (Maybe Int32)
1605qLimit
1332qLimit
1606 = lens _qLimit (\ s a -> s{_qLimit = a}) .
1333 = lens _qLimit (\ s a -> s{_qLimit = a}) .
1607 mapping _Coerce
1334 mapping _Coerce
1608
1335
1609−-- | The projection to return. If not set the entire entity is returned.
1336+-- | The projection to return. Defaults to returning all properties.
1610−qProjection :: Lens' Query [PropertyExpression]
1337+qProjection :: Lens' Query [Projection]
1611qProjection
1338qProjection
1612 = lens _qProjection (\ s a -> s{_qProjection = a}) .
1339 = lens _qProjection (\ s a -> s{_qProjection = a}) .
1613 _Default
1340 _Default
1614 . _Coerce
1341 . _Coerce
1615
1342
1616−-- | The filter to apply (optional).
1343+-- | The filter to apply.
1617qFilter :: Lens' Query (Maybe Filter)
1344qFilter :: Lens' Query (Maybe Filter)
1618qFilter = lens _qFilter (\ s a -> s{_qFilter = a})
1345qFilter = lens _qFilter (\ s a -> s{_qFilter = a})
1619
1346
1620−-- | The kinds to query (if empty, returns entities from all kinds).
1621−qKinds :: Lens' Query [KindExpression]
1622−qKinds
1623− = lens _qKinds (\ s a -> s{_qKinds = a}) . _Default .
1624− _Coerce
1625−
1626-- | The order to apply to the query results (if empty, order is
1347-- | The order to apply to the query results (if empty, order is
1627-- unspecified).
1348-- unspecified).
1628qOrder :: Lens' Query [PropertyOrder]
1349qOrder :: Lens' Query [PropertyOrder]
@@ -1635,48 +1356,94 @@ instance FromJSON Query where
1635 = withObject "Query"
1356 = withObject "Query"
1636 (\ o ->
1357 (\ o ->
1637 Query' <$>
1358 Query' <$>
1638− (o .:? "groupBy" .!= mempty) <*>
1639− (o .:? "startCursor")
1359+ (o .:? "startCursor") <*> (o .:? "offset") <*>
1640− <*> (o .:? "offset")
1360+ (o .:? "kind" .!= mempty)
1361+ <*> (o .:? "distinctOn" .!= mempty)
1641 <*> (o .:? "endCursor")
1362 <*> (o .:? "endCursor")
1642 <*> (o .:? "limit")
1363 <*> (o .:? "limit")
1643 <*> (o .:? "projection" .!= mempty)
1364 <*> (o .:? "projection" .!= mempty)
1644 <*> (o .:? "filter")
1365 <*> (o .:? "filter")
1645− <*> (o .:? "kinds" .!= mempty)
1646 <*> (o .:? "order" .!= mempty))
1366 <*> (o .:? "order" .!= mempty))
1647
1367
1648instance ToJSON Query where
1368instance ToJSON Query where
1649 toJSON Query'{..}
1369 toJSON Query'{..}
1650 = object
1370 = object
1651 (catMaybes
1371 (catMaybes
1652− [("groupBy" .=) <$> _qGroupBy,
1653− ("startCursor" .=) <$> _qStartCursor,
1372+ [("startCursor" .=) <$> _qStartCursor,
1654− ("offset" .=) <$> _qOffSet,
1373+ ("offset" .=) <$> _qOffSet, ("kind" .=) <$> _qKind,
1374+ ("distinctOn" .=) <$> _qDistinctOn,
1655 ("endCursor" .=) <$> _qEndCursor,
1375 ("endCursor" .=) <$> _qEndCursor,
1656 ("limit" .=) <$> _qLimit,
1376 ("limit" .=) <$> _qLimit,
1657 ("projection" .=) <$> _qProjection,
1377 ("projection" .=) <$> _qProjection,
1658− ("filter" .=) <$> _qFilter, ("kinds" .=) <$> _qKinds,
1378+ ("filter" .=) <$> _qFilter,
1659 ("order" .=) <$> _qOrder])
1379 ("order" .=) <$> _qOrder])
1660
1380
1381+-- | An array value.
1382+--
1383+-- /See:/ 'arrayValue' smart constructor.
1384+newtype ArrayValue = ArrayValue'
1385+ { _avValues :: Maybe [Value]
1386+ } deriving (Eq,Show,Data,Typeable,Generic)
1387+
1388+-- | Creates a value of 'ArrayValue' with the minimum fields required to make a request.
1389+--
1390+-- Use one of the following lenses to modify other fields as desired:
1391+--
1392+-- * 'avValues'
1393+arrayValue
1394+ :: ArrayValue
1395+arrayValue =
1396+ ArrayValue'
1397+ { _avValues = Nothing
1398+ }
1399+
1400+-- | Values in the array. The order of this array may not be preserved if it
1401+-- contains a mix of indexed and unindexed values.
1402+avValues :: Lens' ArrayValue [Value]
1403+avValues
1404+ = lens _avValues (\ s a -> s{_avValues = a}) .
1405+ _Default
1406+ . _Coerce
1407+
1408+instance FromJSON ArrayValue where
1409+ parseJSON
1410+ = withObject "ArrayValue"
1411+ (\ o -> ArrayValue' <$> (o .:? "values" .!= mempty))
1412+
1413+instance ToJSON ArrayValue where
1414+ toJSON ArrayValue'{..}
1415+ = object (catMaybes [("values" .=) <$> _avValues])
1416+
1661−-- | The result of fetching an entity from the datastore.
1417+-- | The result of fetching an entity from Datastore.
1662--
1418--
1663-- /See:/ 'entityResult' smart constructor.
1419-- /See:/ 'entityResult' smart constructor.
1664−newtype EntityResult = EntityResult'
1420+data EntityResult = EntityResult'
1421+ { _erCursor :: !(Maybe (Textual Word8))
1665− { _erEntity :: Maybe Entity
1422+ , _erEntity :: !(Maybe Entity)
1666 } deriving (Eq,Show,Data,Typeable,Generic)
1423 } deriving (Eq,Show,Data,Typeable,Generic)
1667
1424
1668-- | Creates a value of 'EntityResult' with the minimum fields required to make a request.
1425-- | Creates a value of 'EntityResult' with the minimum fields required to make a request.
1669--
1426--
1670-- Use one of the following lenses to modify other fields as desired:
1427-- Use one of the following lenses to modify other fields as desired:
1671--
1428--
1429+-- * 'erCursor'
1430+--
1672-- * 'erEntity'
1431-- * 'erEntity'
1673entityResult
1432entityResult
1674 :: EntityResult
1433 :: EntityResult
1675entityResult =
1434entityResult =
1676 EntityResult'
1435 EntityResult'
1436+ { _erCursor = Nothing
1677− { _erEntity = Nothing
1437+ , _erEntity = Nothing
1678 }
1438 }
1679
1439
1440+-- | A cursor that points to the position after the result entity. Set only
1441+-- when the \`EntityResult\` is part of a \`QueryResultBatch\` message.
1442+erCursor :: Lens' EntityResult (Maybe Word8)
1443+erCursor
1444+ = lens _erCursor (\ s a -> s{_erCursor = a}) .
1445+ mapping _Coerce
1446+
1680-- | The resulting entity.
1447-- | The resulting entity.
1681erEntity :: Lens' EntityResult (Maybe Entity)
1448erEntity :: Lens' EntityResult (Maybe Entity)
1682erEntity = lens _erEntity (\ s a -> s{_erEntity = a})
1449erEntity = lens _erEntity (\ s a -> s{_erEntity = a})
@@ -1684,56 +1451,71 @@ erEntity = lens _erEntity (\ s a -> s{_erEntity = a})
1684instance FromJSON EntityResult where
1451instance FromJSON EntityResult where
1685 parseJSON
1452 parseJSON
1686 = withObject "EntityResult"
1453 = withObject "EntityResult"
1454+ (\ o ->
1687− (\ o -> EntityResult' <$> (o .:? "entity"))
1455+ EntityResult' <$>
1456+ (o .:? "cursor") <*> (o .:? "entity"))
1688
1457
1689instance ToJSON EntityResult where
1458instance ToJSON EntityResult where
1690 toJSON EntityResult'{..}
1459 toJSON EntityResult'{..}
1460+ = object
1461+ (catMaybes
1462+ [("cursor" .=) <$> _erCursor,
1691− = object (catMaybes [("entity" .=) <$> _erEntity])
1463+ ("entity" .=) <$> _erEntity])
1692
1464
1465+-- | The response for google.datastore.v1beta3.Datastore.Commit.
1693--
1466--
1694-- /See:/ 'commitResponse' smart constructor.
1467-- /See:/ 'commitResponse' smart constructor.
1695data CommitResponse = CommitResponse'
1468data CommitResponse = CommitResponse'
1696− { _crMutationResult :: !(Maybe MutationResult)
1469+ { _crIndexUpdates :: !(Maybe (Textual Int32))
1697− , _crHeader :: !(Maybe ResponseHeader)
1470+ , _crMutationResults :: !(Maybe [MutationResult])
1698 } deriving (Eq,Show,Data,Typeable,Generic)
1471 } deriving (Eq,Show,Data,Typeable,Generic)
1699
1472
1700-- | Creates a value of 'CommitResponse' with the minimum fields required to make a request.
1473-- | Creates a value of 'CommitResponse' with the minimum fields required to make a request.
1701--
1474--
1702-- Use one of the following lenses to modify other fields as desired:
1475-- Use one of the following lenses to modify other fields as desired:
1703--
1476--
1704−-- * 'crMutationResult'
1477+-- * 'crIndexUpdates'
1705--
1478--
1706−-- * 'crHeader'
1479+-- * 'crMutationResults'
1707commitResponse
1480commitResponse
1708 :: CommitResponse
1481 :: CommitResponse
1709commitResponse =
1482commitResponse =
1710 CommitResponse'
1483 CommitResponse'
1711− { _crMutationResult = Nothing
1484+ { _crIndexUpdates = Nothing
1712− , _crHeader = Nothing
1485+ , _crMutationResults = Nothing
1713 }
1486 }
1714
1487
1715−-- | The result of performing the mutation (if any).
1488+-- | The number of index entries updated during the commit, or zero if none
1489+-- were updated.
1716−crMutationResult :: Lens' CommitResponse (Maybe MutationResult)
1490+crIndexUpdates :: Lens' CommitResponse (Maybe Int32)
1717−crMutationResult
1491+crIndexUpdates
1718− = lens _crMutationResult
1492+ = lens _crIndexUpdates
1719− (\ s a -> s{_crMutationResult = a})
1493+ (\ s a -> s{_crIndexUpdates = a})
1494+ . mapping _Coerce
1720
1495
1721−crHeader :: Lens' CommitResponse (Maybe ResponseHeader)
1496+-- | The result of performing the mutations. The i-th mutation result
1722−crHeader = lens _crHeader (\ s a -> s{_crHeader = a})
1497+-- corresponds to the i-th mutation in the request.
1498+crMutationResults :: Lens' CommitResponse [MutationResult]
1499+crMutationResults
1500+ = lens _crMutationResults
1501+ (\ s a -> s{_crMutationResults = a})
1502+ . _Default
1503+ . _Coerce
1723
1504
1724instance FromJSON CommitResponse where
1505instance FromJSON CommitResponse where
1725 parseJSON
1506 parseJSON
1726 = withObject "CommitResponse"
1507 = withObject "CommitResponse"
1727 (\ o ->
1508 (\ o ->
1728 CommitResponse' <$>
1509 CommitResponse' <$>
1729− (o .:? "mutationResult") <*> (o .:? "header"))
1510+ (o .:? "indexUpdates") <*>
1511+ (o .:? "mutationResults" .!= mempty))
1730
1512
1731instance ToJSON CommitResponse where
1513instance ToJSON CommitResponse where
1732 toJSON CommitResponse'{..}
1514 toJSON CommitResponse'{..}
1733 = object
1515 = object
1734 (catMaybes
1516 (catMaybes
1735− [("mutationResult" .=) <$> _crMutationResult,
1517+ [("indexUpdates" .=) <$> _crIndexUpdates,
1736− ("header" .=) <$> _crHeader])
1518+ ("mutationResults" .=) <$> _crMutationResults])
1737
1519
1738-- | A representation of a kind.
1520-- | A representation of a kind.
1739--
1521--
@@ -1767,6 +1549,7 @@ instance ToJSON KindExpression where
1767 toJSON KindExpression'{..}
1549 toJSON KindExpression'{..}
1768 = object (catMaybes [("name" .=) <$> _keName])
1550 = object (catMaybes [("name" .=) <$> _keName])
1769
1551
1552+-- | The options shared by read requests.
1770--
1553--
1771-- /See:/ 'readOptions' smart constructor.
1554-- /See:/ 'readOptions' smart constructor.
1772data ReadOptions = ReadOptions'
1555data ReadOptions = ReadOptions'
@@ -1789,16 +1572,14 @@ readOptions =
1789 , _roTransaction = Nothing
1572 , _roTransaction = Nothing
1790 }
1573 }
1791
1574
1792−-- | The read consistency to use. One of default, strong, or eventual. Cannot
1575+-- | The non-transactional read consistency to use. Cannot be set to
1793−-- be set when transaction is set. Lookup and ancestor queries default to
1576+-- \`STRONG\` for global queries.
1794−-- strong, global queries default to eventual and cannot be set to strong.
1795−-- Optional. Default is default.
1796roReadConsistency :: Lens' ReadOptions (Maybe ReadOptionsReadConsistency)
1577roReadConsistency :: Lens' ReadOptions (Maybe ReadOptionsReadConsistency)
1797roReadConsistency
1578roReadConsistency
1798 = lens _roReadConsistency
1579 = lens _roReadConsistency
1799 (\ s a -> s{_roReadConsistency = a})
1580 (\ s a -> s{_roReadConsistency = a})
1800
1581
1801−-- | The transaction to use. Optional.
1582+-- | The transaction in which to read.
1802roTransaction :: Lens' ReadOptions (Maybe Word8)
1583roTransaction :: Lens' ReadOptions (Maybe Word8)
1803roTransaction
1584roTransaction
1804 = lens _roTransaction
1585 = lens _roTransaction
@@ -1819,90 +1600,62 @@ instance ToJSON ReadOptions where
1819 [("readConsistency" .=) <$> _roReadConsistency,
1600 [("readConsistency" .=) <$> _roReadConsistency,
1820 ("transaction" .=) <$> _roTransaction])
1601 ("transaction" .=) <$> _roTransaction])
1821
1602
1603+-- | The response for google.datastore.v1beta3.Datastore.Rollback (an empty
1604+-- message).
1822--
1605--
1823-- /See:/ 'rollbackResponse' smart constructor.
1606-- /See:/ 'rollbackResponse' smart constructor.
1607+data RollbackResponse =
1824−newtype RollbackResponse = RollbackResponse'
1608+ RollbackResponse'
1825− { _rrHeader :: Maybe ResponseHeader
1826− } deriving (Eq,Show,Data,Typeable,Generic)
1609+ deriving (Eq,Show,Data,Typeable,Generic)
1827
1610
1828-- | Creates a value of 'RollbackResponse' with the minimum fields required to make a request.
1611-- | Creates a value of 'RollbackResponse' with the minimum fields required to make a request.
1829--
1612--
1830−-- Use one of the following lenses to modify other fields as desired:
1831−--
1832−-- * 'rrHeader'
1833rollbackResponse
1613rollbackResponse
1834 :: RollbackResponse
1614 :: RollbackResponse
1835−rollbackResponse =
1615+rollbackResponse = RollbackResponse'
1836− RollbackResponse'
1837− { _rrHeader = Nothing
1838− }
1839−
1840−rrHeader :: Lens' RollbackResponse (Maybe ResponseHeader)
1841−rrHeader = lens _rrHeader (\ s a -> s{_rrHeader = a})
1842
1616
1843instance FromJSON RollbackResponse where
1617instance FromJSON RollbackResponse where
1844 parseJSON
1618 parseJSON
1845 = withObject "RollbackResponse"
1619 = withObject "RollbackResponse"
1846− (\ o -> RollbackResponse' <$> (o .:? "header"))
1620+ (\ o -> pure RollbackResponse')
1847
1621
1848instance ToJSON RollbackResponse where
1622instance ToJSON RollbackResponse where
1849− toJSON RollbackResponse'{..}
1623+ toJSON = const emptyObject
1850− = object (catMaybes [("header" .=) <$> _rrHeader])
1851
1624
1852-- | A representation of a property in a projection.
1625-- | A representation of a property in a projection.
1853--
1626--
1854−-- /See:/ 'propertyExpression' smart constructor.
1627+-- /See:/ 'projection' smart constructor.
1855−data PropertyExpression = PropertyExpression'
1628+newtype Projection = Projection'
1856− { _peProperty :: !(Maybe PropertyReference)
1629+ { _pProperty :: Maybe PropertyReference
1857− , _peAggregationFunction :: !(Maybe PropertyExpressionAggregationFunction)
1858 } deriving (Eq,Show,Data,Typeable,Generic)
1630 } deriving (Eq,Show,Data,Typeable,Generic)
1859
1631
1860−-- | Creates a value of 'PropertyExpression' with the minimum fields required to make a request.
1632+-- | Creates a value of 'Projection' with the minimum fields required to make a request.
1861--
1633--
1862-- Use one of the following lenses to modify other fields as desired:
1634-- Use one of the following lenses to modify other fields as desired:
1863--
1635--
1864−-- * 'peProperty'
1636+-- * 'pProperty'
1865−--
1637+projection
1866−-- * 'peAggregationFunction'
1638+ :: Projection
1867−propertyExpression
1639+projection =
1868− :: PropertyExpression
1640+ Projection'
1869−propertyExpression =
1641+ { _pProperty = Nothing
1870− PropertyExpression'
1871− { _peProperty = Nothing
1872− , _peAggregationFunction = Nothing
1873 }
1642 }
1874
1643
1875-- | The property to project.
1644-- | The property to project.
1876−peProperty :: Lens' PropertyExpression (Maybe PropertyReference)
1645+pProperty :: Lens' Projection (Maybe PropertyReference)
1877−peProperty
1646+pProperty
1878− = lens _peProperty (\ s a -> s{_peProperty = a})
1647+ = lens _pProperty (\ s a -> s{_pProperty = a})
1879−
1648+
1880−-- | The aggregation function to apply to the property. Optional. Can only be
1881−-- used when grouping by at least one property. Must then be set on all
1882−-- properties in the projection that are not being grouped by. Aggregation
1883−-- functions: first selects the first result as determined by the query\'s
1884−-- order.
1885−peAggregationFunction :: Lens' PropertyExpression (Maybe PropertyExpressionAggregationFunction)
1886−peAggregationFunction
1887− = lens _peAggregationFunction
1888− (\ s a -> s{_peAggregationFunction = a})
1889−
1890−instance FromJSON PropertyExpression where
1649+instance FromJSON Projection where
1891 parseJSON
1650 parseJSON
1892− = withObject "PropertyExpression"
1651+ = withObject "Projection"
1893− (\ o ->
1652+ (\ o -> Projection' <$> (o .:? "property"))
1894− PropertyExpression' <$>
1895− (o .:? "property") <*> (o .:? "aggregationFunction"))
1896
1653
1897−instance ToJSON PropertyExpression where
1654+instance ToJSON Projection where
1898− toJSON PropertyExpression'{..}
1655+ toJSON Projection'{..}
1899− = object
1900− (catMaybes
1656+ = object (catMaybes [("property" .=) <$> _pProperty])
1901− [("property" .=) <$> _peProperty,
1902− ("aggregationFunction" .=) <$>
1903− _peAggregationFunction])
1904
1657
1905−-- | A holder for any type of filter. Exactly one field should be specified.
1658+-- | A holder for any type of filter.
1906--
1659--
1907-- /See:/ 'filter'' smart constructor.
1660-- /See:/ 'filter'' smart constructor.
1908data Filter = Filter'
1661data Filter = Filter'
@@ -1952,78 +1705,139 @@ instance ToJSON Filter where
1952 [("compositeFilter" .=) <$> _fCompositeFilter,
1705 [("compositeFilter" .=) <$> _fCompositeFilter,
1953 ("propertyFilter" .=) <$> _fPropertyFilter])
1706 ("propertyFilter" .=) <$> _fPropertyFilter])
1954
1707
1708+-- | The request for google.datastore.v1beta3.Datastore.Commit.
1955--
1709--
1956-- /See:/ 'commitRequest' smart constructor.
1710-- /See:/ 'commitRequest' smart constructor.
1957data CommitRequest = CommitRequest'
1711data CommitRequest = CommitRequest'
1712+ { _crMutations :: !(Maybe [Mutation])
1958− { _crMode :: !(Maybe CommitRequestMode)
1713+ , _crMode :: !(Maybe CommitRequestMode)
1959− , _crMutation :: !(Maybe Mutation)
1960− , _crTransaction :: !(Maybe (Textual Word8))
1714+ , _crTransaction :: !(Maybe (Textual Word8))
1961− , _crIgnoreReadOnly :: !(Maybe Bool)
1962 } deriving (Eq,Show,Data,Typeable,Generic)
1715 } deriving (Eq,Show,Data,Typeable,Generic)
1963
1716
1964-- | Creates a value of 'CommitRequest' with the minimum fields required to make a request.
1717-- | Creates a value of 'CommitRequest' with the minimum fields required to make a request.
1965--
1718--
1966-- Use one of the following lenses to modify other fields as desired:
1719-- Use one of the following lenses to modify other fields as desired:
1967--
1720--
1968−-- * 'crMode'
1721+-- * 'crMutations'
1969--
1722--
1970−-- * 'crMutation'
1723+-- * 'crMode'
1971--
1724--
1972-- * 'crTransaction'
1725-- * 'crTransaction'
1973−--
1974−-- * 'crIgnoreReadOnly'
1975commitRequest
1726commitRequest
1976 :: CommitRequest
1727 :: CommitRequest
1977commitRequest =
1728commitRequest =
1978 CommitRequest'
1729 CommitRequest'
1979− { _crMode = Nothing
1730+ { _crMutations = Nothing
1980− , _crMutation = Nothing
1731+ , _crMode = Nothing
1981 , _crTransaction = Nothing
1732 , _crTransaction = Nothing
1982− , _crIgnoreReadOnly = Nothing
1983 }
1733 }
1984
1734
1735+-- | The mutations to perform. When mode is \`TRANSACTIONAL\`, mutations
1736+-- affecting a single entity are applied in order. The following sequences
1737+-- of mutations affecting a single entity are not permitted in a single
1738+-- \`Commit\` request: - \`insert\` followed by \`insert\` - \`update\`
1739+-- followed by \`insert\` - \`upsert\` followed by \`insert\` - \`delete\`
1740+-- followed by \`update\` When mode is \`NON_TRANSACTIONAL\`, no two
1741+-- mutations may affect a single entity.
1742+crMutations :: Lens' CommitRequest [Mutation]
1743+crMutations
1744+ = lens _crMutations (\ s a -> s{_crMutations = a}) .
1745+ _Default
1746+ . _Coerce
1747+
1985−-- | The type of commit to perform. Either TRANSACTIONAL or
1748+-- | The type of commit to perform. Defaults to \`TRANSACTIONAL\`.
1986−-- NON_TRANSACTIONAL.
1987crMode :: Lens' CommitRequest (Maybe CommitRequestMode)
1749crMode :: Lens' CommitRequest (Maybe CommitRequestMode)
1988crMode = lens _crMode (\ s a -> s{_crMode = a})
1750crMode = lens _crMode (\ s a -> s{_crMode = a})
1989
1751
1990−-- | The mutation to perform. Optional.
1752+-- | The identifier of the transaction associated with the commit. A
1991−crMutation :: Lens' CommitRequest (Maybe Mutation)
1992−crMutation
1993− = lens _crMutation (\ s a -> s{_crMutation = a})
1994−
1995−-- | The transaction identifier, returned by a call to beginTransaction. Must
1753+-- transaction identifier is returned by a call to BeginTransaction.
1996−-- be set when mode is TRANSACTIONAL.
1997crTransaction :: Lens' CommitRequest (Maybe Word8)
1754crTransaction :: Lens' CommitRequest (Maybe Word8)
1998crTransaction
1755crTransaction
1999 = lens _crTransaction
1756 = lens _crTransaction
2000 (\ s a -> s{_crTransaction = a})
1757 (\ s a -> s{_crTransaction = a})
2001 . mapping _Coerce
1758 . mapping _Coerce
2002
1759
2003−crIgnoreReadOnly :: Lens' CommitRequest (Maybe Bool)
2004−crIgnoreReadOnly
2005− = lens _crIgnoreReadOnly
2006− (\ s a -> s{_crIgnoreReadOnly = a})
2007−
2008instance FromJSON CommitRequest where
1760instance FromJSON CommitRequest where
2009 parseJSON
1761 parseJSON
2010 = withObject "CommitRequest"
1762 = withObject "CommitRequest"
2011 (\ o ->
1763 (\ o ->
2012 CommitRequest' <$>
1764 CommitRequest' <$>
2013− (o .:? "mode") <*> (o .:? "mutation") <*>
1765+ (o .:? "mutations" .!= mempty) <*> (o .:? "mode") <*>
2014− (o .:? "transaction")
1766+ (o .:? "transaction"))
2015− <*> (o .:? "ignoreReadOnly"))
2016
1767
2017instance ToJSON CommitRequest where
1768instance ToJSON CommitRequest where
2018 toJSON CommitRequest'{..}
1769 toJSON CommitRequest'{..}
2019 = object
1770 = object
2020 (catMaybes
1771 (catMaybes
1772+ [("mutations" .=) <$> _crMutations,
2021− [("mode" .=) <$> _crMode,
1773+ ("mode" .=) <$> _crMode,
2022− ("mutation" .=) <$> _crMutation,
2023− ("transaction" .=) <$> _crTransaction,
1774+ ("transaction" .=) <$> _crTransaction])
2024− ("ignoreReadOnly" .=) <$> _crIgnoreReadOnly])
1775+
1776+-- | A (kind, ID\/name) pair used to construct a key path. If either name or
1777+-- ID is set, the element is complete. If neither is set, the element is
1778+-- incomplete.
1779+--
1780+-- /See:/ 'pathElement' smart constructor.
1781+data PathElement = PathElement'
1782+ { _peKind :: !(Maybe Text)
1783+ , _peName :: !(Maybe Text)
1784+ , _peId :: !(Maybe (Textual Int64))
1785+ } deriving (Eq,Show,Data,Typeable,Generic)
2025
1786
2026−-- | An entity.
1787+-- | Creates a value of 'PathElement' with the minimum fields required to make a request.
1788+--
1789+-- Use one of the following lenses to modify other fields as desired:
1790+--
1791+-- * 'peKind'
1792+--
1793+-- * 'peName'
1794+--
1795+-- * 'peId'
1796+pathElement
1797+ :: PathElement
1798+pathElement =
1799+ PathElement'
1800+ { _peKind = Nothing
1801+ , _peName = Nothing
1802+ , _peId = Nothing
1803+ }
1804+
1805+-- | The kind of the entity. A kind matching regex \`__.*__\` is
1806+-- reserved\/read-only. A kind must not contain more than 1500 bytes when
1807+-- UTF-8 encoded. Cannot be \`\"\"\`.
1808+peKind :: Lens' PathElement (Maybe Text)
1809+peKind = lens _peKind (\ s a -> s{_peKind = a})
1810+
1811+-- | The name of the entity. A name matching regex \`__.*__\` is
1812+-- reserved\/read-only. A name must not be more than 1500 bytes when UTF-8
1813+-- encoded. Cannot be \`\"\"\`.
1814+peName :: Lens' PathElement (Maybe Text)
1815+peName = lens _peName (\ s a -> s{_peName = a})
1816+
1817+-- | The auto-allocated ID of the entity. Never equal to zero. Values less
1818+-- than zero are discouraged and may not be supported in the future.
1819+peId :: Lens' PathElement (Maybe Int64)
1820+peId
1821+ = lens _peId (\ s a -> s{_peId = a}) .
1822+ mapping _Coerce
1823+
1824+instance FromJSON PathElement where
1825+ parseJSON
1826+ = withObject "PathElement"
1827+ (\ o ->
1828+ PathElement' <$>
1829+ (o .:? "kind") <*> (o .:? "name") <*> (o .:? "id"))
1830+
1831+instance ToJSON PathElement where
1832+ toJSON PathElement'{..}
1833+ = object
1834+ (catMaybes
1835+ [("kind" .=) <$> _peKind, ("name" .=) <$> _peName,
1836+ ("id" .=) <$> _peId])
1837+
1838+-- | A Datastore data object. An entity is limited to 1 megabyte when stored.
1839+-- That _roughly_ corresponds to a limit of 1 megabyte for the serialized
1840+-- form of this message.
2027--
1841--
2028-- /See:/ 'entity' smart constructor.
1842-- /See:/ 'entity' smart constructor.
2029data Entity = Entity'
1843data Entity = Entity'
@@ -2047,13 +1861,16 @@ entity =
2047 }
1861 }
2048
1862
2049-- | The entity\'s key. An entity must have a key, unless otherwise
1863-- | The entity\'s key. An entity must have a key, unless otherwise
2050−-- documented (for example, an entity in Value.entityValue may have no
1864+-- documented (for example, an entity in \`Value.entity_value\` may have no
2051−-- key). An entity\'s kind is its key\'s path\'s last element\'s kind, or
1865+-- key). An entity\'s kind is its key path\'s last element\'s kind, or null
2052−-- null if it has no key.
1866+-- if it has no key.
2053eKey :: Lens' Entity (Maybe Key)
1867eKey :: Lens' Entity (Maybe Key)
2054eKey = lens _eKey (\ s a -> s{_eKey = a})
1868eKey = lens _eKey (\ s a -> s{_eKey = a})
2055
1869
2056−-- | The entity\'s properties.
1870+-- | The entity\'s properties. The map\'s keys are property names. A property
1871+-- name matching regex \`__.*__\` is reserved. A reserved property name is
1872+-- forbidden in certain documented contexts. The name must not contain more
1873+-- than 500 characters. The name cannot be \`\"\"\`.
2057eProperties :: Lens' Entity (Maybe EntityProperties)
1874eProperties :: Lens' Entity (Maybe EntityProperties)
2058eProperties
1875eProperties
2059 = lens _eProperties (\ s a -> s{_eProperties = a})
1876 = lens _eProperties (\ s a -> s{_eProperties = a})
@@ -2071,13 +1888,13 @@ instance ToJSON Entity where
2071 [("key" .=) <$> _eKey,
1888 [("key" .=) <$> _eKey,
2072 ("properties" .=) <$> _eProperties])
1889 ("properties" .=) <$> _eProperties])
2073
1890
1891+-- | The response for google.datastore.v1beta3.Datastore.Lookup.
2074--
1892--
2075-- /See:/ 'lookupResponse' smart constructor.
1893-- /See:/ 'lookupResponse' smart constructor.
2076data LookupResponse = LookupResponse'
1894data LookupResponse = LookupResponse'
2077 { _lrDeferred :: !(Maybe [Key])
1895 { _lrDeferred :: !(Maybe [Key])
2078 , _lrFound :: !(Maybe [EntityResult])
1896 , _lrFound :: !(Maybe [EntityResult])
2079 , _lrMissing :: !(Maybe [EntityResult])
1897 , _lrMissing :: !(Maybe [EntityResult])
2080− , _lrHeader :: !(Maybe ResponseHeader)
2081 } deriving (Eq,Show,Data,Typeable,Generic)
1898 } deriving (Eq,Show,Data,Typeable,Generic)
2082
1899
2083-- | Creates a value of 'LookupResponse' with the minimum fields required to make a request.
1900-- | Creates a value of 'LookupResponse' with the minimum fields required to make a request.
@@ -2089,8 +1906,6 @@ data LookupResponse = LookupResponse'
2089-- * 'lrFound'
1906-- * 'lrFound'
2090--
1907--
2091-- * 'lrMissing'
1908-- * 'lrMissing'
2092−--
2093−-- * 'lrHeader'
2094lookupResponse
1909lookupResponse
2095 :: LookupResponse
1910 :: LookupResponse
2096lookupResponse =
1911lookupResponse =
@@ -2098,32 +1913,34 @@ lookupResponse =
2098 { _lrDeferred = Nothing
1913 { _lrDeferred = Nothing
2099 , _lrFound = Nothing
1914 , _lrFound = Nothing
2100 , _lrMissing = Nothing
1915 , _lrMissing = Nothing
2101− , _lrHeader = Nothing
2102 }
1916 }
2103
1917
2104−-- | A list of keys that were not looked up due to resource constraints.
1918+-- | A list of keys that were not looked up due to resource constraints. The
1919+-- order of results in this field is undefined and has no relation to the
1920+-- order of the keys in the input.
2105lrDeferred :: Lens' LookupResponse [Key]
1921lrDeferred :: Lens' LookupResponse [Key]
2106lrDeferred
1922lrDeferred
2107 = lens _lrDeferred (\ s a -> s{_lrDeferred = a}) .
1923 = lens _lrDeferred (\ s a -> s{_lrDeferred = a}) .
2108 _Default
1924 _Default
2109 . _Coerce
1925 . _Coerce
2110
1926
2111−-- | Entities found.
1927+-- | Entities found as \`ResultType.FULL\` entities. The order of results in
1928+-- this field is undefined and has no relation to the order of the keys in
1929+-- the input.
2112lrFound :: Lens' LookupResponse [EntityResult]
1930lrFound :: Lens' LookupResponse [EntityResult]
2113lrFound
1931lrFound
2114 = lens _lrFound (\ s a -> s{_lrFound = a}) . _Default
1932 = lens _lrFound (\ s a -> s{_lrFound = a}) . _Default
2115 . _Coerce
1933 . _Coerce
2116
1934
2117−-- | Entities not found, with only the key populated.
1935+-- | Entities not found as \`ResultType.KEY_ONLY\` entities. The order of
1936+-- results in this field is undefined and has no relation to the order of
1937+-- the keys in the input.
2118lrMissing :: Lens' LookupResponse [EntityResult]
1938lrMissing :: Lens' LookupResponse [EntityResult]
2119lrMissing
1939lrMissing
2120 = lens _lrMissing (\ s a -> s{_lrMissing = a}) .
1940 = lens _lrMissing (\ s a -> s{_lrMissing = a}) .
2121 _Default
1941 _Default
2122 . _Coerce
1942 . _Coerce
2123
1943
2124−lrHeader :: Lens' LookupResponse (Maybe ResponseHeader)
2125−lrHeader = lens _lrHeader (\ s a -> s{_lrHeader = a})
2126−
2127instance FromJSON LookupResponse where
1944instance FromJSON LookupResponse where
2128 parseJSON
1945 parseJSON
2129 = withObject "LookupResponse"
1946 = withObject "LookupResponse"
@@ -2131,8 +1948,7 @@ instance FromJSON LookupResponse where
2131 LookupResponse' <$>
1948 LookupResponse' <$>
2132 (o .:? "deferred" .!= mempty) <*>
1949 (o .:? "deferred" .!= mempty) <*>
2133 (o .:? "found" .!= mempty)
1950 (o .:? "found" .!= mempty)
2134− <*> (o .:? "missing" .!= mempty)
1951+ <*> (o .:? "missing" .!= mempty))
2135− <*> (o .:? "header"))
2136
1952
2137instance ToJSON LookupResponse where
1953instance ToJSON LookupResponse where
2138 toJSON LookupResponse'{..}
1954 toJSON LookupResponse'{..}
@@ -2140,8 +1956,7 @@ instance ToJSON LookupResponse where
2140 (catMaybes
1956 (catMaybes
2141 [("deferred" .=) <$> _lrDeferred,
1957 [("deferred" .=) <$> _lrDeferred,
2142 ("found" .=) <$> _lrFound,
1958 ("found" .=) <$> _lrFound,
2143− ("missing" .=) <$> _lrMissing,
1959+ ("missing" .=) <$> _lrMissing])
2144− ("header" .=) <$> _lrHeader])
2145
1960
2146-- | The desired order for a specific property.
1961-- | The desired order for a specific property.
2147--
1962--
@@ -2171,8 +1986,7 @@ poProperty :: Lens' PropertyOrder (Maybe PropertyReference)
2171poProperty
1986poProperty
2172 = lens _poProperty (\ s a -> s{_poProperty = a})
1987 = lens _poProperty (\ s a -> s{_poProperty = a})
2173
1988
2174−-- | The direction to order by. One of ascending or descending. Optional,
1989+-- | The direction to order by. Defaults to \`ASCENDING\`.
2175−-- defaults to ascending.
2176poDirection :: Lens' PropertyOrder (Maybe PropertyOrderDirection)
1990poDirection :: Lens' PropertyOrder (Maybe PropertyOrderDirection)
2177poDirection
1991poDirection
2178 = lens _poDirection (\ s a -> s{_poDirection = a})
1992 = lens _poDirection (\ s a -> s{_poDirection = a})
@@ -2190,3 +2004,50 @@ instance ToJSON PropertyOrder where
2190 (catMaybes
2004 (catMaybes
2191 [("property" .=) <$> _poProperty,
2005 [("property" .=) <$> _poProperty,
2192 ("direction" .=) <$> _poDirection])
2006 ("direction" .=) <$> _poDirection])
2007+
2008+-- | A binding parameter for a GQL query.
2009+--
2010+-- /See:/ 'gqlQueryParameter' smart constructor.
2011+data GqlQueryParameter = GqlQueryParameter'
2012+ { _gqpCursor :: !(Maybe (Textual Word8))
2013+ , _gqpValue :: !(Maybe Value)
2014+ } deriving (Eq,Show,Data,Typeable,Generic)
2015+
2016+-- | Creates a value of 'GqlQueryParameter' with the minimum fields required to make a request.
2017+--
2018+-- Use one of the following lenses to modify other fields as desired:
2019+--
2020+-- * 'gqpCursor'
2021+--
2022+-- * 'gqpValue'
2023+gqlQueryParameter
2024+ :: GqlQueryParameter
2025+gqlQueryParameter =
2026+ GqlQueryParameter'
2027+ { _gqpCursor = Nothing
2028+ , _gqpValue = Nothing
2029+ }
2030+
2031+-- | A query cursor. Query cursors are returned in query result batches.
2032+gqpCursor :: Lens' GqlQueryParameter (Maybe Word8)
2033+gqpCursor
2034+ = lens _gqpCursor (\ s a -> s{_gqpCursor = a}) .
2035+ mapping _Coerce
2036+
2037+-- | A value parameter.
2038+gqpValue :: Lens' GqlQueryParameter (Maybe Value)
2039+gqpValue = lens _gqpValue (\ s a -> s{_gqpValue = a})
2040+
2041+instance FromJSON GqlQueryParameter where
2042+ parseJSON
2043+ = withObject "GqlQueryParameter"
2044+ (\ o ->
2045+ GqlQueryParameter' <$>
2046+ (o .:? "cursor") <*> (o .:? "value"))
2047+
2048+instance ToJSON GqlQueryParameter where
2049+ toJSON GqlQueryParameter'{..}
2050+ = object
2051+ (catMaybes
2052+ [("cursor" .=) <$> _gqpCursor,
2053+ ("value" .=) <$> _gqpValue])
gogol-datastore/gen/Network/Google/Datastore/Types/Sum.hs+203−160
@@ -18,25 +18,31 @@ module Network.Google.Datastore.Types.Sum where
18
18
19import Network.Google.Prelude
19import Network.Google.Prelude
20
20
21−-- | The direction to order by. One of ascending or descending. Optional,
21+-- | The direction to order by. Defaults to \`ASCENDING\`.
22−-- defaults to ascending.
23data PropertyOrderDirection
22data PropertyOrderDirection
23+ = DirectionUnspecified
24+ -- ^ @DIRECTION_UNSPECIFIED@
25+ -- Unspecified. This value must not be used.
24− = Ascending
26+ | Ascending
25 -- ^ @ASCENDING@
27 -- ^ @ASCENDING@
28+ -- Ascending.
26 | Descending
29 | Descending
27 -- ^ @DESCENDING@
30 -- ^ @DESCENDING@
31+ -- Descending.
28− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
32+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
29
33
30instance Hashable PropertyOrderDirection
34instance Hashable PropertyOrderDirection
31
35
32instance FromHttpApiData PropertyOrderDirection where
36instance FromHttpApiData PropertyOrderDirection where
33 parseQueryParam = \case
37 parseQueryParam = \case
38+ "DIRECTION_UNSPECIFIED" -> Right DirectionUnspecified
34 "ASCENDING" -> Right Ascending
39 "ASCENDING" -> Right Ascending
35 "DESCENDING" -> Right Descending
40 "DESCENDING" -> Right Descending
36 x -> Left ("Unable to parse PropertyOrderDirection from: " <> x)
41 x -> Left ("Unable to parse PropertyOrderDirection from: " <> x)
37
42
38instance ToHttpApiData PropertyOrderDirection where
43instance ToHttpApiData PropertyOrderDirection where
39 toQueryParam = \case
44 toQueryParam = \case
45+ DirectionUnspecified -> "DIRECTION_UNSPECIFIED"
40 Ascending -> "ASCENDING"
46 Ascending -> "ASCENDING"
41 Descending -> "DESCENDING"
47 Descending -> "DESCENDING"
42
48
@@ -46,32 +52,67 @@ instance FromJSON PropertyOrderDirection where
46instance ToJSON PropertyOrderDirection where
52instance ToJSON PropertyOrderDirection where
47 toJSON = toJSONText
53 toJSON = toJSONText
48
54
55+-- | The operator for combining multiple filters.
56+data CompositeFilterOp
57+ = OperatorUnspecified
58+ -- ^ @OPERATOR_UNSPECIFIED@
59+ -- Unspecified. This value must not be used.
60+ | And
61+ -- ^ @AND@
62+ -- The results are required to satisfy each of the combined filters.
63+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
64+
65+instance Hashable CompositeFilterOp
66+
67+instance FromHttpApiData CompositeFilterOp where
68+ parseQueryParam = \case
69+ "OPERATOR_UNSPECIFIED" -> Right OperatorUnspecified
70+ "AND" -> Right And
71+ x -> Left ("Unable to parse CompositeFilterOp from: " <> x)
72+
73+instance ToHttpApiData CompositeFilterOp where
74+ toQueryParam = \case
75+ OperatorUnspecified -> "OPERATOR_UNSPECIFIED"
76+ And -> "AND"
77+
78+instance FromJSON CompositeFilterOp where
79+ parseJSON = parseJSONText "CompositeFilterOp"
80+
81+instance ToJSON CompositeFilterOp where
82+ toJSON = toJSONText
83+
49−-- | The result type for every entity in entityResults. full for full
84+-- | The result type for every entity in \`entity_results\`.
50−-- entities, projection for entities with only projected properties,
51−-- keyOnly for entities with only a key.
52data QueryResultBatchEntityResultType
85data QueryResultBatchEntityResultType
53− = Full
86+ = QRBERTResultTypeUnspecified
87+ -- ^ @RESULT_TYPE_UNSPECIFIED@
88+ -- Unspecified. This value is never used.
89+ | QRBERTFull
54 -- ^ @FULL@
90 -- ^ @FULL@
55− | KeyOnly
91+ -- The key and properties.
56− -- ^ @KEY_ONLY@
92+ | QRBERTProjection
57− | Projection
58 -- ^ @PROJECTION@
93 -- ^ @PROJECTION@
94+ -- A projected subset of properties. The entity may have no key.
95+ | QRBERTKeyOnly
96+ -- ^ @KEY_ONLY@
97+ -- Only the key.
59− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
98+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
60
99
61instance Hashable QueryResultBatchEntityResultType
100instance Hashable QueryResultBatchEntityResultType
62
101
63instance FromHttpApiData QueryResultBatchEntityResultType where
102instance FromHttpApiData QueryResultBatchEntityResultType where
64 parseQueryParam = \case
103 parseQueryParam = \case
104+ "RESULT_TYPE_UNSPECIFIED" -> Right QRBERTResultTypeUnspecified
65− "FULL" -> Right Full
105+ "FULL" -> Right QRBERTFull
106+ "PROJECTION" -> Right QRBERTProjection
66− "KEY_ONLY" -> Right KeyOnly
107+ "KEY_ONLY" -> Right QRBERTKeyOnly
67− "PROJECTION" -> Right Projection
68 x -> Left ("Unable to parse QueryResultBatchEntityResultType from: " <> x)
108 x -> Left ("Unable to parse QueryResultBatchEntityResultType from: " <> x)
69
109
70instance ToHttpApiData QueryResultBatchEntityResultType where
110instance ToHttpApiData QueryResultBatchEntityResultType where
71 toQueryParam = \case
111 toQueryParam = \case
72− Full -> "FULL"
112+ QRBERTResultTypeUnspecified -> "RESULT_TYPE_UNSPECIFIED"
73− KeyOnly -> "KEY_ONLY"
113+ QRBERTFull -> "FULL"
74− Projection -> "PROJECTION"
114+ QRBERTProjection -> "PROJECTION"
115+ QRBERTKeyOnly -> "KEY_ONLY"
75
116
76instance FromJSON QueryResultBatchEntityResultType where
117instance FromJSON QueryResultBatchEntityResultType where
77 parseJSON = parseJSONText "QueryResultBatchEntityResultType"
118 parseJSON = parseJSONText "QueryResultBatchEntityResultType"
@@ -79,54 +120,43 @@ instance FromJSON QueryResultBatchEntityResultType where
79instance ToJSON QueryResultBatchEntityResultType where
120instance ToJSON QueryResultBatchEntityResultType where
80 toJSON = toJSONText
121 toJSON = toJSONText
81
122
82−-- | The operator for combining multiple filters. Only \"and\" is currently
83−-- supported.
84−data CompositeFilterOperator
85− = And
86− -- ^ @AND@
87− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
88−
89−instance Hashable CompositeFilterOperator
90−
91−instance FromHttpApiData CompositeFilterOperator where
92− parseQueryParam = \case
93− "AND" -> Right And
94− x -> Left ("Unable to parse CompositeFilterOperator from: " <> x)
95−
96−instance ToHttpApiData CompositeFilterOperator where
97− toQueryParam = \case
98− And -> "AND"
99−
100−instance FromJSON CompositeFilterOperator where
101− parseJSON = parseJSONText "CompositeFilterOperator"
102−
103−instance ToJSON CompositeFilterOperator where
104− toJSON = toJSONText
105−
106−-- | The state of the query after the current batch. One of notFinished,
123+-- | The state of the query after the current batch.
107−-- moreResultsAfterLimit, noMoreResults.
108data QueryResultBatchMoreResults
124data QueryResultBatchMoreResults
109− = MoreResultsAfterLimit
125+ = MoreResultsTypeUnspecified
110− -- ^ @MORE_RESULTS_AFTER_LIMIT@
126+ -- ^ @MORE_RESULTS_TYPE_UNSPECIFIED@
127+ -- Unspecified. This value is never used.
111 | NotFinished
128 | NotFinished
112 -- ^ @NOT_FINISHED@
129 -- ^ @NOT_FINISHED@
130+ -- There may be additional batches to fetch from this query.
131+ | MoreResultsAfterLimit
132+ -- ^ @MORE_RESULTS_AFTER_LIMIT@
133+ -- The query is finished, but there may be more results after the limit.
134+ | MoreResultsAfterCursor
135+ -- ^ @MORE_RESULTS_AFTER_CURSOR@
136+ -- The query is finished, but there may be more results after the end
137+ -- cursor.
113 | NoMoreResults
138 | NoMoreResults
114 -- ^ @NO_MORE_RESULTS@
139 -- ^ @NO_MORE_RESULTS@
140+ -- The query has been exhausted.
115− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
141+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
116
142
117instance Hashable QueryResultBatchMoreResults
143instance Hashable QueryResultBatchMoreResults
118
144
119instance FromHttpApiData QueryResultBatchMoreResults where
145instance FromHttpApiData QueryResultBatchMoreResults where
120 parseQueryParam = \case
146 parseQueryParam = \case
121− "MORE_RESULTS_AFTER_LIMIT" -> Right MoreResultsAfterLimit
147+ "MORE_RESULTS_TYPE_UNSPECIFIED" -> Right MoreResultsTypeUnspecified
122 "NOT_FINISHED" -> Right NotFinished
148 "NOT_FINISHED" -> Right NotFinished
149+ "MORE_RESULTS_AFTER_LIMIT" -> Right MoreResultsAfterLimit
150+ "MORE_RESULTS_AFTER_CURSOR" -> Right MoreResultsAfterCursor
123 "NO_MORE_RESULTS" -> Right NoMoreResults
151 "NO_MORE_RESULTS" -> Right NoMoreResults
124 x -> Left ("Unable to parse QueryResultBatchMoreResults from: " <> x)
152 x -> Left ("Unable to parse QueryResultBatchMoreResults from: " <> x)
125
153
126instance ToHttpApiData QueryResultBatchMoreResults where
154instance ToHttpApiData QueryResultBatchMoreResults where
127 toQueryParam = \case
155 toQueryParam = \case
128− MoreResultsAfterLimit -> "MORE_RESULTS_AFTER_LIMIT"
156+ MoreResultsTypeUnspecified -> "MORE_RESULTS_TYPE_UNSPECIFIED"
129 NotFinished -> "NOT_FINISHED"
157 NotFinished -> "NOT_FINISHED"
158+ MoreResultsAfterLimit -> "MORE_RESULTS_AFTER_LIMIT"
159+ MoreResultsAfterCursor -> "MORE_RESULTS_AFTER_CURSOR"
130 NoMoreResults -> "NO_MORE_RESULTS"
160 NoMoreResults -> "NO_MORE_RESULTS"
131
161
132instance FromJSON QueryResultBatchMoreResults where
162instance FromJSON QueryResultBatchMoreResults where
@@ -135,33 +165,58 @@ instance FromJSON QueryResultBatchMoreResults where
135instance ToJSON QueryResultBatchMoreResults where
165instance ToJSON QueryResultBatchMoreResults where
136 toJSON = toJSONText
166 toJSON = toJSONText
137
167
168+-- | A null value.
169+data ValueNullValue
170+ = NullValue
171+ -- ^ @NULL_VALUE@
172+ -- Null value.
173+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
174+
175+instance Hashable ValueNullValue
176+
177+instance FromHttpApiData ValueNullValue where
178+ parseQueryParam = \case
179+ "NULL_VALUE" -> Right NullValue
180+ x -> Left ("Unable to parse ValueNullValue from: " <> x)
181+
182+instance ToHttpApiData ValueNullValue where
183+ toQueryParam = \case
184+ NullValue -> "NULL_VALUE"
185+
186+instance FromJSON ValueNullValue where
187+ parseJSON = parseJSONText "ValueNullValue"
188+
189+instance ToJSON ValueNullValue where
190+ toJSON = toJSONText
191+
138−-- | The read consistency to use. One of default, strong, or eventual. Cannot
192+-- | The non-transactional read consistency to use. Cannot be set to
139−-- be set when transaction is set. Lookup and ancestor queries default to
193+-- \`STRONG\` for global queries.
140−-- strong, global queries default to eventual and cannot be set to strong.
141−-- Optional. Default is default.
142data ReadOptionsReadConsistency
194data ReadOptionsReadConsistency
143− = Default
195+ = ReadConsistencyUnspecified
144− -- ^ @DEFAULT@
196+ -- ^ @READ_CONSISTENCY_UNSPECIFIED@
145− | Eventual
197+ -- Unspecified. This value must not be used.
146− -- ^ @EVENTUAL@
147 | Strong
198 | Strong
148 -- ^ @STRONG@
199 -- ^ @STRONG@
200+ -- Strong consistency.
201+ | Eventual
202+ -- ^ @EVENTUAL@
203+ -- Eventual consistency.
149− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
204+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
150
205
151instance Hashable ReadOptionsReadConsistency
206instance Hashable ReadOptionsReadConsistency
152
207
153instance FromHttpApiData ReadOptionsReadConsistency where
208instance FromHttpApiData ReadOptionsReadConsistency where
154 parseQueryParam = \case
209 parseQueryParam = \case
155− "DEFAULT" -> Right Default
210+ "READ_CONSISTENCY_UNSPECIFIED" -> Right ReadConsistencyUnspecified
156− "EVENTUAL" -> Right Eventual
157 "STRONG" -> Right Strong
211 "STRONG" -> Right Strong
212+ "EVENTUAL" -> Right Eventual
158 x -> Left ("Unable to parse ReadOptionsReadConsistency from: " <> x)
213 x -> Left ("Unable to parse ReadOptionsReadConsistency from: " <> x)
159
214
160instance ToHttpApiData ReadOptionsReadConsistency where
215instance ToHttpApiData ReadOptionsReadConsistency where
161 toQueryParam = \case
216 toQueryParam = \case
162− Default -> "DEFAULT"
217+ ReadConsistencyUnspecified -> "READ_CONSISTENCY_UNSPECIFIED"
163− Eventual -> "EVENTUAL"
164 Strong -> "STRONG"
218 Strong -> "STRONG"
219+ Eventual -> "EVENTUAL"
165
220
166instance FromJSON ReadOptionsReadConsistency where
221instance FromJSON ReadOptionsReadConsistency where
167 parseJSON = parseJSONText "ReadOptionsReadConsistency"
222 parseJSON = parseJSONText "ReadOptionsReadConsistency"
@@ -169,133 +224,121 @@ instance FromJSON ReadOptionsReadConsistency where
169instance ToJSON ReadOptionsReadConsistency where
224instance ToJSON ReadOptionsReadConsistency where
170 toJSON = toJSONText
225 toJSON = toJSONText
171
226
172−-- | The operator to filter by. One of lessThan, lessThanOrEqual,
227+-- | V1 error format.
173−-- greaterThan, greaterThanOrEqual, equal, or hasAncestor.
228+data Xgafv
174−data PropertyFilterOperator
229+ = X1
175− = Equal
230+ -- ^ @1@
176− -- ^ @EQUAL@
231+ -- v1 error format
177− | GreaterThan
232+ | X2
178− -- ^ @GREATER_THAN@
233+ -- ^ @2@
179− | GreaterThanOrEqual
234+ -- v2 error format
180− -- ^ @GREATER_THAN_OR_EQUAL@
181− | HasAncestor
182− -- ^ @HAS_ANCESTOR@
183− | LessThan
184− -- ^ @LESS_THAN@
185− | LessThanOrEqual
186− -- ^ @LESS_THAN_OR_EQUAL@
187− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
235+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
188
236
189−instance Hashable PropertyFilterOperator
237+instance Hashable Xgafv
190
238
191−instance FromHttpApiData PropertyFilterOperator where
239+instance FromHttpApiData Xgafv where
192 parseQueryParam = \case
240 parseQueryParam = \case
193− "EQUAL" -> Right Equal
241+ "1" -> Right X1
194− "GREATER_THAN" -> Right GreaterThan
242+ "2" -> Right X2
195− "GREATER_THAN_OR_EQUAL" -> Right GreaterThanOrEqual
196− "HAS_ANCESTOR" -> Right HasAncestor
197− "LESS_THAN" -> Right LessThan
198− "LESS_THAN_OR_EQUAL" -> Right LessThanOrEqual
199− x -> Left ("Unable to parse PropertyFilterOperator from: " <> x)
243+ x -> Left ("Unable to parse Xgafv from: " <> x)
200−
244+
201−instance ToHttpApiData PropertyFilterOperator where
245+instance ToHttpApiData Xgafv where
202 toQueryParam = \case
246 toQueryParam = \case
203− Equal -> "EQUAL"
247+ X1 -> "1"
204− GreaterThan -> "GREATER_THAN"
248+ X2 -> "2"
205− GreaterThanOrEqual -> "GREATER_THAN_OR_EQUAL"
206− HasAncestor -> "HAS_ANCESTOR"
207− LessThan -> "LESS_THAN"
208− LessThanOrEqual -> "LESS_THAN_OR_EQUAL"
209
249
210−instance FromJSON PropertyFilterOperator where
250+instance FromJSON Xgafv where
211− parseJSON = parseJSONText "PropertyFilterOperator"
251+ parseJSON = parseJSONText "Xgafv"
212
252
213−instance ToJSON PropertyFilterOperator where
253+instance ToJSON Xgafv where
214 toJSON = toJSONText
254 toJSON = toJSONText
215
255
216−-- | The transaction isolation level. Either snapshot or serializable. The
256+-- | The operator to filter by.
217−-- default isolation level is snapshot isolation, which means that another
257+data PropertyFilterOp
218−-- transaction may not concurrently modify the data that is modified by
258+ = PFOOperatorUnspecified
219−-- this transaction. Optionally, a transaction can request to be made
259+ -- ^ @OPERATOR_UNSPECIFIED@
220−-- serializable which means that another transaction cannot concurrently
260+ -- Unspecified. This value must not be used.
221−-- modify the data that is read or modified by this transaction.
261+ | PFOLessThan
222−data BeginTransactionRequestIsolationLevel
262+ -- ^ @LESS_THAN@
223− = Serializable
263+ -- Less than.
224− -- ^ @SERIALIZABLE@
264+ | PFOLessThanOrEqual
225− | Snapshot
265+ -- ^ @LESS_THAN_OR_EQUAL@
226− -- ^ @SNAPSHOT@
266+ -- Less than or equal.
267+ | PFOGreaterThan
268+ -- ^ @GREATER_THAN@
269+ -- Greater than.
270+ | PFOGreaterThanOrEqual
271+ -- ^ @GREATER_THAN_OR_EQUAL@
272+ -- Greater than or equal.
273+ | PFOEqual
274+ -- ^ @EQUAL@
275+ -- Equal.
276+ | PFOHasAncestor
277+ -- ^ @HAS_ANCESTOR@
278+ -- Has ancestor.
227− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
279+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
228−
229−instance Hashable BeginTransactionRequestIsolationLevel
230−
231−instance FromHttpApiData BeginTransactionRequestIsolationLevel where
232− parseQueryParam = \case
233− "SERIALIZABLE" -> Right Serializable
234− "SNAPSHOT" -> Right Snapshot
235− x -> Left ("Unable to parse BeginTransactionRequestIsolationLevel from: " <> x)
236−
237−instance ToHttpApiData BeginTransactionRequestIsolationLevel where
238− toQueryParam = \case
239− Serializable -> "SERIALIZABLE"
240− Snapshot -> "SNAPSHOT"
241
280
242−instance FromJSON BeginTransactionRequestIsolationLevel where
281+instance Hashable PropertyFilterOp
243− parseJSON = parseJSONText "BeginTransactionRequestIsolationLevel"
244
282
245−instance ToJSON BeginTransactionRequestIsolationLevel where
283+instance FromHttpApiData PropertyFilterOp where
284+ parseQueryParam = \case
285+ "OPERATOR_UNSPECIFIED" -> Right PFOOperatorUnspecified
286+ "LESS_THAN" -> Right PFOLessThan
287+ "LESS_THAN_OR_EQUAL" -> Right PFOLessThanOrEqual
288+ "GREATER_THAN" -> Right PFOGreaterThan
289+ "GREATER_THAN_OR_EQUAL" -> Right PFOGreaterThanOrEqual
290+ "EQUAL" -> Right PFOEqual
291+ "HAS_ANCESTOR" -> Right PFOHasAncestor
292+ x -> Left ("Unable to parse PropertyFilterOp from: " <> x)
293+
294+instance ToHttpApiData PropertyFilterOp where
295+ toQueryParam = \case
296+ PFOOperatorUnspecified -> "OPERATOR_UNSPECIFIED"
297+ PFOLessThan -> "LESS_THAN"
298+ PFOLessThanOrEqual -> "LESS_THAN_OR_EQUAL"
299+ PFOGreaterThan -> "GREATER_THAN"
300+ PFOGreaterThanOrEqual -> "GREATER_THAN_OR_EQUAL"
301+ PFOEqual -> "EQUAL"
302+ PFOHasAncestor -> "HAS_ANCESTOR"
303+
304+instance FromJSON PropertyFilterOp where
305+ parseJSON = parseJSONText "PropertyFilterOp"
306+
307+instance ToJSON PropertyFilterOp where
246 toJSON = toJSONText
308 toJSON = toJSONText
247
309
248−-- | The type of commit to perform. Either TRANSACTIONAL or
310+-- | The type of commit to perform. Defaults to \`TRANSACTIONAL\`.
249−-- NON_TRANSACTIONAL.
250data CommitRequestMode
311data CommitRequestMode
251− = NonTransactional
312+ = ModeUnspecified
252− -- ^ @NON_TRANSACTIONAL@
313+ -- ^ @MODE_UNSPECIFIED@
314+ -- Unspecified. This value must not be used.
253 | Transactional
315 | Transactional
254 -- ^ @TRANSACTIONAL@
316 -- ^ @TRANSACTIONAL@
317+ -- Transactional: The mutations are either all applied, or none are
318+ -- applied. Learn about transactions
319+ -- [here](https:\/\/cloud.google.com\/datastore\/docs\/concepts\/transactions).
320+ | NonTransactional
321+ -- ^ @NON_TRANSACTIONAL@
322+ -- Non-transactional: The mutations may not apply as all or none.
255− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
323+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
256
324
257instance Hashable CommitRequestMode
325instance Hashable CommitRequestMode
258
326
259instance FromHttpApiData CommitRequestMode where
327instance FromHttpApiData CommitRequestMode where
260 parseQueryParam = \case
328 parseQueryParam = \case
261− "NON_TRANSACTIONAL" -> Right NonTransactional
329+ "MODE_UNSPECIFIED" -> Right ModeUnspecified
262 "TRANSACTIONAL" -> Right Transactional
330 "TRANSACTIONAL" -> Right Transactional
331+ "NON_TRANSACTIONAL" -> Right NonTransactional
263 x -> Left ("Unable to parse CommitRequestMode from: " <> x)
332 x -> Left ("Unable to parse CommitRequestMode from: " <> x)
264
333
265instance ToHttpApiData CommitRequestMode where
334instance ToHttpApiData CommitRequestMode where
266 toQueryParam = \case
335 toQueryParam = \case
267− NonTransactional -> "NON_TRANSACTIONAL"
336+ ModeUnspecified -> "MODE_UNSPECIFIED"
268 Transactional -> "TRANSACTIONAL"
337 Transactional -> "TRANSACTIONAL"
338+ NonTransactional -> "NON_TRANSACTIONAL"
269
339
270instance FromJSON CommitRequestMode where
340instance FromJSON CommitRequestMode where
271 parseJSON = parseJSONText "CommitRequestMode"
341 parseJSON = parseJSONText "CommitRequestMode"
272
342
273instance ToJSON CommitRequestMode where
343instance ToJSON CommitRequestMode where
274 toJSON = toJSONText
344 toJSON = toJSONText
275−
276−-- | The aggregation function to apply to the property. Optional. Can only be
277−-- used when grouping by at least one property. Must then be set on all
278−-- properties in the projection that are not being grouped by. Aggregation
279−-- functions: first selects the first result as determined by the query\'s
280−-- order.
281−data PropertyExpressionAggregationFunction
282− = First
283− -- ^ @FIRST@
284− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
285−
286−instance Hashable PropertyExpressionAggregationFunction
287−
288−instance FromHttpApiData PropertyExpressionAggregationFunction where
289− parseQueryParam = \case
290− "FIRST" -> Right First
291− x -> Left ("Unable to parse PropertyExpressionAggregationFunction from: " <> x)
292−
293−instance ToHttpApiData PropertyExpressionAggregationFunction where
294− toQueryParam = \case
295− First -> "FIRST"
296−
297−instance FromJSON PropertyExpressionAggregationFunction where
298− parseJSON = parseJSONText "PropertyExpressionAggregationFunction"
299−
300−instance ToJSON PropertyExpressionAggregationFunction where
301− toJSON = toJSONText
gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/AllocateIds.hsdeleted−105
@@ -1,105 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Datastore.DataSets.AllocateIds
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Allocate IDs for incomplete keys (useful for referencing an entity
24−-- before it is inserted).
25−--
26−-- /See:/ <https://developers.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.datasets.allocateIds@.
27−module Network.Google.Resource.Datastore.DataSets.AllocateIds
28− (
29− -- * REST Resource
30− DataSetsAllocateIdsResource
31−
32− -- * Creating a Request
33− , dataSetsAllocateIds
34− , DataSetsAllocateIds
35−
36− -- * Request Lenses
37− , dsaiPayload
38− , dsaiDataSetId
39− ) where
40−
41−import Network.Google.Datastore.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @datastore.datasets.allocateIds@ method which the
45−-- 'DataSetsAllocateIds' request conforms to.
46−type DataSetsAllocateIdsResource =
47− "datastore" :>
48− "v1beta2" :>
49− "datasets" :>
50− Capture "datasetId" Text :>
51− "allocateIds" :>
52− QueryParam "alt" AltJSON :>
53− ReqBody '[JSON] AllocateIdsRequest :>
54− Post '[JSON] AllocateIdsResponse
55−
56−-- | Allocate IDs for incomplete keys (useful for referencing an entity
57−-- before it is inserted).
58−--
59−-- /See:/ 'dataSetsAllocateIds' smart constructor.
60−data DataSetsAllocateIds = DataSetsAllocateIds'
61− { _dsaiPayload :: !AllocateIdsRequest
62− , _dsaiDataSetId :: !Text
63− } deriving (Eq,Show,Data,Typeable,Generic)
64−
65−-- | Creates a value of 'DataSetsAllocateIds' with the minimum fields required to make a request.
66−--
67−-- Use one of the following lenses to modify other fields as desired:
68−--
69−-- * 'dsaiPayload'
70−--
71−-- * 'dsaiDataSetId'
72−dataSetsAllocateIds
73− :: AllocateIdsRequest -- ^ 'dsaiPayload'
74− -> Text -- ^ 'dsaiDataSetId'
75− -> DataSetsAllocateIds
76−dataSetsAllocateIds pDsaiPayload_ pDsaiDataSetId_ =
77− DataSetsAllocateIds'
78− { _dsaiPayload = pDsaiPayload_
79− , _dsaiDataSetId = pDsaiDataSetId_
80− }
81−
82−-- | Multipart request metadata.
83−dsaiPayload :: Lens' DataSetsAllocateIds AllocateIdsRequest
84−dsaiPayload
85− = lens _dsaiPayload (\ s a -> s{_dsaiPayload = a})
86−
87−-- | Identifies the dataset.
88−dsaiDataSetId :: Lens' DataSetsAllocateIds Text
89−dsaiDataSetId
90− = lens _dsaiDataSetId
91− (\ s a -> s{_dsaiDataSetId = a})
92−
93−instance GoogleRequest DataSetsAllocateIds where
94− type Rs DataSetsAllocateIds = AllocateIdsResponse
95− type Scopes DataSetsAllocateIds =
96− '["https://www.googleapis.com/auth/cloud-platform",
97− "https://www.googleapis.com/auth/datastore",
98− "https://www.googleapis.com/auth/userinfo.email"]
99− requestClient DataSetsAllocateIds'{..}
100− = go _dsaiDataSetId (Just AltJSON) _dsaiPayload
101− datastoreService
102− where go
103− = buildClient
104− (Proxy :: Proxy DataSetsAllocateIdsResource)
105− mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/BeginTransaction.hsdeleted−104
@@ -1,104 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Datastore.DataSets.BeginTransaction
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Begin a new transaction.
24−--
25−-- /See:/ <https://developers.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.datasets.beginTransaction@.
26−module Network.Google.Resource.Datastore.DataSets.BeginTransaction
27− (
28− -- * REST Resource
29− DataSetsBeginTransactionResource
30−
31− -- * Creating a Request
32− , dataSetsBeginTransaction
33− , DataSetsBeginTransaction
34−
35− -- * Request Lenses
36− , dsbtPayload
37− , dsbtDataSetId
38− ) where
39−
40−import Network.Google.Datastore.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @datastore.datasets.beginTransaction@ method which the
44−-- 'DataSetsBeginTransaction' request conforms to.
45−type DataSetsBeginTransactionResource =
46− "datastore" :>
47− "v1beta2" :>
48− "datasets" :>
49− Capture "datasetId" Text :>
50− "beginTransaction" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] BeginTransactionRequest :>
53− Post '[JSON] BeginTransactionResponse
54−
55−-- | Begin a new transaction.
56−--
57−-- /See:/ 'dataSetsBeginTransaction' smart constructor.
58−data DataSetsBeginTransaction = DataSetsBeginTransaction'
59− { _dsbtPayload :: !BeginTransactionRequest
60− , _dsbtDataSetId :: !Text
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'DataSetsBeginTransaction' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'dsbtPayload'
68−--
69−-- * 'dsbtDataSetId'
70−dataSetsBeginTransaction
71− :: BeginTransactionRequest -- ^ 'dsbtPayload'
72− -> Text -- ^ 'dsbtDataSetId'
73− -> DataSetsBeginTransaction
74−dataSetsBeginTransaction pDsbtPayload_ pDsbtDataSetId_ =
75− DataSetsBeginTransaction'
76− { _dsbtPayload = pDsbtPayload_
77− , _dsbtDataSetId = pDsbtDataSetId_
78− }
79−
80−-- | Multipart request metadata.
81−dsbtPayload :: Lens' DataSetsBeginTransaction BeginTransactionRequest
82−dsbtPayload
83− = lens _dsbtPayload (\ s a -> s{_dsbtPayload = a})
84−
85−-- | Identifies the dataset.
86−dsbtDataSetId :: Lens' DataSetsBeginTransaction Text
87−dsbtDataSetId
88− = lens _dsbtDataSetId
89− (\ s a -> s{_dsbtDataSetId = a})
90−
91−instance GoogleRequest DataSetsBeginTransaction where
92− type Rs DataSetsBeginTransaction =
93− BeginTransactionResponse
94− type Scopes DataSetsBeginTransaction =
95− '["https://www.googleapis.com/auth/cloud-platform",
96− "https://www.googleapis.com/auth/datastore",
97− "https://www.googleapis.com/auth/userinfo.email"]
98− requestClient DataSetsBeginTransaction'{..}
99− = go _dsbtDataSetId (Just AltJSON) _dsbtPayload
100− datastoreService
101− where go
102− = buildClient
103− (Proxy :: Proxy DataSetsBeginTransactionResource)
104− mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/Commit.hsdeleted−103
@@ -1,103 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Datastore.DataSets.Commit
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Commit a transaction, optionally creating, deleting or modifying some
24−-- entities.
25−--
26−-- /See:/ <https://developers.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.datasets.commit@.
27−module Network.Google.Resource.Datastore.DataSets.Commit
28− (
29− -- * REST Resource
30− DataSetsCommitResource
31−
32− -- * Creating a Request
33− , dataSetsCommit
34− , DataSetsCommit
35−
36− -- * Request Lenses
37− , dscPayload
38− , dscDataSetId
39− ) where
40−
41−import Network.Google.Datastore.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @datastore.datasets.commit@ method which the
45−-- 'DataSetsCommit' request conforms to.
46−type DataSetsCommitResource =
47− "datastore" :>
48− "v1beta2" :>
49− "datasets" :>
50− Capture "datasetId" Text :>
51− "commit" :>
52− QueryParam "alt" AltJSON :>
53− ReqBody '[JSON] CommitRequest :>
54− Post '[JSON] CommitResponse
55−
56−-- | Commit a transaction, optionally creating, deleting or modifying some
57−-- entities.
58−--
59−-- /See:/ 'dataSetsCommit' smart constructor.
60−data DataSetsCommit = DataSetsCommit'
61− { _dscPayload :: !CommitRequest
62− , _dscDataSetId :: !Text
63− } deriving (Eq,Show,Data,Typeable,Generic)
64−
65−-- | Creates a value of 'DataSetsCommit' with the minimum fields required to make a request.
66−--
67−-- Use one of the following lenses to modify other fields as desired:
68−--
69−-- * 'dscPayload'
70−--
71−-- * 'dscDataSetId'
72−dataSetsCommit
73− :: CommitRequest -- ^ 'dscPayload'
74− -> Text -- ^ 'dscDataSetId'
75− -> DataSetsCommit
76−dataSetsCommit pDscPayload_ pDscDataSetId_ =
77− DataSetsCommit'
78− { _dscPayload = pDscPayload_
79− , _dscDataSetId = pDscDataSetId_
80− }
81−
82−-- | Multipart request metadata.
83−dscPayload :: Lens' DataSetsCommit CommitRequest
84−dscPayload
85− = lens _dscPayload (\ s a -> s{_dscPayload = a})
86−
87−-- | Identifies the dataset.
88−dscDataSetId :: Lens' DataSetsCommit Text
89−dscDataSetId
90− = lens _dscDataSetId (\ s a -> s{_dscDataSetId = a})
91−
92−instance GoogleRequest DataSetsCommit where
93− type Rs DataSetsCommit = CommitResponse
94− type Scopes DataSetsCommit =
95− '["https://www.googleapis.com/auth/cloud-platform",
96− "https://www.googleapis.com/auth/datastore",
97− "https://www.googleapis.com/auth/userinfo.email"]
98− requestClient DataSetsCommit'{..}
99− = go _dscDataSetId (Just AltJSON) _dscPayload
100− datastoreService
101− where go
102− = buildClient (Proxy :: Proxy DataSetsCommitResource)
103− mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/Lookup.hsdeleted−101
@@ -1,101 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Datastore.DataSets.Lookup
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Look up some entities by key.
24−--
25−-- /See:/ <https://developers.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.datasets.lookup@.
26−module Network.Google.Resource.Datastore.DataSets.Lookup
27− (
28− -- * REST Resource
29− DataSetsLookupResource
30−
31− -- * Creating a Request
32− , dataSetsLookup
33− , DataSetsLookup
34−
35− -- * Request Lenses
36− , dslPayload
37− , dslDataSetId
38− ) where
39−
40−import Network.Google.Datastore.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @datastore.datasets.lookup@ method which the
44−-- 'DataSetsLookup' request conforms to.
45−type DataSetsLookupResource =
46− "datastore" :>
47− "v1beta2" :>
48− "datasets" :>
49− Capture "datasetId" Text :>
50− "lookup" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] LookupRequest :>
53− Post '[JSON] LookupResponse
54−
55−-- | Look up some entities by key.
56−--
57−-- /See:/ 'dataSetsLookup' smart constructor.
58−data DataSetsLookup = DataSetsLookup'
59− { _dslPayload :: !LookupRequest
60− , _dslDataSetId :: !Text
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'DataSetsLookup' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'dslPayload'
68−--
69−-- * 'dslDataSetId'
70−dataSetsLookup
71− :: LookupRequest -- ^ 'dslPayload'
72− -> Text -- ^ 'dslDataSetId'
73− -> DataSetsLookup
74−dataSetsLookup pDslPayload_ pDslDataSetId_ =
75− DataSetsLookup'
76− { _dslPayload = pDslPayload_
77− , _dslDataSetId = pDslDataSetId_
78− }
79−
80−-- | Multipart request metadata.
81−dslPayload :: Lens' DataSetsLookup LookupRequest
82−dslPayload
83− = lens _dslPayload (\ s a -> s{_dslPayload = a})
84−
85−-- | Identifies the dataset.
86−dslDataSetId :: Lens' DataSetsLookup Text
87−dslDataSetId
88− = lens _dslDataSetId (\ s a -> s{_dslDataSetId = a})
89−
90−instance GoogleRequest DataSetsLookup where
91− type Rs DataSetsLookup = LookupResponse
92− type Scopes DataSetsLookup =
93− '["https://www.googleapis.com/auth/cloud-platform",
94− "https://www.googleapis.com/auth/datastore",
95− "https://www.googleapis.com/auth/userinfo.email"]
96− requestClient DataSetsLookup'{..}
97− = go _dslDataSetId (Just AltJSON) _dslPayload
98− datastoreService
99− where go
100− = buildClient (Proxy :: Proxy DataSetsLookupResource)
101− mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/Rollback.hsdeleted−102
@@ -1,102 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Datastore.DataSets.Rollback
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Roll back a transaction.
24−--
25−-- /See:/ <https://developers.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.datasets.rollback@.
26−module Network.Google.Resource.Datastore.DataSets.Rollback
27− (
28− -- * REST Resource
29− DataSetsRollbackResource
30−
31− -- * Creating a Request
32− , dataSetsRollback
33− , DataSetsRollback
34−
35− -- * Request Lenses
36− , dsrPayload
37− , dsrDataSetId
38− ) where
39−
40−import Network.Google.Datastore.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @datastore.datasets.rollback@ method which the
44−-- 'DataSetsRollback' request conforms to.
45−type DataSetsRollbackResource =
46− "datastore" :>
47− "v1beta2" :>
48− "datasets" :>
49− Capture "datasetId" Text :>
50− "rollback" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] RollbackRequest :>
53− Post '[JSON] RollbackResponse
54−
55−-- | Roll back a transaction.
56−--
57−-- /See:/ 'dataSetsRollback' smart constructor.
58−data DataSetsRollback = DataSetsRollback'
59− { _dsrPayload :: !RollbackRequest
60− , _dsrDataSetId :: !Text
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'DataSetsRollback' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'dsrPayload'
68−--
69−-- * 'dsrDataSetId'
70−dataSetsRollback
71− :: RollbackRequest -- ^ 'dsrPayload'
72− -> Text -- ^ 'dsrDataSetId'
73− -> DataSetsRollback
74−dataSetsRollback pDsrPayload_ pDsrDataSetId_ =
75− DataSetsRollback'
76− { _dsrPayload = pDsrPayload_
77− , _dsrDataSetId = pDsrDataSetId_
78− }
79−
80−-- | Multipart request metadata.
81−dsrPayload :: Lens' DataSetsRollback RollbackRequest
82−dsrPayload
83− = lens _dsrPayload (\ s a -> s{_dsrPayload = a})
84−
85−-- | Identifies the dataset.
86−dsrDataSetId :: Lens' DataSetsRollback Text
87−dsrDataSetId
88− = lens _dsrDataSetId (\ s a -> s{_dsrDataSetId = a})
89−
90−instance GoogleRequest DataSetsRollback where
91− type Rs DataSetsRollback = RollbackResponse
92− type Scopes DataSetsRollback =
93− '["https://www.googleapis.com/auth/cloud-platform",
94− "https://www.googleapis.com/auth/datastore",
95− "https://www.googleapis.com/auth/userinfo.email"]
96− requestClient DataSetsRollback'{..}
97− = go _dsrDataSetId (Just AltJSON) _dsrPayload
98− datastoreService
99− where go
100− = buildClient
101− (Proxy :: Proxy DataSetsRollbackResource)
102− mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/RunQuery.hsdeleted−103
@@ -1,103 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Datastore.DataSets.RunQuery
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Query for entities.
24−--
25−-- /See:/ <https://developers.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.datasets.runQuery@.
26−module Network.Google.Resource.Datastore.DataSets.RunQuery
27− (
28− -- * REST Resource
29− DataSetsRunQueryResource
30−
31− -- * Creating a Request
32− , dataSetsRunQuery
33− , DataSetsRunQuery
34−
35− -- * Request Lenses
36− , dsrqPayload
37− , dsrqDataSetId
38− ) where
39−
40−import Network.Google.Datastore.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @datastore.datasets.runQuery@ method which the
44−-- 'DataSetsRunQuery' request conforms to.
45−type DataSetsRunQueryResource =
46− "datastore" :>
47− "v1beta2" :>
48− "datasets" :>
49− Capture "datasetId" Text :>
50− "runQuery" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] RunQueryRequest :>
53− Post '[JSON] RunQueryResponse
54−
55−-- | Query for entities.
56−--
57−-- /See:/ 'dataSetsRunQuery' smart constructor.
58−data DataSetsRunQuery = DataSetsRunQuery'
59− { _dsrqPayload :: !RunQueryRequest
60− , _dsrqDataSetId :: !Text
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'DataSetsRunQuery' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'dsrqPayload'
68−--
69−-- * 'dsrqDataSetId'
70−dataSetsRunQuery
71− :: RunQueryRequest -- ^ 'dsrqPayload'
72− -> Text -- ^ 'dsrqDataSetId'
73− -> DataSetsRunQuery
74−dataSetsRunQuery pDsrqPayload_ pDsrqDataSetId_ =
75− DataSetsRunQuery'
76− { _dsrqPayload = pDsrqPayload_
77− , _dsrqDataSetId = pDsrqDataSetId_
78− }
79−
80−-- | Multipart request metadata.
81−dsrqPayload :: Lens' DataSetsRunQuery RunQueryRequest
82−dsrqPayload
83− = lens _dsrqPayload (\ s a -> s{_dsrqPayload = a})
84−
85−-- | Identifies the dataset.
86−dsrqDataSetId :: Lens' DataSetsRunQuery Text
87−dsrqDataSetId
88− = lens _dsrqDataSetId
89− (\ s a -> s{_dsrqDataSetId = a})
90−
91−instance GoogleRequest DataSetsRunQuery where
92− type Rs DataSetsRunQuery = RunQueryResponse
93− type Scopes DataSetsRunQuery =
94− '["https://www.googleapis.com/auth/cloud-platform",
95− "https://www.googleapis.com/auth/datastore",
96− "https://www.googleapis.com/auth/userinfo.email"]
97− requestClient DataSetsRunQuery'{..}
98− = go _dsrqDataSetId (Just AltJSON) _dsrqPayload
99− datastoreService
100− where go
101− = buildClient
102− (Proxy :: Proxy DataSetsRunQueryResource)
103− mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/AllocateIds.hsnew file+187
@@ -0,0 +1,187 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Datastore.Projects.AllocateIds
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Allocates IDs for the given keys, which is useful for referencing an
24+-- entity before it is inserted.
25+--
26+-- /See:/ <https://cloud.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.projects.allocateIds@.
27+module Network.Google.Resource.Datastore.Projects.AllocateIds
28+ (
29+ -- * REST Resource
30+ ProjectsAllocateIdsResource
31+
32+ -- * Creating a Request
33+ , projectsAllocateIds
34+ , ProjectsAllocateIds
35+
36+ -- * Request Lenses
37+ , paiXgafv
38+ , paiUploadProtocol
39+ , paiPp
40+ , paiAccessToken
41+ , paiUploadType
42+ , paiPayload
43+ , paiBearerToken
44+ , paiProjectId
45+ , paiCallback
46+ ) where
47+
48+import Network.Google.Datastore.Types
49+import Network.Google.Prelude
50+
51+-- | A resource alias for @datastore.projects.allocateIds@ method which the
52+-- 'ProjectsAllocateIds' request conforms to.
53+type ProjectsAllocateIdsResource =
54+ "v1beta3" :>
55+ "projects" :>
56+ CaptureMode "projectId" "allocateIds" Text :>
57+ QueryParam "$.xgafv" Xgafv :>
58+ QueryParam "upload_protocol" Text :>
59+ QueryParam "pp" Bool :>
60+ QueryParam "access_token" Text :>
61+ QueryParam "uploadType" Text :>
62+ QueryParam "bearer_token" Text :>
63+ QueryParam "callback" Text :>
64+ QueryParam "alt" AltJSON :>
65+ ReqBody '[JSON] AllocateIdsRequest :>
66+ Post '[JSON] AllocateIdsResponse
67+
68+-- | Allocates IDs for the given keys, which is useful for referencing an
69+-- entity before it is inserted.
70+--
71+-- /See:/ 'projectsAllocateIds' smart constructor.
72+data ProjectsAllocateIds = ProjectsAllocateIds'
73+ { _paiXgafv :: !(Maybe Xgafv)
74+ , _paiUploadProtocol :: !(Maybe Text)
75+ , _paiPp :: !Bool
76+ , _paiAccessToken :: !(Maybe Text)
77+ , _paiUploadType :: !(Maybe Text)
78+ , _paiPayload :: !AllocateIdsRequest
79+ , _paiBearerToken :: !(Maybe Text)
80+ , _paiProjectId :: !Text
81+ , _paiCallback :: !(Maybe Text)
82+ } deriving (Eq,Show,Data,Typeable,Generic)
83+
84+-- | Creates a value of 'ProjectsAllocateIds' with the minimum fields required to make a request.
85+--
86+-- Use one of the following lenses to modify other fields as desired:
87+--
88+-- * 'paiXgafv'
89+--
90+-- * 'paiUploadProtocol'
91+--
92+-- * 'paiPp'
93+--
94+-- * 'paiAccessToken'
95+--
96+-- * 'paiUploadType'
97+--
98+-- * 'paiPayload'
99+--
100+-- * 'paiBearerToken'
101+--
102+-- * 'paiProjectId'
103+--
104+-- * 'paiCallback'
105+projectsAllocateIds
106+ :: AllocateIdsRequest -- ^ 'paiPayload'
107+ -> Text -- ^ 'paiProjectId'
108+ -> ProjectsAllocateIds
109+projectsAllocateIds pPaiPayload_ pPaiProjectId_ =
110+ ProjectsAllocateIds'
111+ { _paiXgafv = Nothing
112+ , _paiUploadProtocol = Nothing
113+ , _paiPp = True
114+ , _paiAccessToken = Nothing
115+ , _paiUploadType = Nothing
116+ , _paiPayload = pPaiPayload_
117+ , _paiBearerToken = Nothing
118+ , _paiProjectId = pPaiProjectId_
119+ , _paiCallback = Nothing
120+ }
121+
122+-- | V1 error format.
123+paiXgafv :: Lens' ProjectsAllocateIds (Maybe Xgafv)
124+paiXgafv = lens _paiXgafv (\ s a -> s{_paiXgafv = a})
125+
126+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
127+paiUploadProtocol :: Lens' ProjectsAllocateIds (Maybe Text)
128+paiUploadProtocol
129+ = lens _paiUploadProtocol
130+ (\ s a -> s{_paiUploadProtocol = a})
131+
132+-- | Pretty-print response.
133+paiPp :: Lens' ProjectsAllocateIds Bool
134+paiPp = lens _paiPp (\ s a -> s{_paiPp = a})
135+
136+-- | OAuth access token.
137+paiAccessToken :: Lens' ProjectsAllocateIds (Maybe Text)
138+paiAccessToken
139+ = lens _paiAccessToken
140+ (\ s a -> s{_paiAccessToken = a})
141+
142+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
143+paiUploadType :: Lens' ProjectsAllocateIds (Maybe Text)
144+paiUploadType
145+ = lens _paiUploadType
146+ (\ s a -> s{_paiUploadType = a})
147+
148+-- | Multipart request metadata.
149+paiPayload :: Lens' ProjectsAllocateIds AllocateIdsRequest
150+paiPayload
151+ = lens _paiPayload (\ s a -> s{_paiPayload = a})
152+
153+-- | OAuth bearer token.
154+paiBearerToken :: Lens' ProjectsAllocateIds (Maybe Text)
155+paiBearerToken
156+ = lens _paiBearerToken
157+ (\ s a -> s{_paiBearerToken = a})
158+
159+-- | The ID of the project against which to make the request.
160+paiProjectId :: Lens' ProjectsAllocateIds Text
161+paiProjectId
162+ = lens _paiProjectId (\ s a -> s{_paiProjectId = a})
163+
164+-- | JSONP
165+paiCallback :: Lens' ProjectsAllocateIds (Maybe Text)
166+paiCallback
167+ = lens _paiCallback (\ s a -> s{_paiCallback = a})
168+
169+instance GoogleRequest ProjectsAllocateIds where
170+ type Rs ProjectsAllocateIds = AllocateIdsResponse
171+ type Scopes ProjectsAllocateIds =
172+ '["https://www.googleapis.com/auth/cloud-platform",
173+ "https://www.googleapis.com/auth/datastore"]
174+ requestClient ProjectsAllocateIds'{..}
175+ = go _paiProjectId _paiXgafv _paiUploadProtocol
176+ (Just _paiPp)
177+ _paiAccessToken
178+ _paiUploadType
179+ _paiBearerToken
180+ _paiCallback
181+ (Just AltJSON)
182+ _paiPayload
183+ datastoreService
184+ where go
185+ = buildClient
186+ (Proxy :: Proxy ProjectsAllocateIdsResource)
187+ mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/BeginTransaction.hsnew file+186
@@ -0,0 +1,186 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Datastore.Projects.BeginTransaction
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Begins a new transaction.
24+--
25+-- /See:/ <https://cloud.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.projects.beginTransaction@.
26+module Network.Google.Resource.Datastore.Projects.BeginTransaction
27+ (
28+ -- * REST Resource
29+ ProjectsBeginTransactionResource
30+
31+ -- * Creating a Request
32+ , projectsBeginTransaction
33+ , ProjectsBeginTransaction
34+
35+ -- * Request Lenses
36+ , pbtXgafv
37+ , pbtUploadProtocol
38+ , pbtPp
39+ , pbtAccessToken
40+ , pbtUploadType
41+ , pbtPayload
42+ , pbtBearerToken
43+ , pbtProjectId
44+ , pbtCallback
45+ ) where
46+
47+import Network.Google.Datastore.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @datastore.projects.beginTransaction@ method which the
51+-- 'ProjectsBeginTransaction' request conforms to.
52+type ProjectsBeginTransactionResource =
53+ "v1beta3" :>
54+ "projects" :>
55+ CaptureMode "projectId" "beginTransaction" Text :>
56+ QueryParam "$.xgafv" Xgafv :>
57+ QueryParam "upload_protocol" Text :>
58+ QueryParam "pp" Bool :>
59+ QueryParam "access_token" Text :>
60+ QueryParam "uploadType" Text :>
61+ QueryParam "bearer_token" Text :>
62+ QueryParam "callback" Text :>
63+ QueryParam "alt" AltJSON :>
64+ ReqBody '[JSON] BeginTransactionRequest :>
65+ Post '[JSON] BeginTransactionResponse
66+
67+-- | Begins a new transaction.
68+--
69+-- /See:/ 'projectsBeginTransaction' smart constructor.
70+data ProjectsBeginTransaction = ProjectsBeginTransaction'
71+ { _pbtXgafv :: !(Maybe Xgafv)
72+ , _pbtUploadProtocol :: !(Maybe Text)
73+ , _pbtPp :: !Bool
74+ , _pbtAccessToken :: !(Maybe Text)
75+ , _pbtUploadType :: !(Maybe Text)
76+ , _pbtPayload :: !BeginTransactionRequest
77+ , _pbtBearerToken :: !(Maybe Text)
78+ , _pbtProjectId :: !Text
79+ , _pbtCallback :: !(Maybe Text)
80+ } deriving (Eq,Show,Data,Typeable,Generic)
81+
82+-- | Creates a value of 'ProjectsBeginTransaction' with the minimum fields required to make a request.
83+--
84+-- Use one of the following lenses to modify other fields as desired:
85+--
86+-- * 'pbtXgafv'
87+--
88+-- * 'pbtUploadProtocol'
89+--
90+-- * 'pbtPp'
91+--
92+-- * 'pbtAccessToken'
93+--
94+-- * 'pbtUploadType'
95+--
96+-- * 'pbtPayload'
97+--
98+-- * 'pbtBearerToken'
99+--
100+-- * 'pbtProjectId'
101+--
102+-- * 'pbtCallback'
103+projectsBeginTransaction
104+ :: BeginTransactionRequest -- ^ 'pbtPayload'
105+ -> Text -- ^ 'pbtProjectId'
106+ -> ProjectsBeginTransaction
107+projectsBeginTransaction pPbtPayload_ pPbtProjectId_ =
108+ ProjectsBeginTransaction'
109+ { _pbtXgafv = Nothing
110+ , _pbtUploadProtocol = Nothing
111+ , _pbtPp = True
112+ , _pbtAccessToken = Nothing
113+ , _pbtUploadType = Nothing
114+ , _pbtPayload = pPbtPayload_
115+ , _pbtBearerToken = Nothing
116+ , _pbtProjectId = pPbtProjectId_
117+ , _pbtCallback = Nothing
118+ }
119+
120+-- | V1 error format.
121+pbtXgafv :: Lens' ProjectsBeginTransaction (Maybe Xgafv)
122+pbtXgafv = lens _pbtXgafv (\ s a -> s{_pbtXgafv = a})
123+
124+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125+pbtUploadProtocol :: Lens' ProjectsBeginTransaction (Maybe Text)
126+pbtUploadProtocol
127+ = lens _pbtUploadProtocol
128+ (\ s a -> s{_pbtUploadProtocol = a})
129+
130+-- | Pretty-print response.
131+pbtPp :: Lens' ProjectsBeginTransaction Bool
132+pbtPp = lens _pbtPp (\ s a -> s{_pbtPp = a})
133+
134+-- | OAuth access token.
135+pbtAccessToken :: Lens' ProjectsBeginTransaction (Maybe Text)
136+pbtAccessToken
137+ = lens _pbtAccessToken
138+ (\ s a -> s{_pbtAccessToken = a})
139+
140+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141+pbtUploadType :: Lens' ProjectsBeginTransaction (Maybe Text)
142+pbtUploadType
143+ = lens _pbtUploadType
144+ (\ s a -> s{_pbtUploadType = a})
145+
146+-- | Multipart request metadata.
147+pbtPayload :: Lens' ProjectsBeginTransaction BeginTransactionRequest
148+pbtPayload
149+ = lens _pbtPayload (\ s a -> s{_pbtPayload = a})
150+
151+-- | OAuth bearer token.
152+pbtBearerToken :: Lens' ProjectsBeginTransaction (Maybe Text)
153+pbtBearerToken
154+ = lens _pbtBearerToken
155+ (\ s a -> s{_pbtBearerToken = a})
156+
157+-- | The ID of the project against which to make the request.
158+pbtProjectId :: Lens' ProjectsBeginTransaction Text
159+pbtProjectId
160+ = lens _pbtProjectId (\ s a -> s{_pbtProjectId = a})
161+
162+-- | JSONP
163+pbtCallback :: Lens' ProjectsBeginTransaction (Maybe Text)
164+pbtCallback
165+ = lens _pbtCallback (\ s a -> s{_pbtCallback = a})
166+
167+instance GoogleRequest ProjectsBeginTransaction where
168+ type Rs ProjectsBeginTransaction =
169+ BeginTransactionResponse
170+ type Scopes ProjectsBeginTransaction =
171+ '["https://www.googleapis.com/auth/cloud-platform",
172+ "https://www.googleapis.com/auth/datastore"]
173+ requestClient ProjectsBeginTransaction'{..}
174+ = go _pbtProjectId _pbtXgafv _pbtUploadProtocol
175+ (Just _pbtPp)
176+ _pbtAccessToken
177+ _pbtUploadType
178+ _pbtBearerToken
179+ _pbtCallback
180+ (Just AltJSON)
181+ _pbtPayload
182+ datastoreService
183+ where go
184+ = buildClient
185+ (Proxy :: Proxy ProjectsBeginTransactionResource)
186+ mempty
gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/Create.hs → gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/Commit.hsrenamed+66−55
@@ -13,27 +13,25 @@
13{-# OPTIONS_GHC -fno-warn-unused-imports #-}
13{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14
14
15-- |
15-- |
16−-- Module : Network.Google.Resource.CloudResourceManager.Projects.Create
16+-- Module : Network.Google.Resource.Datastore.Projects.Commit
17-- Copyright : (c) 2015-2016 Brendan Hay
17-- Copyright : (c) 2015-2016 Brendan Hay
18-- License : Mozilla Public License, v. 2.0.
18-- License : Mozilla Public License, v. 2.0.
19-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
19-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Creates a project resource. Initially, the project resource is owned by
23+-- Commits a transaction, optionally creating, deleting or modifying some
24−-- its creator exclusively. The creator can later grant permission to
24+-- entities.
25−-- others to read or update the project. Several APIs are activated
26−-- automatically for the project, including Google Cloud Storage.
27--
25--
28−-- /See:/ <https://cloud.google.com/resource-manager Google Cloud Resource Manager API Reference> for @cloudresourcemanager.projects.create@.
26+-- /See:/ <https://cloud.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.projects.commit@.
29−module Network.Google.Resource.CloudResourceManager.Projects.Create
27+module Network.Google.Resource.Datastore.Projects.Commit
30 (
28 (
31 -- * REST Resource
29 -- * REST Resource
32− ProjectsCreateResource
30+ ProjectsCommitResource
33
31
34 -- * Creating a Request
32 -- * Creating a Request
35− , projectsCreate
33+ , projectsCommit
36− , ProjectsCreate
34+ , ProjectsCommit
37
35
38 -- * Request Lenses
36 -- * Request Lenses
39 , pcXgafv
37 , pcXgafv
@@ -43,45 +41,47 @@ module Network.Google.Resource.CloudResourceManager.Projects.Create
43 , pcUploadType
41 , pcUploadType
44 , pcPayload
42 , pcPayload
45 , pcBearerToken
43 , pcBearerToken
44+ , pcProjectId
46 , pcCallback
45 , pcCallback
47 ) where
46 ) where
48
47
48+import Network.Google.Datastore.Types
49import Network.Google.Prelude
49import Network.Google.Prelude
50−import Network.Google.ResourceManager.Types
51
50
52−-- | A resource alias for @cloudresourcemanager.projects.create@ method which the
51+-- | A resource alias for @datastore.projects.commit@ method which the
53−-- 'ProjectsCreate' request conforms to.
52+-- 'ProjectsCommit' request conforms to.
54−type ProjectsCreateResource =
53+type ProjectsCommitResource =
55− "v1beta1" :>
54+ "v1beta3" :>
56 "projects" :>
55 "projects" :>
56+ CaptureMode "projectId" "commit" Text :>
57− QueryParam "$.xgafv" Text :>
57+ QueryParam "$.xgafv" Xgafv :>
58− QueryParam "upload_protocol" Text :>
58+ QueryParam "upload_protocol" Text :>
59− QueryParam "pp" Bool :>
59+ QueryParam "pp" Bool :>
60− QueryParam "access_token" Text :>
61− QueryParam "uploadType" Text :>
60+ QueryParam "access_token" Text :>
62− QueryParam "bearer_token" Text :>
61+ QueryParam "uploadType" Text :>
62+ QueryParam "bearer_token" Text :>
63− QueryParam "callback" Text :>
63+ QueryParam "callback" Text :>
64− QueryParam "alt" AltJSON :>
64+ QueryParam "alt" AltJSON :>
65− ReqBody '[JSON] Project :> Post '[JSON] Project
65+ ReqBody '[JSON] CommitRequest :>
66−
66+ Post '[JSON] CommitResponse
67−-- | Creates a project resource. Initially, the project resource is owned by
67+
68−-- its creator exclusively. The creator can later grant permission to
68+-- | Commits a transaction, optionally creating, deleting or modifying some
69−-- others to read or update the project. Several APIs are activated
69+-- entities.
70−-- automatically for the project, including Google Cloud Storage.
71--
70--
72−-- /See:/ 'projectsCreate' smart constructor.
71+-- /See:/ 'projectsCommit' smart constructor.
73−data ProjectsCreate = ProjectsCreate
72+data ProjectsCommit = ProjectsCommit'
74− { _pcXgafv :: !(Maybe Text)
73+ { _pcXgafv :: !(Maybe Xgafv)
75 , _pcUploadProtocol :: !(Maybe Text)
74 , _pcUploadProtocol :: !(Maybe Text)
76 , _pcPp :: !Bool
75 , _pcPp :: !Bool
77 , _pcAccessToken :: !(Maybe Text)
76 , _pcAccessToken :: !(Maybe Text)
78 , _pcUploadType :: !(Maybe Text)
77 , _pcUploadType :: !(Maybe Text)
79− , _pcPayload :: !Project
78+ , _pcPayload :: !CommitRequest
80 , _pcBearerToken :: !(Maybe Text)
79 , _pcBearerToken :: !(Maybe Text)
80+ , _pcProjectId :: !Text
81 , _pcCallback :: !(Maybe Text)
81 , _pcCallback :: !(Maybe Text)
82 } deriving (Eq,Show,Data,Typeable,Generic)
82 } deriving (Eq,Show,Data,Typeable,Generic)
83
83
84−-- | Creates a value of 'ProjectsCreate' with the minimum fields required to make a request.
84+-- | Creates a value of 'ProjectsCommit' with the minimum fields required to make a request.
85--
85--
86-- Use one of the following lenses to modify other fields as desired:
86-- Use one of the following lenses to modify other fields as desired:
87--
87--
@@ -99,12 +99,15 @@ data ProjectsCreate = ProjectsCreate
99--
99--
100-- * 'pcBearerToken'
100-- * 'pcBearerToken'
101--
101--
102+-- * 'pcProjectId'
103+--
102-- * 'pcCallback'
104-- * 'pcCallback'
103−projectsCreate
105+projectsCommit
104− :: Project -- ^ 'pcPayload'
106+ :: CommitRequest -- ^ 'pcPayload'
105− -> ProjectsCreate
107+ -> Text -- ^ 'pcProjectId'
106−projectsCreate pPcPayload_ =
108+ -> ProjectsCommit
107− ProjectsCreate
109+projectsCommit pPcPayload_ pPcProjectId_ =
110+ ProjectsCommit'
108 { _pcXgafv = Nothing
111 { _pcXgafv = Nothing
109 , _pcUploadProtocol = Nothing
112 , _pcUploadProtocol = Nothing
110 , _pcPp = True
113 , _pcPp = True
@@ -112,63 +115,71 @@ projectsCreate pPcPayload_ =
112 , _pcUploadType = Nothing
115 , _pcUploadType = Nothing
113 , _pcPayload = pPcPayload_
116 , _pcPayload = pPcPayload_
114 , _pcBearerToken = Nothing
117 , _pcBearerToken = Nothing
118+ , _pcProjectId = pPcProjectId_
115 , _pcCallback = Nothing
119 , _pcCallback = Nothing
116 }
120 }
117
121
118-- | V1 error format.
122-- | V1 error format.
119−pcXgafv :: Lens' ProjectsCreate (Maybe Text)
123+pcXgafv :: Lens' ProjectsCommit (Maybe Xgafv)
120pcXgafv = lens _pcXgafv (\ s a -> s{_pcXgafv = a})
124pcXgafv = lens _pcXgafv (\ s a -> s{_pcXgafv = a})
121
125
122-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
126-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
123−pcUploadProtocol :: Lens' ProjectsCreate (Maybe Text)
127+pcUploadProtocol :: Lens' ProjectsCommit (Maybe Text)
124pcUploadProtocol
128pcUploadProtocol
125 = lens _pcUploadProtocol
129 = lens _pcUploadProtocol
126 (\ s a -> s{_pcUploadProtocol = a})
130 (\ s a -> s{_pcUploadProtocol = a})
127
131
128-- | Pretty-print response.
132-- | Pretty-print response.
129−pcPp :: Lens' ProjectsCreate Bool
133+pcPp :: Lens' ProjectsCommit Bool
130pcPp = lens _pcPp (\ s a -> s{_pcPp = a})
134pcPp = lens _pcPp (\ s a -> s{_pcPp = a})
131
135
132-- | OAuth access token.
136-- | OAuth access token.
133−pcAccessToken :: Lens' ProjectsCreate (Maybe Text)
137+pcAccessToken :: Lens' ProjectsCommit (Maybe Text)
134pcAccessToken
138pcAccessToken
135 = lens _pcAccessToken
139 = lens _pcAccessToken
136 (\ s a -> s{_pcAccessToken = a})
140 (\ s a -> s{_pcAccessToken = a})
137
141
138-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
142-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
139−pcUploadType :: Lens' ProjectsCreate (Maybe Text)
143+pcUploadType :: Lens' ProjectsCommit (Maybe Text)
140pcUploadType
144pcUploadType
141 = lens _pcUploadType (\ s a -> s{_pcUploadType = a})
145 = lens _pcUploadType (\ s a -> s{_pcUploadType = a})
142
146
143-- | Multipart request metadata.
147-- | Multipart request metadata.
144−pcPayload :: Lens' ProjectsCreate Project
148+pcPayload :: Lens' ProjectsCommit CommitRequest
145pcPayload
149pcPayload
146 = lens _pcPayload (\ s a -> s{_pcPayload = a})
150 = lens _pcPayload (\ s a -> s{_pcPayload = a})
147
151
148-- | OAuth bearer token.
152-- | OAuth bearer token.
149−pcBearerToken :: Lens' ProjectsCreate (Maybe Text)
153+pcBearerToken :: Lens' ProjectsCommit (Maybe Text)
150pcBearerToken
154pcBearerToken
151 = lens _pcBearerToken
155 = lens _pcBearerToken
152 (\ s a -> s{_pcBearerToken = a})
156 (\ s a -> s{_pcBearerToken = a})
153
157
158+-- | The ID of the project against which to make the request.
159+pcProjectId :: Lens' ProjectsCommit Text
160+pcProjectId
161+ = lens _pcProjectId (\ s a -> s{_pcProjectId = a})
162+
154-- | JSONP
163-- | JSONP
155−pcCallback :: Lens' ProjectsCreate (Maybe Text)
164+pcCallback :: Lens' ProjectsCommit (Maybe Text)
156pcCallback
165pcCallback
157 = lens _pcCallback (\ s a -> s{_pcCallback = a})
166 = lens _pcCallback (\ s a -> s{_pcCallback = a})
158
167
159−instance GoogleRequest ProjectsCreate where
168+instance GoogleRequest ProjectsCommit where
160− type Rs ProjectsCreate = Project
169+ type Rs ProjectsCommit = CommitResponse
161− type Scopes ProjectsCreate =
170+ type Scopes ProjectsCommit =
162− '["https://www.googleapis.com/auth/cloud-platform"]
171+ '["https://www.googleapis.com/auth/cloud-platform",
172+ "https://www.googleapis.com/auth/datastore"]
163− requestClient ProjectsCreate{..}
173+ requestClient ProjectsCommit'{..}
164− = go _pcXgafv _pcUploadProtocol (Just _pcPp)
174+ = go _pcProjectId _pcXgafv _pcUploadProtocol
175+ (Just _pcPp)
165 _pcAccessToken
176 _pcAccessToken
166 _pcUploadType
177 _pcUploadType
167 _pcBearerToken
178 _pcBearerToken
168 _pcCallback
179 _pcCallback
169 (Just AltJSON)
180 (Just AltJSON)
170 _pcPayload
181 _pcPayload
171− resourceManagerService
182+ datastoreService
172 where go
183 where go
173− = buildClient (Proxy :: Proxy ProjectsCreateResource)
184+ = buildClient (Proxy :: Proxy ProjectsCommitResource)
174 mempty
185 mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/Lookup.hsnew file+183
@@ -0,0 +1,183 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Datastore.Projects.Lookup
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Looks up entities by key.
24+--
25+-- /See:/ <https://cloud.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.projects.lookup@.
26+module Network.Google.Resource.Datastore.Projects.Lookup
27+ (
28+ -- * REST Resource
29+ ProjectsLookupResource
30+
31+ -- * Creating a Request
32+ , projectsLookup
33+ , ProjectsLookup
34+
35+ -- * Request Lenses
36+ , plXgafv
37+ , plUploadProtocol
38+ , plPp
39+ , plAccessToken
40+ , plUploadType
41+ , plPayload
42+ , plBearerToken
43+ , plProjectId
44+ , plCallback
45+ ) where
46+
47+import Network.Google.Datastore.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @datastore.projects.lookup@ method which the
51+-- 'ProjectsLookup' request conforms to.
52+type ProjectsLookupResource =
53+ "v1beta3" :>
54+ "projects" :>
55+ CaptureMode "projectId" "lookup" Text :>
56+ QueryParam "$.xgafv" Xgafv :>
57+ QueryParam "upload_protocol" Text :>
58+ QueryParam "pp" Bool :>
59+ QueryParam "access_token" Text :>
60+ QueryParam "uploadType" Text :>
61+ QueryParam "bearer_token" Text :>
62+ QueryParam "callback" Text :>
63+ QueryParam "alt" AltJSON :>
64+ ReqBody '[JSON] LookupRequest :>
65+ Post '[JSON] LookupResponse
66+
67+-- | Looks up entities by key.
68+--
69+-- /See:/ 'projectsLookup' smart constructor.
70+data ProjectsLookup = ProjectsLookup'
71+ { _plXgafv :: !(Maybe Xgafv)
72+ , _plUploadProtocol :: !(Maybe Text)
73+ , _plPp :: !Bool
74+ , _plAccessToken :: !(Maybe Text)
75+ , _plUploadType :: !(Maybe Text)
76+ , _plPayload :: !LookupRequest
77+ , _plBearerToken :: !(Maybe Text)
78+ , _plProjectId :: !Text
79+ , _plCallback :: !(Maybe Text)
80+ } deriving (Eq,Show,Data,Typeable,Generic)
81+
82+-- | Creates a value of 'ProjectsLookup' with the minimum fields required to make a request.
83+--
84+-- Use one of the following lenses to modify other fields as desired:
85+--
86+-- * 'plXgafv'
87+--
88+-- * 'plUploadProtocol'
89+--
90+-- * 'plPp'
91+--
92+-- * 'plAccessToken'
93+--
94+-- * 'plUploadType'
95+--
96+-- * 'plPayload'
97+--
98+-- * 'plBearerToken'
99+--
100+-- * 'plProjectId'
101+--
102+-- * 'plCallback'
103+projectsLookup
104+ :: LookupRequest -- ^ 'plPayload'
105+ -> Text -- ^ 'plProjectId'
106+ -> ProjectsLookup
107+projectsLookup pPlPayload_ pPlProjectId_ =
108+ ProjectsLookup'
109+ { _plXgafv = Nothing
110+ , _plUploadProtocol = Nothing
111+ , _plPp = True
112+ , _plAccessToken = Nothing
113+ , _plUploadType = Nothing
114+ , _plPayload = pPlPayload_
115+ , _plBearerToken = Nothing
116+ , _plProjectId = pPlProjectId_
117+ , _plCallback = Nothing
118+ }
119+
120+-- | V1 error format.
121+plXgafv :: Lens' ProjectsLookup (Maybe Xgafv)
122+plXgafv = lens _plXgafv (\ s a -> s{_plXgafv = a})
123+
124+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125+plUploadProtocol :: Lens' ProjectsLookup (Maybe Text)
126+plUploadProtocol
127+ = lens _plUploadProtocol
128+ (\ s a -> s{_plUploadProtocol = a})
129+
130+-- | Pretty-print response.
131+plPp :: Lens' ProjectsLookup Bool
132+plPp = lens _plPp (\ s a -> s{_plPp = a})
133+
134+-- | OAuth access token.
135+plAccessToken :: Lens' ProjectsLookup (Maybe Text)
136+plAccessToken
137+ = lens _plAccessToken
138+ (\ s a -> s{_plAccessToken = a})
139+
140+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141+plUploadType :: Lens' ProjectsLookup (Maybe Text)
142+plUploadType
143+ = lens _plUploadType (\ s a -> s{_plUploadType = a})
144+
145+-- | Multipart request metadata.
146+plPayload :: Lens' ProjectsLookup LookupRequest
147+plPayload
148+ = lens _plPayload (\ s a -> s{_plPayload = a})
149+
150+-- | OAuth bearer token.
151+plBearerToken :: Lens' ProjectsLookup (Maybe Text)
152+plBearerToken
153+ = lens _plBearerToken
154+ (\ s a -> s{_plBearerToken = a})
155+
156+-- | The ID of the project against which to make the request.
157+plProjectId :: Lens' ProjectsLookup Text
158+plProjectId
159+ = lens _plProjectId (\ s a -> s{_plProjectId = a})
160+
161+-- | JSONP
162+plCallback :: Lens' ProjectsLookup (Maybe Text)
163+plCallback
164+ = lens _plCallback (\ s a -> s{_plCallback = a})
165+
166+instance GoogleRequest ProjectsLookup where
167+ type Rs ProjectsLookup = LookupResponse
168+ type Scopes ProjectsLookup =
169+ '["https://www.googleapis.com/auth/cloud-platform",
170+ "https://www.googleapis.com/auth/datastore"]
171+ requestClient ProjectsLookup'{..}
172+ = go _plProjectId _plXgafv _plUploadProtocol
173+ (Just _plPp)
174+ _plAccessToken
175+ _plUploadType
176+ _plBearerToken
177+ _plCallback
178+ (Just AltJSON)
179+ _plPayload
180+ datastoreService
181+ where go
182+ = buildClient (Proxy :: Proxy ProjectsLookupResource)
183+ mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/Rollback.hsnew file+184
@@ -0,0 +1,184 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Datastore.Projects.Rollback
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Rolls back a transaction.
24+--
25+-- /See:/ <https://cloud.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.projects.rollback@.
26+module Network.Google.Resource.Datastore.Projects.Rollback
27+ (
28+ -- * REST Resource
29+ ProjectsRollbackResource
30+
31+ -- * Creating a Request
32+ , projectsRollback
33+ , ProjectsRollback
34+
35+ -- * Request Lenses
36+ , prXgafv
37+ , prUploadProtocol
38+ , prPp
39+ , prAccessToken
40+ , prUploadType
41+ , prPayload
42+ , prBearerToken
43+ , prProjectId
44+ , prCallback
45+ ) where
46+
47+import Network.Google.Datastore.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @datastore.projects.rollback@ method which the
51+-- 'ProjectsRollback' request conforms to.
52+type ProjectsRollbackResource =
53+ "v1beta3" :>
54+ "projects" :>
55+ CaptureMode "projectId" "rollback" Text :>
56+ QueryParam "$.xgafv" Xgafv :>
57+ QueryParam "upload_protocol" Text :>
58+ QueryParam "pp" Bool :>
59+ QueryParam "access_token" Text :>
60+ QueryParam "uploadType" Text :>
61+ QueryParam "bearer_token" Text :>
62+ QueryParam "callback" Text :>
63+ QueryParam "alt" AltJSON :>
64+ ReqBody '[JSON] RollbackRequest :>
65+ Post '[JSON] RollbackResponse
66+
67+-- | Rolls back a transaction.
68+--
69+-- /See:/ 'projectsRollback' smart constructor.
70+data ProjectsRollback = ProjectsRollback'
71+ { _prXgafv :: !(Maybe Xgafv)
72+ , _prUploadProtocol :: !(Maybe Text)
73+ , _prPp :: !Bool
74+ , _prAccessToken :: !(Maybe Text)
75+ , _prUploadType :: !(Maybe Text)
76+ , _prPayload :: !RollbackRequest
77+ , _prBearerToken :: !(Maybe Text)
78+ , _prProjectId :: !Text
79+ , _prCallback :: !(Maybe Text)
80+ } deriving (Eq,Show,Data,Typeable,Generic)
81+
82+-- | Creates a value of 'ProjectsRollback' with the minimum fields required to make a request.
83+--
84+-- Use one of the following lenses to modify other fields as desired:
85+--
86+-- * 'prXgafv'
87+--
88+-- * 'prUploadProtocol'
89+--
90+-- * 'prPp'
91+--
92+-- * 'prAccessToken'
93+--
94+-- * 'prUploadType'
95+--
96+-- * 'prPayload'
97+--
98+-- * 'prBearerToken'
99+--
100+-- * 'prProjectId'
101+--
102+-- * 'prCallback'
103+projectsRollback
104+ :: RollbackRequest -- ^ 'prPayload'
105+ -> Text -- ^ 'prProjectId'
106+ -> ProjectsRollback
107+projectsRollback pPrPayload_ pPrProjectId_ =
108+ ProjectsRollback'
109+ { _prXgafv = Nothing
110+ , _prUploadProtocol = Nothing
111+ , _prPp = True
112+ , _prAccessToken = Nothing
113+ , _prUploadType = Nothing
114+ , _prPayload = pPrPayload_
115+ , _prBearerToken = Nothing
116+ , _prProjectId = pPrProjectId_
117+ , _prCallback = Nothing
118+ }
119+
120+-- | V1 error format.
121+prXgafv :: Lens' ProjectsRollback (Maybe Xgafv)
122+prXgafv = lens _prXgafv (\ s a -> s{_prXgafv = a})
123+
124+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125+prUploadProtocol :: Lens' ProjectsRollback (Maybe Text)
126+prUploadProtocol
127+ = lens _prUploadProtocol
128+ (\ s a -> s{_prUploadProtocol = a})
129+
130+-- | Pretty-print response.
131+prPp :: Lens' ProjectsRollback Bool
132+prPp = lens _prPp (\ s a -> s{_prPp = a})
133+
134+-- | OAuth access token.
135+prAccessToken :: Lens' ProjectsRollback (Maybe Text)
136+prAccessToken
137+ = lens _prAccessToken
138+ (\ s a -> s{_prAccessToken = a})
139+
140+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141+prUploadType :: Lens' ProjectsRollback (Maybe Text)
142+prUploadType
143+ = lens _prUploadType (\ s a -> s{_prUploadType = a})
144+
145+-- | Multipart request metadata.
146+prPayload :: Lens' ProjectsRollback RollbackRequest
147+prPayload
148+ = lens _prPayload (\ s a -> s{_prPayload = a})
149+
150+-- | OAuth bearer token.
151+prBearerToken :: Lens' ProjectsRollback (Maybe Text)
152+prBearerToken
153+ = lens _prBearerToken
154+ (\ s a -> s{_prBearerToken = a})
155+
156+-- | The ID of the project against which to make the request.
157+prProjectId :: Lens' ProjectsRollback Text
158+prProjectId
159+ = lens _prProjectId (\ s a -> s{_prProjectId = a})
160+
161+-- | JSONP
162+prCallback :: Lens' ProjectsRollback (Maybe Text)
163+prCallback
164+ = lens _prCallback (\ s a -> s{_prCallback = a})
165+
166+instance GoogleRequest ProjectsRollback where
167+ type Rs ProjectsRollback = RollbackResponse
168+ type Scopes ProjectsRollback =
169+ '["https://www.googleapis.com/auth/cloud-platform",
170+ "https://www.googleapis.com/auth/datastore"]
171+ requestClient ProjectsRollback'{..}
172+ = go _prProjectId _prXgafv _prUploadProtocol
173+ (Just _prPp)
174+ _prAccessToken
175+ _prUploadType
176+ _prBearerToken
177+ _prCallback
178+ (Just AltJSON)
179+ _prPayload
180+ datastoreService
181+ where go
182+ = buildClient
183+ (Proxy :: Proxy ProjectsRollbackResource)
184+ mempty
gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/RunQuery.hsnew file+185
@@ -0,0 +1,185 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Datastore.Projects.RunQuery
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Queries for entities.
24+--
25+-- /See:/ <https://cloud.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.projects.runQuery@.
26+module Network.Google.Resource.Datastore.Projects.RunQuery
27+ (
28+ -- * REST Resource
29+ ProjectsRunQueryResource
30+
31+ -- * Creating a Request
32+ , projectsRunQuery
33+ , ProjectsRunQuery
34+
35+ -- * Request Lenses
36+ , prqXgafv
37+ , prqUploadProtocol
38+ , prqPp
39+ , prqAccessToken
40+ , prqUploadType
41+ , prqPayload
42+ , prqBearerToken
43+ , prqProjectId
44+ , prqCallback
45+ ) where
46+
47+import Network.Google.Datastore.Types
48+import Network.Google.Prelude
49+
50+-- | A resource alias for @datastore.projects.runQuery@ method which the
51+-- 'ProjectsRunQuery' request conforms to.
52+type ProjectsRunQueryResource =
53+ "v1beta3" :>
54+ "projects" :>
55+ CaptureMode "projectId" "runQuery" Text :>
56+ QueryParam "$.xgafv" Xgafv :>
57+ QueryParam "upload_protocol" Text :>
58+ QueryParam "pp" Bool :>
59+ QueryParam "access_token" Text :>
60+ QueryParam "uploadType" Text :>
61+ QueryParam "bearer_token" Text :>
62+ QueryParam "callback" Text :>
63+ QueryParam "alt" AltJSON :>
64+ ReqBody '[JSON] RunQueryRequest :>
65+ Post '[JSON] RunQueryResponse
66+
67+-- | Queries for entities.
68+--
69+-- /See:/ 'projectsRunQuery' smart constructor.
70+data ProjectsRunQuery = ProjectsRunQuery'
71+ { _prqXgafv :: !(Maybe Xgafv)
72+ , _prqUploadProtocol :: !(Maybe Text)
73+ , _prqPp :: !Bool
74+ , _prqAccessToken :: !(Maybe Text)
75+ , _prqUploadType :: !(Maybe Text)
76+ , _prqPayload :: !RunQueryRequest
77+ , _prqBearerToken :: !(Maybe Text)
78+ , _prqProjectId :: !Text
79+ , _prqCallback :: !(Maybe Text)
80+ } deriving (Eq,Show,Data,Typeable,Generic)
81+
82+-- | Creates a value of 'ProjectsRunQuery' with the minimum fields required to make a request.
83+--
84+-- Use one of the following lenses to modify other fields as desired:
85+--
86+-- * 'prqXgafv'
87+--
88+-- * 'prqUploadProtocol'
89+--
90+-- * 'prqPp'
91+--
92+-- * 'prqAccessToken'
93+--
94+-- * 'prqUploadType'
95+--
96+-- * 'prqPayload'
97+--
98+-- * 'prqBearerToken'
99+--
100+-- * 'prqProjectId'
101+--
102+-- * 'prqCallback'
103+projectsRunQuery
104+ :: RunQueryRequest -- ^ 'prqPayload'
105+ -> Text -- ^ 'prqProjectId'
106+ -> ProjectsRunQuery
107+projectsRunQuery pPrqPayload_ pPrqProjectId_ =
108+ ProjectsRunQuery'
109+ { _prqXgafv = Nothing
110+ , _prqUploadProtocol = Nothing
111+ , _prqPp = True
112+ , _prqAccessToken = Nothing
113+ , _prqUploadType = Nothing
114+ , _prqPayload = pPrqPayload_
115+ , _prqBearerToken = Nothing
116+ , _prqProjectId = pPrqProjectId_
117+ , _prqCallback = Nothing
118+ }
119+
120+-- | V1 error format.
121+prqXgafv :: Lens' ProjectsRunQuery (Maybe Xgafv)
122+prqXgafv = lens _prqXgafv (\ s a -> s{_prqXgafv = a})
123+
124+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125+prqUploadProtocol :: Lens' ProjectsRunQuery (Maybe Text)
126+prqUploadProtocol
127+ = lens _prqUploadProtocol
128+ (\ s a -> s{_prqUploadProtocol = a})
129+
130+-- | Pretty-print response.
131+prqPp :: Lens' ProjectsRunQuery Bool
132+prqPp = lens _prqPp (\ s a -> s{_prqPp = a})
133+
134+-- | OAuth access token.
135+prqAccessToken :: Lens' ProjectsRunQuery (Maybe Text)
136+prqAccessToken
137+ = lens _prqAccessToken
138+ (\ s a -> s{_prqAccessToken = a})
139+
140+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
141+prqUploadType :: Lens' ProjectsRunQuery (Maybe Text)
142+prqUploadType
143+ = lens _prqUploadType
144+ (\ s a -> s{_prqUploadType = a})
145+
146+-- | Multipart request metadata.
147+prqPayload :: Lens' ProjectsRunQuery RunQueryRequest
148+prqPayload
149+ = lens _prqPayload (\ s a -> s{_prqPayload = a})
150+
151+-- | OAuth bearer token.
152+prqBearerToken :: Lens' ProjectsRunQuery (Maybe Text)
153+prqBearerToken
154+ = lens _prqBearerToken
155+ (\ s a -> s{_prqBearerToken = a})
156+
157+-- | The ID of the project against which to make the request.
158+prqProjectId :: Lens' ProjectsRunQuery Text
159+prqProjectId
160+ = lens _prqProjectId (\ s a -> s{_prqProjectId = a})
161+
162+-- | JSONP
163+prqCallback :: Lens' ProjectsRunQuery (Maybe Text)
164+prqCallback
165+ = lens _prqCallback (\ s a -> s{_prqCallback = a})
166+
167+instance GoogleRequest ProjectsRunQuery where
168+ type Rs ProjectsRunQuery = RunQueryResponse
169+ type Scopes ProjectsRunQuery =
170+ '["https://www.googleapis.com/auth/cloud-platform",
171+ "https://www.googleapis.com/auth/datastore"]
172+ requestClient ProjectsRunQuery'{..}
173+ = go _prqProjectId _prqXgafv _prqUploadProtocol
174+ (Just _prqPp)
175+ _prqAccessToken
176+ _prqUploadType
177+ _prqBearerToken
178+ _prqCallback
179+ (Just AltJSON)
180+ _prqPayload
181+ datastoreService
182+ where go
183+ = buildClient
184+ (Proxy :: Proxy ProjectsRunQueryResource)
185+ mempty
gogol-datastore/gogol-datastore.cabal+9−8
@@ -14,12 +14,13 @@ cabal-version: >= 1.10
14extra-source-files: README.md
14extra-source-files: README.md
15
15
16description:
16description:
17− API for accessing Google Cloud Datastore.
17+ Google Cloud Datastore is a schemaless NoSQL datastore providing robust,
18+ scalable storage for your application.
18 .
19 .
19 /Warning:/ This is an experimental prototype/preview release which is still
20 /Warning:/ This is an experimental prototype/preview release which is still
20 under exploratory development and not intended for public use, caveat emptor!
21 under exploratory development and not intended for public use, caveat emptor!
21 .
22 .
22− This library is compatible with version @v1beta2@
23+ This library is compatible with version @v1beta3@
23 of the API.
24 of the API.
24
25
25source-repository head
26source-repository head
@@ -35,12 +36,12 @@ library
35 exposed-modules:
36 exposed-modules:
36 Network.Google.Datastore
37 Network.Google.Datastore
37 , Network.Google.Datastore.Types
38 , Network.Google.Datastore.Types
38− , Network.Google.Resource.Datastore.DataSets.AllocateIds
39+ , Network.Google.Resource.Datastore.Projects.AllocateIds
39− , Network.Google.Resource.Datastore.DataSets.BeginTransaction
40+ , Network.Google.Resource.Datastore.Projects.BeginTransaction
40− , Network.Google.Resource.Datastore.DataSets.Commit
41+ , Network.Google.Resource.Datastore.Projects.Commit
41− , Network.Google.Resource.Datastore.DataSets.Lookup
42+ , Network.Google.Resource.Datastore.Projects.Lookup
42− , Network.Google.Resource.Datastore.DataSets.Rollback
43+ , Network.Google.Resource.Datastore.Projects.Rollback
43− , Network.Google.Resource.Datastore.DataSets.RunQuery
44+ , Network.Google.Resource.Datastore.Projects.RunQuery
44
45
45 other-modules:
46 other-modules:
46 Network.Google.Datastore.Types.Product
47 Network.Google.Datastore.Types.Product
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Sum.hs+4−4
@@ -24,7 +24,7 @@ data DeploymentsUpdateCreatePolicy
24 -- ^ @ACQUIRE@
24 -- ^ @ACQUIRE@
25 | CreateOrAcquire
25 | CreateOrAcquire
26 -- ^ @CREATE_OR_ACQUIRE@
26 -- ^ @CREATE_OR_ACQUIRE@
27− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
27+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
28
28
29instance Hashable DeploymentsUpdateCreatePolicy
29instance Hashable DeploymentsUpdateCreatePolicy
30
30
@@ -51,7 +51,7 @@ data DeploymentsUpdateDeletePolicy
51 -- ^ @ABANDON@
51 -- ^ @ABANDON@
52 | Delete'
52 | Delete'
53 -- ^ @DELETE@
53 -- ^ @DELETE@
54− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
54+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
55
55
56instance Hashable DeploymentsUpdateDeletePolicy
56instance Hashable DeploymentsUpdateDeletePolicy
57
57
@@ -78,7 +78,7 @@ data DeploymentsPatchDeletePolicy
78 -- ^ @ABANDON@
78 -- ^ @ABANDON@
79 | DPDPDelete'
79 | DPDPDelete'
80 -- ^ @DELETE@
80 -- ^ @DELETE@
81− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
81+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
82
82
83instance Hashable DeploymentsPatchDeletePolicy
83instance Hashable DeploymentsPatchDeletePolicy
84
84
@@ -105,7 +105,7 @@ data DeploymentsPatchCreatePolicy
105 -- ^ @ACQUIRE@
105 -- ^ @ACQUIRE@
106 | DPCPCreateOrAcquire
106 | DPCPCreateOrAcquire
107 -- ^ @CREATE_OR_ACQUIRE@
107 -- ^ @CREATE_OR_ACQUIRE@
108− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
108+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
109
109
110instance Hashable DeploymentsPatchCreatePolicy
110instance Hashable DeploymentsPatchCreatePolicy
111
111
gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeAssets/Insert.hs+4−5
@@ -64,10 +64,9 @@ type CreativeAssetsInsertResource =
64 Capture "advertiserId" (Textual Int64) :>
64 Capture "advertiserId" (Textual Int64) :>
65 "creativeAssets" :>
65 "creativeAssets" :>
66 QueryParam "alt" AltJSON :>
66 QueryParam "alt" AltJSON :>
67− QueryParam "uploadType" AltMedia :>
67+ QueryParam "uploadType" Multipart :>
68− MultipartRelated '[JSON] CreativeAssetMetadata
68+ MultipartRelated '[JSON] CreativeAssetMetadata :>
69− RequestBody
70− :> Post '[JSON] CreativeAssetMetadata
69+ Post '[JSON] CreativeAssetMetadata
71
70
72-- | Inserts a new creative asset.
71-- | Inserts a new creative asset.
73--
72--
@@ -139,7 +138,7 @@ instance GoogleRequest
139 requestClient
138 requestClient
140 (MediaUpload CreativeAssetsInsert'{..} body)
139 (MediaUpload CreativeAssetsInsert'{..} body)
141 = go _caiProFileId _caiAdvertiserId (Just AltJSON)
140 = go _caiProFileId _caiAdvertiserId (Just AltJSON)
142− (Just AltMedia)
141+ (Just Multipart)
143 _caiPayload
142 _caiPayload
144 body
143 body
145 dFAReportingService
144 dFAReportingService
gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivityGroups/Delete.hsdeleted−103
@@ -1,103 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.DFAReporting.FloodlightActivityGroups.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Deletes an existing floodlight activity group.
24−--
25−-- /See:/ <https://developers.google.com/doubleclick-advertisers/reporting/ DCM/DFA Reporting And Trafficking API Reference> for @dfareporting.floodlightActivityGroups.delete@.
26−module Network.Google.Resource.DFAReporting.FloodlightActivityGroups.Delete
27− (
28− -- * REST Resource
29− FloodlightActivityGroupsDeleteResource
30−
31− -- * Creating a Request
32− , floodlightActivityGroupsDelete
33− , FloodlightActivityGroupsDelete
34−
35− -- * Request Lenses
36− , fagdProFileId
37− , fagdId
38− ) where
39−
40−import Network.Google.DFAReporting.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @dfareporting.floodlightActivityGroups.delete@ method which the
44−-- 'FloodlightActivityGroupsDelete' request conforms to.
45−type FloodlightActivityGroupsDeleteResource =
46− "dfareporting" :>
47− "v2.2" :>
48− "userprofiles" :>
49− Capture "profileId" (Textual Int64) :>
50− "floodlightActivityGroups" :>
51− Capture "id" (Textual Int64) :>
52− QueryParam "alt" AltJSON :> Delete '[JSON] ()
53−
54−-- | Deletes an existing floodlight activity group.
55−--
56−-- /See:/ 'floodlightActivityGroupsDelete' smart constructor.
57−data FloodlightActivityGroupsDelete = FloodlightActivityGroupsDelete
58− { _fagdProFileId :: !(Textual Int64)
59− , _fagdId :: !(Textual Int64)
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'FloodlightActivityGroupsDelete' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'fagdProFileId'
67−--
68−-- * 'fagdId'
69−floodlightActivityGroupsDelete
70− :: Int64 -- ^ 'fagdProFileId'
71− -> Int64 -- ^ 'fagdId'
72− -> FloodlightActivityGroupsDelete
73−floodlightActivityGroupsDelete pFagdProFileId_ pFagdId_ =
74− FloodlightActivityGroupsDelete
75− { _fagdProFileId = _Coerce # pFagdProFileId_
76− , _fagdId = _Coerce # pFagdId_
77− }
78−
79−-- | User profile ID associated with this request.
80−fagdProFileId :: Lens' FloodlightActivityGroupsDelete Int64
81−fagdProFileId
82− = lens _fagdProFileId
83− (\ s a -> s{_fagdProFileId = a})
84− . _Coerce
85−
86−-- | Floodlight activity Group ID.
87−fagdId :: Lens' FloodlightActivityGroupsDelete Int64
88−fagdId
89− = lens _fagdId (\ s a -> s{_fagdId = a}) . _Coerce
90−
91−instance GoogleRequest FloodlightActivityGroupsDelete
92− where
93− type Rs FloodlightActivityGroupsDelete = ()
94− type Scopes FloodlightActivityGroupsDelete =
95− '["https://www.googleapis.com/auth/dfatrafficking"]
96− requestClient FloodlightActivityGroupsDelete{..}
97− = go _fagdProFileId _fagdId (Just AltJSON)
98− dFAReportingService
99− where go
100− = buildClient
101− (Proxy ::
102− Proxy FloodlightActivityGroupsDeleteResource)
103− mempty
gogol-dns/gen/Network/Google/DNS/Types/Sum.hs+2−2
@@ -22,7 +22,7 @@ import Network.Google.Prelude
22data ChangesListSortBy
22data ChangesListSortBy
23 = ChangeSequence
23 = ChangeSequence
24 -- ^ @changeSequence@
24 -- ^ @changeSequence@
25− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
25+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
26
26
27instance Hashable ChangesListSortBy
27instance Hashable ChangesListSortBy
28
28
@@ -47,7 +47,7 @@ data ChangeStatus
47 -- ^ @done@
47 -- ^ @done@
48 | Pending
48 | Pending
49 -- ^ @pending@
49 -- ^ @pending@
50− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
50+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
51
51
52instance Hashable ChangeStatus
52instance Hashable ChangeStatus
53
53
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Sum.hs+15−15
@@ -26,7 +26,7 @@ data QueryMetadataFormat
26 -- ^ @EXCEL_CSV@
26 -- ^ @EXCEL_CSV@
27 | Xlsx
27 | Xlsx
28 -- ^ @XLSX@
28 -- ^ @XLSX@
29− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
29+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
30
30
31instance Hashable QueryMetadataFormat
31instance Hashable QueryMetadataFormat
32
32
@@ -111,7 +111,7 @@ data ParametersType
111 -- ^ @TYPE_VERIFICATION@
111 -- ^ @TYPE_VERIFICATION@
112 | TypeYouTubeVertical
112 | TypeYouTubeVertical
113 -- ^ @TYPE_YOUTUBE_VERTICAL@
113 -- ^ @TYPE_YOUTUBE_VERTICAL@
114− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
114+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
115
115
116instance Hashable ParametersType
116instance Hashable ParametersType
117
117
@@ -196,7 +196,7 @@ data DownloadLineItemsRequestFilterType
196 -- ^ @INSERTION_ORDER_ID@
196 -- ^ @INSERTION_ORDER_ID@
197 | LineItemId
197 | LineItemId
198 -- ^ @LINE_ITEM_ID@
198 -- ^ @LINE_ITEM_ID@
199− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
199+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
200
200
201instance Hashable DownloadLineItemsRequestFilterType
201instance Hashable DownloadLineItemsRequestFilterType
202
202
@@ -257,7 +257,7 @@ data QueryMetadataDataRange
257 -- ^ @WEEK_TO_DATE@
257 -- ^ @WEEK_TO_DATE@
258 | YearToDate
258 | YearToDate
259 -- ^ @YEAR_TO_DATE@
259 -- ^ @YEAR_TO_DATE@
260− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
260+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
261
261
262instance Hashable QueryMetadataDataRange
262instance Hashable QueryMetadataDataRange
263
263
@@ -855,7 +855,7 @@ data ParametersMetricsItem
855 -- ^ @METRIC_VIDEO_COMPANION_IMPRESSIONS@
855 -- ^ @METRIC_VIDEO_COMPANION_IMPRESSIONS@
856 | MetricVideoCompletionRate
856 | MetricVideoCompletionRate
857 -- ^ @METRIC_VIDEO_COMPLETION_RATE@
857 -- ^ @METRIC_VIDEO_COMPLETION_RATE@
858− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
858+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
859
859
860instance Hashable ParametersMetricsItem
860instance Hashable ParametersMetricsItem
861
861
@@ -1430,7 +1430,7 @@ data QueryScheduleFrequency
1430 -- ^ @SEMI_MONTHLY@
1430 -- ^ @SEMI_MONTHLY@
1431 | Weekly
1431 | Weekly
1432 -- ^ @WEEKLY@
1432 -- ^ @WEEKLY@
1433− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1433+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1434
1434
1435instance Hashable QueryScheduleFrequency
1435instance Hashable QueryScheduleFrequency
1436
1436
@@ -1466,7 +1466,7 @@ data DownloadLineItemsRequestFileSpec
1466 -- ^ @EWF@
1466 -- ^ @EWF@
1467 | Sdf
1467 | Sdf
1468 -- ^ @SDF@
1468 -- ^ @SDF@
1469− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1469+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1470
1470
1471instance Hashable DownloadLineItemsRequestFileSpec
1471instance Hashable DownloadLineItemsRequestFileSpec
1472
1472
@@ -1491,7 +1491,7 @@ instance ToJSON DownloadLineItemsRequestFileSpec where
1491data UploadLineItemsRequestFormat
1491data UploadLineItemsRequestFormat
1492 = ULIRFCSV
1492 = ULIRFCSV
1493 -- ^ @CSV@
1493 -- ^ @CSV@
1494− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1494+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1495
1495
1496instance Hashable UploadLineItemsRequestFormat
1496instance Hashable UploadLineItemsRequestFormat
1497
1497
@@ -1690,7 +1690,7 @@ data FilterPairType
1690 -- ^ @FILTER_YOUTUBE_VERTICAL@
1690 -- ^ @FILTER_YOUTUBE_VERTICAL@
1691 | FilterZipCode
1691 | FilterZipCode
1692 -- ^ @FILTER_ZIP_CODE@
1692 -- ^ @FILTER_ZIP_CODE@
1693− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1693+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1694
1694
1695instance Hashable FilterPairType
1695instance Hashable FilterPairType
1696
1696
@@ -1923,7 +1923,7 @@ data RunQueryRequestDataRange
1923 -- ^ @WEEK_TO_DATE@
1923 -- ^ @WEEK_TO_DATE@
1924 | RQRDRYearToDate
1924 | RQRDRYearToDate
1925 -- ^ @YEAR_TO_DATE@
1925 -- ^ @YEAR_TO_DATE@
1926− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1926+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1927
1927
1928instance Hashable RunQueryRequestDataRange
1928instance Hashable RunQueryRequestDataRange
1929
1929
@@ -1984,7 +1984,7 @@ data ReportStatusState
1984 -- ^ @FAILED@
1984 -- ^ @FAILED@
1985 | Running
1985 | Running
1986 -- ^ @RUNNING@
1986 -- ^ @RUNNING@
1987− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1987+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1988
1988
1989instance Hashable ReportStatusState
1989instance Hashable ReportStatusState
1990
1990
@@ -2186,7 +2186,7 @@ data ParametersGroupBysItem
2186 -- ^ @FILTER_YOUTUBE_VERTICAL@
2186 -- ^ @FILTER_YOUTUBE_VERTICAL@
2187 | PGBIFilterZipCode
2187 | PGBIFilterZipCode
2188 -- ^ @FILTER_ZIP_CODE@
2188 -- ^ @FILTER_ZIP_CODE@
2189− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2189+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2190
2190
2191instance Hashable ParametersGroupBysItem
2191instance Hashable ParametersGroupBysItem
2192
2192
@@ -2419,7 +2419,7 @@ data ReportFailureErrorCode
2419 -- ^ @UNAUTHORIZED_API_ACCESS@
2419 -- ^ @UNAUTHORIZED_API_ACCESS@
2420 | ValidationError
2420 | ValidationError
2421 -- ^ @VALIDATION_ERROR@
2421 -- ^ @VALIDATION_ERROR@
2422− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2422+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2423
2423
2424instance Hashable ReportFailureErrorCode
2424instance Hashable ReportFailureErrorCode
2425
2425
@@ -2476,7 +2476,7 @@ instance ToJSON ReportFailureErrorCode where
2476data DownloadLineItemsRequestFormat
2476data DownloadLineItemsRequestFormat
2477 = DLIRFCSV
2477 = DLIRFCSV
2478 -- ^ @CSV@
2478 -- ^ @CSV@
2479− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2479+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2480
2480
2481instance Hashable DownloadLineItemsRequestFormat
2481instance Hashable DownloadLineItemsRequestFormat
2482
2482
@@ -2503,7 +2503,7 @@ data ReportStatusFormat
2503 -- ^ @EXCEL_CSV@
2503 -- ^ @EXCEL_CSV@
2504 | RSFXlsx
2504 | RSFXlsx
2505 -- ^ @XLSX@
2505 -- ^ @XLSX@
2506− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2506+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2507
2507
2508instance Hashable ReportStatusFormat
2508instance Hashable ReportStatusFormat
2509
2509
gogol-drive/gen/Network/Google/Drive/Types/Sum.hs+1−1
@@ -26,7 +26,7 @@ data FilesListCorpus
26 | FLCUser
26 | FLCUser
27 -- ^ @user@
27 -- ^ @user@
28 -- Files owned by or shared to the user.
28 -- Files owned by or shared to the user.
29− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
29+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
30
30
31instance Hashable FilesListCorpus
31instance Hashable FilesListCorpus
32
32
gogol-drive/gen/Network/Google/Resource/Drive/Apps/Get.hsdeleted−88
@@ -1,88 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Apps.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets a specific app.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.apps.get@.
26−module Network.Google.Resource.Drive.Apps.Get
27− (
28− -- * REST Resource
29− AppsGetResource
30−
31− -- * Creating a Request
32− , appsGet
33− , AppsGet
34−
35− -- * Request Lenses
36− , agAppId
37− ) where
38−
39−import Network.Google.Drive.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @drive.apps.get@ method which the
43−-- 'AppsGet' request conforms to.
44−type AppsGetResource =
45− "drive" :>
46− "v2" :>
47− "apps" :>
48− Capture "appId" Text :>
49− QueryParam "alt" AltJSON :> Get '[JSON] App
50−
51−-- | Gets a specific app.
52−--
53−-- /See:/ 'appsGet' smart constructor.
54−newtype AppsGet = AppsGet
55− { _agAppId :: Text
56− } deriving (Eq,Show,Data,Typeable,Generic)
57−
58−-- | Creates a value of 'AppsGet' with the minimum fields required to make a request.
59−--
60−-- Use one of the following lenses to modify other fields as desired:
61−--
62−-- * 'agAppId'
63−appsGet
64− :: Text -- ^ 'agAppId'
65− -> AppsGet
66−appsGet pAgAppId_ =
67− AppsGet
68− { _agAppId = pAgAppId_
69− }
70−
71−-- | The ID of the app.
72−agAppId :: Lens' AppsGet Text
73−agAppId = lens _agAppId (\ s a -> s{_agAppId = a})
74−
75−instance GoogleRequest AppsGet where
76− type Rs AppsGet = App
77− type Scopes AppsGet =
78− '["https://www.googleapis.com/auth/drive",
79− "https://www.googleapis.com/auth/drive.appdata",
80− "https://www.googleapis.com/auth/drive.apps.readonly",
81− "https://www.googleapis.com/auth/drive.file",
82− "https://www.googleapis.com/auth/drive.metadata",
83− "https://www.googleapis.com/auth/drive.metadata.readonly",
84− "https://www.googleapis.com/auth/drive.readonly"]
85− requestClient AppsGet{..}
86− = go _agAppId (Just AltJSON) driveService
87− where go
88− = buildClient (Proxy :: Proxy AppsGetResource) mempty
gogol-drive/gen/Network/Google/Resource/Drive/Apps/List.hsdeleted−119
@@ -1,119 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Apps.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists a user\'s installed apps.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.apps.list@.
26−module Network.Google.Resource.Drive.Apps.List
27− (
28− -- * REST Resource
29− AppsListResource
30−
31− -- * Creating a Request
32− , appsList
33− , AppsList
34−
35− -- * Request Lenses
36− , alLanguageCode
37− , alAppFilterExtensions
38− , alAppFilterMimeTypes
39− ) where
40−
41−import Network.Google.Drive.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @drive.apps.list@ method which the
45−-- 'AppsList' request conforms to.
46−type AppsListResource =
47− "drive" :>
48− "v2" :>
49− "apps" :>
50− QueryParam "languageCode" Text :>
51− QueryParam "appFilterExtensions" Text :>
52− QueryParam "appFilterMimeTypes" Text :>
53− QueryParam "alt" AltJSON :> Get '[JSON] AppList
54−
55−-- | Lists a user\'s installed apps.
56−--
57−-- /See:/ 'appsList' smart constructor.
58−data AppsList = AppsList
59− { _alLanguageCode :: !(Maybe Text)
60− , _alAppFilterExtensions :: !Text
61− , _alAppFilterMimeTypes :: !Text
62− } deriving (Eq,Show,Data,Typeable,Generic)
63−
64−-- | Creates a value of 'AppsList' with the minimum fields required to make a request.
65−--
66−-- Use one of the following lenses to modify other fields as desired:
67−--
68−-- * 'alLanguageCode'
69−--
70−-- * 'alAppFilterExtensions'
71−--
72−-- * 'alAppFilterMimeTypes'
73−appsList
74− :: AppsList
75−appsList =
76− AppsList
77− { _alLanguageCode = Nothing
78− , _alAppFilterExtensions = ""
79− , _alAppFilterMimeTypes = ""
80− }
81−
82−-- | A language or locale code, as defined by BCP 47, with some extensions
83−-- from Unicode\'s LDML format (http:\/\/www.unicode.org\/reports\/tr35\/).
84−alLanguageCode :: Lens' AppsList (Maybe Text)
85−alLanguageCode
86− = lens _alLanguageCode
87− (\ s a -> s{_alLanguageCode = a})
88−
89−-- | A comma-separated list of file extensions for open with filtering. All
90−-- apps within the given app query scope which can open any of the given
91−-- file extensions will be included in the response. If appFilterMimeTypes
92−-- are provided as well, the result is a union of the two resulting app
93−-- lists.
94−alAppFilterExtensions :: Lens' AppsList Text
95−alAppFilterExtensions
96− = lens _alAppFilterExtensions
97− (\ s a -> s{_alAppFilterExtensions = a})
98−
99−-- | A comma-separated list of MIME types for open with filtering. All apps
100−-- within the given app query scope which can open any of the given MIME
101−-- types will be included in the response. If appFilterExtensions are
102−-- provided as well, the result is a union of the two resulting app lists.
103−alAppFilterMimeTypes :: Lens' AppsList Text
104−alAppFilterMimeTypes
105− = lens _alAppFilterMimeTypes
106− (\ s a -> s{_alAppFilterMimeTypes = a})
107−
108−instance GoogleRequest AppsList where
109− type Rs AppsList = AppList
110− type Scopes AppsList =
111− '["https://www.googleapis.com/auth/drive.apps.readonly"]
112− requestClient AppsList{..}
113− = go _alLanguageCode (Just _alAppFilterExtensions)
114− (Just _alAppFilterMimeTypes)
115− (Just AltJSON)
116− driveService
117− where go
118− = buildClient (Proxy :: Proxy AppsListResource)
119− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Changes/Get.hsdeleted−91
@@ -1,91 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Changes.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets a specific change.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.changes.get@.
26−module Network.Google.Resource.Drive.Changes.Get
27− (
28− -- * REST Resource
29− ChangesGetResource
30−
31− -- * Creating a Request
32− , changesGet
33− , ChangesGet
34−
35− -- * Request Lenses
36− , cgChangeId
37− ) where
38−
39−import Network.Google.Drive.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @drive.changes.get@ method which the
43−-- 'ChangesGet' request conforms to.
44−type ChangesGetResource =
45− "drive" :>
46− "v2" :>
47− "changes" :>
48− Capture "changeId" Text :>
49− QueryParam "alt" AltJSON :> Get '[JSON] Change
50−
51−-- | Gets a specific change.
52−--
53−-- /See:/ 'changesGet' smart constructor.
54−newtype ChangesGet = ChangesGet
55− { _cgChangeId :: Text
56− } deriving (Eq,Show,Data,Typeable,Generic)
57−
58−-- | Creates a value of 'ChangesGet' with the minimum fields required to make a request.
59−--
60−-- Use one of the following lenses to modify other fields as desired:
61−--
62−-- * 'cgChangeId'
63−changesGet
64− :: Text -- ^ 'cgChangeId'
65− -> ChangesGet
66−changesGet pCgChangeId_ =
67− ChangesGet
68− { _cgChangeId = pCgChangeId_
69− }
70−
71−-- | The ID of the change.
72−cgChangeId :: Lens' ChangesGet Text
73−cgChangeId
74− = lens _cgChangeId (\ s a -> s{_cgChangeId = a})
75−
76−instance GoogleRequest ChangesGet where
77− type Rs ChangesGet = Change
78− type Scopes ChangesGet =
79− '["https://www.googleapis.com/auth/drive",
80− "https://www.googleapis.com/auth/drive.appdata",
81− "https://www.googleapis.com/auth/drive.apps.readonly",
82− "https://www.googleapis.com/auth/drive.file",
83− "https://www.googleapis.com/auth/drive.metadata",
84− "https://www.googleapis.com/auth/drive.metadata.readonly",
85− "https://www.googleapis.com/auth/drive.photos.readonly",
86− "https://www.googleapis.com/auth/drive.readonly"]
87− requestClient ChangesGet{..}
88− = go _cgChangeId (Just AltJSON) driveService
89− where go
90− = buildClient (Proxy :: Proxy ChangesGetResource)
91− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Children/Delete.hsdeleted−99
@@ -1,99 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Children.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Removes a child from a folder.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.children.delete@.
26−module Network.Google.Resource.Drive.Children.Delete
27− (
28− -- * REST Resource
29− ChildrenDeleteResource
30−
31− -- * Creating a Request
32− , childrenDelete
33− , ChildrenDelete
34−
35− -- * Request Lenses
36− , cdFolderId
37− , cdChildId
38− ) where
39−
40−import Network.Google.Drive.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @drive.children.delete@ method which the
44−-- 'ChildrenDelete' request conforms to.
45−type ChildrenDeleteResource =
46− "drive" :>
47− "v2" :>
48− "files" :>
49− Capture "folderId" Text :>
50− "children" :>
51− Capture "childId" Text :>
52− QueryParam "alt" AltJSON :> Delete '[JSON] ()
53−
54−-- | Removes a child from a folder.
55−--
56−-- /See:/ 'childrenDelete' smart constructor.
57−data ChildrenDelete = ChildrenDelete
58− { _cdFolderId :: !Text
59− , _cdChildId :: !Text
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'ChildrenDelete' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'cdFolderId'
67−--
68−-- * 'cdChildId'
69−childrenDelete
70− :: Text -- ^ 'cdFolderId'
71− -> Text -- ^ 'cdChildId'
72− -> ChildrenDelete
73−childrenDelete pCdFolderId_ pCdChildId_ =
74− ChildrenDelete
75− { _cdFolderId = pCdFolderId_
76− , _cdChildId = pCdChildId_
77− }
78−
79−-- | The ID of the folder.
80−cdFolderId :: Lens' ChildrenDelete Text
81−cdFolderId
82− = lens _cdFolderId (\ s a -> s{_cdFolderId = a})
83−
84−-- | The ID of the child.
85−cdChildId :: Lens' ChildrenDelete Text
86−cdChildId
87− = lens _cdChildId (\ s a -> s{_cdChildId = a})
88−
89−instance GoogleRequest ChildrenDelete where
90− type Rs ChildrenDelete = ()
91− type Scopes ChildrenDelete =
92− '["https://www.googleapis.com/auth/drive",
93− "https://www.googleapis.com/auth/drive.file"]
94− requestClient ChildrenDelete{..}
95− = go _cdFolderId _cdChildId (Just AltJSON)
96− driveService
97− where go
98− = buildClient (Proxy :: Proxy ChildrenDeleteResource)
99− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Children/Get.hsdeleted−105
@@ -1,105 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Children.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets a specific child reference.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.children.get@.
26−module Network.Google.Resource.Drive.Children.Get
27− (
28− -- * REST Resource
29− ChildrenGetResource
30−
31− -- * Creating a Request
32− , childrenGet
33− , ChildrenGet
34−
35− -- * Request Lenses
36− , cgFolderId
37− , cgChildId
38− ) where
39−
40−import Network.Google.Drive.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @drive.children.get@ method which the
44−-- 'ChildrenGet' request conforms to.
45−type ChildrenGetResource =
46− "drive" :>
47− "v2" :>
48− "files" :>
49− Capture "folderId" Text :>
50− "children" :>
51− Capture "childId" Text :>
52− QueryParam "alt" AltJSON :>
53− Get '[JSON] ChildReference
54−
55−-- | Gets a specific child reference.
56−--
57−-- /See:/ 'childrenGet' smart constructor.
58−data ChildrenGet = ChildrenGet
59− { _cgFolderId :: !Text
60− , _cgChildId :: !Text
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'ChildrenGet' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'cgFolderId'
68−--
69−-- * 'cgChildId'
70−childrenGet
71− :: Text -- ^ 'cgFolderId'
72− -> Text -- ^ 'cgChildId'
73− -> ChildrenGet
74−childrenGet pCgFolderId_ pCgChildId_ =
75− ChildrenGet
76− { _cgFolderId = pCgFolderId_
77− , _cgChildId = pCgChildId_
78− }
79−
80−-- | The ID of the folder.
81−cgFolderId :: Lens' ChildrenGet Text
82−cgFolderId
83− = lens _cgFolderId (\ s a -> s{_cgFolderId = a})
84−
85−-- | The ID of the child.
86−cgChildId :: Lens' ChildrenGet Text
87−cgChildId
88− = lens _cgChildId (\ s a -> s{_cgChildId = a})
89−
90−instance GoogleRequest ChildrenGet where
91− type Rs ChildrenGet = ChildReference
92− type Scopes ChildrenGet =
93− '["https://www.googleapis.com/auth/drive",
94− "https://www.googleapis.com/auth/drive.appdata",
95− "https://www.googleapis.com/auth/drive.file",
96− "https://www.googleapis.com/auth/drive.metadata",
97− "https://www.googleapis.com/auth/drive.metadata.readonly",
98− "https://www.googleapis.com/auth/drive.photos.readonly",
99− "https://www.googleapis.com/auth/drive.readonly"]
100− requestClient ChildrenGet{..}
101− = go _cgFolderId _cgChildId (Just AltJSON)
102− driveService
103− where go
104− = buildClient (Proxy :: Proxy ChildrenGetResource)
105− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Children/Insert.hsdeleted−101
@@ -1,101 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Children.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Inserts a file into a folder.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.children.insert@.
26−module Network.Google.Resource.Drive.Children.Insert
27− (
28− -- * REST Resource
29− ChildrenInsertResource
30−
31− -- * Creating a Request
32− , childrenInsert
33− , ChildrenInsert
34−
35− -- * Request Lenses
36− , ciFolderId
37− , ciPayload
38− ) where
39−
40−import Network.Google.Drive.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @drive.children.insert@ method which the
44−-- 'ChildrenInsert' request conforms to.
45−type ChildrenInsertResource =
46− "drive" :>
47− "v2" :>
48− "files" :>
49− Capture "folderId" Text :>
50− "children" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] ChildReference :>
53− Post '[JSON] ChildReference
54−
55−-- | Inserts a file into a folder.
56−--
57−-- /See:/ 'childrenInsert' smart constructor.
58−data ChildrenInsert = ChildrenInsert
59− { _ciFolderId :: !Text
60− , _ciPayload :: !ChildReference
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'ChildrenInsert' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'ciFolderId'
68−--
69−-- * 'ciPayload'
70−childrenInsert
71− :: Text -- ^ 'ciFolderId'
72− -> ChildReference -- ^ 'ciPayload'
73− -> ChildrenInsert
74−childrenInsert pCiFolderId_ pCiPayload_ =
75− ChildrenInsert
76− { _ciFolderId = pCiFolderId_
77− , _ciPayload = pCiPayload_
78− }
79−
80−-- | The ID of the folder.
81−ciFolderId :: Lens' ChildrenInsert Text
82−ciFolderId
83− = lens _ciFolderId (\ s a -> s{_ciFolderId = a})
84−
85−-- | Multipart request metadata.
86−ciPayload :: Lens' ChildrenInsert ChildReference
87−ciPayload
88− = lens _ciPayload (\ s a -> s{_ciPayload = a})
89−
90−instance GoogleRequest ChildrenInsert where
91− type Rs ChildrenInsert = ChildReference
92− type Scopes ChildrenInsert =
93− '["https://www.googleapis.com/auth/drive",
94− "https://www.googleapis.com/auth/drive.appdata",
95− "https://www.googleapis.com/auth/drive.file"]
96− requestClient ChildrenInsert{..}
97− = go _ciFolderId (Just AltJSON) _ciPayload
98− driveService
99− where go
100− = buildClient (Proxy :: Proxy ChildrenInsertResource)
101− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Children/List.hsdeleted−144
@@ -1,144 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Children.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists a folder\'s children.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.children.list@.
26−module Network.Google.Resource.Drive.Children.List
27− (
28− -- * REST Resource
29− ChildrenListResource
30−
31− -- * Creating a Request
32− , childrenList
33− , ChildrenList
34−
35− -- * Request Lenses
36− , cOrderBy
37− , cFolderId
38− , cQ
39− , cPageToken
40− , cMaxResults
41− ) where
42−
43−import Network.Google.Drive.Types
44−import Network.Google.Prelude
45−
46−-- | A resource alias for @drive.children.list@ method which the
47−-- 'ChildrenList' request conforms to.
48−type ChildrenListResource =
49− "drive" :>
50− "v2" :>
51− "files" :>
52− Capture "folderId" Text :>
53− "children" :>
54− QueryParam "orderBy" Text :>
55− QueryParam "q" Text :>
56− QueryParam "pageToken" Text :>
57− QueryParam "maxResults" (Textual Int32) :>
58− QueryParam "alt" AltJSON :> Get '[JSON] ChildList
59−
60−-- | Lists a folder\'s children.
61−--
62−-- /See:/ 'childrenList' smart constructor.
63−data ChildrenList = ChildrenList
64− { _cOrderBy :: !(Maybe Text)
65− , _cFolderId :: !Text
66− , _cQ :: !(Maybe Text)
67− , _cPageToken :: !(Maybe Text)
68− , _cMaxResults :: !(Textual Int32)
69− } deriving (Eq,Show,Data,Typeable,Generic)
70−
71−-- | Creates a value of 'ChildrenList' with the minimum fields required to make a request.
72−--
73−-- Use one of the following lenses to modify other fields as desired:
74−--
75−-- * 'cOrderBy'
76−--
77−-- * 'cFolderId'
78−--
79−-- * 'cQ'
80−--
81−-- * 'cPageToken'
82−--
83−-- * 'cMaxResults'
84−childrenList
85− :: Text -- ^ 'cFolderId'
86− -> ChildrenList
87−childrenList pCFolderId_ =
88− ChildrenList
89− { _cOrderBy = Nothing
90− , _cFolderId = pCFolderId_
91− , _cQ = Nothing
92− , _cPageToken = Nothing
93− , _cMaxResults = 100
94− }
95−
96−-- | A comma-separated list of sort keys. Valid keys are \'createdDate\',
97−-- \'folder\', \'lastViewedByMeDate\', \'modifiedByMeDate\',
98−-- \'modifiedDate\', \'quotaBytesUsed\', \'recency\', \'sharedWithMeDate\',
99−-- \'starred\', and \'title\'. Each key sorts ascending by default, but may
100−-- be reversed with the \'desc\' modifier. Example usage:
101−-- ?orderBy=folder,modifiedDate desc,title. Please note that there is a
102−-- current limitation for users with approximately one million files in
103−-- which the requested sort order is ignored.
104−cOrderBy :: Lens' ChildrenList (Maybe Text)
105−cOrderBy = lens _cOrderBy (\ s a -> s{_cOrderBy = a})
106−
107−-- | The ID of the folder.
108−cFolderId :: Lens' ChildrenList Text
109−cFolderId
110− = lens _cFolderId (\ s a -> s{_cFolderId = a})
111−
112−-- | Query string for searching children.
113−cQ :: Lens' ChildrenList (Maybe Text)
114−cQ = lens _cQ (\ s a -> s{_cQ = a})
115−
116−-- | Page token for children.
117−cPageToken :: Lens' ChildrenList (Maybe Text)
118−cPageToken
119− = lens _cPageToken (\ s a -> s{_cPageToken = a})
120−
121−-- | Maximum number of children to return.
122−cMaxResults :: Lens' ChildrenList Int32
123−cMaxResults
124− = lens _cMaxResults (\ s a -> s{_cMaxResults = a}) .
125− _Coerce
126−
127−instance GoogleRequest ChildrenList where
128− type Rs ChildrenList = ChildList
129− type Scopes ChildrenList =
130− '["https://www.googleapis.com/auth/drive",
131− "https://www.googleapis.com/auth/drive.appdata",
132− "https://www.googleapis.com/auth/drive.file",
133− "https://www.googleapis.com/auth/drive.metadata",
134− "https://www.googleapis.com/auth/drive.metadata.readonly",
135− "https://www.googleapis.com/auth/drive.photos.readonly",
136− "https://www.googleapis.com/auth/drive.readonly"]
137− requestClient ChildrenList{..}
138− = go _cFolderId _cOrderBy _cQ _cPageToken
139− (Just _cMaxResults)
140− (Just AltJSON)
141− driveService
142− where go
143− = buildClient (Proxy :: Proxy ChildrenListResource)
144− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Comments/Insert.hsdeleted−99
@@ -1,99 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Comments.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Creates a new comment on the given file.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.comments.insert@.
26−module Network.Google.Resource.Drive.Comments.Insert
27− (
28− -- * REST Resource
29− CommentsInsertResource
30−
31− -- * Creating a Request
32− , commentsInsert
33− , CommentsInsert
34−
35− -- * Request Lenses
36− , comPayload
37− , comFileId
38− ) where
39−
40−import Network.Google.Drive.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @drive.comments.insert@ method which the
44−-- 'CommentsInsert' request conforms to.
45−type CommentsInsertResource =
46− "drive" :>
47− "v2" :>
48− "files" :>
49− Capture "fileId" Text :>
50− "comments" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] Comment :> Post '[JSON] Comment
53−
54−-- | Creates a new comment on the given file.
55−--
56−-- /See:/ 'commentsInsert' smart constructor.
57−data CommentsInsert = CommentsInsert
58− { _comPayload :: !Comment
59− , _comFileId :: !Text
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'CommentsInsert' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'comPayload'
67−--
68−-- * 'comFileId'
69−commentsInsert
70− :: Comment -- ^ 'comPayload'
71− -> Text -- ^ 'comFileId'
72− -> CommentsInsert
73−commentsInsert pComPayload_ pComFileId_ =
74− CommentsInsert
75− { _comPayload = pComPayload_
76− , _comFileId = pComFileId_
77− }
78−
79−-- | Multipart request metadata.
80−comPayload :: Lens' CommentsInsert Comment
81−comPayload
82− = lens _comPayload (\ s a -> s{_comPayload = a})
83−
84−-- | The ID of the file.
85−comFileId :: Lens' CommentsInsert Text
86−comFileId
87− = lens _comFileId (\ s a -> s{_comFileId = a})
88−
89−instance GoogleRequest CommentsInsert where
90− type Rs CommentsInsert = Comment
91− type Scopes CommentsInsert =
92− '["https://www.googleapis.com/auth/drive",
93− "https://www.googleapis.com/auth/drive.file"]
94− requestClient CommentsInsert{..}
95− = go _comFileId (Just AltJSON) _comPayload
96− driveService
97− where go
98− = buildClient (Proxy :: Proxy CommentsInsertResource)
99− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Comments/Patch.hsdeleted−110
@@ -1,110 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Comments.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates an existing comment. This method supports patch semantics.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.comments.patch@.
26−module Network.Google.Resource.Drive.Comments.Patch
27− (
28− -- * REST Resource
29− CommentsPatchResource
30−
31− -- * Creating a Request
32− , commentsPatch
33− , CommentsPatch
34−
35− -- * Request Lenses
36− , cpPayload
37− , cpFileId
38− , cpCommentId
39− ) where
40−
41−import Network.Google.Drive.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @drive.comments.patch@ method which the
45−-- 'CommentsPatch' request conforms to.
46−type CommentsPatchResource =
47− "drive" :>
48− "v2" :>
49− "files" :>
50− Capture "fileId" Text :>
51− "comments" :>
52− Capture "commentId" Text :>
53− QueryParam "alt" AltJSON :>
54− ReqBody '[JSON] Comment :> Patch '[JSON] Comment
55−
56−-- | Updates an existing comment. This method supports patch semantics.
57−--
58−-- /See:/ 'commentsPatch' smart constructor.
59−data CommentsPatch = CommentsPatch
60− { _cpPayload :: !Comment
61− , _cpFileId :: !Text
62− , _cpCommentId :: !Text
63− } deriving (Eq,Show,Data,Typeable,Generic)
64−
65−-- | Creates a value of 'CommentsPatch' with the minimum fields required to make a request.
66−--
67−-- Use one of the following lenses to modify other fields as desired:
68−--
69−-- * 'cpPayload'
70−--
71−-- * 'cpFileId'
72−--
73−-- * 'cpCommentId'
74−commentsPatch
75− :: Comment -- ^ 'cpPayload'
76− -> Text -- ^ 'cpFileId'
77− -> Text -- ^ 'cpCommentId'
78− -> CommentsPatch
79−commentsPatch pCpPayload_ pCpFileId_ pCpCommentId_ =
80− CommentsPatch
81− { _cpPayload = pCpPayload_
82− , _cpFileId = pCpFileId_
83− , _cpCommentId = pCpCommentId_
84− }
85−
86−-- | Multipart request metadata.
87−cpPayload :: Lens' CommentsPatch Comment
88−cpPayload
89− = lens _cpPayload (\ s a -> s{_cpPayload = a})
90−
91−-- | The ID of the file.
92−cpFileId :: Lens' CommentsPatch Text
93−cpFileId = lens _cpFileId (\ s a -> s{_cpFileId = a})
94−
95−-- | The ID of the comment.
96−cpCommentId :: Lens' CommentsPatch Text
97−cpCommentId
98− = lens _cpCommentId (\ s a -> s{_cpCommentId = a})
99−
100−instance GoogleRequest CommentsPatch where
101− type Rs CommentsPatch = Comment
102− type Scopes CommentsPatch =
103− '["https://www.googleapis.com/auth/drive",
104− "https://www.googleapis.com/auth/drive.file"]
105− requestClient CommentsPatch{..}
106− = go _cpFileId _cpCommentId (Just AltJSON) _cpPayload
107− driveService
108− where go
109− = buildClient (Proxy :: Proxy CommentsPatchResource)
110− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Files/Create.hs+3−4
@@ -65,9 +65,8 @@ type FilesCreateResource =
65 QueryParam "keepRevisionForever" Bool :>
65 QueryParam "keepRevisionForever" Bool :>
66 QueryParam "ignoreDefaultVisibility" Bool :>
66 QueryParam "ignoreDefaultVisibility" Bool :>
67 QueryParam "alt" AltJSON :>
67 QueryParam "alt" AltJSON :>
68− QueryParam "uploadType" AltMedia :>
68+ QueryParam "uploadType" Multipart :>
69− MultipartRelated '[JSON] File RequestBody :>
69+ MultipartRelated '[JSON] File :> Post '[JSON] File
70− Post '[JSON] File
71
70
72-- | Creates a new file.
71-- | Creates a new file.
73--
72--
@@ -168,7 +167,7 @@ instance GoogleRequest (MediaUpload FilesCreate)
168 (Just _fcKeepRevisionForever)
167 (Just _fcKeepRevisionForever)
169 (Just _fcIgnoreDefaultVisibility)
168 (Just _fcIgnoreDefaultVisibility)
170 (Just AltJSON)
169 (Just AltJSON)
171− (Just AltMedia)
170+ (Just Multipart)
172 _fcPayload
171 _fcPayload
173 body
172 body
174 driveService
173 driveService
gogol-drive/gen/Network/Google/Resource/Drive/Files/Insert.hsdeleted−228
@@ -1,228 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Files.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Insert a new file.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.files.insert@.
26−module Network.Google.Resource.Drive.Files.Insert
27− (
28− -- * REST Resource
29− FilesInsertResource
30−
31− -- * Creating a Request
32− , filesInsert
33− , FilesInsert
34−
35− -- * Request Lenses
36− , fiPinned
37− , fiVisibility
38− , fiTimedTextLanguage
39− , fiPayload
40− , fiUseContentAsIndexableText
41− , fiTimedTextTrackName
42− , fiOCRLanguage
43− , fiConvert
44− , fiOCR
45− ) where
46−
47−import Network.Google.Drive.Types
48−import Network.Google.Prelude
49−
50−-- | A resource alias for @drive.files.insert@ method which the
51−-- 'FilesInsert' request conforms to.
52−type FilesInsertResource =
53− "drive" :>
54− "v2" :>
55− "files" :>
56− QueryParam "pinned" Bool :>
57− QueryParam "visibility" FilesInsertVisibility :>
58− QueryParam "timedTextLanguage" Text :>
59− QueryParam "useContentAsIndexableText" Bool :>
60− QueryParam "timedTextTrackName" Text :>
61− QueryParam "ocrLanguage" Text :>
62− QueryParam "convert" Bool :>
63− QueryParam "ocr" Bool :>
64− QueryParam "alt" AltJSON :>
65− ReqBody '[JSON] File :> Post '[JSON] File
66− :<|>
67− "upload" :>
68− "drive" :>
69− "v2" :>
70− "files" :>
71− QueryParam "pinned" Bool :>
72− QueryParam "visibility" FilesInsertVisibility :>
73− QueryParam "timedTextLanguage" Text :>
74− QueryParam "useContentAsIndexableText" Bool :>
75− QueryParam "timedTextTrackName" Text :>
76− QueryParam "ocrLanguage" Text :>
77− QueryParam "convert" Bool :>
78− QueryParam "ocr" Bool :>
79− QueryParam "alt" AltJSON :>
80− QueryParam "uploadType" AltMedia :>
81− MultipartRelated '[JSON] File RequestBody :>
82− Post '[JSON] File
83−
84−-- | Insert a new file.
85−--
86−-- /See:/ 'filesInsert' smart constructor.
87−data FilesInsert = FilesInsert
88− { _fiPinned :: !Bool
89− , _fiVisibility :: !FilesInsertVisibility
90− , _fiTimedTextLanguage :: !(Maybe Text)
91− , _fiPayload :: !File
92− , _fiUseContentAsIndexableText :: !Bool
93− , _fiTimedTextTrackName :: !(Maybe Text)
94− , _fiOCRLanguage :: !(Maybe Text)
95− , _fiConvert :: !Bool
96− , _fiOCR :: !Bool
97− } deriving (Eq,Show,Data,Typeable,Generic)
98−
99−-- | Creates a value of 'FilesInsert' with the minimum fields required to make a request.
100−--
101−-- Use one of the following lenses to modify other fields as desired:
102−--
103−-- * 'fiPinned'
104−--
105−-- * 'fiVisibility'
106−--
107−-- * 'fiTimedTextLanguage'
108−--
109−-- * 'fiPayload'
110−--
111−-- * 'fiUseContentAsIndexableText'
112−--
113−-- * 'fiTimedTextTrackName'
114−--
115−-- * 'fiOCRLanguage'
116−--
117−-- * 'fiConvert'
118−--
119−-- * 'fiOCR'
120−filesInsert
121− :: File -- ^ 'fiPayload'
122− -> FilesInsert
123−filesInsert pFiPayload_ =
124− FilesInsert
125− { _fiPinned = False
126− , _fiVisibility = Default
127− , _fiTimedTextLanguage = Nothing
128− , _fiPayload = pFiPayload_
129− , _fiUseContentAsIndexableText = False
130− , _fiTimedTextTrackName = Nothing
131− , _fiOCRLanguage = Nothing
132− , _fiConvert = False
133− , _fiOCR = False
134− }
135−
136−-- | Whether to pin the head revision of the uploaded file. A file can have a
137−-- maximum of 200 pinned revisions.
138−fiPinned :: Lens' FilesInsert Bool
139−fiPinned = lens _fiPinned (\ s a -> s{_fiPinned = a})
140−
141−-- | The visibility of the new file. This parameter is only relevant when
142−-- convert=false.
143−fiVisibility :: Lens' FilesInsert FilesInsertVisibility
144−fiVisibility
145− = lens _fiVisibility (\ s a -> s{_fiVisibility = a})
146−
147−-- | The language of the timed text.
148−fiTimedTextLanguage :: Lens' FilesInsert (Maybe Text)
149−fiTimedTextLanguage
150− = lens _fiTimedTextLanguage
151− (\ s a -> s{_fiTimedTextLanguage = a})
152−
153−-- | Multipart request metadata.
154−fiPayload :: Lens' FilesInsert File
155−fiPayload
156− = lens _fiPayload (\ s a -> s{_fiPayload = a})
157−
158−-- | Whether to use the content as indexable text.
159−fiUseContentAsIndexableText :: Lens' FilesInsert Bool
160−fiUseContentAsIndexableText
161− = lens _fiUseContentAsIndexableText
162− (\ s a -> s{_fiUseContentAsIndexableText = a})
163−
164−-- | The timed text track name.
165−fiTimedTextTrackName :: Lens' FilesInsert (Maybe Text)
166−fiTimedTextTrackName
167− = lens _fiTimedTextTrackName
168− (\ s a -> s{_fiTimedTextTrackName = a})
169−
170−-- | If ocr is true, hints at the language to use. Valid values are BCP 47
171−-- codes.
172−fiOCRLanguage :: Lens' FilesInsert (Maybe Text)
173−fiOCRLanguage
174− = lens _fiOCRLanguage
175− (\ s a -> s{_fiOCRLanguage = a})
176−
177−-- | Whether to convert this file to the corresponding Google Docs format.
178−fiConvert :: Lens' FilesInsert Bool
179−fiConvert
180− = lens _fiConvert (\ s a -> s{_fiConvert = a})
181−
182−-- | Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
183−fiOCR :: Lens' FilesInsert Bool
184−fiOCR = lens _fiOCR (\ s a -> s{_fiOCR = a})
185−
186−instance GoogleRequest FilesInsert where
187− type Rs FilesInsert = File
188− type Scopes FilesInsert =
189− '["https://www.googleapis.com/auth/drive",
190− "https://www.googleapis.com/auth/drive.appdata",
191− "https://www.googleapis.com/auth/drive.apps.readonly",
192− "https://www.googleapis.com/auth/drive.file"]
193− requestClient FilesInsert{..}
194− = go (Just _fiPinned) (Just _fiVisibility)
195− _fiTimedTextLanguage
196− (Just _fiUseContentAsIndexableText)
197− _fiTimedTextTrackName
198− _fiOCRLanguage
199− (Just _fiConvert)
200− (Just _fiOCR)
201− (Just AltJSON)
202− _fiPayload
203− driveService
204− where go :<|> _
205− = buildClient (Proxy :: Proxy FilesInsertResource)
206− mempty
207−
208−instance GoogleRequest (MediaUpload FilesInsert)
209− where
210− type Rs (MediaUpload FilesInsert) = File
211− type Scopes (MediaUpload FilesInsert) =
212− Scopes FilesInsert
213− requestClient (MediaUpload FilesInsert{..} body)
214− = go (Just _fiPinned) (Just _fiVisibility)
215− _fiTimedTextLanguage
216− (Just _fiUseContentAsIndexableText)
217− _fiTimedTextTrackName
218− _fiOCRLanguage
219− (Just _fiConvert)
220− (Just _fiOCR)
221− (Just AltJSON)
222− (Just AltMedia)
223− _fiPayload
224− body
225− driveService
226− where _ :<|> go
227− = buildClient (Proxy :: Proxy FilesInsertResource)
228− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Files/Patch.hsdeleted−278
@@ -1,278 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Files.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates file metadata and\/or content. This method supports patch
24−-- semantics.
25−--
26−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.files.patch@.
27−module Network.Google.Resource.Drive.Files.Patch
28− (
29− -- * REST Resource
30− FilesPatchResource
31−
32− -- * Creating a Request
33− , filesPatch
34− , FilesPatch
35−
36− -- * Request Lenses
37− , fpNewRevision
38− , fpPinned
39− , fpTimedTextLanguage
40− , fpPayload
41− , fpUpdateViewedDate
42− , fpRemoveParents
43− , fpModifiedDateBehavior
44− , fpUseContentAsIndexableText
45− , fpTimedTextTrackName
46− , fpOCRLanguage
47− , fpConvert
48− , fpSetModifiedDate
49− , fpFileId
50− , fpAddParents
51− , fpOCR
52− ) where
53−
54−import Network.Google.Drive.Types
55−import Network.Google.Prelude
56−
57−-- | A resource alias for @drive.files.patch@ method which the
58−-- 'FilesPatch' request conforms to.
59−type FilesPatchResource =
60− "drive" :>
61− "v2" :>
62− "files" :>
63− Capture "fileId" Text :>
64− QueryParam "newRevision" Bool :>
65− QueryParam "pinned" Bool :>
66− QueryParam "timedTextLanguage" Text :>
67− QueryParam "updateViewedDate" Bool :>
68− QueryParam "removeParents" Text :>
69− QueryParam "modifiedDateBehavior"
70− FilesPatchModifiedDateBehavior
71− :>
72− QueryParam "useContentAsIndexableText" Bool :>
73− QueryParam "timedTextTrackName" Text :>
74− QueryParam "ocrLanguage" Text :>
75− QueryParam "convert" Bool :>
76− QueryParam "setModifiedDate" Bool :>
77− QueryParam "addParents" Text :>
78− QueryParam "ocr" Bool :>
79− QueryParam "alt" AltJSON :>
80− ReqBody '[JSON] File :>
81− Patch '[JSON] File
82−
83−-- | Updates file metadata and\/or content. This method supports patch
84−-- semantics.
85−--
86−-- /See:/ 'filesPatch' smart constructor.
87−data FilesPatch = FilesPatch
88− { _fpNewRevision :: !Bool
89− , _fpPinned :: !Bool
90− , _fpTimedTextLanguage :: !(Maybe Text)
91− , _fpPayload :: !File
92− , _fpUpdateViewedDate :: !Bool
93− , _fpRemoveParents :: !(Maybe Text)
94− , _fpModifiedDateBehavior :: !(Maybe FilesPatchModifiedDateBehavior)
95− , _fpUseContentAsIndexableText :: !Bool
96− , _fpTimedTextTrackName :: !(Maybe Text)
97− , _fpOCRLanguage :: !(Maybe Text)
98− , _fpConvert :: !Bool
99− , _fpSetModifiedDate :: !Bool
100− , _fpFileId :: !Text
101− , _fpAddParents :: !(Maybe Text)
102− , _fpOCR :: !Bool
103− } deriving (Eq,Show,Data,Typeable,Generic)
104−
105−-- | Creates a value of 'FilesPatch' with the minimum fields required to make a request.
106−--
107−-- Use one of the following lenses to modify other fields as desired:
108−--
109−-- * 'fpNewRevision'
110−--
111−-- * 'fpPinned'
112−--
113−-- * 'fpTimedTextLanguage'
114−--
115−-- * 'fpPayload'
116−--
117−-- * 'fpUpdateViewedDate'
118−--
119−-- * 'fpRemoveParents'
120−--
121−-- * 'fpModifiedDateBehavior'
122−--
123−-- * 'fpUseContentAsIndexableText'
124−--
125−-- * 'fpTimedTextTrackName'
126−--
127−-- * 'fpOCRLanguage'
128−--
129−-- * 'fpConvert'
130−--
131−-- * 'fpSetModifiedDate'
132−--
133−-- * 'fpFileId'
134−--
135−-- * 'fpAddParents'
136−--
137−-- * 'fpOCR'
138−filesPatch
139− :: File -- ^ 'fpPayload'
140− -> Text -- ^ 'fpFileId'
141− -> FilesPatch
142−filesPatch pFpPayload_ pFpFileId_ =
143− FilesPatch
144− { _fpNewRevision = True
145− , _fpPinned = False
146− , _fpTimedTextLanguage = Nothing
147− , _fpPayload = pFpPayload_
148− , _fpUpdateViewedDate = True
149− , _fpRemoveParents = Nothing
150− , _fpModifiedDateBehavior = Nothing
151− , _fpUseContentAsIndexableText = False
152− , _fpTimedTextTrackName = Nothing
153− , _fpOCRLanguage = Nothing
154− , _fpConvert = False
155− , _fpSetModifiedDate = False
156− , _fpFileId = pFpFileId_
157− , _fpAddParents = Nothing
158− , _fpOCR = False
159− }
160−
161−-- | Whether a blob upload should create a new revision. If false, the blob
162−-- data in the current head revision is replaced. If true or not set, a new
163−-- blob is created as head revision, and previous unpinned revisions are
164−-- preserved for a short period of time. Pinned revisions are stored
165−-- indefinitely, using additional storage quota, up to a maximum of 200
166−-- revisions. For details on how revisions are retained, see the Drive Help
167−-- Center.
168−fpNewRevision :: Lens' FilesPatch Bool
169−fpNewRevision
170− = lens _fpNewRevision
171− (\ s a -> s{_fpNewRevision = a})
172−
173−-- | Whether to pin the new revision. A file can have a maximum of 200 pinned
174−-- revisions.
175−fpPinned :: Lens' FilesPatch Bool
176−fpPinned = lens _fpPinned (\ s a -> s{_fpPinned = a})
177−
178−-- | The language of the timed text.
179−fpTimedTextLanguage :: Lens' FilesPatch (Maybe Text)
180−fpTimedTextLanguage
181− = lens _fpTimedTextLanguage
182− (\ s a -> s{_fpTimedTextLanguage = a})
183−
184−-- | Multipart request metadata.
185−fpPayload :: Lens' FilesPatch File
186−fpPayload
187− = lens _fpPayload (\ s a -> s{_fpPayload = a})
188−
189−-- | Whether to update the view date after successfully updating the file.
190−fpUpdateViewedDate :: Lens' FilesPatch Bool
191−fpUpdateViewedDate
192− = lens _fpUpdateViewedDate
193− (\ s a -> s{_fpUpdateViewedDate = a})
194−
195−-- | Comma-separated list of parent IDs to remove.
196−fpRemoveParents :: Lens' FilesPatch (Maybe Text)
197−fpRemoveParents
198− = lens _fpRemoveParents
199− (\ s a -> s{_fpRemoveParents = a})
200−
201−-- | Determines the behavior in which modifiedDate is updated. This overrides
202−-- setModifiedDate.
203−fpModifiedDateBehavior :: Lens' FilesPatch (Maybe FilesPatchModifiedDateBehavior)
204−fpModifiedDateBehavior
205− = lens _fpModifiedDateBehavior
206− (\ s a -> s{_fpModifiedDateBehavior = a})
207−
208−-- | Whether to use the content as indexable text.
209−fpUseContentAsIndexableText :: Lens' FilesPatch Bool
210−fpUseContentAsIndexableText
211− = lens _fpUseContentAsIndexableText
212− (\ s a -> s{_fpUseContentAsIndexableText = a})
213−
214−-- | The timed text track name.
215−fpTimedTextTrackName :: Lens' FilesPatch (Maybe Text)
216−fpTimedTextTrackName
217− = lens _fpTimedTextTrackName
218− (\ s a -> s{_fpTimedTextTrackName = a})
219−
220−-- | If ocr is true, hints at the language to use. Valid values are BCP 47
221−-- codes.
222−fpOCRLanguage :: Lens' FilesPatch (Maybe Text)
223−fpOCRLanguage
224− = lens _fpOCRLanguage
225− (\ s a -> s{_fpOCRLanguage = a})
226−
227−-- | This parameter is deprecated and has no function.
228−fpConvert :: Lens' FilesPatch Bool
229−fpConvert
230− = lens _fpConvert (\ s a -> s{_fpConvert = a})
231−
232−-- | Whether to set the modified date with the supplied modified date.
233−fpSetModifiedDate :: Lens' FilesPatch Bool
234−fpSetModifiedDate
235− = lens _fpSetModifiedDate
236− (\ s a -> s{_fpSetModifiedDate = a})
237−
238−-- | The ID of the file to update.
239−fpFileId :: Lens' FilesPatch Text
240−fpFileId = lens _fpFileId (\ s a -> s{_fpFileId = a})
241−
242−-- | Comma-separated list of parent IDs to add.
243−fpAddParents :: Lens' FilesPatch (Maybe Text)
244−fpAddParents
245− = lens _fpAddParents (\ s a -> s{_fpAddParents = a})
246−
247−-- | Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
248−fpOCR :: Lens' FilesPatch Bool
249−fpOCR = lens _fpOCR (\ s a -> s{_fpOCR = a})
250−
251−instance GoogleRequest FilesPatch where
252− type Rs FilesPatch = File
253− type Scopes FilesPatch =
254− '["https://www.googleapis.com/auth/drive",
255− "https://www.googleapis.com/auth/drive.appdata",
256− "https://www.googleapis.com/auth/drive.apps.readonly",
257− "https://www.googleapis.com/auth/drive.file",
258− "https://www.googleapis.com/auth/drive.metadata",
259− "https://www.googleapis.com/auth/drive.scripts"]
260− requestClient FilesPatch{..}
261− = go _fpFileId (Just _fpNewRevision) (Just _fpPinned)
262− _fpTimedTextLanguage
263− (Just _fpUpdateViewedDate)
264− _fpRemoveParents
265− _fpModifiedDateBehavior
266− (Just _fpUseContentAsIndexableText)
267− _fpTimedTextTrackName
268− _fpOCRLanguage
269− (Just _fpConvert)
270− (Just _fpSetModifiedDate)
271− _fpAddParents
272− (Just _fpOCR)
273− (Just AltJSON)
274− _fpPayload
275− driveService
276− where go
277− = buildClient (Proxy :: Proxy FilesPatchResource)
278− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Files/Touch.hsdeleted−88
@@ -1,88 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Files.Touch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Set the file\'s updated time to the current server time.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.files.touch@.
26−module Network.Google.Resource.Drive.Files.Touch
27− (
28− -- * REST Resource
29− FilesTouchResource
30−
31− -- * Creating a Request
32− , filesTouch
33− , FilesTouch
34−
35− -- * Request Lenses
36− , ftFileId
37− ) where
38−
39−import Network.Google.Drive.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @drive.files.touch@ method which the
43−-- 'FilesTouch' request conforms to.
44−type FilesTouchResource =
45− "drive" :>
46− "v2" :>
47− "files" :>
48− Capture "fileId" Text :>
49− "touch" :>
50− QueryParam "alt" AltJSON :> Post '[JSON] File
51−
52−-- | Set the file\'s updated time to the current server time.
53−--
54−-- /See:/ 'filesTouch' smart constructor.
55−newtype FilesTouch = FilesTouch
56− { _ftFileId :: Text
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'FilesTouch' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'ftFileId'
64−filesTouch
65− :: Text -- ^ 'ftFileId'
66− -> FilesTouch
67−filesTouch pFtFileId_ =
68− FilesTouch
69− { _ftFileId = pFtFileId_
70− }
71−
72−-- | The ID of the file to update.
73−ftFileId :: Lens' FilesTouch Text
74−ftFileId = lens _ftFileId (\ s a -> s{_ftFileId = a})
75−
76−instance GoogleRequest FilesTouch where
77− type Rs FilesTouch = File
78− type Scopes FilesTouch =
79− '["https://www.googleapis.com/auth/drive",
80− "https://www.googleapis.com/auth/drive.appdata",
81− "https://www.googleapis.com/auth/drive.apps.readonly",
82− "https://www.googleapis.com/auth/drive.file",
83− "https://www.googleapis.com/auth/drive.metadata"]
84− requestClient FilesTouch{..}
85− = go _ftFileId (Just AltJSON) driveService
86− where go
87− = buildClient (Proxy :: Proxy FilesTouchResource)
88− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Files/Trash.hsdeleted−90
@@ -1,90 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Files.Trash
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Moves a file to the trash. The currently authenticated user must own the
24−-- file.
25−--
26−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.files.trash@.
27−module Network.Google.Resource.Drive.Files.Trash
28− (
29− -- * REST Resource
30− FilesTrashResource
31−
32− -- * Creating a Request
33− , filesTrash
34− , FilesTrash
35−
36− -- * Request Lenses
37− , filFileId
38− ) where
39−
40−import Network.Google.Drive.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @drive.files.trash@ method which the
44−-- 'FilesTrash' request conforms to.
45−type FilesTrashResource =
46− "drive" :>
47− "v2" :>
48− "files" :>
49− Capture "fileId" Text :>
50− "trash" :>
51− QueryParam "alt" AltJSON :> Post '[JSON] File
52−
53−-- | Moves a file to the trash. The currently authenticated user must own the
54−-- file.
55−--
56−-- /See:/ 'filesTrash' smart constructor.
57−newtype FilesTrash = FilesTrash
58− { _filFileId :: Text
59− } deriving (Eq,Show,Data,Typeable,Generic)
60−
61−-- | Creates a value of 'FilesTrash' with the minimum fields required to make a request.
62−--
63−-- Use one of the following lenses to modify other fields as desired:
64−--
65−-- * 'filFileId'
66−filesTrash
67− :: Text -- ^ 'filFileId'
68− -> FilesTrash
69−filesTrash pFilFileId_ =
70− FilesTrash
71− { _filFileId = pFilFileId_
72− }
73−
74−-- | The ID of the file to trash.
75−filFileId :: Lens' FilesTrash Text
76−filFileId
77− = lens _filFileId (\ s a -> s{_filFileId = a})
78−
79−instance GoogleRequest FilesTrash where
80− type Rs FilesTrash = File
81− type Scopes FilesTrash =
82− '["https://www.googleapis.com/auth/drive",
83− "https://www.googleapis.com/auth/drive.appdata",
84− "https://www.googleapis.com/auth/drive.apps.readonly",
85− "https://www.googleapis.com/auth/drive.file"]
86− requestClient FilesTrash{..}
87− = go _filFileId (Just AltJSON) driveService
88− where go
89− = buildClient (Proxy :: Proxy FilesTrashResource)
90− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Files/Untrash.hsdeleted−87
@@ -1,87 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Files.Untrash
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Restores a file from the trash.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.files.untrash@.
26−module Network.Google.Resource.Drive.Files.Untrash
27− (
28− -- * REST Resource
29− FilesUntrashResource
30−
31− -- * Creating a Request
32− , filesUntrash
33− , FilesUntrash
34−
35− -- * Request Lenses
36− , fFileId
37− ) where
38−
39−import Network.Google.Drive.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @drive.files.untrash@ method which the
43−-- 'FilesUntrash' request conforms to.
44−type FilesUntrashResource =
45− "drive" :>
46− "v2" :>
47− "files" :>
48− Capture "fileId" Text :>
49− "untrash" :>
50− QueryParam "alt" AltJSON :> Post '[JSON] File
51−
52−-- | Restores a file from the trash.
53−--
54−-- /See:/ 'filesUntrash' smart constructor.
55−newtype FilesUntrash = FilesUntrash
56− { _fFileId :: Text
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'FilesUntrash' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'fFileId'
64−filesUntrash
65− :: Text -- ^ 'fFileId'
66− -> FilesUntrash
67−filesUntrash pFFileId_ =
68− FilesUntrash
69− { _fFileId = pFFileId_
70− }
71−
72−-- | The ID of the file to untrash.
73−fFileId :: Lens' FilesUntrash Text
74−fFileId = lens _fFileId (\ s a -> s{_fFileId = a})
75−
76−instance GoogleRequest FilesUntrash where
77− type Rs FilesUntrash = File
78− type Scopes FilesUntrash =
79− '["https://www.googleapis.com/auth/drive",
80− "https://www.googleapis.com/auth/drive.appdata",
81− "https://www.googleapis.com/auth/drive.apps.readonly",
82− "https://www.googleapis.com/auth/drive.file"]
83− requestClient FilesUntrash{..}
84− = go _fFileId (Just AltJSON) driveService
85− where go
86− = buildClient (Proxy :: Proxy FilesUntrashResource)
87− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Files/Update.hs+3−3
@@ -71,8 +71,8 @@ type FilesUpdateResource =
71 QueryParam "keepRevisionForever" Bool :>
71 QueryParam "keepRevisionForever" Bool :>
72 QueryParam "addParents" Text :>
72 QueryParam "addParents" Text :>
73 QueryParam "alt" AltJSON :>
73 QueryParam "alt" AltJSON :>
74− QueryParam "uploadType" AltMedia :>
74+ QueryParam "uploadType" Multipart :>
75− MultipartRelated '[JSON] File RequestBody :>
75+ MultipartRelated '[JSON] File :>
76 Patch '[JSON] File
76 Patch '[JSON] File
77
77
78-- | Updates a file\'s metadata and\/or content with patch semantics.
78-- | Updates a file\'s metadata and\/or content with patch semantics.
@@ -192,7 +192,7 @@ instance GoogleRequest (MediaUpload FilesUpdate)
192 (Just _fuKeepRevisionForever)
192 (Just _fuKeepRevisionForever)
193 _fuAddParents
193 _fuAddParents
194 (Just AltJSON)
194 (Just AltJSON)
195− (Just AltMedia)
195+ (Just Multipart)
196 _fuPayload
196 _fuPayload
197 body
197 body
198 driveService
198 driveService
gogol-drive/gen/Network/Google/Resource/Drive/Parents/Delete.hsdeleted−99
@@ -1,99 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Parents.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Removes a parent from a file.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.parents.delete@.
26−module Network.Google.Resource.Drive.Parents.Delete
27− (
28− -- * REST Resource
29− ParentsDeleteResource
30−
31− -- * Creating a Request
32− , parentsDelete
33− , ParentsDelete
34−
35− -- * Request Lenses
36− , pddFileId
37− , pddParentId
38− ) where
39−
40−import Network.Google.Drive.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @drive.parents.delete@ method which the
44−-- 'ParentsDelete' request conforms to.
45−type ParentsDeleteResource =
46− "drive" :>
47− "v2" :>
48− "files" :>
49− Capture "fileId" Text :>
50− "parents" :>
51− Capture "parentId" Text :>
52− QueryParam "alt" AltJSON :> Delete '[JSON] ()
53−
54−-- | Removes a parent from a file.
55−--
56−-- /See:/ 'parentsDelete' smart constructor.
57−data ParentsDelete = ParentsDelete
58− { _pddFileId :: !Text
59− , _pddParentId :: !Text
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'ParentsDelete' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'pddFileId'
67−--
68−-- * 'pddParentId'
69−parentsDelete
70− :: Text -- ^ 'pddFileId'
71− -> Text -- ^ 'pddParentId'
72− -> ParentsDelete
73−parentsDelete pPddFileId_ pPddParentId_ =
74− ParentsDelete
75− { _pddFileId = pPddFileId_
76− , _pddParentId = pPddParentId_
77− }
78−
79−-- | The ID of the file.
80−pddFileId :: Lens' ParentsDelete Text
81−pddFileId
82− = lens _pddFileId (\ s a -> s{_pddFileId = a})
83−
84−-- | The ID of the parent.
85−pddParentId :: Lens' ParentsDelete Text
86−pddParentId
87− = lens _pddParentId (\ s a -> s{_pddParentId = a})
88−
89−instance GoogleRequest ParentsDelete where
90− type Rs ParentsDelete = ()
91− type Scopes ParentsDelete =
92− '["https://www.googleapis.com/auth/drive",
93− "https://www.googleapis.com/auth/drive.file"]
94− requestClient ParentsDelete{..}
95− = go _pddFileId _pddParentId (Just AltJSON)
96− driveService
97− where go
98− = buildClient (Proxy :: Proxy ParentsDeleteResource)
99− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Parents/Get.hsdeleted−105
@@ -1,105 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Parents.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets a specific parent reference.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.parents.get@.
26−module Network.Google.Resource.Drive.Parents.Get
27− (
28− -- * REST Resource
29− ParentsGetResource
30−
31− -- * Creating a Request
32− , parentsGet
33− , ParentsGet
34−
35− -- * Request Lenses
36− , pg1FileId
37− , pg1ParentId
38− ) where
39−
40−import Network.Google.Drive.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @drive.parents.get@ method which the
44−-- 'ParentsGet' request conforms to.
45−type ParentsGetResource =
46− "drive" :>
47− "v2" :>
48− "files" :>
49− Capture "fileId" Text :>
50− "parents" :>
51− Capture "parentId" Text :>
52− QueryParam "alt" AltJSON :>
53− Get '[JSON] ParentReference
54−
55−-- | Gets a specific parent reference.
56−--
57−-- /See:/ 'parentsGet' smart constructor.
58−data ParentsGet = ParentsGet
59− { _pg1FileId :: !Text
60− , _pg1ParentId :: !Text
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'ParentsGet' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'pg1FileId'
68−--
69−-- * 'pg1ParentId'
70−parentsGet
71− :: Text -- ^ 'pg1FileId'
72− -> Text -- ^ 'pg1ParentId'
73− -> ParentsGet
74−parentsGet pPg1FileId_ pPg1ParentId_ =
75− ParentsGet
76− { _pg1FileId = pPg1FileId_
77− , _pg1ParentId = pPg1ParentId_
78− }
79−
80−-- | The ID of the file.
81−pg1FileId :: Lens' ParentsGet Text
82−pg1FileId
83− = lens _pg1FileId (\ s a -> s{_pg1FileId = a})
84−
85−-- | The ID of the parent.
86−pg1ParentId :: Lens' ParentsGet Text
87−pg1ParentId
88− = lens _pg1ParentId (\ s a -> s{_pg1ParentId = a})
89−
90−instance GoogleRequest ParentsGet where
91− type Rs ParentsGet = ParentReference
92− type Scopes ParentsGet =
93− '["https://www.googleapis.com/auth/drive",
94− "https://www.googleapis.com/auth/drive.appdata",
95− "https://www.googleapis.com/auth/drive.file",
96− "https://www.googleapis.com/auth/drive.metadata",
97− "https://www.googleapis.com/auth/drive.metadata.readonly",
98− "https://www.googleapis.com/auth/drive.photos.readonly",
99− "https://www.googleapis.com/auth/drive.readonly"]
100− requestClient ParentsGet{..}
101− = go _pg1FileId _pg1ParentId (Just AltJSON)
102− driveService
103− where go
104− = buildClient (Proxy :: Proxy ParentsGetResource)
105− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Parents/Insert.hsdeleted−101
@@ -1,101 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Parents.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Adds a parent folder for a file.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.parents.insert@.
26−module Network.Google.Resource.Drive.Parents.Insert
27− (
28− -- * REST Resource
29− ParentsInsertResource
30−
31− -- * Creating a Request
32− , parentsInsert
33− , ParentsInsert
34−
35− -- * Request Lenses
36− , paraPayload
37− , paraFileId
38− ) where
39−
40−import Network.Google.Drive.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @drive.parents.insert@ method which the
44−-- 'ParentsInsert' request conforms to.
45−type ParentsInsertResource =
46− "drive" :>
47− "v2" :>
48− "files" :>
49− Capture "fileId" Text :>
50− "parents" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] ParentReference :>
53− Post '[JSON] ParentReference
54−
55−-- | Adds a parent folder for a file.
56−--
57−-- /See:/ 'parentsInsert' smart constructor.
58−data ParentsInsert = ParentsInsert
59− { _paraPayload :: !ParentReference
60− , _paraFileId :: !Text
61− } deriving (Eq,Show,Data,Typeable,Generic)
62−
63−-- | Creates a value of 'ParentsInsert' with the minimum fields required to make a request.
64−--
65−-- Use one of the following lenses to modify other fields as desired:
66−--
67−-- * 'paraPayload'
68−--
69−-- * 'paraFileId'
70−parentsInsert
71− :: ParentReference -- ^ 'paraPayload'
72− -> Text -- ^ 'paraFileId'
73− -> ParentsInsert
74−parentsInsert pParaPayload_ pParaFileId_ =
75− ParentsInsert
76− { _paraPayload = pParaPayload_
77− , _paraFileId = pParaFileId_
78− }
79−
80−-- | Multipart request metadata.
81−paraPayload :: Lens' ParentsInsert ParentReference
82−paraPayload
83− = lens _paraPayload (\ s a -> s{_paraPayload = a})
84−
85−-- | The ID of the file.
86−paraFileId :: Lens' ParentsInsert Text
87−paraFileId
88− = lens _paraFileId (\ s a -> s{_paraFileId = a})
89−
90−instance GoogleRequest ParentsInsert where
91− type Rs ParentsInsert = ParentReference
92− type Scopes ParentsInsert =
93− '["https://www.googleapis.com/auth/drive",
94− "https://www.googleapis.com/auth/drive.appdata",
95− "https://www.googleapis.com/auth/drive.file"]
96− requestClient ParentsInsert{..}
97− = go _paraFileId (Just AltJSON) _paraPayload
98− driveService
99− where go
100− = buildClient (Proxy :: Proxy ParentsInsertResource)
101− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Parents/List.hsdeleted−91
@@ -1,91 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Parents.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists a file\'s parents.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.parents.list@.
26−module Network.Google.Resource.Drive.Parents.List
27− (
28− -- * REST Resource
29− ParentsListResource
30−
31− -- * Creating a Request
32− , parentsList
33− , ParentsList
34−
35− -- * Request Lenses
36− , parFileId
37− ) where
38−
39−import Network.Google.Drive.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @drive.parents.list@ method which the
43−-- 'ParentsList' request conforms to.
44−type ParentsListResource =
45− "drive" :>
46− "v2" :>
47− "files" :>
48− Capture "fileId" Text :>
49− "parents" :>
50− QueryParam "alt" AltJSON :> Get '[JSON] ParentList
51−
52−-- | Lists a file\'s parents.
53−--
54−-- /See:/ 'parentsList' smart constructor.
55−newtype ParentsList = ParentsList
56− { _parFileId :: Text
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'ParentsList' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'parFileId'
64−parentsList
65− :: Text -- ^ 'parFileId'
66− -> ParentsList
67−parentsList pParFileId_ =
68− ParentsList
69− { _parFileId = pParFileId_
70− }
71−
72−-- | The ID of the file.
73−parFileId :: Lens' ParentsList Text
74−parFileId
75− = lens _parFileId (\ s a -> s{_parFileId = a})
76−
77−instance GoogleRequest ParentsList where
78− type Rs ParentsList = ParentList
79− type Scopes ParentsList =
80− '["https://www.googleapis.com/auth/drive",
81− "https://www.googleapis.com/auth/drive.appdata",
82− "https://www.googleapis.com/auth/drive.file",
83− "https://www.googleapis.com/auth/drive.metadata",
84− "https://www.googleapis.com/auth/drive.metadata.readonly",
85− "https://www.googleapis.com/auth/drive.photos.readonly",
86− "https://www.googleapis.com/auth/drive.readonly"]
87− requestClient ParentsList{..}
88− = go _parFileId (Just AltJSON) driveService
89− where go
90− = buildClient (Proxy :: Proxy ParentsListResource)
91− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Permissions/GetIdForEmail.hsdeleted−92
@@ -1,92 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Permissions.GetIdForEmail
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Returns the permission ID for an email address.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.permissions.getIdForEmail@.
26−module Network.Google.Resource.Drive.Permissions.GetIdForEmail
27− (
28− -- * REST Resource
29− PermissionsGetIdForEmailResource
30−
31− -- * Creating a Request
32− , permissionsGetIdForEmail
33− , PermissionsGetIdForEmail
34−
35− -- * Request Lenses
36− , pgifeEmail
37− ) where
38−
39−import Network.Google.Drive.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @drive.permissions.getIdForEmail@ method which the
43−-- 'PermissionsGetIdForEmail' request conforms to.
44−type PermissionsGetIdForEmailResource =
45− "drive" :>
46− "v2" :>
47− "permissionIds" :>
48− Capture "email" Text :>
49− QueryParam "alt" AltJSON :> Get '[JSON] PermissionId
50−
51−-- | Returns the permission ID for an email address.
52−--
53−-- /See:/ 'permissionsGetIdForEmail' smart constructor.
54−newtype PermissionsGetIdForEmail = PermissionsGetIdForEmail
55− { _pgifeEmail :: Text
56− } deriving (Eq,Show,Data,Typeable,Generic)
57−
58−-- | Creates a value of 'PermissionsGetIdForEmail' with the minimum fields required to make a request.
59−--
60−-- Use one of the following lenses to modify other fields as desired:
61−--
62−-- * 'pgifeEmail'
63−permissionsGetIdForEmail
64− :: Text -- ^ 'pgifeEmail'
65− -> PermissionsGetIdForEmail
66−permissionsGetIdForEmail pPgifeEmail_ =
67− PermissionsGetIdForEmail
68− { _pgifeEmail = pPgifeEmail_
69− }
70−
71−-- | The email address for which to return a permission ID
72−pgifeEmail :: Lens' PermissionsGetIdForEmail Text
73−pgifeEmail
74− = lens _pgifeEmail (\ s a -> s{_pgifeEmail = a})
75−
76−instance GoogleRequest PermissionsGetIdForEmail where
77− type Rs PermissionsGetIdForEmail = PermissionId
78− type Scopes PermissionsGetIdForEmail =
79− '["https://www.googleapis.com/auth/drive",
80− "https://www.googleapis.com/auth/drive.appdata",
81− "https://www.googleapis.com/auth/drive.apps.readonly",
82− "https://www.googleapis.com/auth/drive.file",
83− "https://www.googleapis.com/auth/drive.metadata",
84− "https://www.googleapis.com/auth/drive.metadata.readonly",
85− "https://www.googleapis.com/auth/drive.photos.readonly",
86− "https://www.googleapis.com/auth/drive.readonly"]
87− requestClient PermissionsGetIdForEmail{..}
88− = go _pgifeEmail (Just AltJSON) driveService
89− where go
90− = buildClient
91− (Proxy :: Proxy PermissionsGetIdForEmailResource)
92− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Permissions/Insert.hsdeleted−128
@@ -1,128 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Permissions.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Inserts a permission for a file.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.permissions.insert@.
26−module Network.Google.Resource.Drive.Permissions.Insert
27− (
28− -- * REST Resource
29− PermissionsInsertResource
30−
31− -- * Creating a Request
32− , permissionsInsert
33− , PermissionsInsert
34−
35− -- * Request Lenses
36− , piiPayload
37− , piiEmailMessage
38− , piiFileId
39− , piiSendNotificationEmails
40− ) where
41−
42−import Network.Google.Drive.Types
43−import Network.Google.Prelude
44−
45−-- | A resource alias for @drive.permissions.insert@ method which the
46−-- 'PermissionsInsert' request conforms to.
47−type PermissionsInsertResource =
48− "drive" :>
49− "v2" :>
50− "files" :>
51− Capture "fileId" Text :>
52− "permissions" :>
53− QueryParam "emailMessage" Text :>
54− QueryParam "sendNotificationEmails" Bool :>
55− QueryParam "alt" AltJSON :>
56− ReqBody '[JSON] Permission :> Post '[JSON] Permission
57−
58−-- | Inserts a permission for a file.
59−--
60−-- /See:/ 'permissionsInsert' smart constructor.
61−data PermissionsInsert = PermissionsInsert
62− { _piiPayload :: !Permission
63− , _piiEmailMessage :: !(Maybe Text)
64− , _piiFileId :: !Text
65− , _piiSendNotificationEmails :: !Bool
66− } deriving (Eq,Show,Data,Typeable,Generic)
67−
68−-- | Creates a value of 'PermissionsInsert' with the minimum fields required to make a request.
69−--
70−-- Use one of the following lenses to modify other fields as desired:
71−--
72−-- * 'piiPayload'
73−--
74−-- * 'piiEmailMessage'
75−--
76−-- * 'piiFileId'
77−--
78−-- * 'piiSendNotificationEmails'
79−permissionsInsert
80− :: Permission -- ^ 'piiPayload'
81− -> Text -- ^ 'piiFileId'
82− -> PermissionsInsert
83−permissionsInsert pPiiPayload_ pPiiFileId_ =
84− PermissionsInsert
85− { _piiPayload = pPiiPayload_
86− , _piiEmailMessage = Nothing
87− , _piiFileId = pPiiFileId_
88− , _piiSendNotificationEmails = True
89− }
90−
91−-- | Multipart request metadata.
92−piiPayload :: Lens' PermissionsInsert Permission
93−piiPayload
94− = lens _piiPayload (\ s a -> s{_piiPayload = a})
95−
96−-- | A custom message to include in notification emails.
97−piiEmailMessage :: Lens' PermissionsInsert (Maybe Text)
98−piiEmailMessage
99− = lens _piiEmailMessage
100− (\ s a -> s{_piiEmailMessage = a})
101−
102−-- | The ID for the file.
103−piiFileId :: Lens' PermissionsInsert Text
104−piiFileId
105− = lens _piiFileId (\ s a -> s{_piiFileId = a})
106−
107−-- | Whether to send notification emails when sharing to users or groups.
108−-- This parameter is ignored and an email is sent if the role is owner.
109−piiSendNotificationEmails :: Lens' PermissionsInsert Bool
110−piiSendNotificationEmails
111− = lens _piiSendNotificationEmails
112− (\ s a -> s{_piiSendNotificationEmails = a})
113−
114−instance GoogleRequest PermissionsInsert where
115− type Rs PermissionsInsert = Permission
116− type Scopes PermissionsInsert =
117− '["https://www.googleapis.com/auth/drive",
118− "https://www.googleapis.com/auth/drive.file"]
119− requestClient PermissionsInsert{..}
120− = go _piiFileId _piiEmailMessage
121− (Just _piiSendNotificationEmails)
122− (Just AltJSON)
123− _piiPayload
124− driveService
125− where go
126− = buildClient
127− (Proxy :: Proxy PermissionsInsertResource)
128− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Permissions/Patch.hsdeleted−130
@@ -1,130 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Permissions.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates a permission using patch semantics.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.permissions.patch@.
26−module Network.Google.Resource.Drive.Permissions.Patch
27− (
28− -- * REST Resource
29− PermissionsPatchResource
30−
31− -- * Creating a Request
32− , permissionsPatch
33− , PermissionsPatch
34−
35− -- * Request Lenses
36− , pppPayload
37− , pppTransferOwnership
38− , pppFileId
39− , pppPermissionId
40− ) where
41−
42−import Network.Google.Drive.Types
43−import Network.Google.Prelude
44−
45−-- | A resource alias for @drive.permissions.patch@ method which the
46−-- 'PermissionsPatch' request conforms to.
47−type PermissionsPatchResource =
48− "drive" :>
49− "v2" :>
50− "files" :>
51− Capture "fileId" Text :>
52− "permissions" :>
53− Capture "permissionId" Text :>
54− QueryParam "transferOwnership" Bool :>
55− QueryParam "alt" AltJSON :>
56− ReqBody '[JSON] Permission :>
57− Patch '[JSON] Permission
58−
59−-- | Updates a permission using patch semantics.
60−--
61−-- /See:/ 'permissionsPatch' smart constructor.
62−data PermissionsPatch = PermissionsPatch
63− { _pppPayload :: !Permission
64− , _pppTransferOwnership :: !Bool
65− , _pppFileId :: !Text
66− , _pppPermissionId :: !Text
67− } deriving (Eq,Show,Data,Typeable,Generic)
68−
69−-- | Creates a value of 'PermissionsPatch' with the minimum fields required to make a request.
70−--
71−-- Use one of the following lenses to modify other fields as desired:
72−--
73−-- * 'pppPayload'
74−--
75−-- * 'pppTransferOwnership'
76−--
77−-- * 'pppFileId'
78−--
79−-- * 'pppPermissionId'
80−permissionsPatch
81− :: Permission -- ^ 'pppPayload'
82− -> Text -- ^ 'pppFileId'
83− -> Text -- ^ 'pppPermissionId'
84− -> PermissionsPatch
85−permissionsPatch pPppPayload_ pPppFileId_ pPppPermissionId_ =
86− PermissionsPatch
87− { _pppPayload = pPppPayload_
88− , _pppTransferOwnership = False
89− , _pppFileId = pPppFileId_
90− , _pppPermissionId = pPppPermissionId_
91− }
92−
93−-- | Multipart request metadata.
94−pppPayload :: Lens' PermissionsPatch Permission
95−pppPayload
96− = lens _pppPayload (\ s a -> s{_pppPayload = a})
97−
98−-- | Whether changing a role to \'owner\' downgrades the current owners to
99−-- writers. Does nothing if the specified role is not \'owner\'.
100−pppTransferOwnership :: Lens' PermissionsPatch Bool
101−pppTransferOwnership
102− = lens _pppTransferOwnership
103− (\ s a -> s{_pppTransferOwnership = a})
104−
105−-- | The ID for the file.
106−pppFileId :: Lens' PermissionsPatch Text
107−pppFileId
108− = lens _pppFileId (\ s a -> s{_pppFileId = a})
109−
110−-- | The ID for the permission.
111−pppPermissionId :: Lens' PermissionsPatch Text
112−pppPermissionId
113− = lens _pppPermissionId
114− (\ s a -> s{_pppPermissionId = a})
115−
116−instance GoogleRequest PermissionsPatch where
117− type Rs PermissionsPatch = Permission
118− type Scopes PermissionsPatch =
119− '["https://www.googleapis.com/auth/drive",
120− "https://www.googleapis.com/auth/drive.file"]
121− requestClient PermissionsPatch{..}
122− = go _pppFileId _pppPermissionId
123− (Just _pppTransferOwnership)
124− (Just AltJSON)
125− _pppPayload
126− driveService
127− where go
128− = buildClient
129− (Proxy :: Proxy PermissionsPatchResource)
130− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Properties/Delete.hsdeleted−114
@@ -1,114 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Properties.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Deletes a property.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.properties.delete@.
26−module Network.Google.Resource.Drive.Properties.Delete
27− (
28− -- * REST Resource
29− PropertiesDeleteResource
30−
31− -- * Creating a Request
32− , propertiesDelete
33− , PropertiesDelete
34−
35− -- * Request Lenses
36− , pdPropertyKey
37− , pdVisibility
38− , pdFileId
39− ) where
40−
41−import Network.Google.Drive.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @drive.properties.delete@ method which the
45−-- 'PropertiesDelete' request conforms to.
46−type PropertiesDeleteResource =
47− "drive" :>
48− "v2" :>
49− "files" :>
50− Capture "fileId" Text :>
51− "properties" :>
52− Capture "propertyKey" Text :>
53− QueryParam "visibility" Text :>
54− QueryParam "alt" AltJSON :> Delete '[JSON] ()
55−
56−-- | Deletes a property.
57−--
58−-- /See:/ 'propertiesDelete' smart constructor.
59−data PropertiesDelete = PropertiesDelete
60− { _pdPropertyKey :: !Text
61− , _pdVisibility :: !Text
62− , _pdFileId :: !Text
63− } deriving (Eq,Show,Data,Typeable,Generic)
64−
65−-- | Creates a value of 'PropertiesDelete' with the minimum fields required to make a request.
66−--
67−-- Use one of the following lenses to modify other fields as desired:
68−--
69−-- * 'pdPropertyKey'
70−--
71−-- * 'pdVisibility'
72−--
73−-- * 'pdFileId'
74−propertiesDelete
75− :: Text -- ^ 'pdPropertyKey'
76− -> Text -- ^ 'pdFileId'
77− -> PropertiesDelete
78−propertiesDelete pPdPropertyKey_ pPdFileId_ =
79− PropertiesDelete
80− { _pdPropertyKey = pPdPropertyKey_
81− , _pdVisibility = "private"
82− , _pdFileId = pPdFileId_
83− }
84−
85−-- | The key of the property.
86−pdPropertyKey :: Lens' PropertiesDelete Text
87−pdPropertyKey
88− = lens _pdPropertyKey
89− (\ s a -> s{_pdPropertyKey = a})
90−
91−-- | The visibility of the property.
92−pdVisibility :: Lens' PropertiesDelete Text
93−pdVisibility
94− = lens _pdVisibility (\ s a -> s{_pdVisibility = a})
95−
96−-- | The ID of the file.
97−pdFileId :: Lens' PropertiesDelete Text
98−pdFileId = lens _pdFileId (\ s a -> s{_pdFileId = a})
99−
100−instance GoogleRequest PropertiesDelete where
101− type Rs PropertiesDelete = ()
102− type Scopes PropertiesDelete =
103− '["https://www.googleapis.com/auth/drive",
104− "https://www.googleapis.com/auth/drive.appdata",
105− "https://www.googleapis.com/auth/drive.file",
106− "https://www.googleapis.com/auth/drive.metadata"]
107− requestClient PropertiesDelete{..}
108− = go _pdFileId _pdPropertyKey (Just _pdVisibility)
109− (Just AltJSON)
110− driveService
111− where go
112− = buildClient
113− (Proxy :: Proxy PropertiesDeleteResource)
114− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Properties/Get.hsdeleted−116
@@ -1,116 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Properties.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Gets a property by its key.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.properties.get@.
26−module Network.Google.Resource.Drive.Properties.Get
27− (
28− -- * REST Resource
29− PropertiesGetResource
30−
31− -- * Creating a Request
32− , propertiesGet
33− , PropertiesGet
34−
35− -- * Request Lenses
36− , pgPropertyKey
37− , pgVisibility
38− , pgFileId
39− ) where
40−
41−import Network.Google.Drive.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @drive.properties.get@ method which the
45−-- 'PropertiesGet' request conforms to.
46−type PropertiesGetResource =
47− "drive" :>
48− "v2" :>
49− "files" :>
50− Capture "fileId" Text :>
51− "properties" :>
52− Capture "propertyKey" Text :>
53− QueryParam "visibility" Text :>
54− QueryParam "alt" AltJSON :> Get '[JSON] Property
55−
56−-- | Gets a property by its key.
57−--
58−-- /See:/ 'propertiesGet' smart constructor.
59−data PropertiesGet = PropertiesGet
60− { _pgPropertyKey :: !Text
61− , _pgVisibility :: !Text
62− , _pgFileId :: !Text
63− } deriving (Eq,Show,Data,Typeable,Generic)
64−
65−-- | Creates a value of 'PropertiesGet' with the minimum fields required to make a request.
66−--
67−-- Use one of the following lenses to modify other fields as desired:
68−--
69−-- * 'pgPropertyKey'
70−--
71−-- * 'pgVisibility'
72−--
73−-- * 'pgFileId'
74−propertiesGet
75− :: Text -- ^ 'pgPropertyKey'
76− -> Text -- ^ 'pgFileId'
77− -> PropertiesGet
78−propertiesGet pPgPropertyKey_ pPgFileId_ =
79− PropertiesGet
80− { _pgPropertyKey = pPgPropertyKey_
81− , _pgVisibility = "private"
82− , _pgFileId = pPgFileId_
83− }
84−
85−-- | The key of the property.
86−pgPropertyKey :: Lens' PropertiesGet Text
87−pgPropertyKey
88− = lens _pgPropertyKey
89− (\ s a -> s{_pgPropertyKey = a})
90−
91−-- | The visibility of the property.
92−pgVisibility :: Lens' PropertiesGet Text
93−pgVisibility
94− = lens _pgVisibility (\ s a -> s{_pgVisibility = a})
95−
96−-- | The ID of the file.
97−pgFileId :: Lens' PropertiesGet Text
98−pgFileId = lens _pgFileId (\ s a -> s{_pgFileId = a})
99−
100−instance GoogleRequest PropertiesGet where
101− type Rs PropertiesGet = Property
102− type Scopes PropertiesGet =
103− '["https://www.googleapis.com/auth/drive",
104− "https://www.googleapis.com/auth/drive.appdata",
105− "https://www.googleapis.com/auth/drive.file",
106− "https://www.googleapis.com/auth/drive.metadata",
107− "https://www.googleapis.com/auth/drive.metadata.readonly",
108− "https://www.googleapis.com/auth/drive.photos.readonly",
109− "https://www.googleapis.com/auth/drive.readonly"]
110− requestClient PropertiesGet{..}
111− = go _pgFileId _pgPropertyKey (Just _pgVisibility)
112− (Just AltJSON)
113− driveService
114− where go
115− = buildClient (Proxy :: Proxy PropertiesGetResource)
116− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Properties/Insert.hsdeleted−100
@@ -1,100 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Properties.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Adds a property to a file.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.properties.insert@.
26−module Network.Google.Resource.Drive.Properties.Insert
27− (
28− -- * REST Resource
29− PropertiesInsertResource
30−
31− -- * Creating a Request
32− , propertiesInsert
33− , PropertiesInsert
34−
35− -- * Request Lenses
36− , piPayload
37− , piFileId
38− ) where
39−
40−import Network.Google.Drive.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @drive.properties.insert@ method which the
44−-- 'PropertiesInsert' request conforms to.
45−type PropertiesInsertResource =
46− "drive" :>
47− "v2" :>
48− "files" :>
49− Capture "fileId" Text :>
50− "properties" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] Property :> Post '[JSON] Property
53−
54−-- | Adds a property to a file.
55−--
56−-- /See:/ 'propertiesInsert' smart constructor.
57−data PropertiesInsert = PropertiesInsert
58− { _piPayload :: !Property
59− , _piFileId :: !Text
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'PropertiesInsert' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'piPayload'
67−--
68−-- * 'piFileId'
69−propertiesInsert
70− :: Property -- ^ 'piPayload'
71− -> Text -- ^ 'piFileId'
72− -> PropertiesInsert
73−propertiesInsert pPiPayload_ pPiFileId_ =
74− PropertiesInsert
75− { _piPayload = pPiPayload_
76− , _piFileId = pPiFileId_
77− }
78−
79−-- | Multipart request metadata.
80−piPayload :: Lens' PropertiesInsert Property
81−piPayload
82− = lens _piPayload (\ s a -> s{_piPayload = a})
83−
84−-- | The ID of the file.
85−piFileId :: Lens' PropertiesInsert Text
86−piFileId = lens _piFileId (\ s a -> s{_piFileId = a})
87−
88−instance GoogleRequest PropertiesInsert where
89− type Rs PropertiesInsert = Property
90− type Scopes PropertiesInsert =
91− '["https://www.googleapis.com/auth/drive",
92− "https://www.googleapis.com/auth/drive.appdata",
93− "https://www.googleapis.com/auth/drive.file",
94− "https://www.googleapis.com/auth/drive.metadata"]
95− requestClient PropertiesInsert{..}
96− = go _piFileId (Just AltJSON) _piPayload driveService
97− where go
98− = buildClient
99− (Proxy :: Proxy PropertiesInsertResource)
100− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Properties/List.hsdeleted−91
@@ -1,91 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Properties.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Lists a file\'s properties.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.properties.list@.
26−module Network.Google.Resource.Drive.Properties.List
27− (
28− -- * REST Resource
29− PropertiesListResource
30−
31− -- * Creating a Request
32− , propertiesList
33− , PropertiesList
34−
35− -- * Request Lenses
36− , proFileId
37− ) where
38−
39−import Network.Google.Drive.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @drive.properties.list@ method which the
43−-- 'PropertiesList' request conforms to.
44−type PropertiesListResource =
45− "drive" :>
46− "v2" :>
47− "files" :>
48− Capture "fileId" Text :>
49− "properties" :>
50− QueryParam "alt" AltJSON :> Get '[JSON] PropertyList
51−
52−-- | Lists a file\'s properties.
53−--
54−-- /See:/ 'propertiesList' smart constructor.
55−newtype PropertiesList = PropertiesList
56− { _proFileId :: Text
57− } deriving (Eq,Show,Data,Typeable,Generic)
58−
59−-- | Creates a value of 'PropertiesList' with the minimum fields required to make a request.
60−--
61−-- Use one of the following lenses to modify other fields as desired:
62−--
63−-- * 'proFileId'
64−propertiesList
65− :: Text -- ^ 'proFileId'
66− -> PropertiesList
67−propertiesList pProFileId_ =
68− PropertiesList
69− { _proFileId = pProFileId_
70− }
71−
72−-- | The ID of the file.
73−proFileId :: Lens' PropertiesList Text
74−proFileId
75− = lens _proFileId (\ s a -> s{_proFileId = a})
76−
77−instance GoogleRequest PropertiesList where
78− type Rs PropertiesList = PropertyList
79− type Scopes PropertiesList =
80− '["https://www.googleapis.com/auth/drive",
81− "https://www.googleapis.com/auth/drive.appdata",
82− "https://www.googleapis.com/auth/drive.file",
83− "https://www.googleapis.com/auth/drive.metadata",
84− "https://www.googleapis.com/auth/drive.metadata.readonly",
85− "https://www.googleapis.com/auth/drive.photos.readonly",
86− "https://www.googleapis.com/auth/drive.readonly"]
87− requestClient PropertiesList{..}
88− = go _proFileId (Just AltJSON) driveService
89− where go
90− = buildClient (Proxy :: Proxy PropertiesListResource)
91− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Properties/Patch.hsdeleted−127
@@ -1,127 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Properties.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates a property. This method supports patch semantics.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.properties.patch@.
26−module Network.Google.Resource.Drive.Properties.Patch
27− (
28− -- * REST Resource
29− PropertiesPatchResource
30−
31− -- * Creating a Request
32− , propertiesPatch
33− , PropertiesPatch
34−
35− -- * Request Lenses
36− , ppPropertyKey
37− , ppVisibility
38− , ppPayload
39− , ppFileId
40− ) where
41−
42−import Network.Google.Drive.Types
43−import Network.Google.Prelude
44−
45−-- | A resource alias for @drive.properties.patch@ method which the
46−-- 'PropertiesPatch' request conforms to.
47−type PropertiesPatchResource =
48− "drive" :>
49− "v2" :>
50− "files" :>
51− Capture "fileId" Text :>
52− "properties" :>
53− Capture "propertyKey" Text :>
54− QueryParam "visibility" Text :>
55− QueryParam "alt" AltJSON :>
56− ReqBody '[JSON] Property :> Patch '[JSON] Property
57−
58−-- | Updates a property. This method supports patch semantics.
59−--
60−-- /See:/ 'propertiesPatch' smart constructor.
61−data PropertiesPatch = PropertiesPatch
62− { _ppPropertyKey :: !Text
63− , _ppVisibility :: !Text
64− , _ppPayload :: !Property
65− , _ppFileId :: !Text
66− } deriving (Eq,Show,Data,Typeable,Generic)
67−
68−-- | Creates a value of 'PropertiesPatch' with the minimum fields required to make a request.
69−--
70−-- Use one of the following lenses to modify other fields as desired:
71−--
72−-- * 'ppPropertyKey'
73−--
74−-- * 'ppVisibility'
75−--
76−-- * 'ppPayload'
77−--
78−-- * 'ppFileId'
79−propertiesPatch
80− :: Text -- ^ 'ppPropertyKey'
81− -> Property -- ^ 'ppPayload'
82− -> Text -- ^ 'ppFileId'
83− -> PropertiesPatch
84−propertiesPatch pPpPropertyKey_ pPpPayload_ pPpFileId_ =
85− PropertiesPatch
86− { _ppPropertyKey = pPpPropertyKey_
87− , _ppVisibility = "private"
88− , _ppPayload = pPpPayload_
89− , _ppFileId = pPpFileId_
90− }
91−
92−-- | The key of the property.
93−ppPropertyKey :: Lens' PropertiesPatch Text
94−ppPropertyKey
95− = lens _ppPropertyKey
96− (\ s a -> s{_ppPropertyKey = a})
97−
98−-- | The visibility of the property.
99−ppVisibility :: Lens' PropertiesPatch Text
100−ppVisibility
101− = lens _ppVisibility (\ s a -> s{_ppVisibility = a})
102−
103−-- | Multipart request metadata.
104−ppPayload :: Lens' PropertiesPatch Property
105−ppPayload
106− = lens _ppPayload (\ s a -> s{_ppPayload = a})
107−
108−-- | The ID of the file.
109−ppFileId :: Lens' PropertiesPatch Text
110−ppFileId = lens _ppFileId (\ s a -> s{_ppFileId = a})
111−
112−instance GoogleRequest PropertiesPatch where
113− type Rs PropertiesPatch = Property
114− type Scopes PropertiesPatch =
115− '["https://www.googleapis.com/auth/drive",
116− "https://www.googleapis.com/auth/drive.appdata",
117− "https://www.googleapis.com/auth/drive.file",
118− "https://www.googleapis.com/auth/drive.metadata"]
119− requestClient PropertiesPatch{..}
120− = go _ppFileId _ppPropertyKey (Just _ppVisibility)
121− (Just AltJSON)
122− _ppPayload
123− driveService
124− where go
125− = buildClient
126− (Proxy :: Proxy PropertiesPatchResource)
127− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Properties/Update.hsdeleted−127
@@ -1,127 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Properties.Update
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates a property.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.properties.update@.
26−module Network.Google.Resource.Drive.Properties.Update
27− (
28− -- * REST Resource
29− PropertiesUpdateResource
30−
31− -- * Creating a Request
32− , propertiesUpdate
33− , PropertiesUpdate
34−
35− -- * Request Lenses
36− , puPropertyKey
37− , puVisibility
38− , puPayload
39− , puFileId
40− ) where
41−
42−import Network.Google.Drive.Types
43−import Network.Google.Prelude
44−
45−-- | A resource alias for @drive.properties.update@ method which the
46−-- 'PropertiesUpdate' request conforms to.
47−type PropertiesUpdateResource =
48− "drive" :>
49− "v2" :>
50− "files" :>
51− Capture "fileId" Text :>
52− "properties" :>
53− Capture "propertyKey" Text :>
54− QueryParam "visibility" Text :>
55− QueryParam "alt" AltJSON :>
56− ReqBody '[JSON] Property :> Put '[JSON] Property
57−
58−-- | Updates a property.
59−--
60−-- /See:/ 'propertiesUpdate' smart constructor.
61−data PropertiesUpdate = PropertiesUpdate
62− { _puPropertyKey :: !Text
63− , _puVisibility :: !Text
64− , _puPayload :: !Property
65− , _puFileId :: !Text
66− } deriving (Eq,Show,Data,Typeable,Generic)
67−
68−-- | Creates a value of 'PropertiesUpdate' with the minimum fields required to make a request.
69−--
70−-- Use one of the following lenses to modify other fields as desired:
71−--
72−-- * 'puPropertyKey'
73−--
74−-- * 'puVisibility'
75−--
76−-- * 'puPayload'
77−--
78−-- * 'puFileId'
79−propertiesUpdate
80− :: Text -- ^ 'puPropertyKey'
81− -> Property -- ^ 'puPayload'
82− -> Text -- ^ 'puFileId'
83− -> PropertiesUpdate
84−propertiesUpdate pPuPropertyKey_ pPuPayload_ pPuFileId_ =
85− PropertiesUpdate
86− { _puPropertyKey = pPuPropertyKey_
87− , _puVisibility = "private"
88− , _puPayload = pPuPayload_
89− , _puFileId = pPuFileId_
90− }
91−
92−-- | The key of the property.
93−puPropertyKey :: Lens' PropertiesUpdate Text
94−puPropertyKey
95− = lens _puPropertyKey
96− (\ s a -> s{_puPropertyKey = a})
97−
98−-- | The visibility of the property.
99−puVisibility :: Lens' PropertiesUpdate Text
100−puVisibility
101− = lens _puVisibility (\ s a -> s{_puVisibility = a})
102−
103−-- | Multipart request metadata.
104−puPayload :: Lens' PropertiesUpdate Property
105−puPayload
106− = lens _puPayload (\ s a -> s{_puPayload = a})
107−
108−-- | The ID of the file.
109−puFileId :: Lens' PropertiesUpdate Text
110−puFileId = lens _puFileId (\ s a -> s{_puFileId = a})
111−
112−instance GoogleRequest PropertiesUpdate where
113− type Rs PropertiesUpdate = Property
114− type Scopes PropertiesUpdate =
115− '["https://www.googleapis.com/auth/drive",
116− "https://www.googleapis.com/auth/drive.appdata",
117− "https://www.googleapis.com/auth/drive.file",
118− "https://www.googleapis.com/auth/drive.metadata"]
119− requestClient PropertiesUpdate{..}
120− = go _puFileId _puPropertyKey (Just _puVisibility)
121− (Just AltJSON)
122− _puPayload
123− driveService
124− where go
125− = buildClient
126− (Proxy :: Proxy PropertiesUpdateResource)
127− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Realtime/Get.hsdeleted−125
@@ -1,125 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Realtime.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Exports the contents of the Realtime API data model associated with this
24−-- file as JSON.
25−--
26−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.realtime.get@.
27−module Network.Google.Resource.Drive.Realtime.Get
28− (
29− -- * REST Resource
30− RealtimeGetResource
31−
32− -- * Creating a Request
33− , realtimeGet
34− , RealtimeGet
35−
36− -- * Request Lenses
37− , rrFileId
38− , rrRevision
39− ) where
40−
41−import Network.Google.Drive.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @drive.realtime.get@ method which the
45−-- 'RealtimeGet' request conforms to.
46−type RealtimeGetResource =
47− "drive" :>
48− "v2" :>
49− "files" :>
50− Capture "fileId" Text :>
51− "realtime" :>
52− QueryParam "revision" (Textual Int32) :>
53− QueryParam "alt" AltJSON :> Get '[JSON] ()
54− :<|>
55− "drive" :>
56− "v2" :>
57− "files" :>
58− Capture "fileId" Text :>
59− "realtime" :>
60− QueryParam "revision" (Textual Int32) :>
61− QueryParam "alt" AltMedia :>
62− Get '[OctetStream] Stream
63−
64−-- | Exports the contents of the Realtime API data model associated with this
65−-- file as JSON.
66−--
67−-- /See:/ 'realtimeGet' smart constructor.
68−data RealtimeGet = RealtimeGet
69− { _rrFileId :: !Text
70− , _rrRevision :: !(Maybe (Textual Int32))
71− } deriving (Eq,Show,Data,Typeable,Generic)
72−
73−-- | Creates a value of 'RealtimeGet' with the minimum fields required to make a request.
74−--
75−-- Use one of the following lenses to modify other fields as desired:
76−--
77−-- * 'rrFileId'
78−--
79−-- * 'rrRevision'
80−realtimeGet
81− :: Text -- ^ 'rrFileId'
82− -> RealtimeGet
83−realtimeGet pRrFileId_ =
84− RealtimeGet
85− { _rrFileId = pRrFileId_
86− , _rrRevision = Nothing
87− }
88−
89−-- | The ID of the file that the Realtime API data model is associated with.
90−rrFileId :: Lens' RealtimeGet Text
91−rrFileId = lens _rrFileId (\ s a -> s{_rrFileId = a})
92−
93−-- | The revision of the Realtime API data model to export. Revisions start
94−-- at 1 (the initial empty data model) and are incremented with each
95−-- change. If this parameter is excluded, the most recent data model will
96−-- be returned.
97−rrRevision :: Lens' RealtimeGet (Maybe Int32)
98−rrRevision
99− = lens _rrRevision (\ s a -> s{_rrRevision = a}) .
100− mapping _Coerce
101−
102−instance GoogleRequest RealtimeGet where
103− type Rs RealtimeGet = ()
104− type Scopes RealtimeGet =
105− '["https://www.googleapis.com/auth/drive",
106− "https://www.googleapis.com/auth/drive.file",
107− "https://www.googleapis.com/auth/drive.readonly"]
108− requestClient RealtimeGet{..}
109− = go _rrFileId _rrRevision (Just AltJSON)
110− driveService
111− where go :<|> _
112− = buildClient (Proxy :: Proxy RealtimeGetResource)
113− mempty
114−
115−instance GoogleRequest (MediaDownload RealtimeGet)
116− where
117− type Rs (MediaDownload RealtimeGet) = Stream
118− type Scopes (MediaDownload RealtimeGet) =
119− Scopes RealtimeGet
120− requestClient (MediaDownload RealtimeGet{..})
121− = go _rrFileId _rrRevision (Just AltMedia)
122− driveService
123− where _ :<|> go
124− = buildClient (Proxy :: Proxy RealtimeGetResource)
125− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Realtime/Update.hsdeleted−130
@@ -1,130 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Realtime.Update
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Overwrites the Realtime API data model associated with this file with
24−-- the provided JSON data model.
25−--
26−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.realtime.update@.
27−module Network.Google.Resource.Drive.Realtime.Update
28− (
29− -- * REST Resource
30− RealtimeUpdateResource
31−
32− -- * Creating a Request
33− , realtimeUpdate
34− , RealtimeUpdate
35−
36− -- * Request Lenses
37− , reaBaseRevision
38− , reaFileId
39− ) where
40−
41−import Network.Google.Drive.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @drive.realtime.update@ method which the
45−-- 'RealtimeUpdate' request conforms to.
46−type RealtimeUpdateResource =
47− "drive" :>
48− "v2" :>
49− "files" :>
50− Capture "fileId" Text :>
51− "realtime" :>
52− QueryParam "baseRevision" Text :>
53− QueryParam "alt" AltJSON :> Put '[JSON] ()
54− :<|>
55− "upload" :>
56− "drive" :>
57− "v2" :>
58− "files" :>
59− Capture "fileId" Text :>
60− "realtime" :>
61− QueryParam "baseRevision" Text :>
62− QueryParam "alt" AltJSON :>
63− QueryParam "uploadType" AltMedia :>
64− ReqBody '[OctetStream] RequestBody :> Put '[JSON] ()
65−
66−-- | Overwrites the Realtime API data model associated with this file with
67−-- the provided JSON data model.
68−--
69−-- /See:/ 'realtimeUpdate' smart constructor.
70−data RealtimeUpdate = RealtimeUpdate
71− { _reaBaseRevision :: !(Maybe Text)
72− , _reaFileId :: !Text
73− } deriving (Eq,Show,Data,Typeable,Generic)
74−
75−-- | Creates a value of 'RealtimeUpdate' with the minimum fields required to make a request.
76−--
77−-- Use one of the following lenses to modify other fields as desired:
78−--
79−-- * 'reaBaseRevision'
80−--
81−-- * 'reaFileId'
82−realtimeUpdate
83− :: Text -- ^ 'reaFileId'
84− -> RealtimeUpdate
85−realtimeUpdate pReaFileId_ =
86− RealtimeUpdate
87− { _reaBaseRevision = Nothing
88− , _reaFileId = pReaFileId_
89− }
90−
91−-- | The revision of the model to diff the uploaded model against. If set,
92−-- the uploaded model is diffed against the provided revision and those
93−-- differences are merged with any changes made to the model after the
94−-- provided revision. If not set, the uploaded model replaces the current
95−-- model on the server.
96−reaBaseRevision :: Lens' RealtimeUpdate (Maybe Text)
97−reaBaseRevision
98− = lens _reaBaseRevision
99− (\ s a -> s{_reaBaseRevision = a})
100−
101−-- | The ID of the file that the Realtime API data model is associated with.
102−reaFileId :: Lens' RealtimeUpdate Text
103−reaFileId
104− = lens _reaFileId (\ s a -> s{_reaFileId = a})
105−
106−instance GoogleRequest RealtimeUpdate where
107− type Rs RealtimeUpdate = ()
108− type Scopes RealtimeUpdate =
109− '["https://www.googleapis.com/auth/drive",
110− "https://www.googleapis.com/auth/drive.file"]
111− requestClient RealtimeUpdate{..}
112− = go _reaFileId _reaBaseRevision (Just AltJSON)
113− driveService
114− where go :<|> _
115− = buildClient (Proxy :: Proxy RealtimeUpdateResource)
116− mempty
117−
118−instance GoogleRequest (MediaUpload RealtimeUpdate)
119− where
120− type Rs (MediaUpload RealtimeUpdate) = ()
121− type Scopes (MediaUpload RealtimeUpdate) =
122− Scopes RealtimeUpdate
123− requestClient (MediaUpload RealtimeUpdate{..} body)
124− = go _reaFileId _reaBaseRevision (Just AltJSON)
125− (Just AltMedia)
126− body
127− driveService
128− where _ :<|> go
129− = buildClient (Proxy :: Proxy RealtimeUpdateResource)
130− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Replies/Insert.hsdeleted−112
@@ -1,112 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Replies.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Creates a new reply to the given comment.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.replies.insert@.
26−module Network.Google.Resource.Drive.Replies.Insert
27− (
28− -- * REST Resource
29− RepliesInsertResource
30−
31− -- * Creating a Request
32− , repliesInsert
33− , RepliesInsert
34−
35− -- * Request Lenses
36− , riPayload
37− , riFileId
38− , riCommentId
39− ) where
40−
41−import Network.Google.Drive.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @drive.replies.insert@ method which the
45−-- 'RepliesInsert' request conforms to.
46−type RepliesInsertResource =
47− "drive" :>
48− "v2" :>
49− "files" :>
50− Capture "fileId" Text :>
51− "comments" :>
52− Capture "commentId" Text :>
53− "replies" :>
54− QueryParam "alt" AltJSON :>
55− ReqBody '[JSON] CommentReply :>
56− Post '[JSON] CommentReply
57−
58−-- | Creates a new reply to the given comment.
59−--
60−-- /See:/ 'repliesInsert' smart constructor.
61−data RepliesInsert = RepliesInsert
62− { _riPayload :: !CommentReply
63− , _riFileId :: !Text
64− , _riCommentId :: !Text
65− } deriving (Eq,Show,Data,Typeable,Generic)
66−
67−-- | Creates a value of 'RepliesInsert' with the minimum fields required to make a request.
68−--
69−-- Use one of the following lenses to modify other fields as desired:
70−--
71−-- * 'riPayload'
72−--
73−-- * 'riFileId'
74−--
75−-- * 'riCommentId'
76−repliesInsert
77− :: CommentReply -- ^ 'riPayload'
78− -> Text -- ^ 'riFileId'
79− -> Text -- ^ 'riCommentId'
80− -> RepliesInsert
81−repliesInsert pRiPayload_ pRiFileId_ pRiCommentId_ =
82− RepliesInsert
83− { _riPayload = pRiPayload_
84− , _riFileId = pRiFileId_
85− , _riCommentId = pRiCommentId_
86− }
87−
88−-- | Multipart request metadata.
89−riPayload :: Lens' RepliesInsert CommentReply
90−riPayload
91− = lens _riPayload (\ s a -> s{_riPayload = a})
92−
93−-- | The ID of the file.
94−riFileId :: Lens' RepliesInsert Text
95−riFileId = lens _riFileId (\ s a -> s{_riFileId = a})
96−
97−-- | The ID of the comment.
98−riCommentId :: Lens' RepliesInsert Text
99−riCommentId
100− = lens _riCommentId (\ s a -> s{_riCommentId = a})
101−
102−instance GoogleRequest RepliesInsert where
103− type Rs RepliesInsert = CommentReply
104− type Scopes RepliesInsert =
105− '["https://www.googleapis.com/auth/drive",
106− "https://www.googleapis.com/auth/drive.file"]
107− requestClient RepliesInsert{..}
108− = go _riFileId _riCommentId (Just AltJSON) _riPayload
109− driveService
110− where go
111− = buildClient (Proxy :: Proxy RepliesInsertResource)
112− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Replies/Patch.hsdeleted−125
@@ -1,125 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Replies.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates an existing reply. This method supports patch semantics.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.replies.patch@.
26−module Network.Google.Resource.Drive.Replies.Patch
27− (
28− -- * REST Resource
29− RepliesPatchResource
30−
31− -- * Creating a Request
32− , repliesPatch
33− , RepliesPatch
34−
35− -- * Request Lenses
36− , rpPayload
37− , rpReplyId
38− , rpFileId
39− , rpCommentId
40− ) where
41−
42−import Network.Google.Drive.Types
43−import Network.Google.Prelude
44−
45−-- | A resource alias for @drive.replies.patch@ method which the
46−-- 'RepliesPatch' request conforms to.
47−type RepliesPatchResource =
48− "drive" :>
49− "v2" :>
50− "files" :>
51− Capture "fileId" Text :>
52− "comments" :>
53− Capture "commentId" Text :>
54− "replies" :>
55− Capture "replyId" Text :>
56− QueryParam "alt" AltJSON :>
57− ReqBody '[JSON] CommentReply :>
58− Patch '[JSON] CommentReply
59−
60−-- | Updates an existing reply. This method supports patch semantics.
61−--
62−-- /See:/ 'repliesPatch' smart constructor.
63−data RepliesPatch = RepliesPatch
64− { _rpPayload :: !CommentReply
65− , _rpReplyId :: !Text
66− , _rpFileId :: !Text
67− , _rpCommentId :: !Text
68− } deriving (Eq,Show,Data,Typeable,Generic)
69−
70−-- | Creates a value of 'RepliesPatch' with the minimum fields required to make a request.
71−--
72−-- Use one of the following lenses to modify other fields as desired:
73−--
74−-- * 'rpPayload'
75−--
76−-- * 'rpReplyId'
77−--
78−-- * 'rpFileId'
79−--
80−-- * 'rpCommentId'
81−repliesPatch
82− :: CommentReply -- ^ 'rpPayload'
83− -> Text -- ^ 'rpReplyId'
84− -> Text -- ^ 'rpFileId'
85− -> Text -- ^ 'rpCommentId'
86− -> RepliesPatch
87−repliesPatch pRpPayload_ pRpReplyId_ pRpFileId_ pRpCommentId_ =
88− RepliesPatch
89− { _rpPayload = pRpPayload_
90− , _rpReplyId = pRpReplyId_
91− , _rpFileId = pRpFileId_
92− , _rpCommentId = pRpCommentId_
93− }
94−
95−-- | Multipart request metadata.
96−rpPayload :: Lens' RepliesPatch CommentReply
97−rpPayload
98− = lens _rpPayload (\ s a -> s{_rpPayload = a})
99−
100−-- | The ID of the reply.
101−rpReplyId :: Lens' RepliesPatch Text
102−rpReplyId
103− = lens _rpReplyId (\ s a -> s{_rpReplyId = a})
104−
105−-- | The ID of the file.
106−rpFileId :: Lens' RepliesPatch Text
107−rpFileId = lens _rpFileId (\ s a -> s{_rpFileId = a})
108−
109−-- | The ID of the comment.
110−rpCommentId :: Lens' RepliesPatch Text
111−rpCommentId
112− = lens _rpCommentId (\ s a -> s{_rpCommentId = a})
113−
114−instance GoogleRequest RepliesPatch where
115− type Rs RepliesPatch = CommentReply
116− type Scopes RepliesPatch =
117− '["https://www.googleapis.com/auth/drive",
118− "https://www.googleapis.com/auth/drive.file"]
119− requestClient RepliesPatch{..}
120− = go _rpFileId _rpCommentId _rpReplyId (Just AltJSON)
121− _rpPayload
122− driveService
123− where go
124− = buildClient (Proxy :: Proxy RepliesPatchResource)
125− mempty
gogol-drive/gen/Network/Google/Resource/Drive/Revisions/Patch.hsdeleted−114
@@ -1,114 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.Drive.Revisions.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates a revision. This method supports patch semantics.
24−--
25−-- /See:/ <https://developers.google.com/drive/ Drive API Reference> for @drive.revisions.patch@.
26−module Network.Google.Resource.Drive.Revisions.Patch
27− (
28− -- * REST Resource
29− RevisionsPatchResource
30−
31− -- * Creating a Request
32− , revisionsPatch
33− , RevisionsPatch
34−
35− -- * Request Lenses
36− , rppPayload
37− , rppFileId
38− , rppRevisionId
39− ) where
40−
41−import Network.Google.Drive.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @drive.revisions.patch@ method which the
45−-- 'RevisionsPatch' request conforms to.
46−type RevisionsPatchResource =
47− "drive" :>
48− "v2" :>
49− "files" :>
50− Capture "fileId" Text :>
51− "revisions" :>
52− Capture "revisionId" Text :>
53− QueryParam "alt" AltJSON :>
54− ReqBody '[JSON] Revision :> Patch '[JSON] Revision
55−
56−-- | Updates a revision. This method supports patch semantics.
57−--
58−-- /See:/ 'revisionsPatch' smart constructor.
59−data RevisionsPatch = RevisionsPatch
60− { _rppPayload :: !Revision
61− , _rppFileId :: !Text
62− , _rppRevisionId :: !Text
63− } deriving (Eq,Show,Data,Typeable,Generic)
64−
65−-- | Creates a value of 'RevisionsPatch' with the minimum fields required to make a request.
66−--
67−-- Use one of the following lenses to modify other fields as desired:
68−--
69−-- * 'rppPayload'
70−--
71−-- * 'rppFileId'
72−--
73−-- * 'rppRevisionId'
74−revisionsPatch
75− :: Revision -- ^ 'rppPayload'
76− -> Text -- ^ 'rppFileId'
77− -> Text -- ^ 'rppRevisionId'
78− -> RevisionsPatch
79−revisionsPatch pRppPayload_ pRppFileId_ pRppRevisionId_ =
80− RevisionsPatch
81− { _rppPayload = pRppPayload_
82− , _rppFileId = pRppFileId_
83− , _rppRevisionId = pRppRevisionId_
84− }
85−
86−-- | Multipart request metadata.
87−rppPayload :: Lens' RevisionsPatch Revision
88−rppPayload
89− = lens _rppPayload (\ s a -> s{_rppPayload = a})
90−
91−-- | The ID for the file.
92−rppFileId :: Lens' RevisionsPatch Text
93−rppFileId
94− = lens _rppFileId (\ s a -> s{_rppFileId = a})
95−
96−-- | The ID for the revision.
97−rppRevisionId :: Lens' RevisionsPatch Text
98−rppRevisionId
99− = lens _rppRevisionId
100− (\ s a -> s{_rppRevisionId = a})
101−
102−instance GoogleRequest RevisionsPatch where
103− type Rs RevisionsPatch = Revision
104− type Scopes RevisionsPatch =
105− '["https://www.googleapis.com/auth/drive",
106− "https://www.googleapis.com/auth/drive.appdata",
107− "https://www.googleapis.com/auth/drive.file"]
108− requestClient RevisionsPatch{..}
109− = go _rppFileId _rppRevisionId (Just AltJSON)
110− _rppPayload
111− driveService
112− where go
113− = buildClient (Proxy :: Proxy RevisionsPatchResource)
114− mempty
gogol-fitness/gen/Network/Google/Fitness/Types/Sum.hs+4−4
@@ -31,7 +31,7 @@ data AggregateBucketType
31 -- ^ @time@
31 -- ^ @time@
32 | ABTUnknown
32 | ABTUnknown
33 -- ^ @unknown@
33 -- ^ @unknown@
34− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
34+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
35
35
36instance Hashable AggregateBucketType
36instance Hashable AggregateBucketType
37
37
@@ -65,7 +65,7 @@ data DataSourceType
65 -- ^ @derived@
65 -- ^ @derived@
66 | Raw
66 | Raw
67 -- ^ @raw@
67 -- ^ @raw@
68− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
68+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
69
69
70instance Hashable DataSourceType
70instance Hashable DataSourceType
71
71
@@ -100,7 +100,7 @@ data DeviceType
100 -- ^ @unknown@
100 -- ^ @unknown@
101 | Watch
101 | Watch
102 -- ^ @watch@
102 -- ^ @watch@
103− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
103+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
104
104
105instance Hashable DeviceType
105instance Hashable DeviceType
106
106
@@ -145,7 +145,7 @@ data DataTypeFieldFormat
145 -- ^ @map@
145 -- ^ @map@
146 | String
146 | String
147 -- ^ @string@
147 -- ^ @string@
148− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
148+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
149
149
150instance Hashable DataTypeFieldFormat
150instance Hashable DataTypeFieldFormat
151
151
gogol-fonts/gen/Network/Google/Fonts/Types/Sum.hs+1−1
@@ -35,7 +35,7 @@ data WebfontsListSort
35 | Trending
35 | Trending
36 -- ^ @trending@
36 -- ^ @trending@
37 -- Sort by trending
37 -- Sort by trending
38− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
38+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
39
39
40instance Hashable WebfontsListSort
40instance Hashable WebfontsListSort
41
41
gogol-freebasesearch/gen/Network/Google/FreebaseSearch/Types/Sum.hs+5−5
@@ -38,7 +38,7 @@ data FreebaseSearchFormat
38 | Mids
38 | Mids
39 -- ^ @mids@
39 -- ^ @mids@
40 -- Ordered list of freebase mids.
40 -- Ordered list of freebase mids.
41− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
41+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
42
42
43instance Hashable FreebaseSearchFormat
43instance Hashable FreebaseSearchFormat
44
44
@@ -78,7 +78,7 @@ data FreebaseSearchScoring
78 | FSSSchema
78 | FSSSchema
79 -- ^ @schema@
79 -- ^ @schema@
80 -- Use schema ranking for properties and types.
80 -- Use schema ranking for properties and types.
81− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
81+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
82
82
83instance Hashable FreebaseSearchScoring
83instance Hashable FreebaseSearchScoring
84
84
@@ -112,7 +112,7 @@ data FreebaseSearchEncode
112 -- ^ @off@
112 -- ^ @off@
113 -- No encoding of the response. You should not print the results directly
113 -- No encoding of the response. You should not print the results directly
114 -- on an web page without html-escaping the content first.
114 -- on an web page without html-escaping the content first.
115− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
115+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
116
116
117instance Hashable FreebaseSearchEncode
117instance Hashable FreebaseSearchEncode
118
118
@@ -146,7 +146,7 @@ data FreebaseSearchHelp
146 -- ^ @predicates@
146 -- ^ @predicates@
147 -- The predicates and path-terminating properties supported by the filter
147 -- The predicates and path-terminating properties supported by the filter
148 -- and output request parameters.
148 -- and output request parameters.
149− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
149+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
150
150
151instance Hashable FreebaseSearchHelp
151instance Hashable FreebaseSearchHelp
152
152
@@ -181,7 +181,7 @@ data FreebaseSearchSpell
181 | NoSpelling
181 | NoSpelling
182 -- ^ @no_spelling@
182 -- ^ @no_spelling@
183 -- Don\'t request spelling suggestions.
183 -- Don\'t request spelling suggestions.
184− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
184+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
185
185
186instance Hashable FreebaseSearchSpell
186instance Hashable FreebaseSearchSpell
187
187
gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Table/ImportRows.hs+1−2
@@ -72,8 +72,7 @@ type TableImportRowsResource =
72 QueryParam "isStrict" Bool :>
72 QueryParam "isStrict" Bool :>
73 QueryParam "alt" AltJSON :>
73 QueryParam "alt" AltJSON :>
74 QueryParam "uploadType" AltMedia :>
74 QueryParam "uploadType" AltMedia :>
75− ReqBody '[OctetStream] RequestBody :>
76− Post '[JSON] Import
75+ AltMedia :> Post '[JSON] Import
77
76
78-- | Imports more rows into a table.
77-- | Imports more rows into a table.
79--
78--
gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Table/ImportTable.hs+1−2
@@ -63,8 +63,7 @@ type TableImportTableResource =
63 QueryParam "encoding" Text :>
63 QueryParam "encoding" Text :>
64 QueryParam "alt" AltJSON :>
64 QueryParam "alt" AltJSON :>
65 QueryParam "uploadType" AltMedia :>
65 QueryParam "uploadType" AltMedia :>
66− ReqBody '[OctetStream] RequestBody :>
67− Post '[JSON] Table
66+ AltMedia :> Post '[JSON] Table
68
67
69-- | Imports a new table.
68-- | Imports a new table.
70--
69--
gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Table/ReplaceRows.hs+1−2
@@ -73,8 +73,7 @@ type TableReplaceRowsResource =
73 QueryParam "isStrict" Bool :>
73 QueryParam "isStrict" Bool :>
74 QueryParam "alt" AltJSON :>
74 QueryParam "alt" AltJSON :>
75 QueryParam "uploadType" AltMedia :>
75 QueryParam "uploadType" AltMedia :>
76− ReqBody '[OctetStream] RequestBody :>
77− Post '[JSON] Task
76+ AltMedia :> Post '[JSON] Task
78
77
79-- | Replaces rows of an existing table. Current rows remain visible until
78-- | Replaces rows of an existing table. Current rows remain visible until
80-- all replacement rows are ready.
79-- all replacement rows are ready.
gogol-games-configuration/gen/Network/Google/GamesConfiguration/Types/Sum.hs+1−1
@@ -26,7 +26,7 @@ data ImageConfigurationsUploadImageType
26 | LeaderboardIcon
26 | LeaderboardIcon
27 -- ^ @LEADERBOARD_ICON@
27 -- ^ @LEADERBOARD_ICON@
28 -- The icon image for a leaderboard resource.
28 -- The icon image for a leaderboard resource.
29− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
29+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
30
30
31instance Hashable ImageConfigurationsUploadImageType
31instance Hashable ImageConfigurationsUploadImageType
32
32
gogol-games-configuration/gen/Network/Google/Resource/GamesConfiguration/ImageConfigurations/Upload.hs+1−2
@@ -65,8 +65,7 @@ type ImageConfigurationsUploadResource =
65 :>
65 :>
66 QueryParam "alt" AltJSON :>
66 QueryParam "alt" AltJSON :>
67 QueryParam "uploadType" AltMedia :>
67 QueryParam "uploadType" AltMedia :>
68− ReqBody '[OctetStream] RequestBody :>
69− Post '[JSON] ImageConfiguration
68+ AltMedia :> Post '[JSON] ImageConfiguration
70
69
71-- | Uploads an image for a resource with the given ID and image type.
70-- | Uploads an image for a resource with the given ID and image type.
72--
71--
gogol-games/gen/Network/Google/Games/Types/Sum.hs+10−10
@@ -24,7 +24,7 @@ data PlayersListCollection
24 -- ^ @played_with@
24 -- ^ @played_with@
25 -- Retrieve a list of players you have played a multiplayer game (realtime
25 -- Retrieve a list of players you have played a multiplayer game (realtime
26 -- or turn-based) with recently.
26 -- or turn-based) with recently.
27− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
27+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
28
28
29instance Hashable PlayersListCollection
29instance Hashable PlayersListCollection
30
30
@@ -54,7 +54,7 @@ data ScoresListCollection
54 | Social1P
54 | Social1P
55 -- ^ @SOCIAL_1P@
55 -- ^ @SOCIAL_1P@
56 -- List only social scores, not respecting the fACL.
56 -- List only social scores, not respecting the fACL.
57− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
57+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
58
58
59instance Hashable ScoresListCollection
59instance Hashable ScoresListCollection
60
60
@@ -88,7 +88,7 @@ data ApplicationsGetPlatformType
88 | WebApp
88 | WebApp
89 -- ^ @WEB_APP@
89 -- ^ @WEB_APP@
90 -- Retrieve applications that can be played on desktop web.
90 -- Retrieve applications that can be played on desktop web.
91− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
91+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
92
92
93instance Hashable ApplicationsGetPlatformType
93instance Hashable ApplicationsGetPlatformType
94
94
@@ -122,7 +122,7 @@ data ScoresListWindowCollection
122 | SLWCSocial1P
122 | SLWCSocial1P
123 -- ^ @SOCIAL_1P@
123 -- ^ @SOCIAL_1P@
124 -- List only social scores, not respecting the fACL.
124 -- List only social scores, not respecting the fACL.
125− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
125+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
126
126
127instance Hashable ScoresListWindowCollection
127instance Hashable ScoresListWindowCollection
128
128
@@ -156,7 +156,7 @@ data ScoresListWindowTimeSpan
156 | Weekly
156 | Weekly
157 -- ^ @WEEKLY@
157 -- ^ @WEEKLY@
158 -- List the top scores for the current week.
158 -- List the top scores for the current week.
159− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
159+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
160
160
161instance Hashable ScoresListWindowTimeSpan
161instance Hashable ScoresListWindowTimeSpan
162
162
@@ -194,7 +194,7 @@ data ScoresGetTimeSpan
194 | SGTSWeekly
194 | SGTSWeekly
195 -- ^ @WEEKLY@
195 -- ^ @WEEKLY@
196 -- List the top scores for the current week.
196 -- List the top scores for the current week.
197− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
197+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
198
198
199instance Hashable ScoresGetTimeSpan
199instance Hashable ScoresGetTimeSpan
200
200
@@ -232,7 +232,7 @@ data ScoresGetIncludeRankType
232 | SGIRTSocial
232 | SGIRTSocial
233 -- ^ @SOCIAL@
233 -- ^ @SOCIAL@
234 -- Retrieve the social rank.
234 -- Retrieve the social rank.
235− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
235+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
236
236
237instance Hashable ScoresGetIncludeRankType
237instance Hashable ScoresGetIncludeRankType
238
238
@@ -266,7 +266,7 @@ data ScoresListTimeSpan
266 | SLTSWeekly
266 | SLTSWeekly
267 -- ^ @WEEKLY@
267 -- ^ @WEEKLY@
268 -- List the top scores for the current week.
268 -- List the top scores for the current week.
269− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
269+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
270
270
271instance Hashable ScoresListTimeSpan
271instance Hashable ScoresListTimeSpan
272
272
@@ -294,7 +294,7 @@ data MetagameListCategoriesByPlayerCollection
294 = All
294 = All
295 -- ^ @all@
295 -- ^ @all@
296 -- Retrieve data for all categories. This is the default.
296 -- Retrieve data for all categories. This is the default.
297− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
297+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
298
298
299instance Hashable MetagameListCategoriesByPlayerCollection
299instance Hashable MetagameListCategoriesByPlayerCollection
300
300
@@ -328,7 +328,7 @@ data AchievementsListState
328 | ALSUnlocked
328 | ALSUnlocked
329 -- ^ @UNLOCKED@
329 -- ^ @UNLOCKED@
330 -- List only unlocked achievements.
330 -- List only unlocked achievements.
331− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
331+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
332
332
333instance Hashable AchievementsListState
333instance Hashable AchievementsListState
334
334
gogol-genomics/gen/Network/Google/Genomics.hs+200−1
@@ -35,6 +35,39 @@ module Network.Google.Genomics
35
35
36 -- * Resources
36 -- * Resources
37
37
38+ -- ** genomics.annotations.batchCreate
39+ , module Network.Google.Resource.Genomics.Annotations.BatchCreate
40+
41+ -- ** genomics.annotations.create
42+ , module Network.Google.Resource.Genomics.Annotations.Create
43+
44+ -- ** genomics.annotations.delete
45+ , module Network.Google.Resource.Genomics.Annotations.Delete
46+
47+ -- ** genomics.annotations.get
48+ , module Network.Google.Resource.Genomics.Annotations.Get
49+
50+ -- ** genomics.annotations.search
51+ , module Network.Google.Resource.Genomics.Annotations.Search
52+
53+ -- ** genomics.annotations.update
54+ , module Network.Google.Resource.Genomics.Annotations.Update
55+
56+ -- ** genomics.annotationsets.create
57+ , module Network.Google.Resource.Genomics.AnnotationSets.Create
58+
59+ -- ** genomics.annotationsets.delete
60+ , module Network.Google.Resource.Genomics.AnnotationSets.Delete
61+
62+ -- ** genomics.annotationsets.get
63+ , module Network.Google.Resource.Genomics.AnnotationSets.Get
64+
65+ -- ** genomics.annotationsets.search
66+ , module Network.Google.Resource.Genomics.AnnotationSets.Search
67+
68+ -- ** genomics.annotationsets.update
69+ , module Network.Google.Resource.Genomics.AnnotationSets.Update
70+
38 -- ** genomics.callsets.create
71 -- ** genomics.callsets.create
39 , module Network.Google.Resource.Genomics.CallSets.Create
72 , module Network.Google.Resource.Genomics.CallSets.Create
40
73
@@ -172,11 +205,23 @@ module Network.Google.Genomics
172
205
173 -- * Types
206 -- * Types
174
207
208+ -- ** ImportVariantsRequestInfoMergeConfig
209+ , ImportVariantsRequestInfoMergeConfig
210+ , importVariantsRequestInfoMergeConfig
211+ , ivrimcAddtional
212+
175 -- ** ReadInfo
213 -- ** ReadInfo
176 , ReadInfo
214 , ReadInfo
177 , readInfo
215 , readInfo
178 , riAddtional
216 , riAddtional
179
217
218+ -- ** Exon
219+ , Exon
220+ , exon
221+ , eStart
222+ , eEnd
223+ , eFrame
224+
180 -- ** Status
225 -- ** Status
181 , Status
226 , Status
182 , status
227 , status
@@ -206,6 +251,22 @@ module Network.Google.Genomics
206 , vInfo
251 , vInfo
207 , vCalls
252 , vCalls
208
253
254+ -- ** Annotation
255+ , Annotation
256+ , annotation
257+ , aVariant
258+ , aAnnotationSetId
259+ , aStart
260+ , aReverseStrand
261+ , aReferenceId
262+ , aReferenceName
263+ , aName
264+ , aEnd
265+ , aId
266+ , aType
267+ , aTranscript
268+ , aInfo
269+
209 -- ** ListBasesResponse
270 -- ** ListBasesResponse
210 , ListBasesResponse
271 , ListBasesResponse
211 , listBasesResponse
272 , listBasesResponse
@@ -266,11 +327,17 @@ module Network.Google.Genomics
266 , vcGenotype
327 , vcGenotype
267 , vcInfo
328 , vcInfo
268
329
330+ -- ** BatchCreateAnnotationsRequest
331+ , BatchCreateAnnotationsRequest
332+ , batchCreateAnnotationsRequest
333+ , bcarAnnotations
334+
269 -- ** MergeVariantsRequest
335 -- ** MergeVariantsRequest
270 , MergeVariantsRequest
336 , MergeVariantsRequest
271 , mergeVariantsRequest
337 , mergeVariantsRequest
272 , mvrVariants
338 , mvrVariants
273 , mvrVariantSetId
339 , mvrVariantSetId
340+ , mvrInfoMergeConfig
274
341
275 -- ** ReadGroup
342 -- ** ReadGroup
276 , ReadGroup
343 , ReadGroup
@@ -341,6 +408,17 @@ module Network.Google.Genomics
341 , cbRange
408 , cbRange
342 , cbMeanCoverage
409 , cbMeanCoverage
343
410
411+ -- ** VariantAnnotation
412+ , VariantAnnotation
413+ , variantAnnotation
414+ , vaEffect
415+ , vaClinicalSignificance
416+ , vaAlternateBases
417+ , vaGeneId
418+ , vaConditions
419+ , vaType
420+ , vaTranscriptIds
421+
344 -- ** SearchReadGroupSetsRequest
422 -- ** SearchReadGroupSetsRequest
345 , SearchReadGroupSetsRequest
423 , SearchReadGroupSetsRequest
346 , searchReadGroupSetsRequest
424 , searchReadGroupSetsRequest
@@ -412,6 +490,11 @@ module Network.Google.Genomics
412 , operationMetadataRequest
490 , operationMetadataRequest
413 , omrAddtional
491 , omrAddtional
414
492
493+ -- ** MergeVariantsRequestInfoMergeConfig
494+ , MergeVariantsRequestInfoMergeConfig
495+ , mergeVariantsRequestInfoMergeConfig
496+ , mvrimcAddtional
497+
415 -- ** VariantInfo
498 -- ** VariantInfo
416 , VariantInfo
499 , VariantInfo
417 , variantInfo
500 , variantInfo
@@ -432,12 +515,41 @@ module Network.Google.Genomics
432 , svsrPageToken
515 , svsrPageToken
433 , svsrPageSize
516 , svsrPageSize
434
517
518+ -- ** AnnotationInfo
519+ , AnnotationInfo
520+ , annotationInfo
521+ , aiAddtional
522+
523+ -- ** SearchAnnotationsResponse
524+ , SearchAnnotationsResponse
525+ , searchAnnotationsResponse
526+ , sarAnnotations
527+ , sarNextPageToken
528+
529+ -- ** SearchAnnotationSetsRequest
530+ , SearchAnnotationSetsRequest
531+ , searchAnnotationSetsRequest
532+ , sasrReferenceSetId
533+ , sasrTypes
534+ , sasrDataSetIds
535+ , sasrName
536+ , sasrPageToken
537+ , sasrPageSize
538+
435 -- ** SearchVariantsResponse
539 -- ** SearchVariantsResponse
436 , SearchVariantsResponse
540 , SearchVariantsResponse
437 , searchVariantsResponse
541 , searchVariantsResponse
438 , sVariants
542 , sVariants
439 , sNextPageToken
543 , sNextPageToken
440
544
545+ -- ** ClinicalCondition
546+ , ClinicalCondition
547+ , clinicalCondition
548+ , ccExternalIds
549+ , ccNames
550+ , ccConceptId
551+ , ccOmimId
552+
441 -- ** StreamReadsRequest
553 -- ** StreamReadsRequest
442 , StreamReadsRequest
554 , StreamReadsRequest
443 , streamReadsRequest
555 , streamReadsRequest
@@ -457,6 +569,12 @@ module Network.Google.Genomics
457 , scsrVariantSetIds
569 , scsrVariantSetIds
458 , scsrPageSize
570 , scsrPageSize
459
571
572+ -- ** Entry
573+ , Entry
574+ , entry
575+ , eStatus
576+ , eAnnotation
577+
460 -- ** SearchReadsResponse
578 -- ** SearchReadsResponse
461 , SearchReadsResponse
579 , SearchReadsResponse
462 , searchReadsResponse
580 , searchReadsResponse
@@ -481,6 +599,17 @@ module Network.Google.Genomics
481 , sPageToken
599 , sPageToken
482 , sPageSize
600 , sPageSize
483
601
602+ -- ** BatchCreateAnnotationsResponse
603+ , BatchCreateAnnotationsResponse
604+ , batchCreateAnnotationsResponse
605+ , bcarEntries
606+
607+ -- ** CodingSequence
608+ , CodingSequence
609+ , codingSequence
610+ , csStart
611+ , csEnd
612+
484 -- ** SearchReferenceSetsResponse
613 -- ** SearchReferenceSetsResponse
485 , SearchReferenceSetsResponse
614 , SearchReferenceSetsResponse
486 , searchReferenceSetsResponse
615 , searchReferenceSetsResponse
@@ -541,6 +670,17 @@ module Network.Google.Genomics
541 , laMAppingQuality
670 , laMAppingQuality
542 , laPosition
671 , laPosition
543
672
673+ -- ** AnnotationSet
674+ , AnnotationSet
675+ , annotationSet
676+ , asReferenceSetId
677+ , asName
678+ , asDataSetId
679+ , asId
680+ , asType
681+ , asSourceURI
682+ , asInfo
683+
544 -- ** VariantSet
684 -- ** VariantSet
545 , VariantSet
685 , VariantSet
546 , variantSet
686 , variantSet
@@ -574,9 +714,16 @@ module Network.Google.Genomics
574 , importVariantsRequest
714 , importVariantsRequest
575 , ivrVariantSetId
715 , ivrVariantSetId
576 , ivrFormat
716 , ivrFormat
717+ , ivrInfoMergeConfig
577 , ivrNormalizeReferenceNames
718 , ivrNormalizeReferenceNames
578 , ivrSourceURIs
719 , ivrSourceURIs
579
720
721+ -- ** ExternalId
722+ , ExternalId
723+ , externalId
724+ , eiSourceName
725+ , eiId
726+
580 -- ** CigarUnit
727 -- ** CigarUnit
581 , CigarUnit
728 , CigarUnit
582 , cigarUnit
729 , cigarUnit
@@ -604,10 +751,22 @@ module Network.Google.Genomics
604 , OperationMetadata
751 , OperationMetadata
605 , operationMetadata
752 , operationMetadata
606 , omEvents
753 , omEvents
754+ , omEndTime
607 , omProjectId
755 , omProjectId
608 , omCreateTime
756 , omCreateTime
609 , omRequest
757 , omRequest
610
758
759+ -- ** SearchAnnotationsRequest
760+ , SearchAnnotationsRequest
761+ , searchAnnotationsRequest
762+ , sarStart
763+ , sarReferenceId
764+ , sarReferenceName
765+ , sarEnd
766+ , sarPageToken
767+ , sarAnnotationSetIds
768+ , sarPageSize
769+
611 -- ** SearchVariantSetsResponse
770 -- ** SearchVariantSetsResponse
612 , SearchVariantSetsResponse
771 , SearchVariantSetsResponse
613 , searchVariantSetsResponse
772 , searchVariantSetsResponse
@@ -627,6 +786,17 @@ module Network.Google.Genomics
627 , svrVariantSetIds
786 , svrVariantSetIds
628 , svrPageSize
787 , svrPageSize
629
788
789+ -- ** AnnotationSetInfo
790+ , AnnotationSetInfo
791+ , annotationSetInfo
792+ , asiAddtional
793+
794+ -- ** SearchAnnotationSetsResponse
795+ , SearchAnnotationSetsResponse
796+ , searchAnnotationSetsResponse
797+ , sasrNextPageToken
798+ , sasrAnnotationSets
799+
630 -- ** CallSetInfo
800 -- ** CallSetInfo
631 , CallSetInfo
801 , CallSetInfo
632 , callSetInfo
802 , callSetInfo
@@ -642,6 +812,13 @@ module Network.Google.Genomics
642 , operationResponse
812 , operationResponse
643 , orAddtional
813 , orAddtional
644
814
815+ -- ** Transcript
816+ , Transcript
817+ , transcript
818+ , tGeneId
819+ , tCodingSequence
820+ , tExons
821+
645 -- ** OperationEvent
822 -- ** OperationEvent
646 , OperationEvent
823 , OperationEvent
647 , operationEvent
824 , operationEvent
@@ -706,6 +883,17 @@ module Network.Google.Genomics
706
883
707import Network.Google.Genomics.Types
884import Network.Google.Genomics.Types
708import Network.Google.Prelude
885import Network.Google.Prelude
886+import Network.Google.Resource.Genomics.Annotations.BatchCreate
887+import Network.Google.Resource.Genomics.Annotations.Create
888+import Network.Google.Resource.Genomics.Annotations.Delete
889+import Network.Google.Resource.Genomics.Annotations.Get
890+import Network.Google.Resource.Genomics.Annotations.Search
891+import Network.Google.Resource.Genomics.Annotations.Update
892+import Network.Google.Resource.Genomics.AnnotationSets.Create
893+import Network.Google.Resource.Genomics.AnnotationSets.Delete
894+import Network.Google.Resource.Genomics.AnnotationSets.Get
895+import Network.Google.Resource.Genomics.AnnotationSets.Search
896+import Network.Google.Resource.Genomics.AnnotationSets.Update
709import Network.Google.Resource.Genomics.CallSets.Create
897import Network.Google.Resource.Genomics.CallSets.Create
710import Network.Google.Resource.Genomics.CallSets.Delete
898import Network.Google.Resource.Genomics.CallSets.Delete
711import Network.Google.Resource.Genomics.CallSets.Get
899import Network.Google.Resource.Genomics.CallSets.Get
@@ -758,7 +946,13 @@ TODO
758
946
759-- | Represents the entirety of the methods and resources available for the Genomics API service.
947-- | Represents the entirety of the methods and resources available for the Genomics API service.
760type GenomicsAPI =
948type GenomicsAPI =
949+ AnnotationsGetResource :<|> AnnotationsCreateResource
950+ :<|> AnnotationsBatchCreateResource
951+ :<|> AnnotationsSearchResource
952+ :<|> AnnotationsDeleteResource
953+ :<|> AnnotationsUpdateResource
761− VariantsStreamResource :<|> VariantsPatchResource
954+ :<|> VariantsStreamResource
955+ :<|> VariantsPatchResource
762 :<|> VariantsGetResource
956 :<|> VariantsGetResource
763 :<|> VariantsCreateResource
957 :<|> VariantsCreateResource
764 :<|> VariantsImportResource
958 :<|> VariantsImportResource
@@ -774,6 +968,11 @@ type GenomicsAPI =
774 :<|> VariantSetsCreateResource
968 :<|> VariantSetsCreateResource
775 :<|> VariantSetsSearchResource
969 :<|> VariantSetsSearchResource
776 :<|> VariantSetsDeleteResource
970 :<|> VariantSetsDeleteResource
971+ :<|> AnnotationSetsGetResource
972+ :<|> AnnotationSetsCreateResource
973+ :<|> AnnotationSetsSearchResource
974+ :<|> AnnotationSetsDeleteResource
975+ :<|> AnnotationSetsUpdateResource
777 :<|> ReadGroupSetsCoverageBucketsListResource
976 :<|> ReadGroupSetsCoverageBucketsListResource
778 :<|> ReadGroupSetsExportResource
977 :<|> ReadGroupSetsExportResource
779 :<|> ReadGroupSetsPatchResource
978 :<|> ReadGroupSetsPatchResource
gogol-genomics/gen/Network/Google/Genomics/Types.hs+144
@@ -26,11 +26,23 @@ module Network.Google.Genomics.Types
26 , storageReadWriteScope
26 , storageReadWriteScope
27 , bigQueryScope
27 , bigQueryScope
28
28
29+ -- * ImportVariantsRequestInfoMergeConfig
30+ , ImportVariantsRequestInfoMergeConfig
31+ , importVariantsRequestInfoMergeConfig
32+ , ivrimcAddtional
33+
29 -- * ReadInfo
34 -- * ReadInfo
30 , ReadInfo
35 , ReadInfo
31 , readInfo
36 , readInfo
32 , riAddtional
37 , riAddtional
33
38
39+ -- * Exon
40+ , Exon
41+ , exon
42+ , eStart
43+ , eEnd
44+ , eFrame
45+
34 -- * Status
46 -- * Status
35 , Status
47 , Status
36 , status
48 , status
@@ -60,6 +72,22 @@ module Network.Google.Genomics.Types
60 , vInfo
72 , vInfo
61 , vCalls
73 , vCalls
62
74
75+ -- * Annotation
76+ , Annotation
77+ , annotation
78+ , aVariant
79+ , aAnnotationSetId
80+ , aStart
81+ , aReverseStrand
82+ , aReferenceId
83+ , aReferenceName
84+ , aName
85+ , aEnd
86+ , aId
87+ , aType
88+ , aTranscript
89+ , aInfo
90+
63 -- * ListBasesResponse
91 -- * ListBasesResponse
64 , ListBasesResponse
92 , ListBasesResponse
65 , listBasesResponse
93 , listBasesResponse
@@ -120,11 +148,17 @@ module Network.Google.Genomics.Types
120 , vcGenotype
148 , vcGenotype
121 , vcInfo
149 , vcInfo
122
150
151+ -- * BatchCreateAnnotationsRequest
152+ , BatchCreateAnnotationsRequest
153+ , batchCreateAnnotationsRequest
154+ , bcarAnnotations
155+
123 -- * MergeVariantsRequest
156 -- * MergeVariantsRequest
124 , MergeVariantsRequest
157 , MergeVariantsRequest
125 , mergeVariantsRequest
158 , mergeVariantsRequest
126 , mvrVariants
159 , mvrVariants
127 , mvrVariantSetId
160 , mvrVariantSetId
161+ , mvrInfoMergeConfig
128
162
129 -- * ReadGroup
163 -- * ReadGroup
130 , ReadGroup
164 , ReadGroup
@@ -195,6 +229,17 @@ module Network.Google.Genomics.Types
195 , cbRange
229 , cbRange
196 , cbMeanCoverage
230 , cbMeanCoverage
197
231
232+ -- * VariantAnnotation
233+ , VariantAnnotation
234+ , variantAnnotation
235+ , vaEffect
236+ , vaClinicalSignificance
237+ , vaAlternateBases
238+ , vaGeneId
239+ , vaConditions
240+ , vaType
241+ , vaTranscriptIds
242+
198 -- * SearchReadGroupSetsRequest
243 -- * SearchReadGroupSetsRequest
199 , SearchReadGroupSetsRequest
244 , SearchReadGroupSetsRequest
200 , searchReadGroupSetsRequest
245 , searchReadGroupSetsRequest
@@ -266,6 +311,11 @@ module Network.Google.Genomics.Types
266 , operationMetadataRequest
311 , operationMetadataRequest
267 , omrAddtional
312 , omrAddtional
268
313
314+ -- * MergeVariantsRequestInfoMergeConfig
315+ , MergeVariantsRequestInfoMergeConfig
316+ , mergeVariantsRequestInfoMergeConfig
317+ , mvrimcAddtional
318+
269 -- * VariantInfo
319 -- * VariantInfo
270 , VariantInfo
320 , VariantInfo
271 , variantInfo
321 , variantInfo
@@ -286,12 +336,41 @@ module Network.Google.Genomics.Types
286 , svsrPageToken
336 , svsrPageToken
287 , svsrPageSize
337 , svsrPageSize
288
338
339+ -- * AnnotationInfo
340+ , AnnotationInfo
341+ , annotationInfo
342+ , aiAddtional
343+
344+ -- * SearchAnnotationsResponse
345+ , SearchAnnotationsResponse
346+ , searchAnnotationsResponse
347+ , sarAnnotations
348+ , sarNextPageToken
349+
350+ -- * SearchAnnotationSetsRequest
351+ , SearchAnnotationSetsRequest
352+ , searchAnnotationSetsRequest
353+ , sasrReferenceSetId
354+ , sasrTypes
355+ , sasrDataSetIds
356+ , sasrName
357+ , sasrPageToken
358+ , sasrPageSize
359+
289 -- * SearchVariantsResponse
360 -- * SearchVariantsResponse
290 , SearchVariantsResponse
361 , SearchVariantsResponse
291 , searchVariantsResponse
362 , searchVariantsResponse
292 , sVariants
363 , sVariants
293 , sNextPageToken
364 , sNextPageToken
294
365
366+ -- * ClinicalCondition
367+ , ClinicalCondition
368+ , clinicalCondition
369+ , ccExternalIds
370+ , ccNames
371+ , ccConceptId
372+ , ccOmimId
373+
295 -- * StreamReadsRequest
374 -- * StreamReadsRequest
296 , StreamReadsRequest
375 , StreamReadsRequest
297 , streamReadsRequest
376 , streamReadsRequest
@@ -311,6 +390,12 @@ module Network.Google.Genomics.Types
311 , scsrVariantSetIds
390 , scsrVariantSetIds
312 , scsrPageSize
391 , scsrPageSize
313
392
393+ -- * Entry
394+ , Entry
395+ , entry
396+ , eStatus
397+ , eAnnotation
398+
314 -- * SearchReadsResponse
399 -- * SearchReadsResponse
315 , SearchReadsResponse
400 , SearchReadsResponse
316 , searchReadsResponse
401 , searchReadsResponse
@@ -335,6 +420,17 @@ module Network.Google.Genomics.Types
335 , sPageToken
420 , sPageToken
336 , sPageSize
421 , sPageSize
337
422
423+ -- * BatchCreateAnnotationsResponse
424+ , BatchCreateAnnotationsResponse
425+ , batchCreateAnnotationsResponse
426+ , bcarEntries
427+
428+ -- * CodingSequence
429+ , CodingSequence
430+ , codingSequence
431+ , csStart
432+ , csEnd
433+
338 -- * SearchReferenceSetsResponse
434 -- * SearchReferenceSetsResponse
339 , SearchReferenceSetsResponse
435 , SearchReferenceSetsResponse
340 , searchReferenceSetsResponse
436 , searchReferenceSetsResponse
@@ -395,6 +491,17 @@ module Network.Google.Genomics.Types
395 , laMAppingQuality
491 , laMAppingQuality
396 , laPosition
492 , laPosition
397
493
494+ -- * AnnotationSet
495+ , AnnotationSet
496+ , annotationSet
497+ , asReferenceSetId
498+ , asName
499+ , asDataSetId
500+ , asId
501+ , asType
502+ , asSourceURI
503+ , asInfo
504+
398 -- * VariantSet
505 -- * VariantSet
399 , VariantSet
506 , VariantSet
400 , variantSet
507 , variantSet
@@ -428,9 +535,16 @@ module Network.Google.Genomics.Types
428 , importVariantsRequest
535 , importVariantsRequest
429 , ivrVariantSetId
536 , ivrVariantSetId
430 , ivrFormat
537 , ivrFormat
538+ , ivrInfoMergeConfig
431 , ivrNormalizeReferenceNames
539 , ivrNormalizeReferenceNames
432 , ivrSourceURIs
540 , ivrSourceURIs
433
541
542+ -- * ExternalId
543+ , ExternalId
544+ , externalId
545+ , eiSourceName
546+ , eiId
547+
434 -- * CigarUnit
548 -- * CigarUnit
435 , CigarUnit
549 , CigarUnit
436 , cigarUnit
550 , cigarUnit
@@ -458,10 +572,22 @@ module Network.Google.Genomics.Types
458 , OperationMetadata
572 , OperationMetadata
459 , operationMetadata
573 , operationMetadata
460 , omEvents
574 , omEvents
575+ , omEndTime
461 , omProjectId
576 , omProjectId
462 , omCreateTime
577 , omCreateTime
463 , omRequest
578 , omRequest
464
579
580+ -- * SearchAnnotationsRequest
581+ , SearchAnnotationsRequest
582+ , searchAnnotationsRequest
583+ , sarStart
584+ , sarReferenceId
585+ , sarReferenceName
586+ , sarEnd
587+ , sarPageToken
588+ , sarAnnotationSetIds
589+ , sarPageSize
590+
465 -- * SearchVariantSetsResponse
591 -- * SearchVariantSetsResponse
466 , SearchVariantSetsResponse
592 , SearchVariantSetsResponse
467 , searchVariantSetsResponse
593 , searchVariantSetsResponse
@@ -481,6 +607,17 @@ module Network.Google.Genomics.Types
481 , svrVariantSetIds
607 , svrVariantSetIds
482 , svrPageSize
608 , svrPageSize
483
609
610+ -- * AnnotationSetInfo
611+ , AnnotationSetInfo
612+ , annotationSetInfo
613+ , asiAddtional
614+
615+ -- * SearchAnnotationSetsResponse
616+ , SearchAnnotationSetsResponse
617+ , searchAnnotationSetsResponse
618+ , sasrNextPageToken
619+ , sasrAnnotationSets
620+
484 -- * CallSetInfo
621 -- * CallSetInfo
485 , CallSetInfo
622 , CallSetInfo
486 , callSetInfo
623 , callSetInfo
@@ -496,6 +633,13 @@ module Network.Google.Genomics.Types
496 , operationResponse
633 , operationResponse
497 , orAddtional
634 , orAddtional
498
635
636+ -- * Transcript
637+ , Transcript
638+ , transcript
639+ , tGeneId
640+ , tCodingSequence
641+ , tExons
642+
499 -- * OperationEvent
643 -- * OperationEvent
500 , OperationEvent
644 , OperationEvent
501 , operationEvent
645 , operationEvent
gogol-genomics/gen/Network/Google/Genomics/Types/Product.hs+1351−6

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Create.hsnew file+178

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Delete.hsnew file+174

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Get.hsnew file+175

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Search.hsnew file+185

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Update.hsnew file+205

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/BatchCreate.hsnew file+191

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Create.hsnew file+186

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Delete.hsnew file+173

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Get.hsnew file+173

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Search.hsnew file+185

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Update.hsnew file+201

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/Delete.hs+10−4

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Delete.hsdeleted−169

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/VariantSets/Patch.hs+2−2

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Import.hs+10−14

This diff is too big to show here.

gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Merge.hs+46−4

This diff is too big to show here.

gogol-genomics/gogol-genomics.cabal+11

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Gmail/Types/Sum.hs+9−9

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Drafts/Create.hs+3−4

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Drafts/Send.hs+3−3

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Drafts/Update.hs+4−4

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Messages/Import.hs+3−3

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Messages/Insert.hs+3−3

This diff is too big to show here.

gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Messages/Send.hs+3−3

This diff is too big to show here.

gogol-groups-migration/gen/Network/Google/Resource/GroupsMigration/Archive/Insert.hs+1−2

This diff is too big to show here.

gogol-maps-coordinate/gen/Network/Google/MapsCoordinate/Types/Sum.hs+2−2

This diff is too big to show here.

gogol-maps-engine/gen/Network/Google/MapsEngine/Types/Sum.hs+51−51

This diff is too big to show here.

gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Projects/Icons/Create.hs+3−4

This diff is too big to show here.

gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Rasters/Files/Insert.hs+1−1

This diff is too big to show here.

gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Tables/Files/Insert.hs+1−1

This diff is too big to show here.

gogol-mirror/gen/Network/Google/Mirror/Types/Sum.hs+1−1

This diff is too big to show here.

gogol-mirror/gen/Network/Google/Resource/Mirror/Timeline/Attachments/Insert.hs+1−2

This diff is too big to show here.

gogol-mirror/gen/Network/Google/Resource/Mirror/Timeline/Insert.hs+3−3

This diff is too big to show here.

gogol-mirror/gen/Network/Google/Resource/Mirror/Timeline/Update.hs+3−3

This diff is too big to show here.

gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/MetricDescriptors/Create.hsdeleted−102

This diff is too big to show here.

gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/MetricDescriptors/Delete.hsdeleted−102

This diff is too big to show here.

gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/MetricDescriptors/List.hsdeleted−154

This diff is too big to show here.

gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/Timeseries/List.hsdeleted−243

This diff is too big to show here.

gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/Timeseries/Write.hsdeleted−114

This diff is too big to show here.

gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/TimeseriesDescriptors/List.hsdeleted−256

This diff is too big to show here.

gogol-pagespeed/gen/Network/Google/PageSpeed/Types/Sum.hs+1−1

This diff is too big to show here.

gogol-plus-domains/gen/Network/Google/PlusDomains/Types/Sum.hs+6−6

This diff is too big to show here.

gogol-plus-domains/gen/Network/Google/Resource/PlusDomains/Media/Insert.hs+3−4

This diff is too big to show here.

gogol-plus/gen/Network/Google/Plus/Types/Sum.hs+6−6

This diff is too big to show here.

gogol-plus/gen/Network/Google/Resource/Plus/Moments/Insert.hsdeleted−124

This diff is too big to show here.

gogol-plus/gen/Network/Google/Resource/Plus/Moments/List.hsdeleted−151

This diff is too big to show here.

gogol-replicapool/gen/Network/Google/ReplicaPool/Types/Sum.hs+3−3

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/Get.hsdeleted−170

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/GetIAMPolicy.hsdeleted−189

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/List.hsdeleted−203

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/SetIAMPolicy.hsdeleted−190

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/TestIAMPermissions.hsdeleted−190

This diff is too big to show here.

gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/Update.hsdeleted−186

This diff is too big to show here.

gogol-resourceviews/gen/Network/Google/ResourceViews/Types/Sum.hs+2−2

This diff is too big to show here.

gogol-shopping-content/gen/Network/Google/ShoppingContent/Types/Sum.hs+3−3

This diff is too big to show here.

gogol-storage/gen/Network/Google/Resource/Storage/Objects/Insert.hs+4−5

This diff is too big to show here.

gogol-storage/gen/Network/Google/Storage/Types/Sum.hs+25−25

This diff is too big to show here.

gogol-tagmanager/gen/Network/Google/TagManager/Types/Sum.hs+9−9

This diff is too big to show here.

gogol-translate/gen/Network/Google/Translate/Types/Sum.hs+1−1

This diff is too big to show here.

gogol-urlshortener/gen/Network/Google/URLShortener/Types/Sum.hs+2−2

This diff is too big to show here.

gogol-useraccounts/gen/Network/Google/UserAccounts/Types/Sum.hs+2−2

This diff is too big to show here.

gogol-vision/gen/Network/Google/Vision/Types/Sum.hs+14−14

This diff is too big to show here.

gogol-webmaster-tools/gen/Network/Google/WebmasterTools/Types/Sum.hs+8−8

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/Captions/Insert.hs+3−3

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/Captions/Update.hs+3−3

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/ChannelBanners/Insert.hs+4−5

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/LiveBroadcasts/BindDirect.hsdeleted−176

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/Thumbnails/Set.hs+1−2

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/Videos/Insert.hs+3−3

This diff is too big to show here.

gogol-youtube/gen/Network/Google/Resource/YouTube/Watermarks/Set.hs+4−4

This diff is too big to show here.