on develop help sign in
Regenerating all services
commitecbc6979cbb2fa482063a79079b26fdd0c42a2c9 authorBrendan Hay <brendan.g.hay@gmail.com> dateFri 10 Jun 2016, 16:16 (10 years ago) parentc954e21
195 files changed+9455−12865
gen/model/datastore/v1beta1/datastore-api.json+988 gen/model/datastore/v1beta2/datastore-api.json+1075 gen/model/datastore/v1beta3/datastore-api.json+1051 gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Sum.hs+4−4 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Delete.hs−98 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Get.hs−99 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Insert.hs−110 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/List.hs−85 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Patch.hs−112 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/ClientAccess/Update.hs−112 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Deals/Get.hs−99 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOffers/Get.hs−87 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOffers/Search.hs−86 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Get.hs−87 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Insert.hs−89 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Patch.hs−133 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Search.hs−87 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/MarketplaceOrders/Update.hs−133 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/NegotiationRounds/Insert.hs−101 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/Get.hs−100 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/Insert.hs−86 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Negotiations/List.hs−86 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/Get.hs−84 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/Insert.hs−84 gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Offers/List.hs−85 gogol-admin-directory/gen/Network/Google/Directory/Types/Sum.hs+25−25 gogol-admin-emailmigration/gen/Network/Google/Resource/EmailMigration/Mail/Insert.hs+3−4 gogol-adsense-host/gen/Network/Google/AdSenseHost/Types/Sum.hs+1−1 gogol-affiliates/gen/Network/Google/Affiliates/Types/Sum.hs+22−22 gogol-analytics/gen/Network/Google/Analytics/Types/Sum.hs+3−3 gogol-analytics/gen/Network/Google/Resource/Analytics/Management/Uploads/UploadData.hs+1−2 gogol-android-publisher/gen/Network/Google/AndroidPublisher/Types/Sum.hs+14−14 gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/APKs/Upload.hs+1−2 gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/ExpansionFiles/Upload.hs+1−1 gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/Images/Upload.hs+1−2 gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Delete.hs−186 gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Get.hs−184 gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/List.hs−198 gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Patch.hs−224 gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Versions/Create.hs−203 gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Versions/Delete.hs−204 gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Versions/Get.hs−214 gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Modules/Versions/List.hs−227 gogol-apps-activity/gen/Network/Google/AppsActivity/Types/Sum.hs+5−5 gogol-apps-calendar/gen/Network/Google/AppsCalendar/Types/Sum.hs+4−4 gogol-apps-reseller/gen/Network/Google/AppsReseller/Types/Sum.hs+1−1 gogol-bigquery/gen/Network/Google/BigQuery/Types/Sum.hs+2−2 gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/Insert.hs+3−4 gogol-blogger/gen/Network/Google/Blogger/Types/Sum.hs+22−22 gogol-books/gen/Network/Google/Books/Types/Sum.hs+22−22 gogol-civicinfo/gen/Network/Google/CivicInfo/Types/Sum.hs+4−4 gogol-cloudmonitoring/gen/Network/Google/CloudMonitoring/Types/Sum.hs+2−2 gogol-cloudtrace/gen/Network/Google/Resource/CloudTrace/GetDiscovery.hs−207 gogol-compute/gen/Network/Google/Compute/Types/Sum.hs+48−48 gogol-customsearch/gen/Network/Google/CustomSearch/Types/Sum.hs+9−9 gogol-dataproc/gen/Network/Google/Resource/Dataproc/Media/Upload.hs+3−3 gogol-datastore/gen/Network/Google/Datastore.hs+91−104 gogol-datastore/gen/Network/Google/Datastore/Types.hs+67−85 gogol-datastore/gen/Network/Google/Datastore/Types/Product.hs+720−859 gogol-datastore/gen/Network/Google/Datastore/Types/Sum.hs+203−160 gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/AllocateIds.hs−105 gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/BeginTransaction.hs−104 gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/Commit.hs−103 gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/Lookup.hs−101 gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/Rollback.hs−102 gogol-datastore/gen/Network/Google/Resource/Datastore/DataSets/RunQuery.hs−103 gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/AllocateIds.hs+187 gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/BeginTransaction.hs+186 gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/Create.hs → gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/Commit.hs+66−55 gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/Lookup.hs+183 gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/Rollback.hs+184 gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/RunQuery.hs+185 gogol-datastore/gogol-datastore.cabal+9−8 gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Sum.hs+4−4 gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeAssets/Insert.hs+4−5 gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/FloodlightActivityGroups/Delete.hs−103 gogol-dns/gen/Network/Google/DNS/Types/Sum.hs+2−2 gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Sum.hs+15−15 gogol-drive/gen/Network/Google/Drive/Types/Sum.hs+1−1 gogol-drive/gen/Network/Google/Resource/Drive/Apps/Get.hs−88 gogol-drive/gen/Network/Google/Resource/Drive/Apps/List.hs−119 gogol-drive/gen/Network/Google/Resource/Drive/Changes/Get.hs−91 gogol-drive/gen/Network/Google/Resource/Drive/Children/Delete.hs−99 gogol-drive/gen/Network/Google/Resource/Drive/Children/Get.hs−105 gogol-drive/gen/Network/Google/Resource/Drive/Children/Insert.hs−101 gogol-drive/gen/Network/Google/Resource/Drive/Children/List.hs−144 gogol-drive/gen/Network/Google/Resource/Drive/Comments/Insert.hs−99 gogol-drive/gen/Network/Google/Resource/Drive/Comments/Patch.hs−110 gogol-drive/gen/Network/Google/Resource/Drive/Files/Create.hs+3−4 gogol-drive/gen/Network/Google/Resource/Drive/Files/Insert.hs−228 gogol-drive/gen/Network/Google/Resource/Drive/Files/Patch.hs−278 gogol-drive/gen/Network/Google/Resource/Drive/Files/Touch.hs−88 gogol-drive/gen/Network/Google/Resource/Drive/Files/Trash.hs−90 gogol-drive/gen/Network/Google/Resource/Drive/Files/Untrash.hs−87 gogol-drive/gen/Network/Google/Resource/Drive/Files/Update.hs+3−3 gogol-drive/gen/Network/Google/Resource/Drive/Parents/Delete.hs−99 gogol-drive/gen/Network/Google/Resource/Drive/Parents/Get.hs−105 gogol-drive/gen/Network/Google/Resource/Drive/Parents/Insert.hs−101 gogol-drive/gen/Network/Google/Resource/Drive/Parents/List.hs−91 gogol-drive/gen/Network/Google/Resource/Drive/Permissions/GetIdForEmail.hs−92 gogol-drive/gen/Network/Google/Resource/Drive/Permissions/Insert.hs−128 gogol-drive/gen/Network/Google/Resource/Drive/Permissions/Patch.hs−130 gogol-drive/gen/Network/Google/Resource/Drive/Properties/Delete.hs−114 gogol-drive/gen/Network/Google/Resource/Drive/Properties/Get.hs−116 gogol-drive/gen/Network/Google/Resource/Drive/Properties/Insert.hs−100 gogol-drive/gen/Network/Google/Resource/Drive/Properties/List.hs−91 gogol-drive/gen/Network/Google/Resource/Drive/Properties/Patch.hs−127 gogol-drive/gen/Network/Google/Resource/Drive/Properties/Update.hs−127 gogol-drive/gen/Network/Google/Resource/Drive/Realtime/Get.hs−125 gogol-drive/gen/Network/Google/Resource/Drive/Realtime/Update.hs−130 gogol-drive/gen/Network/Google/Resource/Drive/Replies/Insert.hs−112 gogol-drive/gen/Network/Google/Resource/Drive/Replies/Patch.hs−125 gogol-drive/gen/Network/Google/Resource/Drive/Revisions/Patch.hs−114 gogol-fitness/gen/Network/Google/Fitness/Types/Sum.hs+4−4 gogol-fonts/gen/Network/Google/Fonts/Types/Sum.hs+1−1 gogol-freebasesearch/gen/Network/Google/FreebaseSearch/Types/Sum.hs+5−5 gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Table/ImportRows.hs+1−2 gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Table/ImportTable.hs+1−2 gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Table/ReplaceRows.hs+1−2 gogol-games-configuration/gen/Network/Google/GamesConfiguration/Types/Sum.hs+1−1 gogol-games-configuration/gen/Network/Google/Resource/GamesConfiguration/ImageConfigurations/Upload.hs+1−2 gogol-games/gen/Network/Google/Games/Types/Sum.hs+10−10 gogol-genomics/gen/Network/Google/Genomics.hs+200−1 gogol-genomics/gen/Network/Google/Genomics/Types.hs+144 gogol-genomics/gen/Network/Google/Genomics/Types/Product.hs+1351−6 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Create.hs+178 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Delete.hs+174 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Get.hs+175 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Search.hs+185 gogol-genomics/gen/Network/Google/Resource/Genomics/AnnotationSets/Update.hs+205 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/BatchCreate.hs+191 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Create.hs+186 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Delete.hs+173 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Get.hs+173 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Search.hs+185 gogol-genomics/gen/Network/Google/Resource/Genomics/Annotations/Update.hs+201 gogol-genomics/gen/Network/Google/Resource/Genomics/DataSets/Delete.hs+10−4 gogol-genomics/gen/Network/Google/Resource/Genomics/Operations/Delete.hs−169 gogol-genomics/gen/Network/Google/Resource/Genomics/VariantSets/Patch.hs+2−2 gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Import.hs+10−14 gogol-genomics/gen/Network/Google/Resource/Genomics/Variants/Merge.hs+46−4 gogol-genomics/gogol-genomics.cabal+11 gogol-gmail/gen/Network/Google/Gmail/Types/Sum.hs+9−9 gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Drafts/Create.hs+3−4 gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Drafts/Send.hs+3−3 gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Drafts/Update.hs+4−4 gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Messages/Import.hs+3−3 gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Messages/Insert.hs+3−3 gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Messages/Send.hs+3−3 gogol-groups-migration/gen/Network/Google/Resource/GroupsMigration/Archive/Insert.hs+1−2 gogol-maps-coordinate/gen/Network/Google/MapsCoordinate/Types/Sum.hs+2−2 gogol-maps-engine/gen/Network/Google/MapsEngine/Types/Sum.hs+51−51 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Projects/Icons/Create.hs+3−4 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Rasters/Files/Insert.hs+1−1 gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Tables/Files/Insert.hs+1−1 gogol-mirror/gen/Network/Google/Mirror/Types/Sum.hs+1−1 gogol-mirror/gen/Network/Google/Resource/Mirror/Timeline/Attachments/Insert.hs+1−2 gogol-mirror/gen/Network/Google/Resource/Mirror/Timeline/Insert.hs+3−3 gogol-mirror/gen/Network/Google/Resource/Mirror/Timeline/Update.hs+3−3 gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/MetricDescriptors/Create.hs−102 gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/MetricDescriptors/Delete.hs−102 gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/MetricDescriptors/List.hs−154 gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/Timeseries/List.hs−243 gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/Timeseries/Write.hs−114 gogol-monitoring/gen/Network/Google/Resource/CloudMonitoring/TimeseriesDescriptors/List.hs−256 gogol-pagespeed/gen/Network/Google/PageSpeed/Types/Sum.hs+1−1 gogol-plus-domains/gen/Network/Google/PlusDomains/Types/Sum.hs+6−6 gogol-plus-domains/gen/Network/Google/Resource/PlusDomains/Media/Insert.hs+3−4 gogol-plus/gen/Network/Google/Plus/Types/Sum.hs+6−6 gogol-plus/gen/Network/Google/Resource/Plus/Moments/Insert.hs−124 gogol-plus/gen/Network/Google/Resource/Plus/Moments/List.hs−151 gogol-replicapool/gen/Network/Google/ReplicaPool/Types/Sum.hs+3−3 gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/Get.hs−170 gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/GetIAMPolicy.hs−189 gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/List.hs−203 gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/SetIAMPolicy.hs−190 gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/TestIAMPermissions.hs−190 gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Organizations/Update.hs−186 gogol-resourceviews/gen/Network/Google/ResourceViews/Types/Sum.hs+2−2 gogol-shopping-content/gen/Network/Google/ShoppingContent/Types/Sum.hs+3−3 gogol-storage/gen/Network/Google/Resource/Storage/Objects/Insert.hs+4−5 gogol-storage/gen/Network/Google/Storage/Types/Sum.hs+25−25 gogol-tagmanager/gen/Network/Google/TagManager/Types/Sum.hs+9−9 gogol-translate/gen/Network/Google/Translate/Types/Sum.hs+1−1 gogol-urlshortener/gen/Network/Google/URLShortener/Types/Sum.hs+2−2 gogol-useraccounts/gen/Network/Google/UserAccounts/Types/Sum.hs+2−2 gogol-vision/gen/Network/Google/Vision/Types/Sum.hs+14−14 gogol-webmaster-tools/gen/Network/Google/WebmasterTools/Types/Sum.hs+8−8 gogol-youtube/gen/Network/Google/Resource/YouTube/Captions/Insert.hs+3−3 gogol-youtube/gen/Network/Google/Resource/YouTube/Captions/Update.hs+3−3 gogol-youtube/gen/Network/Google/Resource/YouTube/ChannelBanners/Insert.hs+4−5 gogol-youtube/gen/Network/Google/Resource/YouTube/LiveBroadcasts/BindDirect.hs−176 gogol-youtube/gen/Network/Google/Resource/YouTube/Thumbnails/Set.hs+1−2 gogol-youtube/gen/Network/Google/Resource/YouTube/Videos/Insert.hs+3−3 gogol-youtube/gen/Network/Google/Resource/YouTube/Watermarks/Set.hs+4−4
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
3434 | NotChecked
3535 -- ^ @not_checked@
3636 -- 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)
3838
3939instance Hashable CreativesListOpenAuctionStatusFilter
4040
@@ -71,7 +71,7 @@ data ProposalsPatchUpdateAction
7171 -- ^ @unknownAction@
7272 | UpdateFinalized
7373 -- ^ @updateFinalized@
74− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
74+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
7575
7676instance Hashable ProposalsPatchUpdateAction
7777
@@ -113,7 +113,7 @@ data CreativesListDealsStatusFilter
113113 | CLDSFNotChecked
114114 -- ^ @not_checked@
115115 -- 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)
117117
118118instance Hashable CreativesListDealsStatusFilter
119119
@@ -150,7 +150,7 @@ data ProposalsUpdateUpdateAction
150150 -- ^ @unknownAction@
151151 | PUUAUpdateFinalized
152152 -- ^ @updateFinalized@
153− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
153+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
154154
155155instance Hashable ProposalsUpdateUpdateAction
156156
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
3535 | Update
3636 -- ^ @update@
3737 -- User Updated Event
38− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
38+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3939
4040instance Hashable UsersListEvent
4141
@@ -70,7 +70,7 @@ data UsersAliasesListEvent
7070 | UALEDelete'
7171 -- ^ @delete@
7272 -- Alias Deleted Event
73− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
73+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
7474
7575instance Hashable UsersAliasesListEvent
7676
@@ -99,7 +99,7 @@ data UsersAliasesWatchEvent
9999 | UAWEDelete'
100100 -- ^ @delete@
101101 -- Alias Deleted Event
102− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
102+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
103103
104104instance Hashable UsersAliasesWatchEvent
105105
@@ -137,7 +137,7 @@ data UsersWatchEvent
137137 | UWEUpdate
138138 -- ^ @update@
139139 -- User Updated Event
140− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
140+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
141141
142142instance Hashable UsersWatchEvent
143143
@@ -173,7 +173,7 @@ data ChromeosDevicesPatchProjection
173173 | Full
174174 -- ^ @FULL@
175175 -- Includes all metadata fields
176− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
176+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
177177
178178instance Hashable ChromeosDevicesPatchProjection
179179
@@ -203,7 +203,7 @@ data ChromeosDevicesGetProjection
203203 | CDGPFull
204204 -- ^ @FULL@
205205 -- Includes all metadata fields
206− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
206+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
207207
208208instance Hashable ChromeosDevicesGetProjection
209209
@@ -232,7 +232,7 @@ data UsersListViewType
232232 | DomainPublic
233233 -- ^ @domain_public@
234234 -- 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)
236236
237237instance Hashable UsersListViewType
238238
@@ -261,7 +261,7 @@ data OrgUnitsListType
261261 | Children
262262 -- ^ @children@
263263 -- Immediate children only (default).
264− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
264+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
265265
266266instance Hashable OrgUnitsListType
267267
@@ -291,7 +291,7 @@ data MobileDevicesListSortOrder
291291 | Descending
292292 -- ^ @DESCENDING@
293293 -- Descending order.
294− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
294+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
295295
296296instance Hashable MobileDevicesListSortOrder
297297
@@ -323,7 +323,7 @@ data UsersListOrderBy
323323 | GivenName
324324 -- ^ @givenName@
325325 -- User\'s given name.
326− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
326+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
327327
328328instance Hashable UsersListOrderBy
329329
@@ -354,7 +354,7 @@ data UsersWatchViewType
354354 | UWVTDomainPublic
355355 -- ^ @domain_public@
356356 -- 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)
358358
359359instance Hashable UsersWatchViewType
360360
@@ -386,7 +386,7 @@ data UsersGetProjection
386386 | UGPFull
387387 -- ^ @full@
388388 -- 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)
390390
391391instance Hashable UsersGetProjection
392392
@@ -418,7 +418,7 @@ data MobileDevicesListProjection
418418 | MDLPFull
419419 -- ^ @FULL@
420420 -- Includes all metadata fields
421− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
421+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
422422
423423instance Hashable MobileDevicesListProjection
424424
@@ -465,7 +465,7 @@ data MobileDevicesListOrderBy
465465 | MDLOBType
466466 -- ^ @type@
467467 -- Type of the device.
468− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
468+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
469469
470470instance Hashable MobileDevicesListOrderBy
471471
@@ -506,7 +506,7 @@ data UsersListSortOrder
506506 | ULSODescending
507507 -- ^ @DESCENDING@
508508 -- Descending order.
509− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
509+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
510510
511511instance Hashable UsersListSortOrder
512512
@@ -536,7 +536,7 @@ data ChromeosDevicesListSortOrder
536536 | CDLSODescending
537537 -- ^ @DESCENDING@
538538 -- Descending order.
539− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
539+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
540540
541541instance Hashable ChromeosDevicesListSortOrder
542542
@@ -565,7 +565,7 @@ data UsersWatchSortOrder
565565 | UWSODescending
566566 -- ^ @DESCENDING@
567567 -- Descending order.
568− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
568+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
569569
570570instance Hashable UsersWatchSortOrder
571571
@@ -597,7 +597,7 @@ data UsersListProjection
597597 | ULPFull
598598 -- ^ @full@
599599 -- 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)
601601
602602instance Hashable UsersListProjection
603603
@@ -629,7 +629,7 @@ data ChromeosDevicesUpdateProjection
629629 | CDUPFull
630630 -- ^ @FULL@
631631 -- Includes all metadata fields
632− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
632+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
633633
634634instance Hashable ChromeosDevicesUpdateProjection
635635
@@ -659,7 +659,7 @@ data MobileDevicesGetProjection
659659 | MDGPFull
660660 -- ^ @FULL@
661661 -- Includes all metadata fields
662− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
662+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
663663
664664instance Hashable MobileDevicesGetProjection
665665
@@ -703,7 +703,7 @@ data ChromeosDevicesListOrderBy
703703 | SupportEndDate
704704 -- ^ @supportEndDate@
705705 -- Chromebook support end date.
706− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
706+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
707707
708708instance Hashable ChromeosDevicesListOrderBy
709709
@@ -745,7 +745,7 @@ data UsersWatchProjection
745745 | UWPFull
746746 -- ^ @full@
747747 -- 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)
749749
750750instance Hashable UsersWatchProjection
751751
@@ -779,7 +779,7 @@ data UsersWatchOrderBy
779779 | UWOBGivenName
780780 -- ^ @givenName@
781781 -- User\'s given name.
782− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
782+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
783783
784784instance Hashable UsersWatchOrderBy
785785
@@ -811,7 +811,7 @@ data ChromeosDevicesListProjection
811811 | CDLPFull
812812 -- ^ @FULL@
813813 -- Includes all metadata fields
814− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
814+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
815815
816816instance Hashable ChromeosDevicesListProjection
817817
@@ -840,7 +840,7 @@ data UsersGetViewType
840840 | UGVTDomainPublic
841841 -- ^ @domain_public@
842842 -- 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)
844844
845845instance Hashable UsersGetViewType
846846
gogol-admin-emailmigration/gen/Network/Google/Resource/EmailMigration/Mail/Insert.hs+3−4
@@ -58,9 +58,8 @@ type MailInsertResource =
5858 Capture "userKey" Text :>
5959 "mail" :>
6060 QueryParam "alt" AltJSON :>
61− QueryParam "uploadType" AltMedia :>
62− MultipartRelated '[JSON] MailItem RequestBody :>
63− Post '[JSON] ()
61+ QueryParam "uploadType" Multipart :>
62+ MultipartRelated '[JSON] MailItem :> Post '[JSON] ()
6463
6564-- | Insert Mail into Google\'s Gmail backends
6665--
@@ -113,7 +112,7 @@ instance GoogleRequest (MediaUpload MailInsert) where
113112 type Scopes (MediaUpload MailInsert) =
114113 Scopes MailInsert
115114 requestClient (MediaUpload MailInsert'{..} body)
116− = go _miUserKey (Just AltJSON) (Just AltMedia)
115+ = go _miUserKey (Just AltJSON) (Just Multipart)
117116 _miPayload
118117 body
119118 emailMigrationService
gogol-adsense-host/gen/Network/Google/AdSenseHost/Types/Sum.hs+1−1
@@ -35,7 +35,7 @@ data AssociationSessionsStartProductCode
3535 | Afv
3636 -- ^ @AFV@
3737 -- AdSense For Video
38− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
38+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3939
4040instance Hashable AssociationSessionsStartProductCode
4141
gogol-affiliates/gen/Network/Google/Affiliates/Types/Sum.hs+22−22
@@ -27,7 +27,7 @@ data PublishersGetRole
2727 | PGRPublishers
2828 -- ^ @publishers@
2929 -- 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)
3131
3232instance Hashable PublishersGetRole
3333
@@ -60,7 +60,7 @@ data ReportsGetEventType
6060 | Transaction
6161 -- ^ @transaction@
6262 -- Event type is transaction.
63− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
63+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
6464
6565instance Hashable ReportsGetEventType
6666
@@ -95,7 +95,7 @@ data ReportsGetStatus
9595 | Invalid
9696 -- ^ @invalid@
9797 -- Event is currently invalid.
98− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
98+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
9999
100100instance Hashable ReportsGetStatus
101101
@@ -130,7 +130,7 @@ data LinksListPromotionType
130130 -- ^ @percent_off@
131131 | PriceCut
132132 -- ^ @price_cut@
133− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
133+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
134134
135135instance Hashable LinksListPromotionType
136136
@@ -174,7 +174,7 @@ data EventsListType
174174 -- A conversion event, typically an e-commerce transaction. Some
175175 -- advertisers use a transaction to record other types of events, such as
176176 -- magazine subscriptions.
177− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
177+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
178178
179179instance Hashable EventsListType
180180
@@ -206,7 +206,7 @@ data LinksListRole
206206 | LLRPublishers
207207 -- ^ @publishers@
208208 -- 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)
210210
211211instance Hashable LinksListRole
212212
@@ -233,7 +233,7 @@ data ReportsGetReportType
233233 = OrderDelta
234234 -- ^ @order_delta@
235235 -- 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)
237237
238238instance Hashable ReportsGetReportType
239239
@@ -261,7 +261,7 @@ data AdvertisersListRole
261261 | ALRPublishers
262262 -- ^ @publishers@
263263 -- 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)
265265
266266instance Hashable AdvertisersListRole
267267
@@ -291,7 +291,7 @@ data LinksInsertRole
291291 | LIRPublishers
292292 -- ^ @publishers@
293293 -- 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)
295295
296296instance Hashable LinksInsertRole
297297
@@ -321,7 +321,7 @@ data PublishersListRole
321321 | PLRPublishers
322322 -- ^ @publishers@
323323 -- 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)
325325
326326instance Hashable PublishersListRole
327327
@@ -348,7 +348,7 @@ data LinksListAuthorship
348348 -- ^ @advertiser@
349349 | LLAPublisher
350350 -- ^ @publisher@
351− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
351+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
352352
353353instance Hashable LinksListAuthorship
354354
@@ -378,7 +378,7 @@ data LinksGetRole
378378 | LGRPublishers
379379 -- ^ @publishers@
380380 -- 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)
382382
383383instance Hashable LinksGetRole
384384
@@ -405,7 +405,7 @@ data LinksListLinkType
405405 -- ^ @banner@
406406 | Text
407407 -- ^ @text@
408− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
408+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
409409
410410instance Hashable LinksListLinkType
411411
@@ -435,7 +435,7 @@ data EventsListRole
435435 | ELRPublishers
436436 -- ^ @publishers@
437437 -- 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)
439439
440440instance Hashable EventsListRole
441441
@@ -477,7 +477,7 @@ data AdvertisersListRelationshipStatus
477477 -- ^ @pending@
478478 -- An advertiser program that you\'ve already applied to, but they haven\'t
479479 -- 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)
481481
482482instance Hashable AdvertisersListRelationshipStatus
483483
@@ -512,7 +512,7 @@ data CcOffersListProjection
512512 | Summary
513513 -- ^ @summary@
514514 -- 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)
516516
517517instance Hashable CcOffersListProjection
518518
@@ -542,7 +542,7 @@ data AdvertisersGetRole
542542 | AGRPublishers
543543 -- ^ @publishers@
544544 -- 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)
546546
547547instance Hashable AdvertisersGetRole
548548
@@ -589,7 +589,7 @@ data EventsListChargeType
589589 -- ^ @tier_bonus@
590590 -- A payment from an advertiser to a publisher for the publisher
591591 -- 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)
593593
594594instance Hashable EventsListChargeType
595595
@@ -638,7 +638,7 @@ data PublishersListRelationshipStatus
638638 -- ^ @pending@
639639 -- Publishers that have applied to your program. We recommend reviewing and
640640 -- 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)
642642
643643instance Hashable PublishersListRelationshipStatus
644644
@@ -674,7 +674,7 @@ data ReportsGetRole
674674 | RGRPublishers
675675 -- ^ @publishers@
676676 -- 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)
678678
679679instance Hashable ReportsGetRole
680680
@@ -701,7 +701,7 @@ data LinksListRelationshipStatus
701701 -- ^ @approved@
702702 | LLRSAvailable
703703 -- ^ @available@
704− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
704+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
705705
706706instance Hashable LinksListRelationshipStatus
707707
@@ -731,7 +731,7 @@ data EventsListStatus
731731 | ELSCanceled
732732 -- ^ @canceled@
733733 -- Event is currently canceled.
734− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
734+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
735735
736736instance Hashable EventsListStatus
737737
gogol-analytics/gen/Network/Google/Analytics/Types/Sum.hs+3−3
@@ -30,7 +30,7 @@ data DataGaGetSamplingLevel
3030 -- ^ @HIGHER_PRECISION@
3131 -- Returns a more accurate response using a large sample size, but this may
3232 -- 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)
3434
3535instance Hashable DataGaGetSamplingLevel
3636
@@ -62,7 +62,7 @@ data DataGaGetOutput
6262 | JSON
6363 -- ^ @json@
6464 -- 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)
6666
6767instance Hashable DataGaGetOutput
6868
@@ -95,7 +95,7 @@ data DataMcfGetSamplingLevel
9595 -- ^ @HIGHER_PRECISION@
9696 -- Returns a more accurate response using a large sample size, but this may
9797 -- 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)
9999
100100instance Hashable DataMcfGetSamplingLevel
101101
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/Uploads/UploadData.hs+1−2
@@ -69,8 +69,7 @@ type ManagementUploadsUploadDataResource =
6969 "uploads" :>
7070 QueryParam "alt" AltJSON :>
7171 QueryParam "uploadType" AltMedia :>
72− ReqBody '[OctetStream] RequestBody :>
73− Post '[JSON] Upload
72+ AltMedia :> Post '[JSON] Upload
7473
7574-- | Upload data for a custom data source.
7675--
gogol-android-publisher/gen/Network/Google/AndroidPublisher/Types/Sum.hs+14−14
@@ -37,7 +37,7 @@ data EditsImagesDeleteallImageType
3737 -- ^ @tvScreenshots@
3838 | WearScreenshots
3939 -- ^ @wearScreenshots@
40− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
40+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4141
4242instance Hashable EditsImagesDeleteallImageType
4343
@@ -82,7 +82,7 @@ data EditsTracksPatchTrack
8282 -- ^ @production@
8383 | Rollout
8484 -- ^ @rollout@
85− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
85+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
8686
8787instance Hashable EditsTracksPatchTrack
8888
@@ -117,7 +117,7 @@ data EditsTracksGetTrack
117117 -- ^ @production@
118118 | ETGTRollout
119119 -- ^ @rollout@
120− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
120+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
121121
122122instance Hashable EditsTracksGetTrack
123123
@@ -152,7 +152,7 @@ data EditsTracksUpdateTrack
152152 -- ^ @production@
153153 | ETUTRollout
154154 -- ^ @rollout@
155− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
155+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
156156
157157instance Hashable EditsTracksUpdateTrack
158158
@@ -196,7 +196,7 @@ data EditsImagesListImageType
196196 -- ^ @tvScreenshots@
197197 | EILITWearScreenshots
198198 -- ^ @wearScreenshots@
199− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
199+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
200200
201201instance Hashable EditsImagesListImageType
202202
@@ -240,7 +240,7 @@ data EditsTestersPatchTrack
240240 -- ^ @production@
241241 | ETPTRollout
242242 -- ^ @rollout@
243− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
243+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
244244
245245instance Hashable EditsTestersPatchTrack
246246
@@ -274,7 +274,7 @@ data EditsTestersGetTrack
274274 -- ^ @production@
275275 | ERollout
276276 -- ^ @rollout@
277− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
277+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
278278
279279instance Hashable EditsTestersGetTrack
280280
@@ -318,7 +318,7 @@ data EditsImagesUploadImageType
318318 -- ^ @tvScreenshots@
319319 | EIUITWearScreenshots
320320 -- ^ @wearScreenshots@
321− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
321+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
322322
323323instance Hashable EditsImagesUploadImageType
324324
@@ -358,7 +358,7 @@ data EditsExpansionFilesUploadExpansionFileType
358358 -- ^ @main@
359359 | Patch'
360360 -- ^ @patch@
361− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
361+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
362362
363363instance Hashable EditsExpansionFilesUploadExpansionFileType
364364
@@ -384,7 +384,7 @@ data EditsExpansionFilesGetExpansionFileType
384384 -- ^ @main@
385385 | EEFGEFTPatch'
386386 -- ^ @patch@
387− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
387+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
388388
389389instance Hashable EditsExpansionFilesGetExpansionFileType
390390
@@ -410,7 +410,7 @@ data EditsExpansionFilesPatchExpansionFileType
410410 -- ^ @main@
411411 | EEFPEFTPatch'
412412 -- ^ @patch@
413− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
413+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
414414
415415instance Hashable EditsExpansionFilesPatchExpansionFileType
416416
@@ -436,7 +436,7 @@ data EditsExpansionFilesUpdateExpansionFileType
436436 -- ^ @main@
437437 | EEFUEFTPatch'
438438 -- ^ @patch@
439− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
439+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
440440
441441instance Hashable EditsExpansionFilesUpdateExpansionFileType
442442
@@ -476,7 +476,7 @@ data EditsImagesDeleteImageType
476476 -- ^ @tvScreenshots@
477477 | EIDITWearScreenshots
478478 -- ^ @wearScreenshots@
479− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
479+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
480480
481481instance Hashable EditsImagesDeleteImageType
482482
@@ -520,7 +520,7 @@ data EditsTestersUpdateTrack
520520 -- ^ @production@
521521 | EDIRollout
522522 -- ^ @rollout@
523− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
523+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
524524
525525instance Hashable EditsTestersUpdateTrack
526526
gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/APKs/Upload.hs+1−2
@@ -60,8 +60,7 @@ type EditsAPKsUploadResource =
6060 "apks" :>
6161 QueryParam "alt" AltJSON :>
6262 QueryParam "uploadType" AltMedia :>
63− ReqBody '[OctetStream] RequestBody :>
64− Post '[JSON] APK
63+ AltMedia :> Post '[JSON] APK
6564
6665--
6766-- /See:/ 'editsAPKsUpload' smart constructor.
gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/ExpansionFiles/Upload.hs+1−1
@@ -75,7 +75,7 @@ type EditsExpansionFilesUploadResource =
7575 :>
7676 QueryParam "alt" AltJSON :>
7777 QueryParam "uploadType" AltMedia :>
78− ReqBody '[OctetStream] RequestBody :>
78+ AltMedia :>
7979 Post '[JSON] ExpansionFilesUploadResponse
8080
8181-- | 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 =
7070 Capture "imageType" EditsImagesUploadImageType :>
7171 QueryParam "alt" AltJSON :>
7272 QueryParam "uploadType" AltMedia :>
73− ReqBody '[OctetStream] RequestBody :>
74− Post '[JSON] ImagesUploadResponse
73+ AltMedia :> Post '[JSON] ImagesUploadResponse
7574
7675-- | Uploads a new image and adds it to the list of images for the specified
7776-- 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
4242 -- ^ @untrash@
4343 | EPETUpload
4444 -- ^ @upload@
45− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
45+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4646
4747instance Hashable EventPrimaryEventType
4848
@@ -92,7 +92,7 @@ data PermissionRole
9292 -- ^ @reader@
9393 | Writer
9494 -- ^ @writer@
95− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
95+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
9696
9797instance Hashable PermissionRole
9898
@@ -127,7 +127,7 @@ data PermissionType
127127 -- ^ @group@
128128 | PTUser
129129 -- ^ @user@
130− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
130+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
131131
132132instance Hashable PermissionType
133133
@@ -175,7 +175,7 @@ data EventAdditionalEventTypesItem
175175 -- ^ @untrash@
176176 | EAETIUpload
177177 -- ^ @upload@
178− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
178+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
179179
180180instance Hashable EventAdditionalEventTypesItem
181181
@@ -221,7 +221,7 @@ data ActivitiesListGroupingStrategy
221221 -- ^ @driveUi@
222222 | None
223223 -- ^ @none@
224− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
224+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
225225
226226instance Hashable ActivitiesListGroupingStrategy
227227
gogol-apps-calendar/gen/Network/Google/AppsCalendar/Types/Sum.hs+4−4
@@ -28,7 +28,7 @@ data EventsListOrderBy
2828 | Updated
2929 -- ^ @updated@
3030 -- 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)
3232
3333instance Hashable EventsListOrderBy
3434
@@ -64,7 +64,7 @@ data CalendarListListMinAccessRole
6464 | Writer
6565 -- ^ @writer@
6666 -- 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)
6868
6969instance Hashable CalendarListListMinAccessRole
7070
@@ -99,7 +99,7 @@ data EventsWatchOrderBy
9999 | EWOBUpdated
100100 -- ^ @updated@
101101 -- 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)
103103
104104instance Hashable EventsWatchOrderBy
105105
@@ -135,7 +135,7 @@ data CalendarListWatchMinAccessRole
135135 | CLWMARWriter
136136 -- ^ @writer@
137137 -- 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)
139139
140140instance Hashable CalendarListWatchMinAccessRole
141141
gogol-apps-reseller/gen/Network/Google/AppsReseller/Types/Sum.hs+1−1
@@ -32,7 +32,7 @@ data SubscriptionsDeleteDeletionType
3232 | TransferToDirect
3333 -- ^ @transfer_to_direct@
3434 -- 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)
3636
3737instance Hashable SubscriptionsDeleteDeletionType
3838
gogol-bigquery/gen/Network/Google/BigQuery/Types/Sum.hs+2−2
@@ -26,7 +26,7 @@ data JobsListProjection
2626 | Minimal
2727 -- ^ @minimal@
2828 -- 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)
3030
3131instance Hashable JobsListProjection
3232
@@ -58,7 +58,7 @@ data JobsListStateFilter
5858 | Running
5959 -- ^ @running@
6060 -- Running jobs
61− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
61+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
6262
6363instance Hashable JobsListStateFilter
6464
gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/Insert.hs+3−4
@@ -58,9 +58,8 @@ type JobsInsertResource =
5858 Capture "projectId" Text :>
5959 "jobs" :>
6060 QueryParam "alt" AltJSON :>
61− QueryParam "uploadType" AltMedia :>
62− MultipartRelated '[JSON] Job RequestBody :>
63− Post '[JSON] Job
61+ QueryParam "uploadType" Multipart :>
62+ MultipartRelated '[JSON] Job :> Post '[JSON] Job
6463
6564-- | Starts a new asynchronous job. Requires the Can View project role.
6665--
@@ -117,7 +116,7 @@ instance GoogleRequest (MediaUpload JobsInsert) where
117116 type Scopes (MediaUpload JobsInsert) =
118117 Scopes JobsInsert
119118 requestClient (MediaUpload JobsInsert'{..} body)
120− = go _jiProjectId (Just AltJSON) (Just AltMedia)
119+ = go _jiProjectId (Just AltJSON) (Just Multipart)
121120 _jiPayload
122121 body
123122 bigQueryService
gogol-blogger/gen/Network/Google/Blogger/Types/Sum.hs+22−22
@@ -26,7 +26,7 @@ data PostsListOrderBy
2626 | Updated
2727 -- ^ @updated@
2828 -- 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)
3030
3131instance Hashable PostsListOrderBy
3232
@@ -59,7 +59,7 @@ data PostsListView
5959 | Reader
6060 -- ^ @READER@
6161 -- Reader level detail
62− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
62+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
6363
6464instance Hashable PostsListView
6565
@@ -92,7 +92,7 @@ data PageViewsGetRange
9292 | PVGRAll
9393 -- ^ @all@
9494 -- 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)
9696
9797instance Hashable PageViewsGetRange
9898
@@ -127,7 +127,7 @@ data CommentsListView
127127 | CLVReader
128128 -- ^ @READER@
129129 -- Reader level detail
130− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
130+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
131131
132132instance Hashable CommentsListView
133133
@@ -160,7 +160,7 @@ data PostUserInfosListStatus
160160 | Scheduled
161161 -- ^ @scheduled@
162162 -- 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)
164164
165165instance Hashable PostUserInfosListStatus
166166
@@ -195,7 +195,7 @@ data PostsGetView
195195 | PGVReader
196196 -- ^ @READER@
197197 -- Reader level detail
198− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
198+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
199199
200200instance Hashable PostsGetView
201201
@@ -226,7 +226,7 @@ data PostsSearchOrderBy
226226 | PSOBUpdated
227227 -- ^ @updated@
228228 -- 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)
230230
231231instance Hashable PostsSearchOrderBy
232232
@@ -260,7 +260,7 @@ data CommentsListByBlogStatus
260260 | CLBBSSpam
261261 -- ^ @spam@
262262 -- 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)
264264
265265instance Hashable CommentsListByBlogStatus
266266
@@ -295,7 +295,7 @@ data PagesGetView
295295 | PReader
296296 -- ^ @READER@
297297 -- Reader level detail
298− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
298+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
299299
300300instance Hashable PagesGetView
301301
@@ -326,7 +326,7 @@ data PostUserInfosListOrderBy
326326 | PUILOBUpdated
327327 -- ^ @updated@
328328 -- 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)
330330
331331instance Hashable PostUserInfosListOrderBy
332332
@@ -359,7 +359,7 @@ data BlogsGetView
359359 | BGVReader
360360 -- ^ @READER@
361361 -- Reader level detail.
362− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
362+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
363363
364364instance Hashable BlogsGetView
365365
@@ -394,7 +394,7 @@ data BlogsGetByURLView
394394 | BGBUVReader
395395 -- ^ @READER@
396396 -- Reader level detail.
397− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
397+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
398398
399399instance Hashable BlogsGetByURLView
400400
@@ -430,7 +430,7 @@ data CommentsListStatus
430430 | CLSSpam
431431 -- ^ @spam@
432432 -- 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)
434434
435435instance Hashable CommentsListStatus
436436
@@ -464,7 +464,7 @@ data BlogsListByUserStatus
464464 | BLBUSLive
465465 -- ^ @LIVE@
466466 -- Blog is currently live.
467− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
467+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
468468
469469instance Hashable BlogsListByUserStatus
470470
@@ -497,7 +497,7 @@ data PagesListView
497497 | PLVReader
498498 -- ^ @READER@
499499 -- Reader level detail
500− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
500+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
501501
502502instance Hashable PagesListView
503503
@@ -531,7 +531,7 @@ data PostsListStatus
531531 | PLSScheduled
532532 -- ^ @scheduled@
533533 -- 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)
535535
536536instance Hashable PostsListStatus
537537
@@ -566,7 +566,7 @@ data BlogsListByUserView
566566 | BLBUVReader
567567 -- ^ @READER@
568568 -- Reader level detail.
569− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
569+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
570570
571571instance Hashable BlogsListByUserView
572572
@@ -601,7 +601,7 @@ data PostUserInfosListView
601601 | PUILVReader
602602 -- ^ @READER@
603603 -- Reader level detail
604− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
604+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
605605
606606instance Hashable PostUserInfosListView
607607
@@ -638,7 +638,7 @@ data CommentsGetView
638638 | CGVReader
639639 -- ^ @READER@
640640 -- Admin level detail
641− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
641+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
642642
643643instance Hashable CommentsGetView
644644
@@ -673,7 +673,7 @@ data PostsGetByPathView
673673 | PGBPVReader
674674 -- ^ @READER@
675675 -- Reader level detail
676− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
676+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
677677
678678instance Hashable PostsGetByPathView
679679
@@ -703,7 +703,7 @@ data PagesListStatus
703703 | PLive
704704 -- ^ @live@
705705 -- 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)
707707
708708instance Hashable PagesListStatus
709709
@@ -738,7 +738,7 @@ data BlogsListByUserRole
738738 -- ^ @READER@
739739 -- Reader role - Blogs where the user has Reader level access (to a private
740740 -- blog).
741− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
741+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
742742
743743instance Hashable BlogsListByUserRole
744744
gogol-books/gen/Network/Google/Books/Types/Sum.hs+22−22
@@ -26,7 +26,7 @@ data VolumesListProjection
2626 | Lite
2727 -- ^ @lite@
2828 -- 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)
3030
3131instance Hashable VolumesListProjection
3232
@@ -55,7 +55,7 @@ data MyLibraryBookshelvesVolumesListProjection
5555 | MLBVLPLite
5656 -- ^ @lite@
5757 -- 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)
5959
6060instance Hashable MyLibraryBookshelvesVolumesListProjection
6161
@@ -84,7 +84,7 @@ data VolumesListOrderBy
8484 | Relevance
8585 -- ^ @relevance@
8686 -- Relevance to search terms.
87− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
87+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
8888
8989instance Hashable VolumesListOrderBy
9090
@@ -113,7 +113,7 @@ data VolumesListLibraryRestrict
113113 | NoRestrict
114114 -- ^ @no-restrict@
115115 -- 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)
117117
118118instance Hashable VolumesListLibraryRestrict
119119
@@ -139,7 +139,7 @@ data MyLibraryBookshelvesRemoveVolumeReason
139139 = Onboarding
140140 -- ^ @ONBOARDING@
141141 -- 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)
143143
144144instance Hashable MyLibraryBookshelvesRemoveVolumeReason
145145
@@ -167,7 +167,7 @@ data OnboardingListCategoryVolumesMaxAllowedMaturityRating
167167 | NotMature
168168 -- ^ @not-mature@
169169 -- 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)
171171
172172instance Hashable OnboardingListCategoryVolumesMaxAllowedMaturityRating
173173
@@ -193,7 +193,7 @@ data VolumesListDownload
193193 = Epub
194194 -- ^ @epub@
195195 -- All volumes with epub.
196− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
196+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
197197
198198instance Hashable VolumesListDownload
199199
@@ -220,7 +220,7 @@ data VolumesGetProjection
220220 | VGPLite
221221 -- ^ @lite@
222222 -- 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)
224224
225225instance Hashable VolumesGetProjection
226226
@@ -252,7 +252,7 @@ data VolumesAssociatedListAssociation
252252 | RelatedForPlay
253253 -- ^ @related-for-play@
254254 -- 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)
256256
257257instance Hashable VolumesAssociatedListAssociation
258258
@@ -283,7 +283,7 @@ data VolumesRecommendedRateRating
283283 | NotInterested
284284 -- ^ @NOT_INTERESTED@
285285 -- 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)
287287
288288instance Hashable VolumesRecommendedRateRating
289289
@@ -315,7 +315,7 @@ data VolumesUserUploadedListProcessingState
315315 | Running
316316 -- ^ @RUNNING@
317317 -- 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)
319319
320320instance Hashable VolumesUserUploadedListProcessingState
321321
@@ -343,7 +343,7 @@ data MyConfigSyncVolumeLicensesFeatures
343343 = Rentals
344344 -- ^ @RENTALS@
345345 -- Client supports rentals.
346− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
346+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
347347
348348instance Hashable MyConfigSyncVolumeLicensesFeatures
349349
@@ -371,7 +371,7 @@ data VolumesAssociatedListMaxAllowedMaturityRating
371371 | VALMAMRNotMature
372372 -- ^ @not-mature@
373373 -- 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)
375375
376376instance Hashable VolumesAssociatedListMaxAllowedMaturityRating
377377
@@ -409,7 +409,7 @@ data VolumesListFilter
409409 | VLFPartial
410410 -- ^ @partial@
411411 -- 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)
413413
414414instance Hashable VolumesListFilter
415415
@@ -445,7 +445,7 @@ data VolumesRecommendedListMaxAllowedMaturityRating
445445 | VRLMAMRNotMature
446446 -- ^ @not-mature@
447447 -- 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)
449449
450450instance Hashable VolumesRecommendedListMaxAllowedMaturityRating
451451
@@ -477,7 +477,7 @@ data MyLibraryBookshelvesAddVolumeReason
477477 | MLBAVROnboarding
478478 -- ^ @ONBOARDING@
479479 -- 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)
481481
482482instance Hashable MyLibraryBookshelvesAddVolumeReason
483483
@@ -523,7 +523,7 @@ data VolumesMybooksListAcquireMethod
523523 | Uploaded
524524 -- ^ @UPLOADED@
525525 -- User uploaded books
526− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
526+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
527527
528528instance Hashable VolumesMybooksListAcquireMethod
529529
@@ -563,7 +563,7 @@ data PersonalizedstreamGetMaxAllowedMaturityRating
563563 | PGMAMRNotMature
564564 -- ^ @not-mature@
565565 -- 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)
567567
568568instance Hashable PersonalizedstreamGetMaxAllowedMaturityRating
569569
@@ -595,7 +595,7 @@ data VolumesListPrintType
595595 | Magazines
596596 -- ^ @magazines@
597597 -- Just magazines.
598− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
598+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
599599
600600instance Hashable VolumesListPrintType
601601
@@ -630,7 +630,7 @@ data VolumesMybooksListProcessingState
630630 | VMLPSRunning
631631 -- ^ @RUNNING@
632632 -- 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)
634634
635635instance Hashable VolumesMybooksListProcessingState
636636
@@ -665,7 +665,7 @@ data MyConfigRequestAccessLicenseTypes
665665 | Download
666666 -- ^ @DOWNLOAD@
667667 -- Offline download access license.
668− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
668+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
669669
670670instance Hashable MyConfigRequestAccessLicenseTypes
671671
@@ -708,7 +708,7 @@ data MyLibraryReadingPositionsSetPositionAction
708708 | Search
709709 -- ^ @search@
710710 -- 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)
712712
713713instance Hashable MyLibraryReadingPositionsSetPositionAction
714714
gogol-civicinfo/gen/Network/Google/CivicInfo/Types/Sum.hs+4−4
@@ -40,7 +40,7 @@ data RepresentativesRepresentativeInfoByDivisionLevels
4040 -- ^ @subLocality1@
4141 | SUBLOCALITY2
4242 -- ^ @subLocality2@
43− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
43+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4444
4545instance Hashable RepresentativesRepresentativeInfoByDivisionLevels
4646
@@ -97,7 +97,7 @@ data RepresentativesRepresentativeInfoByAddressLevels
9797 -- ^ @subLocality1@
9898 | RRIBALSUBLOCALITY2
9999 -- ^ @subLocality2@
100− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
100+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
101101
102102instance Hashable RepresentativesRepresentativeInfoByAddressLevels
103103
@@ -158,7 +158,7 @@ data RepresentativesRepresentativeInfoByDivisionRoles
158158 -- ^ @schoolBoard@
159159 | SpecialPurposeOfficer
160160 -- ^ @specialPurposeOfficer@
161− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
161+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
162162
163163instance Hashable RepresentativesRepresentativeInfoByDivisionRoles
164164
@@ -223,7 +223,7 @@ data RepresentativesRepresentativeInfoByAddressRoles
223223 -- ^ @schoolBoard@
224224 | RRIBARSpecialPurposeOfficer
225225 -- ^ @specialPurposeOfficer@
226− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
226+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
227227
228228instance Hashable RepresentativesRepresentativeInfoByAddressRoles
229229
gogol-cloudmonitoring/gen/Network/Google/CloudMonitoring/Types/Sum.hs+2−2
@@ -30,7 +30,7 @@ data TimeseriesListAggregator
3030 -- ^ @min@
3131 | Sum
3232 -- ^ @sum@
33− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
33+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3434
3535instance Hashable TimeseriesListAggregator
3636
@@ -67,7 +67,7 @@ data TimeseriesDescriptorsListAggregator
6767 -- ^ @min@
6868 | TDLASum
6969 -- ^ @sum@
70− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
70+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
7171
7272instance Hashable TimeseriesDescriptorsListAggregator
7373
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
2727 -- ^ @MIGRATE@
2828 | Terminate
2929 -- ^ @TERMINATE@
30− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
30+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3131
3232instance Hashable SchedulingOnHostMaintenance
3333
@@ -58,7 +58,7 @@ data AutoscalingPolicyCustomMetricUtilizationUtilizationTargetType
5858 -- ^ @DELTA_PER_SECOND@
5959 | Gauge
6060 -- ^ @GAUGE@
61− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
61+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
6262
6363instance Hashable AutoscalingPolicyCustomMetricUtilizationUtilizationTargetType
6464
@@ -114,7 +114,7 @@ data OperationWarningsItemCode
114114 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
115115 | Unreachable
116116 -- ^ @UNREACHABLE@
117− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
117+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
118118
119119instance Hashable OperationWarningsItemCode
120120
@@ -168,7 +168,7 @@ data BackendServiceProtocol
168168 -- ^ @HTTP@
169169 | HTTPS
170170 -- ^ @HTTPS@
171− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
171+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
172172
173173instance Hashable BackendServiceProtocol
174174
@@ -196,7 +196,7 @@ data AttachedDiskType
196196 -- ^ @PERSISTENT@
197197 | Scratch
198198 -- ^ @SCRATCH@
199− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
199+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
200200
201201instance Hashable AttachedDiskType
202202
@@ -222,7 +222,7 @@ instance ToJSON AttachedDiskType where
222222data ImageSourceType
223223 = Raw
224224 -- ^ @RAW@
225− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
225+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
226226
227227instance Hashable ImageSourceType
228228
@@ -274,7 +274,7 @@ data ForwardingRulesScopedListWarningCode
274274 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
275275 | FRSLWCUnreachable
276276 -- ^ @UNREACHABLE@
277− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
277+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
278278
279279instance Hashable ForwardingRulesScopedListWarningCode
280280
@@ -354,7 +354,7 @@ data OperationsScopedListWarningCode
354354 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
355355 | OSLWCUnreachable
356356 -- ^ @UNREACHABLE@
357− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
357+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
358358
359359instance Hashable OperationsScopedListWarningCode
360360
@@ -434,7 +434,7 @@ data DisksScopedListWarningCode
434434 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
435435 | DSLWCUnreachable
436436 -- ^ @UNREACHABLE@
437− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
437+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
438438
439439instance Hashable DisksScopedListWarningCode
440440
@@ -514,7 +514,7 @@ data InstanceGroupManagersScopedListWarningCode
514514 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
515515 | IGMSLWCUnreachable
516516 -- ^ @UNREACHABLE@
517− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
517+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
518518
519519instance Hashable InstanceGroupManagersScopedListWarningCode
520520
@@ -594,7 +594,7 @@ data TargetPoolsScopedListWarningCode
594594 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
595595 | TPSLWCUnreachable
596596 -- ^ @UNREACHABLE@
597− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
597+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
598598
599599instance Hashable TargetPoolsScopedListWarningCode
600600
@@ -651,7 +651,7 @@ data TargetVPNGatewayStatus
651651 -- ^ @FAILED@
652652 | Ready
653653 -- ^ @READY@
654− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
654+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
655655
656656instance Hashable TargetVPNGatewayStatus
657657
@@ -689,7 +689,7 @@ data SnapshotStatus
689689 -- ^ @READY@
690690 | SSUploading
691691 -- ^ @UPLOADING@
692− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
692+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
693693
694694instance Hashable SnapshotStatus
695695
@@ -749,7 +749,7 @@ data TargetInstancesScopedListWarningCode
749749 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
750750 | TISLWCUnreachable
751751 -- ^ @UNREACHABLE@
752− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
752+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
753753
754754instance Hashable TargetInstancesScopedListWarningCode
755755
@@ -829,7 +829,7 @@ data RouteWarningsItemCode
829829 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
830830 | RWICUnreachable
831831 -- ^ @UNREACHABLE@
832− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
832+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
833833
834834instance Hashable RouteWarningsItemCode
835835
@@ -885,7 +885,7 @@ data SnapshotStorageBytesStatus
885885 -- ^ @UPDATING@
886886 | UpToDate
887887 -- ^ @UP_TO_DATE@
888− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
888+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
889889
890890instance Hashable SnapshotStorageBytesStatus
891891
@@ -939,7 +939,7 @@ data AddressesScopedListWarningCode
939939 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
940940 | ASLWCUnreachable
941941 -- ^ @UNREACHABLE@
942− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
942+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
943943
944944instance Hashable AddressesScopedListWarningCode
945945
@@ -997,7 +997,7 @@ data ImageStatus
997997 -- ^ @PENDING@
998998 | ISReady
999999 -- ^ @READY@
1000− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1000+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
10011001
10021002instance Hashable ImageStatus
10031003
@@ -1026,7 +1026,7 @@ data HealthStatusHealthState
10261026 -- ^ @HEALTHY@
10271027 | Unhealthy
10281028 -- ^ @UNHEALTHY@
1029− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1029+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
10301030
10311031instance Hashable HealthStatusHealthState
10321032
@@ -1060,7 +1060,7 @@ data DeprecationStatusState
10601060 -- ^ @DEPRECATED@
10611061 | Obsolete
10621062 -- ^ @OBSOLETE@
1063− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1063+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
10641064
10651065instance Hashable DeprecationStatusState
10661066
@@ -1116,7 +1116,7 @@ data ManagedInstanceCurrentAction
11161116 -- ^ @REFRESHING@
11171117 | MICARestarting
11181118 -- ^ @RESTARTING@
1119− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1119+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
11201120
11211121instance Hashable ManagedInstanceCurrentAction
11221122
@@ -1152,7 +1152,7 @@ instance ToJSON ManagedInstanceCurrentAction where
11521152data TargetInstanceNATPolicy
11531153 = NoNAT
11541154 -- ^ @NO_NAT@
1155− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1155+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
11561156
11571157instance Hashable TargetInstanceNATPolicy
11581158
@@ -1176,7 +1176,7 @@ instance ToJSON TargetInstanceNATPolicy where
11761176data AccessConfigType
11771177 = OneToOneNAT
11781178 -- ^ @ONE_TO_ONE_NAT@
1179− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1179+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
11801180
11811181instance Hashable AccessConfigType
11821182
@@ -1204,7 +1204,7 @@ data OperationStatus
12041204 -- ^ @PENDING@
12051205 | Running
12061206 -- ^ @RUNNING@
1207− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1207+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
12081208
12091209instance Hashable OperationStatus
12101210
@@ -1260,7 +1260,7 @@ data TargetVPNGatewaysScopedListWarningCode
12601260 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
12611261 | TVGSLWCUnreachable
12621262 -- ^ @UNREACHABLE@
1263− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1263+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
12641264
12651265instance Hashable TargetVPNGatewaysScopedListWarningCode
12661266
@@ -1318,7 +1318,7 @@ data DiskStatus
13181318 -- ^ @READY@
13191319 | DSRestoring
13201320 -- ^ @RESTORING@
1321− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1321+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
13221322
13231323instance Hashable DiskStatus
13241324
@@ -1362,7 +1362,7 @@ data ManagedInstanceInstanceStatus
13621362 -- ^ @SUSPENDING@
13631363 | MIISTerminated
13641364 -- ^ @TERMINATED@
1365− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1365+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
13661366
13671367instance Hashable ManagedInstanceInstanceStatus
13681368
@@ -1402,7 +1402,7 @@ data AttachedDiskMode
14021402 -- ^ @READ_ONLY@
14031403 | ReadWrite
14041404 -- ^ @READ_WRITE@
1405− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1405+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
14061406
14071407instance Hashable AttachedDiskMode
14081408
@@ -1429,7 +1429,7 @@ data RegionStatus
14291429 -- ^ @DOWN@
14301430 | UP
14311431 -- ^ @UP@
1432− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1432+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
14331433
14341434instance Hashable RegionStatus
14351435
@@ -1476,7 +1476,7 @@ data VPNTunnelStatus
14761476 -- ^ @REJECTED@
14771477 | VTSWaitingForFullConfig
14781478 -- ^ @WAITING_FOR_FULL_CONFIG@
1479− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1479+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
14801480
14811481instance Hashable VPNTunnelStatus
14821482
@@ -1525,7 +1525,7 @@ data BackendBalancingMode
15251525 -- ^ @RATE@
15261526 | Utilization
15271527 -- ^ @UTILIZATION@
1528− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1528+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
15291529
15301530instance Hashable BackendBalancingMode
15311531
@@ -1559,7 +1559,7 @@ data ForwardingRuleIPProtocol
15591559 -- ^ @TCP@
15601560 | Udp
15611561 -- ^ @UDP@
1562− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1562+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
15631563
15641564instance Hashable ForwardingRuleIPProtocol
15651565
@@ -1595,7 +1595,7 @@ data AddressStatus
15951595 -- ^ @IN_USE@
15961596 | Reserved
15971597 -- ^ @RESERVED@
1598− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1598+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
15991599
16001600instance Hashable AddressStatus
16011601
@@ -1624,7 +1624,7 @@ data InstanceGroupsListInstancesRequestInstanceState
16241624 -- ^ @ALL@
16251625 | IGLIRISRunning
16261626 -- ^ @RUNNING@
1627− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1627+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
16281628
16291629instance Hashable InstanceGroupsListInstancesRequestInstanceState
16301630
@@ -1656,7 +1656,7 @@ data AttachedDiskInterface
16561656 -- ^ @NVME@
16571657 | Scsi
16581658 -- ^ @SCSI@
1659− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1659+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
16601660
16611661instance Hashable AttachedDiskInterface
16621662
@@ -1683,7 +1683,7 @@ data ZoneStatus
16831683 -- ^ @DOWN@
16841684 | ZSUP
16851685 -- ^ @UP@
1686− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1686+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
16871687
16881688instance Hashable ZoneStatus
16891689
@@ -1737,7 +1737,7 @@ data SubnetworksScopedListWarningCode
17371737 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
17381738 | SSLWCUnreachable
17391739 -- ^ @UNREACHABLE@
1740− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1740+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
17411741
17421742instance Hashable SubnetworksScopedListWarningCode
17431743
@@ -1842,7 +1842,7 @@ data QuotaMetric
18421842 -- ^ @URL_MAPS@
18431843 | VPNTunnels
18441844 -- ^ @VPN_TUNNELS@
1845− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1845+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
18461846
18471847instance Hashable QuotaMetric
18481848
@@ -1934,7 +1934,7 @@ data InstanceStatus
19341934 -- ^ @SUSPENDING@
19351935 | ISTerminated
19361936 -- ^ @TERMINATED@
1937− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1937+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
19381938
19391939instance Hashable InstanceStatus
19401940
@@ -2000,7 +2000,7 @@ data MachineTypesScopedListWarningCode
20002000 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
20012001 | MTSLWCUnreachable
20022002 -- ^ @UNREACHABLE@
2003− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2003+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
20042004
20052005instance Hashable MachineTypesScopedListWarningCode
20062006
@@ -2080,7 +2080,7 @@ data DiskTypesScopedListWarningCode
20802080 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
20812081 | DTSLWCUnreachable
20822082 -- ^ @UNREACHABLE@
2083− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2083+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
20842084
20852085instance Hashable DiskTypesScopedListWarningCode
20862086
@@ -2160,7 +2160,7 @@ data AutoscalersScopedListWarningCode
21602160 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
21612161 | AUnreachable
21622162 -- ^ @UNREACHABLE@
2163− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2163+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
21642164
21652165instance Hashable AutoscalersScopedListWarningCode
21662166
@@ -2240,7 +2240,7 @@ data VPNTunnelsScopedListWarningCode
22402240 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
22412241 | VTSLWCUnreachable
22422242 -- ^ @UNREACHABLE@
2243− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2243+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
22442244
22452245instance Hashable VPNTunnelsScopedListWarningCode
22462246
@@ -2320,7 +2320,7 @@ data InstanceGroupsScopedListWarningCode
23202320 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
23212321 | IGSLWCUnreachable
23222322 -- ^ @UNREACHABLE@
2323− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2323+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
23242324
23252325instance Hashable InstanceGroupsScopedListWarningCode
23262326
@@ -2385,7 +2385,7 @@ data InstanceWithNamedPortsStatus
23852385 -- ^ @SUSPENDING@
23862386 | IWNPSTerminated
23872387 -- ^ @TERMINATED@
2388− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2388+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
23892389
23902390instance Hashable InstanceWithNamedPortsStatus
23912391
@@ -2451,7 +2451,7 @@ data InstancesScopedListWarningCode
24512451 -- ^ @SINGLE_INSTANCE_PROPERTY_TEMPLATE@
24522452 | ISLWCUnreachable
24532453 -- ^ @UNREACHABLE@
2454− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2454+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
24552455
24562456instance Hashable InstancesScopedListWarningCode
24572457
@@ -2512,7 +2512,7 @@ data TargetPoolSessionAffinity
25122512 -- ^ @CLIENT_IP_PROTO@
25132513 | None
25142514 -- ^ @NONE@
2515− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2515+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
25162516
25172517instance Hashable TargetPoolSessionAffinity
25182518
@@ -2541,7 +2541,7 @@ instance ToJSON TargetPoolSessionAffinity where
25412541data ImageRawDiskContainerType
25422542 = TAR
25432543 -- ^ @TAR@
2544− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2544+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
25452545
25462546instance Hashable ImageRawDiskContainerType
25472547
gogol-customsearch/gen/Network/Google/CustomSearch/Types/Sum.hs+9−9
@@ -36,7 +36,7 @@ data CSEListImgType
3636 | Photo
3737 -- ^ @photo@
3838 -- photo
39− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
39+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
4040
4141instance Hashable CSEListImgType
4242
@@ -72,7 +72,7 @@ data CSEListSiteSearchFilter
7272 | I
7373 -- ^ @i@
7474 -- include
75− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
75+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
7676
7777instance Hashable CSEListSiteSearchFilter
7878
@@ -126,7 +126,7 @@ data CSEListImgDominantColor
126126 | Yellow
127127 -- ^ @yellow@
128128 -- yellow
129− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
129+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
130130
131131instance Hashable CSEListImgDominantColor
132132
@@ -174,7 +174,7 @@ data CSEListSafe
174174 | Off
175175 -- ^ @off@
176176 -- Disables safe search filtering.
177− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
177+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
178178
179179instance Hashable CSEListSafe
180180
@@ -209,7 +209,7 @@ data CSEListImgColorType
209209 | CSELICTMono
210210 -- ^ @mono@
211211 -- mono
212− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
212+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
213213
214214instance Hashable CSEListImgColorType
215215
@@ -240,7 +240,7 @@ data CSEListFilter
240240 | CSELF1
241241 -- ^ @1@
242242 -- 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)
244244
245245instance Hashable CSEListFilter
246246
@@ -368,7 +368,7 @@ data CSEListLr
368368 | LangZhTw
369369 -- ^ @lang_zh-TW@
370370 -- Chinese (Traditional)
371− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
371+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
372372
373373instance Hashable CSEListLr
374374
@@ -460,7 +460,7 @@ data CSEListSearchType
460460 = Image
461461 -- ^ @image@
462462 -- custom image search
463− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
463+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
464464
465465instance Hashable CSEListSearchType
466466
@@ -503,7 +503,7 @@ data CSEListImgSize
503503 | CSELISXxlarge
504504 -- ^ @xxlarge@
505505 -- xxlarge
506− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
506+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
507507
508508instance Hashable CSEListImgSize
509509
gogol-dataproc/gen/Network/Google/Resource/Dataproc/Media/Upload.hs+3−3
@@ -76,8 +76,8 @@ type MediaUploadResource =
7676 QueryParam "bearer_token" Text :>
7777 QueryParam "callback" Text :>
7878 QueryParam "alt" AltJSON :>
79− QueryParam "uploadType" AltMedia :>
80− MultipartRelated '[JSON] Media RequestBody :>
79+ QueryParam "uploadType" Multipart :>
80+ MultipartRelated '[JSON] Media :>
8181 Post '[JSON] Media
8282
8383-- | Method for media upload. Upload is supported on the URI
@@ -216,7 +216,7 @@ instance GoogleRequest (MediaUpload MediaUpload')
216216 _muBearerToken
217217 _muCallback
218218 (Just AltJSON)
219− (Just AltMedia)
219+ (Just Multipart)
220220 _muPayload
221221 body
222222 dataprocService
gogol-datastore/gen/Network/Google/Datastore.hs+91−104
@@ -13,16 +13,16 @@
1313-- Stability : auto-generated
1414-- Portability : non-portable (GHC extensions)
1515--
16−-- API for accessing Google Cloud Datastore.
16+-- Google Cloud Datastore is a schemaless NoSQL datastore providing robust,
17+-- scalable storage for your application.
1718--
18−-- /See:/ <https://developers.google.com/datastore/ Google Cloud Datastore API Reference>
19+-- /See:/ <https://cloud.google.com/datastore/ Google Cloud Datastore API Reference>
1920module Network.Google.Datastore
2021 (
2122 -- * Service Configuration
2223 datastoreService
2324
2425 -- * OAuth Scopes
25− , userInfoEmailScope
2626 , cloudPlatformScope
2727 , datastoreScope
2828
@@ -31,26 +31,32 @@ module Network.Google.Datastore
3131
3232 -- * Resources
3333
34− -- ** datastore.datasets.allocateIds
35− , module Network.Google.Resource.Datastore.DataSets.AllocateIds
34+ -- ** datastore.projects.allocateIds
35+ , module Network.Google.Resource.Datastore.Projects.AllocateIds
3636
37− -- ** datastore.datasets.beginTransaction
38− , module Network.Google.Resource.Datastore.DataSets.BeginTransaction
37+ -- ** datastore.projects.beginTransaction
38+ , module Network.Google.Resource.Datastore.Projects.BeginTransaction
3939
40− -- ** datastore.datasets.commit
41− , module Network.Google.Resource.Datastore.DataSets.Commit
40+ -- ** datastore.projects.commit
41+ , module Network.Google.Resource.Datastore.Projects.Commit
4242
43− -- ** datastore.datasets.lookup
44− , module Network.Google.Resource.Datastore.DataSets.Lookup
43+ -- ** datastore.projects.lookup
44+ , module Network.Google.Resource.Datastore.Projects.Lookup
4545
46− -- ** datastore.datasets.rollback
47− , module Network.Google.Resource.Datastore.DataSets.Rollback
46+ -- ** datastore.projects.rollback
47+ , module Network.Google.Resource.Datastore.Projects.Rollback
4848
49− -- ** datastore.datasets.runQuery
50− , module Network.Google.Resource.Datastore.DataSets.RunQuery
49+ -- ** datastore.projects.runQuery
50+ , module Network.Google.Resource.Datastore.Projects.RunQuery
5151
5252 -- * Types
5353
54+ -- ** LatLng
55+ , LatLng
56+ , latLng
57+ , llLatitude
58+ , llLongitude
59+
5460 -- ** PropertyOrderDirection
5561 , PropertyOrderDirection (..)
5662
@@ -59,37 +65,25 @@ module Network.Google.Datastore
5965 , rollbackRequest
6066 , rrTransaction
6167
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−
7868 -- ** PartitionId
7969 , PartitionId
8070 , partitionId
81− , piNamespace
82− , piDataSetId
71+ , piNamespaceId
72+ , piProjectId
8373
8474 -- ** QueryResultBatch
8575 , QueryResultBatch
8676 , queryResultBatch
8777 , qrbSkippedResults
78+ , qrbSkippedCursor
8879 , qrbEntityResultType
8980 , qrbEntityResults
9081 , qrbMoreResults
9182 , qrbEndCursor
9283
84+ -- ** CompositeFilterOp
85+ , CompositeFilterOp (..)
86+
9387 -- ** EntityProperties
9488 , EntityProperties
9589 , entityProperties
@@ -98,7 +92,6 @@ module Network.Google.Datastore
9892 -- ** BeginTransactionRequest
9993 , BeginTransactionRequest
10094 , beginTransactionRequest
101− , btrIsolationLevel
10295
10396 -- ** RunQueryRequest
10497 , RunQueryRequest
@@ -119,12 +112,9 @@ module Network.Google.Datastore
119112 -- ** CompositeFilter
120113 , CompositeFilter
121114 , compositeFilter
122− , cfOperator
115+ , cfOp
123116 , cfFilters
124117
125− -- ** CompositeFilterOperator
126− , CompositeFilterOperator (..)
127−
128118 -- ** QueryResultBatchMoreResults
129119 , QueryResultBatchMoreResults (..)
130120
@@ -132,50 +122,51 @@ module Network.Google.Datastore
132122 , BeginTransactionResponse
133123 , beginTransactionResponse
134124 , btrTransaction
135− , btrHeader
136125
137126 -- ** MutationResult
138127 , MutationResult
139128 , mutationResult
140− , mrInsertAutoIdKeys
141− , mrIndexUpdates
129+ , mrKey
142130
143131 -- ** AllocateIdsResponse
144132 , AllocateIdsResponse
145133 , allocateIdsResponse
146134 , aKeys
147− , aHeader
148135
149136 -- ** GqlQuery
150137 , GqlQuery
151138 , gqlQuery
152− , gqAllowLiteral
153− , gqNumberArgs
139+ , gqPositionalBindings
140+ , gqNamedBindings
154141 , gqQueryString
155− , gqNameArgs
142+ , gqAllowLiterals
156143
157144 -- ** RunQueryResponse
158145 , RunQueryResponse
159146 , runQueryResponse
160− , rqrBatch
161− , rqrHeader
147+ , rBatch
148+ , rQuery
162149
163150 -- ** Value
164151 , Value
165152 , value
166153 , vKeyValue
167− , vBlobKeyValue
168− , vDateTimeValue
154+ , vGeoPointValue
169155 , vIntegerValue
156+ , vTimestampValue
170157 , vEntityValue
158+ , vExcludeFromIndexes
171159 , vDoubleValue
172160 , vStringValue
173− , vListValue
174− , vIndexed
175161 , vBooleanValue
176162 , vMeaning
163+ , vArrayValue
164+ , vNullValue
177165 , vBlobValue
178166
167+ -- ** ValueNullValue
168+ , ValueNullValue (..)
169+
179170 -- ** LookupRequest
180171 , LookupRequest
181172 , lookupRequest
@@ -189,75 +180,65 @@ module Network.Google.Datastore
189180 , Mutation
190181 , mutation
191182 , mInsert
192− , mForce
193− , mInsertAutoId
194183 , mUpsert
195184 , mDelete
196185 , mUpdate
197186
198− -- ** ResponseHeader
199− , ResponseHeader
200− , responseHeader
201− , rhKind
202−
203− -- ** KeyPathElement
204− , KeyPathElement
205− , keyPathElement
206− , kpeKind
207− , kpeName
208− , kpeId
187+ -- ** GqlQueryNamedBindings
188+ , GqlQueryNamedBindings
189+ , gqlQueryNamedBindings
190+ , gqnbAddtional
209191
210192 -- ** PropertyReference
211193 , PropertyReference
212194 , propertyReference
213195 , prName
214196
215− -- ** GqlQueryArg
216− , GqlQueryArg
217− , gqlQueryArg
218− , gqaCursor
219− , gqaValue
220− , gqaName
221−
222197 -- ** Key
223198 , Key
224199 , key
225200 , kPartitionId
226201 , kPath
227202
228− -- ** PropertyFilterOperator
229− , PropertyFilterOperator (..)
230−
231203 -- ** PropertyFilter
232204 , PropertyFilter
233205 , propertyFilter
234206 , pfProperty
235− , pfOperator
207+ , pfOp
236208 , pfValue
237209
238210 -- ** Query
239211 , Query
240212 , query
241− , qGroupBy
242213 , qStartCursor
243214 , qOffSet
215+ , qKind
216+ , qDistinctOn
244217 , qEndCursor
245218 , qLimit
246219 , qProjection
247220 , qFilter
248− , qKinds
249221 , qOrder
250222
223+ -- ** ArrayValue
224+ , ArrayValue
225+ , arrayValue
226+ , avValues
227+
251228 -- ** EntityResult
252229 , EntityResult
253230 , entityResult
231+ , erCursor
254232 , erEntity
255233
234+ -- ** Xgafv
235+ , Xgafv (..)
236+
256237 -- ** CommitResponse
257238 , CommitResponse
258239 , commitResponse
259− , crMutationResult
260− , crHeader
240+ , crIndexUpdates
241+ , crMutationResults
261242
262243 -- ** KindExpression
263244 , KindExpression
@@ -273,13 +254,11 @@ module Network.Google.Datastore
273254 -- ** RollbackResponse
274255 , RollbackResponse
275256 , rollbackResponse
276− , rrHeader
277257
278− -- ** PropertyExpression
279− , PropertyExpression
280− , propertyExpression
281− , peProperty
282− , peAggregationFunction
258+ -- ** Projection
259+ , Projection
260+ , projection
261+ , pProperty
283262
284263 -- ** Filter
285264 , Filter
@@ -287,22 +266,25 @@ module Network.Google.Datastore
287266 , fCompositeFilter
288267 , fPropertyFilter
289268
290− -- ** BeginTransactionRequestIsolationLevel
291− , BeginTransactionRequestIsolationLevel (..)
269+ -- ** PropertyFilterOp
270+ , PropertyFilterOp (..)
292271
293272 -- ** CommitRequest
294273 , CommitRequest
295274 , commitRequest
275+ , crMutations
296276 , crMode
297− , crMutation
298277 , crTransaction
299− , crIgnoreReadOnly
300278
301279 -- ** CommitRequestMode
302280 , CommitRequestMode (..)
303281
304− -- ** PropertyExpressionAggregationFunction
305− , PropertyExpressionAggregationFunction (..)
282+ -- ** PathElement
283+ , PathElement
284+ , pathElement
285+ , peKind
286+ , peName
287+ , peId
306288
307289 -- ** Entity
308290 , Entity
@@ -316,23 +298,28 @@ module Network.Google.Datastore
316298 , lrDeferred
317299 , lrFound
318300 , lrMissing
319− , lrHeader
320301
321302 -- ** PropertyOrder
322303 , PropertyOrder
323304 , propertyOrder
324305 , poProperty
325306 , poDirection
307+
308+ -- ** GqlQueryParameter
309+ , GqlQueryParameter
310+ , gqlQueryParameter
311+ , gqpCursor
312+ , gqpValue
326313 ) where
327314
328315import Network.Google.Datastore.Types
329316import Network.Google.Prelude
330−import Network.Google.Resource.Datastore.DataSets.AllocateIds
331−import Network.Google.Resource.Datastore.DataSets.BeginTransaction
332−import Network.Google.Resource.Datastore.DataSets.Commit
333−import Network.Google.Resource.Datastore.DataSets.Lookup
334−import Network.Google.Resource.Datastore.DataSets.Rollback
335−import Network.Google.Resource.Datastore.DataSets.RunQuery
317+import Network.Google.Resource.Datastore.Projects.AllocateIds
318+import Network.Google.Resource.Datastore.Projects.BeginTransaction
319+import Network.Google.Resource.Datastore.Projects.Commit
320+import Network.Google.Resource.Datastore.Projects.Lookup
321+import Network.Google.Resource.Datastore.Projects.Rollback
322+import Network.Google.Resource.Datastore.Projects.RunQuery
336323
337324{- $resources
338325TODO
@@ -340,9 +327,9 @@ TODO
340327
341328-- | Represents the entirety of the methods and resources available for the Google Cloud Datastore API service.
342329type DatastoreAPI =
343− DataSetsBeginTransactionResource :<|>
344− DataSetsAllocateIdsResource
345− :<|> DataSetsRunQueryResource
346− :<|> DataSetsRollbackResource
347− :<|> DataSetsLookupResource
348− :<|> DataSetsCommitResource
330+ ProjectsBeginTransactionResource :<|>
331+ ProjectsAllocateIdsResource
332+ :<|> ProjectsRunQueryResource
333+ :<|> ProjectsRollbackResource
334+ :<|> ProjectsLookupResource
335+ :<|> ProjectsCommitResource
gogol-datastore/gen/Network/Google/Datastore/Types.hs+67−85
@@ -20,10 +20,15 @@ module Network.Google.Datastore.Types
2020 datastoreService
2121
2222 -- * OAuth Scopes
23− , userInfoEmailScope
2423 , cloudPlatformScope
2524 , datastoreScope
2625
26+ -- * LatLng
27+ , LatLng
28+ , latLng
29+ , llLatitude
30+ , llLongitude
31+
2732 -- * PropertyOrderDirection
2833 , PropertyOrderDirection (..)
2934
@@ -32,37 +37,25 @@ module Network.Google.Datastore.Types
3237 , rollbackRequest
3338 , rrTransaction
3439
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−
5140 -- * PartitionId
5241 , PartitionId
5342 , partitionId
54− , piNamespace
55− , piDataSetId
43+ , piNamespaceId
44+ , piProjectId
5645
5746 -- * QueryResultBatch
5847 , QueryResultBatch
5948 , queryResultBatch
6049 , qrbSkippedResults
50+ , qrbSkippedCursor
6151 , qrbEntityResultType
6252 , qrbEntityResults
6353 , qrbMoreResults
6454 , qrbEndCursor
6555
56+ -- * CompositeFilterOp
57+ , CompositeFilterOp (..)
58+
6659 -- * EntityProperties
6760 , EntityProperties
6861 , entityProperties
@@ -71,7 +64,6 @@ module Network.Google.Datastore.Types
7164 -- * BeginTransactionRequest
7265 , BeginTransactionRequest
7366 , beginTransactionRequest
74− , btrIsolationLevel
7567
7668 -- * RunQueryRequest
7769 , RunQueryRequest
@@ -92,12 +84,9 @@ module Network.Google.Datastore.Types
9284 -- * CompositeFilter
9385 , CompositeFilter
9486 , compositeFilter
95− , cfOperator
87+ , cfOp
9688 , cfFilters
9789
98− -- * CompositeFilterOperator
99− , CompositeFilterOperator (..)
100−
10190 -- * QueryResultBatchMoreResults
10291 , QueryResultBatchMoreResults (..)
10392
@@ -105,50 +94,51 @@ module Network.Google.Datastore.Types
10594 , BeginTransactionResponse
10695 , beginTransactionResponse
10796 , btrTransaction
108− , btrHeader
10997
11098 -- * MutationResult
11199 , MutationResult
112100 , mutationResult
113− , mrInsertAutoIdKeys
114− , mrIndexUpdates
101+ , mrKey
115102
116103 -- * AllocateIdsResponse
117104 , AllocateIdsResponse
118105 , allocateIdsResponse
119106 , aKeys
120− , aHeader
121107
122108 -- * GqlQuery
123109 , GqlQuery
124110 , gqlQuery
125− , gqAllowLiteral
126− , gqNumberArgs
111+ , gqPositionalBindings
112+ , gqNamedBindings
127113 , gqQueryString
128− , gqNameArgs
114+ , gqAllowLiterals
129115
130116 -- * RunQueryResponse
131117 , RunQueryResponse
132118 , runQueryResponse
133− , rqrBatch
134− , rqrHeader
119+ , rBatch
120+ , rQuery
135121
136122 -- * Value
137123 , Value
138124 , value
139125 , vKeyValue
140− , vBlobKeyValue
141− , vDateTimeValue
126+ , vGeoPointValue
142127 , vIntegerValue
128+ , vTimestampValue
143129 , vEntityValue
130+ , vExcludeFromIndexes
144131 , vDoubleValue
145132 , vStringValue
146− , vListValue
147− , vIndexed
148133 , vBooleanValue
149134 , vMeaning
135+ , vArrayValue
136+ , vNullValue
150137 , vBlobValue
151138
139+ -- * ValueNullValue
140+ , ValueNullValue (..)
141+
152142 -- * LookupRequest
153143 , LookupRequest
154144 , lookupRequest
@@ -162,75 +152,65 @@ module Network.Google.Datastore.Types
162152 , Mutation
163153 , mutation
164154 , mInsert
165− , mForce
166− , mInsertAutoId
167155 , mUpsert
168156 , mDelete
169157 , mUpdate
170158
171− -- * ResponseHeader
172− , ResponseHeader
173− , responseHeader
174− , rhKind
175−
176− -- * KeyPathElement
177− , KeyPathElement
178− , keyPathElement
179− , kpeKind
180− , kpeName
181− , kpeId
159+ -- * GqlQueryNamedBindings
160+ , GqlQueryNamedBindings
161+ , gqlQueryNamedBindings
162+ , gqnbAddtional
182163
183164 -- * PropertyReference
184165 , PropertyReference
185166 , propertyReference
186167 , prName
187168
188− -- * GqlQueryArg
189− , GqlQueryArg
190− , gqlQueryArg
191− , gqaCursor
192− , gqaValue
193− , gqaName
194−
195169 -- * Key
196170 , Key
197171 , key
198172 , kPartitionId
199173 , kPath
200174
201− -- * PropertyFilterOperator
202− , PropertyFilterOperator (..)
203−
204175 -- * PropertyFilter
205176 , PropertyFilter
206177 , propertyFilter
207178 , pfProperty
208− , pfOperator
179+ , pfOp
209180 , pfValue
210181
211182 -- * Query
212183 , Query
213184 , query
214− , qGroupBy
215185 , qStartCursor
216186 , qOffSet
187+ , qKind
188+ , qDistinctOn
217189 , qEndCursor
218190 , qLimit
219191 , qProjection
220192 , qFilter
221− , qKinds
222193 , qOrder
223194
195+ -- * ArrayValue
196+ , ArrayValue
197+ , arrayValue
198+ , avValues
199+
224200 -- * EntityResult
225201 , EntityResult
226202 , entityResult
203+ , erCursor
227204 , erEntity
228205
206+ -- * Xgafv
207+ , Xgafv (..)
208+
229209 -- * CommitResponse
230210 , CommitResponse
231211 , commitResponse
232− , crMutationResult
233− , crHeader
212+ , crIndexUpdates
213+ , crMutationResults
234214
235215 -- * KindExpression
236216 , KindExpression
@@ -246,13 +226,11 @@ module Network.Google.Datastore.Types
246226 -- * RollbackResponse
247227 , RollbackResponse
248228 , rollbackResponse
249− , rrHeader
250229
251− -- * PropertyExpression
252− , PropertyExpression
253− , propertyExpression
254− , peProperty
255− , peAggregationFunction
230+ -- * Projection
231+ , Projection
232+ , projection
233+ , pProperty
256234
257235 -- * Filter
258236 , Filter
@@ -260,22 +238,25 @@ module Network.Google.Datastore.Types
260238 , fCompositeFilter
261239 , fPropertyFilter
262240
263− -- * BeginTransactionRequestIsolationLevel
264− , BeginTransactionRequestIsolationLevel (..)
241+ -- * PropertyFilterOp
242+ , PropertyFilterOp (..)
265243
266244 -- * CommitRequest
267245 , CommitRequest
268246 , commitRequest
247+ , crMutations
269248 , crMode
270− , crMutation
271249 , crTransaction
272− , crIgnoreReadOnly
273250
274251 -- * CommitRequestMode
275252 , CommitRequestMode (..)
276253
277− -- * PropertyExpressionAggregationFunction
278− , PropertyExpressionAggregationFunction (..)
254+ -- * PathElement
255+ , PathElement
256+ , pathElement
257+ , peKind
258+ , peName
259+ , peId
279260
280261 -- * Entity
281262 , Entity
@@ -289,28 +270,29 @@ module Network.Google.Datastore.Types
289270 , lrDeferred
290271 , lrFound
291272 , lrMissing
292− , lrHeader
293273
294274 -- * PropertyOrder
295275 , PropertyOrder
296276 , propertyOrder
297277 , poProperty
298278 , poDirection
279+
280+ -- * GqlQueryParameter
281+ , GqlQueryParameter
282+ , gqlQueryParameter
283+ , gqpCursor
284+ , gqpValue
299285 ) where
300286
301287import Network.Google.Datastore.Types.Product
302288import Network.Google.Datastore.Types.Sum
303289import Network.Google.Prelude
304290
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.
306292datastoreService :: ServiceConfig
307293datastoreService
308− = defaultService (ServiceId "datastore:v1beta2")
309− "www.googleapis.com"
310−
311−-- | View your email address
312−userInfoEmailScope :: Proxy '["https://www.googleapis.com/auth/userinfo.email"]
313−userInfoEmailScope = Proxy;
294+ = defaultService (ServiceId "datastore:v1beta3")
295+ "datastore.googleapis.com"
314296
315297-- | View and manage your data across Google Cloud Platform services
316298cloudPlatformScope :: 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
2020import Network.Google.Datastore.Types.Sum
2121import Network.Google.Prelude
2222
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.
2397--
2498-- /See:/ 'rollbackRequest' smart constructor.
2599newtype RollbackRequest = RollbackRequest'
@@ -38,7 +112,8 @@ rollbackRequest =
38112 { _rrTransaction = Nothing
39113 }
40114
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.
42117rrTransaction :: Lens' RollbackRequest (Maybe Word8)
43118rrTransaction
44119 = lens _rrTransaction
@@ -55,237 +130,70 @@ instance ToJSON RollbackRequest where
55130 = object
56131 (catMaybes [("transaction" .=) <$> _rrTransaction])
57132
58−-- | An entity property.
59−--
60−-- /See:/ 'property' smart constructor.
61−data Property = Property'
62− { _pKeyValue :: !(Maybe Key)
63− , _pBlobKeyValue :: !(Maybe Text)
64− , _pDateTimeValue :: !(Maybe DateTime')
65− , _pIntegerValue :: !(Maybe (Textual Int64))
66− , _pEntityValue :: !(Maybe Entity)
67− , _pDoubleValue :: !(Maybe (Textual Double))
68− , _pStringValue :: !(Maybe Text)
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.
133+-- | A partition ID identifies a grouping of entities. The grouping is always
134+-- by project and namespace, however the namespace ID may be empty. A
135+-- partition ID contains several dimensions: project ID and namespace ID.
136+-- Partition dimensions: - May be \`\"\"\`. - Must be valid UTF-8 bytes. -
137+-- Must have values that match regex \`[A-Za-z\\d\\.\\-_]{1,100}\` If the
138+-- value of any dimension matches regex \`__.*__\`, the partition is
139+-- reserved\/read-only. A reserved\/read-only partition ID is forbidden in
140+-- certain documented contexts. Foreign partition IDs (in which the project
141+-- ID does not match the context project ID ) are discouraged. Reads and
142+-- writes of foreign partition IDs may fail if the project is not in an
143+-- active state.
238144--
239145-- /See:/ 'partitionId' smart constructor.
240146data PartitionId = PartitionId'
241− { _piNamespace :: !(Maybe Text)
242− , _piDataSetId :: !(Maybe Text)
147+ { _piNamespaceId :: !(Maybe Text)
148+ , _piProjectId :: !(Maybe Text)
243149 } deriving (Eq,Show,Data,Typeable,Generic)
244150
245151-- | Creates a value of 'PartitionId' with the minimum fields required to make a request.
246152--
247153-- Use one of the following lenses to modify other fields as desired:
248154--
249−-- * 'piNamespace'
155+-- * 'piNamespaceId'
250156--
251−-- * 'piDataSetId'
157+-- * 'piProjectId'
252158partitionId
253159 :: PartitionId
254160partitionId =
255161 PartitionId'
256− { _piNamespace = Nothing
257− , _piDataSetId = Nothing
162+ { _piNamespaceId = Nothing
163+ , _piProjectId = Nothing
258164 }
259165
260−-- | The namespace.
261−piNamespace :: Lens' PartitionId (Maybe Text)
262−piNamespace
263− = lens _piNamespace (\ s a -> s{_piNamespace = a})
166+-- | If not empty, the ID of the namespace to which the entities belong.
167+piNamespaceId :: Lens' PartitionId (Maybe Text)
168+piNamespaceId
169+ = lens _piNamespaceId
170+ (\ s a -> s{_piNamespaceId = a})
264171
265−-- | The dataset ID.
266−piDataSetId :: Lens' PartitionId (Maybe Text)
267−piDataSetId
268− = lens _piDataSetId (\ s a -> s{_piDataSetId = a})
172+-- | The ID of the project to which the entities belong.
173+piProjectId :: Lens' PartitionId (Maybe Text)
174+piProjectId
175+ = lens _piProjectId (\ s a -> s{_piProjectId = a})
269176
270177instance FromJSON PartitionId where
271178 parseJSON
272179 = withObject "PartitionId"
273180 (\ o ->
274181 PartitionId' <$>
275− (o .:? "namespace") <*> (o .:? "datasetId"))
182+ (o .:? "namespaceId") <*> (o .:? "projectId"))
276183
277184instance ToJSON PartitionId where
278185 toJSON PartitionId'{..}
279186 = object
280187 (catMaybes
281− [("namespace" .=) <$> _piNamespace,
282− ("datasetId" .=) <$> _piDataSetId])
188+ [("namespaceId" .=) <$> _piNamespaceId,
189+ ("projectId" .=) <$> _piProjectId])
283190
284191-- | A batch of results produced by a query.
285192--
286193-- /See:/ 'queryResultBatch' smart constructor.
287194data QueryResultBatch = QueryResultBatch'
288195 { _qrbSkippedResults :: !(Maybe (Textual Int32))
196+ , _qrbSkippedCursor :: !(Maybe (Textual Word8))
289197 , _qrbEntityResultType :: !(Maybe QueryResultBatchEntityResultType)
290198 , _qrbEntityResults :: !(Maybe [EntityResult])
291199 , _qrbMoreResults :: !(Maybe QueryResultBatchMoreResults)
@@ -298,6 +206,8 @@ data QueryResultBatch = QueryResultBatch'
298206--
299207-- * 'qrbSkippedResults'
300208--
209+-- * 'qrbSkippedCursor'
210+--
301211-- * 'qrbEntityResultType'
302212--
303213-- * 'qrbEntityResults'
@@ -310,22 +220,29 @@ queryResultBatch
310220queryResultBatch =
311221 QueryResultBatch'
312222 { _qrbSkippedResults = Nothing
223+ , _qrbSkippedCursor = Nothing
313224 , _qrbEntityResultType = Nothing
314225 , _qrbEntityResults = Nothing
315226 , _qrbMoreResults = Nothing
316227 , _qrbEndCursor = Nothing
317228 }
318229
319−-- | The number of results skipped because of Query.offset.
230+-- | The number of results skipped, typically because of an offset.
320231qrbSkippedResults :: Lens' QueryResultBatch (Maybe Int32)
321232qrbSkippedResults
322233 = lens _qrbSkippedResults
323234 (\ s a -> s{_qrbSkippedResults = a})
324235 . mapping _Coerce
325236
326−-- | The result type for every entity in entityResults. full for full
327−-- entities, projection for entities with only projected properties,
328−-- keyOnly for entities with only a key.
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+
245+-- | The result type for every entity in \`entity_results\`.
329246qrbEntityResultType :: Lens' QueryResultBatch (Maybe QueryResultBatchEntityResultType)
330247qrbEntityResultType
331248 = lens _qrbEntityResultType
@@ -339,16 +256,13 @@ qrbEntityResults
339256 . _Default
340257 . _Coerce
341258
342−-- | The state of the query after the current batch. One of notFinished,
343−-- moreResultsAfterLimit, noMoreResults.
259+-- | The state of the query after the current batch.
344260qrbMoreResults :: Lens' QueryResultBatch (Maybe QueryResultBatchMoreResults)
345261qrbMoreResults
346262 = lens _qrbMoreResults
347263 (\ s a -> s{_qrbMoreResults = a})
348264
349265-- | 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.
352266qrbEndCursor :: Lens' QueryResultBatch (Maybe Word8)
353267qrbEndCursor
354268 = lens _qrbEndCursor (\ s a -> s{_qrbEndCursor = a})
@@ -359,8 +273,8 @@ instance FromJSON QueryResultBatch where
359273 = withObject "QueryResultBatch"
360274 (\ o ->
361275 QueryResultBatch' <$>
362− (o .:? "skippedResults") <*>
363− (o .:? "entityResultType")
276+ (o .:? "skippedResults") <*> (o .:? "skippedCursor")
277+ <*> (o .:? "entityResultType")
364278 <*> (o .:? "entityResults" .!= mempty)
365279 <*> (o .:? "moreResults")
366280 <*> (o .:? "endCursor"))
@@ -370,16 +284,20 @@ instance ToJSON QueryResultBatch where
370284 = object
371285 (catMaybes
372286 [("skippedResults" .=) <$> _qrbSkippedResults,
287+ ("skippedCursor" .=) <$> _qrbSkippedCursor,
373288 ("entityResultType" .=) <$> _qrbEntityResultType,
374289 ("entityResults" .=) <$> _qrbEntityResults,
375290 ("moreResults" .=) <$> _qrbMoreResults,
376291 ("endCursor" .=) <$> _qrbEndCursor])
377292
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 \`\"\"\`.
379297--
380298-- /See:/ 'entityProperties' smart constructor.
381299newtype EntityProperties = EntityProperties'
382− { _epAddtional :: HashMap Text Property
300+ { _epAddtional :: HashMap Text Value
383301 } deriving (Eq,Show,Data,Typeable,Generic)
384302
385303-- | Creates a value of 'EntityProperties' with the minimum fields required to make a request.
@@ -388,18 +306,14 @@ newtype EntityProperties = EntityProperties'
388306--
389307-- * 'epAddtional'
390308entityProperties
391− :: HashMap Text Property -- ^ 'epAddtional'
309+ :: HashMap Text Value -- ^ 'epAddtional'
392310 -> EntityProperties
393311entityProperties pEpAddtional_ =
394312 EntityProperties'
395313 { _epAddtional = _Coerce # pEpAddtional_
396314 }
397315
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)
403317epAddtional
404318 = lens _epAddtional (\ s a -> s{_epAddtional = a}) .
405319 _Coerce
@@ -412,48 +326,28 @@ instance FromJSON EntityProperties where
412326instance ToJSON EntityProperties where
413327 toJSON = toJSON . _epAddtional
414328
329+-- | The request for google.datastore.v1beta3.Datastore.BeginTransaction.
415330--
416331-- /See:/ 'beginTransactionRequest' smart constructor.
417−newtype BeginTransactionRequest = BeginTransactionRequest'
418− { _btrIsolationLevel :: Maybe BeginTransactionRequestIsolationLevel
419− } deriving (Eq,Show,Data,Typeable,Generic)
332+data BeginTransactionRequest =
333+ BeginTransactionRequest'
334+ deriving (Eq,Show,Data,Typeable,Generic)
420335
421336-- | Creates a value of 'BeginTransactionRequest' with the minimum fields required to make a request.
422337--
423−-- Use one of the following lenses to modify other fields as desired:
424−--
425−-- * 'btrIsolationLevel'
426338beginTransactionRequest
427339 :: BeginTransactionRequest
428−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})
340+beginTransactionRequest = BeginTransactionRequest'
443341
444342instance FromJSON BeginTransactionRequest where
445343 parseJSON
446344 = withObject "BeginTransactionRequest"
447− (\ o ->
448− BeginTransactionRequest' <$>
449− (o .:? "isolationLevel"))
345+ (\ o -> pure BeginTransactionRequest')
450346
451347instance ToJSON BeginTransactionRequest where
452− toJSON BeginTransactionRequest'{..}
453− = object
454− (catMaybes
455− [("isolationLevel" .=) <$> _btrIsolationLevel])
348+ toJSON = const emptyObject
456349
350+-- | The request for google.datastore.v1beta3.Datastore.RunQuery.
457351--
458352-- /See:/ 'runQueryRequest' smart constructor.
459353data RunQueryRequest = RunQueryRequest'
@@ -484,25 +378,20 @@ runQueryRequest =
484378 , _rqrReadOptions = Nothing
485379 }
486380
487−-- | Entities are partitioned into subsets, identified by a dataset (usually
488−-- implicitly specified by the project) and namespace ID. Queries are
489−-- scoped to a single partition. This partition ID is normalized with the
490−-- standard default context partition ID, but all other partition IDs in
491−-- RunQueryRequest are normalized with this partition ID as the context
492−-- partition ID.
381+-- | Entities are partitioned into subsets, identified by a partition ID.
382+-- Queries are scoped to a single partition. This partition ID is
383+-- normalized with the standard default context partition ID.
493384rqrPartitionId :: Lens' RunQueryRequest (Maybe PartitionId)
494385rqrPartitionId
495386 = lens _rqrPartitionId
496387 (\ s a -> s{_rqrPartitionId = a})
497388
498−-- | The GQL query to run. Either this field or field query must be set, but
499−-- not both.
389+-- | The GQL query to run.
500390rqrGqlQuery :: Lens' RunQueryRequest (Maybe GqlQuery)
501391rqrGqlQuery
502392 = lens _rqrGqlQuery (\ s a -> s{_rqrGqlQuery = a})
503393
504−-- | The query to run. Either this field or field gql_query must be set, but
505−-- not both.
394+-- | The query to run.
506395rqrQuery :: Lens' RunQueryRequest (Maybe Query)
507396rqrQuery = lens _rqrQuery (\ s a -> s{_rqrQuery = a})
508397
@@ -530,6 +419,7 @@ instance ToJSON RunQueryRequest where
530419 ("query" .=) <$> _rqrQuery,
531420 ("readOptions" .=) <$> _rqrReadOptions])
532421
422+-- | The request for google.datastore.v1beta3.Datastore.AllocateIds.
533423--
534424-- /See:/ 'allocateIdsRequest' smart constructor.
535425newtype AllocateIdsRequest = AllocateIdsRequest'
@@ -548,8 +438,8 @@ allocateIdsRequest =
548438 { _airKeys = Nothing
549439 }
550440
551−-- | A list of keys with incomplete key paths to allocate IDs for. No key may
552−-- be reserved\/read-only.
441+-- | A list of keys with incomplete key paths for which to allocate IDs. No
442+-- key may be reserved\/read-only.
553443airKeys :: Lens' AllocateIdsRequest [Key]
554444airKeys
555445 = lens _airKeys (\ s a -> s{_airKeys = a}) . _Default
@@ -565,35 +455,32 @@ instance ToJSON AllocateIdsRequest where
565455 toJSON AllocateIdsRequest'{..}
566456 = object (catMaybes [("keys" .=) <$> _airKeys])
567457
568−-- | A filter that merges the multiple other filters using the given
569−-- operation.
458+-- | A filter that merges multiple other filters using the given operator.
570459--
571460-- /See:/ 'compositeFilter' smart constructor.
572461data CompositeFilter = CompositeFilter'
573− { _cfOperator :: !(Maybe CompositeFilterOperator)
574− , _cfFilters :: !(Maybe [Filter])
462+ { _cfOp :: !(Maybe CompositeFilterOp)
463+ , _cfFilters :: !(Maybe [Filter])
575464 } deriving (Eq,Show,Data,Typeable,Generic)
576465
577466-- | Creates a value of 'CompositeFilter' with the minimum fields required to make a request.
578467--
579468-- Use one of the following lenses to modify other fields as desired:
580469--
581−-- * 'cfOperator'
470+-- * 'cfOp'
582471--
583472-- * 'cfFilters'
584473compositeFilter
585474 :: CompositeFilter
586475compositeFilter =
587476 CompositeFilter'
588− { _cfOperator = Nothing
477+ { _cfOp = Nothing
589478 , _cfFilters = Nothing
590479 }
591480
592−-- | The operator for combining multiple filters. Only \"and\" is currently
593−-- supported.
594−cfOperator :: Lens' CompositeFilter (Maybe CompositeFilterOperator)
595−cfOperator
596− = lens _cfOperator (\ s a -> s{_cfOperator = a})
481+-- | The operator for combining multiple filters.
482+cfOp :: Lens' CompositeFilter (Maybe CompositeFilterOp)
483+cfOp = lens _cfOp (\ s a -> s{_cfOp = a})
597484
598485-- | The list of filters to combine. Must contain at least one filter.
599486cfFilters :: Lens' CompositeFilter [Filter]
@@ -607,20 +494,19 @@ instance FromJSON CompositeFilter where
607494 = withObject "CompositeFilter"
608495 (\ o ->
609496 CompositeFilter' <$>
610− (o .:? "operator") <*> (o .:? "filters" .!= mempty))
497+ (o .:? "op") <*> (o .:? "filters" .!= mempty))
611498
612499instance ToJSON CompositeFilter where
613500 toJSON CompositeFilter'{..}
614501 = object
615502 (catMaybes
616− [("operator" .=) <$> _cfOperator,
617− ("filters" .=) <$> _cfFilters])
503+ [("op" .=) <$> _cfOp, ("filters" .=) <$> _cfFilters])
618504
505+-- | The response for google.datastore.v1beta3.Datastore.BeginTransaction.
619506--
620507-- /See:/ 'beginTransactionResponse' smart constructor.
621−data BeginTransactionResponse = BeginTransactionResponse'
622− { _btrTransaction :: !(Maybe (Textual Word8))
623− , _btrHeader :: !(Maybe ResponseHeader)
508+newtype BeginTransactionResponse = BeginTransactionResponse'
509+ { _btrTransaction :: Maybe (Textual Word8)
624510 } deriving (Eq,Show,Data,Typeable,Generic)
625511
626512-- | Creates a value of 'BeginTransactionResponse' with the minimum fields required to make a request.
@@ -628,14 +514,11 @@ data BeginTransactionResponse = BeginTransactionResponse'
628514-- Use one of the following lenses to modify other fields as desired:
629515--
630516-- * 'btrTransaction'
631−--
632−-- * 'btrHeader'
633517beginTransactionResponse
634518 :: BeginTransactionResponse
635519beginTransactionResponse =
636520 BeginTransactionResponse'
637521 { _btrTransaction = Nothing
638− , _btrHeader = Nothing
639522 }
640523
641524-- | The transaction identifier (always present).
@@ -645,82 +528,55 @@ btrTransaction
645528 (\ s a -> s{_btrTransaction = a})
646529 . mapping _Coerce
647530
648−btrHeader :: Lens' BeginTransactionResponse (Maybe ResponseHeader)
649−btrHeader
650− = lens _btrHeader (\ s a -> s{_btrHeader = a})
651−
652531instance FromJSON BeginTransactionResponse where
653532 parseJSON
654533 = withObject "BeginTransactionResponse"
655534 (\ o ->
656− BeginTransactionResponse' <$>
657− (o .:? "transaction") <*> (o .:? "header"))
535+ BeginTransactionResponse' <$> (o .:? "transaction"))
658536
659537instance ToJSON BeginTransactionResponse where
660538 toJSON BeginTransactionResponse'{..}
661539 = object
662− (catMaybes
663− [("transaction" .=) <$> _btrTransaction,
664− ("header" .=) <$> _btrHeader])
540+ (catMaybes [("transaction" .=) <$> _btrTransaction])
665541
542+-- | The result of applying a mutation.
666543--
667544-- /See:/ 'mutationResult' smart constructor.
668−data MutationResult = MutationResult'
669− { _mrInsertAutoIdKeys :: !(Maybe [Key])
670− , _mrIndexUpdates :: !(Maybe (Textual Int32))
545+newtype MutationResult = MutationResult'
546+ { _mrKey :: Maybe Key
671547 } deriving (Eq,Show,Data,Typeable,Generic)
672548
673549-- | Creates a value of 'MutationResult' with the minimum fields required to make a request.
674550--
675551-- Use one of the following lenses to modify other fields as desired:
676552--
677−-- * 'mrInsertAutoIdKeys'
678−--
679−-- * 'mrIndexUpdates'
553+-- * 'mrKey'
680554mutationResult
681555 :: MutationResult
682556mutationResult =
683557 MutationResult'
684− { _mrInsertAutoIdKeys = Nothing
685− , _mrIndexUpdates = Nothing
558+ { _mrKey = Nothing
686559 }
687560
688−-- | Keys for insertAutoId entities. One per entity from the request, in the
689−-- same order.
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)
699−mrIndexUpdates
700− = lens _mrIndexUpdates
701− (\ s a -> s{_mrIndexUpdates = a})
702− . mapping _Coerce
561+-- | The automatically allocated key. Set only when the mutation allocated a
562+-- key.
563+mrKey :: Lens' MutationResult (Maybe Key)
564+mrKey = lens _mrKey (\ s a -> s{_mrKey = a})
703565
704566instance FromJSON MutationResult where
705567 parseJSON
706568 = withObject "MutationResult"
707− (\ o ->
708− MutationResult' <$>
709− (o .:? "insertAutoIdKeys" .!= mempty) <*>
710− (o .:? "indexUpdates"))
569+ (\ o -> MutationResult' <$> (o .:? "key"))
711570
712571instance ToJSON MutationResult where
713572 toJSON MutationResult'{..}
714− = object
715− (catMaybes
716− [("insertAutoIdKeys" .=) <$> _mrInsertAutoIdKeys,
717− ("indexUpdates" .=) <$> _mrIndexUpdates])
573+ = object (catMaybes [("key" .=) <$> _mrKey])
718574
575+-- | The response for google.datastore.v1beta3.Datastore.AllocateIds.
719576--
720577-- /See:/ 'allocateIdsResponse' smart constructor.
721−data AllocateIdsResponse = AllocateIdsResponse'
722− { _aKeys :: !(Maybe [Key])
723− , _aHeader :: !(Maybe ResponseHeader)
578+newtype AllocateIdsResponse = AllocateIdsResponse'
579+ { _aKeys :: Maybe [Key]
724580 } deriving (Eq,Show,Data,Typeable,Generic)
725581
726582-- | Creates a value of 'AllocateIdsResponse' with the minimum fields required to make a request.
@@ -728,14 +584,11 @@ data AllocateIdsResponse = AllocateIdsResponse'
728584-- Use one of the following lenses to modify other fields as desired:
729585--
730586-- * 'aKeys'
731−--
732−-- * 'aHeader'
733587allocateIdsResponse
734588 :: AllocateIdsResponse
735589allocateIdsResponse =
736590 AllocateIdsResponse'
737591 { _aKeys = Nothing
738− , _aHeader = Nothing
739592 }
740593
741594-- | The keys specified in the request (in the same order), each with its key
@@ -745,166 +598,165 @@ aKeys
745598 = lens _aKeys (\ s a -> s{_aKeys = a}) . _Default .
746599 _Coerce
747600
748−aHeader :: Lens' AllocateIdsResponse (Maybe ResponseHeader)
749−aHeader = lens _aHeader (\ s a -> s{_aHeader = a})
750−
751601instance FromJSON AllocateIdsResponse where
752602 parseJSON
753603 = withObject "AllocateIdsResponse"
754604 (\ o ->
755− AllocateIdsResponse' <$>
756− (o .:? "keys" .!= mempty) <*> (o .:? "header"))
605+ AllocateIdsResponse' <$> (o .:? "keys" .!= mempty))
757606
758607instance ToJSON AllocateIdsResponse where
759608 toJSON AllocateIdsResponse'{..}
760− = object
761− (catMaybes
762− [("keys" .=) <$> _aKeys, ("header" .=) <$> _aHeader])
609+ = object (catMaybes [("keys" .=) <$> _aKeys])
763610
764−-- | A GQL query.
611+-- | A [GQL
612+-- query](https:\/\/cloud.google.com\/datastore\/docs\/apis\/gql\/gql_reference).
765613--
766614-- /See:/ 'gqlQuery' smart constructor.
767615data GqlQuery = GqlQuery'
768− { _gqAllowLiteral :: !(Maybe Bool)
769− , _gqNumberArgs :: !(Maybe [GqlQueryArg])
770− , _gqQueryString :: !(Maybe Text)
771− , _gqNameArgs :: !(Maybe [GqlQueryArg])
616+ { _gqPositionalBindings :: !(Maybe [GqlQueryParameter])
617+ , _gqNamedBindings :: !(Maybe GqlQueryNamedBindings)
618+ , _gqQueryString :: !(Maybe Text)
619+ , _gqAllowLiterals :: !(Maybe Bool)
772620 } deriving (Eq,Show,Data,Typeable,Generic)
773621
774622-- | Creates a value of 'GqlQuery' with the minimum fields required to make a request.
775623--
776624-- Use one of the following lenses to modify other fields as desired:
777625--
778−-- * 'gqAllowLiteral'
626+-- * 'gqPositionalBindings'
779627--
780−-- * 'gqNumberArgs'
628+-- * 'gqNamedBindings'
781629--
782630-- * 'gqQueryString'
783631--
784−-- * 'gqNameArgs'
632+-- * 'gqAllowLiterals'
785633gqlQuery
786634 :: GqlQuery
787635gqlQuery =
788636 GqlQuery'
789− { _gqAllowLiteral = Nothing
790− , _gqNumberArgs = Nothing
637+ { _gqPositionalBindings = Nothing
638+ , _gqNamedBindings = Nothing
791639 , _gqQueryString = Nothing
792− , _gqNameArgs = Nothing
640+ , _gqAllowLiterals = Nothing
793641 }
794642
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,
802−-- effectively using 1-based indexing, rather than the usual 0. A numbered
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
805−-- inverse must also be true.
806−gqNumberArgs :: Lens' GqlQuery [GqlQueryArg]
807−gqNumberArgs
808− = lens _gqNumberArgs (\ s a -> s{_gqNumberArgs = a})
643+-- | Numbered binding site \'1 references the first numbered parameter,
644+-- effectively using 1-based indexing, rather than the usual 0. For each
645+-- binding site numbered i in \`query_string\`, there must be an i-th
646+-- numbered parameter. The inverse must also be true.
647+gqPositionalBindings :: Lens' GqlQuery [GqlQueryParameter]
648+gqPositionalBindings
649+ = lens _gqPositionalBindings
650+ (\ s a -> s{_gqPositionalBindings = a})
809651 . _Default
810652 . _Coerce
811653
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).
813665gqQueryString :: Lens' GqlQuery (Maybe Text)
814666gqQueryString
815667 = lens _gqQueryString
816668 (\ s a -> s{_gqQueryString = a})
817669
818−-- | A named argument must set field GqlQueryArg.name. No two named arguments
819−-- may have the same name. For each non-reserved named binding site in the
820−-- query string, there must be a named argument with that name, but not
821−-- necessarily the inverse.
822−gqNameArgs :: Lens' GqlQuery [GqlQueryArg]
823−gqNameArgs
824− = lens _gqNameArgs (\ s a -> s{_gqNameArgs = a}) .
825− _Default
826− . _Coerce
670+-- | When false, the query string must not contain any literals and instead
671+-- must bind all values. For example, \`SELECT * FROM Kind WHERE a =
672+-- \'string literal\'\` is not allowed, while \`SELECT * FROM Kind WHERE a
673+-- = \'value\` is.
674+gqAllowLiterals :: Lens' GqlQuery (Maybe Bool)
675+gqAllowLiterals
676+ = lens _gqAllowLiterals
677+ (\ s a -> s{_gqAllowLiterals = a})
827678
828679instance FromJSON GqlQuery where
829680 parseJSON
830681 = withObject "GqlQuery"
831682 (\ o ->
832683 GqlQuery' <$>
833− (o .:? "allowLiteral") <*>
834− (o .:? "numberArgs" .!= mempty)
684+ (o .:? "positionalBindings" .!= mempty) <*>
685+ (o .:? "namedBindings")
835686 <*> (o .:? "queryString")
836− <*> (o .:? "nameArgs" .!= mempty))
687+ <*> (o .:? "allowLiterals"))
837688
838689instance ToJSON GqlQuery where
839690 toJSON GqlQuery'{..}
840691 = object
841692 (catMaybes
842− [("allowLiteral" .=) <$> _gqAllowLiteral,
843− ("numberArgs" .=) <$> _gqNumberArgs,
693+ [("positionalBindings" .=) <$> _gqPositionalBindings,
694+ ("namedBindings" .=) <$> _gqNamedBindings,
844695 ("queryString" .=) <$> _gqQueryString,
845− ("nameArgs" .=) <$> _gqNameArgs])
696+ ("allowLiterals" .=) <$> _gqAllowLiterals])
846697
698+-- | The response for google.datastore.v1beta3.Datastore.RunQuery.
847699--
848700-- /See:/ 'runQueryResponse' smart constructor.
849701data RunQueryResponse = RunQueryResponse'
850− { _rqrBatch :: !(Maybe QueryResultBatch)
851− , _rqrHeader :: !(Maybe ResponseHeader)
702+ { _rBatch :: !(Maybe QueryResultBatch)
703+ , _rQuery :: !(Maybe Query)
852704 } deriving (Eq,Show,Data,Typeable,Generic)
853705
854706-- | Creates a value of 'RunQueryResponse' with the minimum fields required to make a request.
855707--
856708-- Use one of the following lenses to modify other fields as desired:
857709--
858−-- * 'rqrBatch'
710+-- * 'rBatch'
859711--
860−-- * 'rqrHeader'
712+-- * 'rQuery'
861713runQueryResponse
862714 :: RunQueryResponse
863715runQueryResponse =
864716 RunQueryResponse'
865− { _rqrBatch = Nothing
866− , _rqrHeader = Nothing
717+ { _rBatch = Nothing
718+ , _rQuery = Nothing
867719 }
868720
869721-- | A batch of query results (always present).
870−rqrBatch :: Lens' RunQueryResponse (Maybe QueryResultBatch)
871−rqrBatch = lens _rqrBatch (\ s a -> s{_rqrBatch = a})
722+rBatch :: Lens' RunQueryResponse (Maybe QueryResultBatch)
723+rBatch = lens _rBatch (\ s a -> s{_rBatch = a})
872724
873−rqrHeader :: Lens' RunQueryResponse (Maybe ResponseHeader)
874−rqrHeader
875− = lens _rqrHeader (\ s a -> s{_rqrHeader = a})
725+-- | The parsed form of the \`GqlQuery\` from the request, if it was set.
726+rQuery :: Lens' RunQueryResponse (Maybe Query)
727+rQuery = lens _rQuery (\ s a -> s{_rQuery = a})
876728
877729instance FromJSON RunQueryResponse where
878730 parseJSON
879731 = withObject "RunQueryResponse"
880732 (\ o ->
881733 RunQueryResponse' <$>
882− (o .:? "batch") <*> (o .:? "header"))
734+ (o .:? "batch") <*> (o .:? "query"))
883735
884736instance ToJSON RunQueryResponse where
885737 toJSON RunQueryResponse'{..}
886738 = object
887739 (catMaybes
888− [("batch" .=) <$> _rqrBatch,
889− ("header" .=) <$> _rqrHeader])
740+ [("batch" .=) <$> _rBatch, ("query" .=) <$> _rQuery])
890741
891742-- | A message that can hold any of the supported value types and associated
892743-- metadata.
893744--
894745-- /See:/ 'value' smart constructor.
895746data Value = Value'
896− { _vKeyValue :: !(Maybe Key)
897− , _vBlobKeyValue :: !(Maybe Text)
898− , _vDateTimeValue :: !(Maybe DateTime')
899− , _vIntegerValue :: !(Maybe (Textual Int64))
900− , _vEntityValue :: !(Maybe Entity)
901− , _vDoubleValue :: !(Maybe (Textual Double))
902− , _vStringValue :: !(Maybe Text)
903− , _vListValue :: !(Maybe [Value])
904− , _vIndexed :: !(Maybe Bool)
905− , _vBooleanValue :: !(Maybe Bool)
906− , _vMeaning :: !(Maybe (Textual Int32))
907− , _vBlobValue :: !(Maybe (Textual Word8))
747+ { _vKeyValue :: !(Maybe Key)
748+ , _vGeoPointValue :: !(Maybe LatLng)
749+ , _vIntegerValue :: !(Maybe (Textual Int64))
750+ , _vTimestampValue :: !(Maybe DateTime')
751+ , _vEntityValue :: !(Maybe Entity)
752+ , _vExcludeFromIndexes :: !(Maybe Bool)
753+ , _vDoubleValue :: !(Maybe (Textual Double))
754+ , _vStringValue :: !(Maybe Text)
755+ , _vBooleanValue :: !(Maybe Bool)
756+ , _vMeaning :: !(Maybe (Textual Int32))
757+ , _vArrayValue :: !(Maybe ArrayValue)
758+ , _vNullValue :: !(Maybe ValueNullValue)
759+ , _vBlobValue :: !(Maybe (Textual Word8))
908760 } deriving (Eq,Show,Data,Typeable,Generic)
909761
910762-- | Creates a value of 'Value' with the minimum fields required to make a request.
@@ -913,42 +765,45 @@ data Value = Value'
913765--
914766-- * 'vKeyValue'
915767--
916−-- * 'vBlobKeyValue'
917−--
918−-- * 'vDateTimeValue'
768+-- * 'vGeoPointValue'
919769--
920770-- * 'vIntegerValue'
921771--
772+-- * 'vTimestampValue'
773+--
922774-- * 'vEntityValue'
923775--
776+-- * 'vExcludeFromIndexes'
777+--
924778-- * 'vDoubleValue'
925779--
926780-- * 'vStringValue'
927781--
928−-- * 'vListValue'
929−--
930−-- * 'vIndexed'
931−--
932782-- * 'vBooleanValue'
933783--
934784-- * 'vMeaning'
935785--
786+-- * 'vArrayValue'
787+--
788+-- * 'vNullValue'
789+--
936790-- * 'vBlobValue'
937791value
938792 :: Value
939793value =
940794 Value'
941795 { _vKeyValue = Nothing
942− , _vBlobKeyValue = Nothing
943− , _vDateTimeValue = Nothing
796+ , _vGeoPointValue = Nothing
944797 , _vIntegerValue = Nothing
798+ , _vTimestampValue = Nothing
945799 , _vEntityValue = Nothing
800+ , _vExcludeFromIndexes = Nothing
946801 , _vDoubleValue = Nothing
947802 , _vStringValue = Nothing
948− , _vListValue = Nothing
949− , _vIndexed = Nothing
950803 , _vBooleanValue = Nothing
951804 , _vMeaning = Nothing
805+ , _vArrayValue = Nothing
806+ , _vNullValue = Nothing
952807 , _vBlobValue = Nothing
953808 }
954809
@@ -957,18 +812,11 @@ vKeyValue :: Lens' Value (Maybe Key)
957812vKeyValue
958813 = lens _vKeyValue (\ s a -> s{_vKeyValue = a})
959814
960−-- | A blob key value.
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)
968−vDateTimeValue
969− = lens _vDateTimeValue
970− (\ s a -> s{_vDateTimeValue = a})
971− . mapping _DateTime
815+-- | A geo point value representing a point on the surface of Earth.
816+vGeoPointValue :: Lens' Value (Maybe LatLng)
817+vGeoPointValue
818+ = lens _vGeoPointValue
819+ (\ s a -> s{_vGeoPointValue = a})
972820
973821-- | An integer value.
974822vIntegerValue :: Lens' Value (Maybe Int64)
@@ -977,56 +825,68 @@ vIntegerValue
977825 (\ s a -> s{_vIntegerValue = a})
978826 . mapping _Coerce
979827
980−-- | An entity value. May have no key. May have a key with an incomplete key
981−-- path. May have a reserved\/read-only key.
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+
836+-- | An entity value. - May have no key. - May have a key with an incomplete
837+-- key path. - May have a reserved\/read-only key.
982838vEntityValue :: Lens' Value (Maybe Entity)
983839vEntityValue
984840 = lens _vEntityValue (\ s a -> s{_vEntityValue = a})
985841
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+
986849-- | A double value.
987850vDoubleValue :: Lens' Value (Maybe Double)
988851vDoubleValue
989852 = lens _vDoubleValue (\ s a -> s{_vDoubleValue = a})
990853 . mapping _Coerce
991854
992−-- | A UTF-8 encoded string value. When indexed is true, may have at most 500
993−-- characters.
855+-- | A UTF-8 encoded string value. When \`exclude_from_indexes\` is false (it
856+-- is indexed) , may have at most 1500 bytes. Otherwise, may be set to at
857+-- least 1,000,000 bytes.
994858vStringValue :: Lens' Value (Maybe Text)
995859vStringValue
996860 = lens _vStringValue (\ s a -> s{_vStringValue = a})
997861
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−
1016862-- | A boolean value.
1017863vBooleanValue :: Lens' Value (Maybe Bool)
1018864vBooleanValue
1019865 = lens _vBooleanValue
1020866 (\ s a -> s{_vBooleanValue = a})
1021867
1022−-- | The meaning field is reserved and should not be used.
868+-- | The \`meaning\` field should only be populated for backwards
869+-- compatibility.
1023870vMeaning :: Lens' Value (Maybe Int32)
1024871vMeaning
1025872 = lens _vMeaning (\ s a -> s{_vMeaning = a}) .
1026873 mapping _Coerce
1027874
1028−-- | A blob value. May be a maximum of 1,000,000 bytes. When indexed is true,
1029−-- may have at most 500 bytes.
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+
887+-- | A blob value. May have at most 1,000,000 bytes. When
888+-- \`exclude_from_indexes\` is false, may have at most 1500 bytes. In JSON
889+-- requests, must be base64-encoded.
1030890vBlobValue :: Lens' Value (Maybe Word8)
1031891vBlobValue
1032892 = lens _vBlobValue (\ s a -> s{_vBlobValue = a}) .
@@ -1037,16 +897,17 @@ instance FromJSON Value where
1037897 = withObject "Value"
1038898 (\ o ->
1039899 Value' <$>
1040− (o .:? "keyValue") <*> (o .:? "blobKeyValue") <*>
1041− (o .:? "dateTimeValue")
1042− <*> (o .:? "integerValue")
900+ (o .:? "keyValue") <*> (o .:? "geoPointValue") <*>
901+ (o .:? "integerValue")
902+ <*> (o .:? "timestampValue")
1043903 <*> (o .:? "entityValue")
904+ <*> (o .:? "excludeFromIndexes")
1044905 <*> (o .:? "doubleValue")
1045906 <*> (o .:? "stringValue")
1046− <*> (o .:? "listValue" .!= mempty)
1047− <*> (o .:? "indexed")
1048907 <*> (o .:? "booleanValue")
1049908 <*> (o .:? "meaning")
909+ <*> (o .:? "arrayValue")
910+ <*> (o .:? "nullValue")
1050911 <*> (o .:? "blobValue"))
1051912
1052913instance ToJSON Value where
@@ -1054,18 +915,20 @@ instance ToJSON Value where
1054915 = object
1055916 (catMaybes
1056917 [("keyValue" .=) <$> _vKeyValue,
1057− ("blobKeyValue" .=) <$> _vBlobKeyValue,
1058− ("dateTimeValue" .=) <$> _vDateTimeValue,
918+ ("geoPointValue" .=) <$> _vGeoPointValue,
1059919 ("integerValue" .=) <$> _vIntegerValue,
920+ ("timestampValue" .=) <$> _vTimestampValue,
1060921 ("entityValue" .=) <$> _vEntityValue,
922+ ("excludeFromIndexes" .=) <$> _vExcludeFromIndexes,
1061923 ("doubleValue" .=) <$> _vDoubleValue,
1062924 ("stringValue" .=) <$> _vStringValue,
1063− ("listValue" .=) <$> _vListValue,
1064− ("indexed" .=) <$> _vIndexed,
1065925 ("booleanValue" .=) <$> _vBooleanValue,
1066926 ("meaning" .=) <$> _vMeaning,
927+ ("arrayValue" .=) <$> _vArrayValue,
928+ ("nullValue" .=) <$> _vNullValue,
1067929 ("blobValue" .=) <$> _vBlobValue])
1068930
931+-- | The request for google.datastore.v1beta3.Datastore.Lookup.
1069932--
1070933-- /See:/ 'lookupRequest' smart constructor.
1071934data LookupRequest = LookupRequest'
@@ -1088,13 +951,13 @@ lookupRequest =
1088951 , _lrReadOptions = Nothing
1089952 }
1090953
1091−-- | Keys of entities to look up from the datastore.
954+-- | Keys of entities to look up.
1092955lrKeys :: Lens' LookupRequest [Key]
1093956lrKeys
1094957 = lens _lrKeys (\ s a -> s{_lrKeys = a}) . _Default .
1095958 _Coerce
1096959
1097−-- | Options for this lookup request. Optional.
960+-- | The options for this lookup request.
1098961lrReadOptions :: Lens' LookupRequest (Maybe ReadOptions)
1099962lrReadOptions
1100963 = lens _lrReadOptions
@@ -1114,16 +977,14 @@ instance ToJSON LookupRequest where
1114977 [("keys" .=) <$> _lrKeys,
1115978 ("readOptions" .=) <$> _lrReadOptions])
1116979
1117−-- | A set of changes to apply.
980+-- | A mutation to apply to an entity.
1118981--
1119982-- /See:/ 'mutation' smart constructor.
1120983data Mutation = Mutation'
1121− { _mInsert :: !(Maybe [Entity])
1122− , _mForce :: !(Maybe Bool)
1123− , _mInsertAutoId :: !(Maybe [Entity])
1124− , _mUpsert :: !(Maybe [Entity])
1125− , _mDelete :: !(Maybe [Key])
1126− , _mUpdate :: !(Maybe [Entity])
984+ { _mInsert :: !(Maybe Entity)
985+ , _mUpsert :: !(Maybe Entity)
986+ , _mDelete :: !(Maybe Key)
987+ , _mUpdate :: !(Maybe Entity)
1127988 } deriving (Eq,Show,Data,Typeable,Generic)
1128989
1129990-- | Creates a value of 'Mutation' with the minimum fields required to make a request.
@@ -1132,10 +993,6 @@ data Mutation = Mutation'
1132993--
1133994-- * 'mInsert'
1134995--
1135−-- * 'mForce'
1136−--
1137−-- * 'mInsertAutoId'
1138−--
1139996-- * 'mUpsert'
1140997--
1141998-- * 'mDelete'
@@ -1146,172 +1003,87 @@ mutation
11461003mutation =
11471004 Mutation'
11481005 { _mInsert = Nothing
1149− , _mForce = Nothing
1150− , _mInsertAutoId = Nothing
11511006 , _mUpsert = Nothing
11521007 , _mDelete = Nothing
11531008 , _mUpdate = Nothing
11541009 }
11551010
1156−-- | Entities to insert. Each inserted entity\'s key must have a complete
1157−-- path and must not be reserved\/read-only.
1158−mInsert :: Lens' Mutation [Entity]
1159−mInsert
1160− = lens _mInsert (\ s a -> s{_mInsert = a}) . _Default
1161− . _Coerce
1011+-- | The entity to insert. The entity must not already exist. The entity
1012+-- key\'s final path element may be incomplete.
1013+mInsert :: Lens' Mutation (Maybe Entity)
1014+mInsert = lens _mInsert (\ s a -> s{_mInsert = a})
11621015
1163−-- | Ignore a user specified read-only period. Optional.
1164−mForce :: Lens' Mutation (Maybe Bool)
1165−mForce = lens _mForce (\ s a -> s{_mForce = a})
1016+-- | The entity to upsert. The entity may or may not already exist. The
1017+-- entity key\'s final path element may be incomplete.
1018+mUpsert :: Lens' Mutation (Maybe Entity)
1019+mUpsert = lens _mUpsert (\ s a -> s{_mUpsert = a})
11661020
1167−-- | Insert entities with a newly allocated ID. Each inserted entity\'s key
1168−-- must omit the final identifier in its path and must not be
1021+-- | The key of the entity to delete. The entity may or may not already
1022+-- exist. Must have a complete key path and must not be
11691023-- reserved\/read-only.
1170−mInsertAutoId :: Lens' Mutation [Entity]
1171−mInsertAutoId
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
1024+mDelete :: Lens' Mutation (Maybe Key)
1025+mDelete = lens _mDelete (\ s a -> s{_mDelete = a})
11831026
1184−-- | Keys of entities to delete. Each key must have a complete key path and
1185−-- must not be reserved\/read-only.
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]
1194−mUpdate
1195− = lens _mUpdate (\ s a -> s{_mUpdate = a}) . _Default
1196− . _Coerce
1027+-- | The entity to update. The entity must already exist. Must have a
1028+-- complete key path.
1029+mUpdate :: Lens' Mutation (Maybe Entity)
1030+mUpdate = lens _mUpdate (\ s a -> s{_mUpdate = a})
11971031
11981032instance FromJSON Mutation where
11991033 parseJSON
12001034 = withObject "Mutation"
12011035 (\ o ->
12021036 Mutation' <$>
1203− (o .:? "insert" .!= mempty) <*> (o .:? "force") <*>
1204− (o .:? "insertAutoId" .!= mempty)
1205− <*> (o .:? "upsert" .!= mempty)
1206− <*> (o .:? "delete" .!= mempty)
1207− <*> (o .:? "update" .!= mempty))
1037+ (o .:? "insert") <*> (o .:? "upsert") <*>
1038+ (o .:? "delete")
1039+ <*> (o .:? "update"))
12081040
12091041instance ToJSON Mutation where
12101042 toJSON Mutation'{..}
12111043 = object
12121044 (catMaybes
12131045 [("insert" .=) <$> _mInsert,
1214− ("force" .=) <$> _mForce,
1215− ("insertAutoId" .=) <$> _mInsertAutoId,
12161046 ("upsert" .=) <$> _mUpsert,
12171047 ("delete" .=) <$> _mDelete,
12181048 ("update" .=) <$> _mUpdate])
12191049
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 \`\"\"\`.
12201054--
1221−-- /See:/ 'responseHeader' smart constructor.
1222−newtype ResponseHeader = ResponseHeader'
1223− { _rhKind :: Text
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))
1055+-- /See:/ 'gqlQueryNamedBindings' smart constructor.
1056+newtype GqlQueryNamedBindings = GqlQueryNamedBindings'
1057+ { _gqnbAddtional :: HashMap Text GqlQueryParameter
12631058 } deriving (Eq,Show,Data,Typeable,Generic)
12641059
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.
12661061--
12671062-- Use one of the following lenses to modify other fields as desired:
12681063--
1269−-- * 'kpeKind'
1270−--
1271−-- * 'kpeName'
1272−--
1273−-- * 'kpeId'
1274−keyPathElement
1275− :: KeyPathElement
1276−keyPathElement =
1277− KeyPathElement'
1278− { _kpeKind = Nothing
1279− , _kpeName = Nothing
1280− , _kpeId = Nothing
1064+-- * 'gqnbAddtional'
1065+gqlQueryNamedBindings
1066+ :: HashMap Text GqlQueryParameter -- ^ 'gqnbAddtional'
1067+ -> GqlQueryNamedBindings
1068+gqlQueryNamedBindings pGqnbAddtional_ =
1069+ GqlQueryNamedBindings'
1070+ { _gqnbAddtional = _Coerce # pGqnbAddtional_
12811071 }
12821072
1283−-- | The kind of the entity. A kind matching regex \"__.*__\" is
1284−-- reserved\/read-only. A kind must not contain more than 500 characters.
1285−-- Cannot be \"\".
1286−kpeKind :: Lens' KeyPathElement (Maybe Text)
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
1073+gqnbAddtional :: Lens' GqlQueryNamedBindings (HashMap Text GqlQueryParameter)
1074+gqnbAddtional
1075+ = lens _gqnbAddtional
1076+ (\ s a -> s{_gqnbAddtional = a})
1077+ . _Coerce
13011078
1302−instance FromJSON KeyPathElement where
1079+instance FromJSON GqlQueryNamedBindings where
13031080 parseJSON
1304− = withObject "KeyPathElement"
1081+ = withObject "GqlQueryNamedBindings"
13051082 (\ o ->
1306− KeyPathElement' <$>
1307− (o .:? "kind") <*> (o .:? "name") <*> (o .:? "id"))
1083+ GqlQueryNamedBindings' <$> (parseJSONObject o))
13081084
1309−instance ToJSON KeyPathElement where
1310− toJSON KeyPathElement'{..}
1311− = object
1312− (catMaybes
1313− [("kind" .=) <$> _kpeKind, ("name" .=) <$> _kpeName,
1314− ("id" .=) <$> _kpeId])
1085+instance ToJSON GqlQueryNamedBindings where
1086+ toJSON = toJSON . _gqnbAddtional
13151087
13161088-- | A reference to a property relative to the kind expressions.
13171089--
@@ -1332,7 +1104,8 @@ propertyReference =
13321104 { _prName = Nothing
13331105 }
13341106
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.
13361109prName :: Lens' PropertyReference (Maybe Text)
13371110prName = lens _prName (\ s a -> s{_prName = a})
13381111
@@ -1345,68 +1118,15 @@ instance ToJSON PropertyReference where
13451118 toJSON PropertyReference'{..}
13461119 = object (catMaybes [("name" .=) <$> _prName])
13471120
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.
14051125--
14061126-- /See:/ 'key' smart constructor.
14071127data Key = Key'
14081128 { _kPartitionId :: !(Maybe PartitionId)
1409− , _kPath :: !(Maybe [KeyPathElement])
1129+ , _kPath :: !(Maybe [PathElement])
14101130 } deriving (Eq,Show,Data,Typeable,Generic)
14111131
14121132-- | Creates a value of 'Key' with the minimum fields required to make a request.
@@ -1424,25 +1144,26 @@ key =
14241144 , _kPath = Nothing
14251145 }
14261146
1427−-- | Entities are partitioned into subsets, currently identified by a dataset
1428−-- (usually implicitly specified by the project) and namespace ID. Queries
1429−-- are scoped to a single partition.
1147+-- | Entities are partitioned into subsets, currently identified by a project
1148+-- ID and namespace ID. Queries are scoped to a single partition.
14301149kPartitionId :: Lens' Key (Maybe PartitionId)
14311150kPartitionId
14321151 = lens _kPartitionId (\ s a -> s{_kPartitionId = a})
14331152
14341153-- | The entity path. An entity path consists of one or more elements
14351154-- composed of a kind and a string or numerical identifier, which identify
1436−-- entities. The first element identifies a root entity, the second element
1437−-- identifies a child of the root entity, the third element a child of the
1438−-- second entity, and so forth. The entities identified by all prefixes of
1439−-- the path are called the element\'s ancestors. An entity path is always
1440−-- fully complete: ALL of the entity\'s ancestors are required to be in the
1441−-- path along with the entity identifier itself. The only exception is that
1442−-- in some documented cases, the identifier in the last path element (for
1443−-- the entity) itself may be omitted. A path can never be empty. The path
1444−-- can have at most 100 elements.
1445−kPath :: Lens' Key [KeyPathElement]
1155+-- entities. The first element identifies a _root entity_, the second
1156+-- element identifies a _child_ of the root entity, the third element
1157+-- identifies a child of the second entity, and so forth. The entities
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
1160+-- entity\'s ancestors are required to be in the path along with the entity
1161+-- identifier itself. The only exception is that in some documented cases,
1162+-- the identifier in the last path element (for the entity) itself may be
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,
1165+-- and a path can have at most 100 elements.
1166+kPath :: Lens' Key [PathElement]
14461167kPath
14471168 = lens _kPath (\ s a -> s{_kPath = a}) . _Default .
14481169 _Coerce
@@ -1466,7 +1187,7 @@ instance ToJSON Key where
14661187-- /See:/ 'propertyFilter' smart constructor.
14671188data PropertyFilter = PropertyFilter'
14681189 { _pfProperty :: !(Maybe PropertyReference)
1469− , _pfOperator :: !(Maybe PropertyFilterOperator)
1190+ , _pfOp :: !(Maybe PropertyFilterOp)
14701191 , _pfValue :: !(Maybe Value)
14711192 } deriving (Eq,Show,Data,Typeable,Generic)
14721193
@@ -1476,7 +1197,7 @@ data PropertyFilter = PropertyFilter'
14761197--
14771198-- * 'pfProperty'
14781199--
1479−-- * 'pfOperator'
1200+-- * 'pfOp'
14801201--
14811202-- * 'pfValue'
14821203propertyFilter
@@ -1484,7 +1205,7 @@ propertyFilter
14841205propertyFilter =
14851206 PropertyFilter'
14861207 { _pfProperty = Nothing
1487− , _pfOperator = Nothing
1208+ , _pfOp = Nothing
14881209 , _pfValue = Nothing
14891210 }
14901211
@@ -1493,11 +1214,9 @@ pfProperty :: Lens' PropertyFilter (Maybe PropertyReference)
14931214pfProperty
14941215 = lens _pfProperty (\ s a -> s{_pfProperty = a})
14951216
1496−-- | The operator to filter by. One of lessThan, lessThanOrEqual,
1497−-- greaterThan, greaterThanOrEqual, equal, or hasAncestor.
1498−pfOperator :: Lens' PropertyFilter (Maybe PropertyFilterOperator)
1499−pfOperator
1500− = lens _pfOperator (\ s a -> s{_pfOperator = a})
1217+-- | The operator to filter by.
1218+pfOp :: Lens' PropertyFilter (Maybe PropertyFilterOp)
1219+pfOp = lens _pfOp (\ s a -> s{_pfOp = a})
15011220
15021221-- | The value to compare the property to.
15031222pfValue :: Lens' PropertyFilter (Maybe Value)
@@ -1508,7 +1227,7 @@ instance FromJSON PropertyFilter where
15081227 = withObject "PropertyFilter"
15091228 (\ o ->
15101229 PropertyFilter' <$>
1511− (o .:? "property") <*> (o .:? "operator") <*>
1230+ (o .:? "property") <*> (o .:? "op") <*>
15121231 (o .:? "value"))
15131232
15141233instance ToJSON PropertyFilter where
@@ -1516,21 +1235,20 @@ instance ToJSON PropertyFilter where
15161235 = object
15171236 (catMaybes
15181237 [("property" .=) <$> _pfProperty,
1519− ("operator" .=) <$> _pfOperator,
1520− ("value" .=) <$> _pfValue])
1238+ ("op" .=) <$> _pfOp, ("value" .=) <$> _pfValue])
15211239
1522−-- | A query.
1240+-- | A query for entities.
15231241--
15241242-- /See:/ 'query' smart constructor.
15251243data Query = Query'
1526− { _qGroupBy :: !(Maybe [PropertyReference])
1527− , _qStartCursor :: !(Maybe (Textual Word8))
1244+ { _qStartCursor :: !(Maybe (Textual Word8))
15281245 , _qOffSet :: !(Maybe (Textual Int32))
1246+ , _qKind :: !(Maybe [KindExpression])
1247+ , _qDistinctOn :: !(Maybe [PropertyReference])
15291248 , _qEndCursor :: !(Maybe (Textual Word8))
15301249 , _qLimit :: !(Maybe (Textual Int32))
1531− , _qProjection :: !(Maybe [PropertyExpression])
1250+ , _qProjection :: !(Maybe [Projection])
15321251 , _qFilter :: !(Maybe Filter)
1533− , _qKinds :: !(Maybe [KindExpression])
15341252 , _qOrder :: !(Maybe [PropertyOrder])
15351253 } deriving (Eq,Show,Data,Typeable,Generic)
15361254
@@ -1538,12 +1256,14 @@ data Query = Query'
15381256--
15391257-- Use one of the following lenses to modify other fields as desired:
15401258--
1541−-- * 'qGroupBy'
1542−--
15431259-- * 'qStartCursor'
15441260--
15451261-- * 'qOffSet'
15461262--
1263+-- * 'qKind'
1264+--
1265+-- * 'qDistinctOn'
1266+--
15471267-- * 'qEndCursor'
15481268--
15491269-- * 'qLimit'
@@ -1552,77 +1272,78 @@ data Query = Query'
15521272--
15531273-- * 'qFilter'
15541274--
1555−-- * 'qKinds'
1556−--
15571275-- * 'qOrder'
15581276query
15591277 :: Query
15601278query =
15611279 Query'
1562− { _qGroupBy = Nothing
1563− , _qStartCursor = Nothing
1280+ { _qStartCursor = Nothing
15641281 , _qOffSet = Nothing
1282+ , _qKind = Nothing
1283+ , _qDistinctOn = Nothing
15651284 , _qEndCursor = Nothing
15661285 , _qLimit = Nothing
15671286 , _qProjection = Nothing
15681287 , _qFilter = Nothing
1569− , _qKinds = Nothing
15701288 , _qOrder = Nothing
15711289 }
15721290
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
1582−-- returned in query result batches.
1291+-- | A starting point for the query results. Query cursors are returned in
1292+-- query result batches.
15831293qStartCursor :: Lens' Query (Maybe Word8)
15841294qStartCursor
15851295 = lens _qStartCursor (\ s a -> s{_qStartCursor = a})
15861296 . mapping _Coerce
15871297
15881298-- | 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.
15901300qOffSet :: Lens' Query (Maybe Int32)
15911301qOffSet
15921302 = lens _qOffSet (\ s a -> s{_qOffSet = a}) .
15931303 mapping _Coerce
15941304
1595−-- | An ending point for the query results. Optional. Query cursors are
1596−-- returned in query result batches.
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+
1321+-- | An ending point for the query results. Query cursors are returned in
1322+-- query result batches.
15971323qEndCursor :: Lens' Query (Maybe Word8)
15981324qEndCursor
15991325 = lens _qEndCursor (\ s a -> s{_qEndCursor = a}) .
16001326 mapping _Coerce
16011327
16021328-- | 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.
16041331qLimit :: Lens' Query (Maybe Int32)
16051332qLimit
16061333 = lens _qLimit (\ s a -> s{_qLimit = a}) .
16071334 mapping _Coerce
16081335
1609−-- | The projection to return. If not set the entire entity is returned.
1610−qProjection :: Lens' Query [PropertyExpression]
1336+-- | The projection to return. Defaults to returning all properties.
1337+qProjection :: Lens' Query [Projection]
16111338qProjection
16121339 = lens _qProjection (\ s a -> s{_qProjection = a}) .
16131340 _Default
16141341 . _Coerce
16151342
1616−-- | The filter to apply (optional).
1343+-- | The filter to apply.
16171344qFilter :: Lens' Query (Maybe Filter)
16181345qFilter = lens _qFilter (\ s a -> s{_qFilter = a})
16191346
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−
16261347-- | The order to apply to the query results (if empty, order is
16271348-- unspecified).
16281349qOrder :: Lens' Query [PropertyOrder]
@@ -1635,48 +1356,94 @@ instance FromJSON Query where
16351356 = withObject "Query"
16361357 (\ o ->
16371358 Query' <$>
1638− (o .:? "groupBy" .!= mempty) <*>
1639− (o .:? "startCursor")
1640− <*> (o .:? "offset")
1359+ (o .:? "startCursor") <*> (o .:? "offset") <*>
1360+ (o .:? "kind" .!= mempty)
1361+ <*> (o .:? "distinctOn" .!= mempty)
16411362 <*> (o .:? "endCursor")
16421363 <*> (o .:? "limit")
16431364 <*> (o .:? "projection" .!= mempty)
16441365 <*> (o .:? "filter")
1645− <*> (o .:? "kinds" .!= mempty)
16461366 <*> (o .:? "order" .!= mempty))
16471367
16481368instance ToJSON Query where
16491369 toJSON Query'{..}
16501370 = object
16511371 (catMaybes
1652− [("groupBy" .=) <$> _qGroupBy,
1653− ("startCursor" .=) <$> _qStartCursor,
1654− ("offset" .=) <$> _qOffSet,
1372+ [("startCursor" .=) <$> _qStartCursor,
1373+ ("offset" .=) <$> _qOffSet, ("kind" .=) <$> _qKind,
1374+ ("distinctOn" .=) <$> _qDistinctOn,
16551375 ("endCursor" .=) <$> _qEndCursor,
16561376 ("limit" .=) <$> _qLimit,
16571377 ("projection" .=) <$> _qProjection,
1658− ("filter" .=) <$> _qFilter, ("kinds" .=) <$> _qKinds,
1378+ ("filter" .=) <$> _qFilter,
16591379 ("order" .=) <$> _qOrder])
16601380
1661−-- | The result of fetching an entity from the datastore.
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+
1417+-- | The result of fetching an entity from Datastore.
16621418--
16631419-- /See:/ 'entityResult' smart constructor.
1664−newtype EntityResult = EntityResult'
1665− { _erEntity :: Maybe Entity
1420+data EntityResult = EntityResult'
1421+ { _erCursor :: !(Maybe (Textual Word8))
1422+ , _erEntity :: !(Maybe Entity)
16661423 } deriving (Eq,Show,Data,Typeable,Generic)
16671424
16681425-- | Creates a value of 'EntityResult' with the minimum fields required to make a request.
16691426--
16701427-- Use one of the following lenses to modify other fields as desired:
16711428--
1429+-- * 'erCursor'
1430+--
16721431-- * 'erEntity'
16731432entityResult
16741433 :: EntityResult
16751434entityResult =
16761435 EntityResult'
1677− { _erEntity = Nothing
1436+ { _erCursor = Nothing
1437+ , _erEntity = Nothing
16781438 }
16791439
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+
16801447-- | The resulting entity.
16811448erEntity :: Lens' EntityResult (Maybe Entity)
16821449erEntity = lens _erEntity (\ s a -> s{_erEntity = a})
@@ -1684,56 +1451,71 @@ erEntity = lens _erEntity (\ s a -> s{_erEntity = a})
16841451instance FromJSON EntityResult where
16851452 parseJSON
16861453 = withObject "EntityResult"
1687− (\ o -> EntityResult' <$> (o .:? "entity"))
1454+ (\ o ->
1455+ EntityResult' <$>
1456+ (o .:? "cursor") <*> (o .:? "entity"))
16881457
16891458instance ToJSON EntityResult where
16901459 toJSON EntityResult'{..}
1691− = object (catMaybes [("entity" .=) <$> _erEntity])
1460+ = object
1461+ (catMaybes
1462+ [("cursor" .=) <$> _erCursor,
1463+ ("entity" .=) <$> _erEntity])
16921464
1465+-- | The response for google.datastore.v1beta3.Datastore.Commit.
16931466--
16941467-- /See:/ 'commitResponse' smart constructor.
16951468data CommitResponse = CommitResponse'
1696− { _crMutationResult :: !(Maybe MutationResult)
1697− , _crHeader :: !(Maybe ResponseHeader)
1469+ { _crIndexUpdates :: !(Maybe (Textual Int32))
1470+ , _crMutationResults :: !(Maybe [MutationResult])
16981471 } deriving (Eq,Show,Data,Typeable,Generic)
16991472
17001473-- | Creates a value of 'CommitResponse' with the minimum fields required to make a request.
17011474--
17021475-- Use one of the following lenses to modify other fields as desired:
17031476--
1704−-- * 'crMutationResult'
1477+-- * 'crIndexUpdates'
17051478--
1706−-- * 'crHeader'
1479+-- * 'crMutationResults'
17071480commitResponse
17081481 :: CommitResponse
17091482commitResponse =
17101483 CommitResponse'
1711− { _crMutationResult = Nothing
1712− , _crHeader = Nothing
1484+ { _crIndexUpdates = Nothing
1485+ , _crMutationResults = Nothing
17131486 }
17141487
1715−-- | The result of performing the mutation (if any).
1716−crMutationResult :: Lens' CommitResponse (Maybe MutationResult)
1717−crMutationResult
1718− = lens _crMutationResult
1719− (\ s a -> s{_crMutationResult = a})
1488+-- | The number of index entries updated during the commit, or zero if none
1489+-- were updated.
1490+crIndexUpdates :: Lens' CommitResponse (Maybe Int32)
1491+crIndexUpdates
1492+ = lens _crIndexUpdates
1493+ (\ s a -> s{_crIndexUpdates = a})
1494+ . mapping _Coerce
17201495
1721−crHeader :: Lens' CommitResponse (Maybe ResponseHeader)
1722−crHeader = lens _crHeader (\ s a -> s{_crHeader = a})
1496+-- | The result of performing the mutations. The i-th mutation result
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
17231504
17241505instance FromJSON CommitResponse where
17251506 parseJSON
17261507 = withObject "CommitResponse"
17271508 (\ o ->
17281509 CommitResponse' <$>
1729− (o .:? "mutationResult") <*> (o .:? "header"))
1510+ (o .:? "indexUpdates") <*>
1511+ (o .:? "mutationResults" .!= mempty))
17301512
17311513instance ToJSON CommitResponse where
17321514 toJSON CommitResponse'{..}
17331515 = object
17341516 (catMaybes
1735− [("mutationResult" .=) <$> _crMutationResult,
1736− ("header" .=) <$> _crHeader])
1517+ [("indexUpdates" .=) <$> _crIndexUpdates,
1518+ ("mutationResults" .=) <$> _crMutationResults])
17371519
17381520-- | A representation of a kind.
17391521--
@@ -1767,6 +1549,7 @@ instance ToJSON KindExpression where
17671549 toJSON KindExpression'{..}
17681550 = object (catMaybes [("name" .=) <$> _keName])
17691551
1552+-- | The options shared by read requests.
17701553--
17711554-- /See:/ 'readOptions' smart constructor.
17721555data ReadOptions = ReadOptions'
@@ -1789,16 +1572,14 @@ readOptions =
17891572 , _roTransaction = Nothing
17901573 }
17911574
1792−-- | The read consistency to use. One of default, strong, or eventual. Cannot
1793−-- be set when transaction is set. Lookup and ancestor queries default to
1794−-- strong, global queries default to eventual and cannot be set to strong.
1795−-- Optional. Default is default.
1575+-- | The non-transactional read consistency to use. Cannot be set to
1576+-- \`STRONG\` for global queries.
17961577roReadConsistency :: Lens' ReadOptions (Maybe ReadOptionsReadConsistency)
17971578roReadConsistency
17981579 = lens _roReadConsistency
17991580 (\ s a -> s{_roReadConsistency = a})
18001581
1801−-- | The transaction to use. Optional.
1582+-- | The transaction in which to read.
18021583roTransaction :: Lens' ReadOptions (Maybe Word8)
18031584roTransaction
18041585 = lens _roTransaction
@@ -1819,90 +1600,62 @@ instance ToJSON ReadOptions where
18191600 [("readConsistency" .=) <$> _roReadConsistency,
18201601 ("transaction" .=) <$> _roTransaction])
18211602
1603+-- | The response for google.datastore.v1beta3.Datastore.Rollback (an empty
1604+-- message).
18221605--
18231606-- /See:/ 'rollbackResponse' smart constructor.
1824−newtype RollbackResponse = RollbackResponse'
1825− { _rrHeader :: Maybe ResponseHeader
1826− } deriving (Eq,Show,Data,Typeable,Generic)
1607+data RollbackResponse =
1608+ RollbackResponse'
1609+ deriving (Eq,Show,Data,Typeable,Generic)
18271610
18281611-- | Creates a value of 'RollbackResponse' with the minimum fields required to make a request.
18291612--
1830−-- Use one of the following lenses to modify other fields as desired:
1831−--
1832−-- * 'rrHeader'
18331613rollbackResponse
18341614 :: RollbackResponse
1835−rollbackResponse =
1836− RollbackResponse'
1837− { _rrHeader = Nothing
1838− }
1839−
1840−rrHeader :: Lens' RollbackResponse (Maybe ResponseHeader)
1841−rrHeader = lens _rrHeader (\ s a -> s{_rrHeader = a})
1615+rollbackResponse = RollbackResponse'
18421616
18431617instance FromJSON RollbackResponse where
18441618 parseJSON
18451619 = withObject "RollbackResponse"
1846− (\ o -> RollbackResponse' <$> (o .:? "header"))
1620+ (\ o -> pure RollbackResponse')
18471621
18481622instance ToJSON RollbackResponse where
1849− toJSON RollbackResponse'{..}
1850− = object (catMaybes [("header" .=) <$> _rrHeader])
1623+ toJSON = const emptyObject
18511624
18521625-- | A representation of a property in a projection.
18531626--
1854−-- /See:/ 'propertyExpression' smart constructor.
1855−data PropertyExpression = PropertyExpression'
1856− { _peProperty :: !(Maybe PropertyReference)
1857− , _peAggregationFunction :: !(Maybe PropertyExpressionAggregationFunction)
1627+-- /See:/ 'projection' smart constructor.
1628+newtype Projection = Projection'
1629+ { _pProperty :: Maybe PropertyReference
18581630 } deriving (Eq,Show,Data,Typeable,Generic)
18591631
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.
18611633--
18621634-- Use one of the following lenses to modify other fields as desired:
18631635--
1864−-- * 'peProperty'
1865−--
1866−-- * 'peAggregationFunction'
1867−propertyExpression
1868− :: PropertyExpression
1869−propertyExpression =
1870− PropertyExpression'
1871− { _peProperty = Nothing
1872− , _peAggregationFunction = Nothing
1636+-- * 'pProperty'
1637+projection
1638+ :: Projection
1639+projection =
1640+ Projection'
1641+ { _pProperty = Nothing
18731642 }
18741643
18751644-- | The property to project.
1876−peProperty :: Lens' PropertyExpression (Maybe PropertyReference)
1877−peProperty
1878− = lens _peProperty (\ s a -> s{_peProperty = a})
1879−
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
1645+pProperty :: Lens' Projection (Maybe PropertyReference)
1646+pProperty
1647+ = lens _pProperty (\ s a -> s{_pProperty = a})
1648+
1649+instance FromJSON Projection where
18911650 parseJSON
1892− = withObject "PropertyExpression"
1893− (\ o ->
1894− PropertyExpression' <$>
1895− (o .:? "property") <*> (o .:? "aggregationFunction"))
1651+ = withObject "Projection"
1652+ (\ o -> Projection' <$> (o .:? "property"))
18961653
1897−instance ToJSON PropertyExpression where
1898− toJSON PropertyExpression'{..}
1899− = object
1900− (catMaybes
1901− [("property" .=) <$> _peProperty,
1902− ("aggregationFunction" .=) <$>
1903− _peAggregationFunction])
1654+instance ToJSON Projection where
1655+ toJSON Projection'{..}
1656+ = object (catMaybes [("property" .=) <$> _pProperty])
19041657
1905−-- | A holder for any type of filter. Exactly one field should be specified.
1658+-- | A holder for any type of filter.
19061659--
19071660-- /See:/ 'filter'' smart constructor.
19081661data Filter = Filter'
@@ -1952,78 +1705,139 @@ instance ToJSON Filter where
19521705 [("compositeFilter" .=) <$> _fCompositeFilter,
19531706 ("propertyFilter" .=) <$> _fPropertyFilter])
19541707
1708+-- | The request for google.datastore.v1beta3.Datastore.Commit.
19551709--
19561710-- /See:/ 'commitRequest' smart constructor.
19571711data CommitRequest = CommitRequest'
1958− { _crMode :: !(Maybe CommitRequestMode)
1959− , _crMutation :: !(Maybe Mutation)
1960− , _crTransaction :: !(Maybe (Textual Word8))
1961− , _crIgnoreReadOnly :: !(Maybe Bool)
1712+ { _crMutations :: !(Maybe [Mutation])
1713+ , _crMode :: !(Maybe CommitRequestMode)
1714+ , _crTransaction :: !(Maybe (Textual Word8))
19621715 } deriving (Eq,Show,Data,Typeable,Generic)
19631716
19641717-- | Creates a value of 'CommitRequest' with the minimum fields required to make a request.
19651718--
19661719-- Use one of the following lenses to modify other fields as desired:
19671720--
1968−-- * 'crMode'
1721+-- * 'crMutations'
19691722--
1970−-- * 'crMutation'
1723+-- * 'crMode'
19711724--
19721725-- * 'crTransaction'
1973−--
1974−-- * 'crIgnoreReadOnly'
19751726commitRequest
19761727 :: CommitRequest
19771728commitRequest =
19781729 CommitRequest'
1979− { _crMode = Nothing
1980− , _crMutation = Nothing
1730+ { _crMutations = Nothing
1731+ , _crMode = Nothing
19811732 , _crTransaction = Nothing
1982− , _crIgnoreReadOnly = Nothing
19831733 }
19841734
1985−-- | The type of commit to perform. Either TRANSACTIONAL or
1986−-- NON_TRANSACTIONAL.
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+
1748+-- | The type of commit to perform. Defaults to \`TRANSACTIONAL\`.
19871749crMode :: Lens' CommitRequest (Maybe CommitRequestMode)
19881750crMode = lens _crMode (\ s a -> s{_crMode = a})
19891751
1990−-- | The mutation to perform. Optional.
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
1996−-- be set when mode is TRANSACTIONAL.
1752+-- | The identifier of the transaction associated with the commit. A
1753+-- transaction identifier is returned by a call to BeginTransaction.
19971754crTransaction :: Lens' CommitRequest (Maybe Word8)
19981755crTransaction
19991756 = lens _crTransaction
20001757 (\ s a -> s{_crTransaction = a})
20011758 . mapping _Coerce
20021759
2003−crIgnoreReadOnly :: Lens' CommitRequest (Maybe Bool)
2004−crIgnoreReadOnly
2005− = lens _crIgnoreReadOnly
2006− (\ s a -> s{_crIgnoreReadOnly = a})
2007−
20081760instance FromJSON CommitRequest where
20091761 parseJSON
20101762 = withObject "CommitRequest"
20111763 (\ o ->
20121764 CommitRequest' <$>
2013− (o .:? "mode") <*> (o .:? "mutation") <*>
2014− (o .:? "transaction")
2015− <*> (o .:? "ignoreReadOnly"))
1765+ (o .:? "mutations" .!= mempty) <*> (o .:? "mode") <*>
1766+ (o .:? "transaction"))
20161767
20171768instance ToJSON CommitRequest where
20181769 toJSON CommitRequest'{..}
20191770 = object
20201771 (catMaybes
2021− [("mode" .=) <$> _crMode,
2022− ("mutation" .=) <$> _crMutation,
2023− ("transaction" .=) <$> _crTransaction,
2024− ("ignoreReadOnly" .=) <$> _crIgnoreReadOnly])
1772+ [("mutations" .=) <$> _crMutations,
1773+ ("mode" .=) <$> _crMode,
1774+ ("transaction" .=) <$> _crTransaction])
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)
20251786
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.
20271841--
20281842-- /See:/ 'entity' smart constructor.
20291843data Entity = Entity'
@@ -2047,13 +1861,16 @@ entity =
20471861 }
20481862
20491863-- | The entity\'s key. An entity must have a key, unless otherwise
2050−-- documented (for example, an entity in Value.entityValue may have no
2051−-- key). An entity\'s kind is its key\'s path\'s last element\'s kind, or
2052−-- null if it has no key.
1864+-- documented (for example, an entity in \`Value.entity_value\` may have no
1865+-- key). An entity\'s kind is its key path\'s last element\'s kind, or null
1866+-- if it has no key.
20531867eKey :: Lens' Entity (Maybe Key)
20541868eKey = lens _eKey (\ s a -> s{_eKey = a})
20551869
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 \`\"\"\`.
20571874eProperties :: Lens' Entity (Maybe EntityProperties)
20581875eProperties
20591876 = lens _eProperties (\ s a -> s{_eProperties = a})
@@ -2071,13 +1888,13 @@ instance ToJSON Entity where
20711888 [("key" .=) <$> _eKey,
20721889 ("properties" .=) <$> _eProperties])
20731890
1891+-- | The response for google.datastore.v1beta3.Datastore.Lookup.
20741892--
20751893-- /See:/ 'lookupResponse' smart constructor.
20761894data LookupResponse = LookupResponse'
20771895 { _lrDeferred :: !(Maybe [Key])
20781896 , _lrFound :: !(Maybe [EntityResult])
20791897 , _lrMissing :: !(Maybe [EntityResult])
2080− , _lrHeader :: !(Maybe ResponseHeader)
20811898 } deriving (Eq,Show,Data,Typeable,Generic)
20821899
20831900-- | Creates a value of 'LookupResponse' with the minimum fields required to make a request.
@@ -2089,8 +1906,6 @@ data LookupResponse = LookupResponse'
20891906-- * 'lrFound'
20901907--
20911908-- * 'lrMissing'
2092−--
2093−-- * 'lrHeader'
20941909lookupResponse
20951910 :: LookupResponse
20961911lookupResponse =
@@ -2098,32 +1913,34 @@ lookupResponse =
20981913 { _lrDeferred = Nothing
20991914 , _lrFound = Nothing
21001915 , _lrMissing = Nothing
2101− , _lrHeader = Nothing
21021916 }
21031917
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.
21051921lrDeferred :: Lens' LookupResponse [Key]
21061922lrDeferred
21071923 = lens _lrDeferred (\ s a -> s{_lrDeferred = a}) .
21081924 _Default
21091925 . _Coerce
21101926
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.
21121930lrFound :: Lens' LookupResponse [EntityResult]
21131931lrFound
21141932 = lens _lrFound (\ s a -> s{_lrFound = a}) . _Default
21151933 . _Coerce
21161934
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.
21181938lrMissing :: Lens' LookupResponse [EntityResult]
21191939lrMissing
21201940 = lens _lrMissing (\ s a -> s{_lrMissing = a}) .
21211941 _Default
21221942 . _Coerce
21231943
2124−lrHeader :: Lens' LookupResponse (Maybe ResponseHeader)
2125−lrHeader = lens _lrHeader (\ s a -> s{_lrHeader = a})
2126−
21271944instance FromJSON LookupResponse where
21281945 parseJSON
21291946 = withObject "LookupResponse"
@@ -2131,8 +1948,7 @@ instance FromJSON LookupResponse where
21311948 LookupResponse' <$>
21321949 (o .:? "deferred" .!= mempty) <*>
21331950 (o .:? "found" .!= mempty)
2134− <*> (o .:? "missing" .!= mempty)
2135− <*> (o .:? "header"))
1951+ <*> (o .:? "missing" .!= mempty))
21361952
21371953instance ToJSON LookupResponse where
21381954 toJSON LookupResponse'{..}
@@ -2140,8 +1956,7 @@ instance ToJSON LookupResponse where
21401956 (catMaybes
21411957 [("deferred" .=) <$> _lrDeferred,
21421958 ("found" .=) <$> _lrFound,
2143− ("missing" .=) <$> _lrMissing,
2144− ("header" .=) <$> _lrHeader])
1959+ ("missing" .=) <$> _lrMissing])
21451960
21461961-- | The desired order for a specific property.
21471962--
@@ -2171,8 +1986,7 @@ poProperty :: Lens' PropertyOrder (Maybe PropertyReference)
21711986poProperty
21721987 = lens _poProperty (\ s a -> s{_poProperty = a})
21731988
2174−-- | The direction to order by. One of ascending or descending. Optional,
2175−-- defaults to ascending.
1989+-- | The direction to order by. Defaults to \`ASCENDING\`.
21761990poDirection :: Lens' PropertyOrder (Maybe PropertyOrderDirection)
21771991poDirection
21781992 = lens _poDirection (\ s a -> s{_poDirection = a})
@@ -2190,3 +2004,50 @@ instance ToJSON PropertyOrder where
21902004 (catMaybes
21912005 [("property" .=) <$> _poProperty,
21922006 ("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
1818
1919import Network.Google.Prelude
2020
21−-- | The direction to order by. One of ascending or descending. Optional,
22−-- defaults to ascending.
21+-- | The direction to order by. Defaults to \`ASCENDING\`.
2322data PropertyOrderDirection
24− = Ascending
23+ = DirectionUnspecified
24+ -- ^ @DIRECTION_UNSPECIFIED@
25+ -- Unspecified. This value must not be used.
26+ | Ascending
2527 -- ^ @ASCENDING@
28+ -- Ascending.
2629 | Descending
2730 -- ^ @DESCENDING@
28− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
31+ -- Descending.
32+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2933
3034instance Hashable PropertyOrderDirection
3135
3236instance FromHttpApiData PropertyOrderDirection where
3337 parseQueryParam = \case
38+ "DIRECTION_UNSPECIFIED" -> Right DirectionUnspecified
3439 "ASCENDING" -> Right Ascending
3540 "DESCENDING" -> Right Descending
3641 x -> Left ("Unable to parse PropertyOrderDirection from: " <> x)
3742
3843instance ToHttpApiData PropertyOrderDirection where
3944 toQueryParam = \case
45+ DirectionUnspecified -> "DIRECTION_UNSPECIFIED"
4046 Ascending -> "ASCENDING"
4147 Descending -> "DESCENDING"
4248
@@ -46,32 +52,67 @@ instance FromJSON PropertyOrderDirection where
4652instance ToJSON PropertyOrderDirection where
4753 toJSON = toJSONText
4854
49−-- | The result type for every entity in entityResults. full for full
50−-- entities, projection for entities with only projected properties,
51−-- keyOnly for entities with only a key.
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+
84+-- | The result type for every entity in \`entity_results\`.
5285data QueryResultBatchEntityResultType
53− = Full
86+ = QRBERTResultTypeUnspecified
87+ -- ^ @RESULT_TYPE_UNSPECIFIED@
88+ -- Unspecified. This value is never used.
89+ | QRBERTFull
5490 -- ^ @FULL@
55− | KeyOnly
56− -- ^ @KEY_ONLY@
57− | Projection
91+ -- The key and properties.
92+ | QRBERTProjection
5893 -- ^ @PROJECTION@
59− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
94+ -- A projected subset of properties. The entity may have no key.
95+ | QRBERTKeyOnly
96+ -- ^ @KEY_ONLY@
97+ -- Only the key.
98+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
6099
61100instance Hashable QueryResultBatchEntityResultType
62101
63102instance FromHttpApiData QueryResultBatchEntityResultType where
64103 parseQueryParam = \case
65− "FULL" -> Right Full
66− "KEY_ONLY" -> Right KeyOnly
67− "PROJECTION" -> Right Projection
104+ "RESULT_TYPE_UNSPECIFIED" -> Right QRBERTResultTypeUnspecified
105+ "FULL" -> Right QRBERTFull
106+ "PROJECTION" -> Right QRBERTProjection
107+ "KEY_ONLY" -> Right QRBERTKeyOnly
68108 x -> Left ("Unable to parse QueryResultBatchEntityResultType from: " <> x)
69109
70110instance ToHttpApiData QueryResultBatchEntityResultType where
71111 toQueryParam = \case
72− Full -> "FULL"
73− KeyOnly -> "KEY_ONLY"
74− Projection -> "PROJECTION"
112+ QRBERTResultTypeUnspecified -> "RESULT_TYPE_UNSPECIFIED"
113+ QRBERTFull -> "FULL"
114+ QRBERTProjection -> "PROJECTION"
115+ QRBERTKeyOnly -> "KEY_ONLY"
75116
76117instance FromJSON QueryResultBatchEntityResultType where
77118 parseJSON = parseJSONText "QueryResultBatchEntityResultType"
@@ -79,54 +120,43 @@ instance FromJSON QueryResultBatchEntityResultType where
79120instance ToJSON QueryResultBatchEntityResultType where
80121 toJSON = toJSONText
81122
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,
107−-- moreResultsAfterLimit, noMoreResults.
123+-- | The state of the query after the current batch.
108124data QueryResultBatchMoreResults
109− = MoreResultsAfterLimit
110− -- ^ @MORE_RESULTS_AFTER_LIMIT@
125+ = MoreResultsTypeUnspecified
126+ -- ^ @MORE_RESULTS_TYPE_UNSPECIFIED@
127+ -- Unspecified. This value is never used.
111128 | NotFinished
112129 -- ^ @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.
113138 | NoMoreResults
114139 -- ^ @NO_MORE_RESULTS@
115− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
140+ -- The query has been exhausted.
141+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
116142
117143instance Hashable QueryResultBatchMoreResults
118144
119145instance FromHttpApiData QueryResultBatchMoreResults where
120146 parseQueryParam = \case
121− "MORE_RESULTS_AFTER_LIMIT" -> Right MoreResultsAfterLimit
147+ "MORE_RESULTS_TYPE_UNSPECIFIED" -> Right MoreResultsTypeUnspecified
122148 "NOT_FINISHED" -> Right NotFinished
149+ "MORE_RESULTS_AFTER_LIMIT" -> Right MoreResultsAfterLimit
150+ "MORE_RESULTS_AFTER_CURSOR" -> Right MoreResultsAfterCursor
123151 "NO_MORE_RESULTS" -> Right NoMoreResults
124152 x -> Left ("Unable to parse QueryResultBatchMoreResults from: " <> x)
125153
126154instance ToHttpApiData QueryResultBatchMoreResults where
127155 toQueryParam = \case
128− MoreResultsAfterLimit -> "MORE_RESULTS_AFTER_LIMIT"
156+ MoreResultsTypeUnspecified -> "MORE_RESULTS_TYPE_UNSPECIFIED"
129157 NotFinished -> "NOT_FINISHED"
158+ MoreResultsAfterLimit -> "MORE_RESULTS_AFTER_LIMIT"
159+ MoreResultsAfterCursor -> "MORE_RESULTS_AFTER_CURSOR"
130160 NoMoreResults -> "NO_MORE_RESULTS"
131161
132162instance FromJSON QueryResultBatchMoreResults where
@@ -135,33 +165,58 @@ instance FromJSON QueryResultBatchMoreResults where
135165instance ToJSON QueryResultBatchMoreResults where
136166 toJSON = toJSONText
137167
138−-- | The read consistency to use. One of default, strong, or eventual. Cannot
139−-- be set when transaction is set. Lookup and ancestor queries default to
140−-- strong, global queries default to eventual and cannot be set to strong.
141−-- Optional. Default is default.
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+
192+-- | The non-transactional read consistency to use. Cannot be set to
193+-- \`STRONG\` for global queries.
142194data ReadOptionsReadConsistency
143− = Default
144− -- ^ @DEFAULT@
145− | Eventual
146− -- ^ @EVENTUAL@
195+ = ReadConsistencyUnspecified
196+ -- ^ @READ_CONSISTENCY_UNSPECIFIED@
197+ -- Unspecified. This value must not be used.
147198 | Strong
148199 -- ^ @STRONG@
149− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
200+ -- Strong consistency.
201+ | Eventual
202+ -- ^ @EVENTUAL@
203+ -- Eventual consistency.
204+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
150205
151206instance Hashable ReadOptionsReadConsistency
152207
153208instance FromHttpApiData ReadOptionsReadConsistency where
154209 parseQueryParam = \case
155− "DEFAULT" -> Right Default
156− "EVENTUAL" -> Right Eventual
210+ "READ_CONSISTENCY_UNSPECIFIED" -> Right ReadConsistencyUnspecified
157211 "STRONG" -> Right Strong
212+ "EVENTUAL" -> Right Eventual
158213 x -> Left ("Unable to parse ReadOptionsReadConsistency from: " <> x)
159214
160215instance ToHttpApiData ReadOptionsReadConsistency where
161216 toQueryParam = \case
162− Default -> "DEFAULT"
163− Eventual -> "EVENTUAL"
217+ ReadConsistencyUnspecified -> "READ_CONSISTENCY_UNSPECIFIED"
164218 Strong -> "STRONG"
219+ Eventual -> "EVENTUAL"
165220
166221instance FromJSON ReadOptionsReadConsistency where
167222 parseJSON = parseJSONText "ReadOptionsReadConsistency"
@@ -169,133 +224,121 @@ instance FromJSON ReadOptionsReadConsistency where
169224instance ToJSON ReadOptionsReadConsistency where
170225 toJSON = toJSONText
171226
172−-- | The operator to filter by. One of lessThan, lessThanOrEqual,
173−-- greaterThan, greaterThanOrEqual, equal, or hasAncestor.
174−data PropertyFilterOperator
175− = Equal
176− -- ^ @EQUAL@
177− | GreaterThan
178− -- ^ @GREATER_THAN@
179− | GreaterThanOrEqual
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)
227+-- | V1 error format.
228+data Xgafv
229+ = X1
230+ -- ^ @1@
231+ -- v1 error format
232+ | X2
233+ -- ^ @2@
234+ -- v2 error format
235+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
188236
189−instance Hashable PropertyFilterOperator
237+instance Hashable Xgafv
190238
191−instance FromHttpApiData PropertyFilterOperator where
239+instance FromHttpApiData Xgafv where
192240 parseQueryParam = \case
193− "EQUAL" -> Right Equal
194− "GREATER_THAN" -> Right GreaterThan
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)
200−
201−instance ToHttpApiData PropertyFilterOperator where
241+ "1" -> Right X1
242+ "2" -> Right X2
243+ x -> Left ("Unable to parse Xgafv from: " <> x)
244+
245+instance ToHttpApiData Xgafv where
202246 toQueryParam = \case
203− Equal -> "EQUAL"
204− GreaterThan -> "GREATER_THAN"
205− GreaterThanOrEqual -> "GREATER_THAN_OR_EQUAL"
206− HasAncestor -> "HAS_ANCESTOR"
207− LessThan -> "LESS_THAN"
208− LessThanOrEqual -> "LESS_THAN_OR_EQUAL"
247+ X1 -> "1"
248+ X2 -> "2"
209249
210−instance FromJSON PropertyFilterOperator where
211− parseJSON = parseJSONText "PropertyFilterOperator"
250+instance FromJSON Xgafv where
251+ parseJSON = parseJSONText "Xgafv"
212252
213−instance ToJSON PropertyFilterOperator where
253+instance ToJSON Xgafv where
214254 toJSON = toJSONText
215255
216−-- | The transaction isolation level. Either snapshot or serializable. The
217−-- default isolation level is snapshot isolation, which means that another
218−-- transaction may not concurrently modify the data that is modified by
219−-- this transaction. Optionally, a transaction can request to be made
220−-- serializable which means that another transaction cannot concurrently
221−-- modify the data that is read or modified by this transaction.
222−data BeginTransactionRequestIsolationLevel
223− = Serializable
224− -- ^ @SERIALIZABLE@
225− | Snapshot
226− -- ^ @SNAPSHOT@
227− 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"
256+-- | The operator to filter by.
257+data PropertyFilterOp
258+ = PFOOperatorUnspecified
259+ -- ^ @OPERATOR_UNSPECIFIED@
260+ -- Unspecified. This value must not be used.
261+ | PFOLessThan
262+ -- ^ @LESS_THAN@
263+ -- Less than.
264+ | PFOLessThanOrEqual
265+ -- ^ @LESS_THAN_OR_EQUAL@
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.
279+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
241280
242−instance FromJSON BeginTransactionRequestIsolationLevel where
243− parseJSON = parseJSONText "BeginTransactionRequestIsolationLevel"
281+instance Hashable PropertyFilterOp
244282
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
246308 toJSON = toJSONText
247309
248−-- | The type of commit to perform. Either TRANSACTIONAL or
249−-- NON_TRANSACTIONAL.
310+-- | The type of commit to perform. Defaults to \`TRANSACTIONAL\`.
250311data CommitRequestMode
251− = NonTransactional
252− -- ^ @NON_TRANSACTIONAL@
312+ = ModeUnspecified
313+ -- ^ @MODE_UNSPECIFIED@
314+ -- Unspecified. This value must not be used.
253315 | Transactional
254316 -- ^ @TRANSACTIONAL@
255− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
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.
323+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
256324
257325instance Hashable CommitRequestMode
258326
259327instance FromHttpApiData CommitRequestMode where
260328 parseQueryParam = \case
261− "NON_TRANSACTIONAL" -> Right NonTransactional
329+ "MODE_UNSPECIFIED" -> Right ModeUnspecified
262330 "TRANSACTIONAL" -> Right Transactional
331+ "NON_TRANSACTIONAL" -> Right NonTransactional
263332 x -> Left ("Unable to parse CommitRequestMode from: " <> x)
264333
265334instance ToHttpApiData CommitRequestMode where
266335 toQueryParam = \case
267− NonTransactional -> "NON_TRANSACTIONAL"
336+ ModeUnspecified -> "MODE_UNSPECIFIED"
268337 Transactional -> "TRANSACTIONAL"
338+ NonTransactional -> "NON_TRANSACTIONAL"
269339
270340instance FromJSON CommitRequestMode where
271341 parseJSON = parseJSONText "CommitRequestMode"
272342
273343instance ToJSON CommitRequestMode where
274344 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 @@
1313{-# OPTIONS_GHC -fno-warn-unused-imports #-}
1414
1515-- |
16−-- Module : Network.Google.Resource.CloudResourceManager.Projects.Create
16+-- Module : Network.Google.Resource.Datastore.Projects.Commit
1717-- Copyright : (c) 2015-2016 Brendan Hay
1818-- License : Mozilla Public License, v. 2.0.
1919-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Creates a project resource. Initially, the project resource is owned by
24−-- its creator exclusively. The creator can later grant permission to
25−-- others to read or update the project. Several APIs are activated
26−-- automatically for the project, including Google Cloud Storage.
23+-- Commits a transaction, optionally creating, deleting or modifying some
24+-- entities.
2725--
28−-- /See:/ <https://cloud.google.com/resource-manager Google Cloud Resource Manager API Reference> for @cloudresourcemanager.projects.create@.
29−module Network.Google.Resource.CloudResourceManager.Projects.Create
26+-- /See:/ <https://cloud.google.com/datastore/ Google Cloud Datastore API Reference> for @datastore.projects.commit@.
27+module Network.Google.Resource.Datastore.Projects.Commit
3028 (
3129 -- * REST Resource
32− ProjectsCreateResource
30+ ProjectsCommitResource
3331
3432 -- * Creating a Request
35− , projectsCreate
36− , ProjectsCreate
33+ , projectsCommit
34+ , ProjectsCommit
3735
3836 -- * Request Lenses
3937 , pcXgafv
@@ -43,45 +41,47 @@ module Network.Google.Resource.CloudResourceManager.Projects.Create
4341 , pcUploadType
4442 , pcPayload
4543 , pcBearerToken
44+ , pcProjectId
4645 , pcCallback
4746 ) where
4847
48+import Network.Google.Datastore.Types
4949import Network.Google.Prelude
50−import Network.Google.ResourceManager.Types
5150
52−-- | A resource alias for @cloudresourcemanager.projects.create@ method which the
53−-- 'ProjectsCreate' request conforms to.
54−type ProjectsCreateResource =
55− "v1beta1" :>
51+-- | A resource alias for @datastore.projects.commit@ method which the
52+-- 'ProjectsCommit' request conforms to.
53+type ProjectsCommitResource =
54+ "v1beta3" :>
5655 "projects" :>
57− QueryParam "$.xgafv" Text :>
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] Project :> Post '[JSON] Project
66−
67−-- | Creates a project resource. Initially, the project resource is owned by
68−-- its creator exclusively. The creator can later grant permission to
69−-- others to read or update the project. Several APIs are activated
70−-- automatically for the project, including Google Cloud Storage.
56+ CaptureMode "projectId" "commit" 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] CommitRequest :>
66+ Post '[JSON] CommitResponse
67+
68+-- | Commits a transaction, optionally creating, deleting or modifying some
69+-- entities.
7170--
72−-- /See:/ 'projectsCreate' smart constructor.
73−data ProjectsCreate = ProjectsCreate
74− { _pcXgafv :: !(Maybe Text)
71+-- /See:/ 'projectsCommit' smart constructor.
72+data ProjectsCommit = ProjectsCommit'
73+ { _pcXgafv :: !(Maybe Xgafv)
7574 , _pcUploadProtocol :: !(Maybe Text)
7675 , _pcPp :: !Bool
7776 , _pcAccessToken :: !(Maybe Text)
7877 , _pcUploadType :: !(Maybe Text)
79− , _pcPayload :: !Project
78+ , _pcPayload :: !CommitRequest
8079 , _pcBearerToken :: !(Maybe Text)
80+ , _pcProjectId :: !Text
8181 , _pcCallback :: !(Maybe Text)
8282 } deriving (Eq,Show,Data,Typeable,Generic)
8383
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.
8585--
8686-- Use one of the following lenses to modify other fields as desired:
8787--
@@ -99,12 +99,15 @@ data ProjectsCreate = ProjectsCreate
9999--
100100-- * 'pcBearerToken'
101101--
102+-- * 'pcProjectId'
103+--
102104-- * 'pcCallback'
103−projectsCreate
104− :: Project -- ^ 'pcPayload'
105− -> ProjectsCreate
106−projectsCreate pPcPayload_ =
107− ProjectsCreate
105+projectsCommit
106+ :: CommitRequest -- ^ 'pcPayload'
107+ -> Text -- ^ 'pcProjectId'
108+ -> ProjectsCommit
109+projectsCommit pPcPayload_ pPcProjectId_ =
110+ ProjectsCommit'
108111 { _pcXgafv = Nothing
109112 , _pcUploadProtocol = Nothing
110113 , _pcPp = True
@@ -112,63 +115,71 @@ projectsCreate pPcPayload_ =
112115 , _pcUploadType = Nothing
113116 , _pcPayload = pPcPayload_
114117 , _pcBearerToken = Nothing
118+ , _pcProjectId = pPcProjectId_
115119 , _pcCallback = Nothing
116120 }
117121
118122-- | V1 error format.
119−pcXgafv :: Lens' ProjectsCreate (Maybe Text)
123+pcXgafv :: Lens' ProjectsCommit (Maybe Xgafv)
120124pcXgafv = lens _pcXgafv (\ s a -> s{_pcXgafv = a})
121125
122126-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
123−pcUploadProtocol :: Lens' ProjectsCreate (Maybe Text)
127+pcUploadProtocol :: Lens' ProjectsCommit (Maybe Text)
124128pcUploadProtocol
125129 = lens _pcUploadProtocol
126130 (\ s a -> s{_pcUploadProtocol = a})
127131
128132-- | Pretty-print response.
129−pcPp :: Lens' ProjectsCreate Bool
133+pcPp :: Lens' ProjectsCommit Bool
130134pcPp = lens _pcPp (\ s a -> s{_pcPp = a})
131135
132136-- | OAuth access token.
133−pcAccessToken :: Lens' ProjectsCreate (Maybe Text)
137+pcAccessToken :: Lens' ProjectsCommit (Maybe Text)
134138pcAccessToken
135139 = lens _pcAccessToken
136140 (\ s a -> s{_pcAccessToken = a})
137141
138142-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
139−pcUploadType :: Lens' ProjectsCreate (Maybe Text)
143+pcUploadType :: Lens' ProjectsCommit (Maybe Text)
140144pcUploadType
141145 = lens _pcUploadType (\ s a -> s{_pcUploadType = a})
142146
143147-- | Multipart request metadata.
144−pcPayload :: Lens' ProjectsCreate Project
148+pcPayload :: Lens' ProjectsCommit CommitRequest
145149pcPayload
146150 = lens _pcPayload (\ s a -> s{_pcPayload = a})
147151
148152-- | OAuth bearer token.
149−pcBearerToken :: Lens' ProjectsCreate (Maybe Text)
153+pcBearerToken :: Lens' ProjectsCommit (Maybe Text)
150154pcBearerToken
151155 = lens _pcBearerToken
152156 (\ s a -> s{_pcBearerToken = a})
153157
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+
154163-- | JSONP
155−pcCallback :: Lens' ProjectsCreate (Maybe Text)
164+pcCallback :: Lens' ProjectsCommit (Maybe Text)
156165pcCallback
157166 = lens _pcCallback (\ s a -> s{_pcCallback = a})
158167
159−instance GoogleRequest ProjectsCreate where
160− type Rs ProjectsCreate = Project
161− type Scopes ProjectsCreate =
162− '["https://www.googleapis.com/auth/cloud-platform"]
163− requestClient ProjectsCreate{..}
164− = go _pcXgafv _pcUploadProtocol (Just _pcPp)
168+instance GoogleRequest ProjectsCommit where
169+ type Rs ProjectsCommit = CommitResponse
170+ type Scopes ProjectsCommit =
171+ '["https://www.googleapis.com/auth/cloud-platform",
172+ "https://www.googleapis.com/auth/datastore"]
173+ requestClient ProjectsCommit'{..}
174+ = go _pcProjectId _pcXgafv _pcUploadProtocol
175+ (Just _pcPp)
165176 _pcAccessToken
166177 _pcUploadType
167178 _pcBearerToken
168179 _pcCallback
169180 (Just AltJSON)
170181 _pcPayload
171− resourceManagerService
182+ datastoreService
172183 where go
173− = buildClient (Proxy :: Proxy ProjectsCreateResource)
184+ = buildClient (Proxy :: Proxy ProjectsCommitResource)
174185 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
1414extra-source-files: README.md
1515
1616description:
17− API for accessing Google Cloud Datastore.
17+ Google Cloud Datastore is a schemaless NoSQL datastore providing robust,
18+ scalable storage for your application.
1819 .
1920 /Warning:/ This is an experimental prototype/preview release which is still
2021 under exploratory development and not intended for public use, caveat emptor!
2122 .
22− This library is compatible with version @v1beta2@
23+ This library is compatible with version @v1beta3@
2324 of the API.
2425
2526source-repository head
@@ -35,12 +36,12 @@ library
3536 exposed-modules:
3637 Network.Google.Datastore
3738 , Network.Google.Datastore.Types
38− , Network.Google.Resource.Datastore.DataSets.AllocateIds
39− , Network.Google.Resource.Datastore.DataSets.BeginTransaction
40− , Network.Google.Resource.Datastore.DataSets.Commit
41− , Network.Google.Resource.Datastore.DataSets.Lookup
42− , Network.Google.Resource.Datastore.DataSets.Rollback
43− , Network.Google.Resource.Datastore.DataSets.RunQuery
39+ , Network.Google.Resource.Datastore.Projects.AllocateIds
40+ , Network.Google.Resource.Datastore.Projects.BeginTransaction
41+ , Network.Google.Resource.Datastore.Projects.Commit
42+ , Network.Google.Resource.Datastore.Projects.Lookup
43+ , Network.Google.Resource.Datastore.Projects.Rollback
44+ , Network.Google.Resource.Datastore.Projects.RunQuery
4445
4546 other-modules:
4647 Network.Google.Datastore.Types.Product
gogol-deploymentmanager/gen/Network/Google/DeploymentManager/Types/Sum.hs+4−4
@@ -24,7 +24,7 @@ data DeploymentsUpdateCreatePolicy
2424 -- ^ @ACQUIRE@
2525 | CreateOrAcquire
2626 -- ^ @CREATE_OR_ACQUIRE@
27− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
27+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2828
2929instance Hashable DeploymentsUpdateCreatePolicy
3030
@@ -51,7 +51,7 @@ data DeploymentsUpdateDeletePolicy
5151 -- ^ @ABANDON@
5252 | Delete'
5353 -- ^ @DELETE@
54− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
54+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5555
5656instance Hashable DeploymentsUpdateDeletePolicy
5757
@@ -78,7 +78,7 @@ data DeploymentsPatchDeletePolicy
7878 -- ^ @ABANDON@
7979 | DPDPDelete'
8080 -- ^ @DELETE@
81− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
81+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
8282
8383instance Hashable DeploymentsPatchDeletePolicy
8484
@@ -105,7 +105,7 @@ data DeploymentsPatchCreatePolicy
105105 -- ^ @ACQUIRE@
106106 | DPCPCreateOrAcquire
107107 -- ^ @CREATE_OR_ACQUIRE@
108− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
108+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
109109
110110instance Hashable DeploymentsPatchCreatePolicy
111111
gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeAssets/Insert.hs+4−5
@@ -64,10 +64,9 @@ type CreativeAssetsInsertResource =
6464 Capture "advertiserId" (Textual Int64) :>
6565 "creativeAssets" :>
6666 QueryParam "alt" AltJSON :>
67− QueryParam "uploadType" AltMedia :>
68− MultipartRelated '[JSON] CreativeAssetMetadata
69− RequestBody
70− :> Post '[JSON] CreativeAssetMetadata
67+ QueryParam "uploadType" Multipart :>
68+ MultipartRelated '[JSON] CreativeAssetMetadata :>
69+ Post '[JSON] CreativeAssetMetadata
7170
7271-- | Inserts a new creative asset.
7372--
@@ -139,7 +138,7 @@ instance GoogleRequest
139138 requestClient
140139 (MediaUpload CreativeAssetsInsert'{..} body)
141140 = go _caiProFileId _caiAdvertiserId (Just AltJSON)
142− (Just AltMedia)
141+ (Just Multipart)
143142 _caiPayload
144143 body
145144 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
2222data ChangesListSortBy
2323 = ChangeSequence
2424 -- ^ @changeSequence@
25− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
25+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2626
2727instance Hashable ChangesListSortBy
2828
@@ -47,7 +47,7 @@ data ChangeStatus
4747 -- ^ @done@
4848 | Pending
4949 -- ^ @pending@
50− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
50+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
5151
5252instance Hashable ChangeStatus
5353
gogol-doubleclick-bids/gen/Network/Google/DoubleClickBids/Types/Sum.hs+15−15
@@ -26,7 +26,7 @@ data QueryMetadataFormat
2626 -- ^ @EXCEL_CSV@
2727 | Xlsx
2828 -- ^ @XLSX@
29− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
29+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3030
3131instance Hashable QueryMetadataFormat
3232
@@ -111,7 +111,7 @@ data ParametersType
111111 -- ^ @TYPE_VERIFICATION@
112112 | TypeYouTubeVertical
113113 -- ^ @TYPE_YOUTUBE_VERTICAL@
114− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
114+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
115115
116116instance Hashable ParametersType
117117
@@ -196,7 +196,7 @@ data DownloadLineItemsRequestFilterType
196196 -- ^ @INSERTION_ORDER_ID@
197197 | LineItemId
198198 -- ^ @LINE_ITEM_ID@
199− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
199+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
200200
201201instance Hashable DownloadLineItemsRequestFilterType
202202
@@ -257,7 +257,7 @@ data QueryMetadataDataRange
257257 -- ^ @WEEK_TO_DATE@
258258 | YearToDate
259259 -- ^ @YEAR_TO_DATE@
260− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
260+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
261261
262262instance Hashable QueryMetadataDataRange
263263
@@ -855,7 +855,7 @@ data ParametersMetricsItem
855855 -- ^ @METRIC_VIDEO_COMPANION_IMPRESSIONS@
856856 | MetricVideoCompletionRate
857857 -- ^ @METRIC_VIDEO_COMPLETION_RATE@
858− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
858+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
859859
860860instance Hashable ParametersMetricsItem
861861
@@ -1430,7 +1430,7 @@ data QueryScheduleFrequency
14301430 -- ^ @SEMI_MONTHLY@
14311431 | Weekly
14321432 -- ^ @WEEKLY@
1433− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1433+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
14341434
14351435instance Hashable QueryScheduleFrequency
14361436
@@ -1466,7 +1466,7 @@ data DownloadLineItemsRequestFileSpec
14661466 -- ^ @EWF@
14671467 | Sdf
14681468 -- ^ @SDF@
1469− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1469+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
14701470
14711471instance Hashable DownloadLineItemsRequestFileSpec
14721472
@@ -1491,7 +1491,7 @@ instance ToJSON DownloadLineItemsRequestFileSpec where
14911491data UploadLineItemsRequestFormat
14921492 = ULIRFCSV
14931493 -- ^ @CSV@
1494− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1494+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
14951495
14961496instance Hashable UploadLineItemsRequestFormat
14971497
@@ -1690,7 +1690,7 @@ data FilterPairType
16901690 -- ^ @FILTER_YOUTUBE_VERTICAL@
16911691 | FilterZipCode
16921692 -- ^ @FILTER_ZIP_CODE@
1693− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1693+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
16941694
16951695instance Hashable FilterPairType
16961696
@@ -1923,7 +1923,7 @@ data RunQueryRequestDataRange
19231923 -- ^ @WEEK_TO_DATE@
19241924 | RQRDRYearToDate
19251925 -- ^ @YEAR_TO_DATE@
1926− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1926+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
19271927
19281928instance Hashable RunQueryRequestDataRange
19291929
@@ -1984,7 +1984,7 @@ data ReportStatusState
19841984 -- ^ @FAILED@
19851985 | Running
19861986 -- ^ @RUNNING@
1987− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
1987+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
19881988
19891989instance Hashable ReportStatusState
19901990
@@ -2186,7 +2186,7 @@ data ParametersGroupBysItem
21862186 -- ^ @FILTER_YOUTUBE_VERTICAL@
21872187 | PGBIFilterZipCode
21882188 -- ^ @FILTER_ZIP_CODE@
2189− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2189+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
21902190
21912191instance Hashable ParametersGroupBysItem
21922192
@@ -2419,7 +2419,7 @@ data ReportFailureErrorCode
24192419 -- ^ @UNAUTHORIZED_API_ACCESS@
24202420 | ValidationError
24212421 -- ^ @VALIDATION_ERROR@
2422− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2422+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
24232423
24242424instance Hashable ReportFailureErrorCode
24252425
@@ -2476,7 +2476,7 @@ instance ToJSON ReportFailureErrorCode where
24762476data DownloadLineItemsRequestFormat
24772477 = DLIRFCSV
24782478 -- ^ @CSV@
2479− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2479+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
24802480
24812481instance Hashable DownloadLineItemsRequestFormat
24822482
@@ -2503,7 +2503,7 @@ data ReportStatusFormat
25032503 -- ^ @EXCEL_CSV@
25042504 | RSFXlsx
25052505 -- ^ @XLSX@
2506− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
2506+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
25072507
25082508instance Hashable ReportStatusFormat
25092509
gogol-drive/gen/Network/Google/Drive/Types/Sum.hs+1−1
@@ -26,7 +26,7 @@ data FilesListCorpus
2626 | FLCUser
2727 -- ^ @user@
2828 -- 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)
3030
3131instance Hashable FilesListCorpus
3232
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 =
6565 QueryParam "keepRevisionForever" Bool :>
6666 QueryParam "ignoreDefaultVisibility" Bool :>
6767 QueryParam "alt" AltJSON :>
68− QueryParam "uploadType" AltMedia :>
69− MultipartRelated '[JSON] File RequestBody :>
70− Post '[JSON] File
68+ QueryParam "uploadType" Multipart :>
69+ MultipartRelated '[JSON] File :> Post '[JSON] File
7170
7271-- | Creates a new file.
7372--
@@ -168,7 +167,7 @@ instance GoogleRequest (MediaUpload FilesCreate)
168167 (Just _fcKeepRevisionForever)
169168 (Just _fcIgnoreDefaultVisibility)
170169 (Just AltJSON)
171− (Just AltMedia)
170+ (Just Multipart)
172171 _fcPayload
173172 body
174173 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 =
7171 QueryParam "keepRevisionForever" Bool :>
7272 QueryParam "addParents" Text :>
7373 QueryParam "alt" AltJSON :>
74− QueryParam "uploadType" AltMedia :>
75− MultipartRelated '[JSON] File RequestBody :>
74+ QueryParam "uploadType" Multipart :>
75+ MultipartRelated '[JSON] File :>
7676 Patch '[JSON] File
7777
7878-- | Updates a file\'s metadata and\/or content with patch semantics.
@@ -192,7 +192,7 @@ instance GoogleRequest (MediaUpload FilesUpdate)
192192 (Just _fuKeepRevisionForever)
193193 _fuAddParents
194194 (Just AltJSON)
195− (Just AltMedia)
195+ (Just Multipart)
196196 _fuPayload
197197 body
198198 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
3131 -- ^ @time@
3232 | ABTUnknown
3333 -- ^ @unknown@
34− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
34+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3535
3636instance Hashable AggregateBucketType
3737
@@ -65,7 +65,7 @@ data DataSourceType
6565 -- ^ @derived@
6666 | Raw
6767 -- ^ @raw@
68− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
68+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
6969
7070instance Hashable DataSourceType
7171
@@ -100,7 +100,7 @@ data DeviceType
100100 -- ^ @unknown@
101101 | Watch
102102 -- ^ @watch@
103− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
103+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
104104
105105instance Hashable DeviceType
106106
@@ -145,7 +145,7 @@ data DataTypeFieldFormat
145145 -- ^ @map@
146146 | String
147147 -- ^ @string@
148− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
148+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
149149
150150instance Hashable DataTypeFieldFormat
151151
gogol-fonts/gen/Network/Google/Fonts/Types/Sum.hs+1−1
@@ -35,7 +35,7 @@ data WebfontsListSort
3535 | Trending
3636 -- ^ @trending@
3737 -- Sort by trending
38− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
38+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3939
4040instance Hashable WebfontsListSort
4141
gogol-freebasesearch/gen/Network/Google/FreebaseSearch/Types/Sum.hs+5−5
@@ -38,7 +38,7 @@ data FreebaseSearchFormat
3838 | Mids
3939 -- ^ @mids@
4040 -- 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)
4242
4343instance Hashable FreebaseSearchFormat
4444
@@ -78,7 +78,7 @@ data FreebaseSearchScoring
7878 | FSSSchema
7979 -- ^ @schema@
8080 -- 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)
8282
8383instance Hashable FreebaseSearchScoring
8484
@@ -112,7 +112,7 @@ data FreebaseSearchEncode
112112 -- ^ @off@
113113 -- No encoding of the response. You should not print the results directly
114114 -- 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)
116116
117117instance Hashable FreebaseSearchEncode
118118
@@ -146,7 +146,7 @@ data FreebaseSearchHelp
146146 -- ^ @predicates@
147147 -- The predicates and path-terminating properties supported by the filter
148148 -- and output request parameters.
149− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
149+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
150150
151151instance Hashable FreebaseSearchHelp
152152
@@ -181,7 +181,7 @@ data FreebaseSearchSpell
181181 | NoSpelling
182182 -- ^ @no_spelling@
183183 -- 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)
185185
186186instance Hashable FreebaseSearchSpell
187187
gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Table/ImportRows.hs+1−2
@@ -72,8 +72,7 @@ type TableImportRowsResource =
7272 QueryParam "isStrict" Bool :>
7373 QueryParam "alt" AltJSON :>
7474 QueryParam "uploadType" AltMedia :>
75− ReqBody '[OctetStream] RequestBody :>
76− Post '[JSON] Import
75+ AltMedia :> Post '[JSON] Import
7776
7877-- | Imports more rows into a table.
7978--
gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Table/ImportTable.hs+1−2
@@ -63,8 +63,7 @@ type TableImportTableResource =
6363 QueryParam "encoding" Text :>
6464 QueryParam "alt" AltJSON :>
6565 QueryParam "uploadType" AltMedia :>
66− ReqBody '[OctetStream] RequestBody :>
67− Post '[JSON] Table
66+ AltMedia :> Post '[JSON] Table
6867
6968-- | Imports a new table.
7069--
gogol-fusiontables/gen/Network/Google/Resource/FusionTables/Table/ReplaceRows.hs+1−2
@@ -73,8 +73,7 @@ type TableReplaceRowsResource =
7373 QueryParam "isStrict" Bool :>
7474 QueryParam "alt" AltJSON :>
7575 QueryParam "uploadType" AltMedia :>
76− ReqBody '[OctetStream] RequestBody :>
77− Post '[JSON] Task
76+ AltMedia :> Post '[JSON] Task
7877
7978-- | Replaces rows of an existing table. Current rows remain visible until
8079-- all replacement rows are ready.
gogol-games-configuration/gen/Network/Google/GamesConfiguration/Types/Sum.hs+1−1
@@ -26,7 +26,7 @@ data ImageConfigurationsUploadImageType
2626 | LeaderboardIcon
2727 -- ^ @LEADERBOARD_ICON@
2828 -- 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)
3030
3131instance Hashable ImageConfigurationsUploadImageType
3232
gogol-games-configuration/gen/Network/Google/Resource/GamesConfiguration/ImageConfigurations/Upload.hs+1−2
@@ -65,8 +65,7 @@ type ImageConfigurationsUploadResource =
6565 :>
6666 QueryParam "alt" AltJSON :>
6767 QueryParam "uploadType" AltMedia :>
68− ReqBody '[OctetStream] RequestBody :>
69− Post '[JSON] ImageConfiguration
68+ AltMedia :> Post '[JSON] ImageConfiguration
7069
7170-- | Uploads an image for a resource with the given ID and image type.
7271--
gogol-games/gen/Network/Google/Games/Types/Sum.hs+10−10
@@ -24,7 +24,7 @@ data PlayersListCollection
2424 -- ^ @played_with@
2525 -- Retrieve a list of players you have played a multiplayer game (realtime
2626 -- 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)
2828
2929instance Hashable PlayersListCollection
3030
@@ -54,7 +54,7 @@ data ScoresListCollection
5454 | Social1P
5555 -- ^ @SOCIAL_1P@
5656 -- 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)
5858
5959instance Hashable ScoresListCollection
6060
@@ -88,7 +88,7 @@ data ApplicationsGetPlatformType
8888 | WebApp
8989 -- ^ @WEB_APP@
9090 -- 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)
9292
9393instance Hashable ApplicationsGetPlatformType
9494
@@ -122,7 +122,7 @@ data ScoresListWindowCollection
122122 | SLWCSocial1P
123123 -- ^ @SOCIAL_1P@
124124 -- 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)
126126
127127instance Hashable ScoresListWindowCollection
128128
@@ -156,7 +156,7 @@ data ScoresListWindowTimeSpan
156156 | Weekly
157157 -- ^ @WEEKLY@
158158 -- 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)
160160
161161instance Hashable ScoresListWindowTimeSpan
162162
@@ -194,7 +194,7 @@ data ScoresGetTimeSpan
194194 | SGTSWeekly
195195 -- ^ @WEEKLY@
196196 -- 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)
198198
199199instance Hashable ScoresGetTimeSpan
200200
@@ -232,7 +232,7 @@ data ScoresGetIncludeRankType
232232 | SGIRTSocial
233233 -- ^ @SOCIAL@
234234 -- Retrieve the social rank.
235− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
235+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
236236
237237instance Hashable ScoresGetIncludeRankType
238238
@@ -266,7 +266,7 @@ data ScoresListTimeSpan
266266 | SLTSWeekly
267267 -- ^ @WEEKLY@
268268 -- 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)
270270
271271instance Hashable ScoresListTimeSpan
272272
@@ -294,7 +294,7 @@ data MetagameListCategoriesByPlayerCollection
294294 = All
295295 -- ^ @all@
296296 -- 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)
298298
299299instance Hashable MetagameListCategoriesByPlayerCollection
300300
@@ -328,7 +328,7 @@ data AchievementsListState
328328 | ALSUnlocked
329329 -- ^ @UNLOCKED@
330330 -- List only unlocked achievements.
331− deriving (Eq,Ord,Enum,Read,Show,Data,Typeable,Generic)
331+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
332332
333333instance Hashable AchievementsListState
334334
gogol-genomics/gen/Network/Google/Genomics.hs+200−1
@@ -35,6 +35,39 @@ module Network.Google.Genomics
3535
3636 -- * Resources
3737
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+
3871 -- ** genomics.callsets.create
3972 , module Network.Google.Resource.Genomics.CallSets.Create
4073
@@ -172,11 +205,23 @@ module Network.Google.Genomics
172205
173206 -- * Types
174207
208+ -- ** ImportVariantsRequestInfoMergeConfig
209+ , ImportVariantsRequestInfoMergeConfig
210+ , importVariantsRequestInfoMergeConfig
211+ , ivrimcAddtional
212+
175213 -- ** ReadInfo
176214 , ReadInfo
177215 , readInfo
178216 , riAddtional
179217
218+ -- ** Exon
219+ , Exon
220+ , exon
221+ , eStart
222+ , eEnd
223+ , eFrame
224+
180225 -- ** Status
181226 , Status
182227 , status
@@ -206,6 +251,22 @@ module Network.Google.Genomics
206251 , vInfo
207252 , vCalls
208253
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+
209270 -- ** ListBasesResponse
210271 , ListBasesResponse
211272 , listBasesResponse
@@ -266,11 +327,17 @@ module Network.Google.Genomics
266327 , vcGenotype
267328 , vcInfo
268329
330+ -- ** BatchCreateAnnotationsRequest
331+ , BatchCreateAnnotationsRequest
332+ , batchCreateAnnotationsRequest
333+ , bcarAnnotations
334+
269335 -- ** MergeVariantsRequest
270336 , MergeVariantsRequest
271337 , mergeVariantsRequest
272338 , mvrVariants
273339 , mvrVariantSetId
340+ , mvrInfoMergeConfig
274341
275342 -- ** ReadGroup
276343 , ReadGroup
@@ -341,6 +408,17 @@ module Network.Google.Genomics
341408 , cbRange
342409 , cbMeanCoverage
343410
411+ -- ** VariantAnnotation
412+ , VariantAnnotation
413+ , variantAnnotation
414+ , vaEffect
415+ , vaClinicalSignificance
416+ , vaAlternateBases
417+ , vaGeneId
418+ , vaConditions
419+ , vaType
420+ , vaTranscriptIds
421+
344422 -- ** SearchReadGroupSetsRequest
345423 , SearchReadGroupSetsRequest
346424 , searchReadGroupSetsRequest
@@ -412,6 +490,11 @@ module Network.Google.Genomics
412490 , operationMetadataRequest
413491 , omrAddtional
414492
493+ -- ** MergeVariantsRequestInfoMergeConfig
494+ , MergeVariantsRequestInfoMergeConfig
495+ , mergeVariantsRequestInfoMergeConfig
496+ , mvrimcAddtional
497+
415498 -- ** VariantInfo
416499 , VariantInfo
417500 , variantInfo
@@ -432,12 +515,41 @@ module Network.Google.Genomics
432515 , svsrPageToken
433516 , svsrPageSize
434517
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+
435539 -- ** SearchVariantsResponse
436540 , SearchVariantsResponse
437541 , searchVariantsResponse
438542 , sVariants
439543 , sNextPageToken
440544
545+ -- ** ClinicalCondition
546+ , ClinicalCondition
547+ , clinicalCondition
548+ , ccExternalIds
549+ , ccNames
550+ , ccConceptId
551+ , ccOmimId
552+
441553 -- ** StreamReadsRequest
442554 , StreamReadsRequest
443555 , streamReadsRequest
@@ -457,6 +569,12 @@ module Network.Google.Genomics
457569 , scsrVariantSetIds
458570 , scsrPageSize
459571
572+ -- ** Entry
573+ , Entry
574+ , entry
575+ , eStatus
576+ , eAnnotation
577+
460578 -- ** SearchReadsResponse
461579 , SearchReadsResponse
462580 , searchReadsResponse
@@ -481,6 +599,17 @@ module Network.Google.Genomics
481599 , sPageToken
482600 , sPageSize
483601
602+ -- ** BatchCreateAnnotationsResponse
603+ , BatchCreateAnnotationsResponse
604+ , batchCreateAnnotationsResponse
605+ , bcarEntries
606+
607+ -- ** CodingSequence
608+ , CodingSequence
609+ , codingSequence
610+ , csStart
611+ , csEnd
612+
484613 -- ** SearchReferenceSetsResponse
485614 , SearchReferenceSetsResponse
486615 , searchReferenceSetsResponse
@@ -541,6 +670,17 @@ module Network.Google.Genomics
541670 , laMAppingQuality
542671 , laPosition
543672
673+ -- ** AnnotationSet
674+ , AnnotationSet
675+ , annotationSet
676+ , asReferenceSetId
677+ , asName
678+ , asDataSetId
679+ , asId
680+ , asType
681+ , asSourceURI
682+ , asInfo
683+
544684 -- ** VariantSet
545685 , VariantSet
546686 , variantSet
@@ -574,9 +714,16 @@ module Network.Google.Genomics
574714 , importVariantsRequest
575715 , ivrVariantSetId
576716 , ivrFormat
717+ , ivrInfoMergeConfig
577718 , ivrNormalizeReferenceNames
578719 , ivrSourceURIs
579720
721+ -- ** ExternalId
722+ , ExternalId
723+ , externalId
724+ , eiSourceName
725+ , eiId
726+
580727 -- ** CigarUnit
581728 , CigarUnit
582729 , cigarUnit
@@ -604,10 +751,22 @@ module Network.Google.Genomics
604751 , OperationMetadata
605752 , operationMetadata
606753 , omEvents
754+ , omEndTime
607755 , omProjectId
608756 , omCreateTime
609757 , omRequest
610758
759+ -- ** SearchAnnotationsRequest
760+ , SearchAnnotationsRequest
761+ , searchAnnotationsRequest
762+ , sarStart
763+ , sarReferenceId
764+ , sarReferenceName
765+ , sarEnd
766+ , sarPageToken
767+ , sarAnnotationSetIds
768+ , sarPageSize
769+
611770 -- ** SearchVariantSetsResponse
612771 , SearchVariantSetsResponse
613772 , searchVariantSetsResponse
@@ -627,6 +786,17 @@ module Network.Google.Genomics
627786 , svrVariantSetIds
628787 , svrPageSize
629788
789+ -- ** AnnotationSetInfo
790+ , AnnotationSetInfo
791+ , annotationSetInfo
792+ , asiAddtional
793+
794+ -- ** SearchAnnotationSetsResponse
795+ , SearchAnnotationSetsResponse
796+ , searchAnnotationSetsResponse
797+ , sasrNextPageToken
798+ , sasrAnnotationSets
799+
630800 -- ** CallSetInfo
631801 , CallSetInfo
632802 , callSetInfo
@@ -642,6 +812,13 @@ module Network.Google.Genomics
642812 , operationResponse
643813 , orAddtional
644814
815+ -- ** Transcript
816+ , Transcript
817+ , transcript
818+ , tGeneId
819+ , tCodingSequence
820+ , tExons
821+
645822 -- ** OperationEvent
646823 , OperationEvent
647824 , operationEvent
@@ -706,6 +883,17 @@ module Network.Google.Genomics
706883
707884import Network.Google.Genomics.Types
708885import 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
709897import Network.Google.Resource.Genomics.CallSets.Create
710898import Network.Google.Resource.Genomics.CallSets.Delete
711899import Network.Google.Resource.Genomics.CallSets.Get
@@ -758,7 +946,13 @@ TODO
758946
759947-- | Represents the entirety of the methods and resources available for the Genomics API service.
760948type GenomicsAPI =
761− VariantsStreamResource :<|> VariantsPatchResource
949+ AnnotationsGetResource :<|> AnnotationsCreateResource
950+ :<|> AnnotationsBatchCreateResource
951+ :<|> AnnotationsSearchResource
952+ :<|> AnnotationsDeleteResource
953+ :<|> AnnotationsUpdateResource
954+ :<|> VariantsStreamResource
955+ :<|> VariantsPatchResource
762956 :<|> VariantsGetResource
763957 :<|> VariantsCreateResource
764958 :<|> VariantsImportResource
@@ -774,6 +968,11 @@ type GenomicsAPI =
774968 :<|> VariantSetsCreateResource
775969 :<|> VariantSetsSearchResource
776970 :<|> VariantSetsDeleteResource
971+ :<|> AnnotationSetsGetResource
972+ :<|> AnnotationSetsCreateResource
973+ :<|> AnnotationSetsSearchResource
974+ :<|> AnnotationSetsDeleteResource
975+ :<|> AnnotationSetsUpdateResource
777976 :<|> ReadGroupSetsCoverageBucketsListResource
778977 :<|> ReadGroupSetsExportResource
779978 :<|> ReadGroupSetsPatchResource
gogol-genomics/gen/Network/Google/Genomics/Types.hs+144
@@ -26,11 +26,23 @@ module Network.Google.Genomics.Types
2626 , storageReadWriteScope
2727 , bigQueryScope
2828
29+ -- * ImportVariantsRequestInfoMergeConfig
30+ , ImportVariantsRequestInfoMergeConfig
31+ , importVariantsRequestInfoMergeConfig
32+ , ivrimcAddtional
33+
2934 -- * ReadInfo
3035 , ReadInfo
3136 , readInfo
3237 , riAddtional
3338
39+ -- * Exon
40+ , Exon
41+ , exon
42+ , eStart
43+ , eEnd
44+ , eFrame
45+
3446 -- * Status
3547 , Status
3648 , status
@@ -60,6 +72,22 @@ module Network.Google.Genomics.Types
6072 , vInfo
6173 , vCalls
6274
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+
6391 -- * ListBasesResponse
6492 , ListBasesResponse
6593 , listBasesResponse
@@ -120,11 +148,17 @@ module Network.Google.Genomics.Types
120148 , vcGenotype
121149 , vcInfo
122150
151+ -- * BatchCreateAnnotationsRequest
152+ , BatchCreateAnnotationsRequest
153+ , batchCreateAnnotationsRequest
154+ , bcarAnnotations
155+
123156 -- * MergeVariantsRequest
124157 , MergeVariantsRequest
125158 , mergeVariantsRequest
126159 , mvrVariants
127160 , mvrVariantSetId
161+ , mvrInfoMergeConfig
128162
129163 -- * ReadGroup
130164 , ReadGroup
@@ -195,6 +229,17 @@ module Network.Google.Genomics.Types
195229 , cbRange
196230 , cbMeanCoverage
197231
232+ -- * VariantAnnotation
233+ , VariantAnnotation
234+ , variantAnnotation
235+ , vaEffect
236+ , vaClinicalSignificance
237+ , vaAlternateBases
238+ , vaGeneId
239+ , vaConditions
240+ , vaType
241+ , vaTranscriptIds
242+
198243 -- * SearchReadGroupSetsRequest
199244 , SearchReadGroupSetsRequest
200245 , searchReadGroupSetsRequest
@@ -266,6 +311,11 @@ module Network.Google.Genomics.Types
266311 , operationMetadataRequest
267312 , omrAddtional
268313
314+ -- * MergeVariantsRequestInfoMergeConfig
315+ , MergeVariantsRequestInfoMergeConfig
316+ , mergeVariantsRequestInfoMergeConfig
317+ , mvrimcAddtional
318+
269319 -- * VariantInfo
270320 , VariantInfo
271321 , variantInfo
@@ -286,12 +336,41 @@ module Network.Google.Genomics.Types
286336 , svsrPageToken
287337 , svsrPageSize
288338
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+
289360 -- * SearchVariantsResponse
290361 , SearchVariantsResponse
291362 , searchVariantsResponse
292363 , sVariants
293364 , sNextPageToken
294365
366+ -- * ClinicalCondition
367+ , ClinicalCondition
368+ , clinicalCondition
369+ , ccExternalIds
370+ , ccNames
371+ , ccConceptId
372+ , ccOmimId
373+
295374 -- * StreamReadsRequest
296375 , StreamReadsRequest
297376 , streamReadsRequest
@@ -311,6 +390,12 @@ module Network.Google.Genomics.Types
311390 , scsrVariantSetIds
312391 , scsrPageSize
313392
393+ -- * Entry
394+ , Entry
395+ , entry
396+ , eStatus
397+ , eAnnotation
398+
314399 -- * SearchReadsResponse
315400 , SearchReadsResponse
316401 , searchReadsResponse
@@ -335,6 +420,17 @@ module Network.Google.Genomics.Types
335420 , sPageToken
336421 , sPageSize
337422
423+ -- * BatchCreateAnnotationsResponse
424+ , BatchCreateAnnotationsResponse
425+ , batchCreateAnnotationsResponse
426+ , bcarEntries
427+
428+ -- * CodingSequence
429+ , CodingSequence
430+ , codingSequence
431+ , csStart
432+ , csEnd
433+
338434 -- * SearchReferenceSetsResponse
339435 , SearchReferenceSetsResponse
340436 , searchReferenceSetsResponse
@@ -395,6 +491,17 @@ module Network.Google.Genomics.Types
395491 , laMAppingQuality
396492 , laPosition
397493
494+ -- * AnnotationSet
495+ , AnnotationSet
496+ , annotationSet
497+ , asReferenceSetId
498+ , asName
499+ , asDataSetId
500+ , asId
501+ , asType
502+ , asSourceURI
503+ , asInfo
504+
398505 -- * VariantSet
399506 , VariantSet
400507 , variantSet
@@ -428,9 +535,16 @@ module Network.Google.Genomics.Types
428535 , importVariantsRequest
429536 , ivrVariantSetId
430537 , ivrFormat
538+ , ivrInfoMergeConfig
431539 , ivrNormalizeReferenceNames
432540 , ivrSourceURIs
433541
542+ -- * ExternalId
543+ , ExternalId
544+ , externalId
545+ , eiSourceName
546+ , eiId
547+
434548 -- * CigarUnit
435549 , CigarUnit
436550 , cigarUnit
@@ -458,10 +572,22 @@ module Network.Google.Genomics.Types
458572 , OperationMetadata
459573 , operationMetadata
460574 , omEvents
575+ , omEndTime
461576 , omProjectId
462577 , omCreateTime
463578 , omRequest
464579
580+ -- * SearchAnnotationsRequest
581+ , SearchAnnotationsRequest
582+ , searchAnnotationsRequest
583+ , sarStart
584+ , sarReferenceId
585+ , sarReferenceName
586+ , sarEnd
587+ , sarPageToken
588+ , sarAnnotationSetIds
589+ , sarPageSize
590+
465591 -- * SearchVariantSetsResponse
466592 , SearchVariantSetsResponse
467593 , searchVariantSetsResponse
@@ -481,6 +607,17 @@ module Network.Google.Genomics.Types
481607 , svrVariantSetIds
482608 , svrPageSize
483609
610+ -- * AnnotationSetInfo
611+ , AnnotationSetInfo
612+ , annotationSetInfo
613+ , asiAddtional
614+
615+ -- * SearchAnnotationSetsResponse
616+ , SearchAnnotationSetsResponse
617+ , searchAnnotationSetsResponse
618+ , sasrNextPageToken
619+ , sasrAnnotationSets
620+
484621 -- * CallSetInfo
485622 , CallSetInfo
486623 , callSetInfo
@@ -496,6 +633,13 @@ module Network.Google.Genomics.Types
496633 , operationResponse
497634 , orAddtional
498635
636+ -- * Transcript
637+ , Transcript
638+ , transcript
639+ , tGeneId
640+ , tCodingSequence
641+ , tExons
642+
499643 -- * OperationEvent
500644 , OperationEvent
501645 , 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.