on develop help sign in
Generating new gogol-slides library
25da20cBrendan Hay
gogol-slides/LICENSEnew file+367
@@ -0,0 +1,367 @@
1+Mozilla Public License Version 2.0
2+==================================
3+
4+1. Definitions
5+--------------
6+
7+1.1. "Contributor"
8+ means each individual or legal entity that creates, contributes to
9+ the creation of, or owns Covered Software.
10+
11+1.2. "Contributor Version"
12+ means the combination of the Contributions of others (if any) used
13+ by a Contributor and that particular Contributor's Contribution.
14+
15+1.3. "Contribution"
16+ means Covered Software of a particular Contributor.
17+
18+1.4. "Covered Software"
19+ means Source Code Form to which the initial Contributor has attached
20+ the notice in Exhibit A, the Executable Form of such Source Code
21+ Form, and Modifications of such Source Code Form, in each case
22+ including portions thereof.
23+
24+1.5. "Incompatible With Secondary Licenses"
25+ means
26+
27+ (a) that the initial Contributor has attached the notice described
28+ in Exhibit B to the Covered Software; or
29+
30+ (b) that the Covered Software was made available under the terms of
31+ version 1.1 or earlier of the License, but not also under the
32+ terms of a Secondary License.
33+
34+1.6. "Executable Form"
35+ means any form of the work other than Source Code Form.
36+
37+1.7. "Larger Work"
38+ means a work that combines Covered Software with other material, in
39+ a separate file or files, that is not Covered Software.
40+
41+1.8. "License"
42+ means this document.
43+
44+1.9. "Licensable"
45+ means having the right to grant, to the maximum extent possible,
46+ whether at the time of the initial grant or subsequently, any and
47+ all of the rights conveyed by this License.
48+
49+1.10. "Modifications"
50+ means any of the following:
51+
52+ (a) any file in Source Code Form that results from an addition to,
53+ deletion from, or modification of the contents of Covered
54+ Software; or
55+
56+ (b) any new file in Source Code Form that contains any Covered
57+ Software.
58+
59+1.11. "Patent Claims" of a Contributor
60+ means any patent claim(s), including without limitation, method,
61+ process, and apparatus claims, in any patent Licensable by such
62+ Contributor that would be infringed, but for the grant of the
63+ License, by the making, using, selling, offering for sale, having
64+ made, import, or transfer of either its Contributions or its
65+ Contributor Version.
66+
67+1.12. "Secondary License"
68+ means either the GNU General Public License, Version 2.0, the GNU
69+ Lesser General Public License, Version 2.1, the GNU Affero General
70+ Public License, Version 3.0, or any later versions of those
71+ licenses.
72+
73+1.13. "Source Code Form"
74+ means the form of the work preferred for making modifications.
75+
76+1.14. "You" (or "Your")
77+ means an individual or a legal entity exercising rights under this
78+ License. For legal entities, "You" includes any entity that
79+ controls, is controlled by, or is under common control with You. For
80+ purposes of this definition, "control" means (a) the power, direct
81+ or indirect, to cause the direction or management of such entity,
82+ whether by contract or otherwise, or (b) ownership of more than
83+ fifty percent (50%) of the outstanding shares or beneficial
84+ ownership of such entity.
85+
86+2. License Grants and Conditions
87+--------------------------------
88+
89+2.1. Grants
90+
91+Each Contributor hereby grants You a world-wide, royalty-free,
92+non-exclusive license:
93+
94+(a) under intellectual property rights (other than patent or trademark)
95+ Licensable by such Contributor to use, reproduce, make available,
96+ modify, display, perform, distribute, and otherwise exploit its
97+ Contributions, either on an unmodified basis, with Modifications, or
98+ as part of a Larger Work; and
99+
100+(b) under Patent Claims of such Contributor to make, use, sell, offer
101+ for sale, have made, import, and otherwise transfer either its
102+ Contributions or its Contributor Version.
103+
104+2.2. Effective Date
105+
106+The licenses granted in Section 2.1 with respect to any Contribution
107+become effective for each Contribution on the date the Contributor first
108+distributes such Contribution.
109+
110+2.3. Limitations on Grant Scope
111+
112+The licenses granted in this Section 2 are the only rights granted under
113+this License. No additional rights or licenses will be implied from the
114+distribution or licensing of Covered Software under this License.
115+Notwithstanding Section 2.1(b) above, no patent license is granted by a
116+Contributor:
117+
118+(a) for any code that a Contributor has removed from Covered Software;
119+ or
120+
121+(b) for infringements caused by: (i) Your and any other third party's
122+ modifications of Covered Software, or (ii) the combination of its
123+ Contributions with other software (except as part of its Contributor
124+ Version); or
125+
126+(c) under Patent Claims infringed by Covered Software in the absence of
127+ its Contributions.
128+
129+This License does not grant any rights in the trademarks, service marks,
130+or logos of any Contributor (except as may be necessary to comply with
131+the notice requirements in Section 3.4).
132+
133+2.4. Subsequent Licenses
134+
135+No Contributor makes additional grants as a result of Your choice to
136+distribute the Covered Software under a subsequent version of this
137+License (see Section 10.2) or under the terms of a Secondary License (if
138+permitted under the terms of Section 3.3).
139+
140+2.5. Representation
141+
142+Each Contributor represents that the Contributor believes its
143+Contributions are its original creation(s) or it has sufficient rights
144+to grant the rights to its Contributions conveyed by this License.
145+
146+2.6. Fair Use
147+
148+This License is not intended to limit any rights You have under
149+applicable copyright doctrines of fair use, fair dealing, or other
150+equivalents.
151+
152+2.7. Conditions
153+
154+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155+in Section 2.1.
156+
157+3. Responsibilities
158+-------------------
159+
160+3.1. Distribution of Source Form
161+
162+All distribution of Covered Software in Source Code Form, including any
163+Modifications that You create or to which You contribute, must be under
164+the terms of this License. You must inform recipients that the Source
165+Code Form of the Covered Software is governed by the terms of this
166+License, and how they can obtain a copy of this License. You may not
167+attempt to alter or restrict the recipients' rights in the Source Code
168+Form.
169+
170+3.2. Distribution of Executable Form
171+
172+If You distribute Covered Software in Executable Form then:
173+
174+(a) such Covered Software must also be made available in Source Code
175+ Form, as described in Section 3.1, and You must inform recipients of
176+ the Executable Form how they can obtain a copy of such Source Code
177+ Form by reasonable means in a timely manner, at a charge no more
178+ than the cost of distribution to the recipient; and
179+
180+(b) You may distribute such Executable Form under the terms of this
181+ License, or sublicense it under different terms, provided that the
182+ license for the Executable Form does not attempt to limit or alter
183+ the recipients' rights in the Source Code Form under this License.
184+
185+3.3. Distribution of a Larger Work
186+
187+You may create and distribute a Larger Work under terms of Your choice,
188+provided that You also comply with the requirements of this License for
189+the Covered Software. If the Larger Work is a combination of Covered
190+Software with a work governed by one or more Secondary Licenses, and the
191+Covered Software is not Incompatible With Secondary Licenses, this
192+License permits You to additionally distribute such Covered Software
193+under the terms of such Secondary License(s), so that the recipient of
194+the Larger Work may, at their option, further distribute the Covered
195+Software under the terms of either this License or such Secondary
196+License(s).
197+
198+3.4. Notices
199+
200+You may not remove or alter the substance of any license notices
201+(including copyright notices, patent notices, disclaimers of warranty,
202+or limitations of liability) contained within the Source Code Form of
203+the Covered Software, except that You may alter any license notices to
204+the extent required to remedy known factual inaccuracies.
205+
206+3.5. Application of Additional Terms
207+
208+You may choose to offer, and to charge a fee for, warranty, support,
209+indemnity or liability obligations to one or more recipients of Covered
210+Software. However, You may do so only on Your own behalf, and not on
211+behalf of any Contributor. You must make it absolutely clear that any
212+such warranty, support, indemnity, or liability obligation is offered by
213+You alone, and You hereby agree to indemnify every Contributor for any
214+liability incurred by such Contributor as a result of warranty, support,
215+indemnity or liability terms You offer. You may include additional
216+disclaimers of warranty and limitations of liability specific to any
217+jurisdiction.
218+
219+4. Inability to Comply Due to Statute or Regulation
220+---------------------------------------------------
221+
222+If it is impossible for You to comply with any of the terms of this
223+License with respect to some or all of the Covered Software due to
224+statute, judicial order, or regulation then You must: (a) comply with
225+the terms of this License to the maximum extent possible; and (b)
226+describe the limitations and the code they affect. Such description must
227+be placed in a text file included with all distributions of the Covered
228+Software under this License. Except to the extent prohibited by statute
229+or regulation, such description must be sufficiently detailed for a
230+recipient of ordinary skill to be able to understand it.
231+
232+5. Termination
233+--------------
234+
235+5.1. The rights granted under this License will terminate automatically
236+if You fail to comply with any of its terms. However, if You become
237+compliant, then the rights granted under this License from a particular
238+Contributor are reinstated (a) provisionally, unless and until such
239+Contributor explicitly and finally terminates Your grants, and (b) on an
240+ongoing basis, if such Contributor fails to notify You of the
241+non-compliance by some reasonable means prior to 60 days after You have
242+come back into compliance. Moreover, Your grants from a particular
243+Contributor are reinstated on an ongoing basis if such Contributor
244+notifies You of the non-compliance by some reasonable means, this is the
245+first time You have received notice of non-compliance with this License
246+from such Contributor, and You become compliant prior to 30 days after
247+Your receipt of the notice.
248+
249+5.2. If You initiate litigation against any entity by asserting a patent
250+infringement claim (excluding declaratory judgment actions,
251+counter-claims, and cross-claims) alleging that a Contributor Version
252+directly or indirectly infringes any patent, then the rights granted to
253+You by any and all Contributors for the Covered Software under Section
254+2.1 of this License shall terminate.
255+
256+5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257+end user license agreements (excluding distributors and resellers) which
258+have been validly granted by You or Your distributors under this License
259+prior to termination shall survive termination.
260+
261+************************************************************************
262+* *
263+* 6. Disclaimer of Warranty *
264+* ------------------------- *
265+* *
266+* Covered Software is provided under this License on an "as is" *
267+* basis, without warranty of any kind, either expressed, implied, or *
268+* statutory, including, without limitation, warranties that the *
269+* Covered Software is free of defects, merchantable, fit for a *
270+* particular purpose or non-infringing. The entire risk as to the *
271+* quality and performance of the Covered Software is with You. *
272+* Should any Covered Software prove defective in any respect, You *
273+* (not any Contributor) assume the cost of any necessary servicing, *
274+* repair, or correction. This disclaimer of warranty constitutes an *
275+* essential part of this License. No use of any Covered Software is *
276+* authorized under this License except under this disclaimer. *
277+* *
278+************************************************************************
279+
280+************************************************************************
281+* *
282+* 7. Limitation of Liability *
283+* -------------------------- *
284+* *
285+* Under no circumstances and under no legal theory, whether tort *
286+* (including negligence), contract, or otherwise, shall any *
287+* Contributor, or anyone who distributes Covered Software as *
288+* permitted above, be liable to You for any direct, indirect, *
289+* special, incidental, or consequential damages of any character *
290+* including, without limitation, damages for lost profits, loss of *
291+* goodwill, work stoppage, computer failure or malfunction, or any *
292+* and all other commercial damages or losses, even if such party *
293+* shall have been informed of the possibility of such damages. This *
294+* limitation of liability shall not apply to liability for death or *
295+* personal injury resulting from such party's negligence to the *
296+* extent applicable law prohibits such limitation. Some *
297+* jurisdictions do not allow the exclusion or limitation of *
298+* incidental or consequential damages, so this exclusion and *
299+* limitation may not apply to You. *
300+* *
301+************************************************************************
302+
303+8. Litigation
304+-------------
305+
306+Any litigation relating to this License may be brought only in the
307+courts of a jurisdiction where the defendant maintains its principal
308+place of business and such litigation shall be governed by laws of that
309+jurisdiction, without reference to its conflict-of-law provisions.
310+Nothing in this Section shall prevent a party's ability to bring
311+cross-claims or counter-claims.
312+
313+9. Miscellaneous
314+----------------
315+
316+This License represents the complete agreement concerning the subject
317+matter hereof. If any provision of this License is held to be
318+unenforceable, such provision shall be reformed only to the extent
319+necessary to make it enforceable. Any law or regulation which provides
320+that the language of a contract shall be construed against the drafter
321+shall not be used to construe this License against a Contributor.
322+
323+10. Versions of the License
324+---------------------------
325+
326+10.1. New Versions
327+
328+Mozilla Foundation is the license steward. Except as provided in Section
329+10.3, no one other than the license steward has the right to modify or
330+publish new versions of this License. Each version will be given a
331+distinguishing version number.
332+
333+10.2. Effect of New Versions
334+
335+You may distribute the Covered Software under the terms of the version
336+of the License under which You originally received the Covered Software,
337+or under the terms of any subsequent version published by the license
338+steward.
339+
340+10.3. Modified Versions
341+
342+If you create software not governed by this License, and you want to
343+create a new license for such software, you may create and use a
344+modified version of this License if you rename the license and remove
345+any references to the name of the license steward (except to note that
346+such modified license differs from this License).
347+
348+10.4. Distributing Source Code Form that is Incompatible With Secondary
349+Licenses
350+
351+If You choose to distribute Source Code Form that is Incompatible With
352+Secondary Licenses under the terms of this version of the License, the
353+notice described in Exhibit B of this License must be attached.
354+
355+Exhibit A - Source Code Form License Notice
356+-------------------------------------------
357+
358+ This Source Code Form is subject to the terms of the Mozilla Public
359+ License, v. 2.0. If a copy of the MPL was not distributed with this
360+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
361+
362+If it is not possible or desirable to put the notice in a particular
363+file, then You may include the notice in a location (such as a LICENSE
364+file in a relevant directory) where a recipient would be likely to look
365+for such a notice.
366+
367+You may add additional accurate notices of copyright ownership.
gogol-slides/Makefilenew file+1
@@ -0,0 +1 @@
1+include ../share/library.mk
gogol-slides/README.mdnew file+28
@@ -0,0 +1,28 @@
1+# gogol-slides
2+
3+* [Version](#version)
4+* [Description](#description)
5+* [Contribute](#contribute)
6+* [Licence](#licence)
7+
8+
9+## Version
10+
11+`0.1.1`
12+
13+
14+## Description
15+
16+A client library for the Google Slides.
17+
18+
19+## Contribute
20+
21+For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/gogol/issues).
22+
23+> _Note:_ this library is an auto-generated Haskell package. Please see `gogol-gen` for more information.
24+
25+
26+## Licence
27+
28+`gogol-slides` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).
gogol-slides/Setup.hsnew file+2
@@ -0,0 +1,2 @@
1+import Distribution.Simple
2+main = defaultMain
gogol-slides/gen/Network/Google/Resource/Slides/Presentations/BatchUpdate.hsnew file+216
@@ -0,0 +1,216 @@
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.Slides.Presentations.BatchUpdate
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+-- Applies one or more updates to the presentation. Each request is
24+-- validated before being applied. If any request is not valid, then the
25+-- entire request will fail and nothing will be applied. Some requests have
26+-- replies to give you some information about how they are applied. Other
27+-- requests do not need to return information; these each return an empty
28+-- reply. The order of replies matches that of the requests. For example,
29+-- suppose you call batchUpdate with four updates, and only the third one
30+-- returns information. The response would have two empty replies: the
31+-- reply to the third request, and another empty reply, in that order.
32+-- Because other users may be editing the presentation, the presentation
33+-- might not exactly reflect your changes: your changes may be altered with
34+-- respect to collaborator changes. If there are no collaborators, the
35+-- presentation should reflect your changes. In any case, the updates in
36+-- your request are guaranteed to be applied together atomically.
37+--
38+-- /See:/ <https://developers.google.com/slides/ Google Slides API Reference> for @slides.presentations.batchUpdate@.
39+module Network.Google.Resource.Slides.Presentations.BatchUpdate
40+ (
41+ -- * REST Resource
42+ PresentationsBatchUpdateResource
43+
44+ -- * Creating a Request
45+ , presentationsBatchUpdate
46+ , PresentationsBatchUpdate
47+
48+ -- * Request Lenses
49+ , pbuXgafv
50+ , pbuUploadProtocol
51+ , pbuPp
52+ , pbuAccessToken
53+ , pbuUploadType
54+ , pbuPresentationId
55+ , pbuPayload
56+ , pbuBearerToken
57+ , pbuCallback
58+ ) where
59+
60+import Network.Google.Prelude
61+import Network.Google.Slides.Types
62+
63+-- | A resource alias for @slides.presentations.batchUpdate@ method which the
64+-- 'PresentationsBatchUpdate' request conforms to.
65+type PresentationsBatchUpdateResource =
66+ "v1" :>
67+ "presentations" :>
68+ CaptureMode "presentationId" "batchUpdate" Text :>
69+ QueryParam "$.xgafv" Xgafv :>
70+ QueryParam "upload_protocol" Text :>
71+ QueryParam "pp" Bool :>
72+ QueryParam "access_token" Text :>
73+ QueryParam "uploadType" Text :>
74+ QueryParam "bearer_token" Text :>
75+ QueryParam "callback" Text :>
76+ QueryParam "alt" AltJSON :>
77+ ReqBody '[JSON] BatchUpdatePresentationRequest :>
78+ Post '[JSON] BatchUpdatePresentationResponse
79+
80+-- | Applies one or more updates to the presentation. Each request is
81+-- validated before being applied. If any request is not valid, then the
82+-- entire request will fail and nothing will be applied. Some requests have
83+-- replies to give you some information about how they are applied. Other
84+-- requests do not need to return information; these each return an empty
85+-- reply. The order of replies matches that of the requests. For example,
86+-- suppose you call batchUpdate with four updates, and only the third one
87+-- returns information. The response would have two empty replies: the
88+-- reply to the third request, and another empty reply, in that order.
89+-- Because other users may be editing the presentation, the presentation
90+-- might not exactly reflect your changes: your changes may be altered with
91+-- respect to collaborator changes. If there are no collaborators, the
92+-- presentation should reflect your changes. In any case, the updates in
93+-- your request are guaranteed to be applied together atomically.
94+--
95+-- /See:/ 'presentationsBatchUpdate' smart constructor.
96+data PresentationsBatchUpdate = PresentationsBatchUpdate'
97+ { _pbuXgafv :: !(Maybe Xgafv)
98+ , _pbuUploadProtocol :: !(Maybe Text)
99+ , _pbuPp :: !Bool
100+ , _pbuAccessToken :: !(Maybe Text)
101+ , _pbuUploadType :: !(Maybe Text)
102+ , _pbuPresentationId :: !Text
103+ , _pbuPayload :: !BatchUpdatePresentationRequest
104+ , _pbuBearerToken :: !(Maybe Text)
105+ , _pbuCallback :: !(Maybe Text)
106+ } deriving (Eq,Show,Data,Typeable,Generic)
107+
108+-- | Creates a value of 'PresentationsBatchUpdate' with the minimum fields required to make a request.
109+--
110+-- Use one of the following lenses to modify other fields as desired:
111+--
112+-- * 'pbuXgafv'
113+--
114+-- * 'pbuUploadProtocol'
115+--
116+-- * 'pbuPp'
117+--
118+-- * 'pbuAccessToken'
119+--
120+-- * 'pbuUploadType'
121+--
122+-- * 'pbuPresentationId'
123+--
124+-- * 'pbuPayload'
125+--
126+-- * 'pbuBearerToken'
127+--
128+-- * 'pbuCallback'
129+presentationsBatchUpdate
130+ :: Text -- ^ 'pbuPresentationId'
131+ -> BatchUpdatePresentationRequest -- ^ 'pbuPayload'
132+ -> PresentationsBatchUpdate
133+presentationsBatchUpdate pPbuPresentationId_ pPbuPayload_ =
134+ PresentationsBatchUpdate'
135+ { _pbuXgafv = Nothing
136+ , _pbuUploadProtocol = Nothing
137+ , _pbuPp = True
138+ , _pbuAccessToken = Nothing
139+ , _pbuUploadType = Nothing
140+ , _pbuPresentationId = pPbuPresentationId_
141+ , _pbuPayload = pPbuPayload_
142+ , _pbuBearerToken = Nothing
143+ , _pbuCallback = Nothing
144+ }
145+
146+-- | V1 error format.
147+pbuXgafv :: Lens' PresentationsBatchUpdate (Maybe Xgafv)
148+pbuXgafv = lens _pbuXgafv (\ s a -> s{_pbuXgafv = a})
149+
150+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
151+pbuUploadProtocol :: Lens' PresentationsBatchUpdate (Maybe Text)
152+pbuUploadProtocol
153+ = lens _pbuUploadProtocol
154+ (\ s a -> s{_pbuUploadProtocol = a})
155+
156+-- | Pretty-print response.
157+pbuPp :: Lens' PresentationsBatchUpdate Bool
158+pbuPp = lens _pbuPp (\ s a -> s{_pbuPp = a})
159+
160+-- | OAuth access token.
161+pbuAccessToken :: Lens' PresentationsBatchUpdate (Maybe Text)
162+pbuAccessToken
163+ = lens _pbuAccessToken
164+ (\ s a -> s{_pbuAccessToken = a})
165+
166+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
167+pbuUploadType :: Lens' PresentationsBatchUpdate (Maybe Text)
168+pbuUploadType
169+ = lens _pbuUploadType
170+ (\ s a -> s{_pbuUploadType = a})
171+
172+-- | The presentation to apply the updates to.
173+pbuPresentationId :: Lens' PresentationsBatchUpdate Text
174+pbuPresentationId
175+ = lens _pbuPresentationId
176+ (\ s a -> s{_pbuPresentationId = a})
177+
178+-- | Multipart request metadata.
179+pbuPayload :: Lens' PresentationsBatchUpdate BatchUpdatePresentationRequest
180+pbuPayload
181+ = lens _pbuPayload (\ s a -> s{_pbuPayload = a})
182+
183+-- | OAuth bearer token.
184+pbuBearerToken :: Lens' PresentationsBatchUpdate (Maybe Text)
185+pbuBearerToken
186+ = lens _pbuBearerToken
187+ (\ s a -> s{_pbuBearerToken = a})
188+
189+-- | JSONP
190+pbuCallback :: Lens' PresentationsBatchUpdate (Maybe Text)
191+pbuCallback
192+ = lens _pbuCallback (\ s a -> s{_pbuCallback = a})
193+
194+instance GoogleRequest PresentationsBatchUpdate where
195+ type Rs PresentationsBatchUpdate =
196+ BatchUpdatePresentationResponse
197+ type Scopes PresentationsBatchUpdate =
198+ '["https://www.googleapis.com/auth/drive",
199+ "https://www.googleapis.com/auth/drive.readonly",
200+ "https://www.googleapis.com/auth/presentations",
201+ "https://www.googleapis.com/auth/spreadsheets",
202+ "https://www.googleapis.com/auth/spreadsheets.readonly"]
203+ requestClient PresentationsBatchUpdate'{..}
204+ = go _pbuPresentationId _pbuXgafv _pbuUploadProtocol
205+ (Just _pbuPp)
206+ _pbuAccessToken
207+ _pbuUploadType
208+ _pbuBearerToken
209+ _pbuCallback
210+ (Just AltJSON)
211+ _pbuPayload
212+ slidesService
213+ where go
214+ = buildClient
215+ (Proxy :: Proxy PresentationsBatchUpdateResource)
216+ mempty
gogol-slides/gen/Network/Google/Resource/Slides/Presentations/Create.hsnew file+173
@@ -0,0 +1,173 @@
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.Slides.Presentations.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+-- Creates a new presentation using the title given in the request. Other
24+-- fields in the request are ignored. Returns the created presentation.
25+--
26+-- /See:/ <https://developers.google.com/slides/ Google Slides API Reference> for @slides.presentations.create@.
27+module Network.Google.Resource.Slides.Presentations.Create
28+ (
29+ -- * REST Resource
30+ PresentationsCreateResource
31+
32+ -- * Creating a Request
33+ , presentationsCreate
34+ , PresentationsCreate
35+
36+ -- * Request Lenses
37+ , pcXgafv
38+ , pcUploadProtocol
39+ , pcPp
40+ , pcAccessToken
41+ , pcUploadType
42+ , pcPayload
43+ , pcBearerToken
44+ , pcCallback
45+ ) where
46+
47+import Network.Google.Prelude
48+import Network.Google.Slides.Types
49+
50+-- | A resource alias for @slides.presentations.create@ method which the
51+-- 'PresentationsCreate' request conforms to.
52+type PresentationsCreateResource =
53+ "v1" :>
54+ "presentations" :>
55+ QueryParam "$.xgafv" Xgafv :>
56+ QueryParam "upload_protocol" Text :>
57+ QueryParam "pp" Bool :>
58+ QueryParam "access_token" Text :>
59+ QueryParam "uploadType" Text :>
60+ QueryParam "bearer_token" Text :>
61+ QueryParam "callback" Text :>
62+ QueryParam "alt" AltJSON :>
63+ ReqBody '[JSON] Presentation :>
64+ Post '[JSON] Presentation
65+
66+-- | Creates a new presentation using the title given in the request. Other
67+-- fields in the request are ignored. Returns the created presentation.
68+--
69+-- /See:/ 'presentationsCreate' smart constructor.
70+data PresentationsCreate = PresentationsCreate'
71+ { _pcXgafv :: !(Maybe Xgafv)
72+ , _pcUploadProtocol :: !(Maybe Text)
73+ , _pcPp :: !Bool
74+ , _pcAccessToken :: !(Maybe Text)
75+ , _pcUploadType :: !(Maybe Text)
76+ , _pcPayload :: !Presentation
77+ , _pcBearerToken :: !(Maybe Text)
78+ , _pcCallback :: !(Maybe Text)
79+ } deriving (Eq,Show,Data,Typeable,Generic)
80+
81+-- | Creates a value of 'PresentationsCreate' with the minimum fields required to make a request.
82+--
83+-- Use one of the following lenses to modify other fields as desired:
84+--
85+-- * 'pcXgafv'
86+--
87+-- * 'pcUploadProtocol'
88+--
89+-- * 'pcPp'
90+--
91+-- * 'pcAccessToken'
92+--
93+-- * 'pcUploadType'
94+--
95+-- * 'pcPayload'
96+--
97+-- * 'pcBearerToken'
98+--
99+-- * 'pcCallback'
100+presentationsCreate
101+ :: Presentation -- ^ 'pcPayload'
102+ -> PresentationsCreate
103+presentationsCreate pPcPayload_ =
104+ PresentationsCreate'
105+ { _pcXgafv = Nothing
106+ , _pcUploadProtocol = Nothing
107+ , _pcPp = True
108+ , _pcAccessToken = Nothing
109+ , _pcUploadType = Nothing
110+ , _pcPayload = pPcPayload_
111+ , _pcBearerToken = Nothing
112+ , _pcCallback = Nothing
113+ }
114+
115+-- | V1 error format.
116+pcXgafv :: Lens' PresentationsCreate (Maybe Xgafv)
117+pcXgafv = lens _pcXgafv (\ s a -> s{_pcXgafv = a})
118+
119+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
120+pcUploadProtocol :: Lens' PresentationsCreate (Maybe Text)
121+pcUploadProtocol
122+ = lens _pcUploadProtocol
123+ (\ s a -> s{_pcUploadProtocol = a})
124+
125+-- | Pretty-print response.
126+pcPp :: Lens' PresentationsCreate Bool
127+pcPp = lens _pcPp (\ s a -> s{_pcPp = a})
128+
129+-- | OAuth access token.
130+pcAccessToken :: Lens' PresentationsCreate (Maybe Text)
131+pcAccessToken
132+ = lens _pcAccessToken
133+ (\ s a -> s{_pcAccessToken = a})
134+
135+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
136+pcUploadType :: Lens' PresentationsCreate (Maybe Text)
137+pcUploadType
138+ = lens _pcUploadType (\ s a -> s{_pcUploadType = a})
139+
140+-- | Multipart request metadata.
141+pcPayload :: Lens' PresentationsCreate Presentation
142+pcPayload
143+ = lens _pcPayload (\ s a -> s{_pcPayload = a})
144+
145+-- | OAuth bearer token.
146+pcBearerToken :: Lens' PresentationsCreate (Maybe Text)
147+pcBearerToken
148+ = lens _pcBearerToken
149+ (\ s a -> s{_pcBearerToken = a})
150+
151+-- | JSONP
152+pcCallback :: Lens' PresentationsCreate (Maybe Text)
153+pcCallback
154+ = lens _pcCallback (\ s a -> s{_pcCallback = a})
155+
156+instance GoogleRequest PresentationsCreate where
157+ type Rs PresentationsCreate = Presentation
158+ type Scopes PresentationsCreate =
159+ '["https://www.googleapis.com/auth/drive",
160+ "https://www.googleapis.com/auth/presentations"]
161+ requestClient PresentationsCreate'{..}
162+ = go _pcXgafv _pcUploadProtocol (Just _pcPp)
163+ _pcAccessToken
164+ _pcUploadType
165+ _pcBearerToken
166+ _pcCallback
167+ (Just AltJSON)
168+ _pcPayload
169+ slidesService
170+ where go
171+ = buildClient
172+ (Proxy :: Proxy PresentationsCreateResource)
173+ mempty
gogol-slides/gen/Network/Google/Resource/Slides/Presentations/Get.hsnew file+173
@@ -0,0 +1,173 @@
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.Slides.Presentations.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 latest version of the specified presentation.
24+--
25+-- /See:/ <https://developers.google.com/slides/ Google Slides API Reference> for @slides.presentations.get@.
26+module Network.Google.Resource.Slides.Presentations.Get
27+ (
28+ -- * REST Resource
29+ PresentationsGetResource
30+
31+ -- * Creating a Request
32+ , presentationsGet
33+ , PresentationsGet
34+
35+ -- * Request Lenses
36+ , pgXgafv
37+ , pgUploadProtocol
38+ , pgPp
39+ , pgAccessToken
40+ , pgUploadType
41+ , pgPresentationId
42+ , pgBearerToken
43+ , pgCallback
44+ ) where
45+
46+import Network.Google.Prelude
47+import Network.Google.Slides.Types
48+
49+-- | A resource alias for @slides.presentations.get@ method which the
50+-- 'PresentationsGet' request conforms to.
51+type PresentationsGetResource =
52+ "v1" :>
53+ "presentations" :>
54+ Capture "presentationId" Text :>
55+ QueryParam "$.xgafv" Xgafv :>
56+ QueryParam "upload_protocol" Text :>
57+ QueryParam "pp" Bool :>
58+ QueryParam "access_token" Text :>
59+ QueryParam "uploadType" Text :>
60+ QueryParam "bearer_token" Text :>
61+ QueryParam "callback" Text :>
62+ QueryParam "alt" AltJSON :> Get '[JSON] Presentation
63+
64+-- | Gets the latest version of the specified presentation.
65+--
66+-- /See:/ 'presentationsGet' smart constructor.
67+data PresentationsGet = PresentationsGet'
68+ { _pgXgafv :: !(Maybe Xgafv)
69+ , _pgUploadProtocol :: !(Maybe Text)
70+ , _pgPp :: !Bool
71+ , _pgAccessToken :: !(Maybe Text)
72+ , _pgUploadType :: !(Maybe Text)
73+ , _pgPresentationId :: !Text
74+ , _pgBearerToken :: !(Maybe Text)
75+ , _pgCallback :: !(Maybe Text)
76+ } deriving (Eq,Show,Data,Typeable,Generic)
77+
78+-- | Creates a value of 'PresentationsGet' with the minimum fields required to make a request.
79+--
80+-- Use one of the following lenses to modify other fields as desired:
81+--
82+-- * 'pgXgafv'
83+--
84+-- * 'pgUploadProtocol'
85+--
86+-- * 'pgPp'
87+--
88+-- * 'pgAccessToken'
89+--
90+-- * 'pgUploadType'
91+--
92+-- * 'pgPresentationId'
93+--
94+-- * 'pgBearerToken'
95+--
96+-- * 'pgCallback'
97+presentationsGet
98+ :: Text -- ^ 'pgPresentationId'
99+ -> PresentationsGet
100+presentationsGet pPgPresentationId_ =
101+ PresentationsGet'
102+ { _pgXgafv = Nothing
103+ , _pgUploadProtocol = Nothing
104+ , _pgPp = True
105+ , _pgAccessToken = Nothing
106+ , _pgUploadType = Nothing
107+ , _pgPresentationId = pPgPresentationId_
108+ , _pgBearerToken = Nothing
109+ , _pgCallback = Nothing
110+ }
111+
112+-- | V1 error format.
113+pgXgafv :: Lens' PresentationsGet (Maybe Xgafv)
114+pgXgafv = lens _pgXgafv (\ s a -> s{_pgXgafv = a})
115+
116+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
117+pgUploadProtocol :: Lens' PresentationsGet (Maybe Text)
118+pgUploadProtocol
119+ = lens _pgUploadProtocol
120+ (\ s a -> s{_pgUploadProtocol = a})
121+
122+-- | Pretty-print response.
123+pgPp :: Lens' PresentationsGet Bool
124+pgPp = lens _pgPp (\ s a -> s{_pgPp = a})
125+
126+-- | OAuth access token.
127+pgAccessToken :: Lens' PresentationsGet (Maybe Text)
128+pgAccessToken
129+ = lens _pgAccessToken
130+ (\ s a -> s{_pgAccessToken = a})
131+
132+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
133+pgUploadType :: Lens' PresentationsGet (Maybe Text)
134+pgUploadType
135+ = lens _pgUploadType (\ s a -> s{_pgUploadType = a})
136+
137+-- | The ID of the presentation to retrieve.
138+pgPresentationId :: Lens' PresentationsGet Text
139+pgPresentationId
140+ = lens _pgPresentationId
141+ (\ s a -> s{_pgPresentationId = a})
142+
143+-- | OAuth bearer token.
144+pgBearerToken :: Lens' PresentationsGet (Maybe Text)
145+pgBearerToken
146+ = lens _pgBearerToken
147+ (\ s a -> s{_pgBearerToken = a})
148+
149+-- | JSONP
150+pgCallback :: Lens' PresentationsGet (Maybe Text)
151+pgCallback
152+ = lens _pgCallback (\ s a -> s{_pgCallback = a})
153+
154+instance GoogleRequest PresentationsGet where
155+ type Rs PresentationsGet = Presentation
156+ type Scopes PresentationsGet =
157+ '["https://www.googleapis.com/auth/drive",
158+ "https://www.googleapis.com/auth/drive.readonly",
159+ "https://www.googleapis.com/auth/presentations",
160+ "https://www.googleapis.com/auth/presentations.readonly"]
161+ requestClient PresentationsGet'{..}
162+ = go _pgPresentationId _pgXgafv _pgUploadProtocol
163+ (Just _pgPp)
164+ _pgAccessToken
165+ _pgUploadType
166+ _pgBearerToken
167+ _pgCallback
168+ (Just AltJSON)
169+ slidesService
170+ where go
171+ = buildClient
172+ (Proxy :: Proxy PresentationsGetResource)
173+ mempty
gogol-slides/gen/Network/Google/Resource/Slides/Presentations/Pages/Get.hsnew file+189
@@ -0,0 +1,189 @@
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.Slides.Presentations.Pages.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 latest version of the specified page in the presentation.
24+--
25+-- /See:/ <https://developers.google.com/slides/ Google Slides API Reference> for @slides.presentations.pages.get@.
26+module Network.Google.Resource.Slides.Presentations.Pages.Get
27+ (
28+ -- * REST Resource
29+ PresentationsPagesGetResource
30+
31+ -- * Creating a Request
32+ , presentationsPagesGet
33+ , PresentationsPagesGet
34+
35+ -- * Request Lenses
36+ , ppgXgafv
37+ , ppgUploadProtocol
38+ , ppgPp
39+ , ppgAccessToken
40+ , ppgPageObjectId
41+ , ppgUploadType
42+ , ppgPresentationId
43+ , ppgBearerToken
44+ , ppgCallback
45+ ) where
46+
47+import Network.Google.Prelude
48+import Network.Google.Slides.Types
49+
50+-- | A resource alias for @slides.presentations.pages.get@ method which the
51+-- 'PresentationsPagesGet' request conforms to.
52+type PresentationsPagesGetResource =
53+ "v1" :>
54+ "presentations" :>
55+ Capture "presentationId" Text :>
56+ "pages" :>
57+ Capture "pageObjectId" Text :>
58+ QueryParam "$.xgafv" Xgafv :>
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] Page
66+
67+-- | Gets the latest version of the specified page in the presentation.
68+--
69+-- /See:/ 'presentationsPagesGet' smart constructor.
70+data PresentationsPagesGet = PresentationsPagesGet'
71+ { _ppgXgafv :: !(Maybe Xgafv)
72+ , _ppgUploadProtocol :: !(Maybe Text)
73+ , _ppgPp :: !Bool
74+ , _ppgAccessToken :: !(Maybe Text)
75+ , _ppgPageObjectId :: !Text
76+ , _ppgUploadType :: !(Maybe Text)
77+ , _ppgPresentationId :: !Text
78+ , _ppgBearerToken :: !(Maybe Text)
79+ , _ppgCallback :: !(Maybe Text)
80+ } deriving (Eq,Show,Data,Typeable,Generic)
81+
82+-- | Creates a value of 'PresentationsPagesGet' 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+-- * 'ppgXgafv'
87+--
88+-- * 'ppgUploadProtocol'
89+--
90+-- * 'ppgPp'
91+--
92+-- * 'ppgAccessToken'
93+--
94+-- * 'ppgPageObjectId'
95+--
96+-- * 'ppgUploadType'
97+--
98+-- * 'ppgPresentationId'
99+--
100+-- * 'ppgBearerToken'
101+--
102+-- * 'ppgCallback'
103+presentationsPagesGet
104+ :: Text -- ^ 'ppgPageObjectId'
105+ -> Text -- ^ 'ppgPresentationId'
106+ -> PresentationsPagesGet
107+presentationsPagesGet pPpgPageObjectId_ pPpgPresentationId_ =
108+ PresentationsPagesGet'
109+ { _ppgXgafv = Nothing
110+ , _ppgUploadProtocol = Nothing
111+ , _ppgPp = True
112+ , _ppgAccessToken = Nothing
113+ , _ppgPageObjectId = pPpgPageObjectId_
114+ , _ppgUploadType = Nothing
115+ , _ppgPresentationId = pPpgPresentationId_
116+ , _ppgBearerToken = Nothing
117+ , _ppgCallback = Nothing
118+ }
119+
120+-- | V1 error format.
121+ppgXgafv :: Lens' PresentationsPagesGet (Maybe Xgafv)
122+ppgXgafv = lens _ppgXgafv (\ s a -> s{_ppgXgafv = a})
123+
124+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
125+ppgUploadProtocol :: Lens' PresentationsPagesGet (Maybe Text)
126+ppgUploadProtocol
127+ = lens _ppgUploadProtocol
128+ (\ s a -> s{_ppgUploadProtocol = a})
129+
130+-- | Pretty-print response.
131+ppgPp :: Lens' PresentationsPagesGet Bool
132+ppgPp = lens _ppgPp (\ s a -> s{_ppgPp = a})
133+
134+-- | OAuth access token.
135+ppgAccessToken :: Lens' PresentationsPagesGet (Maybe Text)
136+ppgAccessToken
137+ = lens _ppgAccessToken
138+ (\ s a -> s{_ppgAccessToken = a})
139+
140+-- | The object ID of the page to retrieve.
141+ppgPageObjectId :: Lens' PresentationsPagesGet Text
142+ppgPageObjectId
143+ = lens _ppgPageObjectId
144+ (\ s a -> s{_ppgPageObjectId = a})
145+
146+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
147+ppgUploadType :: Lens' PresentationsPagesGet (Maybe Text)
148+ppgUploadType
149+ = lens _ppgUploadType
150+ (\ s a -> s{_ppgUploadType = a})
151+
152+-- | The ID of the presentation to retrieve.
153+ppgPresentationId :: Lens' PresentationsPagesGet Text
154+ppgPresentationId
155+ = lens _ppgPresentationId
156+ (\ s a -> s{_ppgPresentationId = a})
157+
158+-- | OAuth bearer token.
159+ppgBearerToken :: Lens' PresentationsPagesGet (Maybe Text)
160+ppgBearerToken
161+ = lens _ppgBearerToken
162+ (\ s a -> s{_ppgBearerToken = a})
163+
164+-- | JSONP
165+ppgCallback :: Lens' PresentationsPagesGet (Maybe Text)
166+ppgCallback
167+ = lens _ppgCallback (\ s a -> s{_ppgCallback = a})
168+
169+instance GoogleRequest PresentationsPagesGet where
170+ type Rs PresentationsPagesGet = Page
171+ type Scopes PresentationsPagesGet =
172+ '["https://www.googleapis.com/auth/drive",
173+ "https://www.googleapis.com/auth/drive.readonly",
174+ "https://www.googleapis.com/auth/presentations",
175+ "https://www.googleapis.com/auth/presentations.readonly"]
176+ requestClient PresentationsPagesGet'{..}
177+ = go _ppgPresentationId _ppgPageObjectId _ppgXgafv
178+ _ppgUploadProtocol
179+ (Just _ppgPp)
180+ _ppgAccessToken
181+ _ppgUploadType
182+ _ppgBearerToken
183+ _ppgCallback
184+ (Just AltJSON)
185+ slidesService
186+ where go
187+ = buildClient
188+ (Proxy :: Proxy PresentationsPagesGetResource)
189+ mempty
gogol-slides/gen/Network/Google/Slides.hsnew file+941
@@ -0,0 +1,941 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE NoImplicitPrelude #-}
3+{-# LANGUAGE TypeOperators #-}
4+
5+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
6+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
7+
8+-- |
9+-- Module : Network.Google.Slides
10+-- Copyright : (c) 2015-2016 Brendan Hay
11+-- License : Mozilla Public License, v. 2.0.
12+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
13+-- Stability : auto-generated
14+-- Portability : non-portable (GHC extensions)
15+--
16+-- An API for creating and editing Google Slides presentations.
17+--
18+-- /See:/ <https://developers.google.com/slides/ Google Slides API Reference>
19+module Network.Google.Slides
20+ (
21+ -- * Service Configuration
22+ slidesService
23+
24+ -- * OAuth Scopes
25+ , spreadsheetsReadOnlyScope
26+ , presentationsScope
27+ , driveReadOnlyScope
28+ , driveScope
29+ , spreadsheetsScope
30+ , presentationsReadOnlyScope
31+
32+ -- * API Declaration
33+ , SlidesAPI
34+
35+ -- * Resources
36+
37+ -- ** slides.presentations.batchUpdate
38+ , module Network.Google.Resource.Slides.Presentations.BatchUpdate
39+
40+ -- ** slides.presentations.create
41+ , module Network.Google.Resource.Slides.Presentations.Create
42+
43+ -- ** slides.presentations.get
44+ , module Network.Google.Resource.Slides.Presentations.Get
45+
46+ -- ** slides.presentations.pages.get
47+ , module Network.Google.Resource.Slides.Presentations.Pages.Get
48+
49+ -- * Types
50+
51+ -- ** ParagraphMarker
52+ , ParagraphMarker
53+ , paragraphMarker
54+ , pmStyle
55+ , pmBullet
56+
57+ -- ** DeleteTableRowRequest
58+ , DeleteTableRowRequest
59+ , deleteTableRowRequest
60+ , dtrrCellLocation
61+ , dtrrTableObjectId
62+
63+ -- ** ParagraphStyleDirection
64+ , ParagraphStyleDirection (..)
65+
66+ -- ** PageElementProperties
67+ , PageElementProperties
68+ , pageElementProperties
69+ , pepTransform
70+ , pepSize
71+ , pepPageObjectId
72+
73+ -- ** TextStyleBaselineOffSet
74+ , TextStyleBaselineOffSet (..)
75+
76+ -- ** ReplaceAllShapesWithImageResponse
77+ , ReplaceAllShapesWithImageResponse
78+ , replaceAllShapesWithImageResponse
79+ , raswirOccurrencesChanged
80+
81+ -- ** RangeType
82+ , RangeType (..)
83+
84+ -- ** OutlineFill
85+ , OutlineFill
86+ , outlineFill
87+ , ofSolidFill
88+
89+ -- ** Image
90+ , Image
91+ , image
92+ , iImageProperties
93+ , iContentURL
94+
95+ -- ** UpdateLinePropertiesRequest
96+ , UpdateLinePropertiesRequest
97+ , updateLinePropertiesRequest
98+ , ulprLineProperties
99+ , ulprObjectId
100+ , ulprFields
101+
102+ -- ** CropProperties
103+ , CropProperties
104+ , cropProperties
105+ , cpBottomOffSet
106+ , cpTopOffSet
107+ , cpAngle
108+ , cpRightOffSet
109+ , cpLeftOffSet
110+
111+ -- ** LineProperties
112+ , LineProperties
113+ , lineProperties
114+ , lpWeight
115+ , lpLink
116+ , lpDashStyle
117+ , lpStartArrow
118+ , lpLineFill
119+ , lpEndArrow
120+
121+ -- ** Group
122+ , Group
123+ , group'
124+ , gChildren
125+
126+ -- ** BatchUpdatePresentationRequest
127+ , BatchUpdatePresentationRequest
128+ , batchUpdatePresentationRequest
129+ , buprRequests
130+
131+ -- ** CreateShapeRequest
132+ , CreateShapeRequest
133+ , createShapeRequest
134+ , csrShapeType
135+ , csrObjectId
136+ , csrElementProperties
137+
138+ -- ** PageBackgRoundFillPropertyState
139+ , PageBackgRoundFillPropertyState (..)
140+
141+ -- ** AutoText
142+ , AutoText
143+ , autoText
144+ , atStyle
145+ , atContent
146+ , atType
147+
148+ -- ** List
149+ , List
150+ , list
151+ , lListId
152+ , lNestingLevel
153+
154+ -- ** RgbColor
155+ , RgbColor
156+ , rgbColor
157+ , rcRed
158+ , rcGreen
159+ , rcBlue
160+
161+ -- ** UpdatePagePropertiesRequest
162+ , UpdatePagePropertiesRequest
163+ , updatePagePropertiesRequest
164+ , upprObjectId
165+ , upprPageProperties
166+ , upprFields
167+
168+ -- ** CreateSheetsChartRequest
169+ , CreateSheetsChartRequest
170+ , createSheetsChartRequest
171+ , cscrObjectId
172+ , cscrSpreadsheetId
173+ , cscrLinkingMode
174+ , cscrElementProperties
175+ , cscrChartId
176+
177+ -- ** CreateParagraphBulletsRequestBulletPreset
178+ , CreateParagraphBulletsRequestBulletPreset (..)
179+
180+ -- ** CreateShapeRequestShapeType
181+ , CreateShapeRequestShapeType (..)
182+
183+ -- ** LayoutReferencePredefinedLayout
184+ , LayoutReferencePredefinedLayout (..)
185+
186+ -- ** DeleteTextRequest
187+ , DeleteTextRequest
188+ , deleteTextRequest
189+ , dtrTextRange
190+ , dtrObjectId
191+ , dtrCellLocation
192+
193+ -- ** InsertTableColumnsRequest
194+ , InsertTableColumnsRequest
195+ , insertTableColumnsRequest
196+ , itcrInsertRight
197+ , itcrNumber
198+ , itcrCellLocation
199+ , itcrTableObjectId
200+
201+ -- ** TextContentLists
202+ , TextContentLists
203+ , textContentLists
204+ , tclAddtional
205+
206+ -- ** Size
207+ , Size
208+ , size
209+ , sHeight
210+ , sWidth
211+
212+ -- ** StretchedPictureFill
213+ , StretchedPictureFill
214+ , stretchedPictureFill
215+ , spfSize
216+ , spfContentURL
217+
218+ -- ** CreateLineRequestLineCategory
219+ , CreateLineRequestLineCategory (..)
220+
221+ -- ** SheetsChart
222+ , SheetsChart
223+ , sheetsChart
224+ , scSpreadsheetId
225+ , scContentURL
226+ , scSheetsChartProperties
227+ , scChartId
228+
229+ -- ** CreateShapeResponse
230+ , CreateShapeResponse
231+ , createShapeResponse
232+ , cObjectId
233+
234+ -- ** DeleteTableColumnRequest
235+ , DeleteTableColumnRequest
236+ , deleteTableColumnRequest
237+ , dtcrCellLocation
238+ , dtcrTableObjectId
239+
240+ -- ** ShapeShapeType
241+ , ShapeShapeType (..)
242+
243+ -- ** OutlinePropertyState
244+ , OutlinePropertyState (..)
245+
246+ -- ** Link
247+ , Link
248+ , link
249+ , lURL
250+ , lPageObjectId
251+ , lRelativeLink
252+ , lSlideIndex
253+
254+ -- ** Dimension
255+ , Dimension
256+ , dimension
257+ , dMagnitude
258+ , dUnit
259+
260+ -- ** BatchUpdatePresentationResponse
261+ , BatchUpdatePresentationResponse
262+ , batchUpdatePresentationResponse
263+ , buprPresentationId
264+ , buprReplies
265+
266+ -- ** DuplicateObjectRequestObjectIds
267+ , DuplicateObjectRequestObjectIds
268+ , duplicateObjectRequestObjectIds
269+ , doroiAddtional
270+
271+ -- ** CreateTableRequest
272+ , CreateTableRequest
273+ , createTableRequest
274+ , ctrObjectId
275+ , ctrRows
276+ , ctrElementProperties
277+ , ctrColumns
278+
279+ -- ** Response
280+ , Response
281+ , response
282+ , rReplaceAllShapesWithImage
283+ , rCreateLine
284+ , rReplaceAllText
285+ , rCreateShape
286+ , rCreateSheetsChart
287+ , rDuplicateObject
288+ , rCreateTable
289+ , rCreateVideo
290+ , rCreateImage
291+ , rCreateSlide
292+
293+ -- ** OptionalColor
294+ , OptionalColor
295+ , optionalColor
296+ , ocOpaqueColor
297+
298+ -- ** DuplicateObjectRequest
299+ , DuplicateObjectRequest
300+ , duplicateObjectRequest
301+ , dorObjectId
302+ , dorObjectIds
303+
304+ -- ** PlaceholderType
305+ , PlaceholderType (..)
306+
307+ -- ** Page
308+ , Page
309+ , page
310+ , pObjectId
311+ , pPageElements
312+ , pSlideProperties
313+ , pPageProperties
314+ , pLayoutProperties
315+ , pPageType
316+
317+ -- ** ReplaceAllTextResponse
318+ , ReplaceAllTextResponse
319+ , replaceAllTextResponse
320+ , ratrOccurrencesChanged
321+
322+ -- ** ReplaceAllShapesWithImageRequestReplaceMethod
323+ , ReplaceAllShapesWithImageRequestReplaceMethod (..)
324+
325+ -- ** Bullet
326+ , Bullet
327+ , bullet
328+ , bGlyph
329+ , bListId
330+ , bNestingLevel
331+ , bBulletStyle
332+
333+ -- ** CreateSheetsChartRequestLinkingMode
334+ , CreateSheetsChartRequestLinkingMode (..)
335+
336+ -- ** UpdateImagePropertiesRequest
337+ , UpdateImagePropertiesRequest
338+ , updateImagePropertiesRequest
339+ , uiprObjectId
340+ , uiprImageProperties
341+ , uiprFields
342+
343+ -- ** SlideProperties
344+ , SlideProperties
345+ , slideProperties
346+ , spLayoutObjectId
347+ , spMasterObjectId
348+
349+ -- ** Presentation
350+ , Presentation
351+ , presentation
352+ , pSlides
353+ , pMasters
354+ , pLocale
355+ , pPresentationId
356+ , pTitle
357+ , pPageSize
358+ , pLayouts
359+
360+ -- ** ThemeColorPair
361+ , ThemeColorPair
362+ , themeColorPair
363+ , tcpColor
364+ , tcpType
365+
366+ -- ** ShapeBackgRoundFillPropertyState
367+ , ShapeBackgRoundFillPropertyState (..)
368+
369+ -- ** OpaqueColorThemeColor
370+ , OpaqueColorThemeColor (..)
371+
372+ -- ** Shadow
373+ , Shadow
374+ , shadow
375+ , sTransform
376+ , sColor
377+ , sBlurRadius
378+ , sRotateWithShape
379+ , sAlpha
380+ , sAlignment
381+ , sPropertyState
382+ , sType
383+
384+ -- ** LinePropertiesDashStyle
385+ , LinePropertiesDashStyle (..)
386+
387+ -- ** ImageProperties
388+ , ImageProperties
389+ , imageProperties
390+ , ipCropProperties
391+ , ipLink
392+ , ipTransparency
393+ , ipShadow
394+ , ipContrast
395+ , ipRecolor
396+ , ipOutline
397+ , ipBrightness
398+
399+ -- ** ParagraphStyleAlignment
400+ , ParagraphStyleAlignment (..)
401+
402+ -- ** Line
403+ , Line
404+ , line
405+ , lLineProperties
406+ , lLineType
407+
408+ -- ** CreateVideoResponse
409+ , CreateVideoResponse
410+ , createVideoResponse
411+ , cvrObjectId
412+
413+ -- ** LayoutReference
414+ , LayoutReference
415+ , layoutReference
416+ , lrPredefinedLayout
417+ , lrLayoutId
418+
419+ -- ** LineFill
420+ , LineFill
421+ , lineFill
422+ , lfSolidFill
423+
424+ -- ** UpdatePageElementTransformRequest
425+ , UpdatePageElementTransformRequest
426+ , updatePageElementTransformRequest
427+ , upetrTransform
428+ , upetrObjectId
429+ , upetrApplyMode
430+
431+ -- ** ShadowAlignment
432+ , ShadowAlignment (..)
433+
434+ -- ** InsertTableRowsRequest
435+ , InsertTableRowsRequest
436+ , insertTableRowsRequest
437+ , itrrInsertBelow
438+ , itrrNumber
439+ , itrrCellLocation
440+ , itrrTableObjectId
441+
442+ -- ** LinePropertiesEndArrow
443+ , LinePropertiesEndArrow (..)
444+
445+ -- ** Video
446+ , Video
447+ , video
448+ , vURL
449+ , vSource
450+ , vId
451+ , vVideoProperties
452+
453+ -- ** TableCellBackgRoundFillPropertyState
454+ , TableCellBackgRoundFillPropertyState (..)
455+
456+ -- ** CreateVideoRequestSource
457+ , CreateVideoRequestSource (..)
458+
459+ -- ** TableCellProperties
460+ , TableCellProperties
461+ , tableCellProperties
462+ , tcpTableCellBackgRoundFill
463+
464+ -- ** CreateLineResponse
465+ , CreateLineResponse
466+ , createLineResponse
467+ , clrObjectId
468+
469+ -- ** WordArt
470+ , WordArt
471+ , wordArt
472+ , waRenderedText
473+
474+ -- ** TableCellBackgRoundFill
475+ , TableCellBackgRoundFill
476+ , tableCellBackgRoundFill
477+ , tcbrfSolidFill
478+ , tcbrfPropertyState
479+
480+ -- ** LinkRelativeLink
481+ , LinkRelativeLink (..)
482+
483+ -- ** VideoSource
484+ , VideoSource (..)
485+
486+ -- ** TextRun
487+ , TextRun
488+ , textRun
489+ , trStyle
490+ , trContent
491+
492+ -- ** RefreshSheetsChartRequest
493+ , RefreshSheetsChartRequest
494+ , refreshSheetsChartRequest
495+ , rscrObjectId
496+
497+ -- ** TableRow
498+ , TableRow
499+ , tableRow
500+ , trTableCells
501+ , trRowHeight
502+
503+ -- ** CreateVideoRequest
504+ , CreateVideoRequest
505+ , createVideoRequest
506+ , creObjectId
507+ , creElementProperties
508+ , creSource
509+ , creId
510+
511+ -- ** TextContent
512+ , TextContent
513+ , textContent
514+ , tcTextElements
515+ , tcLists
516+
517+ -- ** Shape
518+ , Shape
519+ , shape
520+ , sShapeType
521+ , sText
522+ , sPlaceholder
523+ , sShapeProperties
524+
525+ -- ** AffineTransform
526+ , AffineTransform
527+ , affineTransform
528+ , atTranslateX
529+ , atShearY
530+ , atTranslateY
531+ , atShearX
532+ , atScaleX
533+ , atUnit
534+ , atScaleY
535+
536+ -- ** CreateSheetsChartResponse
537+ , CreateSheetsChartResponse
538+ , createSheetsChartResponse
539+ , cscrsObjectId
540+
541+ -- ** Range
542+ , Range
543+ , range
544+ , rEndIndex
545+ , rType
546+ , rStartIndex
547+
548+ -- ** CreateImageRequest
549+ , CreateImageRequest
550+ , createImageRequest
551+ , cirObjectId
552+ , cirURL
553+ , cirElementProperties
554+
555+ -- ** Xgafv
556+ , Xgafv (..)
557+
558+ -- ** AutoTextType
559+ , AutoTextType (..)
560+
561+ -- ** TextStyle
562+ , TextStyle
563+ , textStyle
564+ , tsFontFamily
565+ , tsLink
566+ , tsBackgRoundColor
567+ , tsBaselineOffSet
568+ , tsForegRoundColor
569+ , tsFontSize
570+ , tsSmallCaps
571+ , tsUnderline
572+ , tsItalic
573+ , tsBold
574+ , tsStrikethrough
575+
576+ -- ** SolidFill
577+ , SolidFill
578+ , solidFill
579+ , sfColor
580+ , sfAlpha
581+
582+ -- ** UpdateTextStyleRequest
583+ , UpdateTextStyleRequest
584+ , updateTextStyleRequest
585+ , utsrStyle
586+ , utsrTextRange
587+ , utsrObjectId
588+ , utsrCellLocation
589+ , utsrFields
590+
591+ -- ** Recolor
592+ , Recolor
593+ , recolor
594+ , rRecolorStops
595+
596+ -- ** PageProperties
597+ , PageProperties
598+ , pageProperties
599+ , ppPageBackgRoundFill
600+ , ppColorScheme
601+
602+ -- ** PageBackgRoundFill
603+ , PageBackgRoundFill
604+ , pageBackgRoundFill
605+ , pbrfStretchedPictureFill
606+ , pbrfSolidFill
607+ , pbrfPropertyState
608+
609+ -- ** NestingLevel
610+ , NestingLevel
611+ , nestingLevel
612+ , nlBulletStyle
613+
614+ -- ** OpaqueColor
615+ , OpaqueColor
616+ , opaqueColor
617+ , ocThemeColor
618+ , ocRgbColor
619+
620+ -- ** CreateSlideRequest
621+ , CreateSlideRequest
622+ , createSlideRequest
623+ , csrsObjectId
624+ , csrsSlideLayoutReference
625+ , csrsInsertionIndex
626+
627+ -- ** TableCellLocation
628+ , TableCellLocation
629+ , tableCellLocation
630+ , tclColumnIndex
631+ , tclRowIndex
632+
633+ -- ** UpdateSlidesPositionRequest
634+ , UpdateSlidesPositionRequest
635+ , updateSlidesPositionRequest
636+ , usprSlideObjectIds
637+ , usprInsertionIndex
638+
639+ -- ** ReplaceAllShapesWithImageRequest
640+ , ReplaceAllShapesWithImageRequest
641+ , replaceAllShapesWithImageRequest
642+ , raswirContainsText
643+ , raswirImageURL
644+ , raswirReplaceMethod
645+
646+ -- ** PageElement
647+ , PageElement
648+ , pageElement
649+ , peTransform
650+ , peImage
651+ , peSize
652+ , peSheetsChart
653+ , peObjectId
654+ , peLine
655+ , peElementGroup
656+ , peVideo
657+ , peWordArt
658+ , peShape
659+ , peTitle
660+ , peTable
661+ , peDescription
662+
663+ -- ** ColorStop
664+ , ColorStop
665+ , colorStop
666+ , csColor
667+ , csAlpha
668+ , csPosition
669+
670+ -- ** DeleteObjectRequest
671+ , DeleteObjectRequest
672+ , deleteObjectRequest
673+ , dObjectId
674+
675+ -- ** CreateSlideResponse
676+ , CreateSlideResponse
677+ , createSlideResponse
678+ , ccObjectId
679+
680+ -- ** ColorScheme
681+ , ColorScheme
682+ , colorScheme
683+ , csColors
684+
685+ -- ** TableCell
686+ , TableCell
687+ , tableCell
688+ , tcColumnSpan
689+ , tcLocation
690+ , tcText
691+ , tcRowSpan
692+ , tcTableCellProperties
693+
694+ -- ** ListNestingLevel
695+ , ListNestingLevel
696+ , listNestingLevel
697+ , lnlAddtional
698+
699+ -- ** Outline
700+ , Outline
701+ , outline
702+ , oOutlineFill
703+ , oWeight
704+ , oDashStyle
705+ , oPropertyState
706+
707+ -- ** UpdateVideoPropertiesRequest
708+ , UpdateVideoPropertiesRequest
709+ , updateVideoPropertiesRequest
710+ , uvprObjectId
711+ , uvprVideoProperties
712+ , uvprFields
713+
714+ -- ** VideoProperties
715+ , VideoProperties
716+ , videoProperties
717+ , vpOutline
718+
719+ -- ** LineLineType
720+ , LineLineType (..)
721+
722+ -- ** PagePageType
723+ , PagePageType (..)
724+
725+ -- ** CreateImageResponse
726+ , CreateImageResponse
727+ , createImageResponse
728+ , ciriObjectId
729+
730+ -- ** TextElement
731+ , TextElement
732+ , textElement
733+ , teParagraphMarker
734+ , teAutoText
735+ , teEndIndex
736+ , teTextRun
737+ , teStartIndex
738+
739+ -- ** ParagraphStyleSpacingMode
740+ , ParagraphStyleSpacingMode (..)
741+
742+ -- ** InsertTextRequest
743+ , InsertTextRequest
744+ , insertTextRequest
745+ , itrText
746+ , itrObjectId
747+ , itrInsertionIndex
748+ , itrCellLocation
749+
750+ -- ** CreateLineRequest
751+ , CreateLineRequest
752+ , createLineRequest
753+ , clrlObjectId
754+ , clrlLineCategory
755+ , clrlElementProperties
756+
757+ -- ** Placeholder
758+ , Placeholder
759+ , placeholder
760+ , pParentObjectId
761+ , pType
762+ , pIndex
763+
764+ -- ** LayoutProperties
765+ , LayoutProperties
766+ , layoutProperties
767+ , lpMasterObjectId
768+ , lpName
769+ , lpDisplayName
770+
771+ -- ** UpdateShapePropertiesRequest
772+ , UpdateShapePropertiesRequest
773+ , updateShapePropertiesRequest
774+ , usprObjectId
775+ , usprShapeProperties
776+ , usprFields
777+
778+ -- ** Table
779+ , Table
780+ , table
781+ , tTableRows
782+ , tRows
783+ , tColumns
784+ , tTableColumns
785+
786+ -- ** ThemeColorPairType
787+ , ThemeColorPairType (..)
788+
789+ -- ** LinePropertiesStartArrow
790+ , LinePropertiesStartArrow (..)
791+
792+ -- ** ShapeProperties
793+ , ShapeProperties
794+ , shapeProperties
795+ , spLink
796+ , spShadow
797+ , spOutline
798+ , spShapeBackgRoundFill
799+
800+ -- ** ShadowPropertyState
801+ , ShadowPropertyState (..)
802+
803+ -- ** ShadowType
804+ , ShadowType (..)
805+
806+ -- ** ShapeBackgRoundFill
807+ , ShapeBackgRoundFill
808+ , shapeBackgRoundFill
809+ , sbrfSolidFill
810+ , sbrfPropertyState
811+
812+ -- ** UpdatePageElementTransformRequestApplyMode
813+ , UpdatePageElementTransformRequestApplyMode (..)
814+
815+ -- ** CreateParagraphBulletsRequest
816+ , CreateParagraphBulletsRequest
817+ , createParagraphBulletsRequest
818+ , cpbrTextRange
819+ , cpbrObjectId
820+ , cpbrBulletPreset
821+ , cpbrCellLocation
822+
823+ -- ** DimensionUnit
824+ , DimensionUnit (..)
825+
826+ -- ** OutlineDashStyle
827+ , OutlineDashStyle (..)
828+
829+ -- ** AffineTransformUnit
830+ , AffineTransformUnit (..)
831+
832+ -- ** UpdateTableCellPropertiesRequest
833+ , UpdateTableCellPropertiesRequest
834+ , updateTableCellPropertiesRequest
835+ , utcprObjectId
836+ , utcprTableCellProperties
837+ , utcprTableRange
838+ , utcprFields
839+
840+ -- ** SheetsChartProperties
841+ , SheetsChartProperties
842+ , sheetsChartProperties
843+ , scpChartImageProperties
844+
845+ -- ** ParagraphStyle
846+ , ParagraphStyle
847+ , paragraphStyle
848+ , psLineSpacing
849+ , psDirection
850+ , psIndentFirstLine
851+ , psIndentEnd
852+ , psIndentStart
853+ , psAlignment
854+ , psSpaceBelow
855+ , psSpacingMode
856+ , psSpaceAbove
857+
858+ -- ** CreateTableResponse
859+ , CreateTableResponse
860+ , createTableResponse
861+ , ctrtObjectId
862+
863+ -- ** TableColumnProperties
864+ , TableColumnProperties
865+ , tableColumnProperties
866+ , tcpColumnWidth
867+
868+ -- ** DuplicateObjectResponse
869+ , DuplicateObjectResponse
870+ , duplicateObjectResponse
871+ , dupObjectId
872+
873+ -- ** ReplaceAllTextRequest
874+ , ReplaceAllTextRequest
875+ , replaceAllTextRequest
876+ , ratrContainsText
877+ , ratrReplaceText
878+
879+ -- ** TableRange
880+ , TableRange
881+ , tableRange
882+ , trColumnSpan
883+ , trLocation
884+ , trRowSpan
885+
886+ -- ** Request'
887+ , Request'
888+ , request'
889+ , reqReplaceAllShapesWithImage
890+ , reqDeleteObject
891+ , reqUpdateSlidesPosition
892+ , reqUpdateShapeProperties
893+ , reqCreateParagraphBullets
894+ , reqCreateLine
895+ , reqInsertText
896+ , reqDeleteTableRow
897+ , reqUpdateTableCellProperties
898+ , reqReplaceAllText
899+ , reqCreateShape
900+ , reqUpdatePageProperties
901+ , reqUpdateLineProperties
902+ , reqDeleteTableColumn
903+ , reqDeleteText
904+ , reqCreateSheetsChart
905+ , reqInsertTableColumns
906+ , reqUpdateImageProperties
907+ , reqDuplicateObject
908+ , reqCreateTable
909+ , reqCreateVideo
910+ , reqRefreshSheetsChart
911+ , reqUpdatePageElementTransform
912+ , reqInsertTableRows
913+ , reqCreateImage
914+ , reqCreateSlide
915+ , reqUpdateTextStyle
916+ , reqUpdateVideoProperties
917+
918+ -- ** SubstringMatchCriteria
919+ , SubstringMatchCriteria
920+ , substringMatchCriteria
921+ , smcMatchCase
922+ , smcText
923+ ) where
924+
925+import Network.Google.Prelude
926+import Network.Google.Resource.Slides.Presentations.BatchUpdate
927+import Network.Google.Resource.Slides.Presentations.Create
928+import Network.Google.Resource.Slides.Presentations.Get
929+import Network.Google.Resource.Slides.Presentations.Pages.Get
930+import Network.Google.Slides.Types
931+
932+{- $resources
933+TODO
934+-}
935+
936+-- | Represents the entirety of the methods and resources available for the Google Slides API service.
937+type SlidesAPI =
938+ PresentationsPagesGetResource :<|>
939+ PresentationsGetResource
940+ :<|> PresentationsCreateResource
941+ :<|> PresentationsBatchUpdateResource
gogol-slides/gen/Network/Google/Slides/Types.hsnew file+936
@@ -0,0 +1,936 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE NoImplicitPrelude #-}
5+{-# LANGUAGE OverloadedStrings #-}
6+
7+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
8+
9+-- |
10+-- Module : Network.Google.Slides.Types
11+-- Copyright : (c) 2015-2016 Brendan Hay
12+-- License : Mozilla Public License, v. 2.0.
13+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
14+-- Stability : auto-generated
15+-- Portability : non-portable (GHC extensions)
16+--
17+module Network.Google.Slides.Types
18+ (
19+ -- * Service Configuration
20+ slidesService
21+
22+ -- * OAuth Scopes
23+ , spreadsheetsReadOnlyScope
24+ , presentationsScope
25+ , driveReadOnlyScope
26+ , driveScope
27+ , spreadsheetsScope
28+ , presentationsReadOnlyScope
29+
30+ -- * ParagraphMarker
31+ , ParagraphMarker
32+ , paragraphMarker
33+ , pmStyle
34+ , pmBullet
35+
36+ -- * DeleteTableRowRequest
37+ , DeleteTableRowRequest
38+ , deleteTableRowRequest
39+ , dtrrCellLocation
40+ , dtrrTableObjectId
41+
42+ -- * ParagraphStyleDirection
43+ , ParagraphStyleDirection (..)
44+
45+ -- * PageElementProperties
46+ , PageElementProperties
47+ , pageElementProperties
48+ , pepTransform
49+ , pepSize
50+ , pepPageObjectId
51+
52+ -- * TextStyleBaselineOffSet
53+ , TextStyleBaselineOffSet (..)
54+
55+ -- * ReplaceAllShapesWithImageResponse
56+ , ReplaceAllShapesWithImageResponse
57+ , replaceAllShapesWithImageResponse
58+ , raswirOccurrencesChanged
59+
60+ -- * RangeType
61+ , RangeType (..)
62+
63+ -- * OutlineFill
64+ , OutlineFill
65+ , outlineFill
66+ , ofSolidFill
67+
68+ -- * Image
69+ , Image
70+ , image
71+ , iImageProperties
72+ , iContentURL
73+
74+ -- * UpdateLinePropertiesRequest
75+ , UpdateLinePropertiesRequest
76+ , updateLinePropertiesRequest
77+ , ulprLineProperties
78+ , ulprObjectId
79+ , ulprFields
80+
81+ -- * CropProperties
82+ , CropProperties
83+ , cropProperties
84+ , cpBottomOffSet
85+ , cpTopOffSet
86+ , cpAngle
87+ , cpRightOffSet
88+ , cpLeftOffSet
89+
90+ -- * LineProperties
91+ , LineProperties
92+ , lineProperties
93+ , lpWeight
94+ , lpLink
95+ , lpDashStyle
96+ , lpStartArrow
97+ , lpLineFill
98+ , lpEndArrow
99+
100+ -- * Group
101+ , Group
102+ , group'
103+ , gChildren
104+
105+ -- * BatchUpdatePresentationRequest
106+ , BatchUpdatePresentationRequest
107+ , batchUpdatePresentationRequest
108+ , buprRequests
109+
110+ -- * CreateShapeRequest
111+ , CreateShapeRequest
112+ , createShapeRequest
113+ , csrShapeType
114+ , csrObjectId
115+ , csrElementProperties
116+
117+ -- * PageBackgRoundFillPropertyState
118+ , PageBackgRoundFillPropertyState (..)
119+
120+ -- * AutoText
121+ , AutoText
122+ , autoText
123+ , atStyle
124+ , atContent
125+ , atType
126+
127+ -- * List
128+ , List
129+ , list
130+ , lListId
131+ , lNestingLevel
132+
133+ -- * RgbColor
134+ , RgbColor
135+ , rgbColor
136+ , rcRed
137+ , rcGreen
138+ , rcBlue
139+
140+ -- * UpdatePagePropertiesRequest
141+ , UpdatePagePropertiesRequest
142+ , updatePagePropertiesRequest
143+ , upprObjectId
144+ , upprPageProperties
145+ , upprFields
146+
147+ -- * CreateSheetsChartRequest
148+ , CreateSheetsChartRequest
149+ , createSheetsChartRequest
150+ , cscrObjectId
151+ , cscrSpreadsheetId
152+ , cscrLinkingMode
153+ , cscrElementProperties
154+ , cscrChartId
155+
156+ -- * CreateParagraphBulletsRequestBulletPreset
157+ , CreateParagraphBulletsRequestBulletPreset (..)
158+
159+ -- * CreateShapeRequestShapeType
160+ , CreateShapeRequestShapeType (..)
161+
162+ -- * LayoutReferencePredefinedLayout
163+ , LayoutReferencePredefinedLayout (..)
164+
165+ -- * DeleteTextRequest
166+ , DeleteTextRequest
167+ , deleteTextRequest
168+ , dtrTextRange
169+ , dtrObjectId
170+ , dtrCellLocation
171+
172+ -- * InsertTableColumnsRequest
173+ , InsertTableColumnsRequest
174+ , insertTableColumnsRequest
175+ , itcrInsertRight
176+ , itcrNumber
177+ , itcrCellLocation
178+ , itcrTableObjectId
179+
180+ -- * TextContentLists
181+ , TextContentLists
182+ , textContentLists
183+ , tclAddtional
184+
185+ -- * Size
186+ , Size
187+ , size
188+ , sHeight
189+ , sWidth
190+
191+ -- * StretchedPictureFill
192+ , StretchedPictureFill
193+ , stretchedPictureFill
194+ , spfSize
195+ , spfContentURL
196+
197+ -- * CreateLineRequestLineCategory
198+ , CreateLineRequestLineCategory (..)
199+
200+ -- * SheetsChart
201+ , SheetsChart
202+ , sheetsChart
203+ , scSpreadsheetId
204+ , scContentURL
205+ , scSheetsChartProperties
206+ , scChartId
207+
208+ -- * CreateShapeResponse
209+ , CreateShapeResponse
210+ , createShapeResponse
211+ , cObjectId
212+
213+ -- * DeleteTableColumnRequest
214+ , DeleteTableColumnRequest
215+ , deleteTableColumnRequest
216+ , dtcrCellLocation
217+ , dtcrTableObjectId
218+
219+ -- * ShapeShapeType
220+ , ShapeShapeType (..)
221+
222+ -- * OutlinePropertyState
223+ , OutlinePropertyState (..)
224+
225+ -- * Link
226+ , Link
227+ , link
228+ , lURL
229+ , lPageObjectId
230+ , lRelativeLink
231+ , lSlideIndex
232+
233+ -- * Dimension
234+ , Dimension
235+ , dimension
236+ , dMagnitude
237+ , dUnit
238+
239+ -- * BatchUpdatePresentationResponse
240+ , BatchUpdatePresentationResponse
241+ , batchUpdatePresentationResponse
242+ , buprPresentationId
243+ , buprReplies
244+
245+ -- * DuplicateObjectRequestObjectIds
246+ , DuplicateObjectRequestObjectIds
247+ , duplicateObjectRequestObjectIds
248+ , doroiAddtional
249+
250+ -- * CreateTableRequest
251+ , CreateTableRequest
252+ , createTableRequest
253+ , ctrObjectId
254+ , ctrRows
255+ , ctrElementProperties
256+ , ctrColumns
257+
258+ -- * Response
259+ , Response
260+ , response
261+ , rReplaceAllShapesWithImage
262+ , rCreateLine
263+ , rReplaceAllText
264+ , rCreateShape
265+ , rCreateSheetsChart
266+ , rDuplicateObject
267+ , rCreateTable
268+ , rCreateVideo
269+ , rCreateImage
270+ , rCreateSlide
271+
272+ -- * OptionalColor
273+ , OptionalColor
274+ , optionalColor
275+ , ocOpaqueColor
276+
277+ -- * DuplicateObjectRequest
278+ , DuplicateObjectRequest
279+ , duplicateObjectRequest
280+ , dorObjectId
281+ , dorObjectIds
282+
283+ -- * PlaceholderType
284+ , PlaceholderType (..)
285+
286+ -- * Page
287+ , Page
288+ , page
289+ , pObjectId
290+ , pPageElements
291+ , pSlideProperties
292+ , pPageProperties
293+ , pLayoutProperties
294+ , pPageType
295+
296+ -- * ReplaceAllTextResponse
297+ , ReplaceAllTextResponse
298+ , replaceAllTextResponse
299+ , ratrOccurrencesChanged
300+
301+ -- * ReplaceAllShapesWithImageRequestReplaceMethod
302+ , ReplaceAllShapesWithImageRequestReplaceMethod (..)
303+
304+ -- * Bullet
305+ , Bullet
306+ , bullet
307+ , bGlyph
308+ , bListId
309+ , bNestingLevel
310+ , bBulletStyle
311+
312+ -- * CreateSheetsChartRequestLinkingMode
313+ , CreateSheetsChartRequestLinkingMode (..)
314+
315+ -- * UpdateImagePropertiesRequest
316+ , UpdateImagePropertiesRequest
317+ , updateImagePropertiesRequest
318+ , uiprObjectId
319+ , uiprImageProperties
320+ , uiprFields
321+
322+ -- * SlideProperties
323+ , SlideProperties
324+ , slideProperties
325+ , spLayoutObjectId
326+ , spMasterObjectId
327+
328+ -- * Presentation
329+ , Presentation
330+ , presentation
331+ , pSlides
332+ , pMasters
333+ , pLocale
334+ , pPresentationId
335+ , pTitle
336+ , pPageSize
337+ , pLayouts
338+
339+ -- * ThemeColorPair
340+ , ThemeColorPair
341+ , themeColorPair
342+ , tcpColor
343+ , tcpType
344+
345+ -- * ShapeBackgRoundFillPropertyState
346+ , ShapeBackgRoundFillPropertyState (..)
347+
348+ -- * OpaqueColorThemeColor
349+ , OpaqueColorThemeColor (..)
350+
351+ -- * Shadow
352+ , Shadow
353+ , shadow
354+ , sTransform
355+ , sColor
356+ , sBlurRadius
357+ , sRotateWithShape
358+ , sAlpha
359+ , sAlignment
360+ , sPropertyState
361+ , sType
362+
363+ -- * LinePropertiesDashStyle
364+ , LinePropertiesDashStyle (..)
365+
366+ -- * ImageProperties
367+ , ImageProperties
368+ , imageProperties
369+ , ipCropProperties
370+ , ipLink
371+ , ipTransparency
372+ , ipShadow
373+ , ipContrast
374+ , ipRecolor
375+ , ipOutline
376+ , ipBrightness
377+
378+ -- * ParagraphStyleAlignment
379+ , ParagraphStyleAlignment (..)
380+
381+ -- * Line
382+ , Line
383+ , line
384+ , lLineProperties
385+ , lLineType
386+
387+ -- * CreateVideoResponse
388+ , CreateVideoResponse
389+ , createVideoResponse
390+ , cvrObjectId
391+
392+ -- * LayoutReference
393+ , LayoutReference
394+ , layoutReference
395+ , lrPredefinedLayout
396+ , lrLayoutId
397+
398+ -- * LineFill
399+ , LineFill
400+ , lineFill
401+ , lfSolidFill
402+
403+ -- * UpdatePageElementTransformRequest
404+ , UpdatePageElementTransformRequest
405+ , updatePageElementTransformRequest
406+ , upetrTransform
407+ , upetrObjectId
408+ , upetrApplyMode
409+
410+ -- * ShadowAlignment
411+ , ShadowAlignment (..)
412+
413+ -- * InsertTableRowsRequest
414+ , InsertTableRowsRequest
415+ , insertTableRowsRequest
416+ , itrrInsertBelow
417+ , itrrNumber
418+ , itrrCellLocation
419+ , itrrTableObjectId
420+
421+ -- * LinePropertiesEndArrow
422+ , LinePropertiesEndArrow (..)
423+
424+ -- * Video
425+ , Video
426+ , video
427+ , vURL
428+ , vSource
429+ , vId
430+ , vVideoProperties
431+
432+ -- * TableCellBackgRoundFillPropertyState
433+ , TableCellBackgRoundFillPropertyState (..)
434+
435+ -- * CreateVideoRequestSource
436+ , CreateVideoRequestSource (..)
437+
438+ -- * TableCellProperties
439+ , TableCellProperties
440+ , tableCellProperties
441+ , tcpTableCellBackgRoundFill
442+
443+ -- * CreateLineResponse
444+ , CreateLineResponse
445+ , createLineResponse
446+ , clrObjectId
447+
448+ -- * WordArt
449+ , WordArt
450+ , wordArt
451+ , waRenderedText
452+
453+ -- * TableCellBackgRoundFill
454+ , TableCellBackgRoundFill
455+ , tableCellBackgRoundFill
456+ , tcbrfSolidFill
457+ , tcbrfPropertyState
458+
459+ -- * LinkRelativeLink
460+ , LinkRelativeLink (..)
461+
462+ -- * VideoSource
463+ , VideoSource (..)
464+
465+ -- * TextRun
466+ , TextRun
467+ , textRun
468+ , trStyle
469+ , trContent
470+
471+ -- * RefreshSheetsChartRequest
472+ , RefreshSheetsChartRequest
473+ , refreshSheetsChartRequest
474+ , rscrObjectId
475+
476+ -- * TableRow
477+ , TableRow
478+ , tableRow
479+ , trTableCells
480+ , trRowHeight
481+
482+ -- * CreateVideoRequest
483+ , CreateVideoRequest
484+ , createVideoRequest
485+ , creObjectId
486+ , creElementProperties
487+ , creSource
488+ , creId
489+
490+ -- * TextContent
491+ , TextContent
492+ , textContent
493+ , tcTextElements
494+ , tcLists
495+
496+ -- * Shape
497+ , Shape
498+ , shape
499+ , sShapeType
500+ , sText
501+ , sPlaceholder
502+ , sShapeProperties
503+
504+ -- * AffineTransform
505+ , AffineTransform
506+ , affineTransform
507+ , atTranslateX
508+ , atShearY
509+ , atTranslateY
510+ , atShearX
511+ , atScaleX
512+ , atUnit
513+ , atScaleY
514+
515+ -- * CreateSheetsChartResponse
516+ , CreateSheetsChartResponse
517+ , createSheetsChartResponse
518+ , cscrsObjectId
519+
520+ -- * Range
521+ , Range
522+ , range
523+ , rEndIndex
524+ , rType
525+ , rStartIndex
526+
527+ -- * CreateImageRequest
528+ , CreateImageRequest
529+ , createImageRequest
530+ , cirObjectId
531+ , cirURL
532+ , cirElementProperties
533+
534+ -- * Xgafv
535+ , Xgafv (..)
536+
537+ -- * AutoTextType
538+ , AutoTextType (..)
539+
540+ -- * TextStyle
541+ , TextStyle
542+ , textStyle
543+ , tsFontFamily
544+ , tsLink
545+ , tsBackgRoundColor
546+ , tsBaselineOffSet
547+ , tsForegRoundColor
548+ , tsFontSize
549+ , tsSmallCaps
550+ , tsUnderline
551+ , tsItalic
552+ , tsBold
553+ , tsStrikethrough
554+
555+ -- * SolidFill
556+ , SolidFill
557+ , solidFill
558+ , sfColor
559+ , sfAlpha
560+
561+ -- * UpdateTextStyleRequest
562+ , UpdateTextStyleRequest
563+ , updateTextStyleRequest
564+ , utsrStyle
565+ , utsrTextRange
566+ , utsrObjectId
567+ , utsrCellLocation
568+ , utsrFields
569+
570+ -- * Recolor
571+ , Recolor
572+ , recolor
573+ , rRecolorStops
574+
575+ -- * PageProperties
576+ , PageProperties
577+ , pageProperties
578+ , ppPageBackgRoundFill
579+ , ppColorScheme
580+
581+ -- * PageBackgRoundFill
582+ , PageBackgRoundFill
583+ , pageBackgRoundFill
584+ , pbrfStretchedPictureFill
585+ , pbrfSolidFill
586+ , pbrfPropertyState
587+
588+ -- * NestingLevel
589+ , NestingLevel
590+ , nestingLevel
591+ , nlBulletStyle
592+
593+ -- * OpaqueColor
594+ , OpaqueColor
595+ , opaqueColor
596+ , ocThemeColor
597+ , ocRgbColor
598+
599+ -- * CreateSlideRequest
600+ , CreateSlideRequest
601+ , createSlideRequest
602+ , csrsObjectId
603+ , csrsSlideLayoutReference
604+ , csrsInsertionIndex
605+
606+ -- * TableCellLocation
607+ , TableCellLocation
608+ , tableCellLocation
609+ , tclColumnIndex
610+ , tclRowIndex
611+
612+ -- * UpdateSlidesPositionRequest
613+ , UpdateSlidesPositionRequest
614+ , updateSlidesPositionRequest
615+ , usprSlideObjectIds
616+ , usprInsertionIndex
617+
618+ -- * ReplaceAllShapesWithImageRequest
619+ , ReplaceAllShapesWithImageRequest
620+ , replaceAllShapesWithImageRequest
621+ , raswirContainsText
622+ , raswirImageURL
623+ , raswirReplaceMethod
624+
625+ -- * PageElement
626+ , PageElement
627+ , pageElement
628+ , peTransform
629+ , peImage
630+ , peSize
631+ , peSheetsChart
632+ , peObjectId
633+ , peLine
634+ , peElementGroup
635+ , peVideo
636+ , peWordArt
637+ , peShape
638+ , peTitle
639+ , peTable
640+ , peDescription
641+
642+ -- * ColorStop
643+ , ColorStop
644+ , colorStop
645+ , csColor
646+ , csAlpha
647+ , csPosition
648+
649+ -- * DeleteObjectRequest
650+ , DeleteObjectRequest
651+ , deleteObjectRequest
652+ , dObjectId
653+
654+ -- * CreateSlideResponse
655+ , CreateSlideResponse
656+ , createSlideResponse
657+ , ccObjectId
658+
659+ -- * ColorScheme
660+ , ColorScheme
661+ , colorScheme
662+ , csColors
663+
664+ -- * TableCell
665+ , TableCell
666+ , tableCell
667+ , tcColumnSpan
668+ , tcLocation
669+ , tcText
670+ , tcRowSpan
671+ , tcTableCellProperties
672+
673+ -- * ListNestingLevel
674+ , ListNestingLevel
675+ , listNestingLevel
676+ , lnlAddtional
677+
678+ -- * Outline
679+ , Outline
680+ , outline
681+ , oOutlineFill
682+ , oWeight
683+ , oDashStyle
684+ , oPropertyState
685+
686+ -- * UpdateVideoPropertiesRequest
687+ , UpdateVideoPropertiesRequest
688+ , updateVideoPropertiesRequest
689+ , uvprObjectId
690+ , uvprVideoProperties
691+ , uvprFields
692+
693+ -- * VideoProperties
694+ , VideoProperties
695+ , videoProperties
696+ , vpOutline
697+
698+ -- * LineLineType
699+ , LineLineType (..)
700+
701+ -- * PagePageType
702+ , PagePageType (..)
703+
704+ -- * CreateImageResponse
705+ , CreateImageResponse
706+ , createImageResponse
707+ , ciriObjectId
708+
709+ -- * TextElement
710+ , TextElement
711+ , textElement
712+ , teParagraphMarker
713+ , teAutoText
714+ , teEndIndex
715+ , teTextRun
716+ , teStartIndex
717+
718+ -- * ParagraphStyleSpacingMode
719+ , ParagraphStyleSpacingMode (..)
720+
721+ -- * InsertTextRequest
722+ , InsertTextRequest
723+ , insertTextRequest
724+ , itrText
725+ , itrObjectId
726+ , itrInsertionIndex
727+ , itrCellLocation
728+
729+ -- * CreateLineRequest
730+ , CreateLineRequest
731+ , createLineRequest
732+ , clrlObjectId
733+ , clrlLineCategory
734+ , clrlElementProperties
735+
736+ -- * Placeholder
737+ , Placeholder
738+ , placeholder
739+ , pParentObjectId
740+ , pType
741+ , pIndex
742+
743+ -- * LayoutProperties
744+ , LayoutProperties
745+ , layoutProperties
746+ , lpMasterObjectId
747+ , lpName
748+ , lpDisplayName
749+
750+ -- * UpdateShapePropertiesRequest
751+ , UpdateShapePropertiesRequest
752+ , updateShapePropertiesRequest
753+ , usprObjectId
754+ , usprShapeProperties
755+ , usprFields
756+
757+ -- * Table
758+ , Table
759+ , table
760+ , tTableRows
761+ , tRows
762+ , tColumns
763+ , tTableColumns
764+
765+ -- * ThemeColorPairType
766+ , ThemeColorPairType (..)
767+
768+ -- * LinePropertiesStartArrow
769+ , LinePropertiesStartArrow (..)
770+
771+ -- * ShapeProperties
772+ , ShapeProperties
773+ , shapeProperties
774+ , spLink
775+ , spShadow
776+ , spOutline
777+ , spShapeBackgRoundFill
778+
779+ -- * ShadowPropertyState
780+ , ShadowPropertyState (..)
781+
782+ -- * ShadowType
783+ , ShadowType (..)
784+
785+ -- * ShapeBackgRoundFill
786+ , ShapeBackgRoundFill
787+ , shapeBackgRoundFill
788+ , sbrfSolidFill
789+ , sbrfPropertyState
790+
791+ -- * UpdatePageElementTransformRequestApplyMode
792+ , UpdatePageElementTransformRequestApplyMode (..)
793+
794+ -- * CreateParagraphBulletsRequest
795+ , CreateParagraphBulletsRequest
796+ , createParagraphBulletsRequest
797+ , cpbrTextRange
798+ , cpbrObjectId
799+ , cpbrBulletPreset
800+ , cpbrCellLocation
801+
802+ -- * DimensionUnit
803+ , DimensionUnit (..)
804+
805+ -- * OutlineDashStyle
806+ , OutlineDashStyle (..)
807+
808+ -- * AffineTransformUnit
809+ , AffineTransformUnit (..)
810+
811+ -- * UpdateTableCellPropertiesRequest
812+ , UpdateTableCellPropertiesRequest
813+ , updateTableCellPropertiesRequest
814+ , utcprObjectId
815+ , utcprTableCellProperties
816+ , utcprTableRange
817+ , utcprFields
818+
819+ -- * SheetsChartProperties
820+ , SheetsChartProperties
821+ , sheetsChartProperties
822+ , scpChartImageProperties
823+
824+ -- * ParagraphStyle
825+ , ParagraphStyle
826+ , paragraphStyle
827+ , psLineSpacing
828+ , psDirection
829+ , psIndentFirstLine
830+ , psIndentEnd
831+ , psIndentStart
832+ , psAlignment
833+ , psSpaceBelow
834+ , psSpacingMode
835+ , psSpaceAbove
836+
837+ -- * CreateTableResponse
838+ , CreateTableResponse
839+ , createTableResponse
840+ , ctrtObjectId
841+
842+ -- * TableColumnProperties
843+ , TableColumnProperties
844+ , tableColumnProperties
845+ , tcpColumnWidth
846+
847+ -- * DuplicateObjectResponse
848+ , DuplicateObjectResponse
849+ , duplicateObjectResponse
850+ , dupObjectId
851+
852+ -- * ReplaceAllTextRequest
853+ , ReplaceAllTextRequest
854+ , replaceAllTextRequest
855+ , ratrContainsText
856+ , ratrReplaceText
857+
858+ -- * TableRange
859+ , TableRange
860+ , tableRange
861+ , trColumnSpan
862+ , trLocation
863+ , trRowSpan
864+
865+ -- * Request'
866+ , Request'
867+ , request'
868+ , reqReplaceAllShapesWithImage
869+ , reqDeleteObject
870+ , reqUpdateSlidesPosition
871+ , reqUpdateShapeProperties
872+ , reqCreateParagraphBullets
873+ , reqCreateLine
874+ , reqInsertText
875+ , reqDeleteTableRow
876+ , reqUpdateTableCellProperties
877+ , reqReplaceAllText
878+ , reqCreateShape
879+ , reqUpdatePageProperties
880+ , reqUpdateLineProperties
881+ , reqDeleteTableColumn
882+ , reqDeleteText
883+ , reqCreateSheetsChart
884+ , reqInsertTableColumns
885+ , reqUpdateImageProperties
886+ , reqDuplicateObject
887+ , reqCreateTable
888+ , reqCreateVideo
889+ , reqRefreshSheetsChart
890+ , reqUpdatePageElementTransform
891+ , reqInsertTableRows
892+ , reqCreateImage
893+ , reqCreateSlide
894+ , reqUpdateTextStyle
895+ , reqUpdateVideoProperties
896+
897+ -- * SubstringMatchCriteria
898+ , SubstringMatchCriteria
899+ , substringMatchCriteria
900+ , smcMatchCase
901+ , smcText
902+ ) where
903+
904+import Network.Google.Prelude
905+import Network.Google.Slides.Types.Product
906+import Network.Google.Slides.Types.Sum
907+
908+-- | Default request referring to version 'v1' of the Google Slides API. This contains the host and root path used as a starting point for constructing service requests.
909+slidesService :: ServiceConfig
910+slidesService
911+ = defaultService (ServiceId "slides:v1")
912+ "slides.googleapis.com"
913+
914+-- | View your Google Spreadsheets
915+spreadsheetsReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/spreadsheets.readonly"]
916+spreadsheetsReadOnlyScope = Proxy;
917+
918+-- | View and manage your Google Slides presentations
919+presentationsScope :: Proxy '["https://www.googleapis.com/auth/presentations"]
920+presentationsScope = Proxy;
921+
922+-- | View the files in your Google Drive
923+driveReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/drive.readonly"]
924+driveReadOnlyScope = Proxy;
925+
926+-- | View and manage the files in your Google Drive
927+driveScope :: Proxy '["https://www.googleapis.com/auth/drive"]
928+driveScope = Proxy;
929+
930+-- | View and manage your spreadsheets in Google Drive
931+spreadsheetsScope :: Proxy '["https://www.googleapis.com/auth/spreadsheets"]
932+spreadsheetsScope = Proxy;
933+
934+-- | View your Google Slides presentations
935+presentationsReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/presentations.readonly"]
936+presentationsReadOnlyScope = Proxy;
gogol-slides/gen/Network/Google/Slides/Types/Product.hsnew file+7039
@@ -0,0 +1,7039 @@
1+{-# LANGUAGE DeriveDataTypeable #-}
2+{-# LANGUAGE DeriveGeneric #-}
3+{-# LANGUAGE NoImplicitPrelude #-}
4+{-# LANGUAGE OverloadedStrings #-}
5+{-# LANGUAGE RecordWildCards #-}
6+
7+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
8+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
9+
10+-- |
11+-- Module : Network.Google.Slides.Types.Product
12+-- Copyright : (c) 2015-2016 Brendan Hay
13+-- License : Mozilla Public License, v. 2.0.
14+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
15+-- Stability : auto-generated
16+-- Portability : non-portable (GHC extensions)
17+--
18+module Network.Google.Slides.Types.Product where
19+
20+import Network.Google.Prelude
21+import Network.Google.Slides.Types.Sum
22+
23+-- | A TextElement kind that represents the beginning of a new paragraph.
24+--
25+-- /See:/ 'paragraphMarker' smart constructor.
26+data ParagraphMarker = ParagraphMarker'
27+ { _pmStyle :: !(Maybe ParagraphStyle)
28+ , _pmBullet :: !(Maybe Bullet)
29+ } deriving (Eq,Show,Data,Typeable,Generic)
30+
31+-- | Creates a value of 'ParagraphMarker' with the minimum fields required to make a request.
32+--
33+-- Use one of the following lenses to modify other fields as desired:
34+--
35+-- * 'pmStyle'
36+--
37+-- * 'pmBullet'
38+paragraphMarker
39+ :: ParagraphMarker
40+paragraphMarker =
41+ ParagraphMarker'
42+ { _pmStyle = Nothing
43+ , _pmBullet = Nothing
44+ }
45+
46+-- | The paragraph\'s style
47+pmStyle :: Lens' ParagraphMarker (Maybe ParagraphStyle)
48+pmStyle = lens _pmStyle (\ s a -> s{_pmStyle = a})
49+
50+-- | The bullet for this paragraph. If not present, the paragraph does not
51+-- belong to a list.
52+pmBullet :: Lens' ParagraphMarker (Maybe Bullet)
53+pmBullet = lens _pmBullet (\ s a -> s{_pmBullet = a})
54+
55+instance FromJSON ParagraphMarker where
56+ parseJSON
57+ = withObject "ParagraphMarker"
58+ (\ o ->
59+ ParagraphMarker' <$>
60+ (o .:? "style") <*> (o .:? "bullet"))
61+
62+instance ToJSON ParagraphMarker where
63+ toJSON ParagraphMarker'{..}
64+ = object
65+ (catMaybes
66+ [("style" .=) <$> _pmStyle,
67+ ("bullet" .=) <$> _pmBullet])
68+
69+-- | Deletes a row from a table.
70+--
71+-- /See:/ 'deleteTableRowRequest' smart constructor.
72+data DeleteTableRowRequest = DeleteTableRowRequest'
73+ { _dtrrCellLocation :: !(Maybe TableCellLocation)
74+ , _dtrrTableObjectId :: !(Maybe Text)
75+ } deriving (Eq,Show,Data,Typeable,Generic)
76+
77+-- | Creates a value of 'DeleteTableRowRequest' with the minimum fields required to make a request.
78+--
79+-- Use one of the following lenses to modify other fields as desired:
80+--
81+-- * 'dtrrCellLocation'
82+--
83+-- * 'dtrrTableObjectId'
84+deleteTableRowRequest
85+ :: DeleteTableRowRequest
86+deleteTableRowRequest =
87+ DeleteTableRowRequest'
88+ { _dtrrCellLocation = Nothing
89+ , _dtrrTableObjectId = Nothing
90+ }
91+
92+-- | The reference table cell location from which a row will be deleted. The
93+-- row this cell spans will be deleted. If this is a merged cell, multiple
94+-- rows will be deleted. If no rows remain in the table after this
95+-- deletion, the whole table is deleted.
96+dtrrCellLocation :: Lens' DeleteTableRowRequest (Maybe TableCellLocation)
97+dtrrCellLocation
98+ = lens _dtrrCellLocation
99+ (\ s a -> s{_dtrrCellLocation = a})
100+
101+-- | The table to delete rows from.
102+dtrrTableObjectId :: Lens' DeleteTableRowRequest (Maybe Text)
103+dtrrTableObjectId
104+ = lens _dtrrTableObjectId
105+ (\ s a -> s{_dtrrTableObjectId = a})
106+
107+instance FromJSON DeleteTableRowRequest where
108+ parseJSON
109+ = withObject "DeleteTableRowRequest"
110+ (\ o ->
111+ DeleteTableRowRequest' <$>
112+ (o .:? "cellLocation") <*> (o .:? "tableObjectId"))
113+
114+instance ToJSON DeleteTableRowRequest where
115+ toJSON DeleteTableRowRequest'{..}
116+ = object
117+ (catMaybes
118+ [("cellLocation" .=) <$> _dtrrCellLocation,
119+ ("tableObjectId" .=) <$> _dtrrTableObjectId])
120+
121+-- | Common properties for a page element. Note: When you initially create a
122+-- PageElement, the API may modify the values of both \`size\` and
123+-- \`transform\`, but the visual size will be unchanged.
124+--
125+-- /See:/ 'pageElementProperties' smart constructor.
126+data PageElementProperties = PageElementProperties'
127+ { _pepTransform :: !(Maybe AffineTransform)
128+ , _pepSize :: !(Maybe Size)
129+ , _pepPageObjectId :: !(Maybe Text)
130+ } deriving (Eq,Show,Data,Typeable,Generic)
131+
132+-- | Creates a value of 'PageElementProperties' with the minimum fields required to make a request.
133+--
134+-- Use one of the following lenses to modify other fields as desired:
135+--
136+-- * 'pepTransform'
137+--
138+-- * 'pepSize'
139+--
140+-- * 'pepPageObjectId'
141+pageElementProperties
142+ :: PageElementProperties
143+pageElementProperties =
144+ PageElementProperties'
145+ { _pepTransform = Nothing
146+ , _pepSize = Nothing
147+ , _pepPageObjectId = Nothing
148+ }
149+
150+-- | The transform for the element.
151+pepTransform :: Lens' PageElementProperties (Maybe AffineTransform)
152+pepTransform
153+ = lens _pepTransform (\ s a -> s{_pepTransform = a})
154+
155+-- | The size of the element.
156+pepSize :: Lens' PageElementProperties (Maybe Size)
157+pepSize = lens _pepSize (\ s a -> s{_pepSize = a})
158+
159+-- | The object ID of the page where the element is located.
160+pepPageObjectId :: Lens' PageElementProperties (Maybe Text)
161+pepPageObjectId
162+ = lens _pepPageObjectId
163+ (\ s a -> s{_pepPageObjectId = a})
164+
165+instance FromJSON PageElementProperties where
166+ parseJSON
167+ = withObject "PageElementProperties"
168+ (\ o ->
169+ PageElementProperties' <$>
170+ (o .:? "transform") <*> (o .:? "size") <*>
171+ (o .:? "pageObjectId"))
172+
173+instance ToJSON PageElementProperties where
174+ toJSON PageElementProperties'{..}
175+ = object
176+ (catMaybes
177+ [("transform" .=) <$> _pepTransform,
178+ ("size" .=) <$> _pepSize,
179+ ("pageObjectId" .=) <$> _pepPageObjectId])
180+
181+-- | The result of replacing shapes with an image.
182+--
183+-- /See:/ 'replaceAllShapesWithImageResponse' smart constructor.
184+newtype ReplaceAllShapesWithImageResponse = ReplaceAllShapesWithImageResponse'
185+ { _raswirOccurrencesChanged :: Maybe (Textual Int32)
186+ } deriving (Eq,Show,Data,Typeable,Generic)
187+
188+-- | Creates a value of 'ReplaceAllShapesWithImageResponse' with the minimum fields required to make a request.
189+--
190+-- Use one of the following lenses to modify other fields as desired:
191+--
192+-- * 'raswirOccurrencesChanged'
193+replaceAllShapesWithImageResponse
194+ :: ReplaceAllShapesWithImageResponse
195+replaceAllShapesWithImageResponse =
196+ ReplaceAllShapesWithImageResponse'
197+ { _raswirOccurrencesChanged = Nothing
198+ }
199+
200+-- | The number of shapes replaced with images.
201+raswirOccurrencesChanged :: Lens' ReplaceAllShapesWithImageResponse (Maybe Int32)
202+raswirOccurrencesChanged
203+ = lens _raswirOccurrencesChanged
204+ (\ s a -> s{_raswirOccurrencesChanged = a})
205+ . mapping _Coerce
206+
207+instance FromJSON ReplaceAllShapesWithImageResponse
208+ where
209+ parseJSON
210+ = withObject "ReplaceAllShapesWithImageResponse"
211+ (\ o ->
212+ ReplaceAllShapesWithImageResponse' <$>
213+ (o .:? "occurrencesChanged"))
214+
215+instance ToJSON ReplaceAllShapesWithImageResponse
216+ where
217+ toJSON ReplaceAllShapesWithImageResponse'{..}
218+ = object
219+ (catMaybes
220+ [("occurrencesChanged" .=) <$>
221+ _raswirOccurrencesChanged])
222+
223+-- | The fill of the outline.
224+--
225+-- /See:/ 'outlineFill' smart constructor.
226+newtype OutlineFill = OutlineFill'
227+ { _ofSolidFill :: Maybe SolidFill
228+ } deriving (Eq,Show,Data,Typeable,Generic)
229+
230+-- | Creates a value of 'OutlineFill' with the minimum fields required to make a request.
231+--
232+-- Use one of the following lenses to modify other fields as desired:
233+--
234+-- * 'ofSolidFill'
235+outlineFill
236+ :: OutlineFill
237+outlineFill =
238+ OutlineFill'
239+ { _ofSolidFill = Nothing
240+ }
241+
242+-- | Solid color fill.
243+ofSolidFill :: Lens' OutlineFill (Maybe SolidFill)
244+ofSolidFill
245+ = lens _ofSolidFill (\ s a -> s{_ofSolidFill = a})
246+
247+instance FromJSON OutlineFill where
248+ parseJSON
249+ = withObject "OutlineFill"
250+ (\ o -> OutlineFill' <$> (o .:? "solidFill"))
251+
252+instance ToJSON OutlineFill where
253+ toJSON OutlineFill'{..}
254+ = object
255+ (catMaybes [("solidFill" .=) <$> _ofSolidFill])
256+
257+-- | A PageElement kind representing an image.
258+--
259+-- /See:/ 'image' smart constructor.
260+data Image = Image'
261+ { _iImageProperties :: !(Maybe ImageProperties)
262+ , _iContentURL :: !(Maybe Text)
263+ } deriving (Eq,Show,Data,Typeable,Generic)
264+
265+-- | Creates a value of 'Image' with the minimum fields required to make a request.
266+--
267+-- Use one of the following lenses to modify other fields as desired:
268+--
269+-- * 'iImageProperties'
270+--
271+-- * 'iContentURL'
272+image
273+ :: Image
274+image =
275+ Image'
276+ { _iImageProperties = Nothing
277+ , _iContentURL = Nothing
278+ }
279+
280+-- | The properties of the image.
281+iImageProperties :: Lens' Image (Maybe ImageProperties)
282+iImageProperties
283+ = lens _iImageProperties
284+ (\ s a -> s{_iImageProperties = a})
285+
286+-- | An URL to an image with a default lifetime of 30 minutes. This URL is
287+-- tagged with the account of the requester. Anyone with the URL
288+-- effectively accesses the image as the original requester. Access to the
289+-- image may be lost if the presentation\'s sharing settings change.
290+iContentURL :: Lens' Image (Maybe Text)
291+iContentURL
292+ = lens _iContentURL (\ s a -> s{_iContentURL = a})
293+
294+instance FromJSON Image where
295+ parseJSON
296+ = withObject "Image"
297+ (\ o ->
298+ Image' <$>
299+ (o .:? "imageProperties") <*> (o .:? "contentUrl"))
300+
301+instance ToJSON Image where
302+ toJSON Image'{..}
303+ = object
304+ (catMaybes
305+ [("imageProperties" .=) <$> _iImageProperties,
306+ ("contentUrl" .=) <$> _iContentURL])
307+
308+-- | Updates the properties of a Line.
309+--
310+-- /See:/ 'updateLinePropertiesRequest' smart constructor.
311+data UpdateLinePropertiesRequest = UpdateLinePropertiesRequest'
312+ { _ulprLineProperties :: !(Maybe LineProperties)
313+ , _ulprObjectId :: !(Maybe Text)
314+ , _ulprFields :: !(Maybe FieldMask)
315+ } deriving (Eq,Show,Data,Typeable,Generic)
316+
317+-- | Creates a value of 'UpdateLinePropertiesRequest' with the minimum fields required to make a request.
318+--
319+-- Use one of the following lenses to modify other fields as desired:
320+--
321+-- * 'ulprLineProperties'
322+--
323+-- * 'ulprObjectId'
324+--
325+-- * 'ulprFields'
326+updateLinePropertiesRequest
327+ :: UpdateLinePropertiesRequest
328+updateLinePropertiesRequest =
329+ UpdateLinePropertiesRequest'
330+ { _ulprLineProperties = Nothing
331+ , _ulprObjectId = Nothing
332+ , _ulprFields = Nothing
333+ }
334+
335+-- | The line properties to update.
336+ulprLineProperties :: Lens' UpdateLinePropertiesRequest (Maybe LineProperties)
337+ulprLineProperties
338+ = lens _ulprLineProperties
339+ (\ s a -> s{_ulprLineProperties = a})
340+
341+-- | The object ID of the line the update is applied to.
342+ulprObjectId :: Lens' UpdateLinePropertiesRequest (Maybe Text)
343+ulprObjectId
344+ = lens _ulprObjectId (\ s a -> s{_ulprObjectId = a})
345+
346+-- | The fields that should be updated. At least one field must be specified.
347+-- The root \`lineProperties\` is implied and should not be specified. A
348+-- single \`\"*\"\` can be used as short-hand for listing every field. For
349+-- example to update the line solid fill color, set \`fields\` to
350+-- \`\"lineFill.solidFill.color\"\`. To reset a property to its default
351+-- value, include its field name in the field mask but leave the field
352+-- itself unset.
353+ulprFields :: Lens' UpdateLinePropertiesRequest (Maybe FieldMask)
354+ulprFields
355+ = lens _ulprFields (\ s a -> s{_ulprFields = a})
356+
357+instance FromJSON UpdateLinePropertiesRequest where
358+ parseJSON
359+ = withObject "UpdateLinePropertiesRequest"
360+ (\ o ->
361+ UpdateLinePropertiesRequest' <$>
362+ (o .:? "lineProperties") <*> (o .:? "objectId") <*>
363+ (o .:? "fields"))
364+
365+instance ToJSON UpdateLinePropertiesRequest where
366+ toJSON UpdateLinePropertiesRequest'{..}
367+ = object
368+ (catMaybes
369+ [("lineProperties" .=) <$> _ulprLineProperties,
370+ ("objectId" .=) <$> _ulprObjectId,
371+ ("fields" .=) <$> _ulprFields])
372+
373+-- | The crop properties of an object enclosed in a container. For example,
374+-- an Image. The crop properties is represented by the offsets of four
375+-- edges which define a crop rectangle. The offsets are measured in
376+-- percentage from the corresponding edges of the object\'s original
377+-- bounding rectangle towards inside, relative to the object\'s original
378+-- dimensions. - If the offset is in the interval (0, 1), the corresponding
379+-- edge of crop rectangle is positioned inside of the object\'s original
380+-- bounding rectangle. - If the offset is negative or greater than 1, the
381+-- corresponding edge of crop rectangle is positioned outside of the
382+-- object\'s original bounding rectangle. - If the left edge of the crop
383+-- rectangle is on the right side of its right edge, the object will be
384+-- flipped horizontally. - If the top edge of the crop rectangle is below
385+-- its bottom edge, the object will be flipped vertically. - If all offsets
386+-- and rotation angle is 0, the object is not cropped. After cropping, the
387+-- content in the crop rectangle will be stretched to fit its container.
388+--
389+-- /See:/ 'cropProperties' smart constructor.
390+data CropProperties = CropProperties'
391+ { _cpBottomOffSet :: !(Maybe (Textual Double))
392+ , _cpTopOffSet :: !(Maybe (Textual Double))
393+ , _cpAngle :: !(Maybe (Textual Double))
394+ , _cpRightOffSet :: !(Maybe (Textual Double))
395+ , _cpLeftOffSet :: !(Maybe (Textual Double))
396+ } deriving (Eq,Show,Data,Typeable,Generic)
397+
398+-- | Creates a value of 'CropProperties' with the minimum fields required to make a request.
399+--
400+-- Use one of the following lenses to modify other fields as desired:
401+--
402+-- * 'cpBottomOffSet'
403+--
404+-- * 'cpTopOffSet'
405+--
406+-- * 'cpAngle'
407+--
408+-- * 'cpRightOffSet'
409+--
410+-- * 'cpLeftOffSet'
411+cropProperties
412+ :: CropProperties
413+cropProperties =
414+ CropProperties'
415+ { _cpBottomOffSet = Nothing
416+ , _cpTopOffSet = Nothing
417+ , _cpAngle = Nothing
418+ , _cpRightOffSet = Nothing
419+ , _cpLeftOffSet = Nothing
420+ }
421+
422+-- | The offset specifies the bottom edge of the crop rectangle that is
423+-- located above the original bounding rectangle bottom edge, relative to
424+-- the object\'s original height.
425+cpBottomOffSet :: Lens' CropProperties (Maybe Double)
426+cpBottomOffSet
427+ = lens _cpBottomOffSet
428+ (\ s a -> s{_cpBottomOffSet = a})
429+ . mapping _Coerce
430+
431+-- | The offset specifies the top edge of the crop rectangle that is located
432+-- below the original bounding rectangle top edge, relative to the
433+-- object\'s original height.
434+cpTopOffSet :: Lens' CropProperties (Maybe Double)
435+cpTopOffSet
436+ = lens _cpTopOffSet (\ s a -> s{_cpTopOffSet = a}) .
437+ mapping _Coerce
438+
439+-- | The rotation angle of the crop window around its center, in radians.
440+-- Rotation angle is applied after the offset.
441+cpAngle :: Lens' CropProperties (Maybe Double)
442+cpAngle
443+ = lens _cpAngle (\ s a -> s{_cpAngle = a}) .
444+ mapping _Coerce
445+
446+-- | The offset specifies the right edge of the crop rectangle that is
447+-- located to the left of the original bounding rectangle right edge,
448+-- relative to the object\'s original width.
449+cpRightOffSet :: Lens' CropProperties (Maybe Double)
450+cpRightOffSet
451+ = lens _cpRightOffSet
452+ (\ s a -> s{_cpRightOffSet = a})
453+ . mapping _Coerce
454+
455+-- | The offset specifies the left edge of the crop rectangle that is located
456+-- to the right of the original bounding rectangle left edge, relative to
457+-- the object\'s original width.
458+cpLeftOffSet :: Lens' CropProperties (Maybe Double)
459+cpLeftOffSet
460+ = lens _cpLeftOffSet (\ s a -> s{_cpLeftOffSet = a})
461+ . mapping _Coerce
462+
463+instance FromJSON CropProperties where
464+ parseJSON
465+ = withObject "CropProperties"
466+ (\ o ->
467+ CropProperties' <$>
468+ (o .:? "bottomOffset") <*> (o .:? "topOffset") <*>
469+ (o .:? "angle")
470+ <*> (o .:? "rightOffset")
471+ <*> (o .:? "leftOffset"))
472+
473+instance ToJSON CropProperties where
474+ toJSON CropProperties'{..}
475+ = object
476+ (catMaybes
477+ [("bottomOffset" .=) <$> _cpBottomOffSet,
478+ ("topOffset" .=) <$> _cpTopOffSet,
479+ ("angle" .=) <$> _cpAngle,
480+ ("rightOffset" .=) <$> _cpRightOffSet,
481+ ("leftOffset" .=) <$> _cpLeftOffSet])
482+
483+-- | The properties of the Line. When unset, these fields default to values
484+-- that match the appearance of new lines created in the Slides editor.
485+--
486+-- /See:/ 'lineProperties' smart constructor.
487+data LineProperties = LineProperties'
488+ { _lpWeight :: !(Maybe Dimension)
489+ , _lpLink :: !(Maybe Link)
490+ , _lpDashStyle :: !(Maybe LinePropertiesDashStyle)
491+ , _lpStartArrow :: !(Maybe LinePropertiesStartArrow)
492+ , _lpLineFill :: !(Maybe LineFill)
493+ , _lpEndArrow :: !(Maybe LinePropertiesEndArrow)
494+ } deriving (Eq,Show,Data,Typeable,Generic)
495+
496+-- | Creates a value of 'LineProperties' with the minimum fields required to make a request.
497+--
498+-- Use one of the following lenses to modify other fields as desired:
499+--
500+-- * 'lpWeight'
501+--
502+-- * 'lpLink'
503+--
504+-- * 'lpDashStyle'
505+--
506+-- * 'lpStartArrow'
507+--
508+-- * 'lpLineFill'
509+--
510+-- * 'lpEndArrow'
511+lineProperties
512+ :: LineProperties
513+lineProperties =
514+ LineProperties'
515+ { _lpWeight = Nothing
516+ , _lpLink = Nothing
517+ , _lpDashStyle = Nothing
518+ , _lpStartArrow = Nothing
519+ , _lpLineFill = Nothing
520+ , _lpEndArrow = Nothing
521+ }
522+
523+-- | The thickness of the line.
524+lpWeight :: Lens' LineProperties (Maybe Dimension)
525+lpWeight = lens _lpWeight (\ s a -> s{_lpWeight = a})
526+
527+-- | The hyperlink destination of the line. If unset, there is no link.
528+lpLink :: Lens' LineProperties (Maybe Link)
529+lpLink = lens _lpLink (\ s a -> s{_lpLink = a})
530+
531+-- | The dash style of the line.
532+lpDashStyle :: Lens' LineProperties (Maybe LinePropertiesDashStyle)
533+lpDashStyle
534+ = lens _lpDashStyle (\ s a -> s{_lpDashStyle = a})
535+
536+-- | The style of the arrow at the beginning of the line.
537+lpStartArrow :: Lens' LineProperties (Maybe LinePropertiesStartArrow)
538+lpStartArrow
539+ = lens _lpStartArrow (\ s a -> s{_lpStartArrow = a})
540+
541+-- | The fill of the line. The default line fill matches the defaults for new
542+-- lines created in the Slides editor.
543+lpLineFill :: Lens' LineProperties (Maybe LineFill)
544+lpLineFill
545+ = lens _lpLineFill (\ s a -> s{_lpLineFill = a})
546+
547+-- | The style of the arrow at the end of the line.
548+lpEndArrow :: Lens' LineProperties (Maybe LinePropertiesEndArrow)
549+lpEndArrow
550+ = lens _lpEndArrow (\ s a -> s{_lpEndArrow = a})
551+
552+instance FromJSON LineProperties where
553+ parseJSON
554+ = withObject "LineProperties"
555+ (\ o ->
556+ LineProperties' <$>
557+ (o .:? "weight") <*> (o .:? "link") <*>
558+ (o .:? "dashStyle")
559+ <*> (o .:? "startArrow")
560+ <*> (o .:? "lineFill")
561+ <*> (o .:? "endArrow"))
562+
563+instance ToJSON LineProperties where
564+ toJSON LineProperties'{..}
565+ = object
566+ (catMaybes
567+ [("weight" .=) <$> _lpWeight,
568+ ("link" .=) <$> _lpLink,
569+ ("dashStyle" .=) <$> _lpDashStyle,
570+ ("startArrow" .=) <$> _lpStartArrow,
571+ ("lineFill" .=) <$> _lpLineFill,
572+ ("endArrow" .=) <$> _lpEndArrow])
573+
574+-- | A PageElement kind representing a joined collection of PageElements.
575+--
576+-- /See:/ 'group'' smart constructor.
577+newtype Group = Group'
578+ { _gChildren :: Maybe [PageElement]
579+ } deriving (Eq,Show,Data,Typeable,Generic)
580+
581+-- | Creates a value of 'Group' with the minimum fields required to make a request.
582+--
583+-- Use one of the following lenses to modify other fields as desired:
584+--
585+-- * 'gChildren'
586+group'
587+ :: Group
588+group' =
589+ Group'
590+ { _gChildren = Nothing
591+ }
592+
593+-- | The collection of elements in the group. The minimum size of a group is
594+-- 2.
595+gChildren :: Lens' Group [PageElement]
596+gChildren
597+ = lens _gChildren (\ s a -> s{_gChildren = a}) .
598+ _Default
599+ . _Coerce
600+
601+instance FromJSON Group where
602+ parseJSON
603+ = withObject "Group"
604+ (\ o -> Group' <$> (o .:? "children" .!= mempty))
605+
606+instance ToJSON Group where
607+ toJSON Group'{..}
608+ = object (catMaybes [("children" .=) <$> _gChildren])
609+
610+-- | Request message for PresentationsService.BatchUpdatePresentation.
611+--
612+-- /See:/ 'batchUpdatePresentationRequest' smart constructor.
613+newtype BatchUpdatePresentationRequest = BatchUpdatePresentationRequest'
614+ { _buprRequests :: Maybe [Request']
615+ } deriving (Eq,Show,Data,Typeable,Generic)
616+
617+-- | Creates a value of 'BatchUpdatePresentationRequest' with the minimum fields required to make a request.
618+--
619+-- Use one of the following lenses to modify other fields as desired:
620+--
621+-- * 'buprRequests'
622+batchUpdatePresentationRequest
623+ :: BatchUpdatePresentationRequest
624+batchUpdatePresentationRequest =
625+ BatchUpdatePresentationRequest'
626+ { _buprRequests = Nothing
627+ }
628+
629+-- | A list of updates to apply to the presentation.
630+buprRequests :: Lens' BatchUpdatePresentationRequest [Request']
631+buprRequests
632+ = lens _buprRequests (\ s a -> s{_buprRequests = a})
633+ . _Default
634+ . _Coerce
635+
636+instance FromJSON BatchUpdatePresentationRequest
637+ where
638+ parseJSON
639+ = withObject "BatchUpdatePresentationRequest"
640+ (\ o ->
641+ BatchUpdatePresentationRequest' <$>
642+ (o .:? "requests" .!= mempty))
643+
644+instance ToJSON BatchUpdatePresentationRequest where
645+ toJSON BatchUpdatePresentationRequest'{..}
646+ = object
647+ (catMaybes [("requests" .=) <$> _buprRequests])
648+
649+-- | Creates a new shape.
650+--
651+-- /See:/ 'createShapeRequest' smart constructor.
652+data CreateShapeRequest = CreateShapeRequest'
653+ { _csrShapeType :: !(Maybe CreateShapeRequestShapeType)
654+ , _csrObjectId :: !(Maybe Text)
655+ , _csrElementProperties :: !(Maybe PageElementProperties)
656+ } deriving (Eq,Show,Data,Typeable,Generic)
657+
658+-- | Creates a value of 'CreateShapeRequest' with the minimum fields required to make a request.
659+--
660+-- Use one of the following lenses to modify other fields as desired:
661+--
662+-- * 'csrShapeType'
663+--
664+-- * 'csrObjectId'
665+--
666+-- * 'csrElementProperties'
667+createShapeRequest
668+ :: CreateShapeRequest
669+createShapeRequest =
670+ CreateShapeRequest'
671+ { _csrShapeType = Nothing
672+ , _csrObjectId = Nothing
673+ , _csrElementProperties = Nothing
674+ }
675+
676+-- | The shape type.
677+csrShapeType :: Lens' CreateShapeRequest (Maybe CreateShapeRequestShapeType)
678+csrShapeType
679+ = lens _csrShapeType (\ s a -> s{_csrShapeType = a})
680+
681+-- | A user-supplied object ID. If you specify an ID, it must be unique among
682+-- all pages and page elements in the presentation. The ID must start with
683+-- an alphanumeric character or an underscore (matches regex
684+-- \`[a-zA-Z0-9_]\`); remaining characters may include those as well as a
685+-- hyphen or colon (matches regex \`[a-zA-Z0-9_-:]\`). The length of the ID
686+-- must not be less than 5 or greater than 50. If empty, a unique
687+-- identifier will be generated.
688+csrObjectId :: Lens' CreateShapeRequest (Maybe Text)
689+csrObjectId
690+ = lens _csrObjectId (\ s a -> s{_csrObjectId = a})
691+
692+-- | The element properties for the shape.
693+csrElementProperties :: Lens' CreateShapeRequest (Maybe PageElementProperties)
694+csrElementProperties
695+ = lens _csrElementProperties
696+ (\ s a -> s{_csrElementProperties = a})
697+
698+instance FromJSON CreateShapeRequest where
699+ parseJSON
700+ = withObject "CreateShapeRequest"
701+ (\ o ->
702+ CreateShapeRequest' <$>
703+ (o .:? "shapeType") <*> (o .:? "objectId") <*>
704+ (o .:? "elementProperties"))
705+
706+instance ToJSON CreateShapeRequest where
707+ toJSON CreateShapeRequest'{..}
708+ = object
709+ (catMaybes
710+ [("shapeType" .=) <$> _csrShapeType,
711+ ("objectId" .=) <$> _csrObjectId,
712+ ("elementProperties" .=) <$> _csrElementProperties])
713+
714+-- | A TextElement kind that represents auto text.
715+--
716+-- /See:/ 'autoText' smart constructor.
717+data AutoText = AutoText'
718+ { _atStyle :: !(Maybe TextStyle)
719+ , _atContent :: !(Maybe Text)
720+ , _atType :: !(Maybe AutoTextType)
721+ } deriving (Eq,Show,Data,Typeable,Generic)
722+
723+-- | Creates a value of 'AutoText' with the minimum fields required to make a request.
724+--
725+-- Use one of the following lenses to modify other fields as desired:
726+--
727+-- * 'atStyle'
728+--
729+-- * 'atContent'
730+--
731+-- * 'atType'
732+autoText
733+ :: AutoText
734+autoText =
735+ AutoText'
736+ { _atStyle = Nothing
737+ , _atContent = Nothing
738+ , _atType = Nothing
739+ }
740+
741+-- | The styling applied to this auto text.
742+atStyle :: Lens' AutoText (Maybe TextStyle)
743+atStyle = lens _atStyle (\ s a -> s{_atStyle = a})
744+
745+-- | The rendered content of this auto text, if available.
746+atContent :: Lens' AutoText (Maybe Text)
747+atContent
748+ = lens _atContent (\ s a -> s{_atContent = a})
749+
750+-- | The type of this auto text.
751+atType :: Lens' AutoText (Maybe AutoTextType)
752+atType = lens _atType (\ s a -> s{_atType = a})
753+
754+instance FromJSON AutoText where
755+ parseJSON
756+ = withObject "AutoText"
757+ (\ o ->
758+ AutoText' <$>
759+ (o .:? "style") <*> (o .:? "content") <*>
760+ (o .:? "type"))
761+
762+instance ToJSON AutoText where
763+ toJSON AutoText'{..}
764+ = object
765+ (catMaybes
766+ [("style" .=) <$> _atStyle,
767+ ("content" .=) <$> _atContent,
768+ ("type" .=) <$> _atType])
769+
770+-- | A List describes the look and feel of bullets belonging to paragraphs
771+-- associated with a list. A paragraph that is part of a list has an
772+-- implicit reference to that list\'s ID.
773+--
774+-- /See:/ 'list' smart constructor.
775+data List = List'
776+ { _lListId :: !(Maybe Text)
777+ , _lNestingLevel :: !(Maybe ListNestingLevel)
778+ } deriving (Eq,Show,Data,Typeable,Generic)
779+
780+-- | Creates a value of 'List' with the minimum fields required to make a request.
781+--
782+-- Use one of the following lenses to modify other fields as desired:
783+--
784+-- * 'lListId'
785+--
786+-- * 'lNestingLevel'
787+list
788+ :: List
789+list =
790+ List'
791+ { _lListId = Nothing
792+ , _lNestingLevel = Nothing
793+ }
794+
795+-- | The ID of the list.
796+lListId :: Lens' List (Maybe Text)
797+lListId = lens _lListId (\ s a -> s{_lListId = a})
798+
799+-- | A map of nesting levels to the properties of bullets at the associated
800+-- level. A list has at most nine levels of nesting, so the possible values
801+-- for the keys of this map are 0 through 8, inclusive.
802+lNestingLevel :: Lens' List (Maybe ListNestingLevel)
803+lNestingLevel
804+ = lens _lNestingLevel
805+ (\ s a -> s{_lNestingLevel = a})
806+
807+instance FromJSON List where
808+ parseJSON
809+ = withObject "List"
810+ (\ o ->
811+ List' <$>
812+ (o .:? "listId") <*> (o .:? "nestingLevel"))
813+
814+instance ToJSON List where
815+ toJSON List'{..}
816+ = object
817+ (catMaybes
818+ [("listId" .=) <$> _lListId,
819+ ("nestingLevel" .=) <$> _lNestingLevel])
820+
821+-- | An RGB color.
822+--
823+-- /See:/ 'rgbColor' smart constructor.
824+data RgbColor = RgbColor'
825+ { _rcRed :: !(Maybe (Textual Double))
826+ , _rcGreen :: !(Maybe (Textual Double))
827+ , _rcBlue :: !(Maybe (Textual Double))
828+ } deriving (Eq,Show,Data,Typeable,Generic)
829+
830+-- | Creates a value of 'RgbColor' with the minimum fields required to make a request.
831+--
832+-- Use one of the following lenses to modify other fields as desired:
833+--
834+-- * 'rcRed'
835+--
836+-- * 'rcGreen'
837+--
838+-- * 'rcBlue'
839+rgbColor
840+ :: RgbColor
841+rgbColor =
842+ RgbColor'
843+ { _rcRed = Nothing
844+ , _rcGreen = Nothing
845+ , _rcBlue = Nothing
846+ }
847+
848+-- | The red component of the color, from 0.0 to 1.0.
849+rcRed :: Lens' RgbColor (Maybe Double)
850+rcRed
851+ = lens _rcRed (\ s a -> s{_rcRed = a}) .
852+ mapping _Coerce
853+
854+-- | The green component of the color, from 0.0 to 1.0.
855+rcGreen :: Lens' RgbColor (Maybe Double)
856+rcGreen
857+ = lens _rcGreen (\ s a -> s{_rcGreen = a}) .
858+ mapping _Coerce
859+
860+-- | The blue component of the color, from 0.0 to 1.0.
861+rcBlue :: Lens' RgbColor (Maybe Double)
862+rcBlue
863+ = lens _rcBlue (\ s a -> s{_rcBlue = a}) .
864+ mapping _Coerce
865+
866+instance FromJSON RgbColor where
867+ parseJSON
868+ = withObject "RgbColor"
869+ (\ o ->
870+ RgbColor' <$>
871+ (o .:? "red") <*> (o .:? "green") <*> (o .:? "blue"))
872+
873+instance ToJSON RgbColor where
874+ toJSON RgbColor'{..}
875+ = object
876+ (catMaybes
877+ [("red" .=) <$> _rcRed, ("green" .=) <$> _rcGreen,
878+ ("blue" .=) <$> _rcBlue])
879+
880+-- | Updates the properties of a Page.
881+--
882+-- /See:/ 'updatePagePropertiesRequest' smart constructor.
883+data UpdatePagePropertiesRequest = UpdatePagePropertiesRequest'
884+ { _upprObjectId :: !(Maybe Text)
885+ , _upprPageProperties :: !(Maybe PageProperties)
886+ , _upprFields :: !(Maybe FieldMask)
887+ } deriving (Eq,Show,Data,Typeable,Generic)
888+
889+-- | Creates a value of 'UpdatePagePropertiesRequest' with the minimum fields required to make a request.
890+--
891+-- Use one of the following lenses to modify other fields as desired:
892+--
893+-- * 'upprObjectId'
894+--
895+-- * 'upprPageProperties'
896+--
897+-- * 'upprFields'
898+updatePagePropertiesRequest
899+ :: UpdatePagePropertiesRequest
900+updatePagePropertiesRequest =
901+ UpdatePagePropertiesRequest'
902+ { _upprObjectId = Nothing
903+ , _upprPageProperties = Nothing
904+ , _upprFields = Nothing
905+ }
906+
907+-- | The object ID of the page the update is applied to.
908+upprObjectId :: Lens' UpdatePagePropertiesRequest (Maybe Text)
909+upprObjectId
910+ = lens _upprObjectId (\ s a -> s{_upprObjectId = a})
911+
912+-- | The page properties to update.
913+upprPageProperties :: Lens' UpdatePagePropertiesRequest (Maybe PageProperties)
914+upprPageProperties
915+ = lens _upprPageProperties
916+ (\ s a -> s{_upprPageProperties = a})
917+
918+-- | The fields that should be updated. At least one field must be specified.
919+-- The root \`pageProperties\` is implied and should not be specified. A
920+-- single \`\"*\"\` can be used as short-hand for listing every field. For
921+-- example to update the page background solid fill color, set \`fields\`
922+-- to \`\"pageBackgroundFill.solidFill.color\"\`. To reset a property to
923+-- its default value, include its field name in the field mask but leave
924+-- the field itself unset.
925+upprFields :: Lens' UpdatePagePropertiesRequest (Maybe FieldMask)
926+upprFields
927+ = lens _upprFields (\ s a -> s{_upprFields = a})
928+
929+instance FromJSON UpdatePagePropertiesRequest where
930+ parseJSON
931+ = withObject "UpdatePagePropertiesRequest"
932+ (\ o ->
933+ UpdatePagePropertiesRequest' <$>
934+ (o .:? "objectId") <*> (o .:? "pageProperties") <*>
935+ (o .:? "fields"))
936+
937+instance ToJSON UpdatePagePropertiesRequest where
938+ toJSON UpdatePagePropertiesRequest'{..}
939+ = object
940+ (catMaybes
941+ [("objectId" .=) <$> _upprObjectId,
942+ ("pageProperties" .=) <$> _upprPageProperties,
943+ ("fields" .=) <$> _upprFields])
944+
945+-- | Creates an embedded Google Sheets chart. NOTE: Chart creation requires
946+-- at least one of the spreadsheets.readonly, spreadsheets, drive.readonly,
947+-- or drive OAuth scopes.
948+--
949+-- /See:/ 'createSheetsChartRequest' smart constructor.
950+data CreateSheetsChartRequest = CreateSheetsChartRequest'
951+ { _cscrObjectId :: !(Maybe Text)
952+ , _cscrSpreadsheetId :: !(Maybe Text)
953+ , _cscrLinkingMode :: !(Maybe CreateSheetsChartRequestLinkingMode)
954+ , _cscrElementProperties :: !(Maybe PageElementProperties)
955+ , _cscrChartId :: !(Maybe (Textual Int32))
956+ } deriving (Eq,Show,Data,Typeable,Generic)
957+
958+-- | Creates a value of 'CreateSheetsChartRequest' with the minimum fields required to make a request.
959+--
960+-- Use one of the following lenses to modify other fields as desired:
961+--
962+-- * 'cscrObjectId'
963+--
964+-- * 'cscrSpreadsheetId'
965+--
966+-- * 'cscrLinkingMode'
967+--
968+-- * 'cscrElementProperties'
969+--
970+-- * 'cscrChartId'
971+createSheetsChartRequest
972+ :: CreateSheetsChartRequest
973+createSheetsChartRequest =
974+ CreateSheetsChartRequest'
975+ { _cscrObjectId = Nothing
976+ , _cscrSpreadsheetId = Nothing
977+ , _cscrLinkingMode = Nothing
978+ , _cscrElementProperties = Nothing
979+ , _cscrChartId = Nothing
980+ }
981+
982+-- | A user-supplied object ID. If specified, the ID must be unique among all
983+-- pages and page elements in the presentation. The ID should start with a
984+-- word character [a-zA-Z0-9_] and then followed by any number of the
985+-- following characters [a-zA-Z0-9_-:]. The length of the ID should not be
986+-- less than 5 or greater than 50. If empty, a unique identifier will be
987+-- generated.
988+cscrObjectId :: Lens' CreateSheetsChartRequest (Maybe Text)
989+cscrObjectId
990+ = lens _cscrObjectId (\ s a -> s{_cscrObjectId = a})
991+
992+-- | The ID of the Google Sheets spreadsheet that contains the chart.
993+cscrSpreadsheetId :: Lens' CreateSheetsChartRequest (Maybe Text)
994+cscrSpreadsheetId
995+ = lens _cscrSpreadsheetId
996+ (\ s a -> s{_cscrSpreadsheetId = a})
997+
998+-- | The mode with which the chart is linked to the source spreadsheet. When
999+-- not specified, the chart will be an image that is not linked.
1000+cscrLinkingMode :: Lens' CreateSheetsChartRequest (Maybe CreateSheetsChartRequestLinkingMode)
1001+cscrLinkingMode
1002+ = lens _cscrLinkingMode
1003+ (\ s a -> s{_cscrLinkingMode = a})
1004+
1005+-- | The element properties for the chart. When the aspect ratio of the
1006+-- provided size does not match the chart aspect ratio, the chart is scaled
1007+-- and centered with respect to the size in order to maintain aspect ratio.
1008+-- The provided transform is applied after this operation.
1009+cscrElementProperties :: Lens' CreateSheetsChartRequest (Maybe PageElementProperties)
1010+cscrElementProperties
1011+ = lens _cscrElementProperties
1012+ (\ s a -> s{_cscrElementProperties = a})
1013+
1014+-- | The ID of the specific chart in the Google Sheets spreadsheet.
1015+cscrChartId :: Lens' CreateSheetsChartRequest (Maybe Int32)
1016+cscrChartId
1017+ = lens _cscrChartId (\ s a -> s{_cscrChartId = a}) .
1018+ mapping _Coerce
1019+
1020+instance FromJSON CreateSheetsChartRequest where
1021+ parseJSON
1022+ = withObject "CreateSheetsChartRequest"
1023+ (\ o ->
1024+ CreateSheetsChartRequest' <$>
1025+ (o .:? "objectId") <*> (o .:? "spreadsheetId") <*>
1026+ (o .:? "linkingMode")
1027+ <*> (o .:? "elementProperties")
1028+ <*> (o .:? "chartId"))
1029+
1030+instance ToJSON CreateSheetsChartRequest where
1031+ toJSON CreateSheetsChartRequest'{..}
1032+ = object
1033+ (catMaybes
1034+ [("objectId" .=) <$> _cscrObjectId,
1035+ ("spreadsheetId" .=) <$> _cscrSpreadsheetId,
1036+ ("linkingMode" .=) <$> _cscrLinkingMode,
1037+ ("elementProperties" .=) <$> _cscrElementProperties,
1038+ ("chartId" .=) <$> _cscrChartId])
1039+
1040+-- | Deletes text from a shape or a table cell.
1041+--
1042+-- /See:/ 'deleteTextRequest' smart constructor.
1043+data DeleteTextRequest = DeleteTextRequest'
1044+ { _dtrTextRange :: !(Maybe Range)
1045+ , _dtrObjectId :: !(Maybe Text)
1046+ , _dtrCellLocation :: !(Maybe TableCellLocation)
1047+ } deriving (Eq,Show,Data,Typeable,Generic)
1048+
1049+-- | Creates a value of 'DeleteTextRequest' with the minimum fields required to make a request.
1050+--
1051+-- Use one of the following lenses to modify other fields as desired:
1052+--
1053+-- * 'dtrTextRange'
1054+--
1055+-- * 'dtrObjectId'
1056+--
1057+-- * 'dtrCellLocation'
1058+deleteTextRequest
1059+ :: DeleteTextRequest
1060+deleteTextRequest =
1061+ DeleteTextRequest'
1062+ { _dtrTextRange = Nothing
1063+ , _dtrObjectId = Nothing
1064+ , _dtrCellLocation = Nothing
1065+ }
1066+
1067+-- | The range of text to delete, based on TextElement indexes. There is
1068+-- always an implicit newline character at the end of a shape\'s or table
1069+-- cell\'s text that cannot be deleted. \`Range.Type.ALL\` will use the
1070+-- correct bounds, but care must be taken when specifying explicit bounds
1071+-- for range types \`FROM_START_INDEX\` and \`FIXED_RANGE\`. For example,
1072+-- if the text is \"ABC\", followed by an implicit newline, then the
1073+-- maximum value is 2 for \`text_range.start_index\` and 3 for
1074+-- \`text_range.end_index\`. Deleting text that crosses a paragraph
1075+-- boundary may result in changes to paragraph styles and lists as the two
1076+-- paragraphs are merged. Ranges that include only one code unit of a
1077+-- surrogate pair are expanded to include both code units.
1078+dtrTextRange :: Lens' DeleteTextRequest (Maybe Range)
1079+dtrTextRange
1080+ = lens _dtrTextRange (\ s a -> s{_dtrTextRange = a})
1081+
1082+-- | The object ID of the shape or table from which the text will be deleted.
1083+dtrObjectId :: Lens' DeleteTextRequest (Maybe Text)
1084+dtrObjectId
1085+ = lens _dtrObjectId (\ s a -> s{_dtrObjectId = a})
1086+
1087+-- | The optional table cell location if the text is to be deleted from a
1088+-- table cell. If present, the object_id must refer to a table.
1089+dtrCellLocation :: Lens' DeleteTextRequest (Maybe TableCellLocation)
1090+dtrCellLocation
1091+ = lens _dtrCellLocation
1092+ (\ s a -> s{_dtrCellLocation = a})
1093+
1094+instance FromJSON DeleteTextRequest where
1095+ parseJSON
1096+ = withObject "DeleteTextRequest"
1097+ (\ o ->
1098+ DeleteTextRequest' <$>
1099+ (o .:? "textRange") <*> (o .:? "objectId") <*>
1100+ (o .:? "cellLocation"))
1101+
1102+instance ToJSON DeleteTextRequest where
1103+ toJSON DeleteTextRequest'{..}
1104+ = object
1105+ (catMaybes
1106+ [("textRange" .=) <$> _dtrTextRange,
1107+ ("objectId" .=) <$> _dtrObjectId,
1108+ ("cellLocation" .=) <$> _dtrCellLocation])
1109+
1110+-- | Inserts columns into a table. Other columns in the table will be resized
1111+-- to fit the new column.
1112+--
1113+-- /See:/ 'insertTableColumnsRequest' smart constructor.
1114+data InsertTableColumnsRequest = InsertTableColumnsRequest'
1115+ { _itcrInsertRight :: !(Maybe Bool)
1116+ , _itcrNumber :: !(Maybe (Textual Int32))
1117+ , _itcrCellLocation :: !(Maybe TableCellLocation)
1118+ , _itcrTableObjectId :: !(Maybe Text)
1119+ } deriving (Eq,Show,Data,Typeable,Generic)
1120+
1121+-- | Creates a value of 'InsertTableColumnsRequest' with the minimum fields required to make a request.
1122+--
1123+-- Use one of the following lenses to modify other fields as desired:
1124+--
1125+-- * 'itcrInsertRight'
1126+--
1127+-- * 'itcrNumber'
1128+--
1129+-- * 'itcrCellLocation'
1130+--
1131+-- * 'itcrTableObjectId'
1132+insertTableColumnsRequest
1133+ :: InsertTableColumnsRequest
1134+insertTableColumnsRequest =
1135+ InsertTableColumnsRequest'
1136+ { _itcrInsertRight = Nothing
1137+ , _itcrNumber = Nothing
1138+ , _itcrCellLocation = Nothing
1139+ , _itcrTableObjectId = Nothing
1140+ }
1141+
1142+-- | Whether to insert new columns to the right of the reference cell
1143+-- location. - \`True\`: insert to the right. - \`False\`: insert to the
1144+-- left.
1145+itcrInsertRight :: Lens' InsertTableColumnsRequest (Maybe Bool)
1146+itcrInsertRight
1147+ = lens _itcrInsertRight
1148+ (\ s a -> s{_itcrInsertRight = a})
1149+
1150+-- | The number of columns to be inserted. Maximum 20 per request.
1151+itcrNumber :: Lens' InsertTableColumnsRequest (Maybe Int32)
1152+itcrNumber
1153+ = lens _itcrNumber (\ s a -> s{_itcrNumber = a}) .
1154+ mapping _Coerce
1155+
1156+-- | The reference table cell location from which columns will be inserted. A
1157+-- new column will be inserted to the left (or right) of the column where
1158+-- the reference cell is. If the reference cell is a merged cell, a new
1159+-- column will be inserted to the left (or right) of the merged cell.
1160+itcrCellLocation :: Lens' InsertTableColumnsRequest (Maybe TableCellLocation)
1161+itcrCellLocation
1162+ = lens _itcrCellLocation
1163+ (\ s a -> s{_itcrCellLocation = a})
1164+
1165+-- | The table to insert columns into.
1166+itcrTableObjectId :: Lens' InsertTableColumnsRequest (Maybe Text)
1167+itcrTableObjectId
1168+ = lens _itcrTableObjectId
1169+ (\ s a -> s{_itcrTableObjectId = a})
1170+
1171+instance FromJSON InsertTableColumnsRequest where
1172+ parseJSON
1173+ = withObject "InsertTableColumnsRequest"
1174+ (\ o ->
1175+ InsertTableColumnsRequest' <$>
1176+ (o .:? "insertRight") <*> (o .:? "number") <*>
1177+ (o .:? "cellLocation")
1178+ <*> (o .:? "tableObjectId"))
1179+
1180+instance ToJSON InsertTableColumnsRequest where
1181+ toJSON InsertTableColumnsRequest'{..}
1182+ = object
1183+ (catMaybes
1184+ [("insertRight" .=) <$> _itcrInsertRight,
1185+ ("number" .=) <$> _itcrNumber,
1186+ ("cellLocation" .=) <$> _itcrCellLocation,
1187+ ("tableObjectId" .=) <$> _itcrTableObjectId])
1188+
1189+-- | The bulleted lists contained in this text, keyed by list ID.
1190+--
1191+-- /See:/ 'textContentLists' smart constructor.
1192+newtype TextContentLists = TextContentLists'
1193+ { _tclAddtional :: HashMap Text List
1194+ } deriving (Eq,Show,Data,Typeable,Generic)
1195+
1196+-- | Creates a value of 'TextContentLists' with the minimum fields required to make a request.
1197+--
1198+-- Use one of the following lenses to modify other fields as desired:
1199+--
1200+-- * 'tclAddtional'
1201+textContentLists
1202+ :: HashMap Text List -- ^ 'tclAddtional'
1203+ -> TextContentLists
1204+textContentLists pTclAddtional_ =
1205+ TextContentLists'
1206+ { _tclAddtional = _Coerce # pTclAddtional_
1207+ }
1208+
1209+tclAddtional :: Lens' TextContentLists (HashMap Text List)
1210+tclAddtional
1211+ = lens _tclAddtional (\ s a -> s{_tclAddtional = a})
1212+ . _Coerce
1213+
1214+instance FromJSON TextContentLists where
1215+ parseJSON
1216+ = withObject "TextContentLists"
1217+ (\ o -> TextContentLists' <$> (parseJSONObject o))
1218+
1219+instance ToJSON TextContentLists where
1220+ toJSON = toJSON . _tclAddtional
1221+
1222+-- | A width and height.
1223+--
1224+-- /See:/ 'size' smart constructor.
1225+data Size = Size'
1226+ { _sHeight :: !(Maybe Dimension)
1227+ , _sWidth :: !(Maybe Dimension)
1228+ } deriving (Eq,Show,Data,Typeable,Generic)
1229+
1230+-- | Creates a value of 'Size' with the minimum fields required to make a request.
1231+--
1232+-- Use one of the following lenses to modify other fields as desired:
1233+--
1234+-- * 'sHeight'
1235+--
1236+-- * 'sWidth'
1237+size
1238+ :: Size
1239+size =
1240+ Size'
1241+ { _sHeight = Nothing
1242+ , _sWidth = Nothing
1243+ }
1244+
1245+-- | The height of the object.
1246+sHeight :: Lens' Size (Maybe Dimension)
1247+sHeight = lens _sHeight (\ s a -> s{_sHeight = a})
1248+
1249+-- | The width of the object.
1250+sWidth :: Lens' Size (Maybe Dimension)
1251+sWidth = lens _sWidth (\ s a -> s{_sWidth = a})
1252+
1253+instance FromJSON Size where
1254+ parseJSON
1255+ = withObject "Size"
1256+ (\ o ->
1257+ Size' <$> (o .:? "height") <*> (o .:? "width"))
1258+
1259+instance ToJSON Size where
1260+ toJSON Size'{..}
1261+ = object
1262+ (catMaybes
1263+ [("height" .=) <$> _sHeight,
1264+ ("width" .=) <$> _sWidth])
1265+
1266+-- | The stretched picture fill. The page or page element is filled entirely
1267+-- with the specified picture. The picture is stretched to fit its
1268+-- container.
1269+--
1270+-- /See:/ 'stretchedPictureFill' smart constructor.
1271+data StretchedPictureFill = StretchedPictureFill'
1272+ { _spfSize :: !(Maybe Size)
1273+ , _spfContentURL :: !(Maybe Text)
1274+ } deriving (Eq,Show,Data,Typeable,Generic)
1275+
1276+-- | Creates a value of 'StretchedPictureFill' with the minimum fields required to make a request.
1277+--
1278+-- Use one of the following lenses to modify other fields as desired:
1279+--
1280+-- * 'spfSize'
1281+--
1282+-- * 'spfContentURL'
1283+stretchedPictureFill
1284+ :: StretchedPictureFill
1285+stretchedPictureFill =
1286+ StretchedPictureFill'
1287+ { _spfSize = Nothing
1288+ , _spfContentURL = Nothing
1289+ }
1290+
1291+-- | The original size of the picture fill. This field is read-only.
1292+spfSize :: Lens' StretchedPictureFill (Maybe Size)
1293+spfSize = lens _spfSize (\ s a -> s{_spfSize = a})
1294+
1295+-- | Reading the content_url: An URL to a picture with a default lifetime of
1296+-- 30 minutes. This URL is tagged with the account of the requester. Anyone
1297+-- with the URL effectively accesses the picture as the original requester.
1298+-- Access to the picture may be lost if the presentation\'s sharing
1299+-- settings change. Writing the content_url: The picture is fetched once at
1300+-- insertion time and a copy is stored for display inside the presentation.
1301+-- Pictures must be less than 50MB in size, cannot exceed 25 megapixels,
1302+-- and must be in either in PNG, JPEG, or GIF format.
1303+spfContentURL :: Lens' StretchedPictureFill (Maybe Text)
1304+spfContentURL
1305+ = lens _spfContentURL
1306+ (\ s a -> s{_spfContentURL = a})
1307+
1308+instance FromJSON StretchedPictureFill where
1309+ parseJSON
1310+ = withObject "StretchedPictureFill"
1311+ (\ o ->
1312+ StretchedPictureFill' <$>
1313+ (o .:? "size") <*> (o .:? "contentUrl"))
1314+
1315+instance ToJSON StretchedPictureFill where
1316+ toJSON StretchedPictureFill'{..}
1317+ = object
1318+ (catMaybes
1319+ [("size" .=) <$> _spfSize,
1320+ ("contentUrl" .=) <$> _spfContentURL])
1321+
1322+-- | A PageElement kind representing a linked chart embedded from Google
1323+-- Sheets.
1324+--
1325+-- /See:/ 'sheetsChart' smart constructor.
1326+data SheetsChart = SheetsChart'
1327+ { _scSpreadsheetId :: !(Maybe Text)
1328+ , _scContentURL :: !(Maybe Text)
1329+ , _scSheetsChartProperties :: !(Maybe SheetsChartProperties)
1330+ , _scChartId :: !(Maybe (Textual Int32))
1331+ } deriving (Eq,Show,Data,Typeable,Generic)
1332+
1333+-- | Creates a value of 'SheetsChart' with the minimum fields required to make a request.
1334+--
1335+-- Use one of the following lenses to modify other fields as desired:
1336+--
1337+-- * 'scSpreadsheetId'
1338+--
1339+-- * 'scContentURL'
1340+--
1341+-- * 'scSheetsChartProperties'
1342+--
1343+-- * 'scChartId'
1344+sheetsChart
1345+ :: SheetsChart
1346+sheetsChart =
1347+ SheetsChart'
1348+ { _scSpreadsheetId = Nothing
1349+ , _scContentURL = Nothing
1350+ , _scSheetsChartProperties = Nothing
1351+ , _scChartId = Nothing
1352+ }
1353+
1354+-- | The ID of the Google Sheets spreadsheet that contains the source chart.
1355+scSpreadsheetId :: Lens' SheetsChart (Maybe Text)
1356+scSpreadsheetId
1357+ = lens _scSpreadsheetId
1358+ (\ s a -> s{_scSpreadsheetId = a})
1359+
1360+-- | The URL of an image of the embedded chart, with a default lifetime of 30
1361+-- minutes. This URL is tagged with the account of the requester. Anyone
1362+-- with the URL effectively accesses the image as the original requester.
1363+-- Access to the image may be lost if the presentation\'s sharing settings
1364+-- change.
1365+scContentURL :: Lens' SheetsChart (Maybe Text)
1366+scContentURL
1367+ = lens _scContentURL (\ s a -> s{_scContentURL = a})
1368+
1369+-- | The properties of the Sheets chart.
1370+scSheetsChartProperties :: Lens' SheetsChart (Maybe SheetsChartProperties)
1371+scSheetsChartProperties
1372+ = lens _scSheetsChartProperties
1373+ (\ s a -> s{_scSheetsChartProperties = a})
1374+
1375+-- | The ID of the specific chart in the Google Sheets spreadsheet that is
1376+-- embedded.
1377+scChartId :: Lens' SheetsChart (Maybe Int32)
1378+scChartId
1379+ = lens _scChartId (\ s a -> s{_scChartId = a}) .
1380+ mapping _Coerce
1381+
1382+instance FromJSON SheetsChart where
1383+ parseJSON
1384+ = withObject "SheetsChart"
1385+ (\ o ->
1386+ SheetsChart' <$>
1387+ (o .:? "spreadsheetId") <*> (o .:? "contentUrl") <*>
1388+ (o .:? "sheetsChartProperties")
1389+ <*> (o .:? "chartId"))
1390+
1391+instance ToJSON SheetsChart where
1392+ toJSON SheetsChart'{..}
1393+ = object
1394+ (catMaybes
1395+ [("spreadsheetId" .=) <$> _scSpreadsheetId,
1396+ ("contentUrl" .=) <$> _scContentURL,
1397+ ("sheetsChartProperties" .=) <$>
1398+ _scSheetsChartProperties,
1399+ ("chartId" .=) <$> _scChartId])
1400+
1401+-- | The result of creating a shape.
1402+--
1403+-- /See:/ 'createShapeResponse' smart constructor.
1404+newtype CreateShapeResponse = CreateShapeResponse'
1405+ { _cObjectId :: Maybe Text
1406+ } deriving (Eq,Show,Data,Typeable,Generic)
1407+
1408+-- | Creates a value of 'CreateShapeResponse' with the minimum fields required to make a request.
1409+--
1410+-- Use one of the following lenses to modify other fields as desired:
1411+--
1412+-- * 'cObjectId'
1413+createShapeResponse
1414+ :: CreateShapeResponse
1415+createShapeResponse =
1416+ CreateShapeResponse'
1417+ { _cObjectId = Nothing
1418+ }
1419+
1420+-- | The object ID of the created shape.
1421+cObjectId :: Lens' CreateShapeResponse (Maybe Text)
1422+cObjectId
1423+ = lens _cObjectId (\ s a -> s{_cObjectId = a})
1424+
1425+instance FromJSON CreateShapeResponse where
1426+ parseJSON
1427+ = withObject "CreateShapeResponse"
1428+ (\ o -> CreateShapeResponse' <$> (o .:? "objectId"))
1429+
1430+instance ToJSON CreateShapeResponse where
1431+ toJSON CreateShapeResponse'{..}
1432+ = object (catMaybes [("objectId" .=) <$> _cObjectId])
1433+
1434+-- | Deletes a column from a table.
1435+--
1436+-- /See:/ 'deleteTableColumnRequest' smart constructor.
1437+data DeleteTableColumnRequest = DeleteTableColumnRequest'
1438+ { _dtcrCellLocation :: !(Maybe TableCellLocation)
1439+ , _dtcrTableObjectId :: !(Maybe Text)
1440+ } deriving (Eq,Show,Data,Typeable,Generic)
1441+
1442+-- | Creates a value of 'DeleteTableColumnRequest' with the minimum fields required to make a request.
1443+--
1444+-- Use one of the following lenses to modify other fields as desired:
1445+--
1446+-- * 'dtcrCellLocation'
1447+--
1448+-- * 'dtcrTableObjectId'
1449+deleteTableColumnRequest
1450+ :: DeleteTableColumnRequest
1451+deleteTableColumnRequest =
1452+ DeleteTableColumnRequest'
1453+ { _dtcrCellLocation = Nothing
1454+ , _dtcrTableObjectId = Nothing
1455+ }
1456+
1457+-- | The reference table cell location from which a column will be deleted.
1458+-- The column this cell spans will be deleted. If this is a merged cell,
1459+-- multiple columns will be deleted. If no columns remain in the table
1460+-- after this deletion, the whole table is deleted.
1461+dtcrCellLocation :: Lens' DeleteTableColumnRequest (Maybe TableCellLocation)
1462+dtcrCellLocation
1463+ = lens _dtcrCellLocation
1464+ (\ s a -> s{_dtcrCellLocation = a})
1465+
1466+-- | The table to delete columns from.
1467+dtcrTableObjectId :: Lens' DeleteTableColumnRequest (Maybe Text)
1468+dtcrTableObjectId
1469+ = lens _dtcrTableObjectId
1470+ (\ s a -> s{_dtcrTableObjectId = a})
1471+
1472+instance FromJSON DeleteTableColumnRequest where
1473+ parseJSON
1474+ = withObject "DeleteTableColumnRequest"
1475+ (\ o ->
1476+ DeleteTableColumnRequest' <$>
1477+ (o .:? "cellLocation") <*> (o .:? "tableObjectId"))
1478+
1479+instance ToJSON DeleteTableColumnRequest where
1480+ toJSON DeleteTableColumnRequest'{..}
1481+ = object
1482+ (catMaybes
1483+ [("cellLocation" .=) <$> _dtcrCellLocation,
1484+ ("tableObjectId" .=) <$> _dtcrTableObjectId])
1485+
1486+-- | A hypertext link.
1487+--
1488+-- /See:/ 'link' smart constructor.
1489+data Link = Link'
1490+ { _lURL :: !(Maybe Text)
1491+ , _lPageObjectId :: !(Maybe Text)
1492+ , _lRelativeLink :: !(Maybe LinkRelativeLink)
1493+ , _lSlideIndex :: !(Maybe (Textual Int32))
1494+ } deriving (Eq,Show,Data,Typeable,Generic)
1495+
1496+-- | Creates a value of 'Link' with the minimum fields required to make a request.
1497+--
1498+-- Use one of the following lenses to modify other fields as desired:
1499+--
1500+-- * 'lURL'
1501+--
1502+-- * 'lPageObjectId'
1503+--
1504+-- * 'lRelativeLink'
1505+--
1506+-- * 'lSlideIndex'
1507+link
1508+ :: Link
1509+link =
1510+ Link'
1511+ { _lURL = Nothing
1512+ , _lPageObjectId = Nothing
1513+ , _lRelativeLink = Nothing
1514+ , _lSlideIndex = Nothing
1515+ }
1516+
1517+-- | If set, indicates this is a link to the external web page at this URL.
1518+lURL :: Lens' Link (Maybe Text)
1519+lURL = lens _lURL (\ s a -> s{_lURL = a})
1520+
1521+-- | If set, indicates this is a link to the specific page in this
1522+-- presentation with this ID. A page with this ID may not exist.
1523+lPageObjectId :: Lens' Link (Maybe Text)
1524+lPageObjectId
1525+ = lens _lPageObjectId
1526+ (\ s a -> s{_lPageObjectId = a})
1527+
1528+-- | If set, indicates this is a link to a slide in this presentation,
1529+-- addressed by its position.
1530+lRelativeLink :: Lens' Link (Maybe LinkRelativeLink)
1531+lRelativeLink
1532+ = lens _lRelativeLink
1533+ (\ s a -> s{_lRelativeLink = a})
1534+
1535+-- | If set, indicates this is a link to the slide at this zero-based index
1536+-- in the presentation. There may not be a slide at this index.
1537+lSlideIndex :: Lens' Link (Maybe Int32)
1538+lSlideIndex
1539+ = lens _lSlideIndex (\ s a -> s{_lSlideIndex = a}) .
1540+ mapping _Coerce
1541+
1542+instance FromJSON Link where
1543+ parseJSON
1544+ = withObject "Link"
1545+ (\ o ->
1546+ Link' <$>
1547+ (o .:? "url") <*> (o .:? "pageObjectId") <*>
1548+ (o .:? "relativeLink")
1549+ <*> (o .:? "slideIndex"))
1550+
1551+instance ToJSON Link where
1552+ toJSON Link'{..}
1553+ = object
1554+ (catMaybes
1555+ [("url" .=) <$> _lURL,
1556+ ("pageObjectId" .=) <$> _lPageObjectId,
1557+ ("relativeLink" .=) <$> _lRelativeLink,
1558+ ("slideIndex" .=) <$> _lSlideIndex])
1559+
1560+-- | A magnitude in a single direction in the specified units.
1561+--
1562+-- /See:/ 'dimension' smart constructor.
1563+data Dimension = Dimension'
1564+ { _dMagnitude :: !(Maybe (Textual Double))
1565+ , _dUnit :: !(Maybe DimensionUnit)
1566+ } deriving (Eq,Show,Data,Typeable,Generic)
1567+
1568+-- | Creates a value of 'Dimension' with the minimum fields required to make a request.
1569+--
1570+-- Use one of the following lenses to modify other fields as desired:
1571+--
1572+-- * 'dMagnitude'
1573+--
1574+-- * 'dUnit'
1575+dimension
1576+ :: Dimension
1577+dimension =
1578+ Dimension'
1579+ { _dMagnitude = Nothing
1580+ , _dUnit = Nothing
1581+ }
1582+
1583+-- | The magnitude.
1584+dMagnitude :: Lens' Dimension (Maybe Double)
1585+dMagnitude
1586+ = lens _dMagnitude (\ s a -> s{_dMagnitude = a}) .
1587+ mapping _Coerce
1588+
1589+-- | The units for magnitude.
1590+dUnit :: Lens' Dimension (Maybe DimensionUnit)
1591+dUnit = lens _dUnit (\ s a -> s{_dUnit = a})
1592+
1593+instance FromJSON Dimension where
1594+ parseJSON
1595+ = withObject "Dimension"
1596+ (\ o ->
1597+ Dimension' <$>
1598+ (o .:? "magnitude") <*> (o .:? "unit"))
1599+
1600+instance ToJSON Dimension where
1601+ toJSON Dimension'{..}
1602+ = object
1603+ (catMaybes
1604+ [("magnitude" .=) <$> _dMagnitude,
1605+ ("unit" .=) <$> _dUnit])
1606+
1607+-- | Response message from a batch update.
1608+--
1609+-- /See:/ 'batchUpdatePresentationResponse' smart constructor.
1610+data BatchUpdatePresentationResponse = BatchUpdatePresentationResponse'
1611+ { _buprPresentationId :: !(Maybe Text)
1612+ , _buprReplies :: !(Maybe [Response])
1613+ } deriving (Eq,Show,Data,Typeable,Generic)
1614+
1615+-- | Creates a value of 'BatchUpdatePresentationResponse' with the minimum fields required to make a request.
1616+--
1617+-- Use one of the following lenses to modify other fields as desired:
1618+--
1619+-- * 'buprPresentationId'
1620+--
1621+-- * 'buprReplies'
1622+batchUpdatePresentationResponse
1623+ :: BatchUpdatePresentationResponse
1624+batchUpdatePresentationResponse =
1625+ BatchUpdatePresentationResponse'
1626+ { _buprPresentationId = Nothing
1627+ , _buprReplies = Nothing
1628+ }
1629+
1630+-- | The presentation the updates were applied to.
1631+buprPresentationId :: Lens' BatchUpdatePresentationResponse (Maybe Text)
1632+buprPresentationId
1633+ = lens _buprPresentationId
1634+ (\ s a -> s{_buprPresentationId = a})
1635+
1636+-- | The reply of the updates. This maps 1:1 with the updates, although
1637+-- replies to some requests may be empty.
1638+buprReplies :: Lens' BatchUpdatePresentationResponse [Response]
1639+buprReplies
1640+ = lens _buprReplies (\ s a -> s{_buprReplies = a}) .
1641+ _Default
1642+ . _Coerce
1643+
1644+instance FromJSON BatchUpdatePresentationResponse
1645+ where
1646+ parseJSON
1647+ = withObject "BatchUpdatePresentationResponse"
1648+ (\ o ->
1649+ BatchUpdatePresentationResponse' <$>
1650+ (o .:? "presentationId") <*>
1651+ (o .:? "replies" .!= mempty))
1652+
1653+instance ToJSON BatchUpdatePresentationResponse where
1654+ toJSON BatchUpdatePresentationResponse'{..}
1655+ = object
1656+ (catMaybes
1657+ [("presentationId" .=) <$> _buprPresentationId,
1658+ ("replies" .=) <$> _buprReplies])
1659+
1660+-- | The object being duplicated may contain other objects, for example when
1661+-- duplicating a slide or a group page element. This map defines how the
1662+-- IDs of duplicated objects are generated: the keys are the IDs of the
1663+-- original objects and its values are the IDs that will be assigned to the
1664+-- corresponding duplicate object. The ID of the source object\'s duplicate
1665+-- may be specified in this map as well, using the same value of the
1666+-- \`object_id\` field as a key and the newly desired ID as the value. All
1667+-- keys must correspond to existing IDs in the presentation. All values
1668+-- must be unique in the presentation and must start with an alphanumeric
1669+-- character or an underscore (matches regex \`[a-zA-Z0-9_]\`); remaining
1670+-- characters may include those as well as a hyphen or colon (matches regex
1671+-- \`[a-zA-Z0-9_-:]\`). The length of the new ID must not be less than 5 or
1672+-- greater than 50. If any IDs of source objects are omitted from the map,
1673+-- a new random ID will be assigned. If the map is empty or unset, all
1674+-- duplicate objects will receive a new random ID.
1675+--
1676+-- /See:/ 'duplicateObjectRequestObjectIds' smart constructor.
1677+newtype DuplicateObjectRequestObjectIds = DuplicateObjectRequestObjectIds'
1678+ { _doroiAddtional :: HashMap Text Text
1679+ } deriving (Eq,Show,Data,Typeable,Generic)
1680+
1681+-- | Creates a value of 'DuplicateObjectRequestObjectIds' with the minimum fields required to make a request.
1682+--
1683+-- Use one of the following lenses to modify other fields as desired:
1684+--
1685+-- * 'doroiAddtional'
1686+duplicateObjectRequestObjectIds
1687+ :: HashMap Text Text -- ^ 'doroiAddtional'
1688+ -> DuplicateObjectRequestObjectIds
1689+duplicateObjectRequestObjectIds pDoroiAddtional_ =
1690+ DuplicateObjectRequestObjectIds'
1691+ { _doroiAddtional = _Coerce # pDoroiAddtional_
1692+ }
1693+
1694+doroiAddtional :: Lens' DuplicateObjectRequestObjectIds (HashMap Text Text)
1695+doroiAddtional
1696+ = lens _doroiAddtional
1697+ (\ s a -> s{_doroiAddtional = a})
1698+ . _Coerce
1699+
1700+instance FromJSON DuplicateObjectRequestObjectIds
1701+ where
1702+ parseJSON
1703+ = withObject "DuplicateObjectRequestObjectIds"
1704+ (\ o ->
1705+ DuplicateObjectRequestObjectIds' <$>
1706+ (parseJSONObject o))
1707+
1708+instance ToJSON DuplicateObjectRequestObjectIds where
1709+ toJSON = toJSON . _doroiAddtional
1710+
1711+-- | Creates a new table.
1712+--
1713+-- /See:/ 'createTableRequest' smart constructor.
1714+data CreateTableRequest = CreateTableRequest'
1715+ { _ctrObjectId :: !(Maybe Text)
1716+ , _ctrRows :: !(Maybe (Textual Int32))
1717+ , _ctrElementProperties :: !(Maybe PageElementProperties)
1718+ , _ctrColumns :: !(Maybe (Textual Int32))
1719+ } deriving (Eq,Show,Data,Typeable,Generic)
1720+
1721+-- | Creates a value of 'CreateTableRequest' with the minimum fields required to make a request.
1722+--
1723+-- Use one of the following lenses to modify other fields as desired:
1724+--
1725+-- * 'ctrObjectId'
1726+--
1727+-- * 'ctrRows'
1728+--
1729+-- * 'ctrElementProperties'
1730+--
1731+-- * 'ctrColumns'
1732+createTableRequest
1733+ :: CreateTableRequest
1734+createTableRequest =
1735+ CreateTableRequest'
1736+ { _ctrObjectId = Nothing
1737+ , _ctrRows = Nothing
1738+ , _ctrElementProperties = Nothing
1739+ , _ctrColumns = Nothing
1740+ }
1741+
1742+-- | A user-supplied object ID. If you specify an ID, it must be unique among
1743+-- all pages and page elements in the presentation. The ID must start with
1744+-- an alphanumeric character or an underscore (matches regex
1745+-- \`[a-zA-Z0-9_]\`); remaining characters may include those as well as a
1746+-- hyphen or colon (matches regex \`[a-zA-Z0-9_-:]\`). The length of the ID
1747+-- must not be less than 5 or greater than 50. If you don\'t specify an ID,
1748+-- a unique one is generated.
1749+ctrObjectId :: Lens' CreateTableRequest (Maybe Text)
1750+ctrObjectId
1751+ = lens _ctrObjectId (\ s a -> s{_ctrObjectId = a})
1752+
1753+-- | Number of rows in the table.
1754+ctrRows :: Lens' CreateTableRequest (Maybe Int32)
1755+ctrRows
1756+ = lens _ctrRows (\ s a -> s{_ctrRows = a}) .
1757+ mapping _Coerce
1758+
1759+-- | The element properties for the table. The table will be created at the
1760+-- provided size, subject to a minimum size. If no size is provided, the
1761+-- table will be automatically sized. Table transforms must have a scale of
1762+-- 1 and no shear components. If no transform is provided, the table will
1763+-- be centered on the page.
1764+ctrElementProperties :: Lens' CreateTableRequest (Maybe PageElementProperties)
1765+ctrElementProperties
1766+ = lens _ctrElementProperties
1767+ (\ s a -> s{_ctrElementProperties = a})
1768+
1769+-- | Number of columns in the table.
1770+ctrColumns :: Lens' CreateTableRequest (Maybe Int32)
1771+ctrColumns
1772+ = lens _ctrColumns (\ s a -> s{_ctrColumns = a}) .
1773+ mapping _Coerce
1774+
1775+instance FromJSON CreateTableRequest where
1776+ parseJSON
1777+ = withObject "CreateTableRequest"
1778+ (\ o ->
1779+ CreateTableRequest' <$>
1780+ (o .:? "objectId") <*> (o .:? "rows") <*>
1781+ (o .:? "elementProperties")
1782+ <*> (o .:? "columns"))
1783+
1784+instance ToJSON CreateTableRequest where
1785+ toJSON CreateTableRequest'{..}
1786+ = object
1787+ (catMaybes
1788+ [("objectId" .=) <$> _ctrObjectId,
1789+ ("rows" .=) <$> _ctrRows,
1790+ ("elementProperties" .=) <$> _ctrElementProperties,
1791+ ("columns" .=) <$> _ctrColumns])
1792+
1793+-- | A single response from an update.
1794+--
1795+-- /See:/ 'response' smart constructor.
1796+data Response = Response'
1797+ { _rReplaceAllShapesWithImage :: !(Maybe ReplaceAllShapesWithImageResponse)
1798+ , _rCreateLine :: !(Maybe CreateLineResponse)
1799+ , _rReplaceAllText :: !(Maybe ReplaceAllTextResponse)
1800+ , _rCreateShape :: !(Maybe CreateShapeResponse)
1801+ , _rCreateSheetsChart :: !(Maybe CreateSheetsChartResponse)
1802+ , _rDuplicateObject :: !(Maybe DuplicateObjectResponse)
1803+ , _rCreateTable :: !(Maybe CreateTableResponse)
1804+ , _rCreateVideo :: !(Maybe CreateVideoResponse)
1805+ , _rCreateImage :: !(Maybe CreateImageResponse)
1806+ , _rCreateSlide :: !(Maybe CreateSlideResponse)
1807+ } deriving (Eq,Show,Data,Typeable,Generic)
1808+
1809+-- | Creates a value of 'Response' with the minimum fields required to make a request.
1810+--
1811+-- Use one of the following lenses to modify other fields as desired:
1812+--
1813+-- * 'rReplaceAllShapesWithImage'
1814+--
1815+-- * 'rCreateLine'
1816+--
1817+-- * 'rReplaceAllText'
1818+--
1819+-- * 'rCreateShape'
1820+--
1821+-- * 'rCreateSheetsChart'
1822+--
1823+-- * 'rDuplicateObject'
1824+--
1825+-- * 'rCreateTable'
1826+--
1827+-- * 'rCreateVideo'
1828+--
1829+-- * 'rCreateImage'
1830+--
1831+-- * 'rCreateSlide'
1832+response
1833+ :: Response
1834+response =
1835+ Response'
1836+ { _rReplaceAllShapesWithImage = Nothing
1837+ , _rCreateLine = Nothing
1838+ , _rReplaceAllText = Nothing
1839+ , _rCreateShape = Nothing
1840+ , _rCreateSheetsChart = Nothing
1841+ , _rDuplicateObject = Nothing
1842+ , _rCreateTable = Nothing
1843+ , _rCreateVideo = Nothing
1844+ , _rCreateImage = Nothing
1845+ , _rCreateSlide = Nothing
1846+ }
1847+
1848+-- | The result of replacing all shapes matching some criteria with an image.
1849+rReplaceAllShapesWithImage :: Lens' Response (Maybe ReplaceAllShapesWithImageResponse)
1850+rReplaceAllShapesWithImage
1851+ = lens _rReplaceAllShapesWithImage
1852+ (\ s a -> s{_rReplaceAllShapesWithImage = a})
1853+
1854+-- | The result of creating a line.
1855+rCreateLine :: Lens' Response (Maybe CreateLineResponse)
1856+rCreateLine
1857+ = lens _rCreateLine (\ s a -> s{_rCreateLine = a})
1858+
1859+-- | The result of replacing text.
1860+rReplaceAllText :: Lens' Response (Maybe ReplaceAllTextResponse)
1861+rReplaceAllText
1862+ = lens _rReplaceAllText
1863+ (\ s a -> s{_rReplaceAllText = a})
1864+
1865+-- | The result of creating a shape.
1866+rCreateShape :: Lens' Response (Maybe CreateShapeResponse)
1867+rCreateShape
1868+ = lens _rCreateShape (\ s a -> s{_rCreateShape = a})
1869+
1870+-- | The result of creating a Google Sheets chart.
1871+rCreateSheetsChart :: Lens' Response (Maybe CreateSheetsChartResponse)
1872+rCreateSheetsChart
1873+ = lens _rCreateSheetsChart
1874+ (\ s a -> s{_rCreateSheetsChart = a})
1875+
1876+-- | The result of duplicating an object.
1877+rDuplicateObject :: Lens' Response (Maybe DuplicateObjectResponse)
1878+rDuplicateObject
1879+ = lens _rDuplicateObject
1880+ (\ s a -> s{_rDuplicateObject = a})
1881+
1882+-- | The result of creating a table.
1883+rCreateTable :: Lens' Response (Maybe CreateTableResponse)
1884+rCreateTable
1885+ = lens _rCreateTable (\ s a -> s{_rCreateTable = a})
1886+
1887+-- | The result of creating a video.
1888+rCreateVideo :: Lens' Response (Maybe CreateVideoResponse)
1889+rCreateVideo
1890+ = lens _rCreateVideo (\ s a -> s{_rCreateVideo = a})
1891+
1892+-- | The result of creating an image.
1893+rCreateImage :: Lens' Response (Maybe CreateImageResponse)
1894+rCreateImage
1895+ = lens _rCreateImage (\ s a -> s{_rCreateImage = a})
1896+
1897+-- | The result of creating a slide.
1898+rCreateSlide :: Lens' Response (Maybe CreateSlideResponse)
1899+rCreateSlide
1900+ = lens _rCreateSlide (\ s a -> s{_rCreateSlide = a})
1901+
1902+instance FromJSON Response where
1903+ parseJSON
1904+ = withObject "Response"
1905+ (\ o ->
1906+ Response' <$>
1907+ (o .:? "replaceAllShapesWithImage") <*>
1908+ (o .:? "createLine")
1909+ <*> (o .:? "replaceAllText")
1910+ <*> (o .:? "createShape")
1911+ <*> (o .:? "createSheetsChart")
1912+ <*> (o .:? "duplicateObject")
1913+ <*> (o .:? "createTable")
1914+ <*> (o .:? "createVideo")
1915+ <*> (o .:? "createImage")
1916+ <*> (o .:? "createSlide"))
1917+
1918+instance ToJSON Response where
1919+ toJSON Response'{..}
1920+ = object
1921+ (catMaybes
1922+ [("replaceAllShapesWithImage" .=) <$>
1923+ _rReplaceAllShapesWithImage,
1924+ ("createLine" .=) <$> _rCreateLine,
1925+ ("replaceAllText" .=) <$> _rReplaceAllText,
1926+ ("createShape" .=) <$> _rCreateShape,
1927+ ("createSheetsChart" .=) <$> _rCreateSheetsChart,
1928+ ("duplicateObject" .=) <$> _rDuplicateObject,
1929+ ("createTable" .=) <$> _rCreateTable,
1930+ ("createVideo" .=) <$> _rCreateVideo,
1931+ ("createImage" .=) <$> _rCreateImage,
1932+ ("createSlide" .=) <$> _rCreateSlide])
1933+
1934+-- | A color that can either be fully opaque or fully transparent.
1935+--
1936+-- /See:/ 'optionalColor' smart constructor.
1937+newtype OptionalColor = OptionalColor'
1938+ { _ocOpaqueColor :: Maybe OpaqueColor
1939+ } deriving (Eq,Show,Data,Typeable,Generic)
1940+
1941+-- | Creates a value of 'OptionalColor' with the minimum fields required to make a request.
1942+--
1943+-- Use one of the following lenses to modify other fields as desired:
1944+--
1945+-- * 'ocOpaqueColor'
1946+optionalColor
1947+ :: OptionalColor
1948+optionalColor =
1949+ OptionalColor'
1950+ { _ocOpaqueColor = Nothing
1951+ }
1952+
1953+-- | If set, this will be used as an opaque color. If unset, this represents
1954+-- a transparent color.
1955+ocOpaqueColor :: Lens' OptionalColor (Maybe OpaqueColor)
1956+ocOpaqueColor
1957+ = lens _ocOpaqueColor
1958+ (\ s a -> s{_ocOpaqueColor = a})
1959+
1960+instance FromJSON OptionalColor where
1961+ parseJSON
1962+ = withObject "OptionalColor"
1963+ (\ o -> OptionalColor' <$> (o .:? "opaqueColor"))
1964+
1965+instance ToJSON OptionalColor where
1966+ toJSON OptionalColor'{..}
1967+ = object
1968+ (catMaybes [("opaqueColor" .=) <$> _ocOpaqueColor])
1969+
1970+-- | Duplicates a slide or page element. When duplicating a slide, the
1971+-- duplicate slide will be created immediately following the specified
1972+-- slide. When duplicating a page element, the duplicate will be placed on
1973+-- the same page at the same position as the original.
1974+--
1975+-- /See:/ 'duplicateObjectRequest' smart constructor.
1976+data DuplicateObjectRequest = DuplicateObjectRequest'
1977+ { _dorObjectId :: !(Maybe Text)
1978+ , _dorObjectIds :: !(Maybe DuplicateObjectRequestObjectIds)
1979+ } deriving (Eq,Show,Data,Typeable,Generic)
1980+
1981+-- | Creates a value of 'DuplicateObjectRequest' with the minimum fields required to make a request.
1982+--
1983+-- Use one of the following lenses to modify other fields as desired:
1984+--
1985+-- * 'dorObjectId'
1986+--
1987+-- * 'dorObjectIds'
1988+duplicateObjectRequest
1989+ :: DuplicateObjectRequest
1990+duplicateObjectRequest =
1991+ DuplicateObjectRequest'
1992+ { _dorObjectId = Nothing
1993+ , _dorObjectIds = Nothing
1994+ }
1995+
1996+-- | The ID of the object to duplicate.
1997+dorObjectId :: Lens' DuplicateObjectRequest (Maybe Text)
1998+dorObjectId
1999+ = lens _dorObjectId (\ s a -> s{_dorObjectId = a})
2000+
2001+-- | The object being duplicated may contain other objects, for example when
2002+-- duplicating a slide or a group page element. This map defines how the
2003+-- IDs of duplicated objects are generated: the keys are the IDs of the
2004+-- original objects and its values are the IDs that will be assigned to the
2005+-- corresponding duplicate object. The ID of the source object\'s duplicate
2006+-- may be specified in this map as well, using the same value of the
2007+-- \`object_id\` field as a key and the newly desired ID as the value. All
2008+-- keys must correspond to existing IDs in the presentation. All values
2009+-- must be unique in the presentation and must start with an alphanumeric
2010+-- character or an underscore (matches regex \`[a-zA-Z0-9_]\`); remaining
2011+-- characters may include those as well as a hyphen or colon (matches regex
2012+-- \`[a-zA-Z0-9_-:]\`). The length of the new ID must not be less than 5 or
2013+-- greater than 50. If any IDs of source objects are omitted from the map,
2014+-- a new random ID will be assigned. If the map is empty or unset, all
2015+-- duplicate objects will receive a new random ID.
2016+dorObjectIds :: Lens' DuplicateObjectRequest (Maybe DuplicateObjectRequestObjectIds)
2017+dorObjectIds
2018+ = lens _dorObjectIds (\ s a -> s{_dorObjectIds = a})
2019+
2020+instance FromJSON DuplicateObjectRequest where
2021+ parseJSON
2022+ = withObject "DuplicateObjectRequest"
2023+ (\ o ->
2024+ DuplicateObjectRequest' <$>
2025+ (o .:? "objectId") <*> (o .:? "objectIds"))
2026+
2027+instance ToJSON DuplicateObjectRequest where
2028+ toJSON DuplicateObjectRequest'{..}
2029+ = object
2030+ (catMaybes
2031+ [("objectId" .=) <$> _dorObjectId,
2032+ ("objectIds" .=) <$> _dorObjectIds])
2033+
2034+-- | A page in a presentation.
2035+--
2036+-- /See:/ 'page' smart constructor.
2037+data Page = Page'
2038+ { _pObjectId :: !(Maybe Text)
2039+ , _pPageElements :: !(Maybe [PageElement])
2040+ , _pSlideProperties :: !(Maybe SlideProperties)
2041+ , _pPageProperties :: !(Maybe PageProperties)
2042+ , _pLayoutProperties :: !(Maybe LayoutProperties)
2043+ , _pPageType :: !(Maybe PagePageType)
2044+ } deriving (Eq,Show,Data,Typeable,Generic)
2045+
2046+-- | Creates a value of 'Page' with the minimum fields required to make a request.
2047+--
2048+-- Use one of the following lenses to modify other fields as desired:
2049+--
2050+-- * 'pObjectId'
2051+--
2052+-- * 'pPageElements'
2053+--
2054+-- * 'pSlideProperties'
2055+--
2056+-- * 'pPageProperties'
2057+--
2058+-- * 'pLayoutProperties'
2059+--
2060+-- * 'pPageType'
2061+page
2062+ :: Page
2063+page =
2064+ Page'
2065+ { _pObjectId = Nothing
2066+ , _pPageElements = Nothing
2067+ , _pSlideProperties = Nothing
2068+ , _pPageProperties = Nothing
2069+ , _pLayoutProperties = Nothing
2070+ , _pPageType = Nothing
2071+ }
2072+
2073+-- | The object ID for this page. Object IDs used by Page and PageElement
2074+-- share the same namespace.
2075+pObjectId :: Lens' Page (Maybe Text)
2076+pObjectId
2077+ = lens _pObjectId (\ s a -> s{_pObjectId = a})
2078+
2079+-- | The page elements rendered on the page.
2080+pPageElements :: Lens' Page [PageElement]
2081+pPageElements
2082+ = lens _pPageElements
2083+ (\ s a -> s{_pPageElements = a})
2084+ . _Default
2085+ . _Coerce
2086+
2087+-- | Slide specific properties. Only set if page_type = SLIDE.
2088+pSlideProperties :: Lens' Page (Maybe SlideProperties)
2089+pSlideProperties
2090+ = lens _pSlideProperties
2091+ (\ s a -> s{_pSlideProperties = a})
2092+
2093+-- | The properties of the page.
2094+pPageProperties :: Lens' Page (Maybe PageProperties)
2095+pPageProperties
2096+ = lens _pPageProperties
2097+ (\ s a -> s{_pPageProperties = a})
2098+
2099+-- | Layout specific properties. Only set if page_type = LAYOUT.
2100+pLayoutProperties :: Lens' Page (Maybe LayoutProperties)
2101+pLayoutProperties
2102+ = lens _pLayoutProperties
2103+ (\ s a -> s{_pLayoutProperties = a})
2104+
2105+-- | The type of the page.
2106+pPageType :: Lens' Page (Maybe PagePageType)
2107+pPageType
2108+ = lens _pPageType (\ s a -> s{_pPageType = a})
2109+
2110+instance FromJSON Page where
2111+ parseJSON
2112+ = withObject "Page"
2113+ (\ o ->
2114+ Page' <$>
2115+ (o .:? "objectId") <*>
2116+ (o .:? "pageElements" .!= mempty)
2117+ <*> (o .:? "slideProperties")
2118+ <*> (o .:? "pageProperties")
2119+ <*> (o .:? "layoutProperties")
2120+ <*> (o .:? "pageType"))
2121+
2122+instance ToJSON Page where
2123+ toJSON Page'{..}
2124+ = object
2125+ (catMaybes
2126+ [("objectId" .=) <$> _pObjectId,
2127+ ("pageElements" .=) <$> _pPageElements,
2128+ ("slideProperties" .=) <$> _pSlideProperties,
2129+ ("pageProperties" .=) <$> _pPageProperties,
2130+ ("layoutProperties" .=) <$> _pLayoutProperties,
2131+ ("pageType" .=) <$> _pPageType])
2132+
2133+-- | The result of replacing text.
2134+--
2135+-- /See:/ 'replaceAllTextResponse' smart constructor.
2136+newtype ReplaceAllTextResponse = ReplaceAllTextResponse'
2137+ { _ratrOccurrencesChanged :: Maybe (Textual Int32)
2138+ } deriving (Eq,Show,Data,Typeable,Generic)
2139+
2140+-- | Creates a value of 'ReplaceAllTextResponse' with the minimum fields required to make a request.
2141+--
2142+-- Use one of the following lenses to modify other fields as desired:
2143+--
2144+-- * 'ratrOccurrencesChanged'
2145+replaceAllTextResponse
2146+ :: ReplaceAllTextResponse
2147+replaceAllTextResponse =
2148+ ReplaceAllTextResponse'
2149+ { _ratrOccurrencesChanged = Nothing
2150+ }
2151+
2152+-- | The number of occurrences changed by replacing all text.
2153+ratrOccurrencesChanged :: Lens' ReplaceAllTextResponse (Maybe Int32)
2154+ratrOccurrencesChanged
2155+ = lens _ratrOccurrencesChanged
2156+ (\ s a -> s{_ratrOccurrencesChanged = a})
2157+ . mapping _Coerce
2158+
2159+instance FromJSON ReplaceAllTextResponse where
2160+ parseJSON
2161+ = withObject "ReplaceAllTextResponse"
2162+ (\ o ->
2163+ ReplaceAllTextResponse' <$>
2164+ (o .:? "occurrencesChanged"))
2165+
2166+instance ToJSON ReplaceAllTextResponse where
2167+ toJSON ReplaceAllTextResponse'{..}
2168+ = object
2169+ (catMaybes
2170+ [("occurrencesChanged" .=) <$>
2171+ _ratrOccurrencesChanged])
2172+
2173+-- | Describes the bullet of a paragraph.
2174+--
2175+-- /See:/ 'bullet' smart constructor.
2176+data Bullet = Bullet'
2177+ { _bGlyph :: !(Maybe Text)
2178+ , _bListId :: !(Maybe Text)
2179+ , _bNestingLevel :: !(Maybe (Textual Int32))
2180+ , _bBulletStyle :: !(Maybe TextStyle)
2181+ } deriving (Eq,Show,Data,Typeable,Generic)
2182+
2183+-- | Creates a value of 'Bullet' with the minimum fields required to make a request.
2184+--
2185+-- Use one of the following lenses to modify other fields as desired:
2186+--
2187+-- * 'bGlyph'
2188+--
2189+-- * 'bListId'
2190+--
2191+-- * 'bNestingLevel'
2192+--
2193+-- * 'bBulletStyle'
2194+bullet
2195+ :: Bullet
2196+bullet =
2197+ Bullet'
2198+ { _bGlyph = Nothing
2199+ , _bListId = Nothing
2200+ , _bNestingLevel = Nothing
2201+ , _bBulletStyle = Nothing
2202+ }
2203+
2204+-- | The rendered bullet glyph for this paragraph.
2205+bGlyph :: Lens' Bullet (Maybe Text)
2206+bGlyph = lens _bGlyph (\ s a -> s{_bGlyph = a})
2207+
2208+-- | The ID of the list this paragraph belongs to.
2209+bListId :: Lens' Bullet (Maybe Text)
2210+bListId = lens _bListId (\ s a -> s{_bListId = a})
2211+
2212+-- | The nesting level of this paragraph in the list.
2213+bNestingLevel :: Lens' Bullet (Maybe Int32)
2214+bNestingLevel
2215+ = lens _bNestingLevel
2216+ (\ s a -> s{_bNestingLevel = a})
2217+ . mapping _Coerce
2218+
2219+-- | The paragraph specific text style applied to this bullet.
2220+bBulletStyle :: Lens' Bullet (Maybe TextStyle)
2221+bBulletStyle
2222+ = lens _bBulletStyle (\ s a -> s{_bBulletStyle = a})
2223+
2224+instance FromJSON Bullet where
2225+ parseJSON
2226+ = withObject "Bullet"
2227+ (\ o ->
2228+ Bullet' <$>
2229+ (o .:? "glyph") <*> (o .:? "listId") <*>
2230+ (o .:? "nestingLevel")
2231+ <*> (o .:? "bulletStyle"))
2232+
2233+instance ToJSON Bullet where
2234+ toJSON Bullet'{..}
2235+ = object
2236+ (catMaybes
2237+ [("glyph" .=) <$> _bGlyph,
2238+ ("listId" .=) <$> _bListId,
2239+ ("nestingLevel" .=) <$> _bNestingLevel,
2240+ ("bulletStyle" .=) <$> _bBulletStyle])
2241+
2242+-- | Update the properties of an Image.
2243+--
2244+-- /See:/ 'updateImagePropertiesRequest' smart constructor.
2245+data UpdateImagePropertiesRequest = UpdateImagePropertiesRequest'
2246+ { _uiprObjectId :: !(Maybe Text)
2247+ , _uiprImageProperties :: !(Maybe ImageProperties)
2248+ , _uiprFields :: !(Maybe FieldMask)
2249+ } deriving (Eq,Show,Data,Typeable,Generic)
2250+
2251+-- | Creates a value of 'UpdateImagePropertiesRequest' with the minimum fields required to make a request.
2252+--
2253+-- Use one of the following lenses to modify other fields as desired:
2254+--
2255+-- * 'uiprObjectId'
2256+--
2257+-- * 'uiprImageProperties'
2258+--
2259+-- * 'uiprFields'
2260+updateImagePropertiesRequest
2261+ :: UpdateImagePropertiesRequest
2262+updateImagePropertiesRequest =
2263+ UpdateImagePropertiesRequest'
2264+ { _uiprObjectId = Nothing
2265+ , _uiprImageProperties = Nothing
2266+ , _uiprFields = Nothing
2267+ }
2268+
2269+-- | The object ID of the image the updates are applied to.
2270+uiprObjectId :: Lens' UpdateImagePropertiesRequest (Maybe Text)
2271+uiprObjectId
2272+ = lens _uiprObjectId (\ s a -> s{_uiprObjectId = a})
2273+
2274+-- | The image properties to update.
2275+uiprImageProperties :: Lens' UpdateImagePropertiesRequest (Maybe ImageProperties)
2276+uiprImageProperties
2277+ = lens _uiprImageProperties
2278+ (\ s a -> s{_uiprImageProperties = a})
2279+
2280+-- | The fields that should be updated. At least one field must be specified.
2281+-- The root \`imageProperties\` is implied and should not be specified. A
2282+-- single \`\"*\"\` can be used as short-hand for listing every field. For
2283+-- example to update the image outline color, set \`fields\` to
2284+-- \`\"outline.outlineFill.solidFill.color\"\`. To reset a property to its
2285+-- default value, include its field name in the field mask but leave the
2286+-- field itself unset.
2287+uiprFields :: Lens' UpdateImagePropertiesRequest (Maybe FieldMask)
2288+uiprFields
2289+ = lens _uiprFields (\ s a -> s{_uiprFields = a})
2290+
2291+instance FromJSON UpdateImagePropertiesRequest where
2292+ parseJSON
2293+ = withObject "UpdateImagePropertiesRequest"
2294+ (\ o ->
2295+ UpdateImagePropertiesRequest' <$>
2296+ (o .:? "objectId") <*> (o .:? "imageProperties") <*>
2297+ (o .:? "fields"))
2298+
2299+instance ToJSON UpdateImagePropertiesRequest where
2300+ toJSON UpdateImagePropertiesRequest'{..}
2301+ = object
2302+ (catMaybes
2303+ [("objectId" .=) <$> _uiprObjectId,
2304+ ("imageProperties" .=) <$> _uiprImageProperties,
2305+ ("fields" .=) <$> _uiprFields])
2306+
2307+-- | The properties of Page that are only relevant for pages with page_type
2308+-- SLIDE.
2309+--
2310+-- /See:/ 'slideProperties' smart constructor.
2311+data SlideProperties = SlideProperties'
2312+ { _spLayoutObjectId :: !(Maybe Text)
2313+ , _spMasterObjectId :: !(Maybe Text)
2314+ } deriving (Eq,Show,Data,Typeable,Generic)
2315+
2316+-- | Creates a value of 'SlideProperties' with the minimum fields required to make a request.
2317+--
2318+-- Use one of the following lenses to modify other fields as desired:
2319+--
2320+-- * 'spLayoutObjectId'
2321+--
2322+-- * 'spMasterObjectId'
2323+slideProperties
2324+ :: SlideProperties
2325+slideProperties =
2326+ SlideProperties'
2327+ { _spLayoutObjectId = Nothing
2328+ , _spMasterObjectId = Nothing
2329+ }
2330+
2331+-- | The object ID of the layout that this slide is based on.
2332+spLayoutObjectId :: Lens' SlideProperties (Maybe Text)
2333+spLayoutObjectId
2334+ = lens _spLayoutObjectId
2335+ (\ s a -> s{_spLayoutObjectId = a})
2336+
2337+-- | The object ID of the master that this slide is based on.
2338+spMasterObjectId :: Lens' SlideProperties (Maybe Text)
2339+spMasterObjectId
2340+ = lens _spMasterObjectId
2341+ (\ s a -> s{_spMasterObjectId = a})
2342+
2343+instance FromJSON SlideProperties where
2344+ parseJSON
2345+ = withObject "SlideProperties"
2346+ (\ o ->
2347+ SlideProperties' <$>
2348+ (o .:? "layoutObjectId") <*>
2349+ (o .:? "masterObjectId"))
2350+
2351+instance ToJSON SlideProperties where
2352+ toJSON SlideProperties'{..}
2353+ = object
2354+ (catMaybes
2355+ [("layoutObjectId" .=) <$> _spLayoutObjectId,
2356+ ("masterObjectId" .=) <$> _spMasterObjectId])
2357+
2358+-- | A Google Slides presentation.
2359+--
2360+-- /See:/ 'presentation' smart constructor.
2361+data Presentation = Presentation'
2362+ { _pSlides :: !(Maybe [Page])
2363+ , _pMasters :: !(Maybe [Page])
2364+ , _pLocale :: !(Maybe Text)
2365+ , _pPresentationId :: !(Maybe Text)
2366+ , _pTitle :: !(Maybe Text)
2367+ , _pPageSize :: !(Maybe Size)
2368+ , _pLayouts :: !(Maybe [Page])
2369+ } deriving (Eq,Show,Data,Typeable,Generic)
2370+
2371+-- | Creates a value of 'Presentation' with the minimum fields required to make a request.
2372+--
2373+-- Use one of the following lenses to modify other fields as desired:
2374+--
2375+-- * 'pSlides'
2376+--
2377+-- * 'pMasters'
2378+--
2379+-- * 'pLocale'
2380+--
2381+-- * 'pPresentationId'
2382+--
2383+-- * 'pTitle'
2384+--
2385+-- * 'pPageSize'
2386+--
2387+-- * 'pLayouts'
2388+presentation
2389+ :: Presentation
2390+presentation =
2391+ Presentation'
2392+ { _pSlides = Nothing
2393+ , _pMasters = Nothing
2394+ , _pLocale = Nothing
2395+ , _pPresentationId = Nothing
2396+ , _pTitle = Nothing
2397+ , _pPageSize = Nothing
2398+ , _pLayouts = Nothing
2399+ }
2400+
2401+-- | The slides in the presentation. A slide inherits properties from a slide
2402+-- layout.
2403+pSlides :: Lens' Presentation [Page]
2404+pSlides
2405+ = lens _pSlides (\ s a -> s{_pSlides = a}) . _Default
2406+ . _Coerce
2407+
2408+-- | The slide masters in the presentation. A slide master contains all
2409+-- common page elements and the common properties for a set of layouts.
2410+-- They serve three purposes: - Placeholder shapes on a master contain the
2411+-- default text styles and shape properties of all placeholder shapes on
2412+-- pages that use that master. - The master page properties define the
2413+-- common page properties inherited by its layouts. - Any other shapes on
2414+-- the master slide will appear on all slides using that master, regardless
2415+-- of their layout.
2416+pMasters :: Lens' Presentation [Page]
2417+pMasters
2418+ = lens _pMasters (\ s a -> s{_pMasters = a}) .
2419+ _Default
2420+ . _Coerce
2421+
2422+-- | The locale of the presentation, as an IETF BCP 47 language tag.
2423+pLocale :: Lens' Presentation (Maybe Text)
2424+pLocale = lens _pLocale (\ s a -> s{_pLocale = a})
2425+
2426+-- | The ID of the presentation.
2427+pPresentationId :: Lens' Presentation (Maybe Text)
2428+pPresentationId
2429+ = lens _pPresentationId
2430+ (\ s a -> s{_pPresentationId = a})
2431+
2432+-- | The title of the presentation.
2433+pTitle :: Lens' Presentation (Maybe Text)
2434+pTitle = lens _pTitle (\ s a -> s{_pTitle = a})
2435+
2436+-- | The size of pages in the presentation.
2437+pPageSize :: Lens' Presentation (Maybe Size)
2438+pPageSize
2439+ = lens _pPageSize (\ s a -> s{_pPageSize = a})
2440+
2441+-- | The layouts in the presentation. A layout is a template that determines
2442+-- how content is arranged and styled on the slides that inherit from that
2443+-- layout.
2444+pLayouts :: Lens' Presentation [Page]
2445+pLayouts
2446+ = lens _pLayouts (\ s a -> s{_pLayouts = a}) .
2447+ _Default
2448+ . _Coerce
2449+
2450+instance FromJSON Presentation where
2451+ parseJSON
2452+ = withObject "Presentation"
2453+ (\ o ->
2454+ Presentation' <$>
2455+ (o .:? "slides" .!= mempty) <*>
2456+ (o .:? "masters" .!= mempty)
2457+ <*> (o .:? "locale")
2458+ <*> (o .:? "presentationId")
2459+ <*> (o .:? "title")
2460+ <*> (o .:? "pageSize")
2461+ <*> (o .:? "layouts" .!= mempty))
2462+
2463+instance ToJSON Presentation where
2464+ toJSON Presentation'{..}
2465+ = object
2466+ (catMaybes
2467+ [("slides" .=) <$> _pSlides,
2468+ ("masters" .=) <$> _pMasters,
2469+ ("locale" .=) <$> _pLocale,
2470+ ("presentationId" .=) <$> _pPresentationId,
2471+ ("title" .=) <$> _pTitle,
2472+ ("pageSize" .=) <$> _pPageSize,
2473+ ("layouts" .=) <$> _pLayouts])
2474+
2475+-- | A pair mapping a theme color type to the concrete color it represents.
2476+--
2477+-- /See:/ 'themeColorPair' smart constructor.
2478+data ThemeColorPair = ThemeColorPair'
2479+ { _tcpColor :: !(Maybe RgbColor)
2480+ , _tcpType :: !(Maybe ThemeColorPairType)
2481+ } deriving (Eq,Show,Data,Typeable,Generic)
2482+
2483+-- | Creates a value of 'ThemeColorPair' with the minimum fields required to make a request.
2484+--
2485+-- Use one of the following lenses to modify other fields as desired:
2486+--
2487+-- * 'tcpColor'
2488+--
2489+-- * 'tcpType'
2490+themeColorPair
2491+ :: ThemeColorPair
2492+themeColorPair =
2493+ ThemeColorPair'
2494+ { _tcpColor = Nothing
2495+ , _tcpType = Nothing
2496+ }
2497+
2498+-- | The concrete color corresponding to the theme color type above.
2499+tcpColor :: Lens' ThemeColorPair (Maybe RgbColor)
2500+tcpColor = lens _tcpColor (\ s a -> s{_tcpColor = a})
2501+
2502+-- | The type of the theme color.
2503+tcpType :: Lens' ThemeColorPair (Maybe ThemeColorPairType)
2504+tcpType = lens _tcpType (\ s a -> s{_tcpType = a})
2505+
2506+instance FromJSON ThemeColorPair where
2507+ parseJSON
2508+ = withObject "ThemeColorPair"
2509+ (\ o ->
2510+ ThemeColorPair' <$>
2511+ (o .:? "color") <*> (o .:? "type"))
2512+
2513+instance ToJSON ThemeColorPair where
2514+ toJSON ThemeColorPair'{..}
2515+ = object
2516+ (catMaybes
2517+ [("color" .=) <$> _tcpColor,
2518+ ("type" .=) <$> _tcpType])
2519+
2520+-- | The shadow properties of a page element. If these fields are unset, they
2521+-- may be inherited from a parent placeholder if it exists. If there is no
2522+-- parent, the fields will default to the value used for new page elements
2523+-- created in the Slides editor, which may depend on the page element kind.
2524+--
2525+-- /See:/ 'shadow' smart constructor.
2526+data Shadow = Shadow'
2527+ { _sTransform :: !(Maybe AffineTransform)
2528+ , _sColor :: !(Maybe OpaqueColor)
2529+ , _sBlurRadius :: !(Maybe Dimension)
2530+ , _sRotateWithShape :: !(Maybe Bool)
2531+ , _sAlpha :: !(Maybe (Textual Double))
2532+ , _sAlignment :: !(Maybe ShadowAlignment)
2533+ , _sPropertyState :: !(Maybe ShadowPropertyState)
2534+ , _sType :: !(Maybe ShadowType)
2535+ } deriving (Eq,Show,Data,Typeable,Generic)
2536+
2537+-- | Creates a value of 'Shadow' with the minimum fields required to make a request.
2538+--
2539+-- Use one of the following lenses to modify other fields as desired:
2540+--
2541+-- * 'sTransform'
2542+--
2543+-- * 'sColor'
2544+--
2545+-- * 'sBlurRadius'
2546+--
2547+-- * 'sRotateWithShape'
2548+--
2549+-- * 'sAlpha'
2550+--
2551+-- * 'sAlignment'
2552+--
2553+-- * 'sPropertyState'
2554+--
2555+-- * 'sType'
2556+shadow
2557+ :: Shadow
2558+shadow =
2559+ Shadow'
2560+ { _sTransform = Nothing
2561+ , _sColor = Nothing
2562+ , _sBlurRadius = Nothing
2563+ , _sRotateWithShape = Nothing
2564+ , _sAlpha = Nothing
2565+ , _sAlignment = Nothing
2566+ , _sPropertyState = Nothing
2567+ , _sType = Nothing
2568+ }
2569+
2570+-- | Transform that encodes the translate, scale, and skew of the shadow,
2571+-- relative to the alignment position.
2572+sTransform :: Lens' Shadow (Maybe AffineTransform)
2573+sTransform
2574+ = lens _sTransform (\ s a -> s{_sTransform = a})
2575+
2576+-- | The shadow color value.
2577+sColor :: Lens' Shadow (Maybe OpaqueColor)
2578+sColor = lens _sColor (\ s a -> s{_sColor = a})
2579+
2580+-- | The radius of the shadow blur. The larger the radius, the more diffuse
2581+-- the shadow becomes.
2582+sBlurRadius :: Lens' Shadow (Maybe Dimension)
2583+sBlurRadius
2584+ = lens _sBlurRadius (\ s a -> s{_sBlurRadius = a})
2585+
2586+-- | Whether the shadow should rotate with the shape.
2587+sRotateWithShape :: Lens' Shadow (Maybe Bool)
2588+sRotateWithShape
2589+ = lens _sRotateWithShape
2590+ (\ s a -> s{_sRotateWithShape = a})
2591+
2592+-- | The alpha of the shadow\'s color, from 0.0 to 1.0.
2593+sAlpha :: Lens' Shadow (Maybe Double)
2594+sAlpha
2595+ = lens _sAlpha (\ s a -> s{_sAlpha = a}) .
2596+ mapping _Coerce
2597+
2598+-- | The alignment point of the shadow, that sets the origin for translate,
2599+-- scale and skew of the shadow.
2600+sAlignment :: Lens' Shadow (Maybe ShadowAlignment)
2601+sAlignment
2602+ = lens _sAlignment (\ s a -> s{_sAlignment = a})
2603+
2604+-- | The shadow property state. Updating the the shadow on a page element
2605+-- will implicitly update this field to \`RENDERED\`, unless another value
2606+-- is specified in the same request. To have no shadow on a page element,
2607+-- set this field to \`NOT_RENDERED\`. In this case, any other shadow
2608+-- fields set in the same request will be ignored.
2609+sPropertyState :: Lens' Shadow (Maybe ShadowPropertyState)
2610+sPropertyState
2611+ = lens _sPropertyState
2612+ (\ s a -> s{_sPropertyState = a})
2613+
2614+-- | The type of the shadow.
2615+sType :: Lens' Shadow (Maybe ShadowType)
2616+sType = lens _sType (\ s a -> s{_sType = a})
2617+
2618+instance FromJSON Shadow where
2619+ parseJSON
2620+ = withObject "Shadow"
2621+ (\ o ->
2622+ Shadow' <$>
2623+ (o .:? "transform") <*> (o .:? "color") <*>
2624+ (o .:? "blurRadius")
2625+ <*> (o .:? "rotateWithShape")
2626+ <*> (o .:? "alpha")
2627+ <*> (o .:? "alignment")
2628+ <*> (o .:? "propertyState")
2629+ <*> (o .:? "type"))
2630+
2631+instance ToJSON Shadow where
2632+ toJSON Shadow'{..}
2633+ = object
2634+ (catMaybes
2635+ [("transform" .=) <$> _sTransform,
2636+ ("color" .=) <$> _sColor,
2637+ ("blurRadius" .=) <$> _sBlurRadius,
2638+ ("rotateWithShape" .=) <$> _sRotateWithShape,
2639+ ("alpha" .=) <$> _sAlpha,
2640+ ("alignment" .=) <$> _sAlignment,
2641+ ("propertyState" .=) <$> _sPropertyState,
2642+ ("type" .=) <$> _sType])
2643+
2644+-- | The properties of the Image.
2645+--
2646+-- /See:/ 'imageProperties' smart constructor.
2647+data ImageProperties = ImageProperties'
2648+ { _ipCropProperties :: !(Maybe CropProperties)
2649+ , _ipLink :: !(Maybe Link)
2650+ , _ipTransparency :: !(Maybe (Textual Double))
2651+ , _ipShadow :: !(Maybe Shadow)
2652+ , _ipContrast :: !(Maybe (Textual Double))
2653+ , _ipRecolor :: !(Maybe Recolor)
2654+ , _ipOutline :: !(Maybe Outline)
2655+ , _ipBrightness :: !(Maybe (Textual Double))
2656+ } deriving (Eq,Show,Data,Typeable,Generic)
2657+
2658+-- | Creates a value of 'ImageProperties' with the minimum fields required to make a request.
2659+--
2660+-- Use one of the following lenses to modify other fields as desired:
2661+--
2662+-- * 'ipCropProperties'
2663+--
2664+-- * 'ipLink'
2665+--
2666+-- * 'ipTransparency'
2667+--
2668+-- * 'ipShadow'
2669+--
2670+-- * 'ipContrast'
2671+--
2672+-- * 'ipRecolor'
2673+--
2674+-- * 'ipOutline'
2675+--
2676+-- * 'ipBrightness'
2677+imageProperties
2678+ :: ImageProperties
2679+imageProperties =
2680+ ImageProperties'
2681+ { _ipCropProperties = Nothing
2682+ , _ipLink = Nothing
2683+ , _ipTransparency = Nothing
2684+ , _ipShadow = Nothing
2685+ , _ipContrast = Nothing
2686+ , _ipRecolor = Nothing
2687+ , _ipOutline = Nothing
2688+ , _ipBrightness = Nothing
2689+ }
2690+
2691+-- | The crop properties of the image. If not set, the image is not cropped.
2692+-- This property is read-only.
2693+ipCropProperties :: Lens' ImageProperties (Maybe CropProperties)
2694+ipCropProperties
2695+ = lens _ipCropProperties
2696+ (\ s a -> s{_ipCropProperties = a})
2697+
2698+-- | The hyperlink destination of the image. If unset, there is no link.
2699+ipLink :: Lens' ImageProperties (Maybe Link)
2700+ipLink = lens _ipLink (\ s a -> s{_ipLink = a})
2701+
2702+-- | The transparency effect of the image. The value should be in the
2703+-- interval [0.0, 1.0], where 0 means no effect and 1 means completely
2704+-- transparent. This property is read-only.
2705+ipTransparency :: Lens' ImageProperties (Maybe Double)
2706+ipTransparency
2707+ = lens _ipTransparency
2708+ (\ s a -> s{_ipTransparency = a})
2709+ . mapping _Coerce
2710+
2711+-- | The shadow of the image. If not set, the image has no shadow. This
2712+-- property is read-only.
2713+ipShadow :: Lens' ImageProperties (Maybe Shadow)
2714+ipShadow = lens _ipShadow (\ s a -> s{_ipShadow = a})
2715+
2716+-- | The contrast effect of the image. The value should be in the interval
2717+-- [-1.0, 1.0], where 0 means no effect. This property is read-only.
2718+ipContrast :: Lens' ImageProperties (Maybe Double)
2719+ipContrast
2720+ = lens _ipContrast (\ s a -> s{_ipContrast = a}) .
2721+ mapping _Coerce
2722+
2723+-- | The recolor effect of the image. If not set, the image is not recolored.
2724+-- This property is read-only.
2725+ipRecolor :: Lens' ImageProperties (Maybe Recolor)
2726+ipRecolor
2727+ = lens _ipRecolor (\ s a -> s{_ipRecolor = a})
2728+
2729+-- | The outline of the image. If not set, the the image has no outline.
2730+ipOutline :: Lens' ImageProperties (Maybe Outline)
2731+ipOutline
2732+ = lens _ipOutline (\ s a -> s{_ipOutline = a})
2733+
2734+-- | The brightness effect of the image. The value should be in the interval
2735+-- [-1.0, 1.0], where 0 means no effect. This property is read-only.
2736+ipBrightness :: Lens' ImageProperties (Maybe Double)
2737+ipBrightness
2738+ = lens _ipBrightness (\ s a -> s{_ipBrightness = a})
2739+ . mapping _Coerce
2740+
2741+instance FromJSON ImageProperties where
2742+ parseJSON
2743+ = withObject "ImageProperties"
2744+ (\ o ->
2745+ ImageProperties' <$>
2746+ (o .:? "cropProperties") <*> (o .:? "link") <*>
2747+ (o .:? "transparency")
2748+ <*> (o .:? "shadow")
2749+ <*> (o .:? "contrast")
2750+ <*> (o .:? "recolor")
2751+ <*> (o .:? "outline")
2752+ <*> (o .:? "brightness"))
2753+
2754+instance ToJSON ImageProperties where
2755+ toJSON ImageProperties'{..}
2756+ = object
2757+ (catMaybes
2758+ [("cropProperties" .=) <$> _ipCropProperties,
2759+ ("link" .=) <$> _ipLink,
2760+ ("transparency" .=) <$> _ipTransparency,
2761+ ("shadow" .=) <$> _ipShadow,
2762+ ("contrast" .=) <$> _ipContrast,
2763+ ("recolor" .=) <$> _ipRecolor,
2764+ ("outline" .=) <$> _ipOutline,
2765+ ("brightness" .=) <$> _ipBrightness])
2766+
2767+-- | A PageElement kind representing a line, curved connector, or bent
2768+-- connector.
2769+--
2770+-- /See:/ 'line' smart constructor.
2771+data Line = Line'
2772+ { _lLineProperties :: !(Maybe LineProperties)
2773+ , _lLineType :: !(Maybe LineLineType)
2774+ } deriving (Eq,Show,Data,Typeable,Generic)
2775+
2776+-- | Creates a value of 'Line' with the minimum fields required to make a request.
2777+--
2778+-- Use one of the following lenses to modify other fields as desired:
2779+--
2780+-- * 'lLineProperties'
2781+--
2782+-- * 'lLineType'
2783+line
2784+ :: Line
2785+line =
2786+ Line'
2787+ { _lLineProperties = Nothing
2788+ , _lLineType = Nothing
2789+ }
2790+
2791+-- | The properties of the line.
2792+lLineProperties :: Lens' Line (Maybe LineProperties)
2793+lLineProperties
2794+ = lens _lLineProperties
2795+ (\ s a -> s{_lLineProperties = a})
2796+
2797+-- | The type of the line.
2798+lLineType :: Lens' Line (Maybe LineLineType)
2799+lLineType
2800+ = lens _lLineType (\ s a -> s{_lLineType = a})
2801+
2802+instance FromJSON Line where
2803+ parseJSON
2804+ = withObject "Line"
2805+ (\ o ->
2806+ Line' <$>
2807+ (o .:? "lineProperties") <*> (o .:? "lineType"))
2808+
2809+instance ToJSON Line where
2810+ toJSON Line'{..}
2811+ = object
2812+ (catMaybes
2813+ [("lineProperties" .=) <$> _lLineProperties,
2814+ ("lineType" .=) <$> _lLineType])
2815+
2816+-- | The result of creating a video.
2817+--
2818+-- /See:/ 'createVideoResponse' smart constructor.
2819+newtype CreateVideoResponse = CreateVideoResponse'
2820+ { _cvrObjectId :: Maybe Text
2821+ } deriving (Eq,Show,Data,Typeable,Generic)
2822+
2823+-- | Creates a value of 'CreateVideoResponse' with the minimum fields required to make a request.
2824+--
2825+-- Use one of the following lenses to modify other fields as desired:
2826+--
2827+-- * 'cvrObjectId'
2828+createVideoResponse
2829+ :: CreateVideoResponse
2830+createVideoResponse =
2831+ CreateVideoResponse'
2832+ { _cvrObjectId = Nothing
2833+ }
2834+
2835+-- | The object ID of the created video.
2836+cvrObjectId :: Lens' CreateVideoResponse (Maybe Text)
2837+cvrObjectId
2838+ = lens _cvrObjectId (\ s a -> s{_cvrObjectId = a})
2839+
2840+instance FromJSON CreateVideoResponse where
2841+ parseJSON
2842+ = withObject "CreateVideoResponse"
2843+ (\ o -> CreateVideoResponse' <$> (o .:? "objectId"))
2844+
2845+instance ToJSON CreateVideoResponse where
2846+ toJSON CreateVideoResponse'{..}
2847+ = object
2848+ (catMaybes [("objectId" .=) <$> _cvrObjectId])
2849+
2850+-- | Slide layout reference. This may reference either: - A predefined layout
2851+-- - One of the layouts in the presentation.
2852+--
2853+-- /See:/ 'layoutReference' smart constructor.
2854+data LayoutReference = LayoutReference'
2855+ { _lrPredefinedLayout :: !(Maybe LayoutReferencePredefinedLayout)
2856+ , _lrLayoutId :: !(Maybe Text)
2857+ } deriving (Eq,Show,Data,Typeable,Generic)
2858+
2859+-- | Creates a value of 'LayoutReference' with the minimum fields required to make a request.
2860+--
2861+-- Use one of the following lenses to modify other fields as desired:
2862+--
2863+-- * 'lrPredefinedLayout'
2864+--
2865+-- * 'lrLayoutId'
2866+layoutReference
2867+ :: LayoutReference
2868+layoutReference =
2869+ LayoutReference'
2870+ { _lrPredefinedLayout = Nothing
2871+ , _lrLayoutId = Nothing
2872+ }
2873+
2874+-- | Predefined layout.
2875+lrPredefinedLayout :: Lens' LayoutReference (Maybe LayoutReferencePredefinedLayout)
2876+lrPredefinedLayout
2877+ = lens _lrPredefinedLayout
2878+ (\ s a -> s{_lrPredefinedLayout = a})
2879+
2880+-- | Layout ID: the object ID of one of the layouts in the presentation.
2881+lrLayoutId :: Lens' LayoutReference (Maybe Text)
2882+lrLayoutId
2883+ = lens _lrLayoutId (\ s a -> s{_lrLayoutId = a})
2884+
2885+instance FromJSON LayoutReference where
2886+ parseJSON
2887+ = withObject "LayoutReference"
2888+ (\ o ->
2889+ LayoutReference' <$>
2890+ (o .:? "predefinedLayout") <*> (o .:? "layoutId"))
2891+
2892+instance ToJSON LayoutReference where
2893+ toJSON LayoutReference'{..}
2894+ = object
2895+ (catMaybes
2896+ [("predefinedLayout" .=) <$> _lrPredefinedLayout,
2897+ ("layoutId" .=) <$> _lrLayoutId])
2898+
2899+-- | The fill of the line.
2900+--
2901+-- /See:/ 'lineFill' smart constructor.
2902+newtype LineFill = LineFill'
2903+ { _lfSolidFill :: Maybe SolidFill
2904+ } deriving (Eq,Show,Data,Typeable,Generic)
2905+
2906+-- | Creates a value of 'LineFill' with the minimum fields required to make a request.
2907+--
2908+-- Use one of the following lenses to modify other fields as desired:
2909+--
2910+-- * 'lfSolidFill'
2911+lineFill
2912+ :: LineFill
2913+lineFill =
2914+ LineFill'
2915+ { _lfSolidFill = Nothing
2916+ }
2917+
2918+-- | Solid color fill.
2919+lfSolidFill :: Lens' LineFill (Maybe SolidFill)
2920+lfSolidFill
2921+ = lens _lfSolidFill (\ s a -> s{_lfSolidFill = a})
2922+
2923+instance FromJSON LineFill where
2924+ parseJSON
2925+ = withObject "LineFill"
2926+ (\ o -> LineFill' <$> (o .:? "solidFill"))
2927+
2928+instance ToJSON LineFill where
2929+ toJSON LineFill'{..}
2930+ = object
2931+ (catMaybes [("solidFill" .=) <$> _lfSolidFill])
2932+
2933+-- | Updates the transform of a page element.
2934+--
2935+-- /See:/ 'updatePageElementTransformRequest' smart constructor.
2936+data UpdatePageElementTransformRequest = UpdatePageElementTransformRequest'
2937+ { _upetrTransform :: !(Maybe AffineTransform)
2938+ , _upetrObjectId :: !(Maybe Text)
2939+ , _upetrApplyMode :: !(Maybe UpdatePageElementTransformRequestApplyMode)
2940+ } deriving (Eq,Show,Data,Typeable,Generic)
2941+
2942+-- | Creates a value of 'UpdatePageElementTransformRequest' with the minimum fields required to make a request.
2943+--
2944+-- Use one of the following lenses to modify other fields as desired:
2945+--
2946+-- * 'upetrTransform'
2947+--
2948+-- * 'upetrObjectId'
2949+--
2950+-- * 'upetrApplyMode'
2951+updatePageElementTransformRequest
2952+ :: UpdatePageElementTransformRequest
2953+updatePageElementTransformRequest =
2954+ UpdatePageElementTransformRequest'
2955+ { _upetrTransform = Nothing
2956+ , _upetrObjectId = Nothing
2957+ , _upetrApplyMode = Nothing
2958+ }
2959+
2960+-- | The input transform matrix used to update the page element.
2961+upetrTransform :: Lens' UpdatePageElementTransformRequest (Maybe AffineTransform)
2962+upetrTransform
2963+ = lens _upetrTransform
2964+ (\ s a -> s{_upetrTransform = a})
2965+
2966+-- | The object ID of the page element to update.
2967+upetrObjectId :: Lens' UpdatePageElementTransformRequest (Maybe Text)
2968+upetrObjectId
2969+ = lens _upetrObjectId
2970+ (\ s a -> s{_upetrObjectId = a})
2971+
2972+-- | The apply mode of the transform update.
2973+upetrApplyMode :: Lens' UpdatePageElementTransformRequest (Maybe UpdatePageElementTransformRequestApplyMode)
2974+upetrApplyMode
2975+ = lens _upetrApplyMode
2976+ (\ s a -> s{_upetrApplyMode = a})
2977+
2978+instance FromJSON UpdatePageElementTransformRequest
2979+ where
2980+ parseJSON
2981+ = withObject "UpdatePageElementTransformRequest"
2982+ (\ o ->
2983+ UpdatePageElementTransformRequest' <$>
2984+ (o .:? "transform") <*> (o .:? "objectId") <*>
2985+ (o .:? "applyMode"))
2986+
2987+instance ToJSON UpdatePageElementTransformRequest
2988+ where
2989+ toJSON UpdatePageElementTransformRequest'{..}
2990+ = object
2991+ (catMaybes
2992+ [("transform" .=) <$> _upetrTransform,
2993+ ("objectId" .=) <$> _upetrObjectId,
2994+ ("applyMode" .=) <$> _upetrApplyMode])
2995+
2996+-- | Inserts rows into a table.
2997+--
2998+-- /See:/ 'insertTableRowsRequest' smart constructor.
2999+data InsertTableRowsRequest = InsertTableRowsRequest'
3000+ { _itrrInsertBelow :: !(Maybe Bool)
3001+ , _itrrNumber :: !(Maybe (Textual Int32))
3002+ , _itrrCellLocation :: !(Maybe TableCellLocation)
3003+ , _itrrTableObjectId :: !(Maybe Text)
3004+ } deriving (Eq,Show,Data,Typeable,Generic)
3005+
3006+-- | Creates a value of 'InsertTableRowsRequest' with the minimum fields required to make a request.
3007+--
3008+-- Use one of the following lenses to modify other fields as desired:
3009+--
3010+-- * 'itrrInsertBelow'
3011+--
3012+-- * 'itrrNumber'
3013+--
3014+-- * 'itrrCellLocation'
3015+--
3016+-- * 'itrrTableObjectId'
3017+insertTableRowsRequest
3018+ :: InsertTableRowsRequest
3019+insertTableRowsRequest =
3020+ InsertTableRowsRequest'
3021+ { _itrrInsertBelow = Nothing
3022+ , _itrrNumber = Nothing
3023+ , _itrrCellLocation = Nothing
3024+ , _itrrTableObjectId = Nothing
3025+ }
3026+
3027+-- | Whether to insert new rows below the reference cell location. -
3028+-- \`True\`: insert below the cell. - \`False\`: insert above the cell.
3029+itrrInsertBelow :: Lens' InsertTableRowsRequest (Maybe Bool)
3030+itrrInsertBelow
3031+ = lens _itrrInsertBelow
3032+ (\ s a -> s{_itrrInsertBelow = a})
3033+
3034+-- | The number of rows to be inserted. Maximum 20 per request.
3035+itrrNumber :: Lens' InsertTableRowsRequest (Maybe Int32)
3036+itrrNumber
3037+ = lens _itrrNumber (\ s a -> s{_itrrNumber = a}) .
3038+ mapping _Coerce
3039+
3040+-- | The reference table cell location from which rows will be inserted. A
3041+-- new row will be inserted above (or below) the row where the reference
3042+-- cell is. If the reference cell is a merged cell, a new row will be
3043+-- inserted above (or below) the merged cell.
3044+itrrCellLocation :: Lens' InsertTableRowsRequest (Maybe TableCellLocation)
3045+itrrCellLocation
3046+ = lens _itrrCellLocation
3047+ (\ s a -> s{_itrrCellLocation = a})
3048+
3049+-- | The table to insert rows into.
3050+itrrTableObjectId :: Lens' InsertTableRowsRequest (Maybe Text)
3051+itrrTableObjectId
3052+ = lens _itrrTableObjectId
3053+ (\ s a -> s{_itrrTableObjectId = a})
3054+
3055+instance FromJSON InsertTableRowsRequest where
3056+ parseJSON
3057+ = withObject "InsertTableRowsRequest"
3058+ (\ o ->
3059+ InsertTableRowsRequest' <$>
3060+ (o .:? "insertBelow") <*> (o .:? "number") <*>
3061+ (o .:? "cellLocation")
3062+ <*> (o .:? "tableObjectId"))
3063+
3064+instance ToJSON InsertTableRowsRequest where
3065+ toJSON InsertTableRowsRequest'{..}
3066+ = object
3067+ (catMaybes
3068+ [("insertBelow" .=) <$> _itrrInsertBelow,
3069+ ("number" .=) <$> _itrrNumber,
3070+ ("cellLocation" .=) <$> _itrrCellLocation,
3071+ ("tableObjectId" .=) <$> _itrrTableObjectId])
3072+
3073+-- | A PageElement kind representing a video.
3074+--
3075+-- /See:/ 'video' smart constructor.
3076+data Video = Video'
3077+ { _vURL :: !(Maybe Text)
3078+ , _vSource :: !(Maybe VideoSource)
3079+ , _vId :: !(Maybe Text)
3080+ , _vVideoProperties :: !(Maybe VideoProperties)
3081+ } deriving (Eq,Show,Data,Typeable,Generic)
3082+
3083+-- | Creates a value of 'Video' with the minimum fields required to make a request.
3084+--
3085+-- Use one of the following lenses to modify other fields as desired:
3086+--
3087+-- * 'vURL'
3088+--
3089+-- * 'vSource'
3090+--
3091+-- * 'vId'
3092+--
3093+-- * 'vVideoProperties'
3094+video
3095+ :: Video
3096+video =
3097+ Video'
3098+ { _vURL = Nothing
3099+ , _vSource = Nothing
3100+ , _vId = Nothing
3101+ , _vVideoProperties = Nothing
3102+ }
3103+
3104+-- | An URL to a video. The URL is valid as long as the source video exists
3105+-- and sharing settings do not change.
3106+vURL :: Lens' Video (Maybe Text)
3107+vURL = lens _vURL (\ s a -> s{_vURL = a})
3108+
3109+-- | The video source.
3110+vSource :: Lens' Video (Maybe VideoSource)
3111+vSource = lens _vSource (\ s a -> s{_vSource = a})
3112+
3113+-- | The video source\'s unique identifier for this video.
3114+vId :: Lens' Video (Maybe Text)
3115+vId = lens _vId (\ s a -> s{_vId = a})
3116+
3117+-- | The properties of the video.
3118+vVideoProperties :: Lens' Video (Maybe VideoProperties)
3119+vVideoProperties
3120+ = lens _vVideoProperties
3121+ (\ s a -> s{_vVideoProperties = a})
3122+
3123+instance FromJSON Video where
3124+ parseJSON
3125+ = withObject "Video"
3126+ (\ o ->
3127+ Video' <$>
3128+ (o .:? "url") <*> (o .:? "source") <*> (o .:? "id")
3129+ <*> (o .:? "videoProperties"))
3130+
3131+instance ToJSON Video where
3132+ toJSON Video'{..}
3133+ = object
3134+ (catMaybes
3135+ [("url" .=) <$> _vURL, ("source" .=) <$> _vSource,
3136+ ("id" .=) <$> _vId,
3137+ ("videoProperties" .=) <$> _vVideoProperties])
3138+
3139+-- | The properties of the TableCell.
3140+--
3141+-- /See:/ 'tableCellProperties' smart constructor.
3142+newtype TableCellProperties = TableCellProperties'
3143+ { _tcpTableCellBackgRoundFill :: Maybe TableCellBackgRoundFill
3144+ } deriving (Eq,Show,Data,Typeable,Generic)
3145+
3146+-- | Creates a value of 'TableCellProperties' with the minimum fields required to make a request.
3147+--
3148+-- Use one of the following lenses to modify other fields as desired:
3149+--
3150+-- * 'tcpTableCellBackgRoundFill'
3151+tableCellProperties
3152+ :: TableCellProperties
3153+tableCellProperties =
3154+ TableCellProperties'
3155+ { _tcpTableCellBackgRoundFill = Nothing
3156+ }
3157+
3158+-- | The background fill of the table cell. The default fill matches the fill
3159+-- for newly created table cells in the Slides editor.
3160+tcpTableCellBackgRoundFill :: Lens' TableCellProperties (Maybe TableCellBackgRoundFill)
3161+tcpTableCellBackgRoundFill
3162+ = lens _tcpTableCellBackgRoundFill
3163+ (\ s a -> s{_tcpTableCellBackgRoundFill = a})
3164+
3165+instance FromJSON TableCellProperties where
3166+ parseJSON
3167+ = withObject "TableCellProperties"
3168+ (\ o ->
3169+ TableCellProperties' <$>
3170+ (o .:? "tableCellBackgroundFill"))
3171+
3172+instance ToJSON TableCellProperties where
3173+ toJSON TableCellProperties'{..}
3174+ = object
3175+ (catMaybes
3176+ [("tableCellBackgroundFill" .=) <$>
3177+ _tcpTableCellBackgRoundFill])
3178+
3179+-- | The result of creating a line.
3180+--
3181+-- /See:/ 'createLineResponse' smart constructor.
3182+newtype CreateLineResponse = CreateLineResponse'
3183+ { _clrObjectId :: Maybe Text
3184+ } deriving (Eq,Show,Data,Typeable,Generic)
3185+
3186+-- | Creates a value of 'CreateLineResponse' with the minimum fields required to make a request.
3187+--
3188+-- Use one of the following lenses to modify other fields as desired:
3189+--
3190+-- * 'clrObjectId'
3191+createLineResponse
3192+ :: CreateLineResponse
3193+createLineResponse =
3194+ CreateLineResponse'
3195+ { _clrObjectId = Nothing
3196+ }
3197+
3198+-- | The object ID of the created line.
3199+clrObjectId :: Lens' CreateLineResponse (Maybe Text)
3200+clrObjectId
3201+ = lens _clrObjectId (\ s a -> s{_clrObjectId = a})
3202+
3203+instance FromJSON CreateLineResponse where
3204+ parseJSON
3205+ = withObject "CreateLineResponse"
3206+ (\ o -> CreateLineResponse' <$> (o .:? "objectId"))
3207+
3208+instance ToJSON CreateLineResponse where
3209+ toJSON CreateLineResponse'{..}
3210+ = object
3211+ (catMaybes [("objectId" .=) <$> _clrObjectId])
3212+
3213+-- | A PageElement kind representing word art.
3214+--
3215+-- /See:/ 'wordArt' smart constructor.
3216+newtype WordArt = WordArt'
3217+ { _waRenderedText :: Maybe Text
3218+ } deriving (Eq,Show,Data,Typeable,Generic)
3219+
3220+-- | Creates a value of 'WordArt' with the minimum fields required to make a request.
3221+--
3222+-- Use one of the following lenses to modify other fields as desired:
3223+--
3224+-- * 'waRenderedText'
3225+wordArt
3226+ :: WordArt
3227+wordArt =
3228+ WordArt'
3229+ { _waRenderedText = Nothing
3230+ }
3231+
3232+-- | The text rendered as word art.
3233+waRenderedText :: Lens' WordArt (Maybe Text)
3234+waRenderedText
3235+ = lens _waRenderedText
3236+ (\ s a -> s{_waRenderedText = a})
3237+
3238+instance FromJSON WordArt where
3239+ parseJSON
3240+ = withObject "WordArt"
3241+ (\ o -> WordArt' <$> (o .:? "renderedText"))
3242+
3243+instance ToJSON WordArt where
3244+ toJSON WordArt'{..}
3245+ = object
3246+ (catMaybes [("renderedText" .=) <$> _waRenderedText])
3247+
3248+-- | The table cell background fill.
3249+--
3250+-- /See:/ 'tableCellBackgRoundFill' smart constructor.
3251+data TableCellBackgRoundFill = TableCellBackgRoundFill'
3252+ { _tcbrfSolidFill :: !(Maybe SolidFill)
3253+ , _tcbrfPropertyState :: !(Maybe TableCellBackgRoundFillPropertyState)
3254+ } deriving (Eq,Show,Data,Typeable,Generic)
3255+
3256+-- | Creates a value of 'TableCellBackgRoundFill' with the minimum fields required to make a request.
3257+--
3258+-- Use one of the following lenses to modify other fields as desired:
3259+--
3260+-- * 'tcbrfSolidFill'
3261+--
3262+-- * 'tcbrfPropertyState'
3263+tableCellBackgRoundFill
3264+ :: TableCellBackgRoundFill
3265+tableCellBackgRoundFill =
3266+ TableCellBackgRoundFill'
3267+ { _tcbrfSolidFill = Nothing
3268+ , _tcbrfPropertyState = Nothing
3269+ }
3270+
3271+-- | Solid color fill.
3272+tcbrfSolidFill :: Lens' TableCellBackgRoundFill (Maybe SolidFill)
3273+tcbrfSolidFill
3274+ = lens _tcbrfSolidFill
3275+ (\ s a -> s{_tcbrfSolidFill = a})
3276+
3277+-- | The background fill property state. Updating the the fill on a table
3278+-- cell will implicitly update this field to \`RENDERED\`, unless another
3279+-- value is specified in the same request. To have no fill on a table cell,
3280+-- set this field to \`NOT_RENDERED\`. In this case, any other fill fields
3281+-- set in the same request will be ignored.
3282+tcbrfPropertyState :: Lens' TableCellBackgRoundFill (Maybe TableCellBackgRoundFillPropertyState)
3283+tcbrfPropertyState
3284+ = lens _tcbrfPropertyState
3285+ (\ s a -> s{_tcbrfPropertyState = a})
3286+
3287+instance FromJSON TableCellBackgRoundFill where
3288+ parseJSON
3289+ = withObject "TableCellBackgRoundFill"
3290+ (\ o ->
3291+ TableCellBackgRoundFill' <$>
3292+ (o .:? "solidFill") <*> (o .:? "propertyState"))
3293+
3294+instance ToJSON TableCellBackgRoundFill where
3295+ toJSON TableCellBackgRoundFill'{..}
3296+ = object
3297+ (catMaybes
3298+ [("solidFill" .=) <$> _tcbrfSolidFill,
3299+ ("propertyState" .=) <$> _tcbrfPropertyState])
3300+
3301+-- | A TextElement kind that represents a run of text that all has the same
3302+-- styling.
3303+--
3304+-- /See:/ 'textRun' smart constructor.
3305+data TextRun = TextRun'
3306+ { _trStyle :: !(Maybe TextStyle)
3307+ , _trContent :: !(Maybe Text)
3308+ } deriving (Eq,Show,Data,Typeable,Generic)
3309+
3310+-- | Creates a value of 'TextRun' with the minimum fields required to make a request.
3311+--
3312+-- Use one of the following lenses to modify other fields as desired:
3313+--
3314+-- * 'trStyle'
3315+--
3316+-- * 'trContent'
3317+textRun
3318+ :: TextRun
3319+textRun =
3320+ TextRun'
3321+ { _trStyle = Nothing
3322+ , _trContent = Nothing
3323+ }
3324+
3325+-- | The styling applied to this run.
3326+trStyle :: Lens' TextRun (Maybe TextStyle)
3327+trStyle = lens _trStyle (\ s a -> s{_trStyle = a})
3328+
3329+-- | The text of this run.
3330+trContent :: Lens' TextRun (Maybe Text)
3331+trContent
3332+ = lens _trContent (\ s a -> s{_trContent = a})
3333+
3334+instance FromJSON TextRun where
3335+ parseJSON
3336+ = withObject "TextRun"
3337+ (\ o ->
3338+ TextRun' <$> (o .:? "style") <*> (o .:? "content"))
3339+
3340+instance ToJSON TextRun where
3341+ toJSON TextRun'{..}
3342+ = object
3343+ (catMaybes
3344+ [("style" .=) <$> _trStyle,
3345+ ("content" .=) <$> _trContent])
3346+
3347+-- | Refreshes an embedded Google Sheets chart by replacing it with the
3348+-- latest version of the chart from Google Sheets. NOTE: Refreshing charts
3349+-- requires at least one of the spreadsheets.readonly, spreadsheets,
3350+-- drive.readonly, or drive OAuth scopes.
3351+--
3352+-- /See:/ 'refreshSheetsChartRequest' smart constructor.
3353+newtype RefreshSheetsChartRequest = RefreshSheetsChartRequest'
3354+ { _rscrObjectId :: Maybe Text
3355+ } deriving (Eq,Show,Data,Typeable,Generic)
3356+
3357+-- | Creates a value of 'RefreshSheetsChartRequest' with the minimum fields required to make a request.
3358+--
3359+-- Use one of the following lenses to modify other fields as desired:
3360+--
3361+-- * 'rscrObjectId'
3362+refreshSheetsChartRequest
3363+ :: RefreshSheetsChartRequest
3364+refreshSheetsChartRequest =
3365+ RefreshSheetsChartRequest'
3366+ { _rscrObjectId = Nothing
3367+ }
3368+
3369+-- | The object ID of the chart to refresh.
3370+rscrObjectId :: Lens' RefreshSheetsChartRequest (Maybe Text)
3371+rscrObjectId
3372+ = lens _rscrObjectId (\ s a -> s{_rscrObjectId = a})
3373+
3374+instance FromJSON RefreshSheetsChartRequest where
3375+ parseJSON
3376+ = withObject "RefreshSheetsChartRequest"
3377+ (\ o ->
3378+ RefreshSheetsChartRequest' <$> (o .:? "objectId"))
3379+
3380+instance ToJSON RefreshSheetsChartRequest where
3381+ toJSON RefreshSheetsChartRequest'{..}
3382+ = object
3383+ (catMaybes [("objectId" .=) <$> _rscrObjectId])
3384+
3385+-- | Properties and contents of each row in a table.
3386+--
3387+-- /See:/ 'tableRow' smart constructor.
3388+data TableRow = TableRow'
3389+ { _trTableCells :: !(Maybe [TableCell])
3390+ , _trRowHeight :: !(Maybe Dimension)
3391+ } deriving (Eq,Show,Data,Typeable,Generic)
3392+
3393+-- | Creates a value of 'TableRow' with the minimum fields required to make a request.
3394+--
3395+-- Use one of the following lenses to modify other fields as desired:
3396+--
3397+-- * 'trTableCells'
3398+--
3399+-- * 'trRowHeight'
3400+tableRow
3401+ :: TableRow
3402+tableRow =
3403+ TableRow'
3404+ { _trTableCells = Nothing
3405+ , _trRowHeight = Nothing
3406+ }
3407+
3408+-- | Properties and contents of each cell. Cells that span multiple columns
3409+-- are represented only once with a column_span greater than 1. As a
3410+-- result, the length of this collection does not always match the number
3411+-- of columns of the entire table.
3412+trTableCells :: Lens' TableRow [TableCell]
3413+trTableCells
3414+ = lens _trTableCells (\ s a -> s{_trTableCells = a})
3415+ . _Default
3416+ . _Coerce
3417+
3418+-- | Height of a row.
3419+trRowHeight :: Lens' TableRow (Maybe Dimension)
3420+trRowHeight
3421+ = lens _trRowHeight (\ s a -> s{_trRowHeight = a})
3422+
3423+instance FromJSON TableRow where
3424+ parseJSON
3425+ = withObject "TableRow"
3426+ (\ o ->
3427+ TableRow' <$>
3428+ (o .:? "tableCells" .!= mempty) <*>
3429+ (o .:? "rowHeight"))
3430+
3431+instance ToJSON TableRow where
3432+ toJSON TableRow'{..}
3433+ = object
3434+ (catMaybes
3435+ [("tableCells" .=) <$> _trTableCells,
3436+ ("rowHeight" .=) <$> _trRowHeight])
3437+
3438+-- | Creates a video.
3439+--
3440+-- /See:/ 'createVideoRequest' smart constructor.
3441+data CreateVideoRequest = CreateVideoRequest'
3442+ { _creObjectId :: !(Maybe Text)
3443+ , _creElementProperties :: !(Maybe PageElementProperties)
3444+ , _creSource :: !(Maybe CreateVideoRequestSource)
3445+ , _creId :: !(Maybe Text)
3446+ } deriving (Eq,Show,Data,Typeable,Generic)
3447+
3448+-- | Creates a value of 'CreateVideoRequest' with the minimum fields required to make a request.
3449+--
3450+-- Use one of the following lenses to modify other fields as desired:
3451+--
3452+-- * 'creObjectId'
3453+--
3454+-- * 'creElementProperties'
3455+--
3456+-- * 'creSource'
3457+--
3458+-- * 'creId'
3459+createVideoRequest
3460+ :: CreateVideoRequest
3461+createVideoRequest =
3462+ CreateVideoRequest'
3463+ { _creObjectId = Nothing
3464+ , _creElementProperties = Nothing
3465+ , _creSource = Nothing
3466+ , _creId = Nothing
3467+ }
3468+
3469+-- | A user-supplied object ID. If you specify an ID, it must be unique among
3470+-- all pages and page elements in the presentation. The ID must start with
3471+-- an alphanumeric character or an underscore (matches regex
3472+-- \`[a-zA-Z0-9_]\`); remaining characters may include those as well as a
3473+-- hyphen or colon (matches regex \`[a-zA-Z0-9_-:]\`). The length of the ID
3474+-- must not be less than 5 or greater than 50. If you don\'t specify an ID,
3475+-- a unique one is generated.
3476+creObjectId :: Lens' CreateVideoRequest (Maybe Text)
3477+creObjectId
3478+ = lens _creObjectId (\ s a -> s{_creObjectId = a})
3479+
3480+-- | The element properties for the video.
3481+creElementProperties :: Lens' CreateVideoRequest (Maybe PageElementProperties)
3482+creElementProperties
3483+ = lens _creElementProperties
3484+ (\ s a -> s{_creElementProperties = a})
3485+
3486+-- | The video source.
3487+creSource :: Lens' CreateVideoRequest (Maybe CreateVideoRequestSource)
3488+creSource
3489+ = lens _creSource (\ s a -> s{_creSource = a})
3490+
3491+-- | The video source\'s unique identifier for this video. e.g. For YouTube
3492+-- video https:\/\/www.youtube.com\/watch?v=7U3axjORYZ0, the ID is
3493+-- 7U3axjORYZ0.
3494+creId :: Lens' CreateVideoRequest (Maybe Text)
3495+creId = lens _creId (\ s a -> s{_creId = a})
3496+
3497+instance FromJSON CreateVideoRequest where
3498+ parseJSON
3499+ = withObject "CreateVideoRequest"
3500+ (\ o ->
3501+ CreateVideoRequest' <$>
3502+ (o .:? "objectId") <*> (o .:? "elementProperties")
3503+ <*> (o .:? "source")
3504+ <*> (o .:? "id"))
3505+
3506+instance ToJSON CreateVideoRequest where
3507+ toJSON CreateVideoRequest'{..}
3508+ = object
3509+ (catMaybes
3510+ [("objectId" .=) <$> _creObjectId,
3511+ ("elementProperties" .=) <$> _creElementProperties,
3512+ ("source" .=) <$> _creSource, ("id" .=) <$> _creId])
3513+
3514+-- | The general text content. The text must reside in a compatible shape
3515+-- (e.g. text box or rectangle) or a table cell in a page.
3516+--
3517+-- /See:/ 'textContent' smart constructor.
3518+data TextContent = TextContent'
3519+ { _tcTextElements :: !(Maybe [TextElement])
3520+ , _tcLists :: !(Maybe TextContentLists)
3521+ } deriving (Eq,Show,Data,Typeable,Generic)
3522+
3523+-- | Creates a value of 'TextContent' with the minimum fields required to make a request.
3524+--
3525+-- Use one of the following lenses to modify other fields as desired:
3526+--
3527+-- * 'tcTextElements'
3528+--
3529+-- * 'tcLists'
3530+textContent
3531+ :: TextContent
3532+textContent =
3533+ TextContent'
3534+ { _tcTextElements = Nothing
3535+ , _tcLists = Nothing
3536+ }
3537+
3538+-- | The text contents broken down into its component parts, including
3539+-- styling information. This property is read-only.
3540+tcTextElements :: Lens' TextContent [TextElement]
3541+tcTextElements
3542+ = lens _tcTextElements
3543+ (\ s a -> s{_tcTextElements = a})
3544+ . _Default
3545+ . _Coerce
3546+
3547+-- | The bulleted lists contained in this text, keyed by list ID.
3548+tcLists :: Lens' TextContent (Maybe TextContentLists)
3549+tcLists = lens _tcLists (\ s a -> s{_tcLists = a})
3550+
3551+instance FromJSON TextContent where
3552+ parseJSON
3553+ = withObject "TextContent"
3554+ (\ o ->
3555+ TextContent' <$>
3556+ (o .:? "textElements" .!= mempty) <*>
3557+ (o .:? "lists"))
3558+
3559+instance ToJSON TextContent where
3560+ toJSON TextContent'{..}
3561+ = object
3562+ (catMaybes
3563+ [("textElements" .=) <$> _tcTextElements,
3564+ ("lists" .=) <$> _tcLists])
3565+
3566+-- | A PageElement kind representing a generic shape that does not have a
3567+-- more specific classification.
3568+--
3569+-- /See:/ 'shape' smart constructor.
3570+data Shape = Shape'
3571+ { _sShapeType :: !(Maybe ShapeShapeType)
3572+ , _sText :: !(Maybe TextContent)
3573+ , _sPlaceholder :: !(Maybe Placeholder)
3574+ , _sShapeProperties :: !(Maybe ShapeProperties)
3575+ } deriving (Eq,Show,Data,Typeable,Generic)
3576+
3577+-- | Creates a value of 'Shape' with the minimum fields required to make a request.
3578+--
3579+-- Use one of the following lenses to modify other fields as desired:
3580+--
3581+-- * 'sShapeType'
3582+--
3583+-- * 'sText'
3584+--
3585+-- * 'sPlaceholder'
3586+--
3587+-- * 'sShapeProperties'
3588+shape
3589+ :: Shape
3590+shape =
3591+ Shape'
3592+ { _sShapeType = Nothing
3593+ , _sText = Nothing
3594+ , _sPlaceholder = Nothing
3595+ , _sShapeProperties = Nothing
3596+ }
3597+
3598+-- | The type of the shape.
3599+sShapeType :: Lens' Shape (Maybe ShapeShapeType)
3600+sShapeType
3601+ = lens _sShapeType (\ s a -> s{_sShapeType = a})
3602+
3603+-- | The text content of the shape.
3604+sText :: Lens' Shape (Maybe TextContent)
3605+sText = lens _sText (\ s a -> s{_sText = a})
3606+
3607+-- | Placeholders are shapes that are inherit from corresponding placeholders
3608+-- on layouts and masters. If set, the shape is a placeholder shape and any
3609+-- inherited properties can be resolved by looking at the parent
3610+-- placeholder identified by the Placeholder.parent_object_id field.
3611+sPlaceholder :: Lens' Shape (Maybe Placeholder)
3612+sPlaceholder
3613+ = lens _sPlaceholder (\ s a -> s{_sPlaceholder = a})
3614+
3615+-- | The properties of the shape.
3616+sShapeProperties :: Lens' Shape (Maybe ShapeProperties)
3617+sShapeProperties
3618+ = lens _sShapeProperties
3619+ (\ s a -> s{_sShapeProperties = a})
3620+
3621+instance FromJSON Shape where
3622+ parseJSON
3623+ = withObject "Shape"
3624+ (\ o ->
3625+ Shape' <$>
3626+ (o .:? "shapeType") <*> (o .:? "text") <*>
3627+ (o .:? "placeholder")
3628+ <*> (o .:? "shapeProperties"))
3629+
3630+instance ToJSON Shape where
3631+ toJSON Shape'{..}
3632+ = object
3633+ (catMaybes
3634+ [("shapeType" .=) <$> _sShapeType,
3635+ ("text" .=) <$> _sText,
3636+ ("placeholder" .=) <$> _sPlaceholder,
3637+ ("shapeProperties" .=) <$> _sShapeProperties])
3638+
3639+-- | AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ]
3640+-- to transform source coordinates (x,y) into destination coordinates (x\',
3641+-- y\') according to: x\' x = shear_y scale_y translate_y 1 [ 1 ] After
3642+-- transformation, x\' = scale_x * x + shear_x * y + translate_x; y\' =
3643+-- scale_y * y + shear_y * x + translate_y; This message is therefore
3644+-- composed of these six matrix elements.
3645+--
3646+-- /See:/ 'affineTransform' smart constructor.
3647+data AffineTransform = AffineTransform'
3648+ { _atTranslateX :: !(Maybe (Textual Double))
3649+ , _atShearY :: !(Maybe (Textual Double))
3650+ , _atTranslateY :: !(Maybe (Textual Double))
3651+ , _atShearX :: !(Maybe (Textual Double))
3652+ , _atScaleX :: !(Maybe (Textual Double))
3653+ , _atUnit :: !(Maybe AffineTransformUnit)
3654+ , _atScaleY :: !(Maybe (Textual Double))
3655+ } deriving (Eq,Show,Data,Typeable,Generic)
3656+
3657+-- | Creates a value of 'AffineTransform' with the minimum fields required to make a request.
3658+--
3659+-- Use one of the following lenses to modify other fields as desired:
3660+--
3661+-- * 'atTranslateX'
3662+--
3663+-- * 'atShearY'
3664+--
3665+-- * 'atTranslateY'
3666+--
3667+-- * 'atShearX'
3668+--
3669+-- * 'atScaleX'
3670+--
3671+-- * 'atUnit'
3672+--
3673+-- * 'atScaleY'
3674+affineTransform
3675+ :: AffineTransform
3676+affineTransform =
3677+ AffineTransform'
3678+ { _atTranslateX = Nothing
3679+ , _atShearY = Nothing
3680+ , _atTranslateY = Nothing
3681+ , _atShearX = Nothing
3682+ , _atScaleX = Nothing
3683+ , _atUnit = Nothing
3684+ , _atScaleY = Nothing
3685+ }
3686+
3687+-- | The X coordinate translation element.
3688+atTranslateX :: Lens' AffineTransform (Maybe Double)
3689+atTranslateX
3690+ = lens _atTranslateX (\ s a -> s{_atTranslateX = a})
3691+ . mapping _Coerce
3692+
3693+-- | The Y coordinate shearing element.
3694+atShearY :: Lens' AffineTransform (Maybe Double)
3695+atShearY
3696+ = lens _atShearY (\ s a -> s{_atShearY = a}) .
3697+ mapping _Coerce
3698+
3699+-- | The Y coordinate translation element.
3700+atTranslateY :: Lens' AffineTransform (Maybe Double)
3701+atTranslateY
3702+ = lens _atTranslateY (\ s a -> s{_atTranslateY = a})
3703+ . mapping _Coerce
3704+
3705+-- | The X coordinate shearing element.
3706+atShearX :: Lens' AffineTransform (Maybe Double)
3707+atShearX
3708+ = lens _atShearX (\ s a -> s{_atShearX = a}) .
3709+ mapping _Coerce
3710+
3711+-- | The X coordinate scaling element.
3712+atScaleX :: Lens' AffineTransform (Maybe Double)
3713+atScaleX
3714+ = lens _atScaleX (\ s a -> s{_atScaleX = a}) .
3715+ mapping _Coerce
3716+
3717+-- | The units for translate elements.
3718+atUnit :: Lens' AffineTransform (Maybe AffineTransformUnit)
3719+atUnit = lens _atUnit (\ s a -> s{_atUnit = a})
3720+
3721+-- | The Y coordinate scaling element.
3722+atScaleY :: Lens' AffineTransform (Maybe Double)
3723+atScaleY
3724+ = lens _atScaleY (\ s a -> s{_atScaleY = a}) .
3725+ mapping _Coerce
3726+
3727+instance FromJSON AffineTransform where
3728+ parseJSON
3729+ = withObject "AffineTransform"
3730+ (\ o ->
3731+ AffineTransform' <$>
3732+ (o .:? "translateX") <*> (o .:? "shearY") <*>
3733+ (o .:? "translateY")
3734+ <*> (o .:? "shearX")
3735+ <*> (o .:? "scaleX")
3736+ <*> (o .:? "unit")
3737+ <*> (o .:? "scaleY"))
3738+
3739+instance ToJSON AffineTransform where
3740+ toJSON AffineTransform'{..}
3741+ = object
3742+ (catMaybes
3743+ [("translateX" .=) <$> _atTranslateX,
3744+ ("shearY" .=) <$> _atShearY,
3745+ ("translateY" .=) <$> _atTranslateY,
3746+ ("shearX" .=) <$> _atShearX,
3747+ ("scaleX" .=) <$> _atScaleX, ("unit" .=) <$> _atUnit,
3748+ ("scaleY" .=) <$> _atScaleY])
3749+
3750+-- | The result of creating an embedded Google Sheets chart.
3751+--
3752+-- /See:/ 'createSheetsChartResponse' smart constructor.
3753+newtype CreateSheetsChartResponse = CreateSheetsChartResponse'
3754+ { _cscrsObjectId :: Maybe Text
3755+ } deriving (Eq,Show,Data,Typeable,Generic)
3756+
3757+-- | Creates a value of 'CreateSheetsChartResponse' with the minimum fields required to make a request.
3758+--
3759+-- Use one of the following lenses to modify other fields as desired:
3760+--
3761+-- * 'cscrsObjectId'
3762+createSheetsChartResponse
3763+ :: CreateSheetsChartResponse
3764+createSheetsChartResponse =
3765+ CreateSheetsChartResponse'
3766+ { _cscrsObjectId = Nothing
3767+ }
3768+
3769+-- | The object ID of the created chart.
3770+cscrsObjectId :: Lens' CreateSheetsChartResponse (Maybe Text)
3771+cscrsObjectId
3772+ = lens _cscrsObjectId
3773+ (\ s a -> s{_cscrsObjectId = a})
3774+
3775+instance FromJSON CreateSheetsChartResponse where
3776+ parseJSON
3777+ = withObject "CreateSheetsChartResponse"
3778+ (\ o ->
3779+ CreateSheetsChartResponse' <$> (o .:? "objectId"))
3780+
3781+instance ToJSON CreateSheetsChartResponse where
3782+ toJSON CreateSheetsChartResponse'{..}
3783+ = object
3784+ (catMaybes [("objectId" .=) <$> _cscrsObjectId])
3785+
3786+-- | Specifies a contiguous range of an indexed collection, such as
3787+-- characters in text.
3788+--
3789+-- /See:/ 'range' smart constructor.
3790+data Range = Range'
3791+ { _rEndIndex :: !(Maybe (Textual Int32))
3792+ , _rType :: !(Maybe RangeType)
3793+ , _rStartIndex :: !(Maybe (Textual Int32))
3794+ } deriving (Eq,Show,Data,Typeable,Generic)
3795+
3796+-- | Creates a value of 'Range' with the minimum fields required to make a request.
3797+--
3798+-- Use one of the following lenses to modify other fields as desired:
3799+--
3800+-- * 'rEndIndex'
3801+--
3802+-- * 'rType'
3803+--
3804+-- * 'rStartIndex'
3805+range
3806+ :: Range
3807+range =
3808+ Range'
3809+ { _rEndIndex = Nothing
3810+ , _rType = Nothing
3811+ , _rStartIndex = Nothing
3812+ }
3813+
3814+-- | The optional zero-based index of the end of the collection. Required for
3815+-- \`SPECIFIC_RANGE\` delete mode.
3816+rEndIndex :: Lens' Range (Maybe Int32)
3817+rEndIndex
3818+ = lens _rEndIndex (\ s a -> s{_rEndIndex = a}) .
3819+ mapping _Coerce
3820+
3821+-- | The type of range.
3822+rType :: Lens' Range (Maybe RangeType)
3823+rType = lens _rType (\ s a -> s{_rType = a})
3824+
3825+-- | The optional zero-based index of the beginning of the collection.
3826+-- Required for \`SPECIFIC_RANGE\` and \`FROM_START_INDEX\` ranges.
3827+rStartIndex :: Lens' Range (Maybe Int32)
3828+rStartIndex
3829+ = lens _rStartIndex (\ s a -> s{_rStartIndex = a}) .
3830+ mapping _Coerce
3831+
3832+instance FromJSON Range where
3833+ parseJSON
3834+ = withObject "Range"
3835+ (\ o ->
3836+ Range' <$>
3837+ (o .:? "endIndex") <*> (o .:? "type") <*>
3838+ (o .:? "startIndex"))
3839+
3840+instance ToJSON Range where
3841+ toJSON Range'{..}
3842+ = object
3843+ (catMaybes
3844+ [("endIndex" .=) <$> _rEndIndex,
3845+ ("type" .=) <$> _rType,
3846+ ("startIndex" .=) <$> _rStartIndex])
3847+
3848+-- | Creates an image.
3849+--
3850+-- /See:/ 'createImageRequest' smart constructor.
3851+data CreateImageRequest = CreateImageRequest'
3852+ { _cirObjectId :: !(Maybe Text)
3853+ , _cirURL :: !(Maybe Text)
3854+ , _cirElementProperties :: !(Maybe PageElementProperties)
3855+ } deriving (Eq,Show,Data,Typeable,Generic)
3856+
3857+-- | Creates a value of 'CreateImageRequest' with the minimum fields required to make a request.
3858+--
3859+-- Use one of the following lenses to modify other fields as desired:
3860+--
3861+-- * 'cirObjectId'
3862+--
3863+-- * 'cirURL'
3864+--
3865+-- * 'cirElementProperties'
3866+createImageRequest
3867+ :: CreateImageRequest
3868+createImageRequest =
3869+ CreateImageRequest'
3870+ { _cirObjectId = Nothing
3871+ , _cirURL = Nothing
3872+ , _cirElementProperties = Nothing
3873+ }
3874+
3875+-- | A user-supplied object ID. If you specify an ID, it must be unique among
3876+-- all pages and page elements in the presentation. The ID must start with
3877+-- an alphanumeric character or an underscore (matches regex
3878+-- \`[a-zA-Z0-9_]\`); remaining characters may include those as well as a
3879+-- hyphen or colon (matches regex \`[a-zA-Z0-9_-:]\`). The length of the ID
3880+-- must not be less than 5 or greater than 50. If you don\'t specify an ID,
3881+-- a unique one is generated.
3882+cirObjectId :: Lens' CreateImageRequest (Maybe Text)
3883+cirObjectId
3884+ = lens _cirObjectId (\ s a -> s{_cirObjectId = a})
3885+
3886+-- | The image URL. The image is fetched once at insertion time and a copy is
3887+-- stored for display inside the presentation. Images must be less than
3888+-- 50MB in size, cannot exceed 25 megapixels, and must be in either in PNG,
3889+-- JPEG, or GIF format.
3890+cirURL :: Lens' CreateImageRequest (Maybe Text)
3891+cirURL = lens _cirURL (\ s a -> s{_cirURL = a})
3892+
3893+-- | The element properties for the image. When the aspect ratio of the
3894+-- provided size does not match the image aspect ratio, the image is scaled
3895+-- and centered with respect to the size in order to maintain aspect ratio.
3896+-- The provided transform is applied after this operation.
3897+cirElementProperties :: Lens' CreateImageRequest (Maybe PageElementProperties)
3898+cirElementProperties
3899+ = lens _cirElementProperties
3900+ (\ s a -> s{_cirElementProperties = a})
3901+
3902+instance FromJSON CreateImageRequest where
3903+ parseJSON
3904+ = withObject "CreateImageRequest"
3905+ (\ o ->
3906+ CreateImageRequest' <$>
3907+ (o .:? "objectId") <*> (o .:? "url") <*>
3908+ (o .:? "elementProperties"))
3909+
3910+instance ToJSON CreateImageRequest where
3911+ toJSON CreateImageRequest'{..}
3912+ = object
3913+ (catMaybes
3914+ [("objectId" .=) <$> _cirObjectId,
3915+ ("url" .=) <$> _cirURL,
3916+ ("elementProperties" .=) <$> _cirElementProperties])
3917+
3918+-- | Represents the styling that can be applied to a TextRun. If this text is
3919+-- contained in a shape with a parent placeholder, then these text styles
3920+-- may be inherited from the parent. Which text styles are inherited depend
3921+-- on the nesting level of lists: * A text run in a paragraph that is not
3922+-- in a list will inherit its text style from the the newline character in
3923+-- the paragraph at the 0 nesting level of the list inside the parent
3924+-- placeholder. * A text run in a paragraph that is in a list will inherit
3925+-- its text style from the newline character in the paragraph at its
3926+-- corresponding nesting level of the list inside the parent placeholder.
3927+-- Inherited text styles are represented as unset fields in this message.
3928+-- If text is contained in a shape without a parent placeholder, unsetting
3929+-- these fields will revert the style to a value matching the defaults in
3930+-- the Slides editor.
3931+--
3932+-- /See:/ 'textStyle' smart constructor.
3933+data TextStyle = TextStyle'
3934+ { _tsFontFamily :: !(Maybe Text)
3935+ , _tsLink :: !(Maybe Link)
3936+ , _tsBackgRoundColor :: !(Maybe OptionalColor)
3937+ , _tsBaselineOffSet :: !(Maybe TextStyleBaselineOffSet)
3938+ , _tsForegRoundColor :: !(Maybe OptionalColor)
3939+ , _tsFontSize :: !(Maybe Dimension)
3940+ , _tsSmallCaps :: !(Maybe Bool)
3941+ , _tsUnderline :: !(Maybe Bool)
3942+ , _tsItalic :: !(Maybe Bool)
3943+ , _tsBold :: !(Maybe Bool)
3944+ , _tsStrikethrough :: !(Maybe Bool)
3945+ } deriving (Eq,Show,Data,Typeable,Generic)
3946+
3947+-- | Creates a value of 'TextStyle' with the minimum fields required to make a request.
3948+--
3949+-- Use one of the following lenses to modify other fields as desired:
3950+--
3951+-- * 'tsFontFamily'
3952+--
3953+-- * 'tsLink'
3954+--
3955+-- * 'tsBackgRoundColor'
3956+--
3957+-- * 'tsBaselineOffSet'
3958+--
3959+-- * 'tsForegRoundColor'
3960+--
3961+-- * 'tsFontSize'
3962+--
3963+-- * 'tsSmallCaps'
3964+--
3965+-- * 'tsUnderline'
3966+--
3967+-- * 'tsItalic'
3968+--
3969+-- * 'tsBold'
3970+--
3971+-- * 'tsStrikethrough'
3972+textStyle
3973+ :: TextStyle
3974+textStyle =
3975+ TextStyle'
3976+ { _tsFontFamily = Nothing
3977+ , _tsLink = Nothing
3978+ , _tsBackgRoundColor = Nothing
3979+ , _tsBaselineOffSet = Nothing
3980+ , _tsForegRoundColor = Nothing
3981+ , _tsFontSize = Nothing
3982+ , _tsSmallCaps = Nothing
3983+ , _tsUnderline = Nothing
3984+ , _tsItalic = Nothing
3985+ , _tsBold = Nothing
3986+ , _tsStrikethrough = Nothing
3987+ }
3988+
3989+-- | The font family of the text. The font family can be any font from the
3990+-- Font menu in Slides or from [Google Fonts]
3991+-- (https:\/\/fonts.google.com\/). If the font name is unrecognized, the
3992+-- text is rendered in \`Arial\`. Some fonts can affect the weight of the
3993+-- text. If an update request specifies values for both \`font_family\` and
3994+-- \`bold\`, the explicitly-set \`bold\` value is used.
3995+tsFontFamily :: Lens' TextStyle (Maybe Text)
3996+tsFontFamily
3997+ = lens _tsFontFamily (\ s a -> s{_tsFontFamily = a})
3998+
3999+-- | The hyperlink destination of the text. If unset, there is no link. Links
4000+-- are not inherited from parent text. Changing the link in an update
4001+-- request causes some other changes to the text style of the range: * When
4002+-- setting a link, the text foreground color will be set to
4003+-- ThemeColorType.HYPERLINK and the text will be underlined. If these
4004+-- fields are modified in the same request, those values will be used
4005+-- instead of the link defaults. * Setting a link on a text range that
4006+-- overlaps with an existing link will also update the existing link to
4007+-- point to the new URL. * Links are not settable on newline characters. As
4008+-- a result, setting a link on a text range that crosses a paragraph
4009+-- boundary, such as \`\"ABC\\n123\"\`, will separate the newline
4010+-- character(s) into their own text runs. The link will be applied
4011+-- separately to the runs before and after the newline. * Removing a link
4012+-- will update the text style of the range to match the style of the
4013+-- preceding text (or the default text styles if the preceding text is
4014+-- another link) unless different styles are being set in the same request.
4015+tsLink :: Lens' TextStyle (Maybe Link)
4016+tsLink = lens _tsLink (\ s a -> s{_tsLink = a})
4017+
4018+-- | The background color of the text. If set, the color is either opaque or
4019+-- transparent, depending on if the \`opaque_color\` field in it is set.
4020+tsBackgRoundColor :: Lens' TextStyle (Maybe OptionalColor)
4021+tsBackgRoundColor
4022+ = lens _tsBackgRoundColor
4023+ (\ s a -> s{_tsBackgRoundColor = a})
4024+
4025+-- | The text\'s vertical offset from its normal position. Text with
4026+-- \`SUPERSCRIPT\` or \`SUBSCRIPT\` baseline offsets is automatically
4027+-- rendered in a smaller font size, computed based on the \`font_size\`
4028+-- field. The \`font_size\` itself is not affected by changes in this
4029+-- field.
4030+tsBaselineOffSet :: Lens' TextStyle (Maybe TextStyleBaselineOffSet)
4031+tsBaselineOffSet
4032+ = lens _tsBaselineOffSet
4033+ (\ s a -> s{_tsBaselineOffSet = a})
4034+
4035+-- | The color of the text itself. If set, the color is either opaque or
4036+-- transparent, depending on if the \`opaque_color\` field in it is set.
4037+tsForegRoundColor :: Lens' TextStyle (Maybe OptionalColor)
4038+tsForegRoundColor
4039+ = lens _tsForegRoundColor
4040+ (\ s a -> s{_tsForegRoundColor = a})
4041+
4042+-- | The size of the text\'s font. When read, the \`font_size\` will
4043+-- specified in points.
4044+tsFontSize :: Lens' TextStyle (Maybe Dimension)
4045+tsFontSize
4046+ = lens _tsFontSize (\ s a -> s{_tsFontSize = a})
4047+
4048+-- | Whether or not the text is in small capital letters.
4049+tsSmallCaps :: Lens' TextStyle (Maybe Bool)
4050+tsSmallCaps
4051+ = lens _tsSmallCaps (\ s a -> s{_tsSmallCaps = a})
4052+
4053+-- | Whether or not the text is underlined.
4054+tsUnderline :: Lens' TextStyle (Maybe Bool)
4055+tsUnderline
4056+ = lens _tsUnderline (\ s a -> s{_tsUnderline = a})
4057+
4058+-- | Whether or not the text is italicized.
4059+tsItalic :: Lens' TextStyle (Maybe Bool)
4060+tsItalic = lens _tsItalic (\ s a -> s{_tsItalic = a})
4061+
4062+-- | Whether or not the text is bold.
4063+tsBold :: Lens' TextStyle (Maybe Bool)
4064+tsBold = lens _tsBold (\ s a -> s{_tsBold = a})
4065+
4066+-- | Whether or not the text is struck through.
4067+tsStrikethrough :: Lens' TextStyle (Maybe Bool)
4068+tsStrikethrough
4069+ = lens _tsStrikethrough
4070+ (\ s a -> s{_tsStrikethrough = a})
4071+
4072+instance FromJSON TextStyle where
4073+ parseJSON
4074+ = withObject "TextStyle"
4075+ (\ o ->
4076+ TextStyle' <$>
4077+ (o .:? "fontFamily") <*> (o .:? "link") <*>
4078+ (o .:? "backgroundColor")
4079+ <*> (o .:? "baselineOffset")
4080+ <*> (o .:? "foregroundColor")
4081+ <*> (o .:? "fontSize")
4082+ <*> (o .:? "smallCaps")
4083+ <*> (o .:? "underline")
4084+ <*> (o .:? "italic")
4085+ <*> (o .:? "bold")
4086+ <*> (o .:? "strikethrough"))
4087+
4088+instance ToJSON TextStyle where
4089+ toJSON TextStyle'{..}
4090+ = object
4091+ (catMaybes
4092+ [("fontFamily" .=) <$> _tsFontFamily,
4093+ ("link" .=) <$> _tsLink,
4094+ ("backgroundColor" .=) <$> _tsBackgRoundColor,
4095+ ("baselineOffset" .=) <$> _tsBaselineOffSet,
4096+ ("foregroundColor" .=) <$> _tsForegRoundColor,
4097+ ("fontSize" .=) <$> _tsFontSize,
4098+ ("smallCaps" .=) <$> _tsSmallCaps,
4099+ ("underline" .=) <$> _tsUnderline,
4100+ ("italic" .=) <$> _tsItalic, ("bold" .=) <$> _tsBold,
4101+ ("strikethrough" .=) <$> _tsStrikethrough])
4102+
4103+-- | A solid color fill. The page or page element is filled entirely with the
4104+-- specified color value. If any field is unset, its value may be inherited
4105+-- from a parent placeholder if it exists.
4106+--
4107+-- /See:/ 'solidFill' smart constructor.
4108+data SolidFill = SolidFill'
4109+ { _sfColor :: !(Maybe OpaqueColor)
4110+ , _sfAlpha :: !(Maybe (Textual Double))
4111+ } deriving (Eq,Show,Data,Typeable,Generic)
4112+
4113+-- | Creates a value of 'SolidFill' with the minimum fields required to make a request.
4114+--
4115+-- Use one of the following lenses to modify other fields as desired:
4116+--
4117+-- * 'sfColor'
4118+--
4119+-- * 'sfAlpha'
4120+solidFill
4121+ :: SolidFill
4122+solidFill =
4123+ SolidFill'
4124+ { _sfColor = Nothing
4125+ , _sfAlpha = Nothing
4126+ }
4127+
4128+-- | The color value of the solid fill.
4129+sfColor :: Lens' SolidFill (Maybe OpaqueColor)
4130+sfColor = lens _sfColor (\ s a -> s{_sfColor = a})
4131+
4132+-- | The fraction of this \`color\` that should be applied to the pixel. That
4133+-- is, the final pixel color is defined by the equation: pixel color =
4134+-- alpha * (color) + (1.0 - alpha) * (background color) This means that a
4135+-- value of 1.0 corresponds to a solid color, whereas a value of 0.0
4136+-- corresponds to a completely transparent color.
4137+sfAlpha :: Lens' SolidFill (Maybe Double)
4138+sfAlpha
4139+ = lens _sfAlpha (\ s a -> s{_sfAlpha = a}) .
4140+ mapping _Coerce
4141+
4142+instance FromJSON SolidFill where
4143+ parseJSON
4144+ = withObject "SolidFill"
4145+ (\ o ->
4146+ SolidFill' <$> (o .:? "color") <*> (o .:? "alpha"))
4147+
4148+instance ToJSON SolidFill where
4149+ toJSON SolidFill'{..}
4150+ = object
4151+ (catMaybes
4152+ [("color" .=) <$> _sfColor,
4153+ ("alpha" .=) <$> _sfAlpha])
4154+
4155+-- | Update the styling of text in a Shape or Table.
4156+--
4157+-- /See:/ 'updateTextStyleRequest' smart constructor.
4158+data UpdateTextStyleRequest = UpdateTextStyleRequest'
4159+ { _utsrStyle :: !(Maybe TextStyle)
4160+ , _utsrTextRange :: !(Maybe Range)
4161+ , _utsrObjectId :: !(Maybe Text)
4162+ , _utsrCellLocation :: !(Maybe TableCellLocation)
4163+ , _utsrFields :: !(Maybe FieldMask)
4164+ } deriving (Eq,Show,Data,Typeable,Generic)
4165+
4166+-- | Creates a value of 'UpdateTextStyleRequest' with the minimum fields required to make a request.
4167+--
4168+-- Use one of the following lenses to modify other fields as desired:
4169+--
4170+-- * 'utsrStyle'
4171+--
4172+-- * 'utsrTextRange'
4173+--
4174+-- * 'utsrObjectId'
4175+--
4176+-- * 'utsrCellLocation'
4177+--
4178+-- * 'utsrFields'
4179+updateTextStyleRequest
4180+ :: UpdateTextStyleRequest
4181+updateTextStyleRequest =
4182+ UpdateTextStyleRequest'
4183+ { _utsrStyle = Nothing
4184+ , _utsrTextRange = Nothing
4185+ , _utsrObjectId = Nothing
4186+ , _utsrCellLocation = Nothing
4187+ , _utsrFields = Nothing
4188+ }
4189+
4190+-- | The style(s) to set on the text. If the value for a particular style
4191+-- matches that of the parent, that style will be set to inherit. Certain
4192+-- text style changes may cause other changes meant to mirror the behavior
4193+-- of the Slides editor. See the documentation of TextStyle for more
4194+-- information.
4195+utsrStyle :: Lens' UpdateTextStyleRequest (Maybe TextStyle)
4196+utsrStyle
4197+ = lens _utsrStyle (\ s a -> s{_utsrStyle = a})
4198+
4199+-- | The range of text to style. The range may be extended to include
4200+-- adjacent newlines. If the range fully contains a paragraph belonging to
4201+-- a list, the paragraph\'s bullet is also updated with the matching text
4202+-- style.
4203+utsrTextRange :: Lens' UpdateTextStyleRequest (Maybe Range)
4204+utsrTextRange
4205+ = lens _utsrTextRange
4206+ (\ s a -> s{_utsrTextRange = a})
4207+
4208+-- | The object ID of the shape or table with the text to be styled.
4209+utsrObjectId :: Lens' UpdateTextStyleRequest (Maybe Text)
4210+utsrObjectId
4211+ = lens _utsrObjectId (\ s a -> s{_utsrObjectId = a})
4212+
4213+-- | The optional table cell location if the text to be styled is in a table
4214+-- cell. If present, the object_id must refer to a table.
4215+utsrCellLocation :: Lens' UpdateTextStyleRequest (Maybe TableCellLocation)
4216+utsrCellLocation
4217+ = lens _utsrCellLocation
4218+ (\ s a -> s{_utsrCellLocation = a})
4219+
4220+-- | The fields that should be updated. At least one field must be specified.
4221+-- The root \`style\` is implied and should not be specified. A single
4222+-- \`\"*\"\` can be used as short-hand for listing every field. For example
4223+-- to update the text style to bold, set \`fields\` to \`\"bold\"\`. To
4224+-- reset a property to its default value, include its field name in the
4225+-- field mask but leave the field itself unset.
4226+utsrFields :: Lens' UpdateTextStyleRequest (Maybe FieldMask)
4227+utsrFields
4228+ = lens _utsrFields (\ s a -> s{_utsrFields = a})
4229+
4230+instance FromJSON UpdateTextStyleRequest where
4231+ parseJSON
4232+ = withObject "UpdateTextStyleRequest"
4233+ (\ o ->
4234+ UpdateTextStyleRequest' <$>
4235+ (o .:? "style") <*> (o .:? "textRange") <*>
4236+ (o .:? "objectId")
4237+ <*> (o .:? "cellLocation")
4238+ <*> (o .:? "fields"))
4239+
4240+instance ToJSON UpdateTextStyleRequest where
4241+ toJSON UpdateTextStyleRequest'{..}
4242+ = object
4243+ (catMaybes
4244+ [("style" .=) <$> _utsrStyle,
4245+ ("textRange" .=) <$> _utsrTextRange,
4246+ ("objectId" .=) <$> _utsrObjectId,
4247+ ("cellLocation" .=) <$> _utsrCellLocation,
4248+ ("fields" .=) <$> _utsrFields])
4249+
4250+-- | A recolor effect applied on an image.
4251+--
4252+-- /See:/ 'recolor' smart constructor.
4253+newtype Recolor = Recolor'
4254+ { _rRecolorStops :: Maybe [ColorStop]
4255+ } deriving (Eq,Show,Data,Typeable,Generic)
4256+
4257+-- | Creates a value of 'Recolor' with the minimum fields required to make a request.
4258+--
4259+-- Use one of the following lenses to modify other fields as desired:
4260+--
4261+-- * 'rRecolorStops'
4262+recolor
4263+ :: Recolor
4264+recolor =
4265+ Recolor'
4266+ { _rRecolorStops = Nothing
4267+ }
4268+
4269+-- | The recolor effect is represented by a gradient, which is a list of
4270+-- color stops. This property is read-only.
4271+rRecolorStops :: Lens' Recolor [ColorStop]
4272+rRecolorStops
4273+ = lens _rRecolorStops
4274+ (\ s a -> s{_rRecolorStops = a})
4275+ . _Default
4276+ . _Coerce
4277+
4278+instance FromJSON Recolor where
4279+ parseJSON
4280+ = withObject "Recolor"
4281+ (\ o ->
4282+ Recolor' <$> (o .:? "recolorStops" .!= mempty))
4283+
4284+instance ToJSON Recolor where
4285+ toJSON Recolor'{..}
4286+ = object
4287+ (catMaybes [("recolorStops" .=) <$> _rRecolorStops])
4288+
4289+-- | The properties of the Page. The page will inherit properties from the
4290+-- parent page. Depending on the page type the hierarchy is defined in
4291+-- either SlideProperties or LayoutProperties.
4292+--
4293+-- /See:/ 'pageProperties' smart constructor.
4294+data PageProperties = PageProperties'
4295+ { _ppPageBackgRoundFill :: !(Maybe PageBackgRoundFill)
4296+ , _ppColorScheme :: !(Maybe ColorScheme)
4297+ } deriving (Eq,Show,Data,Typeable,Generic)
4298+
4299+-- | Creates a value of 'PageProperties' with the minimum fields required to make a request.
4300+--
4301+-- Use one of the following lenses to modify other fields as desired:
4302+--
4303+-- * 'ppPageBackgRoundFill'
4304+--
4305+-- * 'ppColorScheme'
4306+pageProperties
4307+ :: PageProperties
4308+pageProperties =
4309+ PageProperties'
4310+ { _ppPageBackgRoundFill = Nothing
4311+ , _ppColorScheme = Nothing
4312+ }
4313+
4314+-- | The background fill of the page. If unset, the background fill is
4315+-- inherited from a parent page if it exists. If the page has no parent,
4316+-- then the background fill defaults to the corresponding fill in the
4317+-- Slides editor.
4318+ppPageBackgRoundFill :: Lens' PageProperties (Maybe PageBackgRoundFill)
4319+ppPageBackgRoundFill
4320+ = lens _ppPageBackgRoundFill
4321+ (\ s a -> s{_ppPageBackgRoundFill = a})
4322+
4323+-- | The color scheme of the page. If unset, the color scheme is inherited
4324+-- from a parent page. If the page has no parent, the color scheme uses a
4325+-- default Slides color scheme. This field is read-only.
4326+ppColorScheme :: Lens' PageProperties (Maybe ColorScheme)
4327+ppColorScheme
4328+ = lens _ppColorScheme
4329+ (\ s a -> s{_ppColorScheme = a})
4330+
4331+instance FromJSON PageProperties where
4332+ parseJSON
4333+ = withObject "PageProperties"
4334+ (\ o ->
4335+ PageProperties' <$>
4336+ (o .:? "pageBackgroundFill") <*>
4337+ (o .:? "colorScheme"))
4338+
4339+instance ToJSON PageProperties where
4340+ toJSON PageProperties'{..}
4341+ = object
4342+ (catMaybes
4343+ [("pageBackgroundFill" .=) <$> _ppPageBackgRoundFill,
4344+ ("colorScheme" .=) <$> _ppColorScheme])
4345+
4346+-- | The page background fill.
4347+--
4348+-- /See:/ 'pageBackgRoundFill' smart constructor.
4349+data PageBackgRoundFill = PageBackgRoundFill'
4350+ { _pbrfStretchedPictureFill :: !(Maybe StretchedPictureFill)
4351+ , _pbrfSolidFill :: !(Maybe SolidFill)
4352+ , _pbrfPropertyState :: !(Maybe PageBackgRoundFillPropertyState)
4353+ } deriving (Eq,Show,Data,Typeable,Generic)
4354+
4355+-- | Creates a value of 'PageBackgRoundFill' with the minimum fields required to make a request.
4356+--
4357+-- Use one of the following lenses to modify other fields as desired:
4358+--
4359+-- * 'pbrfStretchedPictureFill'
4360+--
4361+-- * 'pbrfSolidFill'
4362+--
4363+-- * 'pbrfPropertyState'
4364+pageBackgRoundFill
4365+ :: PageBackgRoundFill
4366+pageBackgRoundFill =
4367+ PageBackgRoundFill'
4368+ { _pbrfStretchedPictureFill = Nothing
4369+ , _pbrfSolidFill = Nothing
4370+ , _pbrfPropertyState = Nothing
4371+ }
4372+
4373+-- | Stretched picture fill.
4374+pbrfStretchedPictureFill :: Lens' PageBackgRoundFill (Maybe StretchedPictureFill)
4375+pbrfStretchedPictureFill
4376+ = lens _pbrfStretchedPictureFill
4377+ (\ s a -> s{_pbrfStretchedPictureFill = a})
4378+
4379+-- | Solid color fill.
4380+pbrfSolidFill :: Lens' PageBackgRoundFill (Maybe SolidFill)
4381+pbrfSolidFill
4382+ = lens _pbrfSolidFill
4383+ (\ s a -> s{_pbrfSolidFill = a})
4384+
4385+-- | The background fill property state. Updating the the fill on a page will
4386+-- implicitly update this field to \`RENDERED\`, unless another value is
4387+-- specified in the same request. To have no fill on a page, set this field
4388+-- to \`NOT_RENDERED\`. In this case, any other fill fields set in the same
4389+-- request will be ignored.
4390+pbrfPropertyState :: Lens' PageBackgRoundFill (Maybe PageBackgRoundFillPropertyState)
4391+pbrfPropertyState
4392+ = lens _pbrfPropertyState
4393+ (\ s a -> s{_pbrfPropertyState = a})
4394+
4395+instance FromJSON PageBackgRoundFill where
4396+ parseJSON
4397+ = withObject "PageBackgRoundFill"
4398+ (\ o ->
4399+ PageBackgRoundFill' <$>
4400+ (o .:? "stretchedPictureFill") <*>
4401+ (o .:? "solidFill")
4402+ <*> (o .:? "propertyState"))
4403+
4404+instance ToJSON PageBackgRoundFill where
4405+ toJSON PageBackgRoundFill'{..}
4406+ = object
4407+ (catMaybes
4408+ [("stretchedPictureFill" .=) <$>
4409+ _pbrfStretchedPictureFill,
4410+ ("solidFill" .=) <$> _pbrfSolidFill,
4411+ ("propertyState" .=) <$> _pbrfPropertyState])
4412+
4413+-- | Contains properties describing the look and feel of a list bullet at a
4414+-- given level of nesting.
4415+--
4416+-- /See:/ 'nestingLevel' smart constructor.
4417+newtype NestingLevel = NestingLevel'
4418+ { _nlBulletStyle :: Maybe TextStyle
4419+ } deriving (Eq,Show,Data,Typeable,Generic)
4420+
4421+-- | Creates a value of 'NestingLevel' with the minimum fields required to make a request.
4422+--
4423+-- Use one of the following lenses to modify other fields as desired:
4424+--
4425+-- * 'nlBulletStyle'
4426+nestingLevel
4427+ :: NestingLevel
4428+nestingLevel =
4429+ NestingLevel'
4430+ { _nlBulletStyle = Nothing
4431+ }
4432+
4433+-- | The style of a bullet at this level of nesting.
4434+nlBulletStyle :: Lens' NestingLevel (Maybe TextStyle)
4435+nlBulletStyle
4436+ = lens _nlBulletStyle
4437+ (\ s a -> s{_nlBulletStyle = a})
4438+
4439+instance FromJSON NestingLevel where
4440+ parseJSON
4441+ = withObject "NestingLevel"
4442+ (\ o -> NestingLevel' <$> (o .:? "bulletStyle"))
4443+
4444+instance ToJSON NestingLevel where
4445+ toJSON NestingLevel'{..}
4446+ = object
4447+ (catMaybes [("bulletStyle" .=) <$> _nlBulletStyle])
4448+
4449+-- | A themeable solid color value.
4450+--
4451+-- /See:/ 'opaqueColor' smart constructor.
4452+data OpaqueColor = OpaqueColor'
4453+ { _ocThemeColor :: !(Maybe OpaqueColorThemeColor)
4454+ , _ocRgbColor :: !(Maybe RgbColor)
4455+ } deriving (Eq,Show,Data,Typeable,Generic)
4456+
4457+-- | Creates a value of 'OpaqueColor' with the minimum fields required to make a request.
4458+--
4459+-- Use one of the following lenses to modify other fields as desired:
4460+--
4461+-- * 'ocThemeColor'
4462+--
4463+-- * 'ocRgbColor'
4464+opaqueColor
4465+ :: OpaqueColor
4466+opaqueColor =
4467+ OpaqueColor'
4468+ { _ocThemeColor = Nothing
4469+ , _ocRgbColor = Nothing
4470+ }
4471+
4472+-- | An opaque theme color.
4473+ocThemeColor :: Lens' OpaqueColor (Maybe OpaqueColorThemeColor)
4474+ocThemeColor
4475+ = lens _ocThemeColor (\ s a -> s{_ocThemeColor = a})
4476+
4477+-- | An opaque RGB color.
4478+ocRgbColor :: Lens' OpaqueColor (Maybe RgbColor)
4479+ocRgbColor
4480+ = lens _ocRgbColor (\ s a -> s{_ocRgbColor = a})
4481+
4482+instance FromJSON OpaqueColor where
4483+ parseJSON
4484+ = withObject "OpaqueColor"
4485+ (\ o ->
4486+ OpaqueColor' <$>
4487+ (o .:? "themeColor") <*> (o .:? "rgbColor"))
4488+
4489+instance ToJSON OpaqueColor where
4490+ toJSON OpaqueColor'{..}
4491+ = object
4492+ (catMaybes
4493+ [("themeColor" .=) <$> _ocThemeColor,
4494+ ("rgbColor" .=) <$> _ocRgbColor])
4495+
4496+-- | Creates a new slide.
4497+--
4498+-- /See:/ 'createSlideRequest' smart constructor.
4499+data CreateSlideRequest = CreateSlideRequest'
4500+ { _csrsObjectId :: !(Maybe Text)
4501+ , _csrsSlideLayoutReference :: !(Maybe LayoutReference)
4502+ , _csrsInsertionIndex :: !(Maybe (Textual Int32))
4503+ } deriving (Eq,Show,Data,Typeable,Generic)
4504+
4505+-- | Creates a value of 'CreateSlideRequest' with the minimum fields required to make a request.
4506+--
4507+-- Use one of the following lenses to modify other fields as desired:
4508+--
4509+-- * 'csrsObjectId'
4510+--
4511+-- * 'csrsSlideLayoutReference'
4512+--
4513+-- * 'csrsInsertionIndex'
4514+createSlideRequest
4515+ :: CreateSlideRequest
4516+createSlideRequest =
4517+ CreateSlideRequest'
4518+ { _csrsObjectId = Nothing
4519+ , _csrsSlideLayoutReference = Nothing
4520+ , _csrsInsertionIndex = Nothing
4521+ }
4522+
4523+-- | A user-supplied object ID. If you specify an ID, it must be unique among
4524+-- all pages and page elements in the presentation. The ID must start with
4525+-- an alphanumeric character or an underscore (matches regex
4526+-- \`[a-zA-Z0-9_]\`); remaining characters may include those as well as a
4527+-- hyphen or colon (matches regex \`[a-zA-Z0-9_-:]\`). The length of the ID
4528+-- must not be less than 5 or greater than 50. If you don\'t specify an ID,
4529+-- a unique one is generated.
4530+csrsObjectId :: Lens' CreateSlideRequest (Maybe Text)
4531+csrsObjectId
4532+ = lens _csrsObjectId (\ s a -> s{_csrsObjectId = a})
4533+
4534+-- | Layout reference of the slide to be inserted, based on the *current
4535+-- master*, which is one of the following: - The master of the previous
4536+-- slide index. - The master of the first slide, if the insertion_index is
4537+-- zero. - The first master in the presentation, if there are no slides. If
4538+-- the LayoutReference is not found in the current master, a 400 bad
4539+-- request error is returned. If you don\'t specify a layout reference,
4540+-- then the new slide will use the predefined layout \`BLANK\`.
4541+csrsSlideLayoutReference :: Lens' CreateSlideRequest (Maybe LayoutReference)
4542+csrsSlideLayoutReference
4543+ = lens _csrsSlideLayoutReference
4544+ (\ s a -> s{_csrsSlideLayoutReference = a})
4545+
4546+-- | The optional zero-based index indicating where to insert the slides. If
4547+-- you don\'t specify an index, the new slide is created at the end.
4548+csrsInsertionIndex :: Lens' CreateSlideRequest (Maybe Int32)
4549+csrsInsertionIndex
4550+ = lens _csrsInsertionIndex
4551+ (\ s a -> s{_csrsInsertionIndex = a})
4552+ . mapping _Coerce
4553+
4554+instance FromJSON CreateSlideRequest where
4555+ parseJSON
4556+ = withObject "CreateSlideRequest"
4557+ (\ o ->
4558+ CreateSlideRequest' <$>
4559+ (o .:? "objectId") <*> (o .:? "slideLayoutReference")
4560+ <*> (o .:? "insertionIndex"))
4561+
4562+instance ToJSON CreateSlideRequest where
4563+ toJSON CreateSlideRequest'{..}
4564+ = object
4565+ (catMaybes
4566+ [("objectId" .=) <$> _csrsObjectId,
4567+ ("slideLayoutReference" .=) <$>
4568+ _csrsSlideLayoutReference,
4569+ ("insertionIndex" .=) <$> _csrsInsertionIndex])
4570+
4571+-- | A location of a single table cell within a table.
4572+--
4573+-- /See:/ 'tableCellLocation' smart constructor.
4574+data TableCellLocation = TableCellLocation'
4575+ { _tclColumnIndex :: !(Maybe (Textual Int32))
4576+ , _tclRowIndex :: !(Maybe (Textual Int32))
4577+ } deriving (Eq,Show,Data,Typeable,Generic)
4578+
4579+-- | Creates a value of 'TableCellLocation' with the minimum fields required to make a request.
4580+--
4581+-- Use one of the following lenses to modify other fields as desired:
4582+--
4583+-- * 'tclColumnIndex'
4584+--
4585+-- * 'tclRowIndex'
4586+tableCellLocation
4587+ :: TableCellLocation
4588+tableCellLocation =
4589+ TableCellLocation'
4590+ { _tclColumnIndex = Nothing
4591+ , _tclRowIndex = Nothing
4592+ }
4593+
4594+-- | The 0-based column index.
4595+tclColumnIndex :: Lens' TableCellLocation (Maybe Int32)
4596+tclColumnIndex
4597+ = lens _tclColumnIndex
4598+ (\ s a -> s{_tclColumnIndex = a})
4599+ . mapping _Coerce
4600+
4601+-- | The 0-based row index.
4602+tclRowIndex :: Lens' TableCellLocation (Maybe Int32)
4603+tclRowIndex
4604+ = lens _tclRowIndex (\ s a -> s{_tclRowIndex = a}) .
4605+ mapping _Coerce
4606+
4607+instance FromJSON TableCellLocation where
4608+ parseJSON
4609+ = withObject "TableCellLocation"
4610+ (\ o ->
4611+ TableCellLocation' <$>
4612+ (o .:? "columnIndex") <*> (o .:? "rowIndex"))
4613+
4614+instance ToJSON TableCellLocation where
4615+ toJSON TableCellLocation'{..}
4616+ = object
4617+ (catMaybes
4618+ [("columnIndex" .=) <$> _tclColumnIndex,
4619+ ("rowIndex" .=) <$> _tclRowIndex])
4620+
4621+-- | Updates the position of slides in the presentation.
4622+--
4623+-- /See:/ 'updateSlidesPositionRequest' smart constructor.
4624+data UpdateSlidesPositionRequest = UpdateSlidesPositionRequest'
4625+ { _usprSlideObjectIds :: !(Maybe [Text])
4626+ , _usprInsertionIndex :: !(Maybe (Textual Int32))
4627+ } deriving (Eq,Show,Data,Typeable,Generic)
4628+
4629+-- | Creates a value of 'UpdateSlidesPositionRequest' with the minimum fields required to make a request.
4630+--
4631+-- Use one of the following lenses to modify other fields as desired:
4632+--
4633+-- * 'usprSlideObjectIds'
4634+--
4635+-- * 'usprInsertionIndex'
4636+updateSlidesPositionRequest
4637+ :: UpdateSlidesPositionRequest
4638+updateSlidesPositionRequest =
4639+ UpdateSlidesPositionRequest'
4640+ { _usprSlideObjectIds = Nothing
4641+ , _usprInsertionIndex = Nothing
4642+ }
4643+
4644+-- | The IDs of the slides in the presentation that should be moved. The
4645+-- slides in this list must be in existing presentation order, without
4646+-- duplicates.
4647+usprSlideObjectIds :: Lens' UpdateSlidesPositionRequest [Text]
4648+usprSlideObjectIds
4649+ = lens _usprSlideObjectIds
4650+ (\ s a -> s{_usprSlideObjectIds = a})
4651+ . _Default
4652+ . _Coerce
4653+
4654+-- | The index where the slides should be inserted, based on the slide
4655+-- arrangement before the move takes place. Must be between zero and the
4656+-- number of slides in the presentation, inclusive.
4657+usprInsertionIndex :: Lens' UpdateSlidesPositionRequest (Maybe Int32)
4658+usprInsertionIndex
4659+ = lens _usprInsertionIndex
4660+ (\ s a -> s{_usprInsertionIndex = a})
4661+ . mapping _Coerce
4662+
4663+instance FromJSON UpdateSlidesPositionRequest where
4664+ parseJSON
4665+ = withObject "UpdateSlidesPositionRequest"
4666+ (\ o ->
4667+ UpdateSlidesPositionRequest' <$>
4668+ (o .:? "slideObjectIds" .!= mempty) <*>
4669+ (o .:? "insertionIndex"))
4670+
4671+instance ToJSON UpdateSlidesPositionRequest where
4672+ toJSON UpdateSlidesPositionRequest'{..}
4673+ = object
4674+ (catMaybes
4675+ [("slideObjectIds" .=) <$> _usprSlideObjectIds,
4676+ ("insertionIndex" .=) <$> _usprInsertionIndex])
4677+
4678+-- | Replaces all shapes that match the given criteria with the provided
4679+-- image.
4680+--
4681+-- /See:/ 'replaceAllShapesWithImageRequest' smart constructor.
4682+data ReplaceAllShapesWithImageRequest = ReplaceAllShapesWithImageRequest'
4683+ { _raswirContainsText :: !(Maybe SubstringMatchCriteria)
4684+ , _raswirImageURL :: !(Maybe Text)
4685+ , _raswirReplaceMethod :: !(Maybe ReplaceAllShapesWithImageRequestReplaceMethod)
4686+ } deriving (Eq,Show,Data,Typeable,Generic)
4687+
4688+-- | Creates a value of 'ReplaceAllShapesWithImageRequest' with the minimum fields required to make a request.
4689+--
4690+-- Use one of the following lenses to modify other fields as desired:
4691+--
4692+-- * 'raswirContainsText'
4693+--
4694+-- * 'raswirImageURL'
4695+--
4696+-- * 'raswirReplaceMethod'
4697+replaceAllShapesWithImageRequest
4698+ :: ReplaceAllShapesWithImageRequest
4699+replaceAllShapesWithImageRequest =
4700+ ReplaceAllShapesWithImageRequest'
4701+ { _raswirContainsText = Nothing
4702+ , _raswirImageURL = Nothing
4703+ , _raswirReplaceMethod = Nothing
4704+ }
4705+
4706+-- | If set, this request will replace all of the shapes that contain the
4707+-- given text.
4708+raswirContainsText :: Lens' ReplaceAllShapesWithImageRequest (Maybe SubstringMatchCriteria)
4709+raswirContainsText
4710+ = lens _raswirContainsText
4711+ (\ s a -> s{_raswirContainsText = a})
4712+
4713+-- | The image URL. The image is fetched once at insertion time and a copy is
4714+-- stored for display inside the presentation. Images must be less than
4715+-- 50MB in size, cannot exceed 25 megapixels, and must be in either in PNG,
4716+-- JPEG, or GIF format.
4717+raswirImageURL :: Lens' ReplaceAllShapesWithImageRequest (Maybe Text)
4718+raswirImageURL
4719+ = lens _raswirImageURL
4720+ (\ s a -> s{_raswirImageURL = a})
4721+
4722+-- | The replace method.
4723+raswirReplaceMethod :: Lens' ReplaceAllShapesWithImageRequest (Maybe ReplaceAllShapesWithImageRequestReplaceMethod)
4724+raswirReplaceMethod
4725+ = lens _raswirReplaceMethod
4726+ (\ s a -> s{_raswirReplaceMethod = a})
4727+
4728+instance FromJSON ReplaceAllShapesWithImageRequest
4729+ where
4730+ parseJSON
4731+ = withObject "ReplaceAllShapesWithImageRequest"
4732+ (\ o ->
4733+ ReplaceAllShapesWithImageRequest' <$>
4734+ (o .:? "containsText") <*> (o .:? "imageUrl") <*>
4735+ (o .:? "replaceMethod"))
4736+
4737+instance ToJSON ReplaceAllShapesWithImageRequest
4738+ where
4739+ toJSON ReplaceAllShapesWithImageRequest'{..}
4740+ = object
4741+ (catMaybes
4742+ [("containsText" .=) <$> _raswirContainsText,
4743+ ("imageUrl" .=) <$> _raswirImageURL,
4744+ ("replaceMethod" .=) <$> _raswirReplaceMethod])
4745+
4746+-- | A visual element rendered on a page.
4747+--
4748+-- /See:/ 'pageElement' smart constructor.
4749+data PageElement = PageElement'
4750+ { _peTransform :: !(Maybe AffineTransform)
4751+ , _peImage :: !(Maybe Image)
4752+ , _peSize :: !(Maybe Size)
4753+ , _peSheetsChart :: !(Maybe SheetsChart)
4754+ , _peObjectId :: !(Maybe Text)
4755+ , _peLine :: !(Maybe Line)
4756+ , _peElementGroup :: !(Maybe Group)
4757+ , _peVideo :: !(Maybe Video)
4758+ , _peWordArt :: !(Maybe WordArt)
4759+ , _peShape :: !(Maybe Shape)
4760+ , _peTitle :: !(Maybe Text)
4761+ , _peTable :: !(Maybe Table)
4762+ , _peDescription :: !(Maybe Text)
4763+ } deriving (Eq,Show,Data,Typeable,Generic)
4764+
4765+-- | Creates a value of 'PageElement' with the minimum fields required to make a request.
4766+--
4767+-- Use one of the following lenses to modify other fields as desired:
4768+--
4769+-- * 'peTransform'
4770+--
4771+-- * 'peImage'
4772+--
4773+-- * 'peSize'
4774+--
4775+-- * 'peSheetsChart'
4776+--
4777+-- * 'peObjectId'
4778+--
4779+-- * 'peLine'
4780+--
4781+-- * 'peElementGroup'
4782+--
4783+-- * 'peVideo'
4784+--
4785+-- * 'peWordArt'
4786+--
4787+-- * 'peShape'
4788+--
4789+-- * 'peTitle'
4790+--
4791+-- * 'peTable'
4792+--
4793+-- * 'peDescription'
4794+pageElement
4795+ :: PageElement
4796+pageElement =
4797+ PageElement'
4798+ { _peTransform = Nothing
4799+ , _peImage = Nothing
4800+ , _peSize = Nothing
4801+ , _peSheetsChart = Nothing
4802+ , _peObjectId = Nothing
4803+ , _peLine = Nothing
4804+ , _peElementGroup = Nothing
4805+ , _peVideo = Nothing
4806+ , _peWordArt = Nothing
4807+ , _peShape = Nothing
4808+ , _peTitle = Nothing
4809+ , _peTable = Nothing
4810+ , _peDescription = Nothing
4811+ }
4812+
4813+-- | The transform of the page element.
4814+peTransform :: Lens' PageElement (Maybe AffineTransform)
4815+peTransform
4816+ = lens _peTransform (\ s a -> s{_peTransform = a})
4817+
4818+-- | An image page element.
4819+peImage :: Lens' PageElement (Maybe Image)
4820+peImage = lens _peImage (\ s a -> s{_peImage = a})
4821+
4822+-- | The size of the page element.
4823+peSize :: Lens' PageElement (Maybe Size)
4824+peSize = lens _peSize (\ s a -> s{_peSize = a})
4825+
4826+-- | A linked chart embedded from Google Sheets. Unlinked charts are
4827+-- represented as images.
4828+peSheetsChart :: Lens' PageElement (Maybe SheetsChart)
4829+peSheetsChart
4830+ = lens _peSheetsChart
4831+ (\ s a -> s{_peSheetsChart = a})
4832+
4833+-- | The object ID for this page element. Object IDs used by
4834+-- google.apps.slides.v1.Page and google.apps.slides.v1.PageElement share
4835+-- the same namespace.
4836+peObjectId :: Lens' PageElement (Maybe Text)
4837+peObjectId
4838+ = lens _peObjectId (\ s a -> s{_peObjectId = a})
4839+
4840+-- | A line page element.
4841+peLine :: Lens' PageElement (Maybe Line)
4842+peLine = lens _peLine (\ s a -> s{_peLine = a})
4843+
4844+-- | A collection of page elements joined as a single unit.
4845+peElementGroup :: Lens' PageElement (Maybe Group)
4846+peElementGroup
4847+ = lens _peElementGroup
4848+ (\ s a -> s{_peElementGroup = a})
4849+
4850+-- | A video page element.
4851+peVideo :: Lens' PageElement (Maybe Video)
4852+peVideo = lens _peVideo (\ s a -> s{_peVideo = a})
4853+
4854+-- | A word art page element.
4855+peWordArt :: Lens' PageElement (Maybe WordArt)
4856+peWordArt
4857+ = lens _peWordArt (\ s a -> s{_peWordArt = a})
4858+
4859+-- | A generic shape.
4860+peShape :: Lens' PageElement (Maybe Shape)
4861+peShape = lens _peShape (\ s a -> s{_peShape = a})
4862+
4863+-- | The title of the page element. Combined with description to display alt
4864+-- text.
4865+peTitle :: Lens' PageElement (Maybe Text)
4866+peTitle = lens _peTitle (\ s a -> s{_peTitle = a})
4867+
4868+-- | A table page element.
4869+peTable :: Lens' PageElement (Maybe Table)
4870+peTable = lens _peTable (\ s a -> s{_peTable = a})
4871+
4872+-- | The description of the page element. Combined with title to display alt
4873+-- text.
4874+peDescription :: Lens' PageElement (Maybe Text)
4875+peDescription
4876+ = lens _peDescription
4877+ (\ s a -> s{_peDescription = a})
4878+
4879+instance FromJSON PageElement where
4880+ parseJSON
4881+ = withObject "PageElement"
4882+ (\ o ->
4883+ PageElement' <$>
4884+ (o .:? "transform") <*> (o .:? "image") <*>
4885+ (o .:? "size")
4886+ <*> (o .:? "sheetsChart")
4887+ <*> (o .:? "objectId")
4888+ <*> (o .:? "line")
4889+ <*> (o .:? "elementGroup")
4890+ <*> (o .:? "video")
4891+ <*> (o .:? "wordArt")
4892+ <*> (o .:? "shape")
4893+ <*> (o .:? "title")
4894+ <*> (o .:? "table")
4895+ <*> (o .:? "description"))
4896+
4897+instance ToJSON PageElement where
4898+ toJSON PageElement'{..}
4899+ = object
4900+ (catMaybes
4901+ [("transform" .=) <$> _peTransform,
4902+ ("image" .=) <$> _peImage, ("size" .=) <$> _peSize,
4903+ ("sheetsChart" .=) <$> _peSheetsChart,
4904+ ("objectId" .=) <$> _peObjectId,
4905+ ("line" .=) <$> _peLine,
4906+ ("elementGroup" .=) <$> _peElementGroup,
4907+ ("video" .=) <$> _peVideo,
4908+ ("wordArt" .=) <$> _peWordArt,
4909+ ("shape" .=) <$> _peShape, ("title" .=) <$> _peTitle,
4910+ ("table" .=) <$> _peTable,
4911+ ("description" .=) <$> _peDescription])
4912+
4913+-- | A color and position in a gradient band.
4914+--
4915+-- /See:/ 'colorStop' smart constructor.
4916+data ColorStop = ColorStop'
4917+ { _csColor :: !(Maybe OpaqueColor)
4918+ , _csAlpha :: !(Maybe (Textual Double))
4919+ , _csPosition :: !(Maybe (Textual Double))
4920+ } deriving (Eq,Show,Data,Typeable,Generic)
4921+
4922+-- | Creates a value of 'ColorStop' with the minimum fields required to make a request.
4923+--
4924+-- Use one of the following lenses to modify other fields as desired:
4925+--
4926+-- * 'csColor'
4927+--
4928+-- * 'csAlpha'
4929+--
4930+-- * 'csPosition'
4931+colorStop
4932+ :: ColorStop
4933+colorStop =
4934+ ColorStop'
4935+ { _csColor = Nothing
4936+ , _csAlpha = Nothing
4937+ , _csPosition = Nothing
4938+ }
4939+
4940+-- | The color of the gradient stop.
4941+csColor :: Lens' ColorStop (Maybe OpaqueColor)
4942+csColor = lens _csColor (\ s a -> s{_csColor = a})
4943+
4944+-- | The alpha value of this color in the gradient band. Defaults to 1.0,
4945+-- fully opaque.
4946+csAlpha :: Lens' ColorStop (Maybe Double)
4947+csAlpha
4948+ = lens _csAlpha (\ s a -> s{_csAlpha = a}) .
4949+ mapping _Coerce
4950+
4951+-- | The relative position of the color stop in the gradient band measured in
4952+-- percentage. The value should be in the interval [0.0, 1.0].
4953+csPosition :: Lens' ColorStop (Maybe Double)
4954+csPosition
4955+ = lens _csPosition (\ s a -> s{_csPosition = a}) .
4956+ mapping _Coerce
4957+
4958+instance FromJSON ColorStop where
4959+ parseJSON
4960+ = withObject "ColorStop"
4961+ (\ o ->
4962+ ColorStop' <$>
4963+ (o .:? "color") <*> (o .:? "alpha") <*>
4964+ (o .:? "position"))
4965+
4966+instance ToJSON ColorStop where
4967+ toJSON ColorStop'{..}
4968+ = object
4969+ (catMaybes
4970+ [("color" .=) <$> _csColor,
4971+ ("alpha" .=) <$> _csAlpha,
4972+ ("position" .=) <$> _csPosition])
4973+
4974+-- | Deletes an object, either pages or page elements, from the presentation.
4975+--
4976+-- /See:/ 'deleteObjectRequest' smart constructor.
4977+newtype DeleteObjectRequest = DeleteObjectRequest'
4978+ { _dObjectId :: Maybe Text
4979+ } deriving (Eq,Show,Data,Typeable,Generic)
4980+
4981+-- | Creates a value of 'DeleteObjectRequest' with the minimum fields required to make a request.
4982+--
4983+-- Use one of the following lenses to modify other fields as desired:
4984+--
4985+-- * 'dObjectId'
4986+deleteObjectRequest
4987+ :: DeleteObjectRequest
4988+deleteObjectRequest =
4989+ DeleteObjectRequest'
4990+ { _dObjectId = Nothing
4991+ }
4992+
4993+-- | The object ID of the page or page element to delete. If after a delete
4994+-- operation a group contains only 1 or no page elements, the group is also
4995+-- deleted. If a placeholder is deleted on a layout, any empty inheriting
4996+-- shapes are also deleted.
4997+dObjectId :: Lens' DeleteObjectRequest (Maybe Text)
4998+dObjectId
4999+ = lens _dObjectId (\ s a -> s{_dObjectId = a})
5000+
5001+instance FromJSON DeleteObjectRequest where
5002+ parseJSON
5003+ = withObject "DeleteObjectRequest"
5004+ (\ o -> DeleteObjectRequest' <$> (o .:? "objectId"))
5005+
5006+instance ToJSON DeleteObjectRequest where
5007+ toJSON DeleteObjectRequest'{..}
5008+ = object (catMaybes [("objectId" .=) <$> _dObjectId])
5009+
5010+-- | The result of creating a slide.
5011+--
5012+-- /See:/ 'createSlideResponse' smart constructor.
5013+newtype CreateSlideResponse = CreateSlideResponse'
5014+ { _ccObjectId :: Maybe Text
5015+ } deriving (Eq,Show,Data,Typeable,Generic)
5016+
5017+-- | Creates a value of 'CreateSlideResponse' with the minimum fields required to make a request.
5018+--
5019+-- Use one of the following lenses to modify other fields as desired:
5020+--
5021+-- * 'ccObjectId'
5022+createSlideResponse
5023+ :: CreateSlideResponse
5024+createSlideResponse =
5025+ CreateSlideResponse'
5026+ { _ccObjectId = Nothing
5027+ }
5028+
5029+-- | The object ID of the created slide.
5030+ccObjectId :: Lens' CreateSlideResponse (Maybe Text)
5031+ccObjectId
5032+ = lens _ccObjectId (\ s a -> s{_ccObjectId = a})
5033+
5034+instance FromJSON CreateSlideResponse where
5035+ parseJSON
5036+ = withObject "CreateSlideResponse"
5037+ (\ o -> CreateSlideResponse' <$> (o .:? "objectId"))
5038+
5039+instance ToJSON CreateSlideResponse where
5040+ toJSON CreateSlideResponse'{..}
5041+ = object
5042+ (catMaybes [("objectId" .=) <$> _ccObjectId])
5043+
5044+-- | The palette of predefined colors for a page.
5045+--
5046+-- /See:/ 'colorScheme' smart constructor.
5047+newtype ColorScheme = ColorScheme'
5048+ { _csColors :: Maybe [ThemeColorPair]
5049+ } deriving (Eq,Show,Data,Typeable,Generic)
5050+
5051+-- | Creates a value of 'ColorScheme' with the minimum fields required to make a request.
5052+--
5053+-- Use one of the following lenses to modify other fields as desired:
5054+--
5055+-- * 'csColors'
5056+colorScheme
5057+ :: ColorScheme
5058+colorScheme =
5059+ ColorScheme'
5060+ { _csColors = Nothing
5061+ }
5062+
5063+-- | The ThemeColorType and corresponding concrete color pairs.
5064+csColors :: Lens' ColorScheme [ThemeColorPair]
5065+csColors
5066+ = lens _csColors (\ s a -> s{_csColors = a}) .
5067+ _Default
5068+ . _Coerce
5069+
5070+instance FromJSON ColorScheme where
5071+ parseJSON
5072+ = withObject "ColorScheme"
5073+ (\ o -> ColorScheme' <$> (o .:? "colors" .!= mempty))
5074+
5075+instance ToJSON ColorScheme where
5076+ toJSON ColorScheme'{..}
5077+ = object (catMaybes [("colors" .=) <$> _csColors])
5078+
5079+-- | Properties and contents of each table cell.
5080+--
5081+-- /See:/ 'tableCell' smart constructor.
5082+data TableCell = TableCell'
5083+ { _tcColumnSpan :: !(Maybe (Textual Int32))
5084+ , _tcLocation :: !(Maybe TableCellLocation)
5085+ , _tcText :: !(Maybe TextContent)
5086+ , _tcRowSpan :: !(Maybe (Textual Int32))
5087+ , _tcTableCellProperties :: !(Maybe TableCellProperties)
5088+ } deriving (Eq,Show,Data,Typeable,Generic)
5089+
5090+-- | Creates a value of 'TableCell' with the minimum fields required to make a request.
5091+--
5092+-- Use one of the following lenses to modify other fields as desired:
5093+--
5094+-- * 'tcColumnSpan'
5095+--
5096+-- * 'tcLocation'
5097+--
5098+-- * 'tcText'
5099+--
5100+-- * 'tcRowSpan'
5101+--
5102+-- * 'tcTableCellProperties'
5103+tableCell
5104+ :: TableCell
5105+tableCell =
5106+ TableCell'
5107+ { _tcColumnSpan = Nothing
5108+ , _tcLocation = Nothing
5109+ , _tcText = Nothing
5110+ , _tcRowSpan = Nothing
5111+ , _tcTableCellProperties = Nothing
5112+ }
5113+
5114+-- | Column span of the cell.
5115+tcColumnSpan :: Lens' TableCell (Maybe Int32)
5116+tcColumnSpan
5117+ = lens _tcColumnSpan (\ s a -> s{_tcColumnSpan = a})
5118+ . mapping _Coerce
5119+
5120+-- | The location of the cell within the table.
5121+tcLocation :: Lens' TableCell (Maybe TableCellLocation)
5122+tcLocation
5123+ = lens _tcLocation (\ s a -> s{_tcLocation = a})
5124+
5125+-- | The text content of the cell.
5126+tcText :: Lens' TableCell (Maybe TextContent)
5127+tcText = lens _tcText (\ s a -> s{_tcText = a})
5128+
5129+-- | Row span of the cell.
5130+tcRowSpan :: Lens' TableCell (Maybe Int32)
5131+tcRowSpan
5132+ = lens _tcRowSpan (\ s a -> s{_tcRowSpan = a}) .
5133+ mapping _Coerce
5134+
5135+-- | The properties of the table cell.
5136+tcTableCellProperties :: Lens' TableCell (Maybe TableCellProperties)
5137+tcTableCellProperties
5138+ = lens _tcTableCellProperties
5139+ (\ s a -> s{_tcTableCellProperties = a})
5140+
5141+instance FromJSON TableCell where
5142+ parseJSON
5143+ = withObject "TableCell"
5144+ (\ o ->
5145+ TableCell' <$>
5146+ (o .:? "columnSpan") <*> (o .:? "location") <*>
5147+ (o .:? "text")
5148+ <*> (o .:? "rowSpan")
5149+ <*> (o .:? "tableCellProperties"))
5150+
5151+instance ToJSON TableCell where
5152+ toJSON TableCell'{..}
5153+ = object
5154+ (catMaybes
5155+ [("columnSpan" .=) <$> _tcColumnSpan,
5156+ ("location" .=) <$> _tcLocation,
5157+ ("text" .=) <$> _tcText,
5158+ ("rowSpan" .=) <$> _tcRowSpan,
5159+ ("tableCellProperties" .=) <$>
5160+ _tcTableCellProperties])
5161+
5162+-- | A map of nesting levels to the properties of bullets at the associated
5163+-- level. A list has at most nine levels of nesting, so the possible values
5164+-- for the keys of this map are 0 through 8, inclusive.
5165+--
5166+-- /See:/ 'listNestingLevel' smart constructor.
5167+newtype ListNestingLevel = ListNestingLevel'
5168+ { _lnlAddtional :: HashMap Text NestingLevel
5169+ } deriving (Eq,Show,Data,Typeable,Generic)
5170+
5171+-- | Creates a value of 'ListNestingLevel' with the minimum fields required to make a request.
5172+--
5173+-- Use one of the following lenses to modify other fields as desired:
5174+--
5175+-- * 'lnlAddtional'
5176+listNestingLevel
5177+ :: HashMap Text NestingLevel -- ^ 'lnlAddtional'
5178+ -> ListNestingLevel
5179+listNestingLevel pLnlAddtional_ =
5180+ ListNestingLevel'
5181+ { _lnlAddtional = _Coerce # pLnlAddtional_
5182+ }
5183+
5184+lnlAddtional :: Lens' ListNestingLevel (HashMap Text NestingLevel)
5185+lnlAddtional
5186+ = lens _lnlAddtional (\ s a -> s{_lnlAddtional = a})
5187+ . _Coerce
5188+
5189+instance FromJSON ListNestingLevel where
5190+ parseJSON
5191+ = withObject "ListNestingLevel"
5192+ (\ o -> ListNestingLevel' <$> (parseJSONObject o))
5193+
5194+instance ToJSON ListNestingLevel where
5195+ toJSON = toJSON . _lnlAddtional
5196+
5197+-- | The outline of a PageElement. If these fields are unset, they may be
5198+-- inherited from a parent placeholder if it exists. If there is no parent,
5199+-- the fields will default to the value used for new page elements created
5200+-- in the Slides editor, which may depend on the page element kind.
5201+--
5202+-- /See:/ 'outline' smart constructor.
5203+data Outline = Outline'
5204+ { _oOutlineFill :: !(Maybe OutlineFill)
5205+ , _oWeight :: !(Maybe Dimension)
5206+ , _oDashStyle :: !(Maybe OutlineDashStyle)
5207+ , _oPropertyState :: !(Maybe OutlinePropertyState)
5208+ } deriving (Eq,Show,Data,Typeable,Generic)
5209+
5210+-- | Creates a value of 'Outline' with the minimum fields required to make a request.
5211+--
5212+-- Use one of the following lenses to modify other fields as desired:
5213+--
5214+-- * 'oOutlineFill'
5215+--
5216+-- * 'oWeight'
5217+--
5218+-- * 'oDashStyle'
5219+--
5220+-- * 'oPropertyState'
5221+outline
5222+ :: Outline
5223+outline =
5224+ Outline'
5225+ { _oOutlineFill = Nothing
5226+ , _oWeight = Nothing
5227+ , _oDashStyle = Nothing
5228+ , _oPropertyState = Nothing
5229+ }
5230+
5231+-- | The fill of the outline.
5232+oOutlineFill :: Lens' Outline (Maybe OutlineFill)
5233+oOutlineFill
5234+ = lens _oOutlineFill (\ s a -> s{_oOutlineFill = a})
5235+
5236+-- | The thickness of the outline.
5237+oWeight :: Lens' Outline (Maybe Dimension)
5238+oWeight = lens _oWeight (\ s a -> s{_oWeight = a})
5239+
5240+-- | The dash style of the outline.
5241+oDashStyle :: Lens' Outline (Maybe OutlineDashStyle)
5242+oDashStyle
5243+ = lens _oDashStyle (\ s a -> s{_oDashStyle = a})
5244+
5245+-- | The outline property state. Updating the the outline on a page element
5246+-- will implicitly update this field to\`RENDERED\`, unless another value
5247+-- is specified in the same request. To have no outline on a page element,
5248+-- set this field to \`NOT_RENDERED\`. In this case, any other outline
5249+-- fields set in the same request will be ignored.
5250+oPropertyState :: Lens' Outline (Maybe OutlinePropertyState)
5251+oPropertyState
5252+ = lens _oPropertyState
5253+ (\ s a -> s{_oPropertyState = a})
5254+
5255+instance FromJSON Outline where
5256+ parseJSON
5257+ = withObject "Outline"
5258+ (\ o ->
5259+ Outline' <$>
5260+ (o .:? "outlineFill") <*> (o .:? "weight") <*>
5261+ (o .:? "dashStyle")
5262+ <*> (o .:? "propertyState"))
5263+
5264+instance ToJSON Outline where
5265+ toJSON Outline'{..}
5266+ = object
5267+ (catMaybes
5268+ [("outlineFill" .=) <$> _oOutlineFill,
5269+ ("weight" .=) <$> _oWeight,
5270+ ("dashStyle" .=) <$> _oDashStyle,
5271+ ("propertyState" .=) <$> _oPropertyState])
5272+
5273+-- | Update the properties of a Video.
5274+--
5275+-- /See:/ 'updateVideoPropertiesRequest' smart constructor.
5276+data UpdateVideoPropertiesRequest = UpdateVideoPropertiesRequest'
5277+ { _uvprObjectId :: !(Maybe Text)
5278+ , _uvprVideoProperties :: !(Maybe VideoProperties)
5279+ , _uvprFields :: !(Maybe FieldMask)
5280+ } deriving (Eq,Show,Data,Typeable,Generic)
5281+
5282+-- | Creates a value of 'UpdateVideoPropertiesRequest' with the minimum fields required to make a request.
5283+--
5284+-- Use one of the following lenses to modify other fields as desired:
5285+--
5286+-- * 'uvprObjectId'
5287+--
5288+-- * 'uvprVideoProperties'
5289+--
5290+-- * 'uvprFields'
5291+updateVideoPropertiesRequest
5292+ :: UpdateVideoPropertiesRequest
5293+updateVideoPropertiesRequest =
5294+ UpdateVideoPropertiesRequest'
5295+ { _uvprObjectId = Nothing
5296+ , _uvprVideoProperties = Nothing
5297+ , _uvprFields = Nothing
5298+ }
5299+
5300+-- | The object ID of the video the updates are applied to.
5301+uvprObjectId :: Lens' UpdateVideoPropertiesRequest (Maybe Text)
5302+uvprObjectId
5303+ = lens _uvprObjectId (\ s a -> s{_uvprObjectId = a})
5304+
5305+-- | The video properties to update.
5306+uvprVideoProperties :: Lens' UpdateVideoPropertiesRequest (Maybe VideoProperties)
5307+uvprVideoProperties
5308+ = lens _uvprVideoProperties
5309+ (\ s a -> s{_uvprVideoProperties = a})
5310+
5311+-- | The fields that should be updated. At least one field must be specified.
5312+-- The root \`videoProperties\` is implied and should not be specified. A
5313+-- single \`\"*\"\` can be used as short-hand for listing every field. For
5314+-- example to update the video outline color, set \`fields\` to
5315+-- \`\"outline.outlineFill.solidFill.color\"\`. To reset a property to its
5316+-- default value, include its field name in the field mask but leave the
5317+-- field itself unset.
5318+uvprFields :: Lens' UpdateVideoPropertiesRequest (Maybe FieldMask)
5319+uvprFields
5320+ = lens _uvprFields (\ s a -> s{_uvprFields = a})
5321+
5322+instance FromJSON UpdateVideoPropertiesRequest where
5323+ parseJSON
5324+ = withObject "UpdateVideoPropertiesRequest"
5325+ (\ o ->
5326+ UpdateVideoPropertiesRequest' <$>
5327+ (o .:? "objectId") <*> (o .:? "videoProperties") <*>
5328+ (o .:? "fields"))
5329+
5330+instance ToJSON UpdateVideoPropertiesRequest where
5331+ toJSON UpdateVideoPropertiesRequest'{..}
5332+ = object
5333+ (catMaybes
5334+ [("objectId" .=) <$> _uvprObjectId,
5335+ ("videoProperties" .=) <$> _uvprVideoProperties,
5336+ ("fields" .=) <$> _uvprFields])
5337+
5338+-- | The properties of the Video.
5339+--
5340+-- /See:/ 'videoProperties' smart constructor.
5341+newtype VideoProperties = VideoProperties'
5342+ { _vpOutline :: Maybe Outline
5343+ } deriving (Eq,Show,Data,Typeable,Generic)
5344+
5345+-- | Creates a value of 'VideoProperties' with the minimum fields required to make a request.
5346+--
5347+-- Use one of the following lenses to modify other fields as desired:
5348+--
5349+-- * 'vpOutline'
5350+videoProperties
5351+ :: VideoProperties
5352+videoProperties =
5353+ VideoProperties'
5354+ { _vpOutline = Nothing
5355+ }
5356+
5357+-- | The outline of the video. The default outline matches the defaults for
5358+-- new videos created in the Slides editor.
5359+vpOutline :: Lens' VideoProperties (Maybe Outline)
5360+vpOutline
5361+ = lens _vpOutline (\ s a -> s{_vpOutline = a})
5362+
5363+instance FromJSON VideoProperties where
5364+ parseJSON
5365+ = withObject "VideoProperties"
5366+ (\ o -> VideoProperties' <$> (o .:? "outline"))
5367+
5368+instance ToJSON VideoProperties where
5369+ toJSON VideoProperties'{..}
5370+ = object (catMaybes [("outline" .=) <$> _vpOutline])
5371+
5372+-- | The result of creating an image.
5373+--
5374+-- /See:/ 'createImageResponse' smart constructor.
5375+newtype CreateImageResponse = CreateImageResponse'
5376+ { _ciriObjectId :: Maybe Text
5377+ } deriving (Eq,Show,Data,Typeable,Generic)
5378+
5379+-- | Creates a value of 'CreateImageResponse' with the minimum fields required to make a request.
5380+--
5381+-- Use one of the following lenses to modify other fields as desired:
5382+--
5383+-- * 'ciriObjectId'
5384+createImageResponse
5385+ :: CreateImageResponse
5386+createImageResponse =
5387+ CreateImageResponse'
5388+ { _ciriObjectId = Nothing
5389+ }
5390+
5391+-- | The object ID of the created image.
5392+ciriObjectId :: Lens' CreateImageResponse (Maybe Text)
5393+ciriObjectId
5394+ = lens _ciriObjectId (\ s a -> s{_ciriObjectId = a})
5395+
5396+instance FromJSON CreateImageResponse where
5397+ parseJSON
5398+ = withObject "CreateImageResponse"
5399+ (\ o -> CreateImageResponse' <$> (o .:? "objectId"))
5400+
5401+instance ToJSON CreateImageResponse where
5402+ toJSON CreateImageResponse'{..}
5403+ = object
5404+ (catMaybes [("objectId" .=) <$> _ciriObjectId])
5405+
5406+-- | A TextElement describes the content of a range of indices in the text
5407+-- content of a Shape or TableCell.
5408+--
5409+-- /See:/ 'textElement' smart constructor.
5410+data TextElement = TextElement'
5411+ { _teParagraphMarker :: !(Maybe ParagraphMarker)
5412+ , _teAutoText :: !(Maybe AutoText)
5413+ , _teEndIndex :: !(Maybe (Textual Int32))
5414+ , _teTextRun :: !(Maybe TextRun)
5415+ , _teStartIndex :: !(Maybe (Textual Int32))
5416+ } deriving (Eq,Show,Data,Typeable,Generic)
5417+
5418+-- | Creates a value of 'TextElement' with the minimum fields required to make a request.
5419+--
5420+-- Use one of the following lenses to modify other fields as desired:
5421+--
5422+-- * 'teParagraphMarker'
5423+--
5424+-- * 'teAutoText'
5425+--
5426+-- * 'teEndIndex'
5427+--
5428+-- * 'teTextRun'
5429+--
5430+-- * 'teStartIndex'
5431+textElement
5432+ :: TextElement
5433+textElement =
5434+ TextElement'
5435+ { _teParagraphMarker = Nothing
5436+ , _teAutoText = Nothing
5437+ , _teEndIndex = Nothing
5438+ , _teTextRun = Nothing
5439+ , _teStartIndex = Nothing
5440+ }
5441+
5442+-- | A marker representing the beginning of a new paragraph. The
5443+-- \`start_index\` and \`end_index\` of this TextElement represent the
5444+-- range of the paragraph. Other TextElements with an index range contained
5445+-- inside this paragraph\'s range are considered to be part of this
5446+-- paragraph. The range of indices of two separate paragraphs will never
5447+-- overlap.
5448+teParagraphMarker :: Lens' TextElement (Maybe ParagraphMarker)
5449+teParagraphMarker
5450+ = lens _teParagraphMarker
5451+ (\ s a -> s{_teParagraphMarker = a})
5452+
5453+-- | A TextElement representing a spot in the text that is dynamically
5454+-- replaced with content that can change over time.
5455+teAutoText :: Lens' TextElement (Maybe AutoText)
5456+teAutoText
5457+ = lens _teAutoText (\ s a -> s{_teAutoText = a})
5458+
5459+-- | The zero-based end index of this text element, exclusive, in Unicode
5460+-- code units.
5461+teEndIndex :: Lens' TextElement (Maybe Int32)
5462+teEndIndex
5463+ = lens _teEndIndex (\ s a -> s{_teEndIndex = a}) .
5464+ mapping _Coerce
5465+
5466+-- | A TextElement representing a run of text where all of the characters in
5467+-- the run have the same TextStyle. The \`start_index\` and \`end_index\`
5468+-- of TextRuns will always be fully contained in the index range of a
5469+-- single \`paragraph_marker\` TextElement. In other words, a TextRun will
5470+-- never span multiple paragraphs.
5471+teTextRun :: Lens' TextElement (Maybe TextRun)
5472+teTextRun
5473+ = lens _teTextRun (\ s a -> s{_teTextRun = a})
5474+
5475+-- | The zero-based start index of this text element, in Unicode code units.
5476+teStartIndex :: Lens' TextElement (Maybe Int32)
5477+teStartIndex
5478+ = lens _teStartIndex (\ s a -> s{_teStartIndex = a})
5479+ . mapping _Coerce
5480+
5481+instance FromJSON TextElement where
5482+ parseJSON
5483+ = withObject "TextElement"
5484+ (\ o ->
5485+ TextElement' <$>
5486+ (o .:? "paragraphMarker") <*> (o .:? "autoText") <*>
5487+ (o .:? "endIndex")
5488+ <*> (o .:? "textRun")
5489+ <*> (o .:? "startIndex"))
5490+
5491+instance ToJSON TextElement where
5492+ toJSON TextElement'{..}
5493+ = object
5494+ (catMaybes
5495+ [("paragraphMarker" .=) <$> _teParagraphMarker,
5496+ ("autoText" .=) <$> _teAutoText,
5497+ ("endIndex" .=) <$> _teEndIndex,
5498+ ("textRun" .=) <$> _teTextRun,
5499+ ("startIndex" .=) <$> _teStartIndex])
5500+
5501+-- | Inserts text into a shape or a table cell.
5502+--
5503+-- /See:/ 'insertTextRequest' smart constructor.
5504+data InsertTextRequest = InsertTextRequest'
5505+ { _itrText :: !(Maybe Text)
5506+ , _itrObjectId :: !(Maybe Text)
5507+ , _itrInsertionIndex :: !(Maybe (Textual Int32))
5508+ , _itrCellLocation :: !(Maybe TableCellLocation)
5509+ } deriving (Eq,Show,Data,Typeable,Generic)
5510+
5511+-- | Creates a value of 'InsertTextRequest' with the minimum fields required to make a request.
5512+--
5513+-- Use one of the following lenses to modify other fields as desired:
5514+--
5515+-- * 'itrText'
5516+--
5517+-- * 'itrObjectId'
5518+--
5519+-- * 'itrInsertionIndex'
5520+--
5521+-- * 'itrCellLocation'
5522+insertTextRequest
5523+ :: InsertTextRequest
5524+insertTextRequest =
5525+ InsertTextRequest'
5526+ { _itrText = Nothing
5527+ , _itrObjectId = Nothing
5528+ , _itrInsertionIndex = Nothing
5529+ , _itrCellLocation = Nothing
5530+ }
5531+
5532+-- | The text to be inserted. Inserting a newline character will implicitly
5533+-- create a new ParagraphMarker at that index. The paragraph style of the
5534+-- new paragraph will be copied from the paragraph at the current insertion
5535+-- index, including lists and bullets. Text styles for inserted text will
5536+-- be determined automatically, generally preserving the styling of
5537+-- neighboring text. In most cases, the text will be added to the TextRun
5538+-- that exists at the insertion index. Some control characters
5539+-- (U+0000-U+0008, U+000C-U+001F) and characters from the Unicode Basic
5540+-- Multilingual Plane Private Use Area (U+E000-U+F8FF) will be stripped out
5541+-- of the inserted text.
5542+itrText :: Lens' InsertTextRequest (Maybe Text)
5543+itrText = lens _itrText (\ s a -> s{_itrText = a})
5544+
5545+-- | The object ID of the shape or table where the text will be inserted.
5546+itrObjectId :: Lens' InsertTextRequest (Maybe Text)
5547+itrObjectId
5548+ = lens _itrObjectId (\ s a -> s{_itrObjectId = a})
5549+
5550+-- | The index where the text will be inserted, in Unicode code units, based
5551+-- on TextElement indexes. The index is zero-based and is computed from the
5552+-- start of the string. The index may be adjusted to prevent insertions
5553+-- inside Unicode grapheme clusters. In these cases, the text will be
5554+-- inserted immediately after the grapheme cluster.
5555+itrInsertionIndex :: Lens' InsertTextRequest (Maybe Int32)
5556+itrInsertionIndex
5557+ = lens _itrInsertionIndex
5558+ (\ s a -> s{_itrInsertionIndex = a})
5559+ . mapping _Coerce
5560+
5561+-- | The optional table cell location if the text is to be inserted into a
5562+-- table cell. If present, the object_id must refer to a table.
5563+itrCellLocation :: Lens' InsertTextRequest (Maybe TableCellLocation)
5564+itrCellLocation
5565+ = lens _itrCellLocation
5566+ (\ s a -> s{_itrCellLocation = a})
5567+
5568+instance FromJSON InsertTextRequest where
5569+ parseJSON
5570+ = withObject "InsertTextRequest"
5571+ (\ o ->
5572+ InsertTextRequest' <$>
5573+ (o .:? "text") <*> (o .:? "objectId") <*>
5574+ (o .:? "insertionIndex")
5575+ <*> (o .:? "cellLocation"))
5576+
5577+instance ToJSON InsertTextRequest where
5578+ toJSON InsertTextRequest'{..}
5579+ = object
5580+ (catMaybes
5581+ [("text" .=) <$> _itrText,
5582+ ("objectId" .=) <$> _itrObjectId,
5583+ ("insertionIndex" .=) <$> _itrInsertionIndex,
5584+ ("cellLocation" .=) <$> _itrCellLocation])
5585+
5586+-- | Creates a line.
5587+--
5588+-- /See:/ 'createLineRequest' smart constructor.
5589+data CreateLineRequest = CreateLineRequest'
5590+ { _clrlObjectId :: !(Maybe Text)
5591+ , _clrlLineCategory :: !(Maybe CreateLineRequestLineCategory)
5592+ , _clrlElementProperties :: !(Maybe PageElementProperties)
5593+ } deriving (Eq,Show,Data,Typeable,Generic)
5594+
5595+-- | Creates a value of 'CreateLineRequest' with the minimum fields required to make a request.
5596+--
5597+-- Use one of the following lenses to modify other fields as desired:
5598+--
5599+-- * 'clrlObjectId'
5600+--
5601+-- * 'clrlLineCategory'
5602+--
5603+-- * 'clrlElementProperties'
5604+createLineRequest
5605+ :: CreateLineRequest
5606+createLineRequest =
5607+ CreateLineRequest'
5608+ { _clrlObjectId = Nothing
5609+ , _clrlLineCategory = Nothing
5610+ , _clrlElementProperties = Nothing
5611+ }
5612+
5613+-- | A user-supplied object ID. If you specify an ID, it must be unique among
5614+-- all pages and page elements in the presentation. The ID must start with
5615+-- an alphanumeric character or an underscore (matches regex
5616+-- \`[a-zA-Z0-9_]\`); remaining characters may include those as well as a
5617+-- hyphen or colon (matches regex \`[a-zA-Z0-9_-:]\`). The length of the ID
5618+-- must not be less than 5 or greater than 50. If you don\'t specify an ID,
5619+-- a unique one is generated.
5620+clrlObjectId :: Lens' CreateLineRequest (Maybe Text)
5621+clrlObjectId
5622+ = lens _clrlObjectId (\ s a -> s{_clrlObjectId = a})
5623+
5624+-- | The category of line to be created.
5625+clrlLineCategory :: Lens' CreateLineRequest (Maybe CreateLineRequestLineCategory)
5626+clrlLineCategory
5627+ = lens _clrlLineCategory
5628+ (\ s a -> s{_clrlLineCategory = a})
5629+
5630+-- | The element properties for the line.
5631+clrlElementProperties :: Lens' CreateLineRequest (Maybe PageElementProperties)
5632+clrlElementProperties
5633+ = lens _clrlElementProperties
5634+ (\ s a -> s{_clrlElementProperties = a})
5635+
5636+instance FromJSON CreateLineRequest where
5637+ parseJSON
5638+ = withObject "CreateLineRequest"
5639+ (\ o ->
5640+ CreateLineRequest' <$>
5641+ (o .:? "objectId") <*> (o .:? "lineCategory") <*>
5642+ (o .:? "elementProperties"))
5643+
5644+instance ToJSON CreateLineRequest where
5645+ toJSON CreateLineRequest'{..}
5646+ = object
5647+ (catMaybes
5648+ [("objectId" .=) <$> _clrlObjectId,
5649+ ("lineCategory" .=) <$> _clrlLineCategory,
5650+ ("elementProperties" .=) <$> _clrlElementProperties])
5651+
5652+-- | The placeholder information that uniquely identifies a placeholder
5653+-- shape.
5654+--
5655+-- /See:/ 'placeholder' smart constructor.
5656+data Placeholder = Placeholder'
5657+ { _pParentObjectId :: !(Maybe Text)
5658+ , _pType :: !(Maybe PlaceholderType)
5659+ , _pIndex :: !(Maybe (Textual Int32))
5660+ } deriving (Eq,Show,Data,Typeable,Generic)
5661+
5662+-- | Creates a value of 'Placeholder' with the minimum fields required to make a request.
5663+--
5664+-- Use one of the following lenses to modify other fields as desired:
5665+--
5666+-- * 'pParentObjectId'
5667+--
5668+-- * 'pType'
5669+--
5670+-- * 'pIndex'
5671+placeholder
5672+ :: Placeholder
5673+placeholder =
5674+ Placeholder'
5675+ { _pParentObjectId = Nothing
5676+ , _pType = Nothing
5677+ , _pIndex = Nothing
5678+ }
5679+
5680+-- | The object ID of this shape\'s parent placeholder. If unset, the parent
5681+-- placeholder shape does not exist, so the shape does not inherit
5682+-- properties from any other shape.
5683+pParentObjectId :: Lens' Placeholder (Maybe Text)
5684+pParentObjectId
5685+ = lens _pParentObjectId
5686+ (\ s a -> s{_pParentObjectId = a})
5687+
5688+-- | The type of the placeholder.
5689+pType :: Lens' Placeholder (Maybe PlaceholderType)
5690+pType = lens _pType (\ s a -> s{_pType = a})
5691+
5692+-- | The index of the placeholder. If the same placeholder types are the
5693+-- present in the same page, they would have different index values.
5694+pIndex :: Lens' Placeholder (Maybe Int32)
5695+pIndex
5696+ = lens _pIndex (\ s a -> s{_pIndex = a}) .
5697+ mapping _Coerce
5698+
5699+instance FromJSON Placeholder where
5700+ parseJSON
5701+ = withObject "Placeholder"
5702+ (\ o ->
5703+ Placeholder' <$>
5704+ (o .:? "parentObjectId") <*> (o .:? "type") <*>
5705+ (o .:? "index"))
5706+
5707+instance ToJSON Placeholder where
5708+ toJSON Placeholder'{..}
5709+ = object
5710+ (catMaybes
5711+ [("parentObjectId" .=) <$> _pParentObjectId,
5712+ ("type" .=) <$> _pType, ("index" .=) <$> _pIndex])
5713+
5714+-- | The properties of Page are only relevant for pages with page_type
5715+-- LAYOUT.
5716+--
5717+-- /See:/ 'layoutProperties' smart constructor.
5718+data LayoutProperties = LayoutProperties'
5719+ { _lpMasterObjectId :: !(Maybe Text)
5720+ , _lpName :: !(Maybe Text)
5721+ , _lpDisplayName :: !(Maybe Text)
5722+ } deriving (Eq,Show,Data,Typeable,Generic)
5723+
5724+-- | Creates a value of 'LayoutProperties' with the minimum fields required to make a request.
5725+--
5726+-- Use one of the following lenses to modify other fields as desired:
5727+--
5728+-- * 'lpMasterObjectId'
5729+--
5730+-- * 'lpName'
5731+--
5732+-- * 'lpDisplayName'
5733+layoutProperties
5734+ :: LayoutProperties
5735+layoutProperties =
5736+ LayoutProperties'
5737+ { _lpMasterObjectId = Nothing
5738+ , _lpName = Nothing
5739+ , _lpDisplayName = Nothing
5740+ }
5741+
5742+-- | The object ID of the master that this layout is based on.
5743+lpMasterObjectId :: Lens' LayoutProperties (Maybe Text)
5744+lpMasterObjectId
5745+ = lens _lpMasterObjectId
5746+ (\ s a -> s{_lpMasterObjectId = a})
5747+
5748+-- | The name of the layout.
5749+lpName :: Lens' LayoutProperties (Maybe Text)
5750+lpName = lens _lpName (\ s a -> s{_lpName = a})
5751+
5752+-- | The human readable name of the layout in the presentation\'s locale.
5753+lpDisplayName :: Lens' LayoutProperties (Maybe Text)
5754+lpDisplayName
5755+ = lens _lpDisplayName
5756+ (\ s a -> s{_lpDisplayName = a})
5757+
5758+instance FromJSON LayoutProperties where
5759+ parseJSON
5760+ = withObject "LayoutProperties"
5761+ (\ o ->
5762+ LayoutProperties' <$>
5763+ (o .:? "masterObjectId") <*> (o .:? "name") <*>
5764+ (o .:? "displayName"))
5765+
5766+instance ToJSON LayoutProperties where
5767+ toJSON LayoutProperties'{..}
5768+ = object
5769+ (catMaybes
5770+ [("masterObjectId" .=) <$> _lpMasterObjectId,
5771+ ("name" .=) <$> _lpName,
5772+ ("displayName" .=) <$> _lpDisplayName])
5773+
5774+-- | Update the properties of a Shape.
5775+--
5776+-- /See:/ 'updateShapePropertiesRequest' smart constructor.
5777+data UpdateShapePropertiesRequest = UpdateShapePropertiesRequest'
5778+ { _usprObjectId :: !(Maybe Text)
5779+ , _usprShapeProperties :: !(Maybe ShapeProperties)
5780+ , _usprFields :: !(Maybe FieldMask)
5781+ } deriving (Eq,Show,Data,Typeable,Generic)
5782+
5783+-- | Creates a value of 'UpdateShapePropertiesRequest' with the minimum fields required to make a request.
5784+--
5785+-- Use one of the following lenses to modify other fields as desired:
5786+--
5787+-- * 'usprObjectId'
5788+--
5789+-- * 'usprShapeProperties'
5790+--
5791+-- * 'usprFields'
5792+updateShapePropertiesRequest
5793+ :: UpdateShapePropertiesRequest
5794+updateShapePropertiesRequest =
5795+ UpdateShapePropertiesRequest'
5796+ { _usprObjectId = Nothing
5797+ , _usprShapeProperties = Nothing
5798+ , _usprFields = Nothing
5799+ }
5800+
5801+-- | The object ID of the shape the updates are applied to.
5802+usprObjectId :: Lens' UpdateShapePropertiesRequest (Maybe Text)
5803+usprObjectId
5804+ = lens _usprObjectId (\ s a -> s{_usprObjectId = a})
5805+
5806+-- | The shape properties to update.
5807+usprShapeProperties :: Lens' UpdateShapePropertiesRequest (Maybe ShapeProperties)
5808+usprShapeProperties
5809+ = lens _usprShapeProperties
5810+ (\ s a -> s{_usprShapeProperties = a})
5811+
5812+-- | The fields that should be updated. At least one field must be specified.
5813+-- The root \`shapeProperties\` is implied and should not be specified. A
5814+-- single \`\"*\"\` can be used as short-hand for listing every field. For
5815+-- example to update the shape background solid fill color, set \`fields\`
5816+-- to \`\"shapeBackgroundFill.solidFill.color\"\`. To reset a property to
5817+-- its default value, include its field name in the field mask but leave
5818+-- the field itself unset.
5819+usprFields :: Lens' UpdateShapePropertiesRequest (Maybe FieldMask)
5820+usprFields
5821+ = lens _usprFields (\ s a -> s{_usprFields = a})
5822+
5823+instance FromJSON UpdateShapePropertiesRequest where
5824+ parseJSON
5825+ = withObject "UpdateShapePropertiesRequest"
5826+ (\ o ->
5827+ UpdateShapePropertiesRequest' <$>
5828+ (o .:? "objectId") <*> (o .:? "shapeProperties") <*>
5829+ (o .:? "fields"))
5830+
5831+instance ToJSON UpdateShapePropertiesRequest where
5832+ toJSON UpdateShapePropertiesRequest'{..}
5833+ = object
5834+ (catMaybes
5835+ [("objectId" .=) <$> _usprObjectId,
5836+ ("shapeProperties" .=) <$> _usprShapeProperties,
5837+ ("fields" .=) <$> _usprFields])
5838+
5839+-- | A PageElement kind representing a table.
5840+--
5841+-- /See:/ 'table' smart constructor.
5842+data Table = Table'
5843+ { _tTableRows :: !(Maybe [TableRow])
5844+ , _tRows :: !(Maybe (Textual Int32))
5845+ , _tColumns :: !(Maybe (Textual Int32))
5846+ , _tTableColumns :: !(Maybe [TableColumnProperties])
5847+ } deriving (Eq,Show,Data,Typeable,Generic)
5848+
5849+-- | Creates a value of 'Table' with the minimum fields required to make a request.
5850+--
5851+-- Use one of the following lenses to modify other fields as desired:
5852+--
5853+-- * 'tTableRows'
5854+--
5855+-- * 'tRows'
5856+--
5857+-- * 'tColumns'
5858+--
5859+-- * 'tTableColumns'
5860+table
5861+ :: Table
5862+table =
5863+ Table'
5864+ { _tTableRows = Nothing
5865+ , _tRows = Nothing
5866+ , _tColumns = Nothing
5867+ , _tTableColumns = Nothing
5868+ }
5869+
5870+-- | Properties and contents of each row. Cells that span multiple rows are
5871+-- contained in only one of these rows and have a row_span greater than 1.
5872+tTableRows :: Lens' Table [TableRow]
5873+tTableRows
5874+ = lens _tTableRows (\ s a -> s{_tTableRows = a}) .
5875+ _Default
5876+ . _Coerce
5877+
5878+-- | Number of rows in the table.
5879+tRows :: Lens' Table (Maybe Int32)
5880+tRows
5881+ = lens _tRows (\ s a -> s{_tRows = a}) .
5882+ mapping _Coerce
5883+
5884+-- | Number of columns in the table.
5885+tColumns :: Lens' Table (Maybe Int32)
5886+tColumns
5887+ = lens _tColumns (\ s a -> s{_tColumns = a}) .
5888+ mapping _Coerce
5889+
5890+-- | Properties of each column.
5891+tTableColumns :: Lens' Table [TableColumnProperties]
5892+tTableColumns
5893+ = lens _tTableColumns
5894+ (\ s a -> s{_tTableColumns = a})
5895+ . _Default
5896+ . _Coerce
5897+
5898+instance FromJSON Table where
5899+ parseJSON
5900+ = withObject "Table"
5901+ (\ o ->
5902+ Table' <$>
5903+ (o .:? "tableRows" .!= mempty) <*> (o .:? "rows") <*>
5904+ (o .:? "columns")
5905+ <*> (o .:? "tableColumns" .!= mempty))
5906+
5907+instance ToJSON Table where
5908+ toJSON Table'{..}
5909+ = object
5910+ (catMaybes
5911+ [("tableRows" .=) <$> _tTableRows,
5912+ ("rows" .=) <$> _tRows, ("columns" .=) <$> _tColumns,
5913+ ("tableColumns" .=) <$> _tTableColumns])
5914+
5915+-- | The properties of a Shape. If the shape is a placeholder shape as
5916+-- determined by the placeholder field, then these properties may be
5917+-- inherited from a parent placeholder shape. Determining the rendered
5918+-- value of the property depends on the corresponding property_state field
5919+-- value.
5920+--
5921+-- /See:/ 'shapeProperties' smart constructor.
5922+data ShapeProperties = ShapeProperties'
5923+ { _spLink :: !(Maybe Link)
5924+ , _spShadow :: !(Maybe Shadow)
5925+ , _spOutline :: !(Maybe Outline)
5926+ , _spShapeBackgRoundFill :: !(Maybe ShapeBackgRoundFill)
5927+ } deriving (Eq,Show,Data,Typeable,Generic)
5928+
5929+-- | Creates a value of 'ShapeProperties' with the minimum fields required to make a request.
5930+--
5931+-- Use one of the following lenses to modify other fields as desired:
5932+--
5933+-- * 'spLink'
5934+--
5935+-- * 'spShadow'
5936+--
5937+-- * 'spOutline'
5938+--
5939+-- * 'spShapeBackgRoundFill'
5940+shapeProperties
5941+ :: ShapeProperties
5942+shapeProperties =
5943+ ShapeProperties'
5944+ { _spLink = Nothing
5945+ , _spShadow = Nothing
5946+ , _spOutline = Nothing
5947+ , _spShapeBackgRoundFill = Nothing
5948+ }
5949+
5950+-- | The hyperlink destination of the shape. If unset, there is no link.
5951+-- Links are not inherited from parent placeholders.
5952+spLink :: Lens' ShapeProperties (Maybe Link)
5953+spLink = lens _spLink (\ s a -> s{_spLink = a})
5954+
5955+-- | The shadow properties of the shape. If unset, the shadow is inherited
5956+-- from a parent placeholder if it exists. If the shape has no parent, then
5957+-- the default shadow matches the defaults for new shapes created in the
5958+-- Slides editor. This property is read-only.
5959+spShadow :: Lens' ShapeProperties (Maybe Shadow)
5960+spShadow = lens _spShadow (\ s a -> s{_spShadow = a})
5961+
5962+-- | The outline of the shape. If unset, the outline is inherited from a
5963+-- parent placeholder if it exists. If the shape has no parent, then the
5964+-- default outline depends on the shape type, matching the defaults for new
5965+-- shapes created in the Slides editor.
5966+spOutline :: Lens' ShapeProperties (Maybe Outline)
5967+spOutline
5968+ = lens _spOutline (\ s a -> s{_spOutline = a})
5969+
5970+-- | The background fill of the shape. If unset, the background fill is
5971+-- inherited from a parent placeholder if it exists. If the shape has no
5972+-- parent, then the default background fill depends on the shape type,
5973+-- matching the defaults for new shapes created in the Slides editor.
5974+spShapeBackgRoundFill :: Lens' ShapeProperties (Maybe ShapeBackgRoundFill)
5975+spShapeBackgRoundFill
5976+ = lens _spShapeBackgRoundFill
5977+ (\ s a -> s{_spShapeBackgRoundFill = a})
5978+
5979+instance FromJSON ShapeProperties where
5980+ parseJSON
5981+ = withObject "ShapeProperties"
5982+ (\ o ->
5983+ ShapeProperties' <$>
5984+ (o .:? "link") <*> (o .:? "shadow") <*>
5985+ (o .:? "outline")
5986+ <*> (o .:? "shapeBackgroundFill"))
5987+
5988+instance ToJSON ShapeProperties where
5989+ toJSON ShapeProperties'{..}
5990+ = object
5991+ (catMaybes
5992+ [("link" .=) <$> _spLink,
5993+ ("shadow" .=) <$> _spShadow,
5994+ ("outline" .=) <$> _spOutline,
5995+ ("shapeBackgroundFill" .=) <$>
5996+ _spShapeBackgRoundFill])
5997+
5998+-- | The shape background fill.
5999+--
6000+-- /See:/ 'shapeBackgRoundFill' smart constructor.
6001+data ShapeBackgRoundFill = ShapeBackgRoundFill'
6002+ { _sbrfSolidFill :: !(Maybe SolidFill)
6003+ , _sbrfPropertyState :: !(Maybe ShapeBackgRoundFillPropertyState)
6004+ } deriving (Eq,Show,Data,Typeable,Generic)
6005+
6006+-- | Creates a value of 'ShapeBackgRoundFill' with the minimum fields required to make a request.
6007+--
6008+-- Use one of the following lenses to modify other fields as desired:
6009+--
6010+-- * 'sbrfSolidFill'
6011+--
6012+-- * 'sbrfPropertyState'
6013+shapeBackgRoundFill
6014+ :: ShapeBackgRoundFill
6015+shapeBackgRoundFill =
6016+ ShapeBackgRoundFill'
6017+ { _sbrfSolidFill = Nothing
6018+ , _sbrfPropertyState = Nothing
6019+ }
6020+
6021+-- | Solid color fill.
6022+sbrfSolidFill :: Lens' ShapeBackgRoundFill (Maybe SolidFill)
6023+sbrfSolidFill
6024+ = lens _sbrfSolidFill
6025+ (\ s a -> s{_sbrfSolidFill = a})
6026+
6027+-- | The background fill property state. Updating the the fill on a shape
6028+-- will implicitly update this field to \`RENDERED\`, unless another value
6029+-- is specified in the same request. To have no fill on a shape, set this
6030+-- field to \`NOT_RENDERED\`. In this case, any other fill fields set in
6031+-- the same request will be ignored.
6032+sbrfPropertyState :: Lens' ShapeBackgRoundFill (Maybe ShapeBackgRoundFillPropertyState)
6033+sbrfPropertyState
6034+ = lens _sbrfPropertyState
6035+ (\ s a -> s{_sbrfPropertyState = a})
6036+
6037+instance FromJSON ShapeBackgRoundFill where
6038+ parseJSON
6039+ = withObject "ShapeBackgRoundFill"
6040+ (\ o ->
6041+ ShapeBackgRoundFill' <$>
6042+ (o .:? "solidFill") <*> (o .:? "propertyState"))
6043+
6044+instance ToJSON ShapeBackgRoundFill where
6045+ toJSON ShapeBackgRoundFill'{..}
6046+ = object
6047+ (catMaybes
6048+ [("solidFill" .=) <$> _sbrfSolidFill,
6049+ ("propertyState" .=) <$> _sbrfPropertyState])
6050+
6051+-- | Creates bullets for all of the paragraphs that overlap with the given
6052+-- text index range. The nesting level of each paragraph will be determined
6053+-- by counting leading tabs in front of each paragraph. To avoid excess
6054+-- space between the bullet and the corresponding paragraph, these leading
6055+-- tabs are removed by this request. This may change the indices of parts
6056+-- of the text. If the paragraph immediately before paragraphs being
6057+-- updated is in a list with a matching preset, the paragraphs being
6058+-- updated are added to that preceding list.
6059+--
6060+-- /See:/ 'createParagraphBulletsRequest' smart constructor.
6061+data CreateParagraphBulletsRequest = CreateParagraphBulletsRequest'
6062+ { _cpbrTextRange :: !(Maybe Range)
6063+ , _cpbrObjectId :: !(Maybe Text)
6064+ , _cpbrBulletPreset :: !(Maybe CreateParagraphBulletsRequestBulletPreset)
6065+ , _cpbrCellLocation :: !(Maybe TableCellLocation)
6066+ } deriving (Eq,Show,Data,Typeable,Generic)
6067+
6068+-- | Creates a value of 'CreateParagraphBulletsRequest' with the minimum fields required to make a request.
6069+--
6070+-- Use one of the following lenses to modify other fields as desired:
6071+--
6072+-- * 'cpbrTextRange'
6073+--
6074+-- * 'cpbrObjectId'
6075+--
6076+-- * 'cpbrBulletPreset'
6077+--
6078+-- * 'cpbrCellLocation'
6079+createParagraphBulletsRequest
6080+ :: CreateParagraphBulletsRequest
6081+createParagraphBulletsRequest =
6082+ CreateParagraphBulletsRequest'
6083+ { _cpbrTextRange = Nothing
6084+ , _cpbrObjectId = Nothing
6085+ , _cpbrBulletPreset = Nothing
6086+ , _cpbrCellLocation = Nothing
6087+ }
6088+
6089+-- | The range of text to apply the bullet presets to, based on TextElement
6090+-- indexes.
6091+cpbrTextRange :: Lens' CreateParagraphBulletsRequest (Maybe Range)
6092+cpbrTextRange
6093+ = lens _cpbrTextRange
6094+ (\ s a -> s{_cpbrTextRange = a})
6095+
6096+-- | The object ID of the shape or table containing the text to add bullets
6097+-- to.
6098+cpbrObjectId :: Lens' CreateParagraphBulletsRequest (Maybe Text)
6099+cpbrObjectId
6100+ = lens _cpbrObjectId (\ s a -> s{_cpbrObjectId = a})
6101+
6102+-- | The kinds of bullet glyphs to be used. Defaults to the
6103+-- \`BULLET_DISC_CIRCLE_SQUARE\` preset.
6104+cpbrBulletPreset :: Lens' CreateParagraphBulletsRequest (Maybe CreateParagraphBulletsRequestBulletPreset)
6105+cpbrBulletPreset
6106+ = lens _cpbrBulletPreset
6107+ (\ s a -> s{_cpbrBulletPreset = a})
6108+
6109+-- | The optional table cell location if the text to be modified is in a
6110+-- table cell. If present, the object_id must refer to a table.
6111+cpbrCellLocation :: Lens' CreateParagraphBulletsRequest (Maybe TableCellLocation)
6112+cpbrCellLocation
6113+ = lens _cpbrCellLocation
6114+ (\ s a -> s{_cpbrCellLocation = a})
6115+
6116+instance FromJSON CreateParagraphBulletsRequest where
6117+ parseJSON
6118+ = withObject "CreateParagraphBulletsRequest"
6119+ (\ o ->
6120+ CreateParagraphBulletsRequest' <$>
6121+ (o .:? "textRange") <*> (o .:? "objectId") <*>
6122+ (o .:? "bulletPreset")
6123+ <*> (o .:? "cellLocation"))
6124+
6125+instance ToJSON CreateParagraphBulletsRequest where
6126+ toJSON CreateParagraphBulletsRequest'{..}
6127+ = object
6128+ (catMaybes
6129+ [("textRange" .=) <$> _cpbrTextRange,
6130+ ("objectId" .=) <$> _cpbrObjectId,
6131+ ("bulletPreset" .=) <$> _cpbrBulletPreset,
6132+ ("cellLocation" .=) <$> _cpbrCellLocation])
6133+
6134+-- | Update the properties of a TableCell.
6135+--
6136+-- /See:/ 'updateTableCellPropertiesRequest' smart constructor.
6137+data UpdateTableCellPropertiesRequest = UpdateTableCellPropertiesRequest'
6138+ { _utcprObjectId :: !(Maybe Text)
6139+ , _utcprTableCellProperties :: !(Maybe TableCellProperties)
6140+ , _utcprTableRange :: !(Maybe TableRange)
6141+ , _utcprFields :: !(Maybe FieldMask)
6142+ } deriving (Eq,Show,Data,Typeable,Generic)
6143+
6144+-- | Creates a value of 'UpdateTableCellPropertiesRequest' with the minimum fields required to make a request.
6145+--
6146+-- Use one of the following lenses to modify other fields as desired:
6147+--
6148+-- * 'utcprObjectId'
6149+--
6150+-- * 'utcprTableCellProperties'
6151+--
6152+-- * 'utcprTableRange'
6153+--
6154+-- * 'utcprFields'
6155+updateTableCellPropertiesRequest
6156+ :: UpdateTableCellPropertiesRequest
6157+updateTableCellPropertiesRequest =
6158+ UpdateTableCellPropertiesRequest'
6159+ { _utcprObjectId = Nothing
6160+ , _utcprTableCellProperties = Nothing
6161+ , _utcprTableRange = Nothing
6162+ , _utcprFields = Nothing
6163+ }
6164+
6165+-- | The object ID of the table.
6166+utcprObjectId :: Lens' UpdateTableCellPropertiesRequest (Maybe Text)
6167+utcprObjectId
6168+ = lens _utcprObjectId
6169+ (\ s a -> s{_utcprObjectId = a})
6170+
6171+-- | The table cell properties to update.
6172+utcprTableCellProperties :: Lens' UpdateTableCellPropertiesRequest (Maybe TableCellProperties)
6173+utcprTableCellProperties
6174+ = lens _utcprTableCellProperties
6175+ (\ s a -> s{_utcprTableCellProperties = a})
6176+
6177+-- | The table range representing the subset of the table to which the
6178+-- updates are applied. If a table range is not specified, the updates will
6179+-- apply to the entire table.
6180+utcprTableRange :: Lens' UpdateTableCellPropertiesRequest (Maybe TableRange)
6181+utcprTableRange
6182+ = lens _utcprTableRange
6183+ (\ s a -> s{_utcprTableRange = a})
6184+
6185+-- | The fields that should be updated. At least one field must be specified.
6186+-- The root \`tableCellProperties\` is implied and should not be specified.
6187+-- A single \`\"*\"\` can be used as short-hand for listing every field.
6188+-- For example to update the table cell background solid fill color, set
6189+-- \`fields\` to \`\"tableCellBackgroundFill.solidFill.color\"\`. To reset
6190+-- a property to its default value, include its field name in the field
6191+-- mask but leave the field itself unset.
6192+utcprFields :: Lens' UpdateTableCellPropertiesRequest (Maybe FieldMask)
6193+utcprFields
6194+ = lens _utcprFields (\ s a -> s{_utcprFields = a})
6195+
6196+instance FromJSON UpdateTableCellPropertiesRequest
6197+ where
6198+ parseJSON
6199+ = withObject "UpdateTableCellPropertiesRequest"
6200+ (\ o ->
6201+ UpdateTableCellPropertiesRequest' <$>
6202+ (o .:? "objectId") <*> (o .:? "tableCellProperties")
6203+ <*> (o .:? "tableRange")
6204+ <*> (o .:? "fields"))
6205+
6206+instance ToJSON UpdateTableCellPropertiesRequest
6207+ where
6208+ toJSON UpdateTableCellPropertiesRequest'{..}
6209+ = object
6210+ (catMaybes
6211+ [("objectId" .=) <$> _utcprObjectId,
6212+ ("tableCellProperties" .=) <$>
6213+ _utcprTableCellProperties,
6214+ ("tableRange" .=) <$> _utcprTableRange,
6215+ ("fields" .=) <$> _utcprFields])
6216+
6217+-- | The properties of the SheetsChart.
6218+--
6219+-- /See:/ 'sheetsChartProperties' smart constructor.
6220+newtype SheetsChartProperties = SheetsChartProperties'
6221+ { _scpChartImageProperties :: Maybe ImageProperties
6222+ } deriving (Eq,Show,Data,Typeable,Generic)
6223+
6224+-- | Creates a value of 'SheetsChartProperties' with the minimum fields required to make a request.
6225+--
6226+-- Use one of the following lenses to modify other fields as desired:
6227+--
6228+-- * 'scpChartImageProperties'
6229+sheetsChartProperties
6230+ :: SheetsChartProperties
6231+sheetsChartProperties =
6232+ SheetsChartProperties'
6233+ { _scpChartImageProperties = Nothing
6234+ }
6235+
6236+-- | The properties of the embedded chart image.
6237+scpChartImageProperties :: Lens' SheetsChartProperties (Maybe ImageProperties)
6238+scpChartImageProperties
6239+ = lens _scpChartImageProperties
6240+ (\ s a -> s{_scpChartImageProperties = a})
6241+
6242+instance FromJSON SheetsChartProperties where
6243+ parseJSON
6244+ = withObject "SheetsChartProperties"
6245+ (\ o ->
6246+ SheetsChartProperties' <$>
6247+ (o .:? "chartImageProperties"))
6248+
6249+instance ToJSON SheetsChartProperties where
6250+ toJSON SheetsChartProperties'{..}
6251+ = object
6252+ (catMaybes
6253+ [("chartImageProperties" .=) <$>
6254+ _scpChartImageProperties])
6255+
6256+-- | Styles that apply to a whole paragraph. If this text is contained in a
6257+-- shape with a parent placeholder, then these paragraph styles may be
6258+-- inherited from the parent. Which paragraph styles are inherited depend
6259+-- on the nesting level of lists: * A paragraph not in a list will inherit
6260+-- its paragraph style from the paragraph at the 0 nesting level of the
6261+-- list inside the parent placeholder. * A paragraph in a list will inherit
6262+-- its paragraph style from the paragraph at its corresponding nesting
6263+-- level of the list inside the parent placeholder. Inherited paragraph
6264+-- styles are represented as unset fields in this message.
6265+--
6266+-- /See:/ 'paragraphStyle' smart constructor.
6267+data ParagraphStyle = ParagraphStyle'
6268+ { _psLineSpacing :: !(Maybe (Textual Double))
6269+ , _psDirection :: !(Maybe ParagraphStyleDirection)
6270+ , _psIndentFirstLine :: !(Maybe Dimension)
6271+ , _psIndentEnd :: !(Maybe Dimension)
6272+ , _psIndentStart :: !(Maybe Dimension)
6273+ , _psAlignment :: !(Maybe ParagraphStyleAlignment)
6274+ , _psSpaceBelow :: !(Maybe Dimension)
6275+ , _psSpacingMode :: !(Maybe ParagraphStyleSpacingMode)
6276+ , _psSpaceAbove :: !(Maybe Dimension)
6277+ } deriving (Eq,Show,Data,Typeable,Generic)
6278+
6279+-- | Creates a value of 'ParagraphStyle' with the minimum fields required to make a request.
6280+--
6281+-- Use one of the following lenses to modify other fields as desired:
6282+--
6283+-- * 'psLineSpacing'
6284+--
6285+-- * 'psDirection'
6286+--
6287+-- * 'psIndentFirstLine'
6288+--
6289+-- * 'psIndentEnd'
6290+--
6291+-- * 'psIndentStart'
6292+--
6293+-- * 'psAlignment'
6294+--
6295+-- * 'psSpaceBelow'
6296+--
6297+-- * 'psSpacingMode'
6298+--
6299+-- * 'psSpaceAbove'
6300+paragraphStyle
6301+ :: ParagraphStyle
6302+paragraphStyle =
6303+ ParagraphStyle'
6304+ { _psLineSpacing = Nothing
6305+ , _psDirection = Nothing
6306+ , _psIndentFirstLine = Nothing
6307+ , _psIndentEnd = Nothing
6308+ , _psIndentStart = Nothing
6309+ , _psAlignment = Nothing
6310+ , _psSpaceBelow = Nothing
6311+ , _psSpacingMode = Nothing
6312+ , _psSpaceAbove = Nothing
6313+ }
6314+
6315+-- | The amount of space between lines, as a percentage of normal, where
6316+-- normal is represented as 100.0. If unset, the value is inherited from
6317+-- the parent. This property is read-only.
6318+psLineSpacing :: Lens' ParagraphStyle (Maybe Double)
6319+psLineSpacing
6320+ = lens _psLineSpacing
6321+ (\ s a -> s{_psLineSpacing = a})
6322+ . mapping _Coerce
6323+
6324+-- | The text direction of this paragraph. This property is read-only.
6325+psDirection :: Lens' ParagraphStyle (Maybe ParagraphStyleDirection)
6326+psDirection
6327+ = lens _psDirection (\ s a -> s{_psDirection = a})
6328+
6329+-- | The amount of indentation for the start of the first line of the
6330+-- paragraph. If unset, the value is inherited from the parent. This
6331+-- property is read-only.
6332+psIndentFirstLine :: Lens' ParagraphStyle (Maybe Dimension)
6333+psIndentFirstLine
6334+ = lens _psIndentFirstLine
6335+ (\ s a -> s{_psIndentFirstLine = a})
6336+
6337+-- | The amount indentation for the paragraph on the side that corresponds to
6338+-- the end of the text, based on the current text direction. If unset, the
6339+-- value is inherited from the parent. This property is read-only.
6340+psIndentEnd :: Lens' ParagraphStyle (Maybe Dimension)
6341+psIndentEnd
6342+ = lens _psIndentEnd (\ s a -> s{_psIndentEnd = a})
6343+
6344+-- | The amount indentation for the paragraph on the side that corresponds to
6345+-- the start of the text, based on the current text direction. If unset,
6346+-- the value is inherited from the parent. This property is read-only.
6347+psIndentStart :: Lens' ParagraphStyle (Maybe Dimension)
6348+psIndentStart
6349+ = lens _psIndentStart
6350+ (\ s a -> s{_psIndentStart = a})
6351+
6352+-- | The text alignment for this paragraph. This property is read-only.
6353+psAlignment :: Lens' ParagraphStyle (Maybe ParagraphStyleAlignment)
6354+psAlignment
6355+ = lens _psAlignment (\ s a -> s{_psAlignment = a})
6356+
6357+-- | The amount of extra space above the paragraph. If unset, the value is
6358+-- inherited from the parent. This property is read-only.
6359+psSpaceBelow :: Lens' ParagraphStyle (Maybe Dimension)
6360+psSpaceBelow
6361+ = lens _psSpaceBelow (\ s a -> s{_psSpaceBelow = a})
6362+
6363+-- | The spacing mode for the paragraph. This property is read-only.
6364+psSpacingMode :: Lens' ParagraphStyle (Maybe ParagraphStyleSpacingMode)
6365+psSpacingMode
6366+ = lens _psSpacingMode
6367+ (\ s a -> s{_psSpacingMode = a})
6368+
6369+-- | The amount of extra space above the paragraph. If unset, the value is
6370+-- inherited from the parent. This property is read-only.
6371+psSpaceAbove :: Lens' ParagraphStyle (Maybe Dimension)
6372+psSpaceAbove
6373+ = lens _psSpaceAbove (\ s a -> s{_psSpaceAbove = a})
6374+
6375+instance FromJSON ParagraphStyle where
6376+ parseJSON
6377+ = withObject "ParagraphStyle"
6378+ (\ o ->
6379+ ParagraphStyle' <$>
6380+ (o .:? "lineSpacing") <*> (o .:? "direction") <*>
6381+ (o .:? "indentFirstLine")
6382+ <*> (o .:? "indentEnd")
6383+ <*> (o .:? "indentStart")
6384+ <*> (o .:? "alignment")
6385+ <*> (o .:? "spaceBelow")
6386+ <*> (o .:? "spacingMode")
6387+ <*> (o .:? "spaceAbove"))
6388+
6389+instance ToJSON ParagraphStyle where
6390+ toJSON ParagraphStyle'{..}
6391+ = object
6392+ (catMaybes
6393+ [("lineSpacing" .=) <$> _psLineSpacing,
6394+ ("direction" .=) <$> _psDirection,
6395+ ("indentFirstLine" .=) <$> _psIndentFirstLine,
6396+ ("indentEnd" .=) <$> _psIndentEnd,
6397+ ("indentStart" .=) <$> _psIndentStart,
6398+ ("alignment" .=) <$> _psAlignment,
6399+ ("spaceBelow" .=) <$> _psSpaceBelow,
6400+ ("spacingMode" .=) <$> _psSpacingMode,
6401+ ("spaceAbove" .=) <$> _psSpaceAbove])
6402+
6403+-- | The result of creating a table.
6404+--
6405+-- /See:/ 'createTableResponse' smart constructor.
6406+newtype CreateTableResponse = CreateTableResponse'
6407+ { _ctrtObjectId :: Maybe Text
6408+ } deriving (Eq,Show,Data,Typeable,Generic)
6409+
6410+-- | Creates a value of 'CreateTableResponse' with the minimum fields required to make a request.
6411+--
6412+-- Use one of the following lenses to modify other fields as desired:
6413+--
6414+-- * 'ctrtObjectId'
6415+createTableResponse
6416+ :: CreateTableResponse
6417+createTableResponse =
6418+ CreateTableResponse'
6419+ { _ctrtObjectId = Nothing
6420+ }
6421+
6422+-- | The object ID of the created table.
6423+ctrtObjectId :: Lens' CreateTableResponse (Maybe Text)
6424+ctrtObjectId
6425+ = lens _ctrtObjectId (\ s a -> s{_ctrtObjectId = a})
6426+
6427+instance FromJSON CreateTableResponse where
6428+ parseJSON
6429+ = withObject "CreateTableResponse"
6430+ (\ o -> CreateTableResponse' <$> (o .:? "objectId"))
6431+
6432+instance ToJSON CreateTableResponse where
6433+ toJSON CreateTableResponse'{..}
6434+ = object
6435+ (catMaybes [("objectId" .=) <$> _ctrtObjectId])
6436+
6437+-- | Properties of each column in a table.
6438+--
6439+-- /See:/ 'tableColumnProperties' smart constructor.
6440+newtype TableColumnProperties = TableColumnProperties'
6441+ { _tcpColumnWidth :: Maybe Dimension
6442+ } deriving (Eq,Show,Data,Typeable,Generic)
6443+
6444+-- | Creates a value of 'TableColumnProperties' with the minimum fields required to make a request.
6445+--
6446+-- Use one of the following lenses to modify other fields as desired:
6447+--
6448+-- * 'tcpColumnWidth'
6449+tableColumnProperties
6450+ :: TableColumnProperties
6451+tableColumnProperties =
6452+ TableColumnProperties'
6453+ { _tcpColumnWidth = Nothing
6454+ }
6455+
6456+-- | Width of a column.
6457+tcpColumnWidth :: Lens' TableColumnProperties (Maybe Dimension)
6458+tcpColumnWidth
6459+ = lens _tcpColumnWidth
6460+ (\ s a -> s{_tcpColumnWidth = a})
6461+
6462+instance FromJSON TableColumnProperties where
6463+ parseJSON
6464+ = withObject "TableColumnProperties"
6465+ (\ o ->
6466+ TableColumnProperties' <$> (o .:? "columnWidth"))
6467+
6468+instance ToJSON TableColumnProperties where
6469+ toJSON TableColumnProperties'{..}
6470+ = object
6471+ (catMaybes [("columnWidth" .=) <$> _tcpColumnWidth])
6472+
6473+-- | The response of duplicating an object.
6474+--
6475+-- /See:/ 'duplicateObjectResponse' smart constructor.
6476+newtype DuplicateObjectResponse = DuplicateObjectResponse'
6477+ { _dupObjectId :: Maybe Text
6478+ } deriving (Eq,Show,Data,Typeable,Generic)
6479+
6480+-- | Creates a value of 'DuplicateObjectResponse' with the minimum fields required to make a request.
6481+--
6482+-- Use one of the following lenses to modify other fields as desired:
6483+--
6484+-- * 'dupObjectId'
6485+duplicateObjectResponse
6486+ :: DuplicateObjectResponse
6487+duplicateObjectResponse =
6488+ DuplicateObjectResponse'
6489+ { _dupObjectId = Nothing
6490+ }
6491+
6492+-- | The ID of the new duplicate object.
6493+dupObjectId :: Lens' DuplicateObjectResponse (Maybe Text)
6494+dupObjectId
6495+ = lens _dupObjectId (\ s a -> s{_dupObjectId = a})
6496+
6497+instance FromJSON DuplicateObjectResponse where
6498+ parseJSON
6499+ = withObject "DuplicateObjectResponse"
6500+ (\ o ->
6501+ DuplicateObjectResponse' <$> (o .:? "objectId"))
6502+
6503+instance ToJSON DuplicateObjectResponse where
6504+ toJSON DuplicateObjectResponse'{..}
6505+ = object
6506+ (catMaybes [("objectId" .=) <$> _dupObjectId])
6507+
6508+-- | Replaces all instances of text matching a criteria with replace text.
6509+--
6510+-- /See:/ 'replaceAllTextRequest' smart constructor.
6511+data ReplaceAllTextRequest = ReplaceAllTextRequest'
6512+ { _ratrContainsText :: !(Maybe SubstringMatchCriteria)
6513+ , _ratrReplaceText :: !(Maybe Text)
6514+ } deriving (Eq,Show,Data,Typeable,Generic)
6515+
6516+-- | Creates a value of 'ReplaceAllTextRequest' with the minimum fields required to make a request.
6517+--
6518+-- Use one of the following lenses to modify other fields as desired:
6519+--
6520+-- * 'ratrContainsText'
6521+--
6522+-- * 'ratrReplaceText'
6523+replaceAllTextRequest
6524+ :: ReplaceAllTextRequest
6525+replaceAllTextRequest =
6526+ ReplaceAllTextRequest'
6527+ { _ratrContainsText = Nothing
6528+ , _ratrReplaceText = Nothing
6529+ }
6530+
6531+-- | Finds text in a shape matching this substring.
6532+ratrContainsText :: Lens' ReplaceAllTextRequest (Maybe SubstringMatchCriteria)
6533+ratrContainsText
6534+ = lens _ratrContainsText
6535+ (\ s a -> s{_ratrContainsText = a})
6536+
6537+-- | The text that will replace the matched text.
6538+ratrReplaceText :: Lens' ReplaceAllTextRequest (Maybe Text)
6539+ratrReplaceText
6540+ = lens _ratrReplaceText
6541+ (\ s a -> s{_ratrReplaceText = a})
6542+
6543+instance FromJSON ReplaceAllTextRequest where
6544+ parseJSON
6545+ = withObject "ReplaceAllTextRequest"
6546+ (\ o ->
6547+ ReplaceAllTextRequest' <$>
6548+ (o .:? "containsText") <*> (o .:? "replaceText"))
6549+
6550+instance ToJSON ReplaceAllTextRequest where
6551+ toJSON ReplaceAllTextRequest'{..}
6552+ = object
6553+ (catMaybes
6554+ [("containsText" .=) <$> _ratrContainsText,
6555+ ("replaceText" .=) <$> _ratrReplaceText])
6556+
6557+-- | A table range represents a reference to a subset of a table. It\'s
6558+-- important to note that the cells specified by a table range do not
6559+-- necessarily form a rectangle. For example, let\'s say we have a 3 x 3
6560+-- table where all the cells of the last row are merged together. The table
6561+-- looks like this: [ ] A table range with location = (0, 0), row span = 3
6562+-- and column span = 2 specifies the following cells: x x [ x ]
6563+--
6564+-- /See:/ 'tableRange' smart constructor.
6565+data TableRange = TableRange'
6566+ { _trColumnSpan :: !(Maybe (Textual Int32))
6567+ , _trLocation :: !(Maybe TableCellLocation)
6568+ , _trRowSpan :: !(Maybe (Textual Int32))
6569+ } deriving (Eq,Show,Data,Typeable,Generic)
6570+
6571+-- | Creates a value of 'TableRange' with the minimum fields required to make a request.
6572+--
6573+-- Use one of the following lenses to modify other fields as desired:
6574+--
6575+-- * 'trColumnSpan'
6576+--
6577+-- * 'trLocation'
6578+--
6579+-- * 'trRowSpan'
6580+tableRange
6581+ :: TableRange
6582+tableRange =
6583+ TableRange'
6584+ { _trColumnSpan = Nothing
6585+ , _trLocation = Nothing
6586+ , _trRowSpan = Nothing
6587+ }
6588+
6589+-- | The column span of the table range.
6590+trColumnSpan :: Lens' TableRange (Maybe Int32)
6591+trColumnSpan
6592+ = lens _trColumnSpan (\ s a -> s{_trColumnSpan = a})
6593+ . mapping _Coerce
6594+
6595+-- | The starting location of the table range.
6596+trLocation :: Lens' TableRange (Maybe TableCellLocation)
6597+trLocation
6598+ = lens _trLocation (\ s a -> s{_trLocation = a})
6599+
6600+-- | The row span of the table range.
6601+trRowSpan :: Lens' TableRange (Maybe Int32)
6602+trRowSpan
6603+ = lens _trRowSpan (\ s a -> s{_trRowSpan = a}) .
6604+ mapping _Coerce
6605+
6606+instance FromJSON TableRange where
6607+ parseJSON
6608+ = withObject "TableRange"
6609+ (\ o ->
6610+ TableRange' <$>
6611+ (o .:? "columnSpan") <*> (o .:? "location") <*>
6612+ (o .:? "rowSpan"))
6613+
6614+instance ToJSON TableRange where
6615+ toJSON TableRange'{..}
6616+ = object
6617+ (catMaybes
6618+ [("columnSpan" .=) <$> _trColumnSpan,
6619+ ("location" .=) <$> _trLocation,
6620+ ("rowSpan" .=) <$> _trRowSpan])
6621+
6622+-- | A single kind of update to apply to a presentation.
6623+--
6624+-- /See:/ 'request'' smart constructor.
6625+data Request' = Request''
6626+ { _reqReplaceAllShapesWithImage :: !(Maybe ReplaceAllShapesWithImageRequest)
6627+ , _reqDeleteObject :: !(Maybe DeleteObjectRequest)
6628+ , _reqUpdateSlidesPosition :: !(Maybe UpdateSlidesPositionRequest)
6629+ , _reqUpdateShapeProperties :: !(Maybe UpdateShapePropertiesRequest)
6630+ , _reqCreateParagraphBullets :: !(Maybe CreateParagraphBulletsRequest)
6631+ , _reqCreateLine :: !(Maybe CreateLineRequest)
6632+ , _reqInsertText :: !(Maybe InsertTextRequest)
6633+ , _reqDeleteTableRow :: !(Maybe DeleteTableRowRequest)
6634+ , _reqUpdateTableCellProperties :: !(Maybe UpdateTableCellPropertiesRequest)
6635+ , _reqReplaceAllText :: !(Maybe ReplaceAllTextRequest)
6636+ , _reqCreateShape :: !(Maybe CreateShapeRequest)
6637+ , _reqUpdatePageProperties :: !(Maybe UpdatePagePropertiesRequest)
6638+ , _reqUpdateLineProperties :: !(Maybe UpdateLinePropertiesRequest)
6639+ , _reqDeleteTableColumn :: !(Maybe DeleteTableColumnRequest)
6640+ , _reqDeleteText :: !(Maybe DeleteTextRequest)
6641+ , _reqCreateSheetsChart :: !(Maybe CreateSheetsChartRequest)
6642+ , _reqInsertTableColumns :: !(Maybe InsertTableColumnsRequest)
6643+ , _reqUpdateImageProperties :: !(Maybe UpdateImagePropertiesRequest)
6644+ , _reqDuplicateObject :: !(Maybe DuplicateObjectRequest)
6645+ , _reqCreateTable :: !(Maybe CreateTableRequest)
6646+ , _reqCreateVideo :: !(Maybe CreateVideoRequest)
6647+ , _reqRefreshSheetsChart :: !(Maybe RefreshSheetsChartRequest)
6648+ , _reqUpdatePageElementTransform :: !(Maybe UpdatePageElementTransformRequest)
6649+ , _reqInsertTableRows :: !(Maybe InsertTableRowsRequest)
6650+ , _reqCreateImage :: !(Maybe CreateImageRequest)
6651+ , _reqCreateSlide :: !(Maybe CreateSlideRequest)
6652+ , _reqUpdateTextStyle :: !(Maybe UpdateTextStyleRequest)
6653+ , _reqUpdateVideoProperties :: !(Maybe UpdateVideoPropertiesRequest)
6654+ } deriving (Eq,Show,Data,Typeable,Generic)
6655+
6656+-- | Creates a value of 'Request' with the minimum fields required to make a request.
6657+--
6658+-- Use one of the following lenses to modify other fields as desired:
6659+--
6660+-- * 'reqReplaceAllShapesWithImage'
6661+--
6662+-- * 'reqDeleteObject'
6663+--
6664+-- * 'reqUpdateSlidesPosition'
6665+--
6666+-- * 'reqUpdateShapeProperties'
6667+--
6668+-- * 'reqCreateParagraphBullets'
6669+--
6670+-- * 'reqCreateLine'
6671+--
6672+-- * 'reqInsertText'
6673+--
6674+-- * 'reqDeleteTableRow'
6675+--
6676+-- * 'reqUpdateTableCellProperties'
6677+--
6678+-- * 'reqReplaceAllText'
6679+--
6680+-- * 'reqCreateShape'
6681+--
6682+-- * 'reqUpdatePageProperties'
6683+--
6684+-- * 'reqUpdateLineProperties'
6685+--
6686+-- * 'reqDeleteTableColumn'
6687+--
6688+-- * 'reqDeleteText'
6689+--
6690+-- * 'reqCreateSheetsChart'
6691+--
6692+-- * 'reqInsertTableColumns'
6693+--
6694+-- * 'reqUpdateImageProperties'
6695+--
6696+-- * 'reqDuplicateObject'
6697+--
6698+-- * 'reqCreateTable'
6699+--
6700+-- * 'reqCreateVideo'
6701+--
6702+-- * 'reqRefreshSheetsChart'
6703+--
6704+-- * 'reqUpdatePageElementTransform'
6705+--
6706+-- * 'reqInsertTableRows'
6707+--
6708+-- * 'reqCreateImage'
6709+--
6710+-- * 'reqCreateSlide'
6711+--
6712+-- * 'reqUpdateTextStyle'
6713+--
6714+-- * 'reqUpdateVideoProperties'
6715+request'
6716+ :: Request'
6717+request' =
6718+ Request''
6719+ { _reqReplaceAllShapesWithImage = Nothing
6720+ , _reqDeleteObject = Nothing
6721+ , _reqUpdateSlidesPosition = Nothing
6722+ , _reqUpdateShapeProperties = Nothing
6723+ , _reqCreateParagraphBullets = Nothing
6724+ , _reqCreateLine = Nothing
6725+ , _reqInsertText = Nothing
6726+ , _reqDeleteTableRow = Nothing
6727+ , _reqUpdateTableCellProperties = Nothing
6728+ , _reqReplaceAllText = Nothing
6729+ , _reqCreateShape = Nothing
6730+ , _reqUpdatePageProperties = Nothing
6731+ , _reqUpdateLineProperties = Nothing
6732+ , _reqDeleteTableColumn = Nothing
6733+ , _reqDeleteText = Nothing
6734+ , _reqCreateSheetsChart = Nothing
6735+ , _reqInsertTableColumns = Nothing
6736+ , _reqUpdateImageProperties = Nothing
6737+ , _reqDuplicateObject = Nothing
6738+ , _reqCreateTable = Nothing
6739+ , _reqCreateVideo = Nothing
6740+ , _reqRefreshSheetsChart = Nothing
6741+ , _reqUpdatePageElementTransform = Nothing
6742+ , _reqInsertTableRows = Nothing
6743+ , _reqCreateImage = Nothing
6744+ , _reqCreateSlide = Nothing
6745+ , _reqUpdateTextStyle = Nothing
6746+ , _reqUpdateVideoProperties = Nothing
6747+ }
6748+
6749+-- | Replaces all shapes matching some criteria with an image.
6750+reqReplaceAllShapesWithImage :: Lens' Request' (Maybe ReplaceAllShapesWithImageRequest)
6751+reqReplaceAllShapesWithImage
6752+ = lens _reqReplaceAllShapesWithImage
6753+ (\ s a -> s{_reqReplaceAllShapesWithImage = a})
6754+
6755+-- | Deletes a page or page element from the presentation.
6756+reqDeleteObject :: Lens' Request' (Maybe DeleteObjectRequest)
6757+reqDeleteObject
6758+ = lens _reqDeleteObject
6759+ (\ s a -> s{_reqDeleteObject = a})
6760+
6761+-- | Updates the position of a set of slides in the presentation.
6762+reqUpdateSlidesPosition :: Lens' Request' (Maybe UpdateSlidesPositionRequest)
6763+reqUpdateSlidesPosition
6764+ = lens _reqUpdateSlidesPosition
6765+ (\ s a -> s{_reqUpdateSlidesPosition = a})
6766+
6767+-- | Updates the properties of a Shape.
6768+reqUpdateShapeProperties :: Lens' Request' (Maybe UpdateShapePropertiesRequest)
6769+reqUpdateShapeProperties
6770+ = lens _reqUpdateShapeProperties
6771+ (\ s a -> s{_reqUpdateShapeProperties = a})
6772+
6773+-- | Creates bullets for paragraphs.
6774+reqCreateParagraphBullets :: Lens' Request' (Maybe CreateParagraphBulletsRequest)
6775+reqCreateParagraphBullets
6776+ = lens _reqCreateParagraphBullets
6777+ (\ s a -> s{_reqCreateParagraphBullets = a})
6778+
6779+-- | Creates a line.
6780+reqCreateLine :: Lens' Request' (Maybe CreateLineRequest)
6781+reqCreateLine
6782+ = lens _reqCreateLine
6783+ (\ s a -> s{_reqCreateLine = a})
6784+
6785+-- | Inserts text into a shape or table cell.
6786+reqInsertText :: Lens' Request' (Maybe InsertTextRequest)
6787+reqInsertText
6788+ = lens _reqInsertText
6789+ (\ s a -> s{_reqInsertText = a})
6790+
6791+-- | Deletes a row from a table.
6792+reqDeleteTableRow :: Lens' Request' (Maybe DeleteTableRowRequest)
6793+reqDeleteTableRow
6794+ = lens _reqDeleteTableRow
6795+ (\ s a -> s{_reqDeleteTableRow = a})
6796+
6797+-- | Updates the properties of a TableCell.
6798+reqUpdateTableCellProperties :: Lens' Request' (Maybe UpdateTableCellPropertiesRequest)
6799+reqUpdateTableCellProperties
6800+ = lens _reqUpdateTableCellProperties
6801+ (\ s a -> s{_reqUpdateTableCellProperties = a})
6802+
6803+-- | Replaces all instances of specified text.
6804+reqReplaceAllText :: Lens' Request' (Maybe ReplaceAllTextRequest)
6805+reqReplaceAllText
6806+ = lens _reqReplaceAllText
6807+ (\ s a -> s{_reqReplaceAllText = a})
6808+
6809+-- | Creates a new shape.
6810+reqCreateShape :: Lens' Request' (Maybe CreateShapeRequest)
6811+reqCreateShape
6812+ = lens _reqCreateShape
6813+ (\ s a -> s{_reqCreateShape = a})
6814+
6815+-- | Updates the properties of a Page.
6816+reqUpdatePageProperties :: Lens' Request' (Maybe UpdatePagePropertiesRequest)
6817+reqUpdatePageProperties
6818+ = lens _reqUpdatePageProperties
6819+ (\ s a -> s{_reqUpdatePageProperties = a})
6820+
6821+-- | Updates the properties of a Line.
6822+reqUpdateLineProperties :: Lens' Request' (Maybe UpdateLinePropertiesRequest)
6823+reqUpdateLineProperties
6824+ = lens _reqUpdateLineProperties
6825+ (\ s a -> s{_reqUpdateLineProperties = a})
6826+
6827+-- | Deletes a column from a table.
6828+reqDeleteTableColumn :: Lens' Request' (Maybe DeleteTableColumnRequest)
6829+reqDeleteTableColumn
6830+ = lens _reqDeleteTableColumn
6831+ (\ s a -> s{_reqDeleteTableColumn = a})
6832+
6833+-- | Deletes text from a shape or a table cell.
6834+reqDeleteText :: Lens' Request' (Maybe DeleteTextRequest)
6835+reqDeleteText
6836+ = lens _reqDeleteText
6837+ (\ s a -> s{_reqDeleteText = a})
6838+
6839+-- | Creates an embedded Google Sheets chart.
6840+reqCreateSheetsChart :: Lens' Request' (Maybe CreateSheetsChartRequest)
6841+reqCreateSheetsChart
6842+ = lens _reqCreateSheetsChart
6843+ (\ s a -> s{_reqCreateSheetsChart = a})
6844+
6845+-- | Inserts columns into a table.
6846+reqInsertTableColumns :: Lens' Request' (Maybe InsertTableColumnsRequest)
6847+reqInsertTableColumns
6848+ = lens _reqInsertTableColumns
6849+ (\ s a -> s{_reqInsertTableColumns = a})
6850+
6851+-- | Updates the properties of an Image.
6852+reqUpdateImageProperties :: Lens' Request' (Maybe UpdateImagePropertiesRequest)
6853+reqUpdateImageProperties
6854+ = lens _reqUpdateImageProperties
6855+ (\ s a -> s{_reqUpdateImageProperties = a})
6856+
6857+-- | Duplicates a slide or page element.
6858+reqDuplicateObject :: Lens' Request' (Maybe DuplicateObjectRequest)
6859+reqDuplicateObject
6860+ = lens _reqDuplicateObject
6861+ (\ s a -> s{_reqDuplicateObject = a})
6862+
6863+-- | Creates a new table.
6864+reqCreateTable :: Lens' Request' (Maybe CreateTableRequest)
6865+reqCreateTable
6866+ = lens _reqCreateTable
6867+ (\ s a -> s{_reqCreateTable = a})
6868+
6869+-- | Creates a video.
6870+reqCreateVideo :: Lens' Request' (Maybe CreateVideoRequest)
6871+reqCreateVideo
6872+ = lens _reqCreateVideo
6873+ (\ s a -> s{_reqCreateVideo = a})
6874+
6875+-- | Refreshes a Google Sheets chart.
6876+reqRefreshSheetsChart :: Lens' Request' (Maybe RefreshSheetsChartRequest)
6877+reqRefreshSheetsChart
6878+ = lens _reqRefreshSheetsChart
6879+ (\ s a -> s{_reqRefreshSheetsChart = a})
6880+
6881+-- | Updates the transform of a page element.
6882+reqUpdatePageElementTransform :: Lens' Request' (Maybe UpdatePageElementTransformRequest)
6883+reqUpdatePageElementTransform
6884+ = lens _reqUpdatePageElementTransform
6885+ (\ s a -> s{_reqUpdatePageElementTransform = a})
6886+
6887+-- | Inserts rows into a table.
6888+reqInsertTableRows :: Lens' Request' (Maybe InsertTableRowsRequest)
6889+reqInsertTableRows
6890+ = lens _reqInsertTableRows
6891+ (\ s a -> s{_reqInsertTableRows = a})
6892+
6893+-- | Creates an image.
6894+reqCreateImage :: Lens' Request' (Maybe CreateImageRequest)
6895+reqCreateImage
6896+ = lens _reqCreateImage
6897+ (\ s a -> s{_reqCreateImage = a})
6898+
6899+-- | Creates a new slide.
6900+reqCreateSlide :: Lens' Request' (Maybe CreateSlideRequest)
6901+reqCreateSlide
6902+ = lens _reqCreateSlide
6903+ (\ s a -> s{_reqCreateSlide = a})
6904+
6905+-- | Updates the styling of text within a Shape or Table.
6906+reqUpdateTextStyle :: Lens' Request' (Maybe UpdateTextStyleRequest)
6907+reqUpdateTextStyle
6908+ = lens _reqUpdateTextStyle
6909+ (\ s a -> s{_reqUpdateTextStyle = a})
6910+
6911+-- | Updates the properties of a Video.
6912+reqUpdateVideoProperties :: Lens' Request' (Maybe UpdateVideoPropertiesRequest)
6913+reqUpdateVideoProperties
6914+ = lens _reqUpdateVideoProperties
6915+ (\ s a -> s{_reqUpdateVideoProperties = a})
6916+
6917+instance FromJSON Request' where
6918+ parseJSON
6919+ = withObject "Request"
6920+ (\ o ->
6921+ Request'' <$>
6922+ (o .:? "replaceAllShapesWithImage") <*>
6923+ (o .:? "deleteObject")
6924+ <*> (o .:? "updateSlidesPosition")
6925+ <*> (o .:? "updateShapeProperties")
6926+ <*> (o .:? "createParagraphBullets")
6927+ <*> (o .:? "createLine")
6928+ <*> (o .:? "insertText")
6929+ <*> (o .:? "deleteTableRow")
6930+ <*> (o .:? "updateTableCellProperties")
6931+ <*> (o .:? "replaceAllText")
6932+ <*> (o .:? "createShape")
6933+ <*> (o .:? "updatePageProperties")
6934+ <*> (o .:? "updateLineProperties")
6935+ <*> (o .:? "deleteTableColumn")
6936+ <*> (o .:? "deleteText")
6937+ <*> (o .:? "createSheetsChart")
6938+ <*> (o .:? "insertTableColumns")
6939+ <*> (o .:? "updateImageProperties")
6940+ <*> (o .:? "duplicateObject")
6941+ <*> (o .:? "createTable")
6942+ <*> (o .:? "createVideo")
6943+ <*> (o .:? "refreshSheetsChart")
6944+ <*> (o .:? "updatePageElementTransform")
6945+ <*> (o .:? "insertTableRows")
6946+ <*> (o .:? "createImage")
6947+ <*> (o .:? "createSlide")
6948+ <*> (o .:? "updateTextStyle")
6949+ <*> (o .:? "updateVideoProperties"))
6950+
6951+instance ToJSON Request' where
6952+ toJSON Request''{..}
6953+ = object
6954+ (catMaybes
6955+ [("replaceAllShapesWithImage" .=) <$>
6956+ _reqReplaceAllShapesWithImage,
6957+ ("deleteObject" .=) <$> _reqDeleteObject,
6958+ ("updateSlidesPosition" .=) <$>
6959+ _reqUpdateSlidesPosition,
6960+ ("updateShapeProperties" .=) <$>
6961+ _reqUpdateShapeProperties,
6962+ ("createParagraphBullets" .=) <$>
6963+ _reqCreateParagraphBullets,
6964+ ("createLine" .=) <$> _reqCreateLine,
6965+ ("insertText" .=) <$> _reqInsertText,
6966+ ("deleteTableRow" .=) <$> _reqDeleteTableRow,
6967+ ("updateTableCellProperties" .=) <$>
6968+ _reqUpdateTableCellProperties,
6969+ ("replaceAllText" .=) <$> _reqReplaceAllText,
6970+ ("createShape" .=) <$> _reqCreateShape,
6971+ ("updatePageProperties" .=) <$>
6972+ _reqUpdatePageProperties,
6973+ ("updateLineProperties" .=) <$>
6974+ _reqUpdateLineProperties,
6975+ ("deleteTableColumn" .=) <$> _reqDeleteTableColumn,
6976+ ("deleteText" .=) <$> _reqDeleteText,
6977+ ("createSheetsChart" .=) <$> _reqCreateSheetsChart,
6978+ ("insertTableColumns" .=) <$> _reqInsertTableColumns,
6979+ ("updateImageProperties" .=) <$>
6980+ _reqUpdateImageProperties,
6981+ ("duplicateObject" .=) <$> _reqDuplicateObject,
6982+ ("createTable" .=) <$> _reqCreateTable,
6983+ ("createVideo" .=) <$> _reqCreateVideo,
6984+ ("refreshSheetsChart" .=) <$> _reqRefreshSheetsChart,
6985+ ("updatePageElementTransform" .=) <$>
6986+ _reqUpdatePageElementTransform,
6987+ ("insertTableRows" .=) <$> _reqInsertTableRows,
6988+ ("createImage" .=) <$> _reqCreateImage,
6989+ ("createSlide" .=) <$> _reqCreateSlide,
6990+ ("updateTextStyle" .=) <$> _reqUpdateTextStyle,
6991+ ("updateVideoProperties" .=) <$>
6992+ _reqUpdateVideoProperties])
6993+
6994+-- | A criteria that matches a specific string of text in a shape or table.
6995+--
6996+-- /See:/ 'substringMatchCriteria' smart constructor.
6997+data SubstringMatchCriteria = SubstringMatchCriteria'
6998+ { _smcMatchCase :: !(Maybe Bool)
6999+ , _smcText :: !(Maybe Text)
7000+ } deriving (Eq,Show,Data,Typeable,Generic)
7001+
7002+-- | Creates a value of 'SubstringMatchCriteria' with the minimum fields required to make a request.
7003+--
7004+-- Use one of the following lenses to modify other fields as desired:
7005+--
7006+-- * 'smcMatchCase'
7007+--
7008+-- * 'smcText'
7009+substringMatchCriteria
7010+ :: SubstringMatchCriteria
7011+substringMatchCriteria =
7012+ SubstringMatchCriteria'
7013+ { _smcMatchCase = Nothing
7014+ , _smcText = Nothing
7015+ }
7016+
7017+-- | Indicates whether the search should respect case: - \`True\`: the search
7018+-- is case sensitive. - \`False\`: the search is case insensitive.
7019+smcMatchCase :: Lens' SubstringMatchCriteria (Maybe Bool)
7020+smcMatchCase
7021+ = lens _smcMatchCase (\ s a -> s{_smcMatchCase = a})
7022+
7023+-- | The text to search for in the shape or table.
7024+smcText :: Lens' SubstringMatchCriteria (Maybe Text)
7025+smcText = lens _smcText (\ s a -> s{_smcText = a})
7026+
7027+instance FromJSON SubstringMatchCriteria where
7028+ parseJSON
7029+ = withObject "SubstringMatchCriteria"
7030+ (\ o ->
7031+ SubstringMatchCriteria' <$>
7032+ (o .:? "matchCase") <*> (o .:? "text"))
7033+
7034+instance ToJSON SubstringMatchCriteria where
7035+ toJSON SubstringMatchCriteria'{..}
7036+ = object
7037+ (catMaybes
7038+ [("matchCase" .=) <$> _smcMatchCase,
7039+ ("text" .=) <$> _smcText])
gogol-slides/gen/Network/Google/Slides/Types/Sum.hsnew file+3435
@@ -0,0 +1,3435 @@
1+{-# LANGUAGE DeriveDataTypeable #-}
2+{-# LANGUAGE DeriveGeneric #-}
3+{-# LANGUAGE LambdaCase #-}
4+{-# LANGUAGE NoImplicitPrelude #-}
5+{-# LANGUAGE OverloadedStrings #-}
6+
7+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
8+
9+-- |
10+-- Module : Network.Google.Slides.Types.Sum
11+-- Copyright : (c) 2015-2016 Brendan Hay
12+-- License : Mozilla Public License, v. 2.0.
13+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
14+-- Stability : auto-generated
15+-- Portability : non-portable (GHC extensions)
16+--
17+module Network.Google.Slides.Types.Sum where
18+
19+import Network.Google.Prelude
20+
21+-- | The text direction of this paragraph. This property is read-only.
22+data ParagraphStyleDirection
23+ = TextDirectionUnspecified
24+ -- ^ @TEXT_DIRECTION_UNSPECIFIED@
25+ -- The text direction is inherited from the parent.
26+ | LeftToRight
27+ -- ^ @LEFT_TO_RIGHT@
28+ -- The text goes from left to right.
29+ | RightToLeft
30+ -- ^ @RIGHT_TO_LEFT@
31+ -- The text goes from right to left.
32+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
33+
34+instance Hashable ParagraphStyleDirection
35+
36+instance FromHttpApiData ParagraphStyleDirection where
37+ parseQueryParam = \case
38+ "TEXT_DIRECTION_UNSPECIFIED" -> Right TextDirectionUnspecified
39+ "LEFT_TO_RIGHT" -> Right LeftToRight
40+ "RIGHT_TO_LEFT" -> Right RightToLeft
41+ x -> Left ("Unable to parse ParagraphStyleDirection from: " <> x)
42+
43+instance ToHttpApiData ParagraphStyleDirection where
44+ toQueryParam = \case
45+ TextDirectionUnspecified -> "TEXT_DIRECTION_UNSPECIFIED"
46+ LeftToRight -> "LEFT_TO_RIGHT"
47+ RightToLeft -> "RIGHT_TO_LEFT"
48+
49+instance FromJSON ParagraphStyleDirection where
50+ parseJSON = parseJSONText "ParagraphStyleDirection"
51+
52+instance ToJSON ParagraphStyleDirection where
53+ toJSON = toJSONText
54+
55+-- | The text\'s vertical offset from its normal position. Text with
56+-- \`SUPERSCRIPT\` or \`SUBSCRIPT\` baseline offsets is automatically
57+-- rendered in a smaller font size, computed based on the \`font_size\`
58+-- field. The \`font_size\` itself is not affected by changes in this
59+-- field.
60+data TextStyleBaselineOffSet
61+ = BaselineOffSetUnspecified
62+ -- ^ @BASELINE_OFFSET_UNSPECIFIED@
63+ -- The text\'s baseline offset is inherited from the parent.
64+ | None
65+ -- ^ @NONE@
66+ -- The text is not vertically offset.
67+ | Superscript
68+ -- ^ @SUPERSCRIPT@
69+ -- The text is vertically offset upwards (superscript).
70+ | Subscript
71+ -- ^ @SUBSCRIPT@
72+ -- The text is vertically offset downwards (subscript).
73+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
74+
75+instance Hashable TextStyleBaselineOffSet
76+
77+instance FromHttpApiData TextStyleBaselineOffSet where
78+ parseQueryParam = \case
79+ "BASELINE_OFFSET_UNSPECIFIED" -> Right BaselineOffSetUnspecified
80+ "NONE" -> Right None
81+ "SUPERSCRIPT" -> Right Superscript
82+ "SUBSCRIPT" -> Right Subscript
83+ x -> Left ("Unable to parse TextStyleBaselineOffSet from: " <> x)
84+
85+instance ToHttpApiData TextStyleBaselineOffSet where
86+ toQueryParam = \case
87+ BaselineOffSetUnspecified -> "BASELINE_OFFSET_UNSPECIFIED"
88+ None -> "NONE"
89+ Superscript -> "SUPERSCRIPT"
90+ Subscript -> "SUBSCRIPT"
91+
92+instance FromJSON TextStyleBaselineOffSet where
93+ parseJSON = parseJSONText "TextStyleBaselineOffSet"
94+
95+instance ToJSON TextStyleBaselineOffSet where
96+ toJSON = toJSONText
97+
98+-- | The type of range.
99+data RangeType
100+ = RangeTypeUnspecified
101+ -- ^ @RANGE_TYPE_UNSPECIFIED@
102+ -- Unspecified range type. This value must not be used.
103+ | FixedRange
104+ -- ^ @FIXED_RANGE@
105+ -- A fixed range. Both the \`start_index\` and \`end_index\` must be
106+ -- specified.
107+ | FromStartIndex
108+ -- ^ @FROM_START_INDEX@
109+ -- Starts the range at \`start_index\` and continues until the end of the
110+ -- collection. The \`end_index\` must not be specified.
111+ | All
112+ -- ^ @ALL@
113+ -- Sets the range to be the whole length of the collection. Both the
114+ -- \`start_index\` and the \`end_index\` must not be specified.
115+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
116+
117+instance Hashable RangeType
118+
119+instance FromHttpApiData RangeType where
120+ parseQueryParam = \case
121+ "RANGE_TYPE_UNSPECIFIED" -> Right RangeTypeUnspecified
122+ "FIXED_RANGE" -> Right FixedRange
123+ "FROM_START_INDEX" -> Right FromStartIndex
124+ "ALL" -> Right All
125+ x -> Left ("Unable to parse RangeType from: " <> x)
126+
127+instance ToHttpApiData RangeType where
128+ toQueryParam = \case
129+ RangeTypeUnspecified -> "RANGE_TYPE_UNSPECIFIED"
130+ FixedRange -> "FIXED_RANGE"
131+ FromStartIndex -> "FROM_START_INDEX"
132+ All -> "ALL"
133+
134+instance FromJSON RangeType where
135+ parseJSON = parseJSONText "RangeType"
136+
137+instance ToJSON RangeType where
138+ toJSON = toJSONText
139+
140+-- | The background fill property state. Updating the the fill on a page will
141+-- implicitly update this field to \`RENDERED\`, unless another value is
142+-- specified in the same request. To have no fill on a page, set this field
143+-- to \`NOT_RENDERED\`. In this case, any other fill fields set in the same
144+-- request will be ignored.
145+data PageBackgRoundFillPropertyState
146+ = Rendered
147+ -- ^ @RENDERED@
148+ -- If a property\'s state is RENDERED, then the element has the
149+ -- corresponding property when rendered on a page. If the element is a
150+ -- placeholder shape as determined by the placeholder field, and it
151+ -- inherits from a placeholder shape, the corresponding field may be unset,
152+ -- meaning that the property value is inherited from a parent placeholder.
153+ -- If the element does not inherit, then the field will contain the
154+ -- rendered value. This is the default value.
155+ | NotRendered
156+ -- ^ @NOT_RENDERED@
157+ -- If a property\'s state is NOT_RENDERED, then the element does not have
158+ -- the corresponding property when rendered on a page. However, the field
159+ -- may still be set so it can be inherited by child shapes. To remove a
160+ -- property from a rendered element, set its property_state to
161+ -- NOT_RENDERED.
162+ | Inherit
163+ -- ^ @INHERIT@
164+ -- If a property\'s state is INHERIT, then the property state uses the
165+ -- value of corresponding \`property_state\` field on the parent shape.
166+ -- Elements that do not inherit will never have an INHERIT property state.
167+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
168+
169+instance Hashable PageBackgRoundFillPropertyState
170+
171+instance FromHttpApiData PageBackgRoundFillPropertyState where
172+ parseQueryParam = \case
173+ "RENDERED" -> Right Rendered
174+ "NOT_RENDERED" -> Right NotRendered
175+ "INHERIT" -> Right Inherit
176+ x -> Left ("Unable to parse PageBackgRoundFillPropertyState from: " <> x)
177+
178+instance ToHttpApiData PageBackgRoundFillPropertyState where
179+ toQueryParam = \case
180+ Rendered -> "RENDERED"
181+ NotRendered -> "NOT_RENDERED"
182+ Inherit -> "INHERIT"
183+
184+instance FromJSON PageBackgRoundFillPropertyState where
185+ parseJSON = parseJSONText "PageBackgRoundFillPropertyState"
186+
187+instance ToJSON PageBackgRoundFillPropertyState where
188+ toJSON = toJSONText
189+
190+-- | The kinds of bullet glyphs to be used. Defaults to the
191+-- \`BULLET_DISC_CIRCLE_SQUARE\` preset.
192+data CreateParagraphBulletsRequestBulletPreset
193+ = BulletDiscCircleSquare
194+ -- ^ @BULLET_DISC_CIRCLE_SQUARE@
195+ -- A bulleted list with a \`DISC\`, \`CIRCLE\` and \`SQUARE\` bullet glyph
196+ -- for the first 3 list nesting levels.
197+ | BulletDiamondxARROW3DSquare
198+ -- ^ @BULLET_DIAMONDX_ARROW3D_SQUARE@
199+ -- A bulleted list with a \`DIAMONDX\`, \`ARROW3D\` and \`SQUARE\` bullet
200+ -- glyph for the first 3 list nesting levels.
201+ | BulletCheckbox
202+ -- ^ @BULLET_CHECKBOX@
203+ -- A bulleted list with \`CHECKBOX\` bullet glyphs for all list nesting
204+ -- levels.
205+ | BulletArrowDiamondDisc
206+ -- ^ @BULLET_ARROW_DIAMOND_DISC@
207+ -- A bulleted list with a \`ARROW\`, \`DIAMOND\` and \`DISC\` bullet glyph
208+ -- for the first 3 list nesting levels.
209+ | BulletStarCircleSquare
210+ -- ^ @BULLET_STAR_CIRCLE_SQUARE@
211+ -- A bulleted list with a \`STAR\`, \`CIRCLE\` and \`DISC\` bullet glyph
212+ -- for the first 3 list nesting levels.
213+ | BulletARROW3DCircleSquare
214+ -- ^ @BULLET_ARROW3D_CIRCLE_SQUARE@
215+ -- A bulleted list with a \`ARROW3D\`, \`CIRCLE\` and \`SQUARE\` bullet
216+ -- glyph for the first 3 list nesting levels.
217+ | BulletLefttriangleDiamondDisc
218+ -- ^ @BULLET_LEFTTRIANGLE_DIAMOND_DISC@
219+ -- A bulleted list with a \`LEFTTRIANGLE\`, \`DIAMOND\` and \`DISC\` bullet
220+ -- glyph for the first 3 list nesting levels.
221+ | BulletDiamondxHollowdiamondSquare
222+ -- ^ @BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE@
223+ -- A bulleted list with a \`DIAMONDX\`, \`HOLLOWDIAMOND\` and \`SQUARE\`
224+ -- bullet glyph for the first 3 list nesting levels.
225+ | BulletDiamondCircleSquare
226+ -- ^ @BULLET_DIAMOND_CIRCLE_SQUARE@
227+ -- A bulleted list with a \`DIAMOND\`, \`CIRCLE\` and \`SQUARE\` bullet
228+ -- glyph for the first 3 list nesting levels.
229+ | NumberedDigitAlphaRoman
230+ -- ^ @NUMBERED_DIGIT_ALPHA_ROMAN@
231+ -- A numbered list with \`DIGIT\`, \`ALPHA\` and \`ROMAN\` numeric glyphs
232+ -- for the first 3 list nesting levels, followed by periods.
233+ | NumberedDigitAlphaRomanParens
234+ -- ^ @NUMBERED_DIGIT_ALPHA_ROMAN_PARENS@
235+ -- A numbered list with \`DIGIT\`, \`ALPHA\` and \`ROMAN\` numeric glyphs
236+ -- for the first 3 list nesting levels, followed by parenthesis.
237+ | NumberedDigitNested
238+ -- ^ @NUMBERED_DIGIT_NESTED@
239+ -- A numbered list with \`DIGIT\` numeric glyphs separated by periods,
240+ -- where each nesting level uses the previous nesting level\'s glyph as a
241+ -- prefix. For example: \'1.\', \'1.1.\', \'2.\', \'2.2.\'.
242+ | NumberedUpperalphaAlphaRoman
243+ -- ^ @NUMBERED_UPPERALPHA_ALPHA_ROMAN@
244+ -- A numbered list with \`UPPERALPHA\`, \`ALPHA\` and \`ROMAN\` numeric
245+ -- glyphs for the first 3 list nesting levels, followed by periods.
246+ | NumberedUpperromanUpperalphaDigit
247+ -- ^ @NUMBERED_UPPERROMAN_UPPERALPHA_DIGIT@
248+ -- A numbered list with \`UPPERROMAN\`, \`UPPERALPHA\` and \`DIGIT\`
249+ -- numeric glyphs for the first 3 list nesting levels, followed by periods.
250+ | NumberedZerodigitAlphaRoman
251+ -- ^ @NUMBERED_ZERODIGIT_ALPHA_ROMAN@
252+ -- A numbered list with \`ZERODIGIT\`, \`ALPHA\` and \`ROMAN\` numeric
253+ -- glyphs for the first 3 list nesting levels, followed by periods.
254+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
255+
256+instance Hashable CreateParagraphBulletsRequestBulletPreset
257+
258+instance FromHttpApiData CreateParagraphBulletsRequestBulletPreset where
259+ parseQueryParam = \case
260+ "BULLET_DISC_CIRCLE_SQUARE" -> Right BulletDiscCircleSquare
261+ "BULLET_DIAMONDX_ARROW3D_SQUARE" -> Right BulletDiamondxARROW3DSquare
262+ "BULLET_CHECKBOX" -> Right BulletCheckbox
263+ "BULLET_ARROW_DIAMOND_DISC" -> Right BulletArrowDiamondDisc
264+ "BULLET_STAR_CIRCLE_SQUARE" -> Right BulletStarCircleSquare
265+ "BULLET_ARROW3D_CIRCLE_SQUARE" -> Right BulletARROW3DCircleSquare
266+ "BULLET_LEFTTRIANGLE_DIAMOND_DISC" -> Right BulletLefttriangleDiamondDisc
267+ "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE" -> Right BulletDiamondxHollowdiamondSquare
268+ "BULLET_DIAMOND_CIRCLE_SQUARE" -> Right BulletDiamondCircleSquare
269+ "NUMBERED_DIGIT_ALPHA_ROMAN" -> Right NumberedDigitAlphaRoman
270+ "NUMBERED_DIGIT_ALPHA_ROMAN_PARENS" -> Right NumberedDigitAlphaRomanParens
271+ "NUMBERED_DIGIT_NESTED" -> Right NumberedDigitNested
272+ "NUMBERED_UPPERALPHA_ALPHA_ROMAN" -> Right NumberedUpperalphaAlphaRoman
273+ "NUMBERED_UPPERROMAN_UPPERALPHA_DIGIT" -> Right NumberedUpperromanUpperalphaDigit
274+ "NUMBERED_ZERODIGIT_ALPHA_ROMAN" -> Right NumberedZerodigitAlphaRoman
275+ x -> Left ("Unable to parse CreateParagraphBulletsRequestBulletPreset from: " <> x)
276+
277+instance ToHttpApiData CreateParagraphBulletsRequestBulletPreset where
278+ toQueryParam = \case
279+ BulletDiscCircleSquare -> "BULLET_DISC_CIRCLE_SQUARE"
280+ BulletDiamondxARROW3DSquare -> "BULLET_DIAMONDX_ARROW3D_SQUARE"
281+ BulletCheckbox -> "BULLET_CHECKBOX"
282+ BulletArrowDiamondDisc -> "BULLET_ARROW_DIAMOND_DISC"
283+ BulletStarCircleSquare -> "BULLET_STAR_CIRCLE_SQUARE"
284+ BulletARROW3DCircleSquare -> "BULLET_ARROW3D_CIRCLE_SQUARE"
285+ BulletLefttriangleDiamondDisc -> "BULLET_LEFTTRIANGLE_DIAMOND_DISC"
286+ BulletDiamondxHollowdiamondSquare -> "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE"
287+ BulletDiamondCircleSquare -> "BULLET_DIAMOND_CIRCLE_SQUARE"
288+ NumberedDigitAlphaRoman -> "NUMBERED_DIGIT_ALPHA_ROMAN"
289+ NumberedDigitAlphaRomanParens -> "NUMBERED_DIGIT_ALPHA_ROMAN_PARENS"
290+ NumberedDigitNested -> "NUMBERED_DIGIT_NESTED"
291+ NumberedUpperalphaAlphaRoman -> "NUMBERED_UPPERALPHA_ALPHA_ROMAN"
292+ NumberedUpperromanUpperalphaDigit -> "NUMBERED_UPPERROMAN_UPPERALPHA_DIGIT"
293+ NumberedZerodigitAlphaRoman -> "NUMBERED_ZERODIGIT_ALPHA_ROMAN"
294+
295+instance FromJSON CreateParagraphBulletsRequestBulletPreset where
296+ parseJSON = parseJSONText "CreateParagraphBulletsRequestBulletPreset"
297+
298+instance ToJSON CreateParagraphBulletsRequestBulletPreset where
299+ toJSON = toJSONText
300+
301+-- | The shape type.
302+data CreateShapeRequestShapeType
303+ = TypeUnspecified
304+ -- ^ @TYPE_UNSPECIFIED@
305+ -- The shape type that is not predefined.
306+ | TextBox
307+ -- ^ @TEXT_BOX@
308+ -- Text box shape.
309+ | Rectangle
310+ -- ^ @RECTANGLE@
311+ -- Rectangle shape. Corresponds to ECMA-376 ST_ShapeType \'rect\'.
312+ | RoundRectangle
313+ -- ^ @ROUND_RECTANGLE@
314+ -- Round corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType
315+ -- \'roundRect\'
316+ | Ellipse
317+ -- ^ @ELLIPSE@
318+ -- Ellipse shape. Corresponds to ECMA-376 ST_ShapeType \'ellipse\'
319+ | Arc
320+ -- ^ @ARC@
321+ -- Curved arc shape. Corresponds to ECMA-376 ST_ShapeType \'arc\'
322+ | BentArrow
323+ -- ^ @BENT_ARROW@
324+ -- Bent arrow shape. Corresponds to ECMA-376 ST_ShapeType \'bentArrow\'
325+ | BentUpArrow
326+ -- ^ @BENT_UP_ARROW@
327+ -- Bent up arrow shape. Corresponds to ECMA-376 ST_ShapeType
328+ -- \'bentUpArrow\'
329+ | Bevel
330+ -- ^ @BEVEL@
331+ -- Bevel shape. Corresponds to ECMA-376 ST_ShapeType \'bevel\'
332+ | BlockArc
333+ -- ^ @BLOCK_ARC@
334+ -- Block arc shape. Corresponds to ECMA-376 ST_ShapeType \'blockArc\'
335+ | BracePair
336+ -- ^ @BRACE_PAIR@
337+ -- Brace pair shape. Corresponds to ECMA-376 ST_ShapeType \'bracePair\'
338+ | BracketPair
339+ -- ^ @BRACKET_PAIR@
340+ -- Bracket pair shape. Corresponds to ECMA-376 ST_ShapeType \'bracketPair\'
341+ | Can
342+ -- ^ @CAN@
343+ -- Can shape. Corresponds to ECMA-376 ST_ShapeType \'can\'
344+ | Chevron
345+ -- ^ @CHEVRON@
346+ -- Chevron shape. Corresponds to ECMA-376 ST_ShapeType \'chevron\'
347+ | Chord
348+ -- ^ @CHORD@
349+ -- Chord shape. Corresponds to ECMA-376 ST_ShapeType \'chord\'
350+ | Cloud
351+ -- ^ @CLOUD@
352+ -- Cloud shape. Corresponds to ECMA-376 ST_ShapeType \'cloud\'
353+ | Corner
354+ -- ^ @CORNER@
355+ -- Corner shape. Corresponds to ECMA-376 ST_ShapeType \'corner\'
356+ | Cube
357+ -- ^ @CUBE@
358+ -- Cube shape. Corresponds to ECMA-376 ST_ShapeType \'cube\'
359+ | CurvedDownArrow
360+ -- ^ @CURVED_DOWN_ARROW@
361+ -- Curved down arrow shape. Corresponds to ECMA-376 ST_ShapeType
362+ -- \'curvedDownArrow\'
363+ | CurvedLeftArrow
364+ -- ^ @CURVED_LEFT_ARROW@
365+ -- Curved left arrow shape. Corresponds to ECMA-376 ST_ShapeType
366+ -- \'curvedLeftArrow\'
367+ | CurvedRightArrow
368+ -- ^ @CURVED_RIGHT_ARROW@
369+ -- Curved right arrow shape. Corresponds to ECMA-376 ST_ShapeType
370+ -- \'curvedRightArrow\'
371+ | CurvedUpArrow
372+ -- ^ @CURVED_UP_ARROW@
373+ -- Curved up arrow shape. Corresponds to ECMA-376 ST_ShapeType
374+ -- \'curvedUpArrow\'
375+ | Decagon
376+ -- ^ @DECAGON@
377+ -- Decagon shape. Corresponds to ECMA-376 ST_ShapeType \'decagon\'
378+ | DiagonalStripe
379+ -- ^ @DIAGONAL_STRIPE@
380+ -- Diagonal stripe shape. Corresponds to ECMA-376 ST_ShapeType
381+ -- \'diagStripe\'
382+ | Diamond
383+ -- ^ @DIAMOND@
384+ -- Diamond shape. Corresponds to ECMA-376 ST_ShapeType \'diamond\'
385+ | Dodecagon
386+ -- ^ @DODECAGON@
387+ -- Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType \'dodecagon\'
388+ | Donut
389+ -- ^ @DONUT@
390+ -- Donut shape. Corresponds to ECMA-376 ST_ShapeType \'donut\'
391+ | DoubleWave
392+ -- ^ @DOUBLE_WAVE@
393+ -- Double wave shape. Corresponds to ECMA-376 ST_ShapeType \'doubleWave\'
394+ | DownArrow
395+ -- ^ @DOWN_ARROW@
396+ -- Down arrow shape. Corresponds to ECMA-376 ST_ShapeType \'downArrow\'
397+ | DownArrowCallout
398+ -- ^ @DOWN_ARROW_CALLOUT@
399+ -- Callout down arrow shape. Corresponds to ECMA-376 ST_ShapeType
400+ -- \'downArrowCallout\'
401+ | FoldedCorner
402+ -- ^ @FOLDED_CORNER@
403+ -- Folded corner shape. Corresponds to ECMA-376 ST_ShapeType
404+ -- \'foldedCorner\'
405+ | Frame
406+ -- ^ @FRAME@
407+ -- Frame shape. Corresponds to ECMA-376 ST_ShapeType \'frame\'
408+ | HalfFrame
409+ -- ^ @HALF_FRAME@
410+ -- Half frame shape. Corresponds to ECMA-376 ST_ShapeType \'halfFrame\'
411+ | Heart
412+ -- ^ @HEART@
413+ -- Heart shape. Corresponds to ECMA-376 ST_ShapeType \'heart\'
414+ | Heptagon
415+ -- ^ @HEPTAGON@
416+ -- Heptagon shape. Corresponds to ECMA-376 ST_ShapeType \'heptagon\'
417+ | Hexagon
418+ -- ^ @HEXAGON@
419+ -- Hexagon shape. Corresponds to ECMA-376 ST_ShapeType \'hexagon\'
420+ | HomePlate
421+ -- ^ @HOME_PLATE@
422+ -- Home plate shape. Corresponds to ECMA-376 ST_ShapeType \'homePlate\'
423+ | HorizontalScroll
424+ -- ^ @HORIZONTAL_SCROLL@
425+ -- Horizontal scroll shape. Corresponds to ECMA-376 ST_ShapeType
426+ -- \'horizontalScroll\'
427+ | IrregularSeal1
428+ -- ^ @IRREGULAR_SEAL_1@
429+ -- Irregular seal 1 shape. Corresponds to ECMA-376 ST_ShapeType
430+ -- \'irregularSeal1\'
431+ | IrregularSeal2
432+ -- ^ @IRREGULAR_SEAL_2@
433+ -- Irregular seal 2 shape. Corresponds to ECMA-376 ST_ShapeType
434+ -- \'irregularSeal2\'
435+ | LeftArrow
436+ -- ^ @LEFT_ARROW@
437+ -- Left arrow shape. Corresponds to ECMA-376 ST_ShapeType \'leftArrow\'
438+ | LeftArrowCallout
439+ -- ^ @LEFT_ARROW_CALLOUT@
440+ -- Callout left arrow shape. Corresponds to ECMA-376 ST_ShapeType
441+ -- \'leftArrowCallout\'
442+ | LeftBrace
443+ -- ^ @LEFT_BRACE@
444+ -- Left brace shape. Corresponds to ECMA-376 ST_ShapeType \'leftBrace\'
445+ | LeftBracket
446+ -- ^ @LEFT_BRACKET@
447+ -- Left bracket shape. Corresponds to ECMA-376 ST_ShapeType \'leftBracket\'
448+ | LeftRightArrow
449+ -- ^ @LEFT_RIGHT_ARROW@
450+ -- Left right arrow shape. Corresponds to ECMA-376 ST_ShapeType
451+ -- \'leftRightArrow\'
452+ | LeftRightArrowCallout
453+ -- ^ @LEFT_RIGHT_ARROW_CALLOUT@
454+ -- Callout left right arrow shape. Corresponds to ECMA-376 ST_ShapeType
455+ -- \'leftRightArrowCallout\'
456+ | LeftRightUpArrow
457+ -- ^ @LEFT_RIGHT_UP_ARROW@
458+ -- Left right up arrow shape. Corresponds to ECMA-376 ST_ShapeType
459+ -- \'leftRightUpArrow\'
460+ | LeftUpArrow
461+ -- ^ @LEFT_UP_ARROW@
462+ -- Left up arrow shape. Corresponds to ECMA-376 ST_ShapeType
463+ -- \'leftUpArrow\'
464+ | LightningBolt
465+ -- ^ @LIGHTNING_BOLT@
466+ -- Lightning bolt shape. Corresponds to ECMA-376 ST_ShapeType
467+ -- \'lightningBolt\'
468+ | MathDivide
469+ -- ^ @MATH_DIVIDE@
470+ -- Divide math shape. Corresponds to ECMA-376 ST_ShapeType \'mathDivide\'
471+ | MathEqual
472+ -- ^ @MATH_EQUAL@
473+ -- Equal math shape. Corresponds to ECMA-376 ST_ShapeType \'mathEqual\'
474+ | MathMinus
475+ -- ^ @MATH_MINUS@
476+ -- Minus math shape. Corresponds to ECMA-376 ST_ShapeType \'mathMinus\'
477+ | MathMultiply
478+ -- ^ @MATH_MULTIPLY@
479+ -- Multiply math shape. Corresponds to ECMA-376 ST_ShapeType
480+ -- \'mathMultiply\'
481+ | MathNotEqual
482+ -- ^ @MATH_NOT_EQUAL@
483+ -- Not equal math shape. Corresponds to ECMA-376 ST_ShapeType
484+ -- \'mathNotEqual\'
485+ | MathPlus
486+ -- ^ @MATH_PLUS@
487+ -- Plus math shape. Corresponds to ECMA-376 ST_ShapeType \'mathPlus\'
488+ | Moon
489+ -- ^ @MOON@
490+ -- Moon shape. Corresponds to ECMA-376 ST_ShapeType \'moon\'
491+ | NoSmoking
492+ -- ^ @NO_SMOKING@
493+ -- No smoking shape. Corresponds to ECMA-376 ST_ShapeType \'noSmoking\'
494+ | NotchedRightArrow
495+ -- ^ @NOTCHED_RIGHT_ARROW@
496+ -- Notched right arrow shape. Corresponds to ECMA-376 ST_ShapeType
497+ -- \'notchedRightArrow\'
498+ | Octagon
499+ -- ^ @OCTAGON@
500+ -- Octagon shape. Corresponds to ECMA-376 ST_ShapeType \'octagon\'
501+ | Parallelogram
502+ -- ^ @PARALLELOGRAM@
503+ -- Parallelogram shape. Corresponds to ECMA-376 ST_ShapeType
504+ -- \'parallelogram\'
505+ | Pentagon
506+ -- ^ @PENTAGON@
507+ -- Pentagon shape. Corresponds to ECMA-376 ST_ShapeType \'pentagon\'
508+ | Pie
509+ -- ^ @PIE@
510+ -- Pie shape. Corresponds to ECMA-376 ST_ShapeType \'pie\'
511+ | Plaque
512+ -- ^ @PLAQUE@
513+ -- Plaque shape. Corresponds to ECMA-376 ST_ShapeType \'plaque\'
514+ | Plus
515+ -- ^ @PLUS@
516+ -- Plus shape. Corresponds to ECMA-376 ST_ShapeType \'plus\'
517+ | QuadArrow
518+ -- ^ @QUAD_ARROW@
519+ -- Quad-arrow shape. Corresponds to ECMA-376 ST_ShapeType \'quadArrow\'
520+ | QuadArrowCallout
521+ -- ^ @QUAD_ARROW_CALLOUT@
522+ -- Callout quad-arrow shape. Corresponds to ECMA-376 ST_ShapeType
523+ -- \'quadArrowCallout\'
524+ | Ribbon
525+ -- ^ @RIBBON@
526+ -- Ribbon shape. Corresponds to ECMA-376 ST_ShapeType \'ribbon\'
527+ | Ribbon2
528+ -- ^ @RIBBON_2@
529+ -- Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType \'ribbon2\'
530+ | RightArrow
531+ -- ^ @RIGHT_ARROW@
532+ -- Right arrow shape. Corresponds to ECMA-376 ST_ShapeType \'rightArrow\'
533+ | RightArrowCallout
534+ -- ^ @RIGHT_ARROW_CALLOUT@
535+ -- Callout right arrow shape. Corresponds to ECMA-376 ST_ShapeType
536+ -- \'rightArrowCallout\'
537+ | RightBrace
538+ -- ^ @RIGHT_BRACE@
539+ -- Right brace shape. Corresponds to ECMA-376 ST_ShapeType \'rightBrace\'
540+ | RightBracket
541+ -- ^ @RIGHT_BRACKET@
542+ -- Right bracket shape. Corresponds to ECMA-376 ST_ShapeType
543+ -- \'rightBracket\'
544+ | Round1Rectangle
545+ -- ^ @ROUND_1_RECTANGLE@
546+ -- One round corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType
547+ -- \'round1Rect\'
548+ | Round2DiagonalRectangle
549+ -- ^ @ROUND_2_DIAGONAL_RECTANGLE@
550+ -- Two diagonal round corner rectangle shape. Corresponds to ECMA-376
551+ -- ST_ShapeType \'round2DiagRect\'
552+ | Round2SameRectangle
553+ -- ^ @ROUND_2_SAME_RECTANGLE@
554+ -- Two same-side round corner rectangle shape. Corresponds to ECMA-376
555+ -- ST_ShapeType \'round2SameRect\'
556+ | RightTriangle
557+ -- ^ @RIGHT_TRIANGLE@
558+ -- Right triangle shape. Corresponds to ECMA-376 ST_ShapeType
559+ -- \'rtTriangle\'
560+ | SmileyFace
561+ -- ^ @SMILEY_FACE@
562+ -- Smiley face shape. Corresponds to ECMA-376 ST_ShapeType \'smileyFace\'
563+ | Snip1Rectangle
564+ -- ^ @SNIP_1_RECTANGLE@
565+ -- One snip corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType
566+ -- \'snip1Rect\'
567+ | Snip2DiagonalRectangle
568+ -- ^ @SNIP_2_DIAGONAL_RECTANGLE@
569+ -- Two diagonal snip corner rectangle shape. Corresponds to ECMA-376
570+ -- ST_ShapeType \'snip2DiagRect\'
571+ | Snip2SameRectangle
572+ -- ^ @SNIP_2_SAME_RECTANGLE@
573+ -- Two same-side snip corner rectangle shape. Corresponds to ECMA-376
574+ -- ST_ShapeType \'snip2SameRect\'
575+ | SnipRoundRectangle
576+ -- ^ @SNIP_ROUND_RECTANGLE@
577+ -- One snip one round corner rectangle shape. Corresponds to ECMA-376
578+ -- ST_ShapeType \'snipRoundRect\'
579+ | Star10
580+ -- ^ @STAR_10@
581+ -- Ten pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star10\'
582+ | Star12
583+ -- ^ @STAR_12@
584+ -- Twelve pointed star shape. Corresponds to ECMA-376 ST_ShapeType
585+ -- \'star12\'
586+ | Star16
587+ -- ^ @STAR_16@
588+ -- Sixteen pointed star shape. Corresponds to ECMA-376 ST_ShapeType
589+ -- \'star16\'
590+ | Star24
591+ -- ^ @STAR_24@
592+ -- Twenty four pointed star shape. Corresponds to ECMA-376 ST_ShapeType
593+ -- \'star24\'
594+ | Star32
595+ -- ^ @STAR_32@
596+ -- Thirty two pointed star shape. Corresponds to ECMA-376 ST_ShapeType
597+ -- \'star32\'
598+ | Star4
599+ -- ^ @STAR_4@
600+ -- Four pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star4\'
601+ | Star5
602+ -- ^ @STAR_5@
603+ -- Five pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star5\'
604+ | Star6
605+ -- ^ @STAR_6@
606+ -- Six pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star6\'
607+ | Star7
608+ -- ^ @STAR_7@
609+ -- Seven pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star7\'
610+ | Star8
611+ -- ^ @STAR_8@
612+ -- Eight pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star8\'
613+ | StripedRightArrow
614+ -- ^ @STRIPED_RIGHT_ARROW@
615+ -- Striped right arrow shape. Corresponds to ECMA-376 ST_ShapeType
616+ -- \'stripedRightArrow\'
617+ | Sun
618+ -- ^ @SUN@
619+ -- Sun shape. Corresponds to ECMA-376 ST_ShapeType \'sun\'
620+ | Trapezoid
621+ -- ^ @TRAPEZOID@
622+ -- Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType \'trapezoid\'
623+ | Triangle
624+ -- ^ @TRIANGLE@
625+ -- Triangle shape. Corresponds to ECMA-376 ST_ShapeType \'triangle\'
626+ | UpArrow
627+ -- ^ @UP_ARROW@
628+ -- Up arrow shape. Corresponds to ECMA-376 ST_ShapeType \'upArrow\'
629+ | UpArrowCallout
630+ -- ^ @UP_ARROW_CALLOUT@
631+ -- Callout up arrow shape. Corresponds to ECMA-376 ST_ShapeType
632+ -- \'upArrowCallout\'
633+ | UpDownArrow
634+ -- ^ @UP_DOWN_ARROW@
635+ -- Up down arrow shape. Corresponds to ECMA-376 ST_ShapeType
636+ -- \'upDownArrow\'
637+ | UturnArrow
638+ -- ^ @UTURN_ARROW@
639+ -- U-turn arrow shape. Corresponds to ECMA-376 ST_ShapeType \'uturnArrow\'
640+ | VerticalScroll
641+ -- ^ @VERTICAL_SCROLL@
642+ -- Vertical scroll shape. Corresponds to ECMA-376 ST_ShapeType
643+ -- \'verticalScroll\'
644+ | Wave
645+ -- ^ @WAVE@
646+ -- Wave shape. Corresponds to ECMA-376 ST_ShapeType \'wave\'
647+ | WedgeEllipseCallout
648+ -- ^ @WEDGE_ELLIPSE_CALLOUT@
649+ -- Callout wedge ellipse shape. Corresponds to ECMA-376 ST_ShapeType
650+ -- \'wedgeEllipseCallout\'
651+ | WedgeRectangleCallout
652+ -- ^ @WEDGE_RECTANGLE_CALLOUT@
653+ -- Callout wedge rectangle shape. Corresponds to ECMA-376 ST_ShapeType
654+ -- \'wedgeRectCallout\'
655+ | WedgeRoundRectangleCallout
656+ -- ^ @WEDGE_ROUND_RECTANGLE_CALLOUT@
657+ -- Callout wedge round rectangle shape. Corresponds to ECMA-376
658+ -- ST_ShapeType \'wedgeRoundRectCallout\'
659+ | FlowChartAlternateProcess
660+ -- ^ @FLOW_CHART_ALTERNATE_PROCESS@
661+ -- Alternate process flow shape. Corresponds to ECMA-376 ST_ShapeType
662+ -- \'flowChartAlternateProcess\'
663+ | FlowChartCollate
664+ -- ^ @FLOW_CHART_COLLATE@
665+ -- Collate flow shape. Corresponds to ECMA-376 ST_ShapeType
666+ -- \'flowChartCollate\'
667+ | FlowChartConnector
668+ -- ^ @FLOW_CHART_CONNECTOR@
669+ -- Connector flow shape. Corresponds to ECMA-376 ST_ShapeType
670+ -- \'flowChartConnector\'
671+ | FlowChartDecision
672+ -- ^ @FLOW_CHART_DECISION@
673+ -- Decision flow shape. Corresponds to ECMA-376 ST_ShapeType
674+ -- \'flowChartDecision\'
675+ | FlowChartDelay
676+ -- ^ @FLOW_CHART_DELAY@
677+ -- Delay flow shape. Corresponds to ECMA-376 ST_ShapeType
678+ -- \'flowChartDelay\'
679+ | FlowChartDisplay
680+ -- ^ @FLOW_CHART_DISPLAY@
681+ -- Display flow shape. Corresponds to ECMA-376 ST_ShapeType
682+ -- \'flowChartDisplay\'
683+ | FlowChartDocument
684+ -- ^ @FLOW_CHART_DOCUMENT@
685+ -- Document flow shape. Corresponds to ECMA-376 ST_ShapeType
686+ -- \'flowChartDocument\'
687+ | FlowChartExtract
688+ -- ^ @FLOW_CHART_EXTRACT@
689+ -- Extract flow shape. Corresponds to ECMA-376 ST_ShapeType
690+ -- \'flowChartExtract\'
691+ | FlowChartInputOutput
692+ -- ^ @FLOW_CHART_INPUT_OUTPUT@
693+ -- Input output flow shape. Corresponds to ECMA-376 ST_ShapeType
694+ -- \'flowChartInputOutput\'
695+ | FlowChartInternalStorage
696+ -- ^ @FLOW_CHART_INTERNAL_STORAGE@
697+ -- Internal storage flow shape. Corresponds to ECMA-376 ST_ShapeType
698+ -- \'flowChartInternalStorage\'
699+ | FlowChartMagneticDisk
700+ -- ^ @FLOW_CHART_MAGNETIC_DISK@
701+ -- Magnetic disk flow shape. Corresponds to ECMA-376 ST_ShapeType
702+ -- \'flowChartMagneticDisk\'
703+ | FlowChartMagneticDrum
704+ -- ^ @FLOW_CHART_MAGNETIC_DRUM@
705+ -- Magnetic drum flow shape. Corresponds to ECMA-376 ST_ShapeType
706+ -- \'flowChartMagneticDrum\'
707+ | FlowChartMagneticTape
708+ -- ^ @FLOW_CHART_MAGNETIC_TAPE@
709+ -- Magnetic tape flow shape. Corresponds to ECMA-376 ST_ShapeType
710+ -- \'flowChartMagneticTape\'
711+ | FlowChartManualInput
712+ -- ^ @FLOW_CHART_MANUAL_INPUT@
713+ -- Manual input flow shape. Corresponds to ECMA-376 ST_ShapeType
714+ -- \'flowChartManualInput\'
715+ | FlowChartManualOperation
716+ -- ^ @FLOW_CHART_MANUAL_OPERATION@
717+ -- Manual operation flow shape. Corresponds to ECMA-376 ST_ShapeType
718+ -- \'flowChartManualOperation\'
719+ | FlowChartMerge
720+ -- ^ @FLOW_CHART_MERGE@
721+ -- Merge flow shape. Corresponds to ECMA-376 ST_ShapeType
722+ -- \'flowChartMerge\'
723+ | FlowChartMultidocument
724+ -- ^ @FLOW_CHART_MULTIDOCUMENT@
725+ -- Multi-document flow shape. Corresponds to ECMA-376 ST_ShapeType
726+ -- \'flowChartMultidocument\'
727+ | FlowChartOfflineStorage
728+ -- ^ @FLOW_CHART_OFFLINE_STORAGE@
729+ -- Offline storage flow shape. Corresponds to ECMA-376 ST_ShapeType
730+ -- \'flowChartOfflineStorage\'
731+ | FlowChartOffpageConnector
732+ -- ^ @FLOW_CHART_OFFPAGE_CONNECTOR@
733+ -- Off-page connector flow shape. Corresponds to ECMA-376 ST_ShapeType
734+ -- \'flowChartOffpageConnector\'
735+ | FlowChartOnlineStorage
736+ -- ^ @FLOW_CHART_ONLINE_STORAGE@
737+ -- Online storage flow shape. Corresponds to ECMA-376 ST_ShapeType
738+ -- \'flowChartOnlineStorage\'
739+ | FlowChartOr
740+ -- ^ @FLOW_CHART_OR@
741+ -- Or flow shape. Corresponds to ECMA-376 ST_ShapeType \'flowChartOr\'
742+ | FlowChartPredefinedProcess
743+ -- ^ @FLOW_CHART_PREDEFINED_PROCESS@
744+ -- Predefined process flow shape. Corresponds to ECMA-376 ST_ShapeType
745+ -- \'flowChartPredefinedProcess\'
746+ | FlowChartPreparation
747+ -- ^ @FLOW_CHART_PREPARATION@
748+ -- Preparation flow shape. Corresponds to ECMA-376 ST_ShapeType
749+ -- \'flowChartPreparation\'
750+ | FlowChartProcess
751+ -- ^ @FLOW_CHART_PROCESS@
752+ -- Process flow shape. Corresponds to ECMA-376 ST_ShapeType
753+ -- \'flowChartProcess\'
754+ | FlowChartPunchedCard
755+ -- ^ @FLOW_CHART_PUNCHED_CARD@
756+ -- Punched card flow shape. Corresponds to ECMA-376 ST_ShapeType
757+ -- \'flowChartPunchedCard\'
758+ | FlowChartPunchedTape
759+ -- ^ @FLOW_CHART_PUNCHED_TAPE@
760+ -- Punched tape flow shape. Corresponds to ECMA-376 ST_ShapeType
761+ -- \'flowChartPunchedTape\'
762+ | FlowChartSort
763+ -- ^ @FLOW_CHART_SORT@
764+ -- Sort flow shape. Corresponds to ECMA-376 ST_ShapeType \'flowChartSort\'
765+ | FlowChartSummingJunction
766+ -- ^ @FLOW_CHART_SUMMING_JUNCTION@
767+ -- Summing junction flow shape. Corresponds to ECMA-376 ST_ShapeType
768+ -- \'flowChartSummingJunction\'
769+ | FlowChartTerminator
770+ -- ^ @FLOW_CHART_TERMINATOR@
771+ -- Terminator flow shape. Corresponds to ECMA-376 ST_ShapeType
772+ -- \'flowChartTerminator\'
773+ | ArrowEast
774+ -- ^ @ARROW_EAST@
775+ -- East arrow shape.
776+ | ArrowNorthEast
777+ -- ^ @ARROW_NORTH_EAST@
778+ -- Northeast arrow shape.
779+ | ArrowNorth
780+ -- ^ @ARROW_NORTH@
781+ -- North arrow shape.
782+ | Speech
783+ -- ^ @SPEECH@
784+ -- Speech shape.
785+ | Starburst
786+ -- ^ @STARBURST@
787+ -- Star burst shape.
788+ | Teardrop
789+ -- ^ @TEARDROP@
790+ -- Teardrop shape. Corresponds to ECMA-376 ST_ShapeType \'teardrop\'
791+ | EllipseRibbon
792+ -- ^ @ELLIPSE_RIBBON@
793+ -- Ellipse ribbon shape. Corresponds to ECMA-376 ST_ShapeType
794+ -- \'ellipseRibbon\'
795+ | EllipseRibbon2
796+ -- ^ @ELLIPSE_RIBBON_2@
797+ -- Ellipse ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType
798+ -- \'ellipseRibbon2\'
799+ | CloudCallout
800+ -- ^ @CLOUD_CALLOUT@
801+ -- Callout cloud shape. Corresponds to ECMA-376 ST_ShapeType
802+ -- \'cloudCallout\'
803+ | Custom
804+ -- ^ @CUSTOM@
805+ -- Custom shape.
806+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
807+
808+instance Hashable CreateShapeRequestShapeType
809+
810+instance FromHttpApiData CreateShapeRequestShapeType where
811+ parseQueryParam = \case
812+ "TYPE_UNSPECIFIED" -> Right TypeUnspecified
813+ "TEXT_BOX" -> Right TextBox
814+ "RECTANGLE" -> Right Rectangle
815+ "ROUND_RECTANGLE" -> Right RoundRectangle
816+ "ELLIPSE" -> Right Ellipse
817+ "ARC" -> Right Arc
818+ "BENT_ARROW" -> Right BentArrow
819+ "BENT_UP_ARROW" -> Right BentUpArrow
820+ "BEVEL" -> Right Bevel
821+ "BLOCK_ARC" -> Right BlockArc
822+ "BRACE_PAIR" -> Right BracePair
823+ "BRACKET_PAIR" -> Right BracketPair
824+ "CAN" -> Right Can
825+ "CHEVRON" -> Right Chevron
826+ "CHORD" -> Right Chord
827+ "CLOUD" -> Right Cloud
828+ "CORNER" -> Right Corner
829+ "CUBE" -> Right Cube
830+ "CURVED_DOWN_ARROW" -> Right CurvedDownArrow
831+ "CURVED_LEFT_ARROW" -> Right CurvedLeftArrow
832+ "CURVED_RIGHT_ARROW" -> Right CurvedRightArrow
833+ "CURVED_UP_ARROW" -> Right CurvedUpArrow
834+ "DECAGON" -> Right Decagon
835+ "DIAGONAL_STRIPE" -> Right DiagonalStripe
836+ "DIAMOND" -> Right Diamond
837+ "DODECAGON" -> Right Dodecagon
838+ "DONUT" -> Right Donut
839+ "DOUBLE_WAVE" -> Right DoubleWave
840+ "DOWN_ARROW" -> Right DownArrow
841+ "DOWN_ARROW_CALLOUT" -> Right DownArrowCallout
842+ "FOLDED_CORNER" -> Right FoldedCorner
843+ "FRAME" -> Right Frame
844+ "HALF_FRAME" -> Right HalfFrame
845+ "HEART" -> Right Heart
846+ "HEPTAGON" -> Right Heptagon
847+ "HEXAGON" -> Right Hexagon
848+ "HOME_PLATE" -> Right HomePlate
849+ "HORIZONTAL_SCROLL" -> Right HorizontalScroll
850+ "IRREGULAR_SEAL_1" -> Right IrregularSeal1
851+ "IRREGULAR_SEAL_2" -> Right IrregularSeal2
852+ "LEFT_ARROW" -> Right LeftArrow
853+ "LEFT_ARROW_CALLOUT" -> Right LeftArrowCallout
854+ "LEFT_BRACE" -> Right LeftBrace
855+ "LEFT_BRACKET" -> Right LeftBracket
856+ "LEFT_RIGHT_ARROW" -> Right LeftRightArrow
857+ "LEFT_RIGHT_ARROW_CALLOUT" -> Right LeftRightArrowCallout
858+ "LEFT_RIGHT_UP_ARROW" -> Right LeftRightUpArrow
859+ "LEFT_UP_ARROW" -> Right LeftUpArrow
860+ "LIGHTNING_BOLT" -> Right LightningBolt
861+ "MATH_DIVIDE" -> Right MathDivide
862+ "MATH_EQUAL" -> Right MathEqual
863+ "MATH_MINUS" -> Right MathMinus
864+ "MATH_MULTIPLY" -> Right MathMultiply
865+ "MATH_NOT_EQUAL" -> Right MathNotEqual
866+ "MATH_PLUS" -> Right MathPlus
867+ "MOON" -> Right Moon
868+ "NO_SMOKING" -> Right NoSmoking
869+ "NOTCHED_RIGHT_ARROW" -> Right NotchedRightArrow
870+ "OCTAGON" -> Right Octagon
871+ "PARALLELOGRAM" -> Right Parallelogram
872+ "PENTAGON" -> Right Pentagon
873+ "PIE" -> Right Pie
874+ "PLAQUE" -> Right Plaque
875+ "PLUS" -> Right Plus
876+ "QUAD_ARROW" -> Right QuadArrow
877+ "QUAD_ARROW_CALLOUT" -> Right QuadArrowCallout
878+ "RIBBON" -> Right Ribbon
879+ "RIBBON_2" -> Right Ribbon2
880+ "RIGHT_ARROW" -> Right RightArrow
881+ "RIGHT_ARROW_CALLOUT" -> Right RightArrowCallout
882+ "RIGHT_BRACE" -> Right RightBrace
883+ "RIGHT_BRACKET" -> Right RightBracket
884+ "ROUND_1_RECTANGLE" -> Right Round1Rectangle
885+ "ROUND_2_DIAGONAL_RECTANGLE" -> Right Round2DiagonalRectangle
886+ "ROUND_2_SAME_RECTANGLE" -> Right Round2SameRectangle
887+ "RIGHT_TRIANGLE" -> Right RightTriangle
888+ "SMILEY_FACE" -> Right SmileyFace
889+ "SNIP_1_RECTANGLE" -> Right Snip1Rectangle
890+ "SNIP_2_DIAGONAL_RECTANGLE" -> Right Snip2DiagonalRectangle
891+ "SNIP_2_SAME_RECTANGLE" -> Right Snip2SameRectangle
892+ "SNIP_ROUND_RECTANGLE" -> Right SnipRoundRectangle
893+ "STAR_10" -> Right Star10
894+ "STAR_12" -> Right Star12
895+ "STAR_16" -> Right Star16
896+ "STAR_24" -> Right Star24
897+ "STAR_32" -> Right Star32
898+ "STAR_4" -> Right Star4
899+ "STAR_5" -> Right Star5
900+ "STAR_6" -> Right Star6
901+ "STAR_7" -> Right Star7
902+ "STAR_8" -> Right Star8
903+ "STRIPED_RIGHT_ARROW" -> Right StripedRightArrow
904+ "SUN" -> Right Sun
905+ "TRAPEZOID" -> Right Trapezoid
906+ "TRIANGLE" -> Right Triangle
907+ "UP_ARROW" -> Right UpArrow
908+ "UP_ARROW_CALLOUT" -> Right UpArrowCallout
909+ "UP_DOWN_ARROW" -> Right UpDownArrow
910+ "UTURN_ARROW" -> Right UturnArrow
911+ "VERTICAL_SCROLL" -> Right VerticalScroll
912+ "WAVE" -> Right Wave
913+ "WEDGE_ELLIPSE_CALLOUT" -> Right WedgeEllipseCallout
914+ "WEDGE_RECTANGLE_CALLOUT" -> Right WedgeRectangleCallout
915+ "WEDGE_ROUND_RECTANGLE_CALLOUT" -> Right WedgeRoundRectangleCallout
916+ "FLOW_CHART_ALTERNATE_PROCESS" -> Right FlowChartAlternateProcess
917+ "FLOW_CHART_COLLATE" -> Right FlowChartCollate
918+ "FLOW_CHART_CONNECTOR" -> Right FlowChartConnector
919+ "FLOW_CHART_DECISION" -> Right FlowChartDecision
920+ "FLOW_CHART_DELAY" -> Right FlowChartDelay
921+ "FLOW_CHART_DISPLAY" -> Right FlowChartDisplay
922+ "FLOW_CHART_DOCUMENT" -> Right FlowChartDocument
923+ "FLOW_CHART_EXTRACT" -> Right FlowChartExtract
924+ "FLOW_CHART_INPUT_OUTPUT" -> Right FlowChartInputOutput
925+ "FLOW_CHART_INTERNAL_STORAGE" -> Right FlowChartInternalStorage
926+ "FLOW_CHART_MAGNETIC_DISK" -> Right FlowChartMagneticDisk
927+ "FLOW_CHART_MAGNETIC_DRUM" -> Right FlowChartMagneticDrum
928+ "FLOW_CHART_MAGNETIC_TAPE" -> Right FlowChartMagneticTape
929+ "FLOW_CHART_MANUAL_INPUT" -> Right FlowChartManualInput
930+ "FLOW_CHART_MANUAL_OPERATION" -> Right FlowChartManualOperation
931+ "FLOW_CHART_MERGE" -> Right FlowChartMerge
932+ "FLOW_CHART_MULTIDOCUMENT" -> Right FlowChartMultidocument
933+ "FLOW_CHART_OFFLINE_STORAGE" -> Right FlowChartOfflineStorage
934+ "FLOW_CHART_OFFPAGE_CONNECTOR" -> Right FlowChartOffpageConnector
935+ "FLOW_CHART_ONLINE_STORAGE" -> Right FlowChartOnlineStorage
936+ "FLOW_CHART_OR" -> Right FlowChartOr
937+ "FLOW_CHART_PREDEFINED_PROCESS" -> Right FlowChartPredefinedProcess
938+ "FLOW_CHART_PREPARATION" -> Right FlowChartPreparation
939+ "FLOW_CHART_PROCESS" -> Right FlowChartProcess
940+ "FLOW_CHART_PUNCHED_CARD" -> Right FlowChartPunchedCard
941+ "FLOW_CHART_PUNCHED_TAPE" -> Right FlowChartPunchedTape
942+ "FLOW_CHART_SORT" -> Right FlowChartSort
943+ "FLOW_CHART_SUMMING_JUNCTION" -> Right FlowChartSummingJunction
944+ "FLOW_CHART_TERMINATOR" -> Right FlowChartTerminator
945+ "ARROW_EAST" -> Right ArrowEast
946+ "ARROW_NORTH_EAST" -> Right ArrowNorthEast
947+ "ARROW_NORTH" -> Right ArrowNorth
948+ "SPEECH" -> Right Speech
949+ "STARBURST" -> Right Starburst
950+ "TEARDROP" -> Right Teardrop
951+ "ELLIPSE_RIBBON" -> Right EllipseRibbon
952+ "ELLIPSE_RIBBON_2" -> Right EllipseRibbon2
953+ "CLOUD_CALLOUT" -> Right CloudCallout
954+ "CUSTOM" -> Right Custom
955+ x -> Left ("Unable to parse CreateShapeRequestShapeType from: " <> x)
956+
957+instance ToHttpApiData CreateShapeRequestShapeType where
958+ toQueryParam = \case
959+ TypeUnspecified -> "TYPE_UNSPECIFIED"
960+ TextBox -> "TEXT_BOX"
961+ Rectangle -> "RECTANGLE"
962+ RoundRectangle -> "ROUND_RECTANGLE"
963+ Ellipse -> "ELLIPSE"
964+ Arc -> "ARC"
965+ BentArrow -> "BENT_ARROW"
966+ BentUpArrow -> "BENT_UP_ARROW"
967+ Bevel -> "BEVEL"
968+ BlockArc -> "BLOCK_ARC"
969+ BracePair -> "BRACE_PAIR"
970+ BracketPair -> "BRACKET_PAIR"
971+ Can -> "CAN"
972+ Chevron -> "CHEVRON"
973+ Chord -> "CHORD"
974+ Cloud -> "CLOUD"
975+ Corner -> "CORNER"
976+ Cube -> "CUBE"
977+ CurvedDownArrow -> "CURVED_DOWN_ARROW"
978+ CurvedLeftArrow -> "CURVED_LEFT_ARROW"
979+ CurvedRightArrow -> "CURVED_RIGHT_ARROW"
980+ CurvedUpArrow -> "CURVED_UP_ARROW"
981+ Decagon -> "DECAGON"
982+ DiagonalStripe -> "DIAGONAL_STRIPE"
983+ Diamond -> "DIAMOND"
984+ Dodecagon -> "DODECAGON"
985+ Donut -> "DONUT"
986+ DoubleWave -> "DOUBLE_WAVE"
987+ DownArrow -> "DOWN_ARROW"
988+ DownArrowCallout -> "DOWN_ARROW_CALLOUT"
989+ FoldedCorner -> "FOLDED_CORNER"
990+ Frame -> "FRAME"
991+ HalfFrame -> "HALF_FRAME"
992+ Heart -> "HEART"
993+ Heptagon -> "HEPTAGON"
994+ Hexagon -> "HEXAGON"
995+ HomePlate -> "HOME_PLATE"
996+ HorizontalScroll -> "HORIZONTAL_SCROLL"
997+ IrregularSeal1 -> "IRREGULAR_SEAL_1"
998+ IrregularSeal2 -> "IRREGULAR_SEAL_2"
999+ LeftArrow -> "LEFT_ARROW"
1000+ LeftArrowCallout -> "LEFT_ARROW_CALLOUT"
1001+ LeftBrace -> "LEFT_BRACE"
1002+ LeftBracket -> "LEFT_BRACKET"
1003+ LeftRightArrow -> "LEFT_RIGHT_ARROW"
1004+ LeftRightArrowCallout -> "LEFT_RIGHT_ARROW_CALLOUT"
1005+ LeftRightUpArrow -> "LEFT_RIGHT_UP_ARROW"
1006+ LeftUpArrow -> "LEFT_UP_ARROW"
1007+ LightningBolt -> "LIGHTNING_BOLT"
1008+ MathDivide -> "MATH_DIVIDE"
1009+ MathEqual -> "MATH_EQUAL"
1010+ MathMinus -> "MATH_MINUS"
1011+ MathMultiply -> "MATH_MULTIPLY"
1012+ MathNotEqual -> "MATH_NOT_EQUAL"
1013+ MathPlus -> "MATH_PLUS"
1014+ Moon -> "MOON"
1015+ NoSmoking -> "NO_SMOKING"
1016+ NotchedRightArrow -> "NOTCHED_RIGHT_ARROW"
1017+ Octagon -> "OCTAGON"
1018+ Parallelogram -> "PARALLELOGRAM"
1019+ Pentagon -> "PENTAGON"
1020+ Pie -> "PIE"
1021+ Plaque -> "PLAQUE"
1022+ Plus -> "PLUS"
1023+ QuadArrow -> "QUAD_ARROW"
1024+ QuadArrowCallout -> "QUAD_ARROW_CALLOUT"
1025+ Ribbon -> "RIBBON"
1026+ Ribbon2 -> "RIBBON_2"
1027+ RightArrow -> "RIGHT_ARROW"
1028+ RightArrowCallout -> "RIGHT_ARROW_CALLOUT"
1029+ RightBrace -> "RIGHT_BRACE"
1030+ RightBracket -> "RIGHT_BRACKET"
1031+ Round1Rectangle -> "ROUND_1_RECTANGLE"
1032+ Round2DiagonalRectangle -> "ROUND_2_DIAGONAL_RECTANGLE"
1033+ Round2SameRectangle -> "ROUND_2_SAME_RECTANGLE"
1034+ RightTriangle -> "RIGHT_TRIANGLE"
1035+ SmileyFace -> "SMILEY_FACE"
1036+ Snip1Rectangle -> "SNIP_1_RECTANGLE"
1037+ Snip2DiagonalRectangle -> "SNIP_2_DIAGONAL_RECTANGLE"
1038+ Snip2SameRectangle -> "SNIP_2_SAME_RECTANGLE"
1039+ SnipRoundRectangle -> "SNIP_ROUND_RECTANGLE"
1040+ Star10 -> "STAR_10"
1041+ Star12 -> "STAR_12"
1042+ Star16 -> "STAR_16"
1043+ Star24 -> "STAR_24"
1044+ Star32 -> "STAR_32"
1045+ Star4 -> "STAR_4"
1046+ Star5 -> "STAR_5"
1047+ Star6 -> "STAR_6"
1048+ Star7 -> "STAR_7"
1049+ Star8 -> "STAR_8"
1050+ StripedRightArrow -> "STRIPED_RIGHT_ARROW"
1051+ Sun -> "SUN"
1052+ Trapezoid -> "TRAPEZOID"
1053+ Triangle -> "TRIANGLE"
1054+ UpArrow -> "UP_ARROW"
1055+ UpArrowCallout -> "UP_ARROW_CALLOUT"
1056+ UpDownArrow -> "UP_DOWN_ARROW"
1057+ UturnArrow -> "UTURN_ARROW"
1058+ VerticalScroll -> "VERTICAL_SCROLL"
1059+ Wave -> "WAVE"
1060+ WedgeEllipseCallout -> "WEDGE_ELLIPSE_CALLOUT"
1061+ WedgeRectangleCallout -> "WEDGE_RECTANGLE_CALLOUT"
1062+ WedgeRoundRectangleCallout -> "WEDGE_ROUND_RECTANGLE_CALLOUT"
1063+ FlowChartAlternateProcess -> "FLOW_CHART_ALTERNATE_PROCESS"
1064+ FlowChartCollate -> "FLOW_CHART_COLLATE"
1065+ FlowChartConnector -> "FLOW_CHART_CONNECTOR"
1066+ FlowChartDecision -> "FLOW_CHART_DECISION"
1067+ FlowChartDelay -> "FLOW_CHART_DELAY"
1068+ FlowChartDisplay -> "FLOW_CHART_DISPLAY"
1069+ FlowChartDocument -> "FLOW_CHART_DOCUMENT"
1070+ FlowChartExtract -> "FLOW_CHART_EXTRACT"
1071+ FlowChartInputOutput -> "FLOW_CHART_INPUT_OUTPUT"
1072+ FlowChartInternalStorage -> "FLOW_CHART_INTERNAL_STORAGE"
1073+ FlowChartMagneticDisk -> "FLOW_CHART_MAGNETIC_DISK"
1074+ FlowChartMagneticDrum -> "FLOW_CHART_MAGNETIC_DRUM"
1075+ FlowChartMagneticTape -> "FLOW_CHART_MAGNETIC_TAPE"
1076+ FlowChartManualInput -> "FLOW_CHART_MANUAL_INPUT"
1077+ FlowChartManualOperation -> "FLOW_CHART_MANUAL_OPERATION"
1078+ FlowChartMerge -> "FLOW_CHART_MERGE"
1079+ FlowChartMultidocument -> "FLOW_CHART_MULTIDOCUMENT"
1080+ FlowChartOfflineStorage -> "FLOW_CHART_OFFLINE_STORAGE"
1081+ FlowChartOffpageConnector -> "FLOW_CHART_OFFPAGE_CONNECTOR"
1082+ FlowChartOnlineStorage -> "FLOW_CHART_ONLINE_STORAGE"
1083+ FlowChartOr -> "FLOW_CHART_OR"
1084+ FlowChartPredefinedProcess -> "FLOW_CHART_PREDEFINED_PROCESS"
1085+ FlowChartPreparation -> "FLOW_CHART_PREPARATION"
1086+ FlowChartProcess -> "FLOW_CHART_PROCESS"
1087+ FlowChartPunchedCard -> "FLOW_CHART_PUNCHED_CARD"
1088+ FlowChartPunchedTape -> "FLOW_CHART_PUNCHED_TAPE"
1089+ FlowChartSort -> "FLOW_CHART_SORT"
1090+ FlowChartSummingJunction -> "FLOW_CHART_SUMMING_JUNCTION"
1091+ FlowChartTerminator -> "FLOW_CHART_TERMINATOR"
1092+ ArrowEast -> "ARROW_EAST"
1093+ ArrowNorthEast -> "ARROW_NORTH_EAST"
1094+ ArrowNorth -> "ARROW_NORTH"
1095+ Speech -> "SPEECH"
1096+ Starburst -> "STARBURST"
1097+ Teardrop -> "TEARDROP"
1098+ EllipseRibbon -> "ELLIPSE_RIBBON"
1099+ EllipseRibbon2 -> "ELLIPSE_RIBBON_2"
1100+ CloudCallout -> "CLOUD_CALLOUT"
1101+ Custom -> "CUSTOM"
1102+
1103+instance FromJSON CreateShapeRequestShapeType where
1104+ parseJSON = parseJSONText "CreateShapeRequestShapeType"
1105+
1106+instance ToJSON CreateShapeRequestShapeType where
1107+ toJSON = toJSONText
1108+
1109+-- | Predefined layout.
1110+data LayoutReferencePredefinedLayout
1111+ = PredefinedLayoutUnspecified
1112+ -- ^ @PREDEFINED_LAYOUT_UNSPECIFIED@
1113+ -- Unspecified layout.
1114+ | Blank
1115+ -- ^ @BLANK@
1116+ -- Blank layout, with no placeholders.
1117+ | CaptionOnly
1118+ -- ^ @CAPTION_ONLY@
1119+ -- Layout with a caption at the bottom.
1120+ | Title
1121+ -- ^ @TITLE@
1122+ -- Layout with a title and a subtitle.
1123+ | TitleAndBody
1124+ -- ^ @TITLE_AND_BODY@
1125+ -- Layout with a title and body.
1126+ | TitleAndTwoColumns
1127+ -- ^ @TITLE_AND_TWO_COLUMNS@
1128+ -- Layout with a title and two columns.
1129+ | TitleOnly
1130+ -- ^ @TITLE_ONLY@
1131+ -- Layout with only a title.
1132+ | SectionHeader
1133+ -- ^ @SECTION_HEADER@
1134+ -- Layout with a section title.
1135+ | SectionTitleAndDescription
1136+ -- ^ @SECTION_TITLE_AND_DESCRIPTION@
1137+ -- Layout with a title and subtitle on one side and description on the
1138+ -- other.
1139+ | OneColumnText
1140+ -- ^ @ONE_COLUMN_TEXT@
1141+ -- Layout with one title and one body, arranged in a single column.
1142+ | MainPoint
1143+ -- ^ @MAIN_POINT@
1144+ -- Layout with a main point.
1145+ | BigNumber
1146+ -- ^ @BIG_NUMBER@
1147+ -- Layout with a big number heading.
1148+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1149+
1150+instance Hashable LayoutReferencePredefinedLayout
1151+
1152+instance FromHttpApiData LayoutReferencePredefinedLayout where
1153+ parseQueryParam = \case
1154+ "PREDEFINED_LAYOUT_UNSPECIFIED" -> Right PredefinedLayoutUnspecified
1155+ "BLANK" -> Right Blank
1156+ "CAPTION_ONLY" -> Right CaptionOnly
1157+ "TITLE" -> Right Title
1158+ "TITLE_AND_BODY" -> Right TitleAndBody
1159+ "TITLE_AND_TWO_COLUMNS" -> Right TitleAndTwoColumns
1160+ "TITLE_ONLY" -> Right TitleOnly
1161+ "SECTION_HEADER" -> Right SectionHeader
1162+ "SECTION_TITLE_AND_DESCRIPTION" -> Right SectionTitleAndDescription
1163+ "ONE_COLUMN_TEXT" -> Right OneColumnText
1164+ "MAIN_POINT" -> Right MainPoint
1165+ "BIG_NUMBER" -> Right BigNumber
1166+ x -> Left ("Unable to parse LayoutReferencePredefinedLayout from: " <> x)
1167+
1168+instance ToHttpApiData LayoutReferencePredefinedLayout where
1169+ toQueryParam = \case
1170+ PredefinedLayoutUnspecified -> "PREDEFINED_LAYOUT_UNSPECIFIED"
1171+ Blank -> "BLANK"
1172+ CaptionOnly -> "CAPTION_ONLY"
1173+ Title -> "TITLE"
1174+ TitleAndBody -> "TITLE_AND_BODY"
1175+ TitleAndTwoColumns -> "TITLE_AND_TWO_COLUMNS"
1176+ TitleOnly -> "TITLE_ONLY"
1177+ SectionHeader -> "SECTION_HEADER"
1178+ SectionTitleAndDescription -> "SECTION_TITLE_AND_DESCRIPTION"
1179+ OneColumnText -> "ONE_COLUMN_TEXT"
1180+ MainPoint -> "MAIN_POINT"
1181+ BigNumber -> "BIG_NUMBER"
1182+
1183+instance FromJSON LayoutReferencePredefinedLayout where
1184+ parseJSON = parseJSONText "LayoutReferencePredefinedLayout"
1185+
1186+instance ToJSON LayoutReferencePredefinedLayout where
1187+ toJSON = toJSONText
1188+
1189+-- | The category of line to be created.
1190+data CreateLineRequestLineCategory
1191+ = Straight
1192+ -- ^ @STRAIGHT@
1193+ -- Straight connectors, including straight connector 1. The is the default
1194+ -- category when one is not specified.
1195+ | Bent
1196+ -- ^ @BENT@
1197+ -- Bent connectors, including bent connector 2 to 5.
1198+ | Curved
1199+ -- ^ @CURVED@
1200+ -- Curved connectors, including curved connector 2 to 5.
1201+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1202+
1203+instance Hashable CreateLineRequestLineCategory
1204+
1205+instance FromHttpApiData CreateLineRequestLineCategory where
1206+ parseQueryParam = \case
1207+ "STRAIGHT" -> Right Straight
1208+ "BENT" -> Right Bent
1209+ "CURVED" -> Right Curved
1210+ x -> Left ("Unable to parse CreateLineRequestLineCategory from: " <> x)
1211+
1212+instance ToHttpApiData CreateLineRequestLineCategory where
1213+ toQueryParam = \case
1214+ Straight -> "STRAIGHT"
1215+ Bent -> "BENT"
1216+ Curved -> "CURVED"
1217+
1218+instance FromJSON CreateLineRequestLineCategory where
1219+ parseJSON = parseJSONText "CreateLineRequestLineCategory"
1220+
1221+instance ToJSON CreateLineRequestLineCategory where
1222+ toJSON = toJSONText
1223+
1224+-- | The type of the shape.
1225+data ShapeShapeType
1226+ = SSTTypeUnspecified
1227+ -- ^ @TYPE_UNSPECIFIED@
1228+ -- The shape type that is not predefined.
1229+ | SSTTextBox
1230+ -- ^ @TEXT_BOX@
1231+ -- Text box shape.
1232+ | SSTRectangle
1233+ -- ^ @RECTANGLE@
1234+ -- Rectangle shape. Corresponds to ECMA-376 ST_ShapeType \'rect\'.
1235+ | SSTRoundRectangle
1236+ -- ^ @ROUND_RECTANGLE@
1237+ -- Round corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType
1238+ -- \'roundRect\'
1239+ | SSTEllipse
1240+ -- ^ @ELLIPSE@
1241+ -- Ellipse shape. Corresponds to ECMA-376 ST_ShapeType \'ellipse\'
1242+ | SSTArc
1243+ -- ^ @ARC@
1244+ -- Curved arc shape. Corresponds to ECMA-376 ST_ShapeType \'arc\'
1245+ | SSTBentArrow
1246+ -- ^ @BENT_ARROW@
1247+ -- Bent arrow shape. Corresponds to ECMA-376 ST_ShapeType \'bentArrow\'
1248+ | SSTBentUpArrow
1249+ -- ^ @BENT_UP_ARROW@
1250+ -- Bent up arrow shape. Corresponds to ECMA-376 ST_ShapeType
1251+ -- \'bentUpArrow\'
1252+ | SSTBevel
1253+ -- ^ @BEVEL@
1254+ -- Bevel shape. Corresponds to ECMA-376 ST_ShapeType \'bevel\'
1255+ | SSTBlockArc
1256+ -- ^ @BLOCK_ARC@
1257+ -- Block arc shape. Corresponds to ECMA-376 ST_ShapeType \'blockArc\'
1258+ | SSTBracePair
1259+ -- ^ @BRACE_PAIR@
1260+ -- Brace pair shape. Corresponds to ECMA-376 ST_ShapeType \'bracePair\'
1261+ | SSTBracketPair
1262+ -- ^ @BRACKET_PAIR@
1263+ -- Bracket pair shape. Corresponds to ECMA-376 ST_ShapeType \'bracketPair\'
1264+ | SSTCan
1265+ -- ^ @CAN@
1266+ -- Can shape. Corresponds to ECMA-376 ST_ShapeType \'can\'
1267+ | SSTChevron
1268+ -- ^ @CHEVRON@
1269+ -- Chevron shape. Corresponds to ECMA-376 ST_ShapeType \'chevron\'
1270+ | SSTChord
1271+ -- ^ @CHORD@
1272+ -- Chord shape. Corresponds to ECMA-376 ST_ShapeType \'chord\'
1273+ | SSTCloud
1274+ -- ^ @CLOUD@
1275+ -- Cloud shape. Corresponds to ECMA-376 ST_ShapeType \'cloud\'
1276+ | SSTCorner
1277+ -- ^ @CORNER@
1278+ -- Corner shape. Corresponds to ECMA-376 ST_ShapeType \'corner\'
1279+ | SSTCube
1280+ -- ^ @CUBE@
1281+ -- Cube shape. Corresponds to ECMA-376 ST_ShapeType \'cube\'
1282+ | SSTCurvedDownArrow
1283+ -- ^ @CURVED_DOWN_ARROW@
1284+ -- Curved down arrow shape. Corresponds to ECMA-376 ST_ShapeType
1285+ -- \'curvedDownArrow\'
1286+ | SSTCurvedLeftArrow
1287+ -- ^ @CURVED_LEFT_ARROW@
1288+ -- Curved left arrow shape. Corresponds to ECMA-376 ST_ShapeType
1289+ -- \'curvedLeftArrow\'
1290+ | SSTCurvedRightArrow
1291+ -- ^ @CURVED_RIGHT_ARROW@
1292+ -- Curved right arrow shape. Corresponds to ECMA-376 ST_ShapeType
1293+ -- \'curvedRightArrow\'
1294+ | SSTCurvedUpArrow
1295+ -- ^ @CURVED_UP_ARROW@
1296+ -- Curved up arrow shape. Corresponds to ECMA-376 ST_ShapeType
1297+ -- \'curvedUpArrow\'
1298+ | SSTDecagon
1299+ -- ^ @DECAGON@
1300+ -- Decagon shape. Corresponds to ECMA-376 ST_ShapeType \'decagon\'
1301+ | SSTDiagonalStripe
1302+ -- ^ @DIAGONAL_STRIPE@
1303+ -- Diagonal stripe shape. Corresponds to ECMA-376 ST_ShapeType
1304+ -- \'diagStripe\'
1305+ | SSTDiamond
1306+ -- ^ @DIAMOND@
1307+ -- Diamond shape. Corresponds to ECMA-376 ST_ShapeType \'diamond\'
1308+ | SSTDodecagon
1309+ -- ^ @DODECAGON@
1310+ -- Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType \'dodecagon\'
1311+ | SSTDonut
1312+ -- ^ @DONUT@
1313+ -- Donut shape. Corresponds to ECMA-376 ST_ShapeType \'donut\'
1314+ | SSTDoubleWave
1315+ -- ^ @DOUBLE_WAVE@
1316+ -- Double wave shape. Corresponds to ECMA-376 ST_ShapeType \'doubleWave\'
1317+ | SSTDownArrow
1318+ -- ^ @DOWN_ARROW@
1319+ -- Down arrow shape. Corresponds to ECMA-376 ST_ShapeType \'downArrow\'
1320+ | SSTDownArrowCallout
1321+ -- ^ @DOWN_ARROW_CALLOUT@
1322+ -- Callout down arrow shape. Corresponds to ECMA-376 ST_ShapeType
1323+ -- \'downArrowCallout\'
1324+ | SSTFoldedCorner
1325+ -- ^ @FOLDED_CORNER@
1326+ -- Folded corner shape. Corresponds to ECMA-376 ST_ShapeType
1327+ -- \'foldedCorner\'
1328+ | SSTFrame
1329+ -- ^ @FRAME@
1330+ -- Frame shape. Corresponds to ECMA-376 ST_ShapeType \'frame\'
1331+ | SSTHalfFrame
1332+ -- ^ @HALF_FRAME@
1333+ -- Half frame shape. Corresponds to ECMA-376 ST_ShapeType \'halfFrame\'
1334+ | SSTHeart
1335+ -- ^ @HEART@
1336+ -- Heart shape. Corresponds to ECMA-376 ST_ShapeType \'heart\'
1337+ | SSTHeptagon
1338+ -- ^ @HEPTAGON@
1339+ -- Heptagon shape. Corresponds to ECMA-376 ST_ShapeType \'heptagon\'
1340+ | SSTHexagon
1341+ -- ^ @HEXAGON@
1342+ -- Hexagon shape. Corresponds to ECMA-376 ST_ShapeType \'hexagon\'
1343+ | SSTHomePlate
1344+ -- ^ @HOME_PLATE@
1345+ -- Home plate shape. Corresponds to ECMA-376 ST_ShapeType \'homePlate\'
1346+ | SSTHorizontalScroll
1347+ -- ^ @HORIZONTAL_SCROLL@
1348+ -- Horizontal scroll shape. Corresponds to ECMA-376 ST_ShapeType
1349+ -- \'horizontalScroll\'
1350+ | SSTIrregularSeal1
1351+ -- ^ @IRREGULAR_SEAL_1@
1352+ -- Irregular seal 1 shape. Corresponds to ECMA-376 ST_ShapeType
1353+ -- \'irregularSeal1\'
1354+ | SSTIrregularSeal2
1355+ -- ^ @IRREGULAR_SEAL_2@
1356+ -- Irregular seal 2 shape. Corresponds to ECMA-376 ST_ShapeType
1357+ -- \'irregularSeal2\'
1358+ | SSTLeftArrow
1359+ -- ^ @LEFT_ARROW@
1360+ -- Left arrow shape. Corresponds to ECMA-376 ST_ShapeType \'leftArrow\'
1361+ | SSTLeftArrowCallout
1362+ -- ^ @LEFT_ARROW_CALLOUT@
1363+ -- Callout left arrow shape. Corresponds to ECMA-376 ST_ShapeType
1364+ -- \'leftArrowCallout\'
1365+ | SSTLeftBrace
1366+ -- ^ @LEFT_BRACE@
1367+ -- Left brace shape. Corresponds to ECMA-376 ST_ShapeType \'leftBrace\'
1368+ | SSTLeftBracket
1369+ -- ^ @LEFT_BRACKET@
1370+ -- Left bracket shape. Corresponds to ECMA-376 ST_ShapeType \'leftBracket\'
1371+ | SSTLeftRightArrow
1372+ -- ^ @LEFT_RIGHT_ARROW@
1373+ -- Left right arrow shape. Corresponds to ECMA-376 ST_ShapeType
1374+ -- \'leftRightArrow\'
1375+ | SSTLeftRightArrowCallout
1376+ -- ^ @LEFT_RIGHT_ARROW_CALLOUT@
1377+ -- Callout left right arrow shape. Corresponds to ECMA-376 ST_ShapeType
1378+ -- \'leftRightArrowCallout\'
1379+ | SSTLeftRightUpArrow
1380+ -- ^ @LEFT_RIGHT_UP_ARROW@
1381+ -- Left right up arrow shape. Corresponds to ECMA-376 ST_ShapeType
1382+ -- \'leftRightUpArrow\'
1383+ | SSTLeftUpArrow
1384+ -- ^ @LEFT_UP_ARROW@
1385+ -- Left up arrow shape. Corresponds to ECMA-376 ST_ShapeType
1386+ -- \'leftUpArrow\'
1387+ | SSTLightningBolt
1388+ -- ^ @LIGHTNING_BOLT@
1389+ -- Lightning bolt shape. Corresponds to ECMA-376 ST_ShapeType
1390+ -- \'lightningBolt\'
1391+ | SSTMathDivide
1392+ -- ^ @MATH_DIVIDE@
1393+ -- Divide math shape. Corresponds to ECMA-376 ST_ShapeType \'mathDivide\'
1394+ | SSTMathEqual
1395+ -- ^ @MATH_EQUAL@
1396+ -- Equal math shape. Corresponds to ECMA-376 ST_ShapeType \'mathEqual\'
1397+ | SSTMathMinus
1398+ -- ^ @MATH_MINUS@
1399+ -- Minus math shape. Corresponds to ECMA-376 ST_ShapeType \'mathMinus\'
1400+ | SSTMathMultiply
1401+ -- ^ @MATH_MULTIPLY@
1402+ -- Multiply math shape. Corresponds to ECMA-376 ST_ShapeType
1403+ -- \'mathMultiply\'
1404+ | SSTMathNotEqual
1405+ -- ^ @MATH_NOT_EQUAL@
1406+ -- Not equal math shape. Corresponds to ECMA-376 ST_ShapeType
1407+ -- \'mathNotEqual\'
1408+ | SSTMathPlus
1409+ -- ^ @MATH_PLUS@
1410+ -- Plus math shape. Corresponds to ECMA-376 ST_ShapeType \'mathPlus\'
1411+ | SSTMoon
1412+ -- ^ @MOON@
1413+ -- Moon shape. Corresponds to ECMA-376 ST_ShapeType \'moon\'
1414+ | SSTNoSmoking
1415+ -- ^ @NO_SMOKING@
1416+ -- No smoking shape. Corresponds to ECMA-376 ST_ShapeType \'noSmoking\'
1417+ | SSTNotchedRightArrow
1418+ -- ^ @NOTCHED_RIGHT_ARROW@
1419+ -- Notched right arrow shape. Corresponds to ECMA-376 ST_ShapeType
1420+ -- \'notchedRightArrow\'
1421+ | SSTOctagon
1422+ -- ^ @OCTAGON@
1423+ -- Octagon shape. Corresponds to ECMA-376 ST_ShapeType \'octagon\'
1424+ | SSTParallelogram
1425+ -- ^ @PARALLELOGRAM@
1426+ -- Parallelogram shape. Corresponds to ECMA-376 ST_ShapeType
1427+ -- \'parallelogram\'
1428+ | SSTPentagon
1429+ -- ^ @PENTAGON@
1430+ -- Pentagon shape. Corresponds to ECMA-376 ST_ShapeType \'pentagon\'
1431+ | SSTPie
1432+ -- ^ @PIE@
1433+ -- Pie shape. Corresponds to ECMA-376 ST_ShapeType \'pie\'
1434+ | SSTPlaque
1435+ -- ^ @PLAQUE@
1436+ -- Plaque shape. Corresponds to ECMA-376 ST_ShapeType \'plaque\'
1437+ | SSTPlus
1438+ -- ^ @PLUS@
1439+ -- Plus shape. Corresponds to ECMA-376 ST_ShapeType \'plus\'
1440+ | SSTQuadArrow
1441+ -- ^ @QUAD_ARROW@
1442+ -- Quad-arrow shape. Corresponds to ECMA-376 ST_ShapeType \'quadArrow\'
1443+ | SSTQuadArrowCallout
1444+ -- ^ @QUAD_ARROW_CALLOUT@
1445+ -- Callout quad-arrow shape. Corresponds to ECMA-376 ST_ShapeType
1446+ -- \'quadArrowCallout\'
1447+ | SSTRibbon
1448+ -- ^ @RIBBON@
1449+ -- Ribbon shape. Corresponds to ECMA-376 ST_ShapeType \'ribbon\'
1450+ | SSTRibbon2
1451+ -- ^ @RIBBON_2@
1452+ -- Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType \'ribbon2\'
1453+ | SSTRightArrow
1454+ -- ^ @RIGHT_ARROW@
1455+ -- Right arrow shape. Corresponds to ECMA-376 ST_ShapeType \'rightArrow\'
1456+ | SSTRightArrowCallout
1457+ -- ^ @RIGHT_ARROW_CALLOUT@
1458+ -- Callout right arrow shape. Corresponds to ECMA-376 ST_ShapeType
1459+ -- \'rightArrowCallout\'
1460+ | SSTRightBrace
1461+ -- ^ @RIGHT_BRACE@
1462+ -- Right brace shape. Corresponds to ECMA-376 ST_ShapeType \'rightBrace\'
1463+ | SSTRightBracket
1464+ -- ^ @RIGHT_BRACKET@
1465+ -- Right bracket shape. Corresponds to ECMA-376 ST_ShapeType
1466+ -- \'rightBracket\'
1467+ | SSTRound1Rectangle
1468+ -- ^ @ROUND_1_RECTANGLE@
1469+ -- One round corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType
1470+ -- \'round1Rect\'
1471+ | SSTRound2DiagonalRectangle
1472+ -- ^ @ROUND_2_DIAGONAL_RECTANGLE@
1473+ -- Two diagonal round corner rectangle shape. Corresponds to ECMA-376
1474+ -- ST_ShapeType \'round2DiagRect\'
1475+ | SSTRound2SameRectangle
1476+ -- ^ @ROUND_2_SAME_RECTANGLE@
1477+ -- Two same-side round corner rectangle shape. Corresponds to ECMA-376
1478+ -- ST_ShapeType \'round2SameRect\'
1479+ | SSTRightTriangle
1480+ -- ^ @RIGHT_TRIANGLE@
1481+ -- Right triangle shape. Corresponds to ECMA-376 ST_ShapeType
1482+ -- \'rtTriangle\'
1483+ | SSTSmileyFace
1484+ -- ^ @SMILEY_FACE@
1485+ -- Smiley face shape. Corresponds to ECMA-376 ST_ShapeType \'smileyFace\'
1486+ | SSTSnip1Rectangle
1487+ -- ^ @SNIP_1_RECTANGLE@
1488+ -- One snip corner rectangle shape. Corresponds to ECMA-376 ST_ShapeType
1489+ -- \'snip1Rect\'
1490+ | SSTSnip2DiagonalRectangle
1491+ -- ^ @SNIP_2_DIAGONAL_RECTANGLE@
1492+ -- Two diagonal snip corner rectangle shape. Corresponds to ECMA-376
1493+ -- ST_ShapeType \'snip2DiagRect\'
1494+ | SSTSnip2SameRectangle
1495+ -- ^ @SNIP_2_SAME_RECTANGLE@
1496+ -- Two same-side snip corner rectangle shape. Corresponds to ECMA-376
1497+ -- ST_ShapeType \'snip2SameRect\'
1498+ | SSTSnipRoundRectangle
1499+ -- ^ @SNIP_ROUND_RECTANGLE@
1500+ -- One snip one round corner rectangle shape. Corresponds to ECMA-376
1501+ -- ST_ShapeType \'snipRoundRect\'
1502+ | SSTStar10
1503+ -- ^ @STAR_10@
1504+ -- Ten pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star10\'
1505+ | SSTStar12
1506+ -- ^ @STAR_12@
1507+ -- Twelve pointed star shape. Corresponds to ECMA-376 ST_ShapeType
1508+ -- \'star12\'
1509+ | SSTStar16
1510+ -- ^ @STAR_16@
1511+ -- Sixteen pointed star shape. Corresponds to ECMA-376 ST_ShapeType
1512+ -- \'star16\'
1513+ | SSTStar24
1514+ -- ^ @STAR_24@
1515+ -- Twenty four pointed star shape. Corresponds to ECMA-376 ST_ShapeType
1516+ -- \'star24\'
1517+ | SSTStar32
1518+ -- ^ @STAR_32@
1519+ -- Thirty two pointed star shape. Corresponds to ECMA-376 ST_ShapeType
1520+ -- \'star32\'
1521+ | SSTStar4
1522+ -- ^ @STAR_4@
1523+ -- Four pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star4\'
1524+ | SSTStar5
1525+ -- ^ @STAR_5@
1526+ -- Five pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star5\'
1527+ | SSTStar6
1528+ -- ^ @STAR_6@
1529+ -- Six pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star6\'
1530+ | SSTStar7
1531+ -- ^ @STAR_7@
1532+ -- Seven pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star7\'
1533+ | SSTStar8
1534+ -- ^ @STAR_8@
1535+ -- Eight pointed star shape. Corresponds to ECMA-376 ST_ShapeType \'star8\'
1536+ | SSTStripedRightArrow
1537+ -- ^ @STRIPED_RIGHT_ARROW@
1538+ -- Striped right arrow shape. Corresponds to ECMA-376 ST_ShapeType
1539+ -- \'stripedRightArrow\'
1540+ | SSTSun
1541+ -- ^ @SUN@
1542+ -- Sun shape. Corresponds to ECMA-376 ST_ShapeType \'sun\'
1543+ | SSTTrapezoid
1544+ -- ^ @TRAPEZOID@
1545+ -- Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType \'trapezoid\'
1546+ | SSTTriangle
1547+ -- ^ @TRIANGLE@
1548+ -- Triangle shape. Corresponds to ECMA-376 ST_ShapeType \'triangle\'
1549+ | SSTUpArrow
1550+ -- ^ @UP_ARROW@
1551+ -- Up arrow shape. Corresponds to ECMA-376 ST_ShapeType \'upArrow\'
1552+ | SSTUpArrowCallout
1553+ -- ^ @UP_ARROW_CALLOUT@
1554+ -- Callout up arrow shape. Corresponds to ECMA-376 ST_ShapeType
1555+ -- \'upArrowCallout\'
1556+ | SSTUpDownArrow
1557+ -- ^ @UP_DOWN_ARROW@
1558+ -- Up down arrow shape. Corresponds to ECMA-376 ST_ShapeType
1559+ -- \'upDownArrow\'
1560+ | SSTUturnArrow
1561+ -- ^ @UTURN_ARROW@
1562+ -- U-turn arrow shape. Corresponds to ECMA-376 ST_ShapeType \'uturnArrow\'
1563+ | SSTVerticalScroll
1564+ -- ^ @VERTICAL_SCROLL@
1565+ -- Vertical scroll shape. Corresponds to ECMA-376 ST_ShapeType
1566+ -- \'verticalScroll\'
1567+ | SSTWave
1568+ -- ^ @WAVE@
1569+ -- Wave shape. Corresponds to ECMA-376 ST_ShapeType \'wave\'
1570+ | SSTWedgeEllipseCallout
1571+ -- ^ @WEDGE_ELLIPSE_CALLOUT@
1572+ -- Callout wedge ellipse shape. Corresponds to ECMA-376 ST_ShapeType
1573+ -- \'wedgeEllipseCallout\'
1574+ | SSTWedgeRectangleCallout
1575+ -- ^ @WEDGE_RECTANGLE_CALLOUT@
1576+ -- Callout wedge rectangle shape. Corresponds to ECMA-376 ST_ShapeType
1577+ -- \'wedgeRectCallout\'
1578+ | SSTWedgeRoundRectangleCallout
1579+ -- ^ @WEDGE_ROUND_RECTANGLE_CALLOUT@
1580+ -- Callout wedge round rectangle shape. Corresponds to ECMA-376
1581+ -- ST_ShapeType \'wedgeRoundRectCallout\'
1582+ | SSTFlowChartAlternateProcess
1583+ -- ^ @FLOW_CHART_ALTERNATE_PROCESS@
1584+ -- Alternate process flow shape. Corresponds to ECMA-376 ST_ShapeType
1585+ -- \'flowChartAlternateProcess\'
1586+ | SSTFlowChartCollate
1587+ -- ^ @FLOW_CHART_COLLATE@
1588+ -- Collate flow shape. Corresponds to ECMA-376 ST_ShapeType
1589+ -- \'flowChartCollate\'
1590+ | SSTFlowChartConnector
1591+ -- ^ @FLOW_CHART_CONNECTOR@
1592+ -- Connector flow shape. Corresponds to ECMA-376 ST_ShapeType
1593+ -- \'flowChartConnector\'
1594+ | SSTFlowChartDecision
1595+ -- ^ @FLOW_CHART_DECISION@
1596+ -- Decision flow shape. Corresponds to ECMA-376 ST_ShapeType
1597+ -- \'flowChartDecision\'
1598+ | SSTFlowChartDelay
1599+ -- ^ @FLOW_CHART_DELAY@
1600+ -- Delay flow shape. Corresponds to ECMA-376 ST_ShapeType
1601+ -- \'flowChartDelay\'
1602+ | SSTFlowChartDisplay
1603+ -- ^ @FLOW_CHART_DISPLAY@
1604+ -- Display flow shape. Corresponds to ECMA-376 ST_ShapeType
1605+ -- \'flowChartDisplay\'
1606+ | SSTFlowChartDocument
1607+ -- ^ @FLOW_CHART_DOCUMENT@
1608+ -- Document flow shape. Corresponds to ECMA-376 ST_ShapeType
1609+ -- \'flowChartDocument\'
1610+ | SSTFlowChartExtract
1611+ -- ^ @FLOW_CHART_EXTRACT@
1612+ -- Extract flow shape. Corresponds to ECMA-376 ST_ShapeType
1613+ -- \'flowChartExtract\'
1614+ | SSTFlowChartInputOutput
1615+ -- ^ @FLOW_CHART_INPUT_OUTPUT@
1616+ -- Input output flow shape. Corresponds to ECMA-376 ST_ShapeType
1617+ -- \'flowChartInputOutput\'
1618+ | SSTFlowChartInternalStorage
1619+ -- ^ @FLOW_CHART_INTERNAL_STORAGE@
1620+ -- Internal storage flow shape. Corresponds to ECMA-376 ST_ShapeType
1621+ -- \'flowChartInternalStorage\'
1622+ | SSTFlowChartMagneticDisk
1623+ -- ^ @FLOW_CHART_MAGNETIC_DISK@
1624+ -- Magnetic disk flow shape. Corresponds to ECMA-376 ST_ShapeType
1625+ -- \'flowChartMagneticDisk\'
1626+ | SSTFlowChartMagneticDrum
1627+ -- ^ @FLOW_CHART_MAGNETIC_DRUM@
1628+ -- Magnetic drum flow shape. Corresponds to ECMA-376 ST_ShapeType
1629+ -- \'flowChartMagneticDrum\'
1630+ | SSTFlowChartMagneticTape
1631+ -- ^ @FLOW_CHART_MAGNETIC_TAPE@
1632+ -- Magnetic tape flow shape. Corresponds to ECMA-376 ST_ShapeType
1633+ -- \'flowChartMagneticTape\'
1634+ | SSTFlowChartManualInput
1635+ -- ^ @FLOW_CHART_MANUAL_INPUT@
1636+ -- Manual input flow shape. Corresponds to ECMA-376 ST_ShapeType
1637+ -- \'flowChartManualInput\'
1638+ | SSTFlowChartManualOperation
1639+ -- ^ @FLOW_CHART_MANUAL_OPERATION@
1640+ -- Manual operation flow shape. Corresponds to ECMA-376 ST_ShapeType
1641+ -- \'flowChartManualOperation\'
1642+ | SSTFlowChartMerge
1643+ -- ^ @FLOW_CHART_MERGE@
1644+ -- Merge flow shape. Corresponds to ECMA-376 ST_ShapeType
1645+ -- \'flowChartMerge\'
1646+ | SSTFlowChartMultidocument
1647+ -- ^ @FLOW_CHART_MULTIDOCUMENT@
1648+ -- Multi-document flow shape. Corresponds to ECMA-376 ST_ShapeType
1649+ -- \'flowChartMultidocument\'
1650+ | SSTFlowChartOfflineStorage
1651+ -- ^ @FLOW_CHART_OFFLINE_STORAGE@
1652+ -- Offline storage flow shape. Corresponds to ECMA-376 ST_ShapeType
1653+ -- \'flowChartOfflineStorage\'
1654+ | SSTFlowChartOffpageConnector
1655+ -- ^ @FLOW_CHART_OFFPAGE_CONNECTOR@
1656+ -- Off-page connector flow shape. Corresponds to ECMA-376 ST_ShapeType
1657+ -- \'flowChartOffpageConnector\'
1658+ | SSTFlowChartOnlineStorage
1659+ -- ^ @FLOW_CHART_ONLINE_STORAGE@
1660+ -- Online storage flow shape. Corresponds to ECMA-376 ST_ShapeType
1661+ -- \'flowChartOnlineStorage\'
1662+ | SSTFlowChartOr
1663+ -- ^ @FLOW_CHART_OR@
1664+ -- Or flow shape. Corresponds to ECMA-376 ST_ShapeType \'flowChartOr\'
1665+ | SSTFlowChartPredefinedProcess
1666+ -- ^ @FLOW_CHART_PREDEFINED_PROCESS@
1667+ -- Predefined process flow shape. Corresponds to ECMA-376 ST_ShapeType
1668+ -- \'flowChartPredefinedProcess\'
1669+ | SSTFlowChartPreparation
1670+ -- ^ @FLOW_CHART_PREPARATION@
1671+ -- Preparation flow shape. Corresponds to ECMA-376 ST_ShapeType
1672+ -- \'flowChartPreparation\'
1673+ | SSTFlowChartProcess
1674+ -- ^ @FLOW_CHART_PROCESS@
1675+ -- Process flow shape. Corresponds to ECMA-376 ST_ShapeType
1676+ -- \'flowChartProcess\'
1677+ | SSTFlowChartPunchedCard
1678+ -- ^ @FLOW_CHART_PUNCHED_CARD@
1679+ -- Punched card flow shape. Corresponds to ECMA-376 ST_ShapeType
1680+ -- \'flowChartPunchedCard\'
1681+ | SSTFlowChartPunchedTape
1682+ -- ^ @FLOW_CHART_PUNCHED_TAPE@
1683+ -- Punched tape flow shape. Corresponds to ECMA-376 ST_ShapeType
1684+ -- \'flowChartPunchedTape\'
1685+ | SSTFlowChartSort
1686+ -- ^ @FLOW_CHART_SORT@
1687+ -- Sort flow shape. Corresponds to ECMA-376 ST_ShapeType \'flowChartSort\'
1688+ | SSTFlowChartSummingJunction
1689+ -- ^ @FLOW_CHART_SUMMING_JUNCTION@
1690+ -- Summing junction flow shape. Corresponds to ECMA-376 ST_ShapeType
1691+ -- \'flowChartSummingJunction\'
1692+ | SSTFlowChartTerminator
1693+ -- ^ @FLOW_CHART_TERMINATOR@
1694+ -- Terminator flow shape. Corresponds to ECMA-376 ST_ShapeType
1695+ -- \'flowChartTerminator\'
1696+ | SSTArrowEast
1697+ -- ^ @ARROW_EAST@
1698+ -- East arrow shape.
1699+ | SSTArrowNorthEast
1700+ -- ^ @ARROW_NORTH_EAST@
1701+ -- Northeast arrow shape.
1702+ | SSTArrowNorth
1703+ -- ^ @ARROW_NORTH@
1704+ -- North arrow shape.
1705+ | SSTSpeech
1706+ -- ^ @SPEECH@
1707+ -- Speech shape.
1708+ | SSTStarburst
1709+ -- ^ @STARBURST@
1710+ -- Star burst shape.
1711+ | SSTTeardrop
1712+ -- ^ @TEARDROP@
1713+ -- Teardrop shape. Corresponds to ECMA-376 ST_ShapeType \'teardrop\'
1714+ | SSTEllipseRibbon
1715+ -- ^ @ELLIPSE_RIBBON@
1716+ -- Ellipse ribbon shape. Corresponds to ECMA-376 ST_ShapeType
1717+ -- \'ellipseRibbon\'
1718+ | SSTEllipseRibbon2
1719+ -- ^ @ELLIPSE_RIBBON_2@
1720+ -- Ellipse ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType
1721+ -- \'ellipseRibbon2\'
1722+ | SSTCloudCallout
1723+ -- ^ @CLOUD_CALLOUT@
1724+ -- Callout cloud shape. Corresponds to ECMA-376 ST_ShapeType
1725+ -- \'cloudCallout\'
1726+ | SSTCustom
1727+ -- ^ @CUSTOM@
1728+ -- Custom shape.
1729+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
1730+
1731+instance Hashable ShapeShapeType
1732+
1733+instance FromHttpApiData ShapeShapeType where
1734+ parseQueryParam = \case
1735+ "TYPE_UNSPECIFIED" -> Right SSTTypeUnspecified
1736+ "TEXT_BOX" -> Right SSTTextBox
1737+ "RECTANGLE" -> Right SSTRectangle
1738+ "ROUND_RECTANGLE" -> Right SSTRoundRectangle
1739+ "ELLIPSE" -> Right SSTEllipse
1740+ "ARC" -> Right SSTArc
1741+ "BENT_ARROW" -> Right SSTBentArrow
1742+ "BENT_UP_ARROW" -> Right SSTBentUpArrow
1743+ "BEVEL" -> Right SSTBevel
1744+ "BLOCK_ARC" -> Right SSTBlockArc
1745+ "BRACE_PAIR" -> Right SSTBracePair
1746+ "BRACKET_PAIR" -> Right SSTBracketPair
1747+ "CAN" -> Right SSTCan
1748+ "CHEVRON" -> Right SSTChevron
1749+ "CHORD" -> Right SSTChord
1750+ "CLOUD" -> Right SSTCloud
1751+ "CORNER" -> Right SSTCorner
1752+ "CUBE" -> Right SSTCube
1753+ "CURVED_DOWN_ARROW" -> Right SSTCurvedDownArrow
1754+ "CURVED_LEFT_ARROW" -> Right SSTCurvedLeftArrow
1755+ "CURVED_RIGHT_ARROW" -> Right SSTCurvedRightArrow
1756+ "CURVED_UP_ARROW" -> Right SSTCurvedUpArrow
1757+ "DECAGON" -> Right SSTDecagon
1758+ "DIAGONAL_STRIPE" -> Right SSTDiagonalStripe
1759+ "DIAMOND" -> Right SSTDiamond
1760+ "DODECAGON" -> Right SSTDodecagon
1761+ "DONUT" -> Right SSTDonut
1762+ "DOUBLE_WAVE" -> Right SSTDoubleWave
1763+ "DOWN_ARROW" -> Right SSTDownArrow
1764+ "DOWN_ARROW_CALLOUT" -> Right SSTDownArrowCallout
1765+ "FOLDED_CORNER" -> Right SSTFoldedCorner
1766+ "FRAME" -> Right SSTFrame
1767+ "HALF_FRAME" -> Right SSTHalfFrame
1768+ "HEART" -> Right SSTHeart
1769+ "HEPTAGON" -> Right SSTHeptagon
1770+ "HEXAGON" -> Right SSTHexagon
1771+ "HOME_PLATE" -> Right SSTHomePlate
1772+ "HORIZONTAL_SCROLL" -> Right SSTHorizontalScroll
1773+ "IRREGULAR_SEAL_1" -> Right SSTIrregularSeal1
1774+ "IRREGULAR_SEAL_2" -> Right SSTIrregularSeal2
1775+ "LEFT_ARROW" -> Right SSTLeftArrow
1776+ "LEFT_ARROW_CALLOUT" -> Right SSTLeftArrowCallout
1777+ "LEFT_BRACE" -> Right SSTLeftBrace
1778+ "LEFT_BRACKET" -> Right SSTLeftBracket
1779+ "LEFT_RIGHT_ARROW" -> Right SSTLeftRightArrow
1780+ "LEFT_RIGHT_ARROW_CALLOUT" -> Right SSTLeftRightArrowCallout
1781+ "LEFT_RIGHT_UP_ARROW" -> Right SSTLeftRightUpArrow
1782+ "LEFT_UP_ARROW" -> Right SSTLeftUpArrow
1783+ "LIGHTNING_BOLT" -> Right SSTLightningBolt
1784+ "MATH_DIVIDE" -> Right SSTMathDivide
1785+ "MATH_EQUAL" -> Right SSTMathEqual
1786+ "MATH_MINUS" -> Right SSTMathMinus
1787+ "MATH_MULTIPLY" -> Right SSTMathMultiply
1788+ "MATH_NOT_EQUAL" -> Right SSTMathNotEqual
1789+ "MATH_PLUS" -> Right SSTMathPlus
1790+ "MOON" -> Right SSTMoon
1791+ "NO_SMOKING" -> Right SSTNoSmoking
1792+ "NOTCHED_RIGHT_ARROW" -> Right SSTNotchedRightArrow
1793+ "OCTAGON" -> Right SSTOctagon
1794+ "PARALLELOGRAM" -> Right SSTParallelogram
1795+ "PENTAGON" -> Right SSTPentagon
1796+ "PIE" -> Right SSTPie
1797+ "PLAQUE" -> Right SSTPlaque
1798+ "PLUS" -> Right SSTPlus
1799+ "QUAD_ARROW" -> Right SSTQuadArrow
1800+ "QUAD_ARROW_CALLOUT" -> Right SSTQuadArrowCallout
1801+ "RIBBON" -> Right SSTRibbon
1802+ "RIBBON_2" -> Right SSTRibbon2
1803+ "RIGHT_ARROW" -> Right SSTRightArrow
1804+ "RIGHT_ARROW_CALLOUT" -> Right SSTRightArrowCallout
1805+ "RIGHT_BRACE" -> Right SSTRightBrace
1806+ "RIGHT_BRACKET" -> Right SSTRightBracket
1807+ "ROUND_1_RECTANGLE" -> Right SSTRound1Rectangle
1808+ "ROUND_2_DIAGONAL_RECTANGLE" -> Right SSTRound2DiagonalRectangle
1809+ "ROUND_2_SAME_RECTANGLE" -> Right SSTRound2SameRectangle
1810+ "RIGHT_TRIANGLE" -> Right SSTRightTriangle
1811+ "SMILEY_FACE" -> Right SSTSmileyFace
1812+ "SNIP_1_RECTANGLE" -> Right SSTSnip1Rectangle
1813+ "SNIP_2_DIAGONAL_RECTANGLE" -> Right SSTSnip2DiagonalRectangle
1814+ "SNIP_2_SAME_RECTANGLE" -> Right SSTSnip2SameRectangle
1815+ "SNIP_ROUND_RECTANGLE" -> Right SSTSnipRoundRectangle
1816+ "STAR_10" -> Right SSTStar10
1817+ "STAR_12" -> Right SSTStar12
1818+ "STAR_16" -> Right SSTStar16
1819+ "STAR_24" -> Right SSTStar24
1820+ "STAR_32" -> Right SSTStar32
1821+ "STAR_4" -> Right SSTStar4
1822+ "STAR_5" -> Right SSTStar5
1823+ "STAR_6" -> Right SSTStar6
1824+ "STAR_7" -> Right SSTStar7
1825+ "STAR_8" -> Right SSTStar8
1826+ "STRIPED_RIGHT_ARROW" -> Right SSTStripedRightArrow
1827+ "SUN" -> Right SSTSun
1828+ "TRAPEZOID" -> Right SSTTrapezoid
1829+ "TRIANGLE" -> Right SSTTriangle
1830+ "UP_ARROW" -> Right SSTUpArrow
1831+ "UP_ARROW_CALLOUT" -> Right SSTUpArrowCallout
1832+ "UP_DOWN_ARROW" -> Right SSTUpDownArrow
1833+ "UTURN_ARROW" -> Right SSTUturnArrow
1834+ "VERTICAL_SCROLL" -> Right SSTVerticalScroll
1835+ "WAVE" -> Right SSTWave
1836+ "WEDGE_ELLIPSE_CALLOUT" -> Right SSTWedgeEllipseCallout
1837+ "WEDGE_RECTANGLE_CALLOUT" -> Right SSTWedgeRectangleCallout
1838+ "WEDGE_ROUND_RECTANGLE_CALLOUT" -> Right SSTWedgeRoundRectangleCallout
1839+ "FLOW_CHART_ALTERNATE_PROCESS" -> Right SSTFlowChartAlternateProcess
1840+ "FLOW_CHART_COLLATE" -> Right SSTFlowChartCollate
1841+ "FLOW_CHART_CONNECTOR" -> Right SSTFlowChartConnector
1842+ "FLOW_CHART_DECISION" -> Right SSTFlowChartDecision
1843+ "FLOW_CHART_DELAY" -> Right SSTFlowChartDelay
1844+ "FLOW_CHART_DISPLAY" -> Right SSTFlowChartDisplay
1845+ "FLOW_CHART_DOCUMENT" -> Right SSTFlowChartDocument
1846+ "FLOW_CHART_EXTRACT" -> Right SSTFlowChartExtract
1847+ "FLOW_CHART_INPUT_OUTPUT" -> Right SSTFlowChartInputOutput
1848+ "FLOW_CHART_INTERNAL_STORAGE" -> Right SSTFlowChartInternalStorage
1849+ "FLOW_CHART_MAGNETIC_DISK" -> Right SSTFlowChartMagneticDisk
1850+ "FLOW_CHART_MAGNETIC_DRUM" -> Right SSTFlowChartMagneticDrum
1851+ "FLOW_CHART_MAGNETIC_TAPE" -> Right SSTFlowChartMagneticTape
1852+ "FLOW_CHART_MANUAL_INPUT" -> Right SSTFlowChartManualInput
1853+ "FLOW_CHART_MANUAL_OPERATION" -> Right SSTFlowChartManualOperation
1854+ "FLOW_CHART_MERGE" -> Right SSTFlowChartMerge
1855+ "FLOW_CHART_MULTIDOCUMENT" -> Right SSTFlowChartMultidocument
1856+ "FLOW_CHART_OFFLINE_STORAGE" -> Right SSTFlowChartOfflineStorage
1857+ "FLOW_CHART_OFFPAGE_CONNECTOR" -> Right SSTFlowChartOffpageConnector
1858+ "FLOW_CHART_ONLINE_STORAGE" -> Right SSTFlowChartOnlineStorage
1859+ "FLOW_CHART_OR" -> Right SSTFlowChartOr
1860+ "FLOW_CHART_PREDEFINED_PROCESS" -> Right SSTFlowChartPredefinedProcess
1861+ "FLOW_CHART_PREPARATION" -> Right SSTFlowChartPreparation
1862+ "FLOW_CHART_PROCESS" -> Right SSTFlowChartProcess
1863+ "FLOW_CHART_PUNCHED_CARD" -> Right SSTFlowChartPunchedCard
1864+ "FLOW_CHART_PUNCHED_TAPE" -> Right SSTFlowChartPunchedTape
1865+ "FLOW_CHART_SORT" -> Right SSTFlowChartSort
1866+ "FLOW_CHART_SUMMING_JUNCTION" -> Right SSTFlowChartSummingJunction
1867+ "FLOW_CHART_TERMINATOR" -> Right SSTFlowChartTerminator
1868+ "ARROW_EAST" -> Right SSTArrowEast
1869+ "ARROW_NORTH_EAST" -> Right SSTArrowNorthEast
1870+ "ARROW_NORTH" -> Right SSTArrowNorth
1871+ "SPEECH" -> Right SSTSpeech
1872+ "STARBURST" -> Right SSTStarburst
1873+ "TEARDROP" -> Right SSTTeardrop
1874+ "ELLIPSE_RIBBON" -> Right SSTEllipseRibbon
1875+ "ELLIPSE_RIBBON_2" -> Right SSTEllipseRibbon2
1876+ "CLOUD_CALLOUT" -> Right SSTCloudCallout
1877+ "CUSTOM" -> Right SSTCustom
1878+ x -> Left ("Unable to parse ShapeShapeType from: " <> x)
1879+
1880+instance ToHttpApiData ShapeShapeType where
1881+ toQueryParam = \case
1882+ SSTTypeUnspecified -> "TYPE_UNSPECIFIED"
1883+ SSTTextBox -> "TEXT_BOX"
1884+ SSTRectangle -> "RECTANGLE"
1885+ SSTRoundRectangle -> "ROUND_RECTANGLE"
1886+ SSTEllipse -> "ELLIPSE"
1887+ SSTArc -> "ARC"
1888+ SSTBentArrow -> "BENT_ARROW"
1889+ SSTBentUpArrow -> "BENT_UP_ARROW"
1890+ SSTBevel -> "BEVEL"
1891+ SSTBlockArc -> "BLOCK_ARC"
1892+ SSTBracePair -> "BRACE_PAIR"
1893+ SSTBracketPair -> "BRACKET_PAIR"
1894+ SSTCan -> "CAN"
1895+ SSTChevron -> "CHEVRON"
1896+ SSTChord -> "CHORD"
1897+ SSTCloud -> "CLOUD"
1898+ SSTCorner -> "CORNER"
1899+ SSTCube -> "CUBE"
1900+ SSTCurvedDownArrow -> "CURVED_DOWN_ARROW"
1901+ SSTCurvedLeftArrow -> "CURVED_LEFT_ARROW"
1902+ SSTCurvedRightArrow -> "CURVED_RIGHT_ARROW"
1903+ SSTCurvedUpArrow -> "CURVED_UP_ARROW"
1904+ SSTDecagon -> "DECAGON"
1905+ SSTDiagonalStripe -> "DIAGONAL_STRIPE"
1906+ SSTDiamond -> "DIAMOND"
1907+ SSTDodecagon -> "DODECAGON"
1908+ SSTDonut -> "DONUT"
1909+ SSTDoubleWave -> "DOUBLE_WAVE"
1910+ SSTDownArrow -> "DOWN_ARROW"
1911+ SSTDownArrowCallout -> "DOWN_ARROW_CALLOUT"
1912+ SSTFoldedCorner -> "FOLDED_CORNER"
1913+ SSTFrame -> "FRAME"
1914+ SSTHalfFrame -> "HALF_FRAME"
1915+ SSTHeart -> "HEART"
1916+ SSTHeptagon -> "HEPTAGON"
1917+ SSTHexagon -> "HEXAGON"
1918+ SSTHomePlate -> "HOME_PLATE"
1919+ SSTHorizontalScroll -> "HORIZONTAL_SCROLL"
1920+ SSTIrregularSeal1 -> "IRREGULAR_SEAL_1"
1921+ SSTIrregularSeal2 -> "IRREGULAR_SEAL_2"
1922+ SSTLeftArrow -> "LEFT_ARROW"
1923+ SSTLeftArrowCallout -> "LEFT_ARROW_CALLOUT"
1924+ SSTLeftBrace -> "LEFT_BRACE"
1925+ SSTLeftBracket -> "LEFT_BRACKET"
1926+ SSTLeftRightArrow -> "LEFT_RIGHT_ARROW"
1927+ SSTLeftRightArrowCallout -> "LEFT_RIGHT_ARROW_CALLOUT"
1928+ SSTLeftRightUpArrow -> "LEFT_RIGHT_UP_ARROW"
1929+ SSTLeftUpArrow -> "LEFT_UP_ARROW"
1930+ SSTLightningBolt -> "LIGHTNING_BOLT"
1931+ SSTMathDivide -> "MATH_DIVIDE"
1932+ SSTMathEqual -> "MATH_EQUAL"
1933+ SSTMathMinus -> "MATH_MINUS"
1934+ SSTMathMultiply -> "MATH_MULTIPLY"
1935+ SSTMathNotEqual -> "MATH_NOT_EQUAL"
1936+ SSTMathPlus -> "MATH_PLUS"
1937+ SSTMoon -> "MOON"
1938+ SSTNoSmoking -> "NO_SMOKING"
1939+ SSTNotchedRightArrow -> "NOTCHED_RIGHT_ARROW"
1940+ SSTOctagon -> "OCTAGON"
1941+ SSTParallelogram -> "PARALLELOGRAM"
1942+ SSTPentagon -> "PENTAGON"
1943+ SSTPie -> "PIE"
1944+ SSTPlaque -> "PLAQUE"
1945+ SSTPlus -> "PLUS"
1946+ SSTQuadArrow -> "QUAD_ARROW"
1947+ SSTQuadArrowCallout -> "QUAD_ARROW_CALLOUT"
1948+ SSTRibbon -> "RIBBON"
1949+ SSTRibbon2 -> "RIBBON_2"
1950+ SSTRightArrow -> "RIGHT_ARROW"
1951+ SSTRightArrowCallout -> "RIGHT_ARROW_CALLOUT"
1952+ SSTRightBrace -> "RIGHT_BRACE"
1953+ SSTRightBracket -> "RIGHT_BRACKET"
1954+ SSTRound1Rectangle -> "ROUND_1_RECTANGLE"
1955+ SSTRound2DiagonalRectangle -> "ROUND_2_DIAGONAL_RECTANGLE"
1956+ SSTRound2SameRectangle -> "ROUND_2_SAME_RECTANGLE"
1957+ SSTRightTriangle -> "RIGHT_TRIANGLE"
1958+ SSTSmileyFace -> "SMILEY_FACE"
1959+ SSTSnip1Rectangle -> "SNIP_1_RECTANGLE"
1960+ SSTSnip2DiagonalRectangle -> "SNIP_2_DIAGONAL_RECTANGLE"
1961+ SSTSnip2SameRectangle -> "SNIP_2_SAME_RECTANGLE"
1962+ SSTSnipRoundRectangle -> "SNIP_ROUND_RECTANGLE"
1963+ SSTStar10 -> "STAR_10"
1964+ SSTStar12 -> "STAR_12"
1965+ SSTStar16 -> "STAR_16"
1966+ SSTStar24 -> "STAR_24"
1967+ SSTStar32 -> "STAR_32"
1968+ SSTStar4 -> "STAR_4"
1969+ SSTStar5 -> "STAR_5"
1970+ SSTStar6 -> "STAR_6"
1971+ SSTStar7 -> "STAR_7"
1972+ SSTStar8 -> "STAR_8"
1973+ SSTStripedRightArrow -> "STRIPED_RIGHT_ARROW"
1974+ SSTSun -> "SUN"
1975+ SSTTrapezoid -> "TRAPEZOID"
1976+ SSTTriangle -> "TRIANGLE"
1977+ SSTUpArrow -> "UP_ARROW"
1978+ SSTUpArrowCallout -> "UP_ARROW_CALLOUT"
1979+ SSTUpDownArrow -> "UP_DOWN_ARROW"
1980+ SSTUturnArrow -> "UTURN_ARROW"
1981+ SSTVerticalScroll -> "VERTICAL_SCROLL"
1982+ SSTWave -> "WAVE"
1983+ SSTWedgeEllipseCallout -> "WEDGE_ELLIPSE_CALLOUT"
1984+ SSTWedgeRectangleCallout -> "WEDGE_RECTANGLE_CALLOUT"
1985+ SSTWedgeRoundRectangleCallout -> "WEDGE_ROUND_RECTANGLE_CALLOUT"
1986+ SSTFlowChartAlternateProcess -> "FLOW_CHART_ALTERNATE_PROCESS"
1987+ SSTFlowChartCollate -> "FLOW_CHART_COLLATE"
1988+ SSTFlowChartConnector -> "FLOW_CHART_CONNECTOR"
1989+ SSTFlowChartDecision -> "FLOW_CHART_DECISION"
1990+ SSTFlowChartDelay -> "FLOW_CHART_DELAY"
1991+ SSTFlowChartDisplay -> "FLOW_CHART_DISPLAY"
1992+ SSTFlowChartDocument -> "FLOW_CHART_DOCUMENT"
1993+ SSTFlowChartExtract -> "FLOW_CHART_EXTRACT"
1994+ SSTFlowChartInputOutput -> "FLOW_CHART_INPUT_OUTPUT"
1995+ SSTFlowChartInternalStorage -> "FLOW_CHART_INTERNAL_STORAGE"
1996+ SSTFlowChartMagneticDisk -> "FLOW_CHART_MAGNETIC_DISK"
1997+ SSTFlowChartMagneticDrum -> "FLOW_CHART_MAGNETIC_DRUM"
1998+ SSTFlowChartMagneticTape -> "FLOW_CHART_MAGNETIC_TAPE"
1999+ SSTFlowChartManualInput -> "FLOW_CHART_MANUAL_INPUT"
2000+ SSTFlowChartManualOperation -> "FLOW_CHART_MANUAL_OPERATION"
2001+ SSTFlowChartMerge -> "FLOW_CHART_MERGE"
2002+ SSTFlowChartMultidocument -> "FLOW_CHART_MULTIDOCUMENT"
2003+ SSTFlowChartOfflineStorage -> "FLOW_CHART_OFFLINE_STORAGE"
2004+ SSTFlowChartOffpageConnector -> "FLOW_CHART_OFFPAGE_CONNECTOR"
2005+ SSTFlowChartOnlineStorage -> "FLOW_CHART_ONLINE_STORAGE"
2006+ SSTFlowChartOr -> "FLOW_CHART_OR"
2007+ SSTFlowChartPredefinedProcess -> "FLOW_CHART_PREDEFINED_PROCESS"
2008+ SSTFlowChartPreparation -> "FLOW_CHART_PREPARATION"
2009+ SSTFlowChartProcess -> "FLOW_CHART_PROCESS"
2010+ SSTFlowChartPunchedCard -> "FLOW_CHART_PUNCHED_CARD"
2011+ SSTFlowChartPunchedTape -> "FLOW_CHART_PUNCHED_TAPE"
2012+ SSTFlowChartSort -> "FLOW_CHART_SORT"
2013+ SSTFlowChartSummingJunction -> "FLOW_CHART_SUMMING_JUNCTION"
2014+ SSTFlowChartTerminator -> "FLOW_CHART_TERMINATOR"
2015+ SSTArrowEast -> "ARROW_EAST"
2016+ SSTArrowNorthEast -> "ARROW_NORTH_EAST"
2017+ SSTArrowNorth -> "ARROW_NORTH"
2018+ SSTSpeech -> "SPEECH"
2019+ SSTStarburst -> "STARBURST"
2020+ SSTTeardrop -> "TEARDROP"
2021+ SSTEllipseRibbon -> "ELLIPSE_RIBBON"
2022+ SSTEllipseRibbon2 -> "ELLIPSE_RIBBON_2"
2023+ SSTCloudCallout -> "CLOUD_CALLOUT"
2024+ SSTCustom -> "CUSTOM"
2025+
2026+instance FromJSON ShapeShapeType where
2027+ parseJSON = parseJSONText "ShapeShapeType"
2028+
2029+instance ToJSON ShapeShapeType where
2030+ toJSON = toJSONText
2031+
2032+-- | The outline property state. Updating the the outline on a page element
2033+-- will implicitly update this field to\`RENDERED\`, unless another value
2034+-- is specified in the same request. To have no outline on a page element,
2035+-- set this field to \`NOT_RENDERED\`. In this case, any other outline
2036+-- fields set in the same request will be ignored.
2037+data OutlinePropertyState
2038+ = OPSRendered
2039+ -- ^ @RENDERED@
2040+ -- If a property\'s state is RENDERED, then the element has the
2041+ -- corresponding property when rendered on a page. If the element is a
2042+ -- placeholder shape as determined by the placeholder field, and it
2043+ -- inherits from a placeholder shape, the corresponding field may be unset,
2044+ -- meaning that the property value is inherited from a parent placeholder.
2045+ -- If the element does not inherit, then the field will contain the
2046+ -- rendered value. This is the default value.
2047+ | OPSNotRendered
2048+ -- ^ @NOT_RENDERED@
2049+ -- If a property\'s state is NOT_RENDERED, then the element does not have
2050+ -- the corresponding property when rendered on a page. However, the field
2051+ -- may still be set so it can be inherited by child shapes. To remove a
2052+ -- property from a rendered element, set its property_state to
2053+ -- NOT_RENDERED.
2054+ | OPSInherit
2055+ -- ^ @INHERIT@
2056+ -- If a property\'s state is INHERIT, then the property state uses the
2057+ -- value of corresponding \`property_state\` field on the parent shape.
2058+ -- Elements that do not inherit will never have an INHERIT property state.
2059+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2060+
2061+instance Hashable OutlinePropertyState
2062+
2063+instance FromHttpApiData OutlinePropertyState where
2064+ parseQueryParam = \case
2065+ "RENDERED" -> Right OPSRendered
2066+ "NOT_RENDERED" -> Right OPSNotRendered
2067+ "INHERIT" -> Right OPSInherit
2068+ x -> Left ("Unable to parse OutlinePropertyState from: " <> x)
2069+
2070+instance ToHttpApiData OutlinePropertyState where
2071+ toQueryParam = \case
2072+ OPSRendered -> "RENDERED"
2073+ OPSNotRendered -> "NOT_RENDERED"
2074+ OPSInherit -> "INHERIT"
2075+
2076+instance FromJSON OutlinePropertyState where
2077+ parseJSON = parseJSONText "OutlinePropertyState"
2078+
2079+instance ToJSON OutlinePropertyState where
2080+ toJSON = toJSONText
2081+
2082+-- | The type of the placeholder.
2083+data PlaceholderType
2084+ = PTNone
2085+ -- ^ @NONE@
2086+ -- Default value, signifies it is not a placeholder.
2087+ | PTBody
2088+ -- ^ @BODY@
2089+ -- Body text.
2090+ | PTChart
2091+ -- ^ @CHART@
2092+ -- Chart or graph.
2093+ | PTClipArt
2094+ -- ^ @CLIP_ART@
2095+ -- Clip art image.
2096+ | PTCenteredTitle
2097+ -- ^ @CENTERED_TITLE@
2098+ -- Title centered.
2099+ | PTDiagram
2100+ -- ^ @DIAGRAM@
2101+ -- Diagram.
2102+ | PTDateAndTime
2103+ -- ^ @DATE_AND_TIME@
2104+ -- Date and time.
2105+ | PTFooter
2106+ -- ^ @FOOTER@
2107+ -- Footer text.
2108+ | PTHeader
2109+ -- ^ @HEADER@
2110+ -- Header text.
2111+ | PTMedia
2112+ -- ^ @MEDIA@
2113+ -- Multimedia.
2114+ | PTObject
2115+ -- ^ @OBJECT@
2116+ -- Any content type.
2117+ | PTPicture
2118+ -- ^ @PICTURE@
2119+ -- Picture.
2120+ | PTSlideNumber
2121+ -- ^ @SLIDE_NUMBER@
2122+ -- Number of a slide.
2123+ | PTSubtitle
2124+ -- ^ @SUBTITLE@
2125+ -- Subtitle.
2126+ | PTTable
2127+ -- ^ @TABLE@
2128+ -- Table.
2129+ | PTTitle
2130+ -- ^ @TITLE@
2131+ -- Slide title.
2132+ | PTSlideImage
2133+ -- ^ @SLIDE_IMAGE@
2134+ -- Slide image.
2135+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2136+
2137+instance Hashable PlaceholderType
2138+
2139+instance FromHttpApiData PlaceholderType where
2140+ parseQueryParam = \case
2141+ "NONE" -> Right PTNone
2142+ "BODY" -> Right PTBody
2143+ "CHART" -> Right PTChart
2144+ "CLIP_ART" -> Right PTClipArt
2145+ "CENTERED_TITLE" -> Right PTCenteredTitle
2146+ "DIAGRAM" -> Right PTDiagram
2147+ "DATE_AND_TIME" -> Right PTDateAndTime
2148+ "FOOTER" -> Right PTFooter
2149+ "HEADER" -> Right PTHeader
2150+ "MEDIA" -> Right PTMedia
2151+ "OBJECT" -> Right PTObject
2152+ "PICTURE" -> Right PTPicture
2153+ "SLIDE_NUMBER" -> Right PTSlideNumber
2154+ "SUBTITLE" -> Right PTSubtitle
2155+ "TABLE" -> Right PTTable
2156+ "TITLE" -> Right PTTitle
2157+ "SLIDE_IMAGE" -> Right PTSlideImage
2158+ x -> Left ("Unable to parse PlaceholderType from: " <> x)
2159+
2160+instance ToHttpApiData PlaceholderType where
2161+ toQueryParam = \case
2162+ PTNone -> "NONE"
2163+ PTBody -> "BODY"
2164+ PTChart -> "CHART"
2165+ PTClipArt -> "CLIP_ART"
2166+ PTCenteredTitle -> "CENTERED_TITLE"
2167+ PTDiagram -> "DIAGRAM"
2168+ PTDateAndTime -> "DATE_AND_TIME"
2169+ PTFooter -> "FOOTER"
2170+ PTHeader -> "HEADER"
2171+ PTMedia -> "MEDIA"
2172+ PTObject -> "OBJECT"
2173+ PTPicture -> "PICTURE"
2174+ PTSlideNumber -> "SLIDE_NUMBER"
2175+ PTSubtitle -> "SUBTITLE"
2176+ PTTable -> "TABLE"
2177+ PTTitle -> "TITLE"
2178+ PTSlideImage -> "SLIDE_IMAGE"
2179+
2180+instance FromJSON PlaceholderType where
2181+ parseJSON = parseJSONText "PlaceholderType"
2182+
2183+instance ToJSON PlaceholderType where
2184+ toJSON = toJSONText
2185+
2186+-- | The replace method.
2187+data ReplaceAllShapesWithImageRequestReplaceMethod
2188+ = CenterInside
2189+ -- ^ @CENTER_INSIDE@
2190+ -- Scales and centers the image to fit within the bounds of the original
2191+ -- shape and maintains the image\'s aspect ratio. The rendered size of the
2192+ -- image may be smaller than the size of the shape. This is the default
2193+ -- method when one is not specified.
2194+ | CenterCrop
2195+ -- ^ @CENTER_CROP@
2196+ -- Scales and centers the image to fill the bounds of the original shape.
2197+ -- The image may be cropped in order to fill the shape. The rendered size
2198+ -- of the image will be the same as that of the original shape.
2199+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2200+
2201+instance Hashable ReplaceAllShapesWithImageRequestReplaceMethod
2202+
2203+instance FromHttpApiData ReplaceAllShapesWithImageRequestReplaceMethod where
2204+ parseQueryParam = \case
2205+ "CENTER_INSIDE" -> Right CenterInside
2206+ "CENTER_CROP" -> Right CenterCrop
2207+ x -> Left ("Unable to parse ReplaceAllShapesWithImageRequestReplaceMethod from: " <> x)
2208+
2209+instance ToHttpApiData ReplaceAllShapesWithImageRequestReplaceMethod where
2210+ toQueryParam = \case
2211+ CenterInside -> "CENTER_INSIDE"
2212+ CenterCrop -> "CENTER_CROP"
2213+
2214+instance FromJSON ReplaceAllShapesWithImageRequestReplaceMethod where
2215+ parseJSON = parseJSONText "ReplaceAllShapesWithImageRequestReplaceMethod"
2216+
2217+instance ToJSON ReplaceAllShapesWithImageRequestReplaceMethod where
2218+ toJSON = toJSONText
2219+
2220+-- | The mode with which the chart is linked to the source spreadsheet. When
2221+-- not specified, the chart will be an image that is not linked.
2222+data CreateSheetsChartRequestLinkingMode
2223+ = NotLinkedImage
2224+ -- ^ @NOT_LINKED_IMAGE@
2225+ -- The chart is not associated with the source spreadsheet and cannot be
2226+ -- updated. A chart that is not linked will be inserted as an image.
2227+ | Linked
2228+ -- ^ @LINKED@
2229+ -- Linking the chart allows it to be updated, and other collaborators will
2230+ -- see a link to the spreadsheet.
2231+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2232+
2233+instance Hashable CreateSheetsChartRequestLinkingMode
2234+
2235+instance FromHttpApiData CreateSheetsChartRequestLinkingMode where
2236+ parseQueryParam = \case
2237+ "NOT_LINKED_IMAGE" -> Right NotLinkedImage
2238+ "LINKED" -> Right Linked
2239+ x -> Left ("Unable to parse CreateSheetsChartRequestLinkingMode from: " <> x)
2240+
2241+instance ToHttpApiData CreateSheetsChartRequestLinkingMode where
2242+ toQueryParam = \case
2243+ NotLinkedImage -> "NOT_LINKED_IMAGE"
2244+ Linked -> "LINKED"
2245+
2246+instance FromJSON CreateSheetsChartRequestLinkingMode where
2247+ parseJSON = parseJSONText "CreateSheetsChartRequestLinkingMode"
2248+
2249+instance ToJSON CreateSheetsChartRequestLinkingMode where
2250+ toJSON = toJSONText
2251+
2252+-- | The background fill property state. Updating the the fill on a shape
2253+-- will implicitly update this field to \`RENDERED\`, unless another value
2254+-- is specified in the same request. To have no fill on a shape, set this
2255+-- field to \`NOT_RENDERED\`. In this case, any other fill fields set in
2256+-- the same request will be ignored.
2257+data ShapeBackgRoundFillPropertyState
2258+ = SBRFPSRendered
2259+ -- ^ @RENDERED@
2260+ -- If a property\'s state is RENDERED, then the element has the
2261+ -- corresponding property when rendered on a page. If the element is a
2262+ -- placeholder shape as determined by the placeholder field, and it
2263+ -- inherits from a placeholder shape, the corresponding field may be unset,
2264+ -- meaning that the property value is inherited from a parent placeholder.
2265+ -- If the element does not inherit, then the field will contain the
2266+ -- rendered value. This is the default value.
2267+ | SBRFPSNotRendered
2268+ -- ^ @NOT_RENDERED@
2269+ -- If a property\'s state is NOT_RENDERED, then the element does not have
2270+ -- the corresponding property when rendered on a page. However, the field
2271+ -- may still be set so it can be inherited by child shapes. To remove a
2272+ -- property from a rendered element, set its property_state to
2273+ -- NOT_RENDERED.
2274+ | SBRFPSInherit
2275+ -- ^ @INHERIT@
2276+ -- If a property\'s state is INHERIT, then the property state uses the
2277+ -- value of corresponding \`property_state\` field on the parent shape.
2278+ -- Elements that do not inherit will never have an INHERIT property state.
2279+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2280+
2281+instance Hashable ShapeBackgRoundFillPropertyState
2282+
2283+instance FromHttpApiData ShapeBackgRoundFillPropertyState where
2284+ parseQueryParam = \case
2285+ "RENDERED" -> Right SBRFPSRendered
2286+ "NOT_RENDERED" -> Right SBRFPSNotRendered
2287+ "INHERIT" -> Right SBRFPSInherit
2288+ x -> Left ("Unable to parse ShapeBackgRoundFillPropertyState from: " <> x)
2289+
2290+instance ToHttpApiData ShapeBackgRoundFillPropertyState where
2291+ toQueryParam = \case
2292+ SBRFPSRendered -> "RENDERED"
2293+ SBRFPSNotRendered -> "NOT_RENDERED"
2294+ SBRFPSInherit -> "INHERIT"
2295+
2296+instance FromJSON ShapeBackgRoundFillPropertyState where
2297+ parseJSON = parseJSONText "ShapeBackgRoundFillPropertyState"
2298+
2299+instance ToJSON ShapeBackgRoundFillPropertyState where
2300+ toJSON = toJSONText
2301+
2302+-- | An opaque theme color.
2303+data OpaqueColorThemeColor
2304+ = ThemeColorTypeUnspecified
2305+ -- ^ @THEME_COLOR_TYPE_UNSPECIFIED@
2306+ -- Unspecified theme color. This value should not be used.
2307+ | DARK1
2308+ -- ^ @DARK1@
2309+ -- Represents the first dark color.
2310+ | LIGHT1
2311+ -- ^ @LIGHT1@
2312+ -- Represents the first light color.
2313+ | DARK2
2314+ -- ^ @DARK2@
2315+ -- Represents the second dark color.
2316+ | LIGHT2
2317+ -- ^ @LIGHT2@
2318+ -- Represents the second light color.
2319+ | ACCENT1
2320+ -- ^ @ACCENT1@
2321+ -- Represents the first accent color.
2322+ | ACCENT2
2323+ -- ^ @ACCENT2@
2324+ -- Represents the second accent color.
2325+ | ACCENT3
2326+ -- ^ @ACCENT3@
2327+ -- Represents the third accent color.
2328+ | ACCENT4
2329+ -- ^ @ACCENT4@
2330+ -- Represents the fourth accent color.
2331+ | ACCENT5
2332+ -- ^ @ACCENT5@
2333+ -- Represents the fifth accent color.
2334+ | ACCENT6
2335+ -- ^ @ACCENT6@
2336+ -- Represents the sixth accent color.
2337+ | Hyperlink
2338+ -- ^ @HYPERLINK@
2339+ -- Represents the color to use for hyperlinks.
2340+ | FollowedHyperlink
2341+ -- ^ @FOLLOWED_HYPERLINK@
2342+ -- Represents the color to use for visited hyperlinks.
2343+ | TEXT1
2344+ -- ^ @TEXT1@
2345+ -- Represents the first text color.
2346+ | BACKGROUND1
2347+ -- ^ @BACKGROUND1@
2348+ -- Represents the first background color.
2349+ | TEXT2
2350+ -- ^ @TEXT2@
2351+ -- Represents the second text color.
2352+ | BACKGROUND2
2353+ -- ^ @BACKGROUND2@
2354+ -- Represents the second background color.
2355+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2356+
2357+instance Hashable OpaqueColorThemeColor
2358+
2359+instance FromHttpApiData OpaqueColorThemeColor where
2360+ parseQueryParam = \case
2361+ "THEME_COLOR_TYPE_UNSPECIFIED" -> Right ThemeColorTypeUnspecified
2362+ "DARK1" -> Right DARK1
2363+ "LIGHT1" -> Right LIGHT1
2364+ "DARK2" -> Right DARK2
2365+ "LIGHT2" -> Right LIGHT2
2366+ "ACCENT1" -> Right ACCENT1
2367+ "ACCENT2" -> Right ACCENT2
2368+ "ACCENT3" -> Right ACCENT3
2369+ "ACCENT4" -> Right ACCENT4
2370+ "ACCENT5" -> Right ACCENT5
2371+ "ACCENT6" -> Right ACCENT6
2372+ "HYPERLINK" -> Right Hyperlink
2373+ "FOLLOWED_HYPERLINK" -> Right FollowedHyperlink
2374+ "TEXT1" -> Right TEXT1
2375+ "BACKGROUND1" -> Right BACKGROUND1
2376+ "TEXT2" -> Right TEXT2
2377+ "BACKGROUND2" -> Right BACKGROUND2
2378+ x -> Left ("Unable to parse OpaqueColorThemeColor from: " <> x)
2379+
2380+instance ToHttpApiData OpaqueColorThemeColor where
2381+ toQueryParam = \case
2382+ ThemeColorTypeUnspecified -> "THEME_COLOR_TYPE_UNSPECIFIED"
2383+ DARK1 -> "DARK1"
2384+ LIGHT1 -> "LIGHT1"
2385+ DARK2 -> "DARK2"
2386+ LIGHT2 -> "LIGHT2"
2387+ ACCENT1 -> "ACCENT1"
2388+ ACCENT2 -> "ACCENT2"
2389+ ACCENT3 -> "ACCENT3"
2390+ ACCENT4 -> "ACCENT4"
2391+ ACCENT5 -> "ACCENT5"
2392+ ACCENT6 -> "ACCENT6"
2393+ Hyperlink -> "HYPERLINK"
2394+ FollowedHyperlink -> "FOLLOWED_HYPERLINK"
2395+ TEXT1 -> "TEXT1"
2396+ BACKGROUND1 -> "BACKGROUND1"
2397+ TEXT2 -> "TEXT2"
2398+ BACKGROUND2 -> "BACKGROUND2"
2399+
2400+instance FromJSON OpaqueColorThemeColor where
2401+ parseJSON = parseJSONText "OpaqueColorThemeColor"
2402+
2403+instance ToJSON OpaqueColorThemeColor where
2404+ toJSON = toJSONText
2405+
2406+-- | The dash style of the line.
2407+data LinePropertiesDashStyle
2408+ = DashStyleUnspecified
2409+ -- ^ @DASH_STYLE_UNSPECIFIED@
2410+ -- Unspecified dash style.
2411+ | Solid
2412+ -- ^ @SOLID@
2413+ -- Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value
2414+ -- \'solid\'. This is the default dash style.
2415+ | Dot
2416+ -- ^ @DOT@
2417+ -- Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value \'dot\'.
2418+ | Dash
2419+ -- ^ @DASH@
2420+ -- Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal value
2421+ -- \'dash\'.
2422+ | DashDot
2423+ -- ^ @DASH_DOT@
2424+ -- Alternating dashes and dots. Corresponds to ECMA-376
2425+ -- ST_PresetLineDashVal value \'dashDot\'.
2426+ | LongDash
2427+ -- ^ @LONG_DASH@
2428+ -- Line with large dashes. Corresponds to ECMA-376 ST_PresetLineDashVal
2429+ -- value \'lgDash\'.
2430+ | LongDashDot
2431+ -- ^ @LONG_DASH_DOT@
2432+ -- Alternating large dashes and dots. Corresponds to ECMA-376
2433+ -- ST_PresetLineDashVal value \'lgDashDot\'.
2434+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2435+
2436+instance Hashable LinePropertiesDashStyle
2437+
2438+instance FromHttpApiData LinePropertiesDashStyle where
2439+ parseQueryParam = \case
2440+ "DASH_STYLE_UNSPECIFIED" -> Right DashStyleUnspecified
2441+ "SOLID" -> Right Solid
2442+ "DOT" -> Right Dot
2443+ "DASH" -> Right Dash
2444+ "DASH_DOT" -> Right DashDot
2445+ "LONG_DASH" -> Right LongDash
2446+ "LONG_DASH_DOT" -> Right LongDashDot
2447+ x -> Left ("Unable to parse LinePropertiesDashStyle from: " <> x)
2448+
2449+instance ToHttpApiData LinePropertiesDashStyle where
2450+ toQueryParam = \case
2451+ DashStyleUnspecified -> "DASH_STYLE_UNSPECIFIED"
2452+ Solid -> "SOLID"
2453+ Dot -> "DOT"
2454+ Dash -> "DASH"
2455+ DashDot -> "DASH_DOT"
2456+ LongDash -> "LONG_DASH"
2457+ LongDashDot -> "LONG_DASH_DOT"
2458+
2459+instance FromJSON LinePropertiesDashStyle where
2460+ parseJSON = parseJSONText "LinePropertiesDashStyle"
2461+
2462+instance ToJSON LinePropertiesDashStyle where
2463+ toJSON = toJSONText
2464+
2465+-- | The text alignment for this paragraph. This property is read-only.
2466+data ParagraphStyleAlignment
2467+ = AlignmentUnspecified
2468+ -- ^ @ALIGNMENT_UNSPECIFIED@
2469+ -- The paragraph alignment is inherited from the parent.
2470+ | Start
2471+ -- ^ @START@
2472+ -- The paragraph is aligned to the start of the line. Left-aligned for LTR
2473+ -- text, right-aligned otherwise.
2474+ | Center
2475+ -- ^ @CENTER@
2476+ -- The paragraph is centered.
2477+ | End
2478+ -- ^ @END@
2479+ -- The paragraph is aligned to the end of the line. Right-aligned for LTR
2480+ -- text, left-aligned otherwise.
2481+ | Justified
2482+ -- ^ @JUSTIFIED@
2483+ -- The paragraph is justified.
2484+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2485+
2486+instance Hashable ParagraphStyleAlignment
2487+
2488+instance FromHttpApiData ParagraphStyleAlignment where
2489+ parseQueryParam = \case
2490+ "ALIGNMENT_UNSPECIFIED" -> Right AlignmentUnspecified
2491+ "START" -> Right Start
2492+ "CENTER" -> Right Center
2493+ "END" -> Right End
2494+ "JUSTIFIED" -> Right Justified
2495+ x -> Left ("Unable to parse ParagraphStyleAlignment from: " <> x)
2496+
2497+instance ToHttpApiData ParagraphStyleAlignment where
2498+ toQueryParam = \case
2499+ AlignmentUnspecified -> "ALIGNMENT_UNSPECIFIED"
2500+ Start -> "START"
2501+ Center -> "CENTER"
2502+ End -> "END"
2503+ Justified -> "JUSTIFIED"
2504+
2505+instance FromJSON ParagraphStyleAlignment where
2506+ parseJSON = parseJSONText "ParagraphStyleAlignment"
2507+
2508+instance ToJSON ParagraphStyleAlignment where
2509+ toJSON = toJSONText
2510+
2511+-- | The alignment point of the shadow, that sets the origin for translate,
2512+-- scale and skew of the shadow.
2513+data ShadowAlignment
2514+ = SARectanglePositionUnspecified
2515+ -- ^ @RECTANGLE_POSITION_UNSPECIFIED@
2516+ -- Unspecified.
2517+ | SATopLeft
2518+ -- ^ @TOP_LEFT@
2519+ -- Top left.
2520+ | SATopCenter
2521+ -- ^ @TOP_CENTER@
2522+ -- Top center.
2523+ | SATopRight
2524+ -- ^ @TOP_RIGHT@
2525+ -- Top right.
2526+ | SALeftCenter
2527+ -- ^ @LEFT_CENTER@
2528+ -- Left center.
2529+ | SACenter
2530+ -- ^ @CENTER@
2531+ -- Center.
2532+ | SARightCenter
2533+ -- ^ @RIGHT_CENTER@
2534+ -- Right center.
2535+ | SABottomLeft
2536+ -- ^ @BOTTOM_LEFT@
2537+ -- Bottom left.
2538+ | SABottomCenter
2539+ -- ^ @BOTTOM_CENTER@
2540+ -- Bottom center.
2541+ | SABottomRight
2542+ -- ^ @BOTTOM_RIGHT@
2543+ -- Bottom right.
2544+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2545+
2546+instance Hashable ShadowAlignment
2547+
2548+instance FromHttpApiData ShadowAlignment where
2549+ parseQueryParam = \case
2550+ "RECTANGLE_POSITION_UNSPECIFIED" -> Right SARectanglePositionUnspecified
2551+ "TOP_LEFT" -> Right SATopLeft
2552+ "TOP_CENTER" -> Right SATopCenter
2553+ "TOP_RIGHT" -> Right SATopRight
2554+ "LEFT_CENTER" -> Right SALeftCenter
2555+ "CENTER" -> Right SACenter
2556+ "RIGHT_CENTER" -> Right SARightCenter
2557+ "BOTTOM_LEFT" -> Right SABottomLeft
2558+ "BOTTOM_CENTER" -> Right SABottomCenter
2559+ "BOTTOM_RIGHT" -> Right SABottomRight
2560+ x -> Left ("Unable to parse ShadowAlignment from: " <> x)
2561+
2562+instance ToHttpApiData ShadowAlignment where
2563+ toQueryParam = \case
2564+ SARectanglePositionUnspecified -> "RECTANGLE_POSITION_UNSPECIFIED"
2565+ SATopLeft -> "TOP_LEFT"
2566+ SATopCenter -> "TOP_CENTER"
2567+ SATopRight -> "TOP_RIGHT"
2568+ SALeftCenter -> "LEFT_CENTER"
2569+ SACenter -> "CENTER"
2570+ SARightCenter -> "RIGHT_CENTER"
2571+ SABottomLeft -> "BOTTOM_LEFT"
2572+ SABottomCenter -> "BOTTOM_CENTER"
2573+ SABottomRight -> "BOTTOM_RIGHT"
2574+
2575+instance FromJSON ShadowAlignment where
2576+ parseJSON = parseJSONText "ShadowAlignment"
2577+
2578+instance ToJSON ShadowAlignment where
2579+ toJSON = toJSONText
2580+
2581+-- | The style of the arrow at the end of the line.
2582+data LinePropertiesEndArrow
2583+ = LPEAArrowStyleUnspecified
2584+ -- ^ @ARROW_STYLE_UNSPECIFIED@
2585+ -- An unspecified arrow style.
2586+ | LPEANone
2587+ -- ^ @NONE@
2588+ -- No arrow.
2589+ | LPEAStealthArrow
2590+ -- ^ @STEALTH_ARROW@
2591+ -- Arrow with notched back. Corresponds to ECMA-376 ST_LineEndType value
2592+ -- \'stealth\'.
2593+ | LPEAFillArrow
2594+ -- ^ @FILL_ARROW@
2595+ -- Filled arrow. Corresponds to ECMA-376 ST_LineEndType value \'triangle\'.
2596+ | LPEAFillCircle
2597+ -- ^ @FILL_CIRCLE@
2598+ -- Filled circle. Corresponds to ECMA-376 ST_LineEndType value \'oval\'.
2599+ | LPEAFillSquare
2600+ -- ^ @FILL_SQUARE@
2601+ -- Filled square.
2602+ | LPEAFillDiamond
2603+ -- ^ @FILL_DIAMOND@
2604+ -- Filled diamond. Corresponds to ECMA-376 ST_LineEndType value
2605+ -- \'diamond\'.
2606+ | LPEAOpenArrow
2607+ -- ^ @OPEN_ARROW@
2608+ -- Hollow arrow.
2609+ | LPEAOpenCircle
2610+ -- ^ @OPEN_CIRCLE@
2611+ -- Hollow circle.
2612+ | LPEAOpenSquare
2613+ -- ^ @OPEN_SQUARE@
2614+ -- Hollow square.
2615+ | LPEAOpenDiamond
2616+ -- ^ @OPEN_DIAMOND@
2617+ -- Hollow diamond.
2618+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2619+
2620+instance Hashable LinePropertiesEndArrow
2621+
2622+instance FromHttpApiData LinePropertiesEndArrow where
2623+ parseQueryParam = \case
2624+ "ARROW_STYLE_UNSPECIFIED" -> Right LPEAArrowStyleUnspecified
2625+ "NONE" -> Right LPEANone
2626+ "STEALTH_ARROW" -> Right LPEAStealthArrow
2627+ "FILL_ARROW" -> Right LPEAFillArrow
2628+ "FILL_CIRCLE" -> Right LPEAFillCircle
2629+ "FILL_SQUARE" -> Right LPEAFillSquare
2630+ "FILL_DIAMOND" -> Right LPEAFillDiamond
2631+ "OPEN_ARROW" -> Right LPEAOpenArrow
2632+ "OPEN_CIRCLE" -> Right LPEAOpenCircle
2633+ "OPEN_SQUARE" -> Right LPEAOpenSquare
2634+ "OPEN_DIAMOND" -> Right LPEAOpenDiamond
2635+ x -> Left ("Unable to parse LinePropertiesEndArrow from: " <> x)
2636+
2637+instance ToHttpApiData LinePropertiesEndArrow where
2638+ toQueryParam = \case
2639+ LPEAArrowStyleUnspecified -> "ARROW_STYLE_UNSPECIFIED"
2640+ LPEANone -> "NONE"
2641+ LPEAStealthArrow -> "STEALTH_ARROW"
2642+ LPEAFillArrow -> "FILL_ARROW"
2643+ LPEAFillCircle -> "FILL_CIRCLE"
2644+ LPEAFillSquare -> "FILL_SQUARE"
2645+ LPEAFillDiamond -> "FILL_DIAMOND"
2646+ LPEAOpenArrow -> "OPEN_ARROW"
2647+ LPEAOpenCircle -> "OPEN_CIRCLE"
2648+ LPEAOpenSquare -> "OPEN_SQUARE"
2649+ LPEAOpenDiamond -> "OPEN_DIAMOND"
2650+
2651+instance FromJSON LinePropertiesEndArrow where
2652+ parseJSON = parseJSONText "LinePropertiesEndArrow"
2653+
2654+instance ToJSON LinePropertiesEndArrow where
2655+ toJSON = toJSONText
2656+
2657+-- | The background fill property state. Updating the the fill on a table
2658+-- cell will implicitly update this field to \`RENDERED\`, unless another
2659+-- value is specified in the same request. To have no fill on a table cell,
2660+-- set this field to \`NOT_RENDERED\`. In this case, any other fill fields
2661+-- set in the same request will be ignored.
2662+data TableCellBackgRoundFillPropertyState
2663+ = TCBRFPSRendered
2664+ -- ^ @RENDERED@
2665+ -- If a property\'s state is RENDERED, then the element has the
2666+ -- corresponding property when rendered on a page. If the element is a
2667+ -- placeholder shape as determined by the placeholder field, and it
2668+ -- inherits from a placeholder shape, the corresponding field may be unset,
2669+ -- meaning that the property value is inherited from a parent placeholder.
2670+ -- If the element does not inherit, then the field will contain the
2671+ -- rendered value. This is the default value.
2672+ | TCBRFPSNotRendered
2673+ -- ^ @NOT_RENDERED@
2674+ -- If a property\'s state is NOT_RENDERED, then the element does not have
2675+ -- the corresponding property when rendered on a page. However, the field
2676+ -- may still be set so it can be inherited by child shapes. To remove a
2677+ -- property from a rendered element, set its property_state to
2678+ -- NOT_RENDERED.
2679+ | TCBRFPSInherit
2680+ -- ^ @INHERIT@
2681+ -- If a property\'s state is INHERIT, then the property state uses the
2682+ -- value of corresponding \`property_state\` field on the parent shape.
2683+ -- Elements that do not inherit will never have an INHERIT property state.
2684+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2685+
2686+instance Hashable TableCellBackgRoundFillPropertyState
2687+
2688+instance FromHttpApiData TableCellBackgRoundFillPropertyState where
2689+ parseQueryParam = \case
2690+ "RENDERED" -> Right TCBRFPSRendered
2691+ "NOT_RENDERED" -> Right TCBRFPSNotRendered
2692+ "INHERIT" -> Right TCBRFPSInherit
2693+ x -> Left ("Unable to parse TableCellBackgRoundFillPropertyState from: " <> x)
2694+
2695+instance ToHttpApiData TableCellBackgRoundFillPropertyState where
2696+ toQueryParam = \case
2697+ TCBRFPSRendered -> "RENDERED"
2698+ TCBRFPSNotRendered -> "NOT_RENDERED"
2699+ TCBRFPSInherit -> "INHERIT"
2700+
2701+instance FromJSON TableCellBackgRoundFillPropertyState where
2702+ parseJSON = parseJSONText "TableCellBackgRoundFillPropertyState"
2703+
2704+instance ToJSON TableCellBackgRoundFillPropertyState where
2705+ toJSON = toJSONText
2706+
2707+-- | The video source.
2708+data CreateVideoRequestSource
2709+ = SourceUnspecified
2710+ -- ^ @SOURCE_UNSPECIFIED@
2711+ -- The video source is unspecified.
2712+ | YouTube
2713+ -- ^ @YOUTUBE@
2714+ -- The video source is YouTube.
2715+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2716+
2717+instance Hashable CreateVideoRequestSource
2718+
2719+instance FromHttpApiData CreateVideoRequestSource where
2720+ parseQueryParam = \case
2721+ "SOURCE_UNSPECIFIED" -> Right SourceUnspecified
2722+ "YOUTUBE" -> Right YouTube
2723+ x -> Left ("Unable to parse CreateVideoRequestSource from: " <> x)
2724+
2725+instance ToHttpApiData CreateVideoRequestSource where
2726+ toQueryParam = \case
2727+ SourceUnspecified -> "SOURCE_UNSPECIFIED"
2728+ YouTube -> "YOUTUBE"
2729+
2730+instance FromJSON CreateVideoRequestSource where
2731+ parseJSON = parseJSONText "CreateVideoRequestSource"
2732+
2733+instance ToJSON CreateVideoRequestSource where
2734+ toJSON = toJSONText
2735+
2736+-- | If set, indicates this is a link to a slide in this presentation,
2737+-- addressed by its position.
2738+data LinkRelativeLink
2739+ = RelativeSlideLinkUnspecified
2740+ -- ^ @RELATIVE_SLIDE_LINK_UNSPECIFIED@
2741+ -- An unspecified relative slide link.
2742+ | NextSlide
2743+ -- ^ @NEXT_SLIDE@
2744+ -- A link to the next slide.
2745+ | PreviousSlide
2746+ -- ^ @PREVIOUS_SLIDE@
2747+ -- A link to the previous slide.
2748+ | FirstSlide
2749+ -- ^ @FIRST_SLIDE@
2750+ -- A link to the first slide in the presentation.
2751+ | LastSlide
2752+ -- ^ @LAST_SLIDE@
2753+ -- A link to the last slide in the presentation.
2754+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2755+
2756+instance Hashable LinkRelativeLink
2757+
2758+instance FromHttpApiData LinkRelativeLink where
2759+ parseQueryParam = \case
2760+ "RELATIVE_SLIDE_LINK_UNSPECIFIED" -> Right RelativeSlideLinkUnspecified
2761+ "NEXT_SLIDE" -> Right NextSlide
2762+ "PREVIOUS_SLIDE" -> Right PreviousSlide
2763+ "FIRST_SLIDE" -> Right FirstSlide
2764+ "LAST_SLIDE" -> Right LastSlide
2765+ x -> Left ("Unable to parse LinkRelativeLink from: " <> x)
2766+
2767+instance ToHttpApiData LinkRelativeLink where
2768+ toQueryParam = \case
2769+ RelativeSlideLinkUnspecified -> "RELATIVE_SLIDE_LINK_UNSPECIFIED"
2770+ NextSlide -> "NEXT_SLIDE"
2771+ PreviousSlide -> "PREVIOUS_SLIDE"
2772+ FirstSlide -> "FIRST_SLIDE"
2773+ LastSlide -> "LAST_SLIDE"
2774+
2775+instance FromJSON LinkRelativeLink where
2776+ parseJSON = parseJSONText "LinkRelativeLink"
2777+
2778+instance ToJSON LinkRelativeLink where
2779+ toJSON = toJSONText
2780+
2781+-- | The video source.
2782+data VideoSource
2783+ = VSSourceUnspecified
2784+ -- ^ @SOURCE_UNSPECIFIED@
2785+ -- The video source is unspecified.
2786+ | VSYouTube
2787+ -- ^ @YOUTUBE@
2788+ -- The video source is YouTube.
2789+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2790+
2791+instance Hashable VideoSource
2792+
2793+instance FromHttpApiData VideoSource where
2794+ parseQueryParam = \case
2795+ "SOURCE_UNSPECIFIED" -> Right VSSourceUnspecified
2796+ "YOUTUBE" -> Right VSYouTube
2797+ x -> Left ("Unable to parse VideoSource from: " <> x)
2798+
2799+instance ToHttpApiData VideoSource where
2800+ toQueryParam = \case
2801+ VSSourceUnspecified -> "SOURCE_UNSPECIFIED"
2802+ VSYouTube -> "YOUTUBE"
2803+
2804+instance FromJSON VideoSource where
2805+ parseJSON = parseJSONText "VideoSource"
2806+
2807+instance ToJSON VideoSource where
2808+ toJSON = toJSONText
2809+
2810+-- | V1 error format.
2811+data Xgafv
2812+ = X1
2813+ -- ^ @1@
2814+ -- v1 error format
2815+ | X2
2816+ -- ^ @2@
2817+ -- v2 error format
2818+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2819+
2820+instance Hashable Xgafv
2821+
2822+instance FromHttpApiData Xgafv where
2823+ parseQueryParam = \case
2824+ "1" -> Right X1
2825+ "2" -> Right X2
2826+ x -> Left ("Unable to parse Xgafv from: " <> x)
2827+
2828+instance ToHttpApiData Xgafv where
2829+ toQueryParam = \case
2830+ X1 -> "1"
2831+ X2 -> "2"
2832+
2833+instance FromJSON Xgafv where
2834+ parseJSON = parseJSONText "Xgafv"
2835+
2836+instance ToJSON Xgafv where
2837+ toJSON = toJSONText
2838+
2839+-- | The type of this auto text.
2840+data AutoTextType
2841+ = ATTTypeUnspecified
2842+ -- ^ @TYPE_UNSPECIFIED@
2843+ -- An unspecified autotext type.
2844+ | ATTSlideNumber
2845+ -- ^ @SLIDE_NUMBER@
2846+ -- Type for autotext that represents the current slide number.
2847+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2848+
2849+instance Hashable AutoTextType
2850+
2851+instance FromHttpApiData AutoTextType where
2852+ parseQueryParam = \case
2853+ "TYPE_UNSPECIFIED" -> Right ATTTypeUnspecified
2854+ "SLIDE_NUMBER" -> Right ATTSlideNumber
2855+ x -> Left ("Unable to parse AutoTextType from: " <> x)
2856+
2857+instance ToHttpApiData AutoTextType where
2858+ toQueryParam = \case
2859+ ATTTypeUnspecified -> "TYPE_UNSPECIFIED"
2860+ ATTSlideNumber -> "SLIDE_NUMBER"
2861+
2862+instance FromJSON AutoTextType where
2863+ parseJSON = parseJSONText "AutoTextType"
2864+
2865+instance ToJSON AutoTextType where
2866+ toJSON = toJSONText
2867+
2868+-- | The type of the line.
2869+data LineLineType
2870+ = LLTTypeUnspecified
2871+ -- ^ @TYPE_UNSPECIFIED@
2872+ -- An unspecified line type.
2873+ | LLTStraightConnector1
2874+ -- ^ @STRAIGHT_CONNECTOR_1@
2875+ -- Straight connector 1 form. Corresponds to ECMA-376 ST_ShapeType
2876+ -- \'straightConnector1\'.
2877+ | LLTBentConnector2
2878+ -- ^ @BENT_CONNECTOR_2@
2879+ -- Bent connector 2 form. Corresponds to ECMA-376 ST_ShapeType
2880+ -- \'bentConnector2\'.
2881+ | LLTBentConnector3
2882+ -- ^ @BENT_CONNECTOR_3@
2883+ -- Bent connector 3 form. Corresponds to ECMA-376 ST_ShapeType
2884+ -- \'bentConnector3\'.
2885+ | LLTBentConnector4
2886+ -- ^ @BENT_CONNECTOR_4@
2887+ -- Bent connector 4 form. Corresponds to ECMA-376 ST_ShapeType
2888+ -- \'bentConnector4\'.
2889+ | LLTBentConnector5
2890+ -- ^ @BENT_CONNECTOR_5@
2891+ -- Bent connector 5 form. Corresponds to ECMA-376 ST_ShapeType
2892+ -- \'bentConnector5\'.
2893+ | LLTCurvedConnector2
2894+ -- ^ @CURVED_CONNECTOR_2@
2895+ -- Curved connector 2 form. Corresponds to ECMA-376 ST_ShapeType
2896+ -- \'curvedConnector2\'.
2897+ | LLTCurvedConnector3
2898+ -- ^ @CURVED_CONNECTOR_3@
2899+ -- Curved connector 3 form. Corresponds to ECMA-376 ST_ShapeType
2900+ -- \'curvedConnector3\'.
2901+ | LLTCurvedConnector4
2902+ -- ^ @CURVED_CONNECTOR_4@
2903+ -- Curved connector 4 form. Corresponds to ECMA-376 ST_ShapeType
2904+ -- \'curvedConnector4\'.
2905+ | LLTCurvedConnector5
2906+ -- ^ @CURVED_CONNECTOR_5@
2907+ -- Curved connector 5 form. Corresponds to ECMA-376 ST_ShapeType
2908+ -- \'curvedConnector5\'.
2909+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2910+
2911+instance Hashable LineLineType
2912+
2913+instance FromHttpApiData LineLineType where
2914+ parseQueryParam = \case
2915+ "TYPE_UNSPECIFIED" -> Right LLTTypeUnspecified
2916+ "STRAIGHT_CONNECTOR_1" -> Right LLTStraightConnector1
2917+ "BENT_CONNECTOR_2" -> Right LLTBentConnector2
2918+ "BENT_CONNECTOR_3" -> Right LLTBentConnector3
2919+ "BENT_CONNECTOR_4" -> Right LLTBentConnector4
2920+ "BENT_CONNECTOR_5" -> Right LLTBentConnector5
2921+ "CURVED_CONNECTOR_2" -> Right LLTCurvedConnector2
2922+ "CURVED_CONNECTOR_3" -> Right LLTCurvedConnector3
2923+ "CURVED_CONNECTOR_4" -> Right LLTCurvedConnector4
2924+ "CURVED_CONNECTOR_5" -> Right LLTCurvedConnector5
2925+ x -> Left ("Unable to parse LineLineType from: " <> x)
2926+
2927+instance ToHttpApiData LineLineType where
2928+ toQueryParam = \case
2929+ LLTTypeUnspecified -> "TYPE_UNSPECIFIED"
2930+ LLTStraightConnector1 -> "STRAIGHT_CONNECTOR_1"
2931+ LLTBentConnector2 -> "BENT_CONNECTOR_2"
2932+ LLTBentConnector3 -> "BENT_CONNECTOR_3"
2933+ LLTBentConnector4 -> "BENT_CONNECTOR_4"
2934+ LLTBentConnector5 -> "BENT_CONNECTOR_5"
2935+ LLTCurvedConnector2 -> "CURVED_CONNECTOR_2"
2936+ LLTCurvedConnector3 -> "CURVED_CONNECTOR_3"
2937+ LLTCurvedConnector4 -> "CURVED_CONNECTOR_4"
2938+ LLTCurvedConnector5 -> "CURVED_CONNECTOR_5"
2939+
2940+instance FromJSON LineLineType where
2941+ parseJSON = parseJSONText "LineLineType"
2942+
2943+instance ToJSON LineLineType where
2944+ toJSON = toJSONText
2945+
2946+-- | The type of the page.
2947+data PagePageType
2948+ = Slide
2949+ -- ^ @SLIDE@
2950+ -- A slide page.
2951+ | Master
2952+ -- ^ @MASTER@
2953+ -- A master slide page.
2954+ | Layout
2955+ -- ^ @LAYOUT@
2956+ -- A layout page.
2957+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2958+
2959+instance Hashable PagePageType
2960+
2961+instance FromHttpApiData PagePageType where
2962+ parseQueryParam = \case
2963+ "SLIDE" -> Right Slide
2964+ "MASTER" -> Right Master
2965+ "LAYOUT" -> Right Layout
2966+ x -> Left ("Unable to parse PagePageType from: " <> x)
2967+
2968+instance ToHttpApiData PagePageType where
2969+ toQueryParam = \case
2970+ Slide -> "SLIDE"
2971+ Master -> "MASTER"
2972+ Layout -> "LAYOUT"
2973+
2974+instance FromJSON PagePageType where
2975+ parseJSON = parseJSONText "PagePageType"
2976+
2977+instance ToJSON PagePageType where
2978+ toJSON = toJSONText
2979+
2980+-- | The spacing mode for the paragraph. This property is read-only.
2981+data ParagraphStyleSpacingMode
2982+ = SpacingModeUnspecified
2983+ -- ^ @SPACING_MODE_UNSPECIFIED@
2984+ -- The spacing mode is inherited from the parent.
2985+ | NeverCollapse
2986+ -- ^ @NEVER_COLLAPSE@
2987+ -- Paragraph spacing is always rendered.
2988+ | CollapseLists
2989+ -- ^ @COLLAPSE_LISTS@
2990+ -- Paragraph spacing is skipped between list elements.
2991+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
2992+
2993+instance Hashable ParagraphStyleSpacingMode
2994+
2995+instance FromHttpApiData ParagraphStyleSpacingMode where
2996+ parseQueryParam = \case
2997+ "SPACING_MODE_UNSPECIFIED" -> Right SpacingModeUnspecified
2998+ "NEVER_COLLAPSE" -> Right NeverCollapse
2999+ "COLLAPSE_LISTS" -> Right CollapseLists
3000+ x -> Left ("Unable to parse ParagraphStyleSpacingMode from: " <> x)
3001+
3002+instance ToHttpApiData ParagraphStyleSpacingMode where
3003+ toQueryParam = \case
3004+ SpacingModeUnspecified -> "SPACING_MODE_UNSPECIFIED"
3005+ NeverCollapse -> "NEVER_COLLAPSE"
3006+ CollapseLists -> "COLLAPSE_LISTS"
3007+
3008+instance FromJSON ParagraphStyleSpacingMode where
3009+ parseJSON = parseJSONText "ParagraphStyleSpacingMode"
3010+
3011+instance ToJSON ParagraphStyleSpacingMode where
3012+ toJSON = toJSONText
3013+
3014+-- | The type of the theme color.
3015+data ThemeColorPairType
3016+ = TCPTThemeColorTypeUnspecified
3017+ -- ^ @THEME_COLOR_TYPE_UNSPECIFIED@
3018+ -- Unspecified theme color. This value should not be used.
3019+ | TCPTDARK1
3020+ -- ^ @DARK1@
3021+ -- Represents the first dark color.
3022+ | TCPTLIGHT1
3023+ -- ^ @LIGHT1@
3024+ -- Represents the first light color.
3025+ | TCPTDARK2
3026+ -- ^ @DARK2@
3027+ -- Represents the second dark color.
3028+ | TCPTLIGHT2
3029+ -- ^ @LIGHT2@
3030+ -- Represents the second light color.
3031+ | TCPTACCENT1
3032+ -- ^ @ACCENT1@
3033+ -- Represents the first accent color.
3034+ | TCPTACCENT2
3035+ -- ^ @ACCENT2@
3036+ -- Represents the second accent color.
3037+ | TCPTACCENT3
3038+ -- ^ @ACCENT3@
3039+ -- Represents the third accent color.
3040+ | TCPTACCENT4
3041+ -- ^ @ACCENT4@
3042+ -- Represents the fourth accent color.
3043+ | TCPTACCENT5
3044+ -- ^ @ACCENT5@
3045+ -- Represents the fifth accent color.
3046+ | TCPTACCENT6
3047+ -- ^ @ACCENT6@
3048+ -- Represents the sixth accent color.
3049+ | TCPTHyperlink
3050+ -- ^ @HYPERLINK@
3051+ -- Represents the color to use for hyperlinks.
3052+ | TCPTFollowedHyperlink
3053+ -- ^ @FOLLOWED_HYPERLINK@
3054+ -- Represents the color to use for visited hyperlinks.
3055+ | TCPTTEXT1
3056+ -- ^ @TEXT1@
3057+ -- Represents the first text color.
3058+ | TCPTBACKGROUND1
3059+ -- ^ @BACKGROUND1@
3060+ -- Represents the first background color.
3061+ | TCPTTEXT2
3062+ -- ^ @TEXT2@
3063+ -- Represents the second text color.
3064+ | TCPTBACKGROUND2
3065+ -- ^ @BACKGROUND2@
3066+ -- Represents the second background color.
3067+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3068+
3069+instance Hashable ThemeColorPairType
3070+
3071+instance FromHttpApiData ThemeColorPairType where
3072+ parseQueryParam = \case
3073+ "THEME_COLOR_TYPE_UNSPECIFIED" -> Right TCPTThemeColorTypeUnspecified
3074+ "DARK1" -> Right TCPTDARK1
3075+ "LIGHT1" -> Right TCPTLIGHT1
3076+ "DARK2" -> Right TCPTDARK2
3077+ "LIGHT2" -> Right TCPTLIGHT2
3078+ "ACCENT1" -> Right TCPTACCENT1
3079+ "ACCENT2" -> Right TCPTACCENT2
3080+ "ACCENT3" -> Right TCPTACCENT3
3081+ "ACCENT4" -> Right TCPTACCENT4
3082+ "ACCENT5" -> Right TCPTACCENT5
3083+ "ACCENT6" -> Right TCPTACCENT6
3084+ "HYPERLINK" -> Right TCPTHyperlink
3085+ "FOLLOWED_HYPERLINK" -> Right TCPTFollowedHyperlink
3086+ "TEXT1" -> Right TCPTTEXT1
3087+ "BACKGROUND1" -> Right TCPTBACKGROUND1
3088+ "TEXT2" -> Right TCPTTEXT2
3089+ "BACKGROUND2" -> Right TCPTBACKGROUND2
3090+ x -> Left ("Unable to parse ThemeColorPairType from: " <> x)
3091+
3092+instance ToHttpApiData ThemeColorPairType where
3093+ toQueryParam = \case
3094+ TCPTThemeColorTypeUnspecified -> "THEME_COLOR_TYPE_UNSPECIFIED"
3095+ TCPTDARK1 -> "DARK1"
3096+ TCPTLIGHT1 -> "LIGHT1"
3097+ TCPTDARK2 -> "DARK2"
3098+ TCPTLIGHT2 -> "LIGHT2"
3099+ TCPTACCENT1 -> "ACCENT1"
3100+ TCPTACCENT2 -> "ACCENT2"
3101+ TCPTACCENT3 -> "ACCENT3"
3102+ TCPTACCENT4 -> "ACCENT4"
3103+ TCPTACCENT5 -> "ACCENT5"
3104+ TCPTACCENT6 -> "ACCENT6"
3105+ TCPTHyperlink -> "HYPERLINK"
3106+ TCPTFollowedHyperlink -> "FOLLOWED_HYPERLINK"
3107+ TCPTTEXT1 -> "TEXT1"
3108+ TCPTBACKGROUND1 -> "BACKGROUND1"
3109+ TCPTTEXT2 -> "TEXT2"
3110+ TCPTBACKGROUND2 -> "BACKGROUND2"
3111+
3112+instance FromJSON ThemeColorPairType where
3113+ parseJSON = parseJSONText "ThemeColorPairType"
3114+
3115+instance ToJSON ThemeColorPairType where
3116+ toJSON = toJSONText
3117+
3118+-- | The style of the arrow at the beginning of the line.
3119+data LinePropertiesStartArrow
3120+ = LPSAArrowStyleUnspecified
3121+ -- ^ @ARROW_STYLE_UNSPECIFIED@
3122+ -- An unspecified arrow style.
3123+ | LPSANone
3124+ -- ^ @NONE@
3125+ -- No arrow.
3126+ | LPSAStealthArrow
3127+ -- ^ @STEALTH_ARROW@
3128+ -- Arrow with notched back. Corresponds to ECMA-376 ST_LineEndType value
3129+ -- \'stealth\'.
3130+ | LPSAFillArrow
3131+ -- ^ @FILL_ARROW@
3132+ -- Filled arrow. Corresponds to ECMA-376 ST_LineEndType value \'triangle\'.
3133+ | LPSAFillCircle
3134+ -- ^ @FILL_CIRCLE@
3135+ -- Filled circle. Corresponds to ECMA-376 ST_LineEndType value \'oval\'.
3136+ | LPSAFillSquare
3137+ -- ^ @FILL_SQUARE@
3138+ -- Filled square.
3139+ | LPSAFillDiamond
3140+ -- ^ @FILL_DIAMOND@
3141+ -- Filled diamond. Corresponds to ECMA-376 ST_LineEndType value
3142+ -- \'diamond\'.
3143+ | LPSAOpenArrow
3144+ -- ^ @OPEN_ARROW@
3145+ -- Hollow arrow.
3146+ | LPSAOpenCircle
3147+ -- ^ @OPEN_CIRCLE@
3148+ -- Hollow circle.
3149+ | LPSAOpenSquare
3150+ -- ^ @OPEN_SQUARE@
3151+ -- Hollow square.
3152+ | LPSAOpenDiamond
3153+ -- ^ @OPEN_DIAMOND@
3154+ -- Hollow diamond.
3155+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3156+
3157+instance Hashable LinePropertiesStartArrow
3158+
3159+instance FromHttpApiData LinePropertiesStartArrow where
3160+ parseQueryParam = \case
3161+ "ARROW_STYLE_UNSPECIFIED" -> Right LPSAArrowStyleUnspecified
3162+ "NONE" -> Right LPSANone
3163+ "STEALTH_ARROW" -> Right LPSAStealthArrow
3164+ "FILL_ARROW" -> Right LPSAFillArrow
3165+ "FILL_CIRCLE" -> Right LPSAFillCircle
3166+ "FILL_SQUARE" -> Right LPSAFillSquare
3167+ "FILL_DIAMOND" -> Right LPSAFillDiamond
3168+ "OPEN_ARROW" -> Right LPSAOpenArrow
3169+ "OPEN_CIRCLE" -> Right LPSAOpenCircle
3170+ "OPEN_SQUARE" -> Right LPSAOpenSquare
3171+ "OPEN_DIAMOND" -> Right LPSAOpenDiamond
3172+ x -> Left ("Unable to parse LinePropertiesStartArrow from: " <> x)
3173+
3174+instance ToHttpApiData LinePropertiesStartArrow where
3175+ toQueryParam = \case
3176+ LPSAArrowStyleUnspecified -> "ARROW_STYLE_UNSPECIFIED"
3177+ LPSANone -> "NONE"
3178+ LPSAStealthArrow -> "STEALTH_ARROW"
3179+ LPSAFillArrow -> "FILL_ARROW"
3180+ LPSAFillCircle -> "FILL_CIRCLE"
3181+ LPSAFillSquare -> "FILL_SQUARE"
3182+ LPSAFillDiamond -> "FILL_DIAMOND"
3183+ LPSAOpenArrow -> "OPEN_ARROW"
3184+ LPSAOpenCircle -> "OPEN_CIRCLE"
3185+ LPSAOpenSquare -> "OPEN_SQUARE"
3186+ LPSAOpenDiamond -> "OPEN_DIAMOND"
3187+
3188+instance FromJSON LinePropertiesStartArrow where
3189+ parseJSON = parseJSONText "LinePropertiesStartArrow"
3190+
3191+instance ToJSON LinePropertiesStartArrow where
3192+ toJSON = toJSONText
3193+
3194+-- | The shadow property state. Updating the the shadow on a page element
3195+-- will implicitly update this field to \`RENDERED\`, unless another value
3196+-- is specified in the same request. To have no shadow on a page element,
3197+-- set this field to \`NOT_RENDERED\`. In this case, any other shadow
3198+-- fields set in the same request will be ignored.
3199+data ShadowPropertyState
3200+ = SPSRendered
3201+ -- ^ @RENDERED@
3202+ -- If a property\'s state is RENDERED, then the element has the
3203+ -- corresponding property when rendered on a page. If the element is a
3204+ -- placeholder shape as determined by the placeholder field, and it
3205+ -- inherits from a placeholder shape, the corresponding field may be unset,
3206+ -- meaning that the property value is inherited from a parent placeholder.
3207+ -- If the element does not inherit, then the field will contain the
3208+ -- rendered value. This is the default value.
3209+ | SPSNotRendered
3210+ -- ^ @NOT_RENDERED@
3211+ -- If a property\'s state is NOT_RENDERED, then the element does not have
3212+ -- the corresponding property when rendered on a page. However, the field
3213+ -- may still be set so it can be inherited by child shapes. To remove a
3214+ -- property from a rendered element, set its property_state to
3215+ -- NOT_RENDERED.
3216+ | SPSInherit
3217+ -- ^ @INHERIT@
3218+ -- If a property\'s state is INHERIT, then the property state uses the
3219+ -- value of corresponding \`property_state\` field on the parent shape.
3220+ -- Elements that do not inherit will never have an INHERIT property state.
3221+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3222+
3223+instance Hashable ShadowPropertyState
3224+
3225+instance FromHttpApiData ShadowPropertyState where
3226+ parseQueryParam = \case
3227+ "RENDERED" -> Right SPSRendered
3228+ "NOT_RENDERED" -> Right SPSNotRendered
3229+ "INHERIT" -> Right SPSInherit
3230+ x -> Left ("Unable to parse ShadowPropertyState from: " <> x)
3231+
3232+instance ToHttpApiData ShadowPropertyState where
3233+ toQueryParam = \case
3234+ SPSRendered -> "RENDERED"
3235+ SPSNotRendered -> "NOT_RENDERED"
3236+ SPSInherit -> "INHERIT"
3237+
3238+instance FromJSON ShadowPropertyState where
3239+ parseJSON = parseJSONText "ShadowPropertyState"
3240+
3241+instance ToJSON ShadowPropertyState where
3242+ toJSON = toJSONText
3243+
3244+-- | The type of the shadow.
3245+data ShadowType
3246+ = ShadowTypeUnspecified
3247+ -- ^ @SHADOW_TYPE_UNSPECIFIED@
3248+ -- Unspecified shadow type.
3249+ | Outer
3250+ -- ^ @OUTER@
3251+ -- Outer shadow.
3252+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3253+
3254+instance Hashable ShadowType
3255+
3256+instance FromHttpApiData ShadowType where
3257+ parseQueryParam = \case
3258+ "SHADOW_TYPE_UNSPECIFIED" -> Right ShadowTypeUnspecified
3259+ "OUTER" -> Right Outer
3260+ x -> Left ("Unable to parse ShadowType from: " <> x)
3261+
3262+instance ToHttpApiData ShadowType where
3263+ toQueryParam = \case
3264+ ShadowTypeUnspecified -> "SHADOW_TYPE_UNSPECIFIED"
3265+ Outer -> "OUTER"
3266+
3267+instance FromJSON ShadowType where
3268+ parseJSON = parseJSONText "ShadowType"
3269+
3270+instance ToJSON ShadowType where
3271+ toJSON = toJSONText
3272+
3273+-- | The apply mode of the transform update.
3274+data UpdatePageElementTransformRequestApplyMode
3275+ = ApplyModeUnspecified
3276+ -- ^ @APPLY_MODE_UNSPECIFIED@
3277+ -- Unspecified mode.
3278+ | Relative
3279+ -- ^ @RELATIVE@
3280+ -- Applies the new AffineTransform matrix to the existing one, and replaces
3281+ -- the existing one with the resulting concatenation.
3282+ | Absolute
3283+ -- ^ @ABSOLUTE@
3284+ -- Replaces the existing AffineTransform matrix with the new one.
3285+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3286+
3287+instance Hashable UpdatePageElementTransformRequestApplyMode
3288+
3289+instance FromHttpApiData UpdatePageElementTransformRequestApplyMode where
3290+ parseQueryParam = \case
3291+ "APPLY_MODE_UNSPECIFIED" -> Right ApplyModeUnspecified
3292+ "RELATIVE" -> Right Relative
3293+ "ABSOLUTE" -> Right Absolute
3294+ x -> Left ("Unable to parse UpdatePageElementTransformRequestApplyMode from: " <> x)
3295+
3296+instance ToHttpApiData UpdatePageElementTransformRequestApplyMode where
3297+ toQueryParam = \case
3298+ ApplyModeUnspecified -> "APPLY_MODE_UNSPECIFIED"
3299+ Relative -> "RELATIVE"
3300+ Absolute -> "ABSOLUTE"
3301+
3302+instance FromJSON UpdatePageElementTransformRequestApplyMode where
3303+ parseJSON = parseJSONText "UpdatePageElementTransformRequestApplyMode"
3304+
3305+instance ToJSON UpdatePageElementTransformRequestApplyMode where
3306+ toJSON = toJSONText
3307+
3308+-- | The units for magnitude.
3309+data DimensionUnit
3310+ = UnitUnspecified
3311+ -- ^ @UNIT_UNSPECIFIED@
3312+ -- The units are unknown.
3313+ | Emu
3314+ -- ^ @EMU@
3315+ -- An English Metric Unit (EMU) is defined as 1\/360,000 of a centimeter
3316+ -- and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.
3317+ | PT
3318+ -- ^ @PT@
3319+ -- A point, 1\/72 of an inch.
3320+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3321+
3322+instance Hashable DimensionUnit
3323+
3324+instance FromHttpApiData DimensionUnit where
3325+ parseQueryParam = \case
3326+ "UNIT_UNSPECIFIED" -> Right UnitUnspecified
3327+ "EMU" -> Right Emu
3328+ "PT" -> Right PT
3329+ x -> Left ("Unable to parse DimensionUnit from: " <> x)
3330+
3331+instance ToHttpApiData DimensionUnit where
3332+ toQueryParam = \case
3333+ UnitUnspecified -> "UNIT_UNSPECIFIED"
3334+ Emu -> "EMU"
3335+ PT -> "PT"
3336+
3337+instance FromJSON DimensionUnit where
3338+ parseJSON = parseJSONText "DimensionUnit"
3339+
3340+instance ToJSON DimensionUnit where
3341+ toJSON = toJSONText
3342+
3343+-- | The dash style of the outline.
3344+data OutlineDashStyle
3345+ = ODSDashStyleUnspecified
3346+ -- ^ @DASH_STYLE_UNSPECIFIED@
3347+ -- Unspecified dash style.
3348+ | ODSSolid
3349+ -- ^ @SOLID@
3350+ -- Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value
3351+ -- \'solid\'. This is the default dash style.
3352+ | ODSDot
3353+ -- ^ @DOT@
3354+ -- Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value \'dot\'.
3355+ | ODSDash
3356+ -- ^ @DASH@
3357+ -- Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal value
3358+ -- \'dash\'.
3359+ | ODSDashDot
3360+ -- ^ @DASH_DOT@
3361+ -- Alternating dashes and dots. Corresponds to ECMA-376
3362+ -- ST_PresetLineDashVal value \'dashDot\'.
3363+ | ODSLongDash
3364+ -- ^ @LONG_DASH@
3365+ -- Line with large dashes. Corresponds to ECMA-376 ST_PresetLineDashVal
3366+ -- value \'lgDash\'.
3367+ | ODSLongDashDot
3368+ -- ^ @LONG_DASH_DOT@
3369+ -- Alternating large dashes and dots. Corresponds to ECMA-376
3370+ -- ST_PresetLineDashVal value \'lgDashDot\'.
3371+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3372+
3373+instance Hashable OutlineDashStyle
3374+
3375+instance FromHttpApiData OutlineDashStyle where
3376+ parseQueryParam = \case
3377+ "DASH_STYLE_UNSPECIFIED" -> Right ODSDashStyleUnspecified
3378+ "SOLID" -> Right ODSSolid
3379+ "DOT" -> Right ODSDot
3380+ "DASH" -> Right ODSDash
3381+ "DASH_DOT" -> Right ODSDashDot
3382+ "LONG_DASH" -> Right ODSLongDash
3383+ "LONG_DASH_DOT" -> Right ODSLongDashDot
3384+ x -> Left ("Unable to parse OutlineDashStyle from: " <> x)
3385+
3386+instance ToHttpApiData OutlineDashStyle where
3387+ toQueryParam = \case
3388+ ODSDashStyleUnspecified -> "DASH_STYLE_UNSPECIFIED"
3389+ ODSSolid -> "SOLID"
3390+ ODSDot -> "DOT"
3391+ ODSDash -> "DASH"
3392+ ODSDashDot -> "DASH_DOT"
3393+ ODSLongDash -> "LONG_DASH"
3394+ ODSLongDashDot -> "LONG_DASH_DOT"
3395+
3396+instance FromJSON OutlineDashStyle where
3397+ parseJSON = parseJSONText "OutlineDashStyle"
3398+
3399+instance ToJSON OutlineDashStyle where
3400+ toJSON = toJSONText
3401+
3402+-- | The units for translate elements.
3403+data AffineTransformUnit
3404+ = ATUUnitUnspecified
3405+ -- ^ @UNIT_UNSPECIFIED@
3406+ -- The units are unknown.
3407+ | ATUEmu
3408+ -- ^ @EMU@
3409+ -- An English Metric Unit (EMU) is defined as 1\/360,000 of a centimeter
3410+ -- and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point.
3411+ | ATUPT
3412+ -- ^ @PT@
3413+ -- A point, 1\/72 of an inch.
3414+ deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
3415+
3416+instance Hashable AffineTransformUnit
3417+
3418+instance FromHttpApiData AffineTransformUnit where
3419+ parseQueryParam = \case
3420+ "UNIT_UNSPECIFIED" -> Right ATUUnitUnspecified
3421+ "EMU" -> Right ATUEmu
3422+ "PT" -> Right ATUPT
3423+ x -> Left ("Unable to parse AffineTransformUnit from: " <> x)
3424+
3425+instance ToHttpApiData AffineTransformUnit where
3426+ toQueryParam = \case
3427+ ATUUnitUnspecified -> "UNIT_UNSPECIFIED"
3428+ ATUEmu -> "EMU"
3429+ ATUPT -> "PT"
3430+
3431+instance FromJSON AffineTransformUnit where
3432+ parseJSON = parseJSONText "AffineTransformUnit"
3433+
3434+instance ToJSON AffineTransformUnit where
3435+ toJSON = toJSONText
gogol-slides/gogol-slides.cabalnew file+49
@@ -0,0 +1,49 @@
1+name: gogol-slides
2+version: 0.1.1
3+synopsis: Google Slides SDK.
4+homepage: https://github.com/brendanhay/gogol
5+bug-reports: https://github.com/brendanhay/gogol/issues
6+license: OtherLicense
7+license-file: LICENSE
8+author: Brendan Hay
9+maintainer: Brendan Hay <brendan.g.hay@gmail.com>
10+copyright: Copyright (c) 2015-2016 Brendan Hay
11+category: Network, Google, Cloud
12+build-type: Simple
13+cabal-version: >= 1.10
14+extra-source-files: README.md src/.gitkeep
15+
16+description:
17+ An API for creating and editing Google Slides presentations.
18+ .
19+ /Warning:/ This is an experimental prototype/preview release which is still
20+ under exploratory development and not intended for public use, caveat emptor!
21+ .
22+ This library is compatible with version @v1@
23+ of the API.
24+
25+source-repository head
26+ type: git
27+ location: git://github.com/brendanhay/gogol.git
28+
29+library
30+ default-language: Haskell2010
31+ hs-source-dirs: src gen
32+
33+ ghc-options: -Wall
34+
35+ exposed-modules:
36+ Network.Google.Resource.Slides.Presentations.BatchUpdate
37+ , Network.Google.Resource.Slides.Presentations.Create
38+ , Network.Google.Resource.Slides.Presentations.Get
39+ , Network.Google.Resource.Slides.Presentations.Pages.Get
40+ , Network.Google.Slides
41+ , Network.Google.Slides.Types
42+
43+ other-modules:
44+ Network.Google.Slides.Types.Product
45+ , Network.Google.Slides.Types.Sum
46+
47+ build-depends:
48+ gogol-core == 0.1.1.*
49+ , base >= 4.7 && < 5
gogol-slides/src/.gitkeepnew file

No changes to the content.