diff --git a/LICENSE b/LICENSE
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,367 @@
+Mozilla Public License Version 2.0
+==================================
+
+1. Definitions
+--------------
+
+1.1. "Contributor"
+    means each individual or legal entity that creates, contributes to
+    the creation of, or owns Covered Software.
+
+1.2. "Contributor Version"
+    means the combination of the Contributions of others (if any) used
+    by a Contributor and that particular Contributor's Contribution.
+
+1.3. "Contribution"
+    means Covered Software of a particular Contributor.
+
+1.4. "Covered Software"
+    means Source Code Form to which the initial Contributor has attached
+    the notice in Exhibit A, the Executable Form of such Source Code
+    Form, and Modifications of such Source Code Form, in each case
+    including portions thereof.
+
+1.5. "Incompatible With Secondary Licenses"
+    means
+
+    (a) that the initial Contributor has attached the notice described
+        in Exhibit B to the Covered Software; or
+
+    (b) that the Covered Software was made available under the terms of
+        version 1.1 or earlier of the License, but not also under the
+        terms of a Secondary License.
+
+1.6. "Executable Form"
+    means any form of the work other than Source Code Form.
+
+1.7. "Larger Work"
+    means a work that combines Covered Software with other material, in
+    a separate file or files, that is not Covered Software.
+
+1.8. "License"
+    means this document.
+
+1.9. "Licensable"
+    means having the right to grant, to the maximum extent possible,
+    whether at the time of the initial grant or subsequently, any and
+    all of the rights conveyed by this License.
+
+1.10. "Modifications"
+    means any of the following:
+
+    (a) any file in Source Code Form that results from an addition to,
+        deletion from, or modification of the contents of Covered
+        Software; or
+
+    (b) any new file in Source Code Form that contains any Covered
+        Software.
+
+1.11. "Patent Claims" of a Contributor
+    means any patent claim(s), including without limitation, method,
+    process, and apparatus claims, in any patent Licensable by such
+    Contributor that would be infringed, but for the grant of the
+    License, by the making, using, selling, offering for sale, having
+    made, import, or transfer of either its Contributions or its
+    Contributor Version.
+
+1.12. "Secondary License"
+    means either the GNU General Public License, Version 2.0, the GNU
+    Lesser General Public License, Version 2.1, the GNU Affero General
+    Public License, Version 3.0, or any later versions of those
+    licenses.
+
+1.13. "Source Code Form"
+    means the form of the work preferred for making modifications.
+
+1.14. "You" (or "Your")
+    means an individual or a legal entity exercising rights under this
+    License. For legal entities, "You" includes any entity that
+    controls, is controlled by, or is under common control with You. For
+    purposes of this definition, "control" means (a) the power, direct
+    or indirect, to cause the direction or management of such entity,
+    whether by contract or otherwise, or (b) ownership of more than
+    fifty percent (50%) of the outstanding shares or beneficial
+    ownership of such entity.
+
+2. License Grants and Conditions
+--------------------------------
+
+2.1. Grants
+
+Each Contributor hereby grants You a world-wide, royalty-free,
+non-exclusive license:
+
+(a) under intellectual property rights (other than patent or trademark)
+    Licensable by such Contributor to use, reproduce, make available,
+    modify, display, perform, distribute, and otherwise exploit its
+    Contributions, either on an unmodified basis, with Modifications, or
+    as part of a Larger Work; and
+
+(b) under Patent Claims of such Contributor to make, use, sell, offer
+    for sale, have made, import, and otherwise transfer either its
+    Contributions or its Contributor Version.
+
+2.2. Effective Date
+
+The licenses granted in Section 2.1 with respect to any Contribution
+become effective for each Contribution on the date the Contributor first
+distributes such Contribution.
+
+2.3. Limitations on Grant Scope
+
+The licenses granted in this Section 2 are the only rights granted under
+this License. No additional rights or licenses will be implied from the
+distribution or licensing of Covered Software under this License.
+Notwithstanding Section 2.1(b) above, no patent license is granted by a
+Contributor:
+
+(a) for any code that a Contributor has removed from Covered Software;
+    or
+
+(b) for infringements caused by: (i) Your and any other third party's
+    modifications of Covered Software, or (ii) the combination of its
+    Contributions with other software (except as part of its Contributor
+    Version); or
+
+(c) under Patent Claims infringed by Covered Software in the absence of
+    its Contributions.
+
+This License does not grant any rights in the trademarks, service marks,
+or logos of any Contributor (except as may be necessary to comply with
+the notice requirements in Section 3.4).
+
+2.4. Subsequent Licenses
+
+No Contributor makes additional grants as a result of Your choice to
+distribute the Covered Software under a subsequent version of this
+License (see Section 10.2) or under the terms of a Secondary License (if
+permitted under the terms of Section 3.3).
+
+2.5. Representation
+
+Each Contributor represents that the Contributor believes its
+Contributions are its original creation(s) or it has sufficient rights
+to grant the rights to its Contributions conveyed by this License.
+
+2.6. Fair Use
+
+This License is not intended to limit any rights You have under
+applicable copyright doctrines of fair use, fair dealing, or other
+equivalents.
+
+2.7. Conditions
+
+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
+in Section 2.1.
+
+3. Responsibilities
+-------------------
+
+3.1. Distribution of Source Form
+
+All distribution of Covered Software in Source Code Form, including any
+Modifications that You create or to which You contribute, must be under
+the terms of this License. You must inform recipients that the Source
+Code Form of the Covered Software is governed by the terms of this
+License, and how they can obtain a copy of this License. You may not
+attempt to alter or restrict the recipients' rights in the Source Code
+Form.
+
+3.2. Distribution of Executable Form
+
+If You distribute Covered Software in Executable Form then:
+
+(a) such Covered Software must also be made available in Source Code
+    Form, as described in Section 3.1, and You must inform recipients of
+    the Executable Form how they can obtain a copy of such Source Code
+    Form by reasonable means in a timely manner, at a charge no more
+    than the cost of distribution to the recipient; and
+
+(b) You may distribute such Executable Form under the terms of this
+    License, or sublicense it under different terms, provided that the
+    license for the Executable Form does not attempt to limit or alter
+    the recipients' rights in the Source Code Form under this License.
+
+3.3. Distribution of a Larger Work
+
+You may create and distribute a Larger Work under terms of Your choice,
+provided that You also comply with the requirements of this License for
+the Covered Software. If the Larger Work is a combination of Covered
+Software with a work governed by one or more Secondary Licenses, and the
+Covered Software is not Incompatible With Secondary Licenses, this
+License permits You to additionally distribute such Covered Software
+under the terms of such Secondary License(s), so that the recipient of
+the Larger Work may, at their option, further distribute the Covered
+Software under the terms of either this License or such Secondary
+License(s).
+
+3.4. Notices
+
+You may not remove or alter the substance of any license notices
+(including copyright notices, patent notices, disclaimers of warranty,
+or limitations of liability) contained within the Source Code Form of
+the Covered Software, except that You may alter any license notices to
+the extent required to remedy known factual inaccuracies.
+
+3.5. Application of Additional Terms
+
+You may choose to offer, and to charge a fee for, warranty, support,
+indemnity or liability obligations to one or more recipients of Covered
+Software. However, You may do so only on Your own behalf, and not on
+behalf of any Contributor. You must make it absolutely clear that any
+such warranty, support, indemnity, or liability obligation is offered by
+You alone, and You hereby agree to indemnify every Contributor for any
+liability incurred by such Contributor as a result of warranty, support,
+indemnity or liability terms You offer. You may include additional
+disclaimers of warranty and limitations of liability specific to any
+jurisdiction.
+
+4. Inability to Comply Due to Statute or Regulation
+---------------------------------------------------
+
+If it is impossible for You to comply with any of the terms of this
+License with respect to some or all of the Covered Software due to
+statute, judicial order, or regulation then You must: (a) comply with
+the terms of this License to the maximum extent possible; and (b)
+describe the limitations and the code they affect. Such description must
+be placed in a text file included with all distributions of the Covered
+Software under this License. Except to the extent prohibited by statute
+or regulation, such description must be sufficiently detailed for a
+recipient of ordinary skill to be able to understand it.
+
+5. Termination
+--------------
+
+5.1. The rights granted under this License will terminate automatically
+if You fail to comply with any of its terms. However, if You become
+compliant, then the rights granted under this License from a particular
+Contributor are reinstated (a) provisionally, unless and until such
+Contributor explicitly and finally terminates Your grants, and (b) on an
+ongoing basis, if such Contributor fails to notify You of the
+non-compliance by some reasonable means prior to 60 days after You have
+come back into compliance. Moreover, Your grants from a particular
+Contributor are reinstated on an ongoing basis if such Contributor
+notifies You of the non-compliance by some reasonable means, this is the
+first time You have received notice of non-compliance with this License
+from such Contributor, and You become compliant prior to 30 days after
+Your receipt of the notice.
+
+5.2. If You initiate litigation against any entity by asserting a patent
+infringement claim (excluding declaratory judgment actions,
+counter-claims, and cross-claims) alleging that a Contributor Version
+directly or indirectly infringes any patent, then the rights granted to
+You by any and all Contributors for the Covered Software under Section
+2.1 of this License shall terminate.
+
+5.3. In the event of termination under Sections 5.1 or 5.2 above, all
+end user license agreements (excluding distributors and resellers) which
+have been validly granted by You or Your distributors under this License
+prior to termination shall survive termination.
+
+************************************************************************
+*                                                                      *
+*  6. Disclaimer of Warranty                                           *
+*  -------------------------                                           *
+*                                                                      *
+*  Covered Software is provided under this License on an "as is"       *
+*  basis, without warranty of any kind, either expressed, implied, or  *
+*  statutory, including, without limitation, warranties that the       *
+*  Covered Software is free of defects, merchantable, fit for a        *
+*  particular purpose or non-infringing. The entire risk as to the     *
+*  quality and performance of the Covered Software is with You.        *
+*  Should any Covered Software prove defective in any respect, You     *
+*  (not any Contributor) assume the cost of any necessary servicing,   *
+*  repair, or correction. This disclaimer of warranty constitutes an   *
+*  essential part of this License. No use of any Covered Software is   *
+*  authorized under this License except under this disclaimer.         *
+*                                                                      *
+************************************************************************
+
+************************************************************************
+*                                                                      *
+*  7. Limitation of Liability                                          *
+*  --------------------------                                          *
+*                                                                      *
+*  Under no circumstances and under no legal theory, whether tort      *
+*  (including negligence), contract, or otherwise, shall any           *
+*  Contributor, or anyone who distributes Covered Software as          *
+*  permitted above, be liable to You for any direct, indirect,         *
+*  special, incidental, or consequential damages of any character      *
+*  including, without limitation, damages for lost profits, loss of    *
+*  goodwill, work stoppage, computer failure or malfunction, or any    *
+*  and all other commercial damages or losses, even if such party      *
+*  shall have been informed of the possibility of such damages. This   *
+*  limitation of liability shall not apply to liability for death or   *
+*  personal injury resulting from such party's negligence to the       *
+*  extent applicable law prohibits such limitation. Some               *
+*  jurisdictions do not allow the exclusion or limitation of           *
+*  incidental or consequential damages, so this exclusion and          *
+*  limitation may not apply to You.                                    *
+*                                                                      *
+************************************************************************
+
+8. Litigation
+-------------
+
+Any litigation relating to this License may be brought only in the
+courts of a jurisdiction where the defendant maintains its principal
+place of business and such litigation shall be governed by laws of that
+jurisdiction, without reference to its conflict-of-law provisions.
+Nothing in this Section shall prevent a party's ability to bring
+cross-claims or counter-claims.
+
+9. Miscellaneous
+----------------
+
+This License represents the complete agreement concerning the subject
+matter hereof. If any provision of this License is held to be
+unenforceable, such provision shall be reformed only to the extent
+necessary to make it enforceable. Any law or regulation which provides
+that the language of a contract shall be construed against the drafter
+shall not be used to construe this License against a Contributor.
+
+10. Versions of the License
+---------------------------
+
+10.1. New Versions
+
+Mozilla Foundation is the license steward. Except as provided in Section
+10.3, no one other than the license steward has the right to modify or
+publish new versions of this License. Each version will be given a
+distinguishing version number.
+
+10.2. Effect of New Versions
+
+You may distribute the Covered Software under the terms of the version
+of the License under which You originally received the Covered Software,
+or under the terms of any subsequent version published by the license
+steward.
+
+10.3. Modified Versions
+
+If you create software not governed by this License, and you want to
+create a new license for such software, you may create and use a
+modified version of this License if you rename the license and remove
+any references to the name of the license steward (except to note that
+such modified license differs from this License).
+
+10.4. Distributing Source Code Form that is Incompatible With Secondary
+Licenses
+
+If You choose to distribute Source Code Form that is Incompatible With
+Secondary Licenses under the terms of this version of the License, the
+notice described in Exhibit B of this License must be attached.
+
+Exhibit A - Source Code Form License Notice
+-------------------------------------------
+
+  This Source Code Form is subject to the terms of the Mozilla Public
+  License, v. 2.0. If a copy of the MPL was not distributed with this
+  file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+If it is not possible or desirable to put the notice in a particular
+file, then You may include the notice in a location (such as a LICENSE
+file in a relevant directory) where a recipient would be likely to look
+for such a notice.
+
+You may add additional accurate notices of copyright ownership.
diff --git a/README.md b/README.md
new file mode 100644
--- /dev/null
+++ b/README.md
@@ -0,0 +1,28 @@
+# gogol-firebase-dynamiclinks
+
+* [Version](#version)
+* [Description](#description)
+* [Contribute](#contribute)
+* [Licence](#licence)
+
+
+## Version
+
+`0.1.1`
+
+
+## Description
+
+A client library for the Google Firebase Dynamic Links.
+
+
+## Contribute
+
+For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/gogol/issues).
+
+> _Note:_ this library is an auto-generated Haskell package. Please see `gogol-gen` for more information.
+
+
+## Licence
+
+`gogol-firebase-dynamiclinks` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).
diff --git a/Setup.hs b/Setup.hs
new file mode 100644
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,2 @@
+import           Distribution.Simple
+main = defaultMain
diff --git a/gen/Network/Google/FirebaseDynamicLinks.hs b/gen/Network/Google/FirebaseDynamicLinks.hs
new file mode 100644
--- /dev/null
+++ b/gen/Network/Google/FirebaseDynamicLinks.hs
@@ -0,0 +1,143 @@
+{-# LANGUAGE DataKinds         #-}
+{-# LANGUAGE NoImplicitPrelude #-}
+{-# LANGUAGE TypeOperators     #-}
+
+{-# OPTIONS_GHC -fno-warn-unused-imports    #-}
+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
+
+-- |
+-- Module      : Network.Google.FirebaseDynamicLinks
+-- Copyright   : (c) 2015-2016 Brendan Hay
+-- License     : Mozilla Public License, v. 2.0.
+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>
+-- Stability   : auto-generated
+-- Portability : non-portable (GHC extensions)
+--
+-- Firebase Dynamic Links API enables third party developers to
+-- programmatically create and manage Dynamic Links.
+--
+-- /See:/ <https://firebase.google.com/docs/dynamic-links/ Firebase Dynamic Links API Reference>
+module Network.Google.FirebaseDynamicLinks
+    (
+    -- * Service Configuration
+      firebaseDynamicLinksService
+
+    -- * OAuth Scopes
+    , firebaseScope
+
+    -- * API Declaration
+    , FirebaseDynamicLinksAPI
+
+    -- * Resources
+
+    -- ** firebasedynamiclinks.shortLinks.create
+    , module Network.Google.Resource.FirebaseDynamicLinks.ShortLinks.Create
+
+    -- * Types
+
+    -- ** Suffix
+    , Suffix
+    , suffix
+    , sOption
+
+    -- ** DynamicLinkWarning
+    , DynamicLinkWarning
+    , dynamicLinkWarning
+    , dlwWarningCode
+    , dlwWarningMessage
+
+    -- ** CreateShortDynamicLinkRequest
+    , CreateShortDynamicLinkRequest
+    , createShortDynamicLinkRequest
+    , csdlrLongDynamicLink
+    , csdlrSuffix
+    , csdlrDynamicLinkInfo
+
+    -- ** SocialMetaTagInfo
+    , SocialMetaTagInfo
+    , socialMetaTagInfo
+    , smtiSocialImageLink
+    , smtiSocialDescription
+    , smtiSocialTitle
+
+    -- ** CreateShortDynamicLinkResponse
+    , CreateShortDynamicLinkResponse
+    , createShortDynamicLinkResponse
+    , csdlrPreviewLink
+    , csdlrWarning
+    , csdlrShortLink
+
+    -- ** IosInfo
+    , IosInfo
+    , iosInfo
+    , iiIosBundleId
+    , iiIosIPadBundleId
+    , iiIosAppStoreId
+    , iiIosIPadFallbackLink
+    , iiIosCustomScheme
+    , iiIosFallbackLink
+
+    -- ** DynamicLinkInfo
+    , DynamicLinkInfo
+    , dynamicLinkInfo
+    , dliSocialMetaTagInfo
+    , dliDynamicLinkDomain
+    , dliLink
+    , dliIosInfo
+    , dliIsAd
+    , dliAndroidInfo
+    , dliAnalyticsInfo
+
+    -- ** SuffixOption
+    , SuffixOption (..)
+
+    -- ** Xgafv
+    , Xgafv (..)
+
+    -- ** AndroidInfo
+    , AndroidInfo
+    , androidInfo
+    , aiAndroidMinPackageVersionCode
+    , aiAndroidFallbackLink
+    , aiAndroidLink
+    , aiAndroidPackageName
+
+    -- ** DynamicLinkWarningWarningCode
+    , DynamicLinkWarningWarningCode (..)
+
+    -- ** AnalyticsInfo
+    , AnalyticsInfo
+    , analyticsInfo
+    , aiItunesConnectAnalytics
+    , aiGooglePlayAnalytics
+
+    -- ** ITunesConnectAnalytics
+    , ITunesConnectAnalytics
+    , iTunesConnectAnalytics
+    , itcaAt
+    , itcaMt
+    , itcaPt
+    , itcaCt
+
+    -- ** GooglePlayAnalytics
+    , GooglePlayAnalytics
+    , googlePlayAnalytics
+    , gpaUtmContent
+    , gpaUtmMedium
+    , gpaUtmTerm
+    , gpaUtmCampaign
+    , gpaGclid
+    , gpaUtmSource
+    ) where
+
+import           Network.Google.FirebaseDynamicLinks.Types
+import           Network.Google.Prelude
+import           Network.Google.Resource.FirebaseDynamicLinks.ShortLinks.Create
+
+{- $resources
+TODO
+-}
+
+-- | Represents the entirety of the methods and resources available for the Firebase Dynamic Links API service.
+type FirebaseDynamicLinksAPI =
+     ShortLinksCreateResource
diff --git a/gen/Network/Google/FirebaseDynamicLinks/Types.hs b/gen/Network/Google/FirebaseDynamicLinks/Types.hs
new file mode 100644
--- /dev/null
+++ b/gen/Network/Google/FirebaseDynamicLinks/Types.hs
@@ -0,0 +1,133 @@
+{-# LANGUAGE DataKinds          #-}
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric      #-}
+{-# LANGUAGE NoImplicitPrelude  #-}
+{-# LANGUAGE OverloadedStrings  #-}
+
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+
+-- |
+-- Module      : Network.Google.FirebaseDynamicLinks.Types
+-- Copyright   : (c) 2015-2016 Brendan Hay
+-- License     : Mozilla Public License, v. 2.0.
+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>
+-- Stability   : auto-generated
+-- Portability : non-portable (GHC extensions)
+--
+module Network.Google.FirebaseDynamicLinks.Types
+    (
+    -- * Service Configuration
+      firebaseDynamicLinksService
+
+    -- * OAuth Scopes
+    , firebaseScope
+
+    -- * Suffix
+    , Suffix
+    , suffix
+    , sOption
+
+    -- * DynamicLinkWarning
+    , DynamicLinkWarning
+    , dynamicLinkWarning
+    , dlwWarningCode
+    , dlwWarningMessage
+
+    -- * CreateShortDynamicLinkRequest
+    , CreateShortDynamicLinkRequest
+    , createShortDynamicLinkRequest
+    , csdlrLongDynamicLink
+    , csdlrSuffix
+    , csdlrDynamicLinkInfo
+
+    -- * SocialMetaTagInfo
+    , SocialMetaTagInfo
+    , socialMetaTagInfo
+    , smtiSocialImageLink
+    , smtiSocialDescription
+    , smtiSocialTitle
+
+    -- * CreateShortDynamicLinkResponse
+    , CreateShortDynamicLinkResponse
+    , createShortDynamicLinkResponse
+    , csdlrPreviewLink
+    , csdlrWarning
+    , csdlrShortLink
+
+    -- * IosInfo
+    , IosInfo
+    , iosInfo
+    , iiIosBundleId
+    , iiIosIPadBundleId
+    , iiIosAppStoreId
+    , iiIosIPadFallbackLink
+    , iiIosCustomScheme
+    , iiIosFallbackLink
+
+    -- * DynamicLinkInfo
+    , DynamicLinkInfo
+    , dynamicLinkInfo
+    , dliSocialMetaTagInfo
+    , dliDynamicLinkDomain
+    , dliLink
+    , dliIosInfo
+    , dliIsAd
+    , dliAndroidInfo
+    , dliAnalyticsInfo
+
+    -- * SuffixOption
+    , SuffixOption (..)
+
+    -- * Xgafv
+    , Xgafv (..)
+
+    -- * AndroidInfo
+    , AndroidInfo
+    , androidInfo
+    , aiAndroidMinPackageVersionCode
+    , aiAndroidFallbackLink
+    , aiAndroidLink
+    , aiAndroidPackageName
+
+    -- * DynamicLinkWarningWarningCode
+    , DynamicLinkWarningWarningCode (..)
+
+    -- * AnalyticsInfo
+    , AnalyticsInfo
+    , analyticsInfo
+    , aiItunesConnectAnalytics
+    , aiGooglePlayAnalytics
+
+    -- * ITunesConnectAnalytics
+    , ITunesConnectAnalytics
+    , iTunesConnectAnalytics
+    , itcaAt
+    , itcaMt
+    , itcaPt
+    , itcaCt
+
+    -- * GooglePlayAnalytics
+    , GooglePlayAnalytics
+    , googlePlayAnalytics
+    , gpaUtmContent
+    , gpaUtmMedium
+    , gpaUtmTerm
+    , gpaUtmCampaign
+    , gpaGclid
+    , gpaUtmSource
+    ) where
+
+import           Network.Google.FirebaseDynamicLinks.Types.Product
+import           Network.Google.FirebaseDynamicLinks.Types.Sum
+import           Network.Google.Prelude
+
+-- | Default request referring to version 'v1' of the Firebase Dynamic Links API. This contains the host and root path used as a starting point for constructing service requests.
+firebaseDynamicLinksService :: ServiceConfig
+firebaseDynamicLinksService
+  = defaultService
+      (ServiceId "firebasedynamiclinks:v1")
+      "firebasedynamiclinks.googleapis.com"
+
+-- | View and administer all your Firebase data and settings
+firebaseScope :: Proxy '["https://www.googleapis.com/auth/firebase"]
+firebaseScope = Proxy;
diff --git a/gen/Network/Google/FirebaseDynamicLinks/Types/Product.hs b/gen/Network/Google/FirebaseDynamicLinks/Types/Product.hs
new file mode 100644
--- /dev/null
+++ b/gen/Network/Google/FirebaseDynamicLinks/Types/Product.hs
@@ -0,0 +1,805 @@
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric      #-}
+{-# LANGUAGE NoImplicitPrelude  #-}
+{-# LANGUAGE OverloadedStrings  #-}
+{-# LANGUAGE RecordWildCards    #-}
+
+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+
+-- |
+-- Module      : Network.Google.FirebaseDynamicLinks.Types.Product
+-- Copyright   : (c) 2015-2016 Brendan Hay
+-- License     : Mozilla Public License, v. 2.0.
+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>
+-- Stability   : auto-generated
+-- Portability : non-portable (GHC extensions)
+--
+module Network.Google.FirebaseDynamicLinks.Types.Product where
+
+import           Network.Google.FirebaseDynamicLinks.Types.Sum
+import           Network.Google.Prelude
+
+-- | Short Dynamic Link suffix.
+--
+-- /See:/ 'suffix' smart constructor.
+newtype Suffix = Suffix'
+    { _sOption :: Maybe SuffixOption
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'Suffix' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'sOption'
+suffix
+    :: Suffix
+suffix =
+    Suffix'
+    { _sOption = Nothing
+    }
+
+-- | Suffix option.
+sOption :: Lens' Suffix (Maybe SuffixOption)
+sOption = lens _sOption (\ s a -> s{_sOption = a})
+
+instance FromJSON Suffix where
+        parseJSON
+          = withObject "Suffix"
+              (\ o -> Suffix' <$> (o .:? "option"))
+
+instance ToJSON Suffix where
+        toJSON Suffix'{..}
+          = object (catMaybes [("option" .=) <$> _sOption])
+
+-- | Dynamic Links warning messages.
+--
+-- /See:/ 'dynamicLinkWarning' smart constructor.
+data DynamicLinkWarning = DynamicLinkWarning'
+    { _dlwWarningCode    :: !(Maybe DynamicLinkWarningWarningCode)
+    , _dlwWarningMessage :: !(Maybe Text)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'DynamicLinkWarning' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'dlwWarningCode'
+--
+-- * 'dlwWarningMessage'
+dynamicLinkWarning
+    :: DynamicLinkWarning
+dynamicLinkWarning =
+    DynamicLinkWarning'
+    { _dlwWarningCode = Nothing
+    , _dlwWarningMessage = Nothing
+    }
+
+-- | The warning code.
+dlwWarningCode :: Lens' DynamicLinkWarning (Maybe DynamicLinkWarningWarningCode)
+dlwWarningCode
+  = lens _dlwWarningCode
+      (\ s a -> s{_dlwWarningCode = a})
+
+-- | The warning message to help developers improve their requests.
+dlwWarningMessage :: Lens' DynamicLinkWarning (Maybe Text)
+dlwWarningMessage
+  = lens _dlwWarningMessage
+      (\ s a -> s{_dlwWarningMessage = a})
+
+instance FromJSON DynamicLinkWarning where
+        parseJSON
+          = withObject "DynamicLinkWarning"
+              (\ o ->
+                 DynamicLinkWarning' <$>
+                   (o .:? "warningCode") <*> (o .:? "warningMessage"))
+
+instance ToJSON DynamicLinkWarning where
+        toJSON DynamicLinkWarning'{..}
+          = object
+              (catMaybes
+                 [("warningCode" .=) <$> _dlwWarningCode,
+                  ("warningMessage" .=) <$> _dlwWarningMessage])
+
+-- | Request to create a short Dynamic Link.
+--
+-- /See:/ 'createShortDynamicLinkRequest' smart constructor.
+data CreateShortDynamicLinkRequest = CreateShortDynamicLinkRequest'
+    { _csdlrLongDynamicLink :: !(Maybe Text)
+    , _csdlrSuffix          :: !(Maybe Suffix)
+    , _csdlrDynamicLinkInfo :: !(Maybe DynamicLinkInfo)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'CreateShortDynamicLinkRequest' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'csdlrLongDynamicLink'
+--
+-- * 'csdlrSuffix'
+--
+-- * 'csdlrDynamicLinkInfo'
+createShortDynamicLinkRequest
+    :: CreateShortDynamicLinkRequest
+createShortDynamicLinkRequest =
+    CreateShortDynamicLinkRequest'
+    { _csdlrLongDynamicLink = Nothing
+    , _csdlrSuffix = Nothing
+    , _csdlrDynamicLinkInfo = Nothing
+    }
+
+-- | Full long Dynamic Link URL with desired query parameters specified. For
+-- example,
+-- \"https:\/\/sample.app.goo.gl\/?link=http:\/\/www.google.com&apn=com.sample\",
+-- [Learn
+-- more](https:\/\/firebase.google.com\/docs\/dynamic-links\/android#create-a-dynamic-link-programmatically).
+csdlrLongDynamicLink :: Lens' CreateShortDynamicLinkRequest (Maybe Text)
+csdlrLongDynamicLink
+  = lens _csdlrLongDynamicLink
+      (\ s a -> s{_csdlrLongDynamicLink = a})
+
+-- | Short Dynamic Link suffix. Optional.
+csdlrSuffix :: Lens' CreateShortDynamicLinkRequest (Maybe Suffix)
+csdlrSuffix
+  = lens _csdlrSuffix (\ s a -> s{_csdlrSuffix = a})
+
+-- | Information about the Dynamic Link to be shortened. [Learn
+-- more](https:\/\/firebase.google.com\/docs\/dynamic-links\/android#create-a-dynamic-link-programmatically).
+csdlrDynamicLinkInfo :: Lens' CreateShortDynamicLinkRequest (Maybe DynamicLinkInfo)
+csdlrDynamicLinkInfo
+  = lens _csdlrDynamicLinkInfo
+      (\ s a -> s{_csdlrDynamicLinkInfo = a})
+
+instance FromJSON CreateShortDynamicLinkRequest where
+        parseJSON
+          = withObject "CreateShortDynamicLinkRequest"
+              (\ o ->
+                 CreateShortDynamicLinkRequest' <$>
+                   (o .:? "longDynamicLink") <*> (o .:? "suffix") <*>
+                     (o .:? "dynamicLinkInfo"))
+
+instance ToJSON CreateShortDynamicLinkRequest where
+        toJSON CreateShortDynamicLinkRequest'{..}
+          = object
+              (catMaybes
+                 [("longDynamicLink" .=) <$> _csdlrLongDynamicLink,
+                  ("suffix" .=) <$> _csdlrSuffix,
+                  ("dynamicLinkInfo" .=) <$> _csdlrDynamicLinkInfo])
+
+-- | Parameters for social meta tag params. Used to set meta tag data for
+-- link previews on social sites.
+--
+-- /See:/ 'socialMetaTagInfo' smart constructor.
+data SocialMetaTagInfo = SocialMetaTagInfo'
+    { _smtiSocialImageLink   :: !(Maybe Text)
+    , _smtiSocialDescription :: !(Maybe Text)
+    , _smtiSocialTitle       :: !(Maybe Text)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'SocialMetaTagInfo' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'smtiSocialImageLink'
+--
+-- * 'smtiSocialDescription'
+--
+-- * 'smtiSocialTitle'
+socialMetaTagInfo
+    :: SocialMetaTagInfo
+socialMetaTagInfo =
+    SocialMetaTagInfo'
+    { _smtiSocialImageLink = Nothing
+    , _smtiSocialDescription = Nothing
+    , _smtiSocialTitle = Nothing
+    }
+
+-- | An image url string. Optional.
+smtiSocialImageLink :: Lens' SocialMetaTagInfo (Maybe Text)
+smtiSocialImageLink
+  = lens _smtiSocialImageLink
+      (\ s a -> s{_smtiSocialImageLink = a})
+
+-- | A short description of the link. Optional.
+smtiSocialDescription :: Lens' SocialMetaTagInfo (Maybe Text)
+smtiSocialDescription
+  = lens _smtiSocialDescription
+      (\ s a -> s{_smtiSocialDescription = a})
+
+-- | Title to be displayed. Optional.
+smtiSocialTitle :: Lens' SocialMetaTagInfo (Maybe Text)
+smtiSocialTitle
+  = lens _smtiSocialTitle
+      (\ s a -> s{_smtiSocialTitle = a})
+
+instance FromJSON SocialMetaTagInfo where
+        parseJSON
+          = withObject "SocialMetaTagInfo"
+              (\ o ->
+                 SocialMetaTagInfo' <$>
+                   (o .:? "socialImageLink") <*>
+                     (o .:? "socialDescription")
+                     <*> (o .:? "socialTitle"))
+
+instance ToJSON SocialMetaTagInfo where
+        toJSON SocialMetaTagInfo'{..}
+          = object
+              (catMaybes
+                 [("socialImageLink" .=) <$> _smtiSocialImageLink,
+                  ("socialDescription" .=) <$> _smtiSocialDescription,
+                  ("socialTitle" .=) <$> _smtiSocialTitle])
+
+-- | Response to create a short Dynamic Link.
+--
+-- /See:/ 'createShortDynamicLinkResponse' smart constructor.
+data CreateShortDynamicLinkResponse = CreateShortDynamicLinkResponse'
+    { _csdlrPreviewLink :: !(Maybe Text)
+    , _csdlrWarning     :: !(Maybe [DynamicLinkWarning])
+    , _csdlrShortLink   :: !(Maybe Text)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'CreateShortDynamicLinkResponse' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'csdlrPreviewLink'
+--
+-- * 'csdlrWarning'
+--
+-- * 'csdlrShortLink'
+createShortDynamicLinkResponse
+    :: CreateShortDynamicLinkResponse
+createShortDynamicLinkResponse =
+    CreateShortDynamicLinkResponse'
+    { _csdlrPreviewLink = Nothing
+    , _csdlrWarning = Nothing
+    , _csdlrShortLink = Nothing
+    }
+
+-- | Preivew link to show the link flow chart.
+csdlrPreviewLink :: Lens' CreateShortDynamicLinkResponse (Maybe Text)
+csdlrPreviewLink
+  = lens _csdlrPreviewLink
+      (\ s a -> s{_csdlrPreviewLink = a})
+
+-- | Information about potential warnings on link creation.
+csdlrWarning :: Lens' CreateShortDynamicLinkResponse [DynamicLinkWarning]
+csdlrWarning
+  = lens _csdlrWarning (\ s a -> s{_csdlrWarning = a})
+      . _Default
+      . _Coerce
+
+-- | Short Dynamic Link value. e.g. https:\/\/abcd.app.goo.gl\/wxyz
+csdlrShortLink :: Lens' CreateShortDynamicLinkResponse (Maybe Text)
+csdlrShortLink
+  = lens _csdlrShortLink
+      (\ s a -> s{_csdlrShortLink = a})
+
+instance FromJSON CreateShortDynamicLinkResponse
+         where
+        parseJSON
+          = withObject "CreateShortDynamicLinkResponse"
+              (\ o ->
+                 CreateShortDynamicLinkResponse' <$>
+                   (o .:? "previewLink") <*>
+                     (o .:? "warning" .!= mempty)
+                     <*> (o .:? "shortLink"))
+
+instance ToJSON CreateShortDynamicLinkResponse where
+        toJSON CreateShortDynamicLinkResponse'{..}
+          = object
+              (catMaybes
+                 [("previewLink" .=) <$> _csdlrPreviewLink,
+                  ("warning" .=) <$> _csdlrWarning,
+                  ("shortLink" .=) <$> _csdlrShortLink])
+
+-- | iOS related attributes to the Dynamic Link..
+--
+-- /See:/ 'iosInfo' smart constructor.
+data IosInfo = IosInfo'
+    { _iiIosBundleId         :: !(Maybe Text)
+    , _iiIosIPadBundleId     :: !(Maybe Text)
+    , _iiIosAppStoreId       :: !(Maybe Text)
+    , _iiIosIPadFallbackLink :: !(Maybe Text)
+    , _iiIosCustomScheme     :: !(Maybe Text)
+    , _iiIosFallbackLink     :: !(Maybe Text)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'IosInfo' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'iiIosBundleId'
+--
+-- * 'iiIosIPadBundleId'
+--
+-- * 'iiIosAppStoreId'
+--
+-- * 'iiIosIPadFallbackLink'
+--
+-- * 'iiIosCustomScheme'
+--
+-- * 'iiIosFallbackLink'
+iosInfo
+    :: IosInfo
+iosInfo =
+    IosInfo'
+    { _iiIosBundleId = Nothing
+    , _iiIosIPadBundleId = Nothing
+    , _iiIosAppStoreId = Nothing
+    , _iiIosIPadFallbackLink = Nothing
+    , _iiIosCustomScheme = Nothing
+    , _iiIosFallbackLink = Nothing
+    }
+
+-- | iOS bundle ID of the app.
+iiIosBundleId :: Lens' IosInfo (Maybe Text)
+iiIosBundleId
+  = lens _iiIosBundleId
+      (\ s a -> s{_iiIosBundleId = a})
+
+-- | iPad bundle ID of the app.
+iiIosIPadBundleId :: Lens' IosInfo (Maybe Text)
+iiIosIPadBundleId
+  = lens _iiIosIPadBundleId
+      (\ s a -> s{_iiIosIPadBundleId = a})
+
+-- | iOS App Store ID.
+iiIosAppStoreId :: Lens' IosInfo (Maybe Text)
+iiIosAppStoreId
+  = lens _iiIosAppStoreId
+      (\ s a -> s{_iiIosAppStoreId = a})
+
+-- | If specified, this overrides the ios_fallback_link value on iPads.
+iiIosIPadFallbackLink :: Lens' IosInfo (Maybe Text)
+iiIosIPadFallbackLink
+  = lens _iiIosIPadFallbackLink
+      (\ s a -> s{_iiIosIPadFallbackLink = a})
+
+-- | Custom (destination) scheme to use for iOS. By default, we’ll use the
+-- bundle ID as the custom scheme. Developer can override this behavior
+-- using this param.
+iiIosCustomScheme :: Lens' IosInfo (Maybe Text)
+iiIosCustomScheme
+  = lens _iiIosCustomScheme
+      (\ s a -> s{_iiIosCustomScheme = a})
+
+-- | Link to open on iOS if the app is not installed.
+iiIosFallbackLink :: Lens' IosInfo (Maybe Text)
+iiIosFallbackLink
+  = lens _iiIosFallbackLink
+      (\ s a -> s{_iiIosFallbackLink = a})
+
+instance FromJSON IosInfo where
+        parseJSON
+          = withObject "IosInfo"
+              (\ o ->
+                 IosInfo' <$>
+                   (o .:? "iosBundleId") <*> (o .:? "iosIpadBundleId")
+                     <*> (o .:? "iosAppStoreId")
+                     <*> (o .:? "iosIpadFallbackLink")
+                     <*> (o .:? "iosCustomScheme")
+                     <*> (o .:? "iosFallbackLink"))
+
+instance ToJSON IosInfo where
+        toJSON IosInfo'{..}
+          = object
+              (catMaybes
+                 [("iosBundleId" .=) <$> _iiIosBundleId,
+                  ("iosIpadBundleId" .=) <$> _iiIosIPadBundleId,
+                  ("iosAppStoreId" .=) <$> _iiIosAppStoreId,
+                  ("iosIpadFallbackLink" .=) <$>
+                    _iiIosIPadFallbackLink,
+                  ("iosCustomScheme" .=) <$> _iiIosCustomScheme,
+                  ("iosFallbackLink" .=) <$> _iiIosFallbackLink])
+
+-- | Information about a Dynamic Link.
+--
+-- /See:/ 'dynamicLinkInfo' smart constructor.
+data DynamicLinkInfo = DynamicLinkInfo'
+    { _dliSocialMetaTagInfo :: !(Maybe SocialMetaTagInfo)
+    , _dliDynamicLinkDomain :: !(Maybe Text)
+    , _dliLink              :: !(Maybe Text)
+    , _dliIosInfo           :: !(Maybe IosInfo)
+    , _dliIsAd              :: !(Maybe Bool)
+    , _dliAndroidInfo       :: !(Maybe AndroidInfo)
+    , _dliAnalyticsInfo     :: !(Maybe AnalyticsInfo)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'DynamicLinkInfo' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'dliSocialMetaTagInfo'
+--
+-- * 'dliDynamicLinkDomain'
+--
+-- * 'dliLink'
+--
+-- * 'dliIosInfo'
+--
+-- * 'dliIsAd'
+--
+-- * 'dliAndroidInfo'
+--
+-- * 'dliAnalyticsInfo'
+dynamicLinkInfo
+    :: DynamicLinkInfo
+dynamicLinkInfo =
+    DynamicLinkInfo'
+    { _dliSocialMetaTagInfo = Nothing
+    , _dliDynamicLinkDomain = Nothing
+    , _dliLink = Nothing
+    , _dliIosInfo = Nothing
+    , _dliIsAd = Nothing
+    , _dliAndroidInfo = Nothing
+    , _dliAnalyticsInfo = Nothing
+    }
+
+-- | Parameters for social meta tag params. Used to set meta tag data for
+-- link previews on social sites.
+dliSocialMetaTagInfo :: Lens' DynamicLinkInfo (Maybe SocialMetaTagInfo)
+dliSocialMetaTagInfo
+  = lens _dliSocialMetaTagInfo
+      (\ s a -> s{_dliSocialMetaTagInfo = a})
+
+-- | Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl [Learn
+-- more](https:\/\/firebase.google.com\/docs\/dynamic-links\/android#set-up-firebase-and-the-dynamic-links-sdk)
+-- on how to set up Dynamic Link domain associated with your Firebase
+-- project. Required.
+dliDynamicLinkDomain :: Lens' DynamicLinkInfo (Maybe Text)
+dliDynamicLinkDomain
+  = lens _dliDynamicLinkDomain
+      (\ s a -> s{_dliDynamicLinkDomain = a})
+
+-- | The link your app will open, You can specify any URL your app can
+-- handle. This link must be a well-formatted URL, be properly URL-encoded,
+-- and use the HTTP or HTTPS scheme. See \'link\' parameters in the
+-- [documentation](https:\/\/firebase.google.com\/docs\/dynamic-links\/android#create-a-dynamic-link-programmatically).
+-- Required.
+dliLink :: Lens' DynamicLinkInfo (Maybe Text)
+dliLink = lens _dliLink (\ s a -> s{_dliLink = a})
+
+-- | iOS related information. See iOS related parameters in the
+-- [documentation](https:\/\/firebase.google.com\/docs\/dynamic-links\/ios#create-a-dynamic-link-programmatically).
+dliIosInfo :: Lens' DynamicLinkInfo (Maybe IosInfo)
+dliIosInfo
+  = lens _dliIosInfo (\ s a -> s{_dliIosInfo = a})
+
+-- | Declares that the Dynamic Link is used in an advertisement. See the
+-- \'ad\' parameter in the
+-- [documentation](https:\/\/firebase.google.com\/docs\/dynamic-links\/android#create-a-dynamic-link-programmatically).
+dliIsAd :: Lens' DynamicLinkInfo (Maybe Bool)
+dliIsAd = lens _dliIsAd (\ s a -> s{_dliIsAd = a})
+
+-- | Android related information. See Android related parameters in the
+-- [documentation](https:\/\/firebase.google.com\/docs\/dynamic-links\/android#create-a-dynamic-link-programmatically).
+dliAndroidInfo :: Lens' DynamicLinkInfo (Maybe AndroidInfo)
+dliAndroidInfo
+  = lens _dliAndroidInfo
+      (\ s a -> s{_dliAndroidInfo = a})
+
+-- | Parameters used for tracking. See all tracking parameters in the
+-- [documentation](https:\/\/firebase.google.com\/docs\/dynamic-links\/android#create-a-dynamic-link-programmatically).
+dliAnalyticsInfo :: Lens' DynamicLinkInfo (Maybe AnalyticsInfo)
+dliAnalyticsInfo
+  = lens _dliAnalyticsInfo
+      (\ s a -> s{_dliAnalyticsInfo = a})
+
+instance FromJSON DynamicLinkInfo where
+        parseJSON
+          = withObject "DynamicLinkInfo"
+              (\ o ->
+                 DynamicLinkInfo' <$>
+                   (o .:? "socialMetaTagInfo") <*>
+                     (o .:? "dynamicLinkDomain")
+                     <*> (o .:? "link")
+                     <*> (o .:? "iosInfo")
+                     <*> (o .:? "isAd")
+                     <*> (o .:? "androidInfo")
+                     <*> (o .:? "analyticsInfo"))
+
+instance ToJSON DynamicLinkInfo where
+        toJSON DynamicLinkInfo'{..}
+          = object
+              (catMaybes
+                 [("socialMetaTagInfo" .=) <$> _dliSocialMetaTagInfo,
+                  ("dynamicLinkDomain" .=) <$> _dliDynamicLinkDomain,
+                  ("link" .=) <$> _dliLink,
+                  ("iosInfo" .=) <$> _dliIosInfo,
+                  ("isAd" .=) <$> _dliIsAd,
+                  ("androidInfo" .=) <$> _dliAndroidInfo,
+                  ("analyticsInfo" .=) <$> _dliAnalyticsInfo])
+
+-- | Android related attributes to the Dynamic Link.
+--
+-- /See:/ 'androidInfo' smart constructor.
+data AndroidInfo = AndroidInfo'
+    { _aiAndroidMinPackageVersionCode :: !(Maybe Text)
+    , _aiAndroidFallbackLink          :: !(Maybe Text)
+    , _aiAndroidLink                  :: !(Maybe Text)
+    , _aiAndroidPackageName           :: !(Maybe Text)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'AndroidInfo' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'aiAndroidMinPackageVersionCode'
+--
+-- * 'aiAndroidFallbackLink'
+--
+-- * 'aiAndroidLink'
+--
+-- * 'aiAndroidPackageName'
+androidInfo
+    :: AndroidInfo
+androidInfo =
+    AndroidInfo'
+    { _aiAndroidMinPackageVersionCode = Nothing
+    , _aiAndroidFallbackLink = Nothing
+    , _aiAndroidLink = Nothing
+    , _aiAndroidPackageName = Nothing
+    }
+
+-- | Minimum version code for the Android app. If the installed app’s version
+-- code is lower, then the user is taken to the Play Store.
+aiAndroidMinPackageVersionCode :: Lens' AndroidInfo (Maybe Text)
+aiAndroidMinPackageVersionCode
+  = lens _aiAndroidMinPackageVersionCode
+      (\ s a -> s{_aiAndroidMinPackageVersionCode = a})
+
+-- | Link to open on Android if the app is not installed.
+aiAndroidFallbackLink :: Lens' AndroidInfo (Maybe Text)
+aiAndroidFallbackLink
+  = lens _aiAndroidFallbackLink
+      (\ s a -> s{_aiAndroidFallbackLink = a})
+
+-- | If specified, this overrides the ‘link’ parameter on Android.
+aiAndroidLink :: Lens' AndroidInfo (Maybe Text)
+aiAndroidLink
+  = lens _aiAndroidLink
+      (\ s a -> s{_aiAndroidLink = a})
+
+-- | Android package name of the app.
+aiAndroidPackageName :: Lens' AndroidInfo (Maybe Text)
+aiAndroidPackageName
+  = lens _aiAndroidPackageName
+      (\ s a -> s{_aiAndroidPackageName = a})
+
+instance FromJSON AndroidInfo where
+        parseJSON
+          = withObject "AndroidInfo"
+              (\ o ->
+                 AndroidInfo' <$>
+                   (o .:? "androidMinPackageVersionCode") <*>
+                     (o .:? "androidFallbackLink")
+                     <*> (o .:? "androidLink")
+                     <*> (o .:? "androidPackageName"))
+
+instance ToJSON AndroidInfo where
+        toJSON AndroidInfo'{..}
+          = object
+              (catMaybes
+                 [("androidMinPackageVersionCode" .=) <$>
+                    _aiAndroidMinPackageVersionCode,
+                  ("androidFallbackLink" .=) <$>
+                    _aiAndroidFallbackLink,
+                  ("androidLink" .=) <$> _aiAndroidLink,
+                  ("androidPackageName" .=) <$> _aiAndroidPackageName])
+
+-- | Tracking parameters supported by Dynamic Link.
+--
+-- /See:/ 'analyticsInfo' smart constructor.
+data AnalyticsInfo = AnalyticsInfo'
+    { _aiItunesConnectAnalytics :: !(Maybe ITunesConnectAnalytics)
+    , _aiGooglePlayAnalytics    :: !(Maybe GooglePlayAnalytics)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'AnalyticsInfo' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'aiItunesConnectAnalytics'
+--
+-- * 'aiGooglePlayAnalytics'
+analyticsInfo
+    :: AnalyticsInfo
+analyticsInfo =
+    AnalyticsInfo'
+    { _aiItunesConnectAnalytics = Nothing
+    , _aiGooglePlayAnalytics = Nothing
+    }
+
+-- | iTunes Connect App Analytics.
+aiItunesConnectAnalytics :: Lens' AnalyticsInfo (Maybe ITunesConnectAnalytics)
+aiItunesConnectAnalytics
+  = lens _aiItunesConnectAnalytics
+      (\ s a -> s{_aiItunesConnectAnalytics = a})
+
+-- | Google Play Campaign Measurements.
+aiGooglePlayAnalytics :: Lens' AnalyticsInfo (Maybe GooglePlayAnalytics)
+aiGooglePlayAnalytics
+  = lens _aiGooglePlayAnalytics
+      (\ s a -> s{_aiGooglePlayAnalytics = a})
+
+instance FromJSON AnalyticsInfo where
+        parseJSON
+          = withObject "AnalyticsInfo"
+              (\ o ->
+                 AnalyticsInfo' <$>
+                   (o .:? "itunesConnectAnalytics") <*>
+                     (o .:? "googlePlayAnalytics"))
+
+instance ToJSON AnalyticsInfo where
+        toJSON AnalyticsInfo'{..}
+          = object
+              (catMaybes
+                 [("itunesConnectAnalytics" .=) <$>
+                    _aiItunesConnectAnalytics,
+                  ("googlePlayAnalytics" .=) <$>
+                    _aiGooglePlayAnalytics])
+
+-- | Parameters for iTunes Connect App Analytics.
+--
+-- /See:/ 'iTunesConnectAnalytics' smart constructor.
+data ITunesConnectAnalytics = ITunesConnectAnalytics'
+    { _itcaAt :: !(Maybe Text)
+    , _itcaMt :: !(Maybe Text)
+    , _itcaPt :: !(Maybe Text)
+    , _itcaCt :: !(Maybe Text)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'ITunesConnectAnalytics' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'itcaAt'
+--
+-- * 'itcaMt'
+--
+-- * 'itcaPt'
+--
+-- * 'itcaCt'
+iTunesConnectAnalytics
+    :: ITunesConnectAnalytics
+iTunesConnectAnalytics =
+    ITunesConnectAnalytics'
+    { _itcaAt = Nothing
+    , _itcaMt = Nothing
+    , _itcaPt = Nothing
+    , _itcaCt = Nothing
+    }
+
+-- | Affiliate token used to create affiliate-coded links.
+itcaAt :: Lens' ITunesConnectAnalytics (Maybe Text)
+itcaAt = lens _itcaAt (\ s a -> s{_itcaAt = a})
+
+-- | iTune media types, including music, podcasts, audiobooks and so on.
+itcaMt :: Lens' ITunesConnectAnalytics (Maybe Text)
+itcaMt = lens _itcaMt (\ s a -> s{_itcaMt = a})
+
+-- | Provider token that enables analytics for Dynamic Links from within
+-- iTunes Connect.
+itcaPt :: Lens' ITunesConnectAnalytics (Maybe Text)
+itcaPt = lens _itcaPt (\ s a -> s{_itcaPt = a})
+
+-- | Campaign text that developers can optionally add to any link in order to
+-- track sales from a specific marketing campaign.
+itcaCt :: Lens' ITunesConnectAnalytics (Maybe Text)
+itcaCt = lens _itcaCt (\ s a -> s{_itcaCt = a})
+
+instance FromJSON ITunesConnectAnalytics where
+        parseJSON
+          = withObject "ITunesConnectAnalytics"
+              (\ o ->
+                 ITunesConnectAnalytics' <$>
+                   (o .:? "at") <*> (o .:? "mt") <*> (o .:? "pt") <*>
+                     (o .:? "ct"))
+
+instance ToJSON ITunesConnectAnalytics where
+        toJSON ITunesConnectAnalytics'{..}
+          = object
+              (catMaybes
+                 [("at" .=) <$> _itcaAt, ("mt" .=) <$> _itcaMt,
+                  ("pt" .=) <$> _itcaPt, ("ct" .=) <$> _itcaCt])
+
+-- | Parameters for Google Play Campaign Measurements. [Learn
+-- more](https:\/\/developers.google.com\/analytics\/devguides\/collection\/android\/v4\/campaigns#campaign-params)
+--
+-- /See:/ 'googlePlayAnalytics' smart constructor.
+data GooglePlayAnalytics = GooglePlayAnalytics'
+    { _gpaUtmContent  :: !(Maybe Text)
+    , _gpaUtmMedium   :: !(Maybe Text)
+    , _gpaUtmTerm     :: !(Maybe Text)
+    , _gpaUtmCampaign :: !(Maybe Text)
+    , _gpaGclid       :: !(Maybe Text)
+    , _gpaUtmSource   :: !(Maybe Text)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'GooglePlayAnalytics' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'gpaUtmContent'
+--
+-- * 'gpaUtmMedium'
+--
+-- * 'gpaUtmTerm'
+--
+-- * 'gpaUtmCampaign'
+--
+-- * 'gpaGclid'
+--
+-- * 'gpaUtmSource'
+googlePlayAnalytics
+    :: GooglePlayAnalytics
+googlePlayAnalytics =
+    GooglePlayAnalytics'
+    { _gpaUtmContent = Nothing
+    , _gpaUtmMedium = Nothing
+    , _gpaUtmTerm = Nothing
+    , _gpaUtmCampaign = Nothing
+    , _gpaGclid = Nothing
+    , _gpaUtmSource = Nothing
+    }
+
+-- | Campaign content; used for A\/B testing and content-targeted ads to
+-- differentiate ads or links that point to the same URL.
+gpaUtmContent :: Lens' GooglePlayAnalytics (Maybe Text)
+gpaUtmContent
+  = lens _gpaUtmContent
+      (\ s a -> s{_gpaUtmContent = a})
+
+-- | Campaign medium; used to identify a medium such as email or
+-- cost-per-click.
+gpaUtmMedium :: Lens' GooglePlayAnalytics (Maybe Text)
+gpaUtmMedium
+  = lens _gpaUtmMedium (\ s a -> s{_gpaUtmMedium = a})
+
+-- | Campaign term; used with paid search to supply the keywords for ads.
+gpaUtmTerm :: Lens' GooglePlayAnalytics (Maybe Text)
+gpaUtmTerm
+  = lens _gpaUtmTerm (\ s a -> s{_gpaUtmTerm = a})
+
+-- | Campaign name; used for keyword analysis to identify a specific product
+-- promotion or strategic campaign.
+gpaUtmCampaign :: Lens' GooglePlayAnalytics (Maybe Text)
+gpaUtmCampaign
+  = lens _gpaUtmCampaign
+      (\ s a -> s{_gpaUtmCampaign = a})
+
+-- | [AdWords autotagging
+-- parameter](https:\/\/support.google.com\/analytics\/answer\/1033981?hl=en);
+-- used to measure Google AdWords ads. This value is generated dynamically
+-- and should never be modified.
+gpaGclid :: Lens' GooglePlayAnalytics (Maybe Text)
+gpaGclid = lens _gpaGclid (\ s a -> s{_gpaGclid = a})
+
+-- | Campaign source; used to identify a search engine, newsletter, or other
+-- source.
+gpaUtmSource :: Lens' GooglePlayAnalytics (Maybe Text)
+gpaUtmSource
+  = lens _gpaUtmSource (\ s a -> s{_gpaUtmSource = a})
+
+instance FromJSON GooglePlayAnalytics where
+        parseJSON
+          = withObject "GooglePlayAnalytics"
+              (\ o ->
+                 GooglePlayAnalytics' <$>
+                   (o .:? "utmContent") <*> (o .:? "utmMedium") <*>
+                     (o .:? "utmTerm")
+                     <*> (o .:? "utmCampaign")
+                     <*> (o .:? "gclid")
+                     <*> (o .:? "utmSource"))
+
+instance ToJSON GooglePlayAnalytics where
+        toJSON GooglePlayAnalytics'{..}
+          = object
+              (catMaybes
+                 [("utmContent" .=) <$> _gpaUtmContent,
+                  ("utmMedium" .=) <$> _gpaUtmMedium,
+                  ("utmTerm" .=) <$> _gpaUtmTerm,
+                  ("utmCampaign" .=) <$> _gpaUtmCampaign,
+                  ("gclid" .=) <$> _gpaGclid,
+                  ("utmSource" .=) <$> _gpaUtmSource])
diff --git a/gen/Network/Google/FirebaseDynamicLinks/Types/Sum.hs b/gen/Network/Google/FirebaseDynamicLinks/Types/Sum.hs
new file mode 100644
--- /dev/null
+++ b/gen/Network/Google/FirebaseDynamicLinks/Types/Sum.hs
@@ -0,0 +1,255 @@
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric      #-}
+{-# LANGUAGE LambdaCase         #-}
+{-# LANGUAGE NoImplicitPrelude  #-}
+{-# LANGUAGE OverloadedStrings  #-}
+
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+
+-- |
+-- Module      : Network.Google.FirebaseDynamicLinks.Types.Sum
+-- Copyright   : (c) 2015-2016 Brendan Hay
+-- License     : Mozilla Public License, v. 2.0.
+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>
+-- Stability   : auto-generated
+-- Portability : non-portable (GHC extensions)
+--
+module Network.Google.FirebaseDynamicLinks.Types.Sum where
+
+import           Network.Google.Prelude
+
+-- | Suffix option.
+data SuffixOption
+    = OptionUnspecified
+      -- ^ @OPTION_UNSPECIFIED@
+      -- The suffix option is not specified, performs as NOT_GUESSABLE .
+    | Unguessable
+      -- ^ @UNGUESSABLE@
+      -- Short Dynamic Link suffix is a base62 [0-9A-Za-z] encoded string of a
+      -- random generated 96 bit random number, which has a length of 17 chars.
+      -- For example, \"nlAR8U4SlKRZw1cb2\". It prevents other people from
+      -- guessing and crawling short Dynamic Links that contain personal
+      -- identifiable information.
+    | Short
+      -- ^ @SHORT@
+      -- Short Dynamic Link suffix is a base62 [0-9A-Za-z] string starting with a
+      -- length of 4 chars. the length will increase when all the space is
+      -- occupied.
+      deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
+
+instance Hashable SuffixOption
+
+instance FromHttpApiData SuffixOption where
+    parseQueryParam = \case
+        "OPTION_UNSPECIFIED" -> Right OptionUnspecified
+        "UNGUESSABLE" -> Right Unguessable
+        "SHORT" -> Right Short
+        x -> Left ("Unable to parse SuffixOption from: " <> x)
+
+instance ToHttpApiData SuffixOption where
+    toQueryParam = \case
+        OptionUnspecified -> "OPTION_UNSPECIFIED"
+        Unguessable -> "UNGUESSABLE"
+        Short -> "SHORT"
+
+instance FromJSON SuffixOption where
+    parseJSON = parseJSONText "SuffixOption"
+
+instance ToJSON SuffixOption where
+    toJSON = toJSONText
+
+-- | V1 error format.
+data Xgafv
+    = X1
+      -- ^ @1@
+      -- v1 error format
+    | X2
+      -- ^ @2@
+      -- v2 error format
+      deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
+
+instance Hashable Xgafv
+
+instance FromHttpApiData Xgafv where
+    parseQueryParam = \case
+        "1" -> Right X1
+        "2" -> Right X2
+        x -> Left ("Unable to parse Xgafv from: " <> x)
+
+instance ToHttpApiData Xgafv where
+    toQueryParam = \case
+        X1 -> "1"
+        X2 -> "2"
+
+instance FromJSON Xgafv where
+    parseJSON = parseJSONText "Xgafv"
+
+instance ToJSON Xgafv where
+    toJSON = toJSONText
+
+-- | The warning code.
+data DynamicLinkWarningWarningCode
+    = CodeUnspecified
+      -- ^ @CODE_UNSPECIFIED@
+      -- Unknown code.
+    | NotInProjectAndroidPackageName
+      -- ^ @NOT_IN_PROJECT_ANDROID_PACKAGE_NAME@
+      -- The Android package does not match any in developer\'s DevConsole
+      -- project.
+    | NotIntegerAndroidPackageMinVersion
+      -- ^ @NOT_INTEGER_ANDROID_PACKAGE_MIN_VERSION@
+      -- The Android minimum version code has to be a valid integer.
+    | UnnecessaryAndroidPackageMinVersion
+      -- ^ @UNNECESSARY_ANDROID_PACKAGE_MIN_VERSION@
+      -- Android package min version param is not needed, e.g. when \'apn\' is
+      -- missing.
+    | NotURIAndroidLink
+      -- ^ @NOT_URI_ANDROID_LINK@
+      -- Android link is not a valid URI.
+    | UnnecessaryAndroidLink
+      -- ^ @UNNECESSARY_ANDROID_LINK@
+      -- Android link param is not needed, e.g. when param \'al\' and \'link\'
+      -- have the same value..
+    | NotURIAndroidFallbackLink
+      -- ^ @NOT_URI_ANDROID_FALLBACK_LINK@
+      -- Android fallback link is not a valid URI.
+    | BadURISchemeAndroidFallbackLink
+      -- ^ @BAD_URI_SCHEME_ANDROID_FALLBACK_LINK@
+      -- Android fallback link has an invalid (non http\/https) URI scheme.
+    | NotInProjectIosBundleId
+      -- ^ @NOT_IN_PROJECT_IOS_BUNDLE_ID@
+      -- The iOS bundle ID does not match any in developer\'s DevConsole project.
+    | NotInProjectIPadBundleId
+      -- ^ @NOT_IN_PROJECT_IPAD_BUNDLE_ID@
+      -- The iPad bundle ID does not match any in developer\'s DevConsole
+      -- project.
+    | UnnecessaryIosURLScheme
+      -- ^ @UNNECESSARY_IOS_URL_SCHEME@
+      -- iOS URL scheme is not needed, e.g. when \'ibi\' are \'ipbi\' are all
+      -- missing.
+    | NotNumericIosAppStoreId
+      -- ^ @NOT_NUMERIC_IOS_APP_STORE_ID@
+      -- iOS app store ID format is incorrect, e.g. not numeric.
+    | UnnecessaryIosAppStoreId
+      -- ^ @UNNECESSARY_IOS_APP_STORE_ID@
+      -- iOS app store ID is not needed.
+    | NotURIIosFallbackLink
+      -- ^ @NOT_URI_IOS_FALLBACK_LINK@
+      -- iOS fallback link is not a valid URI.
+    | BadURISchemeIosFallbackLink
+      -- ^ @BAD_URI_SCHEME_IOS_FALLBACK_LINK@
+      -- iOS fallback link has an invalid (non http\/https) URI scheme.
+    | NotURIIPadFallbackLink
+      -- ^ @NOT_URI_IPAD_FALLBACK_LINK@
+      -- iPad fallback link is not a valid URI.
+    | BadURISchemeIPadFallbackLink
+      -- ^ @BAD_URI_SCHEME_IPAD_FALLBACK_LINK@
+      -- iPad fallback link has an invalid (non http\/https) URI scheme.
+    | BadDebugParam
+      -- ^ @BAD_DEBUG_PARAM@
+      -- Debug param format is incorrect.
+    | BadAdParam
+      -- ^ @BAD_AD_PARAM@
+      -- isAd param format is incorrect.
+    | DeprecatedParam
+      -- ^ @DEPRECATED_PARAM@
+      -- Indicates a certain param is deprecated.
+    | UnrecognizedParam
+      -- ^ @UNRECOGNIZED_PARAM@
+      -- Indicates certain paramater is not recognized.
+    | TooLongParam
+      -- ^ @TOO_LONG_PARAM@
+      -- Indicates certain paramater is too long.
+    | NotURISocialImageLink
+      -- ^ @NOT_URI_SOCIAL_IMAGE_LINK@
+      -- Social meta tag image link is not a valid URI.
+    | BadURISchemeSocialImageLink
+      -- ^ @BAD_URI_SCHEME_SOCIAL_IMAGE_LINK@
+      -- Social meta tag image link has an invalid (non http\/https) URI scheme.
+    | NotURISocialURL
+      -- ^ @NOT_URI_SOCIAL_URL@
+    | BadURISchemeSocialURL
+      -- ^ @BAD_URI_SCHEME_SOCIAL_URL@
+    | LinkLengthTooLong
+      -- ^ @LINK_LENGTH_TOO_LONG@
+      -- Dynamic Link URL length is too long.
+    | LinkWithFragments
+      -- ^ @LINK_WITH_FRAGMENTS@
+      -- Dynamic Link URL contains fragments.
+    | NotMatchingIosBundleIdAndStoreId
+      -- ^ @NOT_MATCHING_IOS_BUNDLE_ID_AND_STORE_ID@
+      -- The iOS bundle ID does not match with the given iOS store ID.
+      deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)
+
+instance Hashable DynamicLinkWarningWarningCode
+
+instance FromHttpApiData DynamicLinkWarningWarningCode where
+    parseQueryParam = \case
+        "CODE_UNSPECIFIED" -> Right CodeUnspecified
+        "NOT_IN_PROJECT_ANDROID_PACKAGE_NAME" -> Right NotInProjectAndroidPackageName
+        "NOT_INTEGER_ANDROID_PACKAGE_MIN_VERSION" -> Right NotIntegerAndroidPackageMinVersion
+        "UNNECESSARY_ANDROID_PACKAGE_MIN_VERSION" -> Right UnnecessaryAndroidPackageMinVersion
+        "NOT_URI_ANDROID_LINK" -> Right NotURIAndroidLink
+        "UNNECESSARY_ANDROID_LINK" -> Right UnnecessaryAndroidLink
+        "NOT_URI_ANDROID_FALLBACK_LINK" -> Right NotURIAndroidFallbackLink
+        "BAD_URI_SCHEME_ANDROID_FALLBACK_LINK" -> Right BadURISchemeAndroidFallbackLink
+        "NOT_IN_PROJECT_IOS_BUNDLE_ID" -> Right NotInProjectIosBundleId
+        "NOT_IN_PROJECT_IPAD_BUNDLE_ID" -> Right NotInProjectIPadBundleId
+        "UNNECESSARY_IOS_URL_SCHEME" -> Right UnnecessaryIosURLScheme
+        "NOT_NUMERIC_IOS_APP_STORE_ID" -> Right NotNumericIosAppStoreId
+        "UNNECESSARY_IOS_APP_STORE_ID" -> Right UnnecessaryIosAppStoreId
+        "NOT_URI_IOS_FALLBACK_LINK" -> Right NotURIIosFallbackLink
+        "BAD_URI_SCHEME_IOS_FALLBACK_LINK" -> Right BadURISchemeIosFallbackLink
+        "NOT_URI_IPAD_FALLBACK_LINK" -> Right NotURIIPadFallbackLink
+        "BAD_URI_SCHEME_IPAD_FALLBACK_LINK" -> Right BadURISchemeIPadFallbackLink
+        "BAD_DEBUG_PARAM" -> Right BadDebugParam
+        "BAD_AD_PARAM" -> Right BadAdParam
+        "DEPRECATED_PARAM" -> Right DeprecatedParam
+        "UNRECOGNIZED_PARAM" -> Right UnrecognizedParam
+        "TOO_LONG_PARAM" -> Right TooLongParam
+        "NOT_URI_SOCIAL_IMAGE_LINK" -> Right NotURISocialImageLink
+        "BAD_URI_SCHEME_SOCIAL_IMAGE_LINK" -> Right BadURISchemeSocialImageLink
+        "NOT_URI_SOCIAL_URL" -> Right NotURISocialURL
+        "BAD_URI_SCHEME_SOCIAL_URL" -> Right BadURISchemeSocialURL
+        "LINK_LENGTH_TOO_LONG" -> Right LinkLengthTooLong
+        "LINK_WITH_FRAGMENTS" -> Right LinkWithFragments
+        "NOT_MATCHING_IOS_BUNDLE_ID_AND_STORE_ID" -> Right NotMatchingIosBundleIdAndStoreId
+        x -> Left ("Unable to parse DynamicLinkWarningWarningCode from: " <> x)
+
+instance ToHttpApiData DynamicLinkWarningWarningCode where
+    toQueryParam = \case
+        CodeUnspecified -> "CODE_UNSPECIFIED"
+        NotInProjectAndroidPackageName -> "NOT_IN_PROJECT_ANDROID_PACKAGE_NAME"
+        NotIntegerAndroidPackageMinVersion -> "NOT_INTEGER_ANDROID_PACKAGE_MIN_VERSION"
+        UnnecessaryAndroidPackageMinVersion -> "UNNECESSARY_ANDROID_PACKAGE_MIN_VERSION"
+        NotURIAndroidLink -> "NOT_URI_ANDROID_LINK"
+        UnnecessaryAndroidLink -> "UNNECESSARY_ANDROID_LINK"
+        NotURIAndroidFallbackLink -> "NOT_URI_ANDROID_FALLBACK_LINK"
+        BadURISchemeAndroidFallbackLink -> "BAD_URI_SCHEME_ANDROID_FALLBACK_LINK"
+        NotInProjectIosBundleId -> "NOT_IN_PROJECT_IOS_BUNDLE_ID"
+        NotInProjectIPadBundleId -> "NOT_IN_PROJECT_IPAD_BUNDLE_ID"
+        UnnecessaryIosURLScheme -> "UNNECESSARY_IOS_URL_SCHEME"
+        NotNumericIosAppStoreId -> "NOT_NUMERIC_IOS_APP_STORE_ID"
+        UnnecessaryIosAppStoreId -> "UNNECESSARY_IOS_APP_STORE_ID"
+        NotURIIosFallbackLink -> "NOT_URI_IOS_FALLBACK_LINK"
+        BadURISchemeIosFallbackLink -> "BAD_URI_SCHEME_IOS_FALLBACK_LINK"
+        NotURIIPadFallbackLink -> "NOT_URI_IPAD_FALLBACK_LINK"
+        BadURISchemeIPadFallbackLink -> "BAD_URI_SCHEME_IPAD_FALLBACK_LINK"
+        BadDebugParam -> "BAD_DEBUG_PARAM"
+        BadAdParam -> "BAD_AD_PARAM"
+        DeprecatedParam -> "DEPRECATED_PARAM"
+        UnrecognizedParam -> "UNRECOGNIZED_PARAM"
+        TooLongParam -> "TOO_LONG_PARAM"
+        NotURISocialImageLink -> "NOT_URI_SOCIAL_IMAGE_LINK"
+        BadURISchemeSocialImageLink -> "BAD_URI_SCHEME_SOCIAL_IMAGE_LINK"
+        NotURISocialURL -> "NOT_URI_SOCIAL_URL"
+        BadURISchemeSocialURL -> "BAD_URI_SCHEME_SOCIAL_URL"
+        LinkLengthTooLong -> "LINK_LENGTH_TOO_LONG"
+        LinkWithFragments -> "LINK_WITH_FRAGMENTS"
+        NotMatchingIosBundleIdAndStoreId -> "NOT_MATCHING_IOS_BUNDLE_ID_AND_STORE_ID"
+
+instance FromJSON DynamicLinkWarningWarningCode where
+    parseJSON = parseJSONText "DynamicLinkWarningWarningCode"
+
+instance ToJSON DynamicLinkWarningWarningCode where
+    toJSON = toJSONText
diff --git a/gen/Network/Google/Resource/FirebaseDynamicLinks/ShortLinks/Create.hs b/gen/Network/Google/Resource/FirebaseDynamicLinks/ShortLinks/Create.hs
new file mode 100644
--- /dev/null
+++ b/gen/Network/Google/Resource/FirebaseDynamicLinks/ShortLinks/Create.hs
@@ -0,0 +1,182 @@
+{-# LANGUAGE DataKinds          #-}
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric      #-}
+{-# LANGUAGE FlexibleInstances  #-}
+{-# LANGUAGE NoImplicitPrelude  #-}
+{-# LANGUAGE OverloadedStrings  #-}
+{-# LANGUAGE RecordWildCards    #-}
+{-# LANGUAGE TypeFamilies       #-}
+{-# LANGUAGE TypeOperators      #-}
+
+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
+{-# OPTIONS_GHC -fno-warn-unused-binds      #-}
+{-# OPTIONS_GHC -fno-warn-unused-imports    #-}
+
+-- |
+-- Module      : Network.Google.Resource.FirebaseDynamicLinks.ShortLinks.Create
+-- Copyright   : (c) 2015-2016 Brendan Hay
+-- License     : Mozilla Public License, v. 2.0.
+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>
+-- Stability   : auto-generated
+-- Portability : non-portable (GHC extensions)
+--
+-- Creates a short Dynamic Link given either a valid long Dynamic Link or
+-- details such as Dynamic Link domain, Android and iOS app information.
+-- The created short Dynamic Link will not expire. Repeated calls with the
+-- same long Dynamic Link or Dynamic Link information will produce the same
+-- short Dynamic Link. The Dynamic Link domain in the request must be owned
+-- by requester\'s Firebase project.
+--
+-- /See:/ <https://firebase.google.com/docs/dynamic-links/ Firebase Dynamic Links API Reference> for @firebasedynamiclinks.shortLinks.create@.
+module Network.Google.Resource.FirebaseDynamicLinks.ShortLinks.Create
+    (
+    -- * REST Resource
+      ShortLinksCreateResource
+
+    -- * Creating a Request
+    , shortLinksCreate
+    , ShortLinksCreate
+
+    -- * Request Lenses
+    , slcXgafv
+    , slcUploadProtocol
+    , slcPp
+    , slcAccessToken
+    , slcUploadType
+    , slcPayload
+    , slcBearerToken
+    , slcCallback
+    ) where
+
+import           Network.Google.FirebaseDynamicLinks.Types
+import           Network.Google.Prelude
+
+-- | A resource alias for @firebasedynamiclinks.shortLinks.create@ method which the
+-- 'ShortLinksCreate' request conforms to.
+type ShortLinksCreateResource =
+     "v1" :>
+       "shortLinks" :>
+         QueryParam "$.xgafv" Xgafv :>
+           QueryParam "upload_protocol" Text :>
+             QueryParam "pp" Bool :>
+               QueryParam "access_token" Text :>
+                 QueryParam "uploadType" Text :>
+                   QueryParam "bearer_token" Text :>
+                     QueryParam "callback" Text :>
+                       QueryParam "alt" AltJSON :>
+                         ReqBody '[JSON] CreateShortDynamicLinkRequest :>
+                           Post '[JSON] CreateShortDynamicLinkResponse
+
+-- | Creates a short Dynamic Link given either a valid long Dynamic Link or
+-- details such as Dynamic Link domain, Android and iOS app information.
+-- The created short Dynamic Link will not expire. Repeated calls with the
+-- same long Dynamic Link or Dynamic Link information will produce the same
+-- short Dynamic Link. The Dynamic Link domain in the request must be owned
+-- by requester\'s Firebase project.
+--
+-- /See:/ 'shortLinksCreate' smart constructor.
+data ShortLinksCreate = ShortLinksCreate'
+    { _slcXgafv          :: !(Maybe Xgafv)
+    , _slcUploadProtocol :: !(Maybe Text)
+    , _slcPp             :: !Bool
+    , _slcAccessToken    :: !(Maybe Text)
+    , _slcUploadType     :: !(Maybe Text)
+    , _slcPayload        :: !CreateShortDynamicLinkRequest
+    , _slcBearerToken    :: !(Maybe Text)
+    , _slcCallback       :: !(Maybe Text)
+    } deriving (Eq,Show,Data,Typeable,Generic)
+
+-- | Creates a value of 'ShortLinksCreate' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'slcXgafv'
+--
+-- * 'slcUploadProtocol'
+--
+-- * 'slcPp'
+--
+-- * 'slcAccessToken'
+--
+-- * 'slcUploadType'
+--
+-- * 'slcPayload'
+--
+-- * 'slcBearerToken'
+--
+-- * 'slcCallback'
+shortLinksCreate
+    :: CreateShortDynamicLinkRequest -- ^ 'slcPayload'
+    -> ShortLinksCreate
+shortLinksCreate pSlcPayload_ =
+    ShortLinksCreate'
+    { _slcXgafv = Nothing
+    , _slcUploadProtocol = Nothing
+    , _slcPp = True
+    , _slcAccessToken = Nothing
+    , _slcUploadType = Nothing
+    , _slcPayload = pSlcPayload_
+    , _slcBearerToken = Nothing
+    , _slcCallback = Nothing
+    }
+
+-- | V1 error format.
+slcXgafv :: Lens' ShortLinksCreate (Maybe Xgafv)
+slcXgafv = lens _slcXgafv (\ s a -> s{_slcXgafv = a})
+
+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
+slcUploadProtocol :: Lens' ShortLinksCreate (Maybe Text)
+slcUploadProtocol
+  = lens _slcUploadProtocol
+      (\ s a -> s{_slcUploadProtocol = a})
+
+-- | Pretty-print response.
+slcPp :: Lens' ShortLinksCreate Bool
+slcPp = lens _slcPp (\ s a -> s{_slcPp = a})
+
+-- | OAuth access token.
+slcAccessToken :: Lens' ShortLinksCreate (Maybe Text)
+slcAccessToken
+  = lens _slcAccessToken
+      (\ s a -> s{_slcAccessToken = a})
+
+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
+slcUploadType :: Lens' ShortLinksCreate (Maybe Text)
+slcUploadType
+  = lens _slcUploadType
+      (\ s a -> s{_slcUploadType = a})
+
+-- | Multipart request metadata.
+slcPayload :: Lens' ShortLinksCreate CreateShortDynamicLinkRequest
+slcPayload
+  = lens _slcPayload (\ s a -> s{_slcPayload = a})
+
+-- | OAuth bearer token.
+slcBearerToken :: Lens' ShortLinksCreate (Maybe Text)
+slcBearerToken
+  = lens _slcBearerToken
+      (\ s a -> s{_slcBearerToken = a})
+
+-- | JSONP
+slcCallback :: Lens' ShortLinksCreate (Maybe Text)
+slcCallback
+  = lens _slcCallback (\ s a -> s{_slcCallback = a})
+
+instance GoogleRequest ShortLinksCreate where
+        type Rs ShortLinksCreate =
+             CreateShortDynamicLinkResponse
+        type Scopes ShortLinksCreate =
+             '["https://www.googleapis.com/auth/firebase"]
+        requestClient ShortLinksCreate'{..}
+          = go _slcXgafv _slcUploadProtocol (Just _slcPp)
+              _slcAccessToken
+              _slcUploadType
+              _slcBearerToken
+              _slcCallback
+              (Just AltJSON)
+              _slcPayload
+              firebaseDynamicLinksService
+          where go
+                  = buildClient
+                      (Proxy :: Proxy ShortLinksCreateResource)
+                      mempty
diff --git a/gogol-firebase-dynamiclinks.cabal b/gogol-firebase-dynamiclinks.cabal
new file mode 100644
--- /dev/null
+++ b/gogol-firebase-dynamiclinks.cabal
@@ -0,0 +1,47 @@
+name:                  gogol-firebase-dynamiclinks
+version:               0.1.1
+synopsis:              Google Firebase Dynamic Links SDK.
+homepage:              https://github.com/brendanhay/gogol
+bug-reports:           https://github.com/brendanhay/gogol/issues
+license:               OtherLicense
+license-file:          LICENSE
+author:                Brendan Hay
+maintainer:            Brendan Hay <brendan.g.hay@gmail.com>
+copyright:             Copyright (c) 2015-2016 Brendan Hay
+category:              Network, Google, Cloud
+build-type:            Simple
+cabal-version:         >= 1.10
+extra-source-files:    README.md src/.gitkeep
+
+description:
+    Firebase Dynamic Links API enables third party developers to
+    programmatically create and manage Dynamic Links.
+    .
+    /Warning:/ This is an experimental prototype/preview release which is still
+    under exploratory development and not intended for public use, caveat emptor!
+    .
+    This library is compatible with version @v1@
+    of the API.
+
+source-repository head
+    type:     git
+    location: git://github.com/brendanhay/gogol.git
+
+library
+    default-language:  Haskell2010
+    hs-source-dirs:    src gen
+
+    ghc-options:       -Wall
+
+    exposed-modules:
+          Network.Google.FirebaseDynamicLinks
+        , Network.Google.FirebaseDynamicLinks.Types
+        , Network.Google.Resource.FirebaseDynamicLinks.ShortLinks.Create
+
+    other-modules:
+          Network.Google.FirebaseDynamicLinks.Types.Product
+        , Network.Google.FirebaseDynamicLinks.Types.Sum
+
+    build-depends:
+          gogol-core == 0.1.1.*
+        , base       >= 4.7 && < 5
diff --git a/src/.gitkeep b/src/.gitkeep
new file mode 100644
--- /dev/null
+++ b/src/.gitkeep
