packages feed

unkai-storage (empty) → 0.1.0.1

raw patch · 95 files changed

+21720/−0 lines, 95 filesdep +unkai-core

Dependencies added: unkai-core

Files

+ LICENSE view
@@ -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.
+ README.md view
@@ -0,0 +1,28 @@+# unkai-storage++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version++`0.1.0.1`+++## Description++A client library for the Google Cloud Storage JSON.+++## Contribute++For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/shinzui/unkai/issues).++> _Note:_ this library is an auto-generated Haskell package. Please see `unkai-gen` for more information.+++## Licence++`unkai-storage` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).
+ gen/Unkai/Storage.hs view
@@ -0,0 +1,1205 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Stores and retrieves potentially large, immutable data objects.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference>+module Unkai.Storage+  ( -- * Configuration+    storageService,++    -- * OAuth Scopes+    CloudPlatform'FullControl,+    CloudPlatform'ReadOnly,+    Devstorage'FullControl,+    Devstorage'ReadOnly,+    Devstorage'ReadWrite,++    -- * Resources++    -- ** storage.anywhereCaches.disable+    StorageAnywhereCachesDisableResource,+    StorageAnywhereCachesDisable (..),+    newStorageAnywhereCachesDisable,++    -- ** storage.anywhereCaches.get+    StorageAnywhereCachesGetResource,+    StorageAnywhereCachesGet (..),+    newStorageAnywhereCachesGet,++    -- ** storage.anywhereCaches.insert+    StorageAnywhereCachesInsertResource,+    StorageAnywhereCachesInsert (..),+    newStorageAnywhereCachesInsert,++    -- ** storage.anywhereCaches.list+    StorageAnywhereCachesListResource,+    StorageAnywhereCachesList (..),+    newStorageAnywhereCachesList,++    -- ** storage.anywhereCaches.pause+    StorageAnywhereCachesPauseResource,+    StorageAnywhereCachesPause (..),+    newStorageAnywhereCachesPause,++    -- ** storage.anywhereCaches.resume+    StorageAnywhereCachesResumeResource,+    StorageAnywhereCachesResume (..),+    newStorageAnywhereCachesResume,++    -- ** storage.anywhereCaches.update+    StorageAnywhereCachesUpdateResource,+    StorageAnywhereCachesUpdate (..),+    newStorageAnywhereCachesUpdate,++    -- ** storage.bucketAccessControls.delete+    StorageBucketAccessControlsDeleteResource,+    StorageBucketAccessControlsDelete (..),+    newStorageBucketAccessControlsDelete,++    -- ** storage.bucketAccessControls.get+    StorageBucketAccessControlsGetResource,+    StorageBucketAccessControlsGet (..),+    newStorageBucketAccessControlsGet,++    -- ** storage.bucketAccessControls.insert+    StorageBucketAccessControlsInsertResource,+    StorageBucketAccessControlsInsert (..),+    newStorageBucketAccessControlsInsert,++    -- ** storage.bucketAccessControls.list+    StorageBucketAccessControlsListResource,+    StorageBucketAccessControlsList (..),+    newStorageBucketAccessControlsList,++    -- ** storage.bucketAccessControls.patch+    StorageBucketAccessControlsPatchResource,+    StorageBucketAccessControlsPatch (..),+    newStorageBucketAccessControlsPatch,++    -- ** storage.bucketAccessControls.update+    StorageBucketAccessControlsUpdateResource,+    StorageBucketAccessControlsUpdate (..),+    newStorageBucketAccessControlsUpdate,++    -- ** storage.buckets.delete+    StorageBucketsDeleteResource,+    StorageBucketsDelete (..),+    newStorageBucketsDelete,++    -- ** storage.buckets.get+    StorageBucketsGetResource,+    StorageBucketsGet (..),+    newStorageBucketsGet,++    -- ** storage.buckets.getIamPolicy+    StorageBucketsGetIamPolicyResource,+    StorageBucketsGetIamPolicy (..),+    newStorageBucketsGetIamPolicy,++    -- ** storage.buckets.getStorageLayout+    StorageBucketsGetStorageLayoutResource,+    StorageBucketsGetStorageLayout (..),+    newStorageBucketsGetStorageLayout,++    -- ** storage.buckets.insert+    StorageBucketsInsertResource,+    StorageBucketsInsert (..),+    newStorageBucketsInsert,++    -- ** storage.buckets.list+    StorageBucketsListResource,+    StorageBucketsList (..),+    newStorageBucketsList,++    -- ** storage.buckets.lockRetentionPolicy+    StorageBucketsLockRetentionPolicyResource,+    StorageBucketsLockRetentionPolicy (..),+    newStorageBucketsLockRetentionPolicy,++    -- ** storage.buckets.operations.advanceRelocateBucket+    StorageBucketsOperationsAdvanceRelocateBucketResource,+    StorageBucketsOperationsAdvanceRelocateBucket (..),+    newStorageBucketsOperationsAdvanceRelocateBucket,++    -- ** storage.buckets.operations.cancel+    StorageBucketsOperationsCancelResource,+    StorageBucketsOperationsCancel (..),+    newStorageBucketsOperationsCancel,++    -- ** storage.buckets.operations.get+    StorageBucketsOperationsGetResource,+    StorageBucketsOperationsGet (..),+    newStorageBucketsOperationsGet,++    -- ** storage.buckets.operations.list+    StorageBucketsOperationsListResource,+    StorageBucketsOperationsList (..),+    newStorageBucketsOperationsList,++    -- ** storage.buckets.patch+    StorageBucketsPatchResource,+    StorageBucketsPatch (..),+    newStorageBucketsPatch,++    -- ** storage.buckets.relocate+    StorageBucketsRelocateResource,+    StorageBucketsRelocate (..),+    newStorageBucketsRelocate,++    -- ** storage.buckets.restore+    StorageBucketsRestoreResource,+    StorageBucketsRestore (..),+    newStorageBucketsRestore,++    -- ** storage.buckets.setIamPolicy+    StorageBucketsSetIamPolicyResource,+    StorageBucketsSetIamPolicy (..),+    newStorageBucketsSetIamPolicy,++    -- ** storage.buckets.testIamPermissions+    StorageBucketsTestIamPermissionsResource,+    StorageBucketsTestIamPermissions (..),+    newStorageBucketsTestIamPermissions,++    -- ** storage.buckets.update+    StorageBucketsUpdateResource,+    StorageBucketsUpdate (..),+    newStorageBucketsUpdate,++    -- ** storage.channels.stop+    StorageChannelsStopResource,+    StorageChannelsStop (..),+    newStorageChannelsStop,++    -- ** storage.defaultObjectAccessControls.delete+    StorageDefaultObjectAccessControlsDeleteResource,+    StorageDefaultObjectAccessControlsDelete (..),+    newStorageDefaultObjectAccessControlsDelete,++    -- ** storage.defaultObjectAccessControls.get+    StorageDefaultObjectAccessControlsGetResource,+    StorageDefaultObjectAccessControlsGet (..),+    newStorageDefaultObjectAccessControlsGet,++    -- ** storage.defaultObjectAccessControls.insert+    StorageDefaultObjectAccessControlsInsertResource,+    StorageDefaultObjectAccessControlsInsert (..),+    newStorageDefaultObjectAccessControlsInsert,++    -- ** storage.defaultObjectAccessControls.list+    StorageDefaultObjectAccessControlsListResource,+    StorageDefaultObjectAccessControlsList (..),+    newStorageDefaultObjectAccessControlsList,++    -- ** storage.defaultObjectAccessControls.patch+    StorageDefaultObjectAccessControlsPatchResource,+    StorageDefaultObjectAccessControlsPatch (..),+    newStorageDefaultObjectAccessControlsPatch,++    -- ** storage.defaultObjectAccessControls.update+    StorageDefaultObjectAccessControlsUpdateResource,+    StorageDefaultObjectAccessControlsUpdate (..),+    newStorageDefaultObjectAccessControlsUpdate,++    -- ** storage.folders.delete+    StorageFoldersDeleteResource,+    StorageFoldersDelete (..),+    newStorageFoldersDelete,++    -- ** storage.folders.deleteRecursive+    StorageFoldersDeleteRecursiveResource,+    StorageFoldersDeleteRecursive (..),+    newStorageFoldersDeleteRecursive,++    -- ** storage.folders.get+    StorageFoldersGetResource,+    StorageFoldersGet (..),+    newStorageFoldersGet,++    -- ** storage.folders.insert+    StorageFoldersInsertResource,+    StorageFoldersInsert (..),+    newStorageFoldersInsert,++    -- ** storage.folders.list+    StorageFoldersListResource,+    StorageFoldersList (..),+    newStorageFoldersList,++    -- ** storage.folders.rename+    StorageFoldersRenameResource,+    StorageFoldersRename (..),+    newStorageFoldersRename,++    -- ** storage.managedFolders.delete+    StorageManagedFoldersDeleteResource,+    StorageManagedFoldersDelete (..),+    newStorageManagedFoldersDelete,++    -- ** storage.managedFolders.get+    StorageManagedFoldersGetResource,+    StorageManagedFoldersGet (..),+    newStorageManagedFoldersGet,++    -- ** storage.managedFolders.getIamPolicy+    StorageManagedFoldersGetIamPolicyResource,+    StorageManagedFoldersGetIamPolicy (..),+    newStorageManagedFoldersGetIamPolicy,++    -- ** storage.managedFolders.insert+    StorageManagedFoldersInsertResource,+    StorageManagedFoldersInsert (..),+    newStorageManagedFoldersInsert,++    -- ** storage.managedFolders.list+    StorageManagedFoldersListResource,+    StorageManagedFoldersList (..),+    newStorageManagedFoldersList,++    -- ** storage.managedFolders.setIamPolicy+    StorageManagedFoldersSetIamPolicyResource,+    StorageManagedFoldersSetIamPolicy (..),+    newStorageManagedFoldersSetIamPolicy,++    -- ** storage.managedFolders.testIamPermissions+    StorageManagedFoldersTestIamPermissionsResource,+    StorageManagedFoldersTestIamPermissions (..),+    newStorageManagedFoldersTestIamPermissions,++    -- ** storage.managedFolders.update+    StorageManagedFoldersUpdateResource,+    StorageManagedFoldersUpdate (..),+    newStorageManagedFoldersUpdate,++    -- ** storage.notifications.delete+    StorageNotificationsDeleteResource,+    StorageNotificationsDelete (..),+    newStorageNotificationsDelete,++    -- ** storage.notifications.get+    StorageNotificationsGetResource,+    StorageNotificationsGet (..),+    newStorageNotificationsGet,++    -- ** storage.notifications.insert+    StorageNotificationsInsertResource,+    StorageNotificationsInsert (..),+    newStorageNotificationsInsert,++    -- ** storage.notifications.list+    StorageNotificationsListResource,+    StorageNotificationsList (..),+    newStorageNotificationsList,++    -- ** storage.objectAccessControls.delete+    StorageObjectAccessControlsDeleteResource,+    StorageObjectAccessControlsDelete (..),+    newStorageObjectAccessControlsDelete,++    -- ** storage.objectAccessControls.get+    StorageObjectAccessControlsGetResource,+    StorageObjectAccessControlsGet (..),+    newStorageObjectAccessControlsGet,++    -- ** storage.objectAccessControls.insert+    StorageObjectAccessControlsInsertResource,+    StorageObjectAccessControlsInsert (..),+    newStorageObjectAccessControlsInsert,++    -- ** storage.objectAccessControls.list+    StorageObjectAccessControlsListResource,+    StorageObjectAccessControlsList (..),+    newStorageObjectAccessControlsList,++    -- ** storage.objectAccessControls.patch+    StorageObjectAccessControlsPatchResource,+    StorageObjectAccessControlsPatch (..),+    newStorageObjectAccessControlsPatch,++    -- ** storage.objectAccessControls.update+    StorageObjectAccessControlsUpdateResource,+    StorageObjectAccessControlsUpdate (..),+    newStorageObjectAccessControlsUpdate,++    -- ** storage.objects.bulkRestore+    StorageObjectsBulkRestoreResource,+    StorageObjectsBulkRestore (..),+    newStorageObjectsBulkRestore,++    -- ** storage.objects.compose+    StorageObjectsComposeResource,+    StorageObjectsCompose (..),+    newStorageObjectsCompose,++    -- ** storage.objects.copy+    StorageObjectsCopyResource,+    StorageObjectsCopy (..),+    newStorageObjectsCopy,++    -- ** storage.objects.delete+    StorageObjectsDeleteResource,+    StorageObjectsDelete (..),+    newStorageObjectsDelete,++    -- ** storage.objects.get+    StorageObjectsGetResource,+    StorageObjectsGet (..),+    newStorageObjectsGet,++    -- ** storage.objects.getIamPolicy+    StorageObjectsGetIamPolicyResource,+    StorageObjectsGetIamPolicy (..),+    newStorageObjectsGetIamPolicy,++    -- ** storage.objects.insert+    StorageObjectsInsertResource,+    StorageObjectsInsert (..),+    newStorageObjectsInsert,++    -- ** storage.objects.list+    StorageObjectsListResource,+    StorageObjectsList (..),+    newStorageObjectsList,++    -- ** storage.objects.move+    StorageObjectsMoveResource,+    StorageObjectsMove (..),+    newStorageObjectsMove,++    -- ** storage.objects.patch+    StorageObjectsPatchResource,+    StorageObjectsPatch (..),+    newStorageObjectsPatch,++    -- ** storage.objects.restore+    StorageObjectsRestoreResource,+    StorageObjectsRestore (..),+    newStorageObjectsRestore,++    -- ** storage.objects.rewrite+    StorageObjectsRewriteResource,+    StorageObjectsRewrite (..),+    newStorageObjectsRewrite,++    -- ** storage.objects.setIamPolicy+    StorageObjectsSetIamPolicyResource,+    StorageObjectsSetIamPolicy (..),+    newStorageObjectsSetIamPolicy,++    -- ** storage.objects.testIamPermissions+    StorageObjectsTestIamPermissionsResource,+    StorageObjectsTestIamPermissions (..),+    newStorageObjectsTestIamPermissions,++    -- ** storage.objects.update+    StorageObjectsUpdateResource,+    StorageObjectsUpdate (..),+    newStorageObjectsUpdate,++    -- ** storage.projects.hmacKeys.create+    StorageProjectsHmacKeysCreateResource,+    StorageProjectsHmacKeysCreate (..),+    newStorageProjectsHmacKeysCreate,++    -- ** storage.projects.hmacKeys.delete+    StorageProjectsHmacKeysDeleteResource,+    StorageProjectsHmacKeysDelete (..),+    newStorageProjectsHmacKeysDelete,++    -- ** storage.projects.hmacKeys.get+    StorageProjectsHmacKeysGetResource,+    StorageProjectsHmacKeysGet (..),+    newStorageProjectsHmacKeysGet,++    -- ** storage.projects.hmacKeys.list+    StorageProjectsHmacKeysListResource,+    StorageProjectsHmacKeysList (..),+    newStorageProjectsHmacKeysList,++    -- ** storage.projects.hmacKeys.update+    StorageProjectsHmacKeysUpdateResource,+    StorageProjectsHmacKeysUpdate (..),+    newStorageProjectsHmacKeysUpdate,++    -- ** storage.projects.serviceAccount.get+    StorageProjectsServiceAccountGetResource,+    StorageProjectsServiceAccountGet (..),+    newStorageProjectsServiceAccountGet,++    -- ** storage.rapidCaches.disable+    StorageRapidCachesDisableResource,+    StorageRapidCachesDisable (..),+    newStorageRapidCachesDisable,++    -- ** storage.rapidCaches.get+    StorageRapidCachesGetResource,+    StorageRapidCachesGet (..),+    newStorageRapidCachesGet,++    -- ** storage.rapidCaches.insert+    StorageRapidCachesInsertResource,+    StorageRapidCachesInsert (..),+    newStorageRapidCachesInsert,++    -- ** storage.rapidCaches.list+    StorageRapidCachesListResource,+    StorageRapidCachesList (..),+    newStorageRapidCachesList,++    -- ** storage.rapidCaches.update+    StorageRapidCachesUpdateResource,+    StorageRapidCachesUpdate (..),+    newStorageRapidCachesUpdate,++    -- * Types++    -- ** AdvanceRelocateBucketOperationRequest+    AdvanceRelocateBucketOperationRequest (..),+    newAdvanceRelocateBucketOperationRequest,++    -- ** AnywhereCache+    AnywhereCache (..),+    newAnywhereCache,++    -- ** AnywhereCachePatch+    AnywhereCachePatch (..),+    newAnywhereCachePatch,++    -- ** AnywhereCaches+    AnywhereCaches (..),+    newAnywhereCaches,++    -- ** Bucket+    Bucket (..),+    newBucket,++    -- ** BucketInsertInput+    BucketInsertInput (..),+    newBucketInsertInput,++    -- ** BucketPatch+    BucketPatch (..),+    newBucketPatch,++    -- ** BucketUpdateInput+    BucketUpdateInput (..),+    newBucketUpdateInput,++    -- ** Bucket_Autoclass+    Bucket_Autoclass (..),+    newBucket_Autoclass,++    -- ** Bucket_AutoclassPatch+    Bucket_AutoclassPatch (..),+    newBucket_AutoclassPatch,++    -- ** Bucket_Billing+    Bucket_Billing (..),+    newBucket_Billing,++    -- ** Bucket_BillingPatch+    Bucket_BillingPatch (..),+    newBucket_BillingPatch,++    -- ** Bucket_CorsItem+    Bucket_CorsItem (..),+    newBucket_CorsItem,++    -- ** Bucket_CustomPlacementConfig+    Bucket_CustomPlacementConfig (..),+    newBucket_CustomPlacementConfig,++    -- ** Bucket_CustomPlacementConfigPatch+    Bucket_CustomPlacementConfigPatch (..),+    newBucket_CustomPlacementConfigPatch,++    -- ** Bucket_Encryption+    Bucket_Encryption (..),+    newBucket_Encryption,++    -- ** Bucket_EncryptionPatch+    Bucket_EncryptionPatch (..),+    newBucket_EncryptionPatch,++    -- ** Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig (..),+    newBucket_Encryption_CustomerManagedEncryptionEnforcementConfig,++    -- ** Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch (..),+    newBucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch,++    -- ** Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode (..),++    -- ** Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig (..),+    newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig,++    -- ** Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch (..),+    newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch,++    -- ** Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode (..),++    -- ** Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig (..),+    newBucket_Encryption_GoogleManagedEncryptionEnforcementConfig,++    -- ** Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch (..),+    newBucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch,++    -- ** Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode (..),++    -- ** Bucket_HierarchicalNamespace+    Bucket_HierarchicalNamespace (..),+    newBucket_HierarchicalNamespace,++    -- ** Bucket_HierarchicalNamespacePatch+    Bucket_HierarchicalNamespacePatch (..),+    newBucket_HierarchicalNamespacePatch,++    -- ** Bucket_IamConfiguration+    Bucket_IamConfiguration (..),+    newBucket_IamConfiguration,++    -- ** Bucket_IamConfigurationPatch+    Bucket_IamConfigurationPatch (..),+    newBucket_IamConfigurationPatch,++    -- ** Bucket_IamConfiguration_BucketPolicyOnly+    Bucket_IamConfiguration_BucketPolicyOnly (..),+    newBucket_IamConfiguration_BucketPolicyOnly,++    -- ** Bucket_IamConfiguration_BucketPolicyOnlyPatch+    Bucket_IamConfiguration_BucketPolicyOnlyPatch (..),+    newBucket_IamConfiguration_BucketPolicyOnlyPatch,++    -- ** Bucket_IamConfiguration_UniformBucketLevelAccess+    Bucket_IamConfiguration_UniformBucketLevelAccess (..),+    newBucket_IamConfiguration_UniformBucketLevelAccess,++    -- ** Bucket_IamConfiguration_UniformBucketLevelAccessPatch+    Bucket_IamConfiguration_UniformBucketLevelAccessPatch (..),+    newBucket_IamConfiguration_UniformBucketLevelAccessPatch,++    -- ** Bucket_IpFilter+    Bucket_IpFilter (..),+    newBucket_IpFilter,++    -- ** Bucket_IpFilterPatch+    Bucket_IpFilterPatch (..),+    newBucket_IpFilterPatch,++    -- ** Bucket_IpFilter_PublicNetworkSource+    Bucket_IpFilter_PublicNetworkSource (..),+    newBucket_IpFilter_PublicNetworkSource,++    -- ** Bucket_IpFilter_PublicNetworkSourcePatch+    Bucket_IpFilter_PublicNetworkSourcePatch (..),+    newBucket_IpFilter_PublicNetworkSourcePatch,++    -- ** Bucket_IpFilter_VpcNetworkSourcesItem+    Bucket_IpFilter_VpcNetworkSourcesItem (..),+    newBucket_IpFilter_VpcNetworkSourcesItem,++    -- ** Bucket_Labels+    Bucket_Labels (..),+    newBucket_Labels,++    -- ** Bucket_LabelsPatch+    Bucket_LabelsPatch (..),+    newBucket_LabelsPatch,++    -- ** Bucket_Lifecycle+    Bucket_Lifecycle (..),+    newBucket_Lifecycle,++    -- ** Bucket_LifecyclePatch+    Bucket_LifecyclePatch (..),+    newBucket_LifecyclePatch,++    -- ** Bucket_Lifecycle_RuleItem+    Bucket_Lifecycle_RuleItem (..),+    newBucket_Lifecycle_RuleItem,++    -- ** Bucket_Lifecycle_RuleItem_Action+    Bucket_Lifecycle_RuleItem_Action (..),+    newBucket_Lifecycle_RuleItem_Action,++    -- ** Bucket_Lifecycle_RuleItem_Condition+    Bucket_Lifecycle_RuleItem_Condition (..),+    newBucket_Lifecycle_RuleItem_Condition,++    -- ** Bucket_Logging+    Bucket_Logging (..),+    newBucket_Logging,++    -- ** Bucket_LoggingPatch+    Bucket_LoggingPatch (..),+    newBucket_LoggingPatch,++    -- ** Bucket_ObjectRetention+    Bucket_ObjectRetention (..),+    newBucket_ObjectRetention,++    -- ** Bucket_ObjectRetentionPatch+    Bucket_ObjectRetentionPatch (..),+    newBucket_ObjectRetentionPatch,++    -- ** Bucket_Owner+    Bucket_Owner (..),+    newBucket_Owner,++    -- ** Bucket_OwnerPatch+    Bucket_OwnerPatch (..),+    newBucket_OwnerPatch,++    -- ** Bucket_RetentionPolicy+    Bucket_RetentionPolicy (..),+    newBucket_RetentionPolicy,++    -- ** Bucket_RetentionPolicyPatch+    Bucket_RetentionPolicyPatch (..),+    newBucket_RetentionPolicyPatch,++    -- ** Bucket_SoftDeletePolicy+    Bucket_SoftDeletePolicy (..),+    newBucket_SoftDeletePolicy,++    -- ** Bucket_SoftDeletePolicyPatch+    Bucket_SoftDeletePolicyPatch (..),+    newBucket_SoftDeletePolicyPatch,++    -- ** Bucket_Versioning+    Bucket_Versioning (..),+    newBucket_Versioning,++    -- ** Bucket_VersioningPatch+    Bucket_VersioningPatch (..),+    newBucket_VersioningPatch,++    -- ** Bucket_Website+    Bucket_Website (..),+    newBucket_Website,++    -- ** Bucket_WebsitePatch+    Bucket_WebsitePatch (..),+    newBucket_WebsitePatch,++    -- ** BucketAccessControl+    BucketAccessControl (..),+    newBucketAccessControl,++    -- ** BucketAccessControlInsertInput+    BucketAccessControlInsertInput (..),+    newBucketAccessControlInsertInput,++    -- ** BucketAccessControlPatch+    BucketAccessControlPatch (..),+    newBucketAccessControlPatch,++    -- ** BucketAccessControl_ProjectTeam+    BucketAccessControl_ProjectTeam (..),+    newBucketAccessControl_ProjectTeam,++    -- ** BucketAccessControl_ProjectTeamPatch+    BucketAccessControl_ProjectTeamPatch (..),+    newBucketAccessControl_ProjectTeamPatch,++    -- ** BucketAccessControls+    BucketAccessControls (..),+    newBucketAccessControls,++    -- ** BucketStorageLayout+    BucketStorageLayout (..),+    newBucketStorageLayout,++    -- ** BucketStorageLayout_CustomPlacementConfig+    BucketStorageLayout_CustomPlacementConfig (..),+    newBucketStorageLayout_CustomPlacementConfig,++    -- ** BucketStorageLayout_HierarchicalNamespace+    BucketStorageLayout_HierarchicalNamespace (..),+    newBucketStorageLayout_HierarchicalNamespace,++    -- ** Buckets+    Buckets (..),+    newBuckets,++    -- ** BulkRestoreObjectsRequest+    BulkRestoreObjectsRequest (..),+    newBulkRestoreObjectsRequest,++    -- ** Channel+    Channel (..),+    newChannel,++    -- ** Channel_Params+    Channel_Params (..),+    newChannel_Params,++    -- ** ComposeRequest+    ComposeRequest (..),+    newComposeRequest,++    -- ** ComposeRequestInput+    ComposeRequestInput (..),+    newComposeRequestInput,++    -- ** ComposeRequest_SourceObjectsItem+    ComposeRequest_SourceObjectsItem (..),+    newComposeRequest_SourceObjectsItem,++    -- ** ComposeRequest_SourceObjectsItemInput+    ComposeRequest_SourceObjectsItemInput (..),+    newComposeRequest_SourceObjectsItemInput,++    -- ** ComposeRequest_SourceObjectsItem_ObjectPreconditions+    ComposeRequest_SourceObjectsItem_ObjectPreconditions (..),+    newComposeRequest_SourceObjectsItem_ObjectPreconditions,++    -- ** Expr+    Expr (..),+    newExpr,++    -- ** Folder+    Folder (..),+    newFolder,++    -- ** Folder_PendingRenameInfo+    Folder_PendingRenameInfo (..),+    newFolder_PendingRenameInfo,++    -- ** Folders+    Folders (..),+    newFolders,++    -- ** GoogleLongrunningListOperationsResponse+    GoogleLongrunningListOperationsResponse (..),+    newGoogleLongrunningListOperationsResponse,++    -- ** GoogleLongrunningOperation+    GoogleLongrunningOperation (..),+    newGoogleLongrunningOperation,++    -- ** GoogleLongrunningOperation_Metadata+    GoogleLongrunningOperation_Metadata (..),+    newGoogleLongrunningOperation_Metadata,++    -- ** GoogleLongrunningOperation_Response+    GoogleLongrunningOperation_Response (..),+    newGoogleLongrunningOperation_Response,++    -- ** GoogleRpcStatus+    GoogleRpcStatus (..),+    newGoogleRpcStatus,++    -- ** GoogleRpcStatus_DetailsItem+    GoogleRpcStatus_DetailsItem (..),+    newGoogleRpcStatus_DetailsItem,++    -- ** HmacKey+    HmacKey (..),+    newHmacKey,++    -- ** HmacKeyMetadata+    HmacKeyMetadata (..),+    newHmacKeyMetadata,++    -- ** HmacKeysMetadata+    HmacKeysMetadata (..),+    newHmacKeysMetadata,++    -- ** ManagedFolder+    ManagedFolder (..),+    newManagedFolder,++    -- ** ManagedFolderPatch+    ManagedFolderPatch (..),+    newManagedFolderPatch,++    -- ** ManagedFolders+    ManagedFolders (..),+    newManagedFolders,++    -- ** Notification+    Notification (..),+    newNotification,++    -- ** NotificationInsertInput+    NotificationInsertInput (..),+    newNotificationInsertInput,++    -- ** Notification_Custom_attributes+    Notification_Custom_attributes (..),+    newNotification_Custom_attributes,++    -- ** Notifications+    Notifications (..),+    newNotifications,++    -- ** Object+    Object (..),+    newObject,++    -- ** ObjectPatch+    ObjectPatch (..),+    newObjectPatch,++    -- ** Object_Contexts+    Object_Contexts (..),+    newObject_Contexts,++    -- ** Object_ContextsPatch+    Object_ContextsPatch (..),+    newObject_ContextsPatch,++    -- ** Object_Contexts_Custom+    Object_Contexts_Custom (..),+    newObject_Contexts_Custom,++    -- ** Object_Contexts_CustomPatch+    Object_Contexts_CustomPatch (..),+    newObject_Contexts_CustomPatch,++    -- ** Object_CustomerEncryption+    Object_CustomerEncryption (..),+    newObject_CustomerEncryption,++    -- ** Object_CustomerEncryptionPatch+    Object_CustomerEncryptionPatch (..),+    newObject_CustomerEncryptionPatch,++    -- ** Object_Metadata+    Object_Metadata (..),+    newObject_Metadata,++    -- ** Object_MetadataPatch+    Object_MetadataPatch (..),+    newObject_MetadataPatch,++    -- ** Object_Owner+    Object_Owner (..),+    newObject_Owner,++    -- ** Object_OwnerPatch+    Object_OwnerPatch (..),+    newObject_OwnerPatch,++    -- ** Object_Retention+    Object_Retention (..),+    newObject_Retention,++    -- ** Object_RetentionPatch+    Object_RetentionPatch (..),+    newObject_RetentionPatch,++    -- ** ObjectAccessControl+    ObjectAccessControl (..),+    newObjectAccessControl,++    -- ** ObjectAccessControlInsertInput+    ObjectAccessControlInsertInput (..),+    newObjectAccessControlInsertInput,++    -- ** ObjectAccessControlPatch+    ObjectAccessControlPatch (..),+    newObjectAccessControlPatch,++    -- ** ObjectAccessControl_ProjectTeam+    ObjectAccessControl_ProjectTeam (..),+    newObjectAccessControl_ProjectTeam,++    -- ** ObjectAccessControl_ProjectTeamPatch+    ObjectAccessControl_ProjectTeamPatch (..),+    newObjectAccessControl_ProjectTeamPatch,++    -- ** ObjectAccessControls+    ObjectAccessControls (..),+    newObjectAccessControls,++    -- ** ObjectCustomContextPayload+    ObjectCustomContextPayload (..),+    newObjectCustomContextPayload,++    -- ** ObjectCustomContextPayloadPatch+    ObjectCustomContextPayloadPatch (..),+    newObjectCustomContextPayloadPatch,++    -- ** Objects+    Objects (..),+    newObjects,++    -- ** Policy+    Policy (..),+    newPolicy,++    -- ** PolicySetIamPolicyInput+    PolicySetIamPolicyInput (..),+    newPolicySetIamPolicyInput,++    -- ** Policy_BindingsItem+    Policy_BindingsItem (..),+    newPolicy_BindingsItem,++    -- ** Policy_BindingsItemSetIamPolicyInput+    Policy_BindingsItemSetIamPolicyInput (..),+    newPolicy_BindingsItemSetIamPolicyInput,++    -- ** RapidCache+    RapidCache (..),+    newRapidCache,++    -- ** RapidCachePatch+    RapidCachePatch (..),+    newRapidCachePatch,++    -- ** RapidCacheConfig+    RapidCacheConfig (..),+    newRapidCacheConfig,++    -- ** RapidCacheConfigPatch+    RapidCacheConfigPatch (..),+    newRapidCacheConfigPatch,++    -- ** RapidCacheConfig_Policies+    RapidCacheConfig_Policies (..),+    newRapidCacheConfig_Policies,++    -- ** RapidCacheConfig_PoliciesPatch+    RapidCacheConfig_PoliciesPatch (..),+    newRapidCacheConfig_PoliciesPatch,++    -- ** RapidCachePolicy+    RapidCachePolicy (..),+    newRapidCachePolicy,++    -- ** RapidCachePolicyPatch+    RapidCachePolicyPatch (..),+    newRapidCachePolicyPatch,++    -- ** RapidCachePolicy_IngestOnWrite+    RapidCachePolicy_IngestOnWrite (..),++    -- ** RapidCaches+    RapidCaches (..),+    newRapidCaches,++    -- ** RelocateBucketRequest+    RelocateBucketRequest (..),+    newRelocateBucketRequest,++    -- ** RelocateBucketRequest_DestinationCustomPlacementConfig+    RelocateBucketRequest_DestinationCustomPlacementConfig (..),+    newRelocateBucketRequest_DestinationCustomPlacementConfig,++    -- ** RewriteResponse+    RewriteResponse (..),+    newRewriteResponse,++    -- ** ServiceAccount+    ServiceAccount (..),+    newServiceAccount,++    -- ** TestIamPermissionsResponse+    TestIamPermissionsResponse (..),+    newTestIamPermissionsResponse,++    -- ** BucketsGetProjection+    BucketsGetProjection (..),++    -- ** BucketsInsertPredefinedAcl+    BucketsInsertPredefinedAcl (..),++    -- ** BucketsInsertPredefinedDefaultObjectAcl+    BucketsInsertPredefinedDefaultObjectAcl (..),++    -- ** BucketsInsertProjection+    BucketsInsertProjection (..),++    -- ** BucketsListProjection+    BucketsListProjection (..),++    -- ** BucketsPatchPredefinedAcl+    BucketsPatchPredefinedAcl (..),++    -- ** BucketsPatchPredefinedDefaultObjectAcl+    BucketsPatchPredefinedDefaultObjectAcl (..),++    -- ** BucketsPatchProjection+    BucketsPatchProjection (..),++    -- ** BucketsRestoreProjection+    BucketsRestoreProjection (..),++    -- ** BucketsUpdatePredefinedAcl+    BucketsUpdatePredefinedAcl (..),++    -- ** BucketsUpdatePredefinedDefaultObjectAcl+    BucketsUpdatePredefinedDefaultObjectAcl (..),++    -- ** BucketsUpdateProjection+    BucketsUpdateProjection (..),++    -- ** ObjectsComposeDestinationPredefinedAcl+    ObjectsComposeDestinationPredefinedAcl (..),++    -- ** ObjectsCopyDestinationPredefinedAcl+    ObjectsCopyDestinationPredefinedAcl (..),++    -- ** ObjectsCopyProjection+    ObjectsCopyProjection (..),++    -- ** ObjectsGetProjection+    ObjectsGetProjection (..),++    -- ** ObjectsInsertPredefinedAcl+    ObjectsInsertPredefinedAcl (..),++    -- ** ObjectsInsertProjection+    ObjectsInsertProjection (..),++    -- ** ObjectsListProjection+    ObjectsListProjection (..),++    -- ** ObjectsMoveProjection+    ObjectsMoveProjection (..),++    -- ** ObjectsPatchPredefinedAcl+    ObjectsPatchPredefinedAcl (..),++    -- ** ObjectsPatchProjection+    ObjectsPatchProjection (..),++    -- ** ObjectsRestoreProjection+    ObjectsRestoreProjection (..),++    -- ** ObjectsRewriteDestinationPredefinedAcl+    ObjectsRewriteDestinationPredefinedAcl (..),++    -- ** ObjectsRewriteProjection+    ObjectsRewriteProjection (..),++    -- ** ObjectsUpdatePredefinedAcl+    ObjectsUpdatePredefinedAcl (..),++    -- ** ObjectsUpdateProjection+    ObjectsUpdateProjection (..),+  )+where++import Unkai.Storage.AnywhereCaches.Disable+import Unkai.Storage.AnywhereCaches.Get+import Unkai.Storage.AnywhereCaches.Insert+import Unkai.Storage.AnywhereCaches.List+import Unkai.Storage.AnywhereCaches.Pause+import Unkai.Storage.AnywhereCaches.Resume+import Unkai.Storage.AnywhereCaches.Update+import Unkai.Storage.BucketAccessControls.Delete+import Unkai.Storage.BucketAccessControls.Get+import Unkai.Storage.BucketAccessControls.Insert+import Unkai.Storage.BucketAccessControls.List+import Unkai.Storage.BucketAccessControls.Patch+import Unkai.Storage.BucketAccessControls.Update+import Unkai.Storage.Buckets.Delete+import Unkai.Storage.Buckets.Get+import Unkai.Storage.Buckets.GetIamPolicy+import Unkai.Storage.Buckets.GetStorageLayout+import Unkai.Storage.Buckets.Insert+import Unkai.Storage.Buckets.List+import Unkai.Storage.Buckets.LockRetentionPolicy+import Unkai.Storage.Buckets.Operations.AdvanceRelocateBucket+import Unkai.Storage.Buckets.Operations.Cancel+import Unkai.Storage.Buckets.Operations.Get+import Unkai.Storage.Buckets.Operations.List+import Unkai.Storage.Buckets.Patch+import Unkai.Storage.Buckets.Relocate+import Unkai.Storage.Buckets.Restore+import Unkai.Storage.Buckets.SetIamPolicy+import Unkai.Storage.Buckets.TestIamPermissions+import Unkai.Storage.Buckets.Update+import Unkai.Storage.Channels.Stop+import Unkai.Storage.DefaultObjectAccessControls.Delete+import Unkai.Storage.DefaultObjectAccessControls.Get+import Unkai.Storage.DefaultObjectAccessControls.Insert+import Unkai.Storage.DefaultObjectAccessControls.List+import Unkai.Storage.DefaultObjectAccessControls.Patch+import Unkai.Storage.DefaultObjectAccessControls.Update+import Unkai.Storage.Folders.Delete+import Unkai.Storage.Folders.DeleteRecursive+import Unkai.Storage.Folders.Get+import Unkai.Storage.Folders.Insert+import Unkai.Storage.Folders.List+import Unkai.Storage.Folders.Rename+import Unkai.Storage.ManagedFolders.Delete+import Unkai.Storage.ManagedFolders.Get+import Unkai.Storage.ManagedFolders.GetIamPolicy+import Unkai.Storage.ManagedFolders.Insert+import Unkai.Storage.ManagedFolders.List+import Unkai.Storage.ManagedFolders.SetIamPolicy+import Unkai.Storage.ManagedFolders.TestIamPermissions+import Unkai.Storage.ManagedFolders.Update+import Unkai.Storage.Notifications.Delete+import Unkai.Storage.Notifications.Get+import Unkai.Storage.Notifications.Insert+import Unkai.Storage.Notifications.List+import Unkai.Storage.ObjectAccessControls.Delete+import Unkai.Storage.ObjectAccessControls.Get+import Unkai.Storage.ObjectAccessControls.Insert+import Unkai.Storage.ObjectAccessControls.List+import Unkai.Storage.ObjectAccessControls.Patch+import Unkai.Storage.ObjectAccessControls.Update+import Unkai.Storage.Objects.BulkRestore+import Unkai.Storage.Objects.Compose+import Unkai.Storage.Objects.Copy+import Unkai.Storage.Objects.Delete+import Unkai.Storage.Objects.Get+import Unkai.Storage.Objects.GetIamPolicy+import Unkai.Storage.Objects.Insert+import Unkai.Storage.Objects.List+import Unkai.Storage.Objects.Move+import Unkai.Storage.Objects.Patch+import Unkai.Storage.Objects.Restore+import Unkai.Storage.Objects.Rewrite+import Unkai.Storage.Objects.SetIamPolicy+import Unkai.Storage.Objects.TestIamPermissions+import Unkai.Storage.Objects.Update+import Unkai.Storage.Projects.HmacKeys.Create+import Unkai.Storage.Projects.HmacKeys.Delete+import Unkai.Storage.Projects.HmacKeys.Get+import Unkai.Storage.Projects.HmacKeys.List+import Unkai.Storage.Projects.HmacKeys.Update+import Unkai.Storage.Projects.ServiceAccount.Get+import Unkai.Storage.RapidCaches.Disable+import Unkai.Storage.RapidCaches.Get+import Unkai.Storage.RapidCaches.Insert+import Unkai.Storage.RapidCaches.List+import Unkai.Storage.RapidCaches.Update+import Unkai.Storage.Types
+ gen/Unkai/Storage/AnywhereCaches/Disable.hs view
@@ -0,0 +1,93 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.AnywhereCaches.Disable+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Disables an Anywhere Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.anywhereCaches.disable@.+module Unkai.Storage.AnywhereCaches.Disable+  ( -- * Resource+    StorageAnywhereCachesDisableResource,++    -- ** Constructing a Request+    StorageAnywhereCachesDisable (..),+    newStorageAnywhereCachesDisable,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.anywhereCaches.disable@ method which the+-- 'StorageAnywhereCachesDisable' request conforms to.+type StorageAnywhereCachesDisableResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "anywhereCaches"+    Core.:> Core.Capture "anywhereCacheId" Core.Text+    Core.:> "disable"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] AnywhereCache++-- | Disables an Anywhere Cache instance.+--+-- /See:/ 'newStorageAnywhereCachesDisable' smart constructor.+data StorageAnywhereCachesDisable = StorageAnywhereCachesDisable+  { -- | The ID of requested Anywhere Cache instance.+    anywhereCacheId :: Core.Text,+    -- | Name of the parent bucket.+    bucket :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageAnywhereCachesDisable' with the minimum fields required to make a request.+newStorageAnywhereCachesDisable ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  The ID of requested Anywhere Cache instance. See 'anywhereCacheId'.+  Core.Text ->+  StorageAnywhereCachesDisable+newStorageAnywhereCachesDisable bucket anywhereCacheId =+  StorageAnywhereCachesDisable+    { anywhereCacheId = anywhereCacheId,+      bucket = bucket+    }++instance Core.GoogleRequest StorageAnywhereCachesDisable where+  type Rs StorageAnywhereCachesDisable = AnywhereCache+  type+    Scopes StorageAnywhereCachesDisable =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageAnywhereCachesDisable {..} =+    go bucket anywhereCacheId (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageAnywhereCachesDisableResource)+          Core.mempty
+ gen/Unkai/Storage/AnywhereCaches/Get.hs view
@@ -0,0 +1,94 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.AnywhereCaches.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the metadata of an Anywhere Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.anywhereCaches.get@.+module Unkai.Storage.AnywhereCaches.Get+  ( -- * Resource+    StorageAnywhereCachesGetResource,++    -- ** Constructing a Request+    StorageAnywhereCachesGet (..),+    newStorageAnywhereCachesGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.anywhereCaches.get@ method which the+-- 'StorageAnywhereCachesGet' request conforms to.+type StorageAnywhereCachesGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "anywhereCaches"+    Core.:> Core.Capture "anywhereCacheId" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] AnywhereCache++-- | Returns the metadata of an Anywhere Cache instance.+--+-- /See:/ 'newStorageAnywhereCachesGet' smart constructor.+data StorageAnywhereCachesGet = StorageAnywhereCachesGet+  { -- | The ID of requested Anywhere Cache instance.+    anywhereCacheId :: Core.Text,+    -- | Name of the parent bucket.+    bucket :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageAnywhereCachesGet' with the minimum fields required to make a request.+newStorageAnywhereCachesGet ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  The ID of requested Anywhere Cache instance. See 'anywhereCacheId'.+  Core.Text ->+  StorageAnywhereCachesGet+newStorageAnywhereCachesGet bucket anywhereCacheId =+  StorageAnywhereCachesGet+    { anywhereCacheId = anywhereCacheId,+      bucket = bucket+    }++instance Core.GoogleRequest StorageAnywhereCachesGet where+  type Rs StorageAnywhereCachesGet = AnywhereCache+  type+    Scopes StorageAnywhereCachesGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageAnywhereCachesGet {..} =+    go bucket anywhereCacheId (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageAnywhereCachesGetResource)+          Core.mempty
+ gen/Unkai/Storage/AnywhereCaches/Insert.hs view
@@ -0,0 +1,89 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.AnywhereCaches.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates an Anywhere Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.anywhereCaches.insert@.+module Unkai.Storage.AnywhereCaches.Insert+  ( -- * Resource+    StorageAnywhereCachesInsertResource,++    -- ** Constructing a Request+    StorageAnywhereCachesInsert (..),+    newStorageAnywhereCachesInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.anywhereCaches.insert@ method which the+-- 'StorageAnywhereCachesInsert' request conforms to.+type StorageAnywhereCachesInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "anywhereCaches"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] AnywhereCache+    Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Creates an Anywhere Cache instance.+--+-- /See:/ 'newStorageAnywhereCachesInsert' smart constructor.+data StorageAnywhereCachesInsert = StorageAnywhereCachesInsert+  { -- | Name of the parent bucket.+    bucket :: Core.Text,+    -- | Request body.+    payload :: AnywhereCache+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageAnywhereCachesInsert' with the minimum fields required to make a request.+newStorageAnywhereCachesInsert ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  AnywhereCache ->+  StorageAnywhereCachesInsert+newStorageAnywhereCachesInsert bucket payload =+  StorageAnywhereCachesInsert {bucket = bucket, payload = payload}++instance Core.GoogleRequest StorageAnywhereCachesInsert where+  type Rs StorageAnywhereCachesInsert = GoogleLongrunningOperation+  type+    Scopes StorageAnywhereCachesInsert =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageAnywhereCachesInsert {..} =+    go bucket (Core.Just Core.AltJSON) payload storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageAnywhereCachesInsertResource)+          Core.mempty
+ gen/Unkai/Storage/AnywhereCaches/List.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.AnywhereCaches.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a list of Anywhere Cache instances of the bucket matching the criteria.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.anywhereCaches.list@.+module Unkai.Storage.AnywhereCaches.List+  ( -- * Resource+    StorageAnywhereCachesListResource,++    -- ** Constructing a Request+    StorageAnywhereCachesList (..),+    newStorageAnywhereCachesList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.anywhereCaches.list@ method which the+-- 'StorageAnywhereCachesList' request conforms to.+type StorageAnywhereCachesListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "anywhereCaches"+    Core.:> Core.QueryParam "pageSize" Core.Int32+    Core.:> Core.QueryParam "pageToken" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] AnywhereCaches++-- | Returns a list of Anywhere Cache instances of the bucket matching the criteria.+--+-- /See:/ 'newStorageAnywhereCachesList' smart constructor.+data StorageAnywhereCachesList = StorageAnywhereCachesList+  { -- | Name of the parent bucket.+    bucket :: Core.Text,+    -- | Maximum number of items to return in a single page of responses. Maximum 1000.+    pageSize :: (Core.Maybe Core.Int32),+    -- | A previously-returned page token representing part of the larger set of results to view.+    pageToken :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageAnywhereCachesList' with the minimum fields required to make a request.+newStorageAnywhereCachesList ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  StorageAnywhereCachesList+newStorageAnywhereCachesList bucket =+  StorageAnywhereCachesList+    { bucket = bucket,+      pageSize = Core.Nothing,+      pageToken = Core.Nothing+    }++instance Core.GoogleRequest StorageAnywhereCachesList where+  type Rs StorageAnywhereCachesList = AnywhereCaches+  type+    Scopes StorageAnywhereCachesList =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageAnywhereCachesList {..} =+    go+      bucket+      pageSize+      pageToken+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageAnywhereCachesListResource)+          Core.mempty
+ gen/Unkai/Storage/AnywhereCaches/Pause.hs view
@@ -0,0 +1,93 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.AnywhereCaches.Pause+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Pauses an Anywhere Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.anywhereCaches.pause@.+module Unkai.Storage.AnywhereCaches.Pause+  ( -- * Resource+    StorageAnywhereCachesPauseResource,++    -- ** Constructing a Request+    StorageAnywhereCachesPause (..),+    newStorageAnywhereCachesPause,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.anywhereCaches.pause@ method which the+-- 'StorageAnywhereCachesPause' request conforms to.+type StorageAnywhereCachesPauseResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "anywhereCaches"+    Core.:> Core.Capture "anywhereCacheId" Core.Text+    Core.:> "pause"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] AnywhereCache++-- | Pauses an Anywhere Cache instance.+--+-- /See:/ 'newStorageAnywhereCachesPause' smart constructor.+data StorageAnywhereCachesPause = StorageAnywhereCachesPause+  { -- | The ID of requested Anywhere Cache instance.+    anywhereCacheId :: Core.Text,+    -- | Name of the parent bucket.+    bucket :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageAnywhereCachesPause' with the minimum fields required to make a request.+newStorageAnywhereCachesPause ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  The ID of requested Anywhere Cache instance. See 'anywhereCacheId'.+  Core.Text ->+  StorageAnywhereCachesPause+newStorageAnywhereCachesPause bucket anywhereCacheId =+  StorageAnywhereCachesPause+    { anywhereCacheId = anywhereCacheId,+      bucket = bucket+    }++instance Core.GoogleRequest StorageAnywhereCachesPause where+  type Rs StorageAnywhereCachesPause = AnywhereCache+  type+    Scopes StorageAnywhereCachesPause =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageAnywhereCachesPause {..} =+    go bucket anywhereCacheId (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageAnywhereCachesPauseResource)+          Core.mempty
+ gen/Unkai/Storage/AnywhereCaches/Resume.hs view
@@ -0,0 +1,93 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.AnywhereCaches.Resume+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Resumes a paused or disabled Anywhere Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.anywhereCaches.resume@.+module Unkai.Storage.AnywhereCaches.Resume+  ( -- * Resource+    StorageAnywhereCachesResumeResource,++    -- ** Constructing a Request+    StorageAnywhereCachesResume (..),+    newStorageAnywhereCachesResume,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.anywhereCaches.resume@ method which the+-- 'StorageAnywhereCachesResume' request conforms to.+type StorageAnywhereCachesResumeResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "anywhereCaches"+    Core.:> Core.Capture "anywhereCacheId" Core.Text+    Core.:> "resume"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] AnywhereCache++-- | Resumes a paused or disabled Anywhere Cache instance.+--+-- /See:/ 'newStorageAnywhereCachesResume' smart constructor.+data StorageAnywhereCachesResume = StorageAnywhereCachesResume+  { -- | The ID of requested Anywhere Cache instance.+    anywhereCacheId :: Core.Text,+    -- | Name of the parent bucket.+    bucket :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageAnywhereCachesResume' with the minimum fields required to make a request.+newStorageAnywhereCachesResume ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  The ID of requested Anywhere Cache instance. See 'anywhereCacheId'.+  Core.Text ->+  StorageAnywhereCachesResume+newStorageAnywhereCachesResume bucket anywhereCacheId =+  StorageAnywhereCachesResume+    { anywhereCacheId = anywhereCacheId,+      bucket = bucket+    }++instance Core.GoogleRequest StorageAnywhereCachesResume where+  type Rs StorageAnywhereCachesResume = AnywhereCache+  type+    Scopes StorageAnywhereCachesResume =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageAnywhereCachesResume {..} =+    go bucket anywhereCacheId (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageAnywhereCachesResumeResource)+          Core.mempty
+ gen/Unkai/Storage/AnywhereCaches/Update.hs view
@@ -0,0 +1,103 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.AnywhereCaches.Update+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the config of an Anywhere Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.anywhereCaches.update@.+module Unkai.Storage.AnywhereCaches.Update+  ( -- * Resource+    StorageAnywhereCachesUpdateResource,++    -- ** Constructing a Request+    StorageAnywhereCachesUpdate (..),+    newStorageAnywhereCachesUpdate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.anywhereCaches.update@ method which the+-- 'StorageAnywhereCachesUpdate' request conforms to.+type StorageAnywhereCachesUpdateResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "anywhereCaches"+    Core.:> Core.Capture "anywhereCacheId" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] AnywhereCachePatch+    Core.:> Core.Patch '[Core.JSON] GoogleLongrunningOperation++-- | Updates the config of an Anywhere Cache instance.+--+-- /See:/ 'newStorageAnywhereCachesUpdate' smart constructor.+data StorageAnywhereCachesUpdate = StorageAnywhereCachesUpdate+  { -- | The ID of requested Anywhere Cache instance.+    anywhereCacheId :: Core.Text,+    -- | Name of the parent bucket.+    bucket :: Core.Text,+    -- | Request body.+    payload :: AnywhereCachePatch+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageAnywhereCachesUpdate' with the minimum fields required to make a request.+newStorageAnywhereCachesUpdate ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  The ID of requested Anywhere Cache instance. See 'anywhereCacheId'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  AnywhereCachePatch ->+  StorageAnywhereCachesUpdate+newStorageAnywhereCachesUpdate bucket anywhereCacheId payload =+  StorageAnywhereCachesUpdate+    { anywhereCacheId = anywhereCacheId,+      bucket = bucket,+      payload = payload+    }++instance Core.GoogleRequest StorageAnywhereCachesUpdate where+  type Rs StorageAnywhereCachesUpdate = GoogleLongrunningOperation+  type+    Scopes StorageAnywhereCachesUpdate =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageAnywhereCachesUpdate {..} =+    go+      bucket+      anywhereCacheId+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageAnywhereCachesUpdateResource)+          Core.mempty
+ gen/Unkai/Storage/BucketAccessControls/Delete.hs view
@@ -0,0 +1,100 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.BucketAccessControls.Delete+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Permanently deletes the ACL entry for the specified entity on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.bucketAccessControls.delete@.+module Unkai.Storage.BucketAccessControls.Delete+  ( -- * Resource+    StorageBucketAccessControlsDeleteResource,++    -- ** Constructing a Request+    StorageBucketAccessControlsDelete (..),+    newStorageBucketAccessControlsDelete,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.bucketAccessControls.delete@ method which the+-- 'StorageBucketAccessControlsDelete' request conforms to.+type StorageBucketAccessControlsDeleteResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "acl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Delete '[Core.JSON] ()++-- | Permanently deletes the ACL entry for the specified entity on the specified bucket.+--+-- /See:/ 'newStorageBucketAccessControlsDelete' smart constructor.+data StorageBucketAccessControlsDelete = StorageBucketAccessControlsDelete+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketAccessControlsDelete' with the minimum fields required to make a request.+newStorageBucketAccessControlsDelete ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  StorageBucketAccessControlsDelete+newStorageBucketAccessControlsDelete bucket entity =+  StorageBucketAccessControlsDelete+    { bucket = bucket,+      entity = entity,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketAccessControlsDelete where+  type Rs StorageBucketAccessControlsDelete = ()+  type+    Scopes StorageBucketAccessControlsDelete =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketAccessControlsDelete {..} =+    go+      bucket+      entity+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageBucketAccessControlsDeleteResource+          )+          Core.mempty
+ gen/Unkai/Storage/BucketAccessControls/Get.hs view
@@ -0,0 +1,98 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.BucketAccessControls.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the ACL entry for the specified entity on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.bucketAccessControls.get@.+module Unkai.Storage.BucketAccessControls.Get+  ( -- * Resource+    StorageBucketAccessControlsGetResource,++    -- ** Constructing a Request+    StorageBucketAccessControlsGet (..),+    newStorageBucketAccessControlsGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.bucketAccessControls.get@ method which the+-- 'StorageBucketAccessControlsGet' request conforms to.+type StorageBucketAccessControlsGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "acl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] BucketAccessControl++-- | Returns the ACL entry for the specified entity on the specified bucket.+--+-- /See:/ 'newStorageBucketAccessControlsGet' smart constructor.+data StorageBucketAccessControlsGet = StorageBucketAccessControlsGet+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketAccessControlsGet' with the minimum fields required to make a request.+newStorageBucketAccessControlsGet ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  StorageBucketAccessControlsGet+newStorageBucketAccessControlsGet bucket entity =+  StorageBucketAccessControlsGet+    { bucket = bucket,+      entity = entity,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketAccessControlsGet where+  type Rs StorageBucketAccessControlsGet = BucketAccessControl+  type+    Scopes StorageBucketAccessControlsGet =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketAccessControlsGet {..} =+    go+      bucket+      entity+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketAccessControlsGetResource)+          Core.mempty
+ gen/Unkai/Storage/BucketAccessControls/Insert.hs view
@@ -0,0 +1,100 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.BucketAccessControls.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new ACL entry on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.bucketAccessControls.insert@.+module Unkai.Storage.BucketAccessControls.Insert+  ( -- * Resource+    StorageBucketAccessControlsInsertResource,++    -- ** Constructing a Request+    StorageBucketAccessControlsInsert (..),+    newStorageBucketAccessControlsInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.bucketAccessControls.insert@ method which the+-- 'StorageBucketAccessControlsInsert' request conforms to.+type StorageBucketAccessControlsInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "acl"+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] BucketAccessControlInsertInput+    Core.:> Core.Post '[Core.JSON] BucketAccessControl++-- | Creates a new ACL entry on the specified bucket.+--+-- /See:/ 'newStorageBucketAccessControlsInsert' smart constructor.+data StorageBucketAccessControlsInsert = StorageBucketAccessControlsInsert+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | Request body.+    payload :: BucketAccessControlInsertInput,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketAccessControlsInsert' with the minimum fields required to make a request.+newStorageBucketAccessControlsInsert ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  BucketAccessControlInsertInput ->+  StorageBucketAccessControlsInsert+newStorageBucketAccessControlsInsert bucket payload =+  StorageBucketAccessControlsInsert+    { bucket = bucket,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketAccessControlsInsert where+  type Rs StorageBucketAccessControlsInsert = BucketAccessControl+  type+    Scopes StorageBucketAccessControlsInsert =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketAccessControlsInsert {..} =+    go+      bucket+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageBucketAccessControlsInsertResource+          )+          Core.mempty
+ gen/Unkai/Storage/BucketAccessControls/List.hs view
@@ -0,0 +1,87 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.BucketAccessControls.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves ACL entries on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.bucketAccessControls.list@.+module Unkai.Storage.BucketAccessControls.List+  ( -- * Resource+    StorageBucketAccessControlsListResource,++    -- ** Constructing a Request+    StorageBucketAccessControlsList (..),+    newStorageBucketAccessControlsList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.bucketAccessControls.list@ method which the+-- 'StorageBucketAccessControlsList' request conforms to.+type StorageBucketAccessControlsListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "acl"+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] BucketAccessControls++-- | Retrieves ACL entries on the specified bucket.+--+-- /See:/ 'newStorageBucketAccessControlsList' smart constructor.+data StorageBucketAccessControlsList = StorageBucketAccessControlsList+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketAccessControlsList' with the minimum fields required to make a request.+newStorageBucketAccessControlsList ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  StorageBucketAccessControlsList+newStorageBucketAccessControlsList bucket =+  StorageBucketAccessControlsList+    { bucket = bucket,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketAccessControlsList where+  type Rs StorageBucketAccessControlsList = BucketAccessControls+  type+    Scopes StorageBucketAccessControlsList =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketAccessControlsList {..} =+    go bucket userProject (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketAccessControlsListResource)+          Core.mempty
+ gen/Unkai/Storage/BucketAccessControls/Patch.hs view
@@ -0,0 +1,105 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.BucketAccessControls.Patch+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Patches an ACL entry on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.bucketAccessControls.patch@.+module Unkai.Storage.BucketAccessControls.Patch+  ( -- * Resource+    StorageBucketAccessControlsPatchResource,++    -- ** Constructing a Request+    StorageBucketAccessControlsPatch (..),+    newStorageBucketAccessControlsPatch,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.bucketAccessControls.patch@ method which the+-- 'StorageBucketAccessControlsPatch' request conforms to.+type StorageBucketAccessControlsPatchResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "acl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] BucketAccessControlPatch+    Core.:> Core.Patch '[Core.JSON] BucketAccessControl++-- | Patches an ACL entry on the specified bucket.+--+-- /See:/ 'newStorageBucketAccessControlsPatch' smart constructor.+data StorageBucketAccessControlsPatch = StorageBucketAccessControlsPatch+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | Request body.+    payload :: BucketAccessControlPatch,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketAccessControlsPatch' with the minimum fields required to make a request.+newStorageBucketAccessControlsPatch ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  BucketAccessControlPatch ->+  StorageBucketAccessControlsPatch+newStorageBucketAccessControlsPatch bucket entity payload =+  StorageBucketAccessControlsPatch+    { bucket = bucket,+      entity = entity,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketAccessControlsPatch where+  type Rs StorageBucketAccessControlsPatch = BucketAccessControl+  type+    Scopes StorageBucketAccessControlsPatch =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketAccessControlsPatch {..} =+    go+      bucket+      entity+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketAccessControlsPatchResource)+          Core.mempty
+ gen/Unkai/Storage/BucketAccessControls/Update.hs view
@@ -0,0 +1,107 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.BucketAccessControls.Update+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an ACL entry on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.bucketAccessControls.update@.+module Unkai.Storage.BucketAccessControls.Update+  ( -- * Resource+    StorageBucketAccessControlsUpdateResource,++    -- ** Constructing a Request+    StorageBucketAccessControlsUpdate (..),+    newStorageBucketAccessControlsUpdate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.bucketAccessControls.update@ method which the+-- 'StorageBucketAccessControlsUpdate' request conforms to.+type StorageBucketAccessControlsUpdateResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "acl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] BucketAccessControl+    Core.:> Core.Put '[Core.JSON] BucketAccessControl++-- | Updates an ACL entry on the specified bucket.+--+-- /See:/ 'newStorageBucketAccessControlsUpdate' smart constructor.+data StorageBucketAccessControlsUpdate = StorageBucketAccessControlsUpdate+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | Request body.+    payload :: BucketAccessControl,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketAccessControlsUpdate' with the minimum fields required to make a request.+newStorageBucketAccessControlsUpdate ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  BucketAccessControl ->+  StorageBucketAccessControlsUpdate+newStorageBucketAccessControlsUpdate bucket entity payload =+  StorageBucketAccessControlsUpdate+    { bucket = bucket,+      entity = entity,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketAccessControlsUpdate where+  type Rs StorageBucketAccessControlsUpdate = BucketAccessControl+  type+    Scopes StorageBucketAccessControlsUpdate =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketAccessControlsUpdate {..} =+    go+      bucket+      entity+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageBucketAccessControlsUpdateResource+          )+          Core.mempty
+ gen/Unkai/Storage/Buckets/Delete.hs view
@@ -0,0 +1,103 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Delete+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.delete@.+module Unkai.Storage.Buckets.Delete+  ( -- * Resource+    StorageBucketsDeleteResource,++    -- ** Constructing a Request+    StorageBucketsDelete (..),+    newStorageBucketsDelete,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.delete@ method which the+-- 'StorageBucketsDelete' request conforms to.+type StorageBucketsDeleteResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Delete '[Core.JSON] ()++-- | Deletes an empty bucket. Deletions are permanent unless soft delete is enabled on the bucket.+--+-- /See:/ 'newStorageBucketsDelete' smart constructor.+data StorageBucketsDelete = StorageBucketsDelete+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | If set, only deletes the bucket if its metageneration matches this value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | If set, only deletes the bucket if its metageneration does not match this value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsDelete' with the minimum fields required to make a request.+newStorageBucketsDelete ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  StorageBucketsDelete+newStorageBucketsDelete bucket =+  StorageBucketsDelete+    { bucket = bucket,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsDelete where+  type Rs StorageBucketsDelete = ()+  type+    Scopes StorageBucketsDelete =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsDelete {..} =+    go+      bucket+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsDeleteResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/Get.hs view
@@ -0,0 +1,120 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns metadata for the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.get@.+module Unkai.Storage.Buckets.Get+  ( -- * Resource+    StorageBucketsGetResource,++    -- ** Constructing a Request+    StorageBucketsGet (..),+    newStorageBucketsGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.get@ method which the+-- 'StorageBucketsGet' request conforms to.+type StorageBucketsGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "projection" BucketsGetProjection+    Core.:> Core.QueryParam "softDeleted" Core.Bool+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Bucket++-- | Returns metadata for the specified bucket.+--+-- /See:/ 'newStorageBucketsGet' smart constructor.+data StorageBucketsGet = StorageBucketsGet+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | If present, specifies the generation of the bucket. This is required if softDeleted is true.+    generation :: (Core.Maybe Core.Int64),+    -- | Makes the return of the bucket metadata conditional on whether the bucket\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the return of the bucket metadata conditional on whether the bucket\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Set of properties to return. Defaults to noAcl.+    projection :: (Core.Maybe BucketsGetProjection),+    -- | If true, return the soft-deleted version of this bucket. The default is false. For more information, see <https://cloud.google.com/storage/docs/soft-delete Soft Delete>.+    softDeleted :: (Core.Maybe Core.Bool),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsGet' with the minimum fields required to make a request.+newStorageBucketsGet ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  StorageBucketsGet+newStorageBucketsGet bucket =+  StorageBucketsGet+    { bucket = bucket,+      generation = Core.Nothing,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      projection = Core.Nothing,+      softDeleted = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsGet where+  type Rs StorageBucketsGet = Bucket+  type+    Scopes StorageBucketsGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsGet {..} =+    go+      bucket+      generation+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      projection+      softDeleted+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsGetResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/GetIamPolicy.hs view
@@ -0,0 +1,96 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.GetIamPolicy+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns an IAM policy for the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.getIamPolicy@.+module Unkai.Storage.Buckets.GetIamPolicy+  ( -- * Resource+    StorageBucketsGetIamPolicyResource,++    -- ** Constructing a Request+    StorageBucketsGetIamPolicy (..),+    newStorageBucketsGetIamPolicy,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.getIamPolicy@ method which the+-- 'StorageBucketsGetIamPolicy' request conforms to.+type StorageBucketsGetIamPolicyResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "iam"+    Core.:> Core.QueryParam "optionsRequestedPolicyVersion" Core.Int32+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Policy++-- | Returns an IAM policy for the specified bucket.+--+-- /See:/ 'newStorageBucketsGetIamPolicy' smart constructor.+data StorageBucketsGetIamPolicy = StorageBucketsGetIamPolicy+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn\'t support part of the requested IAM policy, the request fails.+    optionsRequestedPolicyVersion :: (Core.Maybe Core.Int32),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsGetIamPolicy' with the minimum fields required to make a request.+newStorageBucketsGetIamPolicy ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  StorageBucketsGetIamPolicy+newStorageBucketsGetIamPolicy bucket =+  StorageBucketsGetIamPolicy+    { bucket = bucket,+      optionsRequestedPolicyVersion = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsGetIamPolicy where+  type Rs StorageBucketsGetIamPolicy = Policy+  type+    Scopes StorageBucketsGetIamPolicy =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketsGetIamPolicy {..} =+    go+      bucket+      optionsRequestedPolicyVersion+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsGetIamPolicyResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/GetStorageLayout.hs view
@@ -0,0 +1,92 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.GetStorageLayout+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the storage layout configuration for the specified bucket. Note that this operation requires storage.objects.list permission.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.getStorageLayout@.+module Unkai.Storage.Buckets.GetStorageLayout+  ( -- * Resource+    StorageBucketsGetStorageLayoutResource,++    -- ** Constructing a Request+    StorageBucketsGetStorageLayout (..),+    newStorageBucketsGetStorageLayout,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.getStorageLayout@ method which the+-- 'StorageBucketsGetStorageLayout' request conforms to.+type StorageBucketsGetStorageLayoutResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "storageLayout"+    Core.:> Core.QueryParam "prefix" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] BucketStorageLayout++-- | Returns the storage layout configuration for the specified bucket. Note that this operation requires storage.objects.list permission.+--+-- /See:/ 'newStorageBucketsGetStorageLayout' smart constructor.+data StorageBucketsGetStorageLayout = StorageBucketsGetStorageLayout+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | An optional prefix used for permission check. It is useful when the caller only has storage.objects.list permission under a specific prefix.+    prefix :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsGetStorageLayout' with the minimum fields required to make a request.+newStorageBucketsGetStorageLayout ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  StorageBucketsGetStorageLayout+newStorageBucketsGetStorageLayout bucket =+  StorageBucketsGetStorageLayout+    { bucket = bucket,+      prefix = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsGetStorageLayout where+  type Rs StorageBucketsGetStorageLayout = BucketStorageLayout+  type+    Scopes StorageBucketsGetStorageLayout =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsGetStorageLayout {..} =+    go bucket prefix (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsGetStorageLayoutResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/Insert.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.insert@.+module Unkai.Storage.Buckets.Insert+  ( -- * Resource+    StorageBucketsInsertResource,++    -- ** Constructing a Request+    StorageBucketsInsert (..),+    newStorageBucketsInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.insert@ method which the+-- 'StorageBucketsInsert' request conforms to.+type StorageBucketsInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.QueryParam "project" Core.Text+    Core.:> Core.QueryParam "enableObjectRetention" Core.Bool+    Core.:> Core.QueryParam "predefinedAcl" BucketsInsertPredefinedAcl+    Core.:> Core.QueryParam+              "predefinedDefaultObjectAcl"+              BucketsInsertPredefinedDefaultObjectAcl+    Core.:> Core.QueryParam "projection" BucketsInsertProjection+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] BucketInsertInput+    Core.:> Core.Post '[Core.JSON] Bucket++-- | Creates a new bucket.+--+-- /See:/ 'newStorageBucketsInsert' smart constructor.+data StorageBucketsInsert = StorageBucketsInsert+  { -- | When set to true, object retention is enabled for this bucket.+    enableObjectRetention :: Core.Bool,+    -- | Request body.+    payload :: BucketInsertInput,+    -- | Apply a predefined set of access controls to this bucket.+    predefinedAcl :: (Core.Maybe BucketsInsertPredefinedAcl),+    -- | Apply a predefined set of default object access controls to this bucket.+    predefinedDefaultObjectAcl :: (Core.Maybe BucketsInsertPredefinedDefaultObjectAcl),+    -- | A valid API project identifier.+    project :: Core.Text,+    -- | Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.+    projection :: (Core.Maybe BucketsInsertProjection),+    -- | The project to be billed for this request.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsInsert' with the minimum fields required to make a request.+newStorageBucketsInsert ::+  -- |  A valid API project identifier. See 'project'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  BucketInsertInput ->+  StorageBucketsInsert+newStorageBucketsInsert project payload =+  StorageBucketsInsert+    { enableObjectRetention = Core.False,+      payload = payload,+      predefinedAcl = Core.Nothing,+      predefinedDefaultObjectAcl = Core.Nothing,+      project = project,+      projection = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsInsert where+  type Rs StorageBucketsInsert = Bucket+  type+    Scopes StorageBucketsInsert =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsInsert {..} =+    go+      (Core.Just project)+      (Core.Just enableObjectRetention)+      predefinedAcl+      predefinedDefaultObjectAcl+      projection+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsInsertResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/List.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves a list of buckets for a given project.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.list@.+module Unkai.Storage.Buckets.List+  ( -- * Resource+    StorageBucketsListResource,++    -- ** Constructing a Request+    StorageBucketsList (..),+    newStorageBucketsList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.list@ method which the+-- 'StorageBucketsList' request conforms to.+type StorageBucketsListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.QueryParam "project" Core.Text+    Core.:> Core.QueryParam "maxResults" Core.Word32+    Core.:> Core.QueryParam "pageToken" Core.Text+    Core.:> Core.QueryParam "prefix" Core.Text+    Core.:> Core.QueryParam "projection" BucketsListProjection+    Core.:> Core.QueryParam "returnPartialSuccess" Core.Bool+    Core.:> Core.QueryParam "softDeleted" Core.Bool+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Buckets++-- | Retrieves a list of buckets for a given project.+--+-- /See:/ 'newStorageBucketsList' smart constructor.+data StorageBucketsList = StorageBucketsList+  { -- | Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller.+    maxResults :: Core.Word32,+    -- | A previously-returned page token representing part of the larger set of results to view.+    pageToken :: (Core.Maybe Core.Text),+    -- | Filter results to buckets whose names begin with this prefix.+    prefix :: (Core.Maybe Core.Text),+    -- | A valid API project identifier.+    project :: Core.Text,+    -- | Set of properties to return. Defaults to noAcl.+    projection :: (Core.Maybe BucketsListProjection),+    -- | If true, return a list of bucket resource names for buckets that are in unreachable locations.+    returnPartialSuccess :: (Core.Maybe Core.Bool),+    -- | If true, only soft-deleted bucket versions will be returned. The default is false. For more information, see <https://cloud.google.com/storage/docs/soft-delete Soft Delete>.+    softDeleted :: (Core.Maybe Core.Bool),+    -- | The project to be billed for this request.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsList' with the minimum fields required to make a request.+newStorageBucketsList ::+  -- |  A valid API project identifier. See 'project'.+  Core.Text ->+  StorageBucketsList+newStorageBucketsList project =+  StorageBucketsList+    { maxResults = 1000,+      pageToken = Core.Nothing,+      prefix = Core.Nothing,+      project = project,+      projection = Core.Nothing,+      returnPartialSuccess = Core.Nothing,+      softDeleted = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsList where+  type Rs StorageBucketsList = Buckets+  type+    Scopes StorageBucketsList =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsList {..} =+    go+      (Core.Just project)+      (Core.Just maxResults)+      pageToken+      prefix+      projection+      returnPartialSuccess+      softDeleted+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsListResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/LockRetentionPolicy.hs view
@@ -0,0 +1,103 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.LockRetentionPolicy+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Locks retention policy on a bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.lockRetentionPolicy@.+module Unkai.Storage.Buckets.LockRetentionPolicy+  ( -- * Resource+    StorageBucketsLockRetentionPolicyResource,++    -- ** Constructing a Request+    StorageBucketsLockRetentionPolicy (..),+    newStorageBucketsLockRetentionPolicy,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.lockRetentionPolicy@ method which the+-- 'StorageBucketsLockRetentionPolicy' request conforms to.+type StorageBucketsLockRetentionPolicyResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "lockRetentionPolicy"+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] Bucket++-- | Locks retention policy on a bucket.+--+-- /See:/ 'newStorageBucketsLockRetentionPolicy' smart constructor.+data StorageBucketsLockRetentionPolicy = StorageBucketsLockRetentionPolicy+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | Makes the operation conditional on whether bucket\'s current metageneration matches the given value.+    ifMetagenerationMatch :: Core.Int64,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsLockRetentionPolicy' with the minimum fields required to make a request.+newStorageBucketsLockRetentionPolicy ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Makes the operation conditional on whether bucket\'s current metageneration matches the given value. See 'ifMetagenerationMatch'.+  Core.Int64 ->+  StorageBucketsLockRetentionPolicy+newStorageBucketsLockRetentionPolicy bucket ifMetagenerationMatch =+  StorageBucketsLockRetentionPolicy+    { bucket = bucket,+      ifMetagenerationMatch = ifMetagenerationMatch,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsLockRetentionPolicy where+  type Rs StorageBucketsLockRetentionPolicy = Bucket+  type+    Scopes StorageBucketsLockRetentionPolicy =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsLockRetentionPolicy {..} =+    go+      bucket+      (Core.Just ifMetagenerationMatch)+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageBucketsLockRetentionPolicyResource+          )+          Core.mempty
+ gen/Unkai/Storage/Buckets/Operations/AdvanceRelocateBucket.hs view
@@ -0,0 +1,112 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Operations.AdvanceRelocateBucket+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Starts asynchronous advancement of the relocate bucket operation in the case of required write downtime, to allow it to lock the bucket at the source location, and proceed with the bucket location swap. The server makes a best effort to advance the relocate bucket operation, but success is not guaranteed.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.operations.advanceRelocateBucket@.+module Unkai.Storage.Buckets.Operations.AdvanceRelocateBucket+  ( -- * Resource+    StorageBucketsOperationsAdvanceRelocateBucketResource,++    -- ** Constructing a Request+    StorageBucketsOperationsAdvanceRelocateBucket (..),+    newStorageBucketsOperationsAdvanceRelocateBucket,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.operations.advanceRelocateBucket@ method which the+-- 'StorageBucketsOperationsAdvanceRelocateBucket' request conforms to.+type StorageBucketsOperationsAdvanceRelocateBucketResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "operations"+    Core.:> Core.Capture "operationId" Core.Text+    Core.:> "advanceRelocateBucket"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] AdvanceRelocateBucketOperationRequest+    Core.:> Core.Post '[Core.JSON] ()++-- | Starts asynchronous advancement of the relocate bucket operation in the case of required write downtime, to allow it to lock the bucket at the source location, and proceed with the bucket location swap. The server makes a best effort to advance the relocate bucket operation, but success is not guaranteed.+--+-- /See:/ 'newStorageBucketsOperationsAdvanceRelocateBucket' smart constructor.+data StorageBucketsOperationsAdvanceRelocateBucket = StorageBucketsOperationsAdvanceRelocateBucket+  { -- | Name of the bucket to advance the relocate for.+    bucket :: Core.Text,+    -- | ID of the operation resource.+    operationId :: Core.Text,+    -- | Request body.+    payload :: AdvanceRelocateBucketOperationRequest+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsOperationsAdvanceRelocateBucket' with the minimum fields required to make a request.+newStorageBucketsOperationsAdvanceRelocateBucket ::+  -- |  Name of the bucket to advance the relocate for. See 'bucket'.+  Core.Text ->+  -- |  ID of the operation resource. See 'operationId'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  AdvanceRelocateBucketOperationRequest ->+  StorageBucketsOperationsAdvanceRelocateBucket+newStorageBucketsOperationsAdvanceRelocateBucket+  bucket+  operationId+  payload =+    StorageBucketsOperationsAdvanceRelocateBucket+      { bucket = bucket,+        operationId = operationId,+        payload = payload+      }++instance+  Core.GoogleRequest+    StorageBucketsOperationsAdvanceRelocateBucket+  where+  type Rs StorageBucketsOperationsAdvanceRelocateBucket = ()+  type+    Scopes StorageBucketsOperationsAdvanceRelocateBucket =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsOperationsAdvanceRelocateBucket {..} =+    go+      bucket+      operationId+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageBucketsOperationsAdvanceRelocateBucketResource+          )+          Core.mempty
+ gen/Unkai/Storage/Buckets/Operations/Cancel.hs view
@@ -0,0 +1,93 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Operations.Cancel+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.operations.cancel@.+module Unkai.Storage.Buckets.Operations.Cancel+  ( -- * Resource+    StorageBucketsOperationsCancelResource,++    -- ** Constructing a Request+    StorageBucketsOperationsCancel (..),+    newStorageBucketsOperationsCancel,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.operations.cancel@ method which the+-- 'StorageBucketsOperationsCancel' request conforms to.+type StorageBucketsOperationsCancelResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "operations"+    Core.:> Core.Capture "operationId" Core.Text+    Core.:> "cancel"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] ()++-- | Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed.+--+-- /See:/ 'newStorageBucketsOperationsCancel' smart constructor.+data StorageBucketsOperationsCancel = StorageBucketsOperationsCancel+  { -- | The parent bucket of the operation resource.+    bucket :: Core.Text,+    -- | The ID of the operation resource.+    operationId :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsOperationsCancel' with the minimum fields required to make a request.+newStorageBucketsOperationsCancel ::+  -- |  The parent bucket of the operation resource. See 'bucket'.+  Core.Text ->+  -- |  The ID of the operation resource. See 'operationId'.+  Core.Text ->+  StorageBucketsOperationsCancel+newStorageBucketsOperationsCancel bucket operationId =+  StorageBucketsOperationsCancel+    { bucket = bucket,+      operationId = operationId+    }++instance Core.GoogleRequest StorageBucketsOperationsCancel where+  type Rs StorageBucketsOperationsCancel = ()+  type+    Scopes StorageBucketsOperationsCancel =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsOperationsCancel {..} =+    go bucket operationId (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsOperationsCancelResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/Operations/Get.hs view
@@ -0,0 +1,94 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Operations.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the latest state of a long-running operation.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.operations.get@.+module Unkai.Storage.Buckets.Operations.Get+  ( -- * Resource+    StorageBucketsOperationsGetResource,++    -- ** Constructing a Request+    StorageBucketsOperationsGet (..),+    newStorageBucketsOperationsGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.operations.get@ method which the+-- 'StorageBucketsOperationsGet' request conforms to.+type StorageBucketsOperationsGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "operations"+    Core.:> Core.Capture "operationId" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] GoogleLongrunningOperation++-- | Gets the latest state of a long-running operation.+--+-- /See:/ 'newStorageBucketsOperationsGet' smart constructor.+data StorageBucketsOperationsGet = StorageBucketsOperationsGet+  { -- | The parent bucket of the operation resource.+    bucket :: Core.Text,+    -- | The ID of the operation resource.+    operationId :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsOperationsGet' with the minimum fields required to make a request.+newStorageBucketsOperationsGet ::+  -- |  The parent bucket of the operation resource. See 'bucket'.+  Core.Text ->+  -- |  The ID of the operation resource. See 'operationId'.+  Core.Text ->+  StorageBucketsOperationsGet+newStorageBucketsOperationsGet bucket operationId =+  StorageBucketsOperationsGet+    { bucket = bucket,+      operationId = operationId+    }++instance Core.GoogleRequest StorageBucketsOperationsGet where+  type Rs StorageBucketsOperationsGet = GoogleLongrunningOperation+  type+    Scopes StorageBucketsOperationsGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsOperationsGet {..} =+    go bucket operationId (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsOperationsGetResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/Operations/List.hs view
@@ -0,0 +1,108 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Operations.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists operations that match the specified filter in the request.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.operations.list@.+module Unkai.Storage.Buckets.Operations.List+  ( -- * Resource+    StorageBucketsOperationsListResource,++    -- ** Constructing a Request+    StorageBucketsOperationsList (..),+    newStorageBucketsOperationsList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.operations.list@ method which the+-- 'StorageBucketsOperationsList' request conforms to.+type StorageBucketsOperationsListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "operations"+    Core.:> Core.QueryParam "filter" Core.Text+    Core.:> Core.QueryParam "pageSize" Core.Int32+    Core.:> Core.QueryParam "pageToken" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] GoogleLongrunningListOperationsResponse++-- | Lists operations that match the specified filter in the request.+--+-- /See:/ 'newStorageBucketsOperationsList' smart constructor.+data StorageBucketsOperationsList = StorageBucketsOperationsList+  { -- | Name of the bucket in which to look for operations.+    bucket :: Core.Text,+    -- | A filter to narrow down results to a preferred subset. The filtering language is documented in more detail in <https://google.aip.dev/160 AIP-160>.+    filter :: (Core.Maybe Core.Text),+    -- | Maximum number of items to return in a single page of responses. Fewer total results may be returned than requested. The service uses this parameter or 100 items, whichever is smaller.+    pageSize :: (Core.Maybe Core.Int32),+    -- | A previously-returned page token representing part of the larger set of results to view.+    pageToken :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsOperationsList' with the minimum fields required to make a request.+newStorageBucketsOperationsList ::+  -- |  Name of the bucket in which to look for operations. See 'bucket'.+  Core.Text ->+  StorageBucketsOperationsList+newStorageBucketsOperationsList bucket =+  StorageBucketsOperationsList+    { bucket = bucket,+      filter = Core.Nothing,+      pageSize = Core.Nothing,+      pageToken = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsOperationsList where+  type+    Rs StorageBucketsOperationsList =+      GoogleLongrunningListOperationsResponse+  type+    Scopes StorageBucketsOperationsList =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsOperationsList {..} =+    go+      bucket+      filter+      pageSize+      pageToken+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsOperationsListResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/Patch.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Patch+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.patch@.+module Unkai.Storage.Buckets.Patch+  ( -- * Resource+    StorageBucketsPatchResource,++    -- ** Constructing a Request+    StorageBucketsPatch (..),+    newStorageBucketsPatch,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.patch@ method which the+-- 'StorageBucketsPatch' request conforms to.+type StorageBucketsPatchResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "predefinedAcl" BucketsPatchPredefinedAcl+    Core.:> Core.QueryParam+              "predefinedDefaultObjectAcl"+              BucketsPatchPredefinedDefaultObjectAcl+    Core.:> Core.QueryParam "projection" BucketsPatchProjection+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] BucketPatch+    Core.:> Core.Patch '[Core.JSON] Bucket++-- | Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.+--+-- /See:/ 'newStorageBucketsPatch' smart constructor.+data StorageBucketsPatch = StorageBucketsPatch+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | Makes the return of the bucket metadata conditional on whether the bucket\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the return of the bucket metadata conditional on whether the bucket\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Request body.+    payload :: BucketPatch,+    -- | Apply a predefined set of access controls to this bucket.+    predefinedAcl :: (Core.Maybe BucketsPatchPredefinedAcl),+    -- | Apply a predefined set of default object access controls to this bucket.+    predefinedDefaultObjectAcl :: (Core.Maybe BucketsPatchPredefinedDefaultObjectAcl),+    -- | Set of properties to return. Defaults to full.+    projection :: (Core.Maybe BucketsPatchProjection),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsPatch' with the minimum fields required to make a request.+newStorageBucketsPatch ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  BucketPatch ->+  StorageBucketsPatch+newStorageBucketsPatch bucket payload =+  StorageBucketsPatch+    { bucket = bucket,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      payload = payload,+      predefinedAcl = Core.Nothing,+      predefinedDefaultObjectAcl = Core.Nothing,+      projection = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsPatch where+  type Rs StorageBucketsPatch = Bucket+  type+    Scopes StorageBucketsPatch =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketsPatch {..} =+    go+      bucket+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      predefinedAcl+      predefinedDefaultObjectAcl+      projection+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsPatchResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/Relocate.hs view
@@ -0,0 +1,89 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Relocate+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Initiates a long-running Relocate Bucket operation on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.relocate@.+module Unkai.Storage.Buckets.Relocate+  ( -- * Resource+    StorageBucketsRelocateResource,++    -- ** Constructing a Request+    StorageBucketsRelocate (..),+    newStorageBucketsRelocate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.relocate@ method which the+-- 'StorageBucketsRelocate' request conforms to.+type StorageBucketsRelocateResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "relocate"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] RelocateBucketRequest+    Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Initiates a long-running Relocate Bucket operation on the specified bucket.+--+-- /See:/ 'newStorageBucketsRelocate' smart constructor.+data StorageBucketsRelocate = StorageBucketsRelocate+  { -- | Name of the bucket to be moved.+    bucket :: Core.Text,+    -- | Request body.+    payload :: RelocateBucketRequest+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsRelocate' with the minimum fields required to make a request.+newStorageBucketsRelocate ::+  -- |  Name of the bucket to be moved. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  RelocateBucketRequest ->+  StorageBucketsRelocate+newStorageBucketsRelocate bucket payload =+  StorageBucketsRelocate {bucket = bucket, payload = payload}++instance Core.GoogleRequest StorageBucketsRelocate where+  type Rs StorageBucketsRelocate = GoogleLongrunningOperation+  type+    Scopes StorageBucketsRelocate =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsRelocate {..} =+    go bucket (Core.Just Core.AltJSON) payload storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsRelocateResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/Restore.hs view
@@ -0,0 +1,106 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Restore+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Restores a soft-deleted bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.restore@.+module Unkai.Storage.Buckets.Restore+  ( -- * Resource+    StorageBucketsRestoreResource,++    -- ** Constructing a Request+    StorageBucketsRestore (..),+    newStorageBucketsRestore,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.restore@ method which the+-- 'StorageBucketsRestore' request conforms to.+type StorageBucketsRestoreResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "restore"+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "projection" BucketsRestoreProjection+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] Bucket++-- | Restores a soft-deleted bucket.+--+-- /See:/ 'newStorageBucketsRestore' smart constructor.+data StorageBucketsRestore = StorageBucketsRestore+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | Generation of a bucket.+    generation :: Core.Int64,+    -- | Set of properties to return. Defaults to full.+    projection :: (Core.Maybe BucketsRestoreProjection),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsRestore' with the minimum fields required to make a request.+newStorageBucketsRestore ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Generation of a bucket. See 'generation'.+  Core.Int64 ->+  StorageBucketsRestore+newStorageBucketsRestore bucket generation =+  StorageBucketsRestore+    { bucket = bucket,+      generation = generation,+      projection = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsRestore where+  type Rs StorageBucketsRestore = Bucket+  type+    Scopes StorageBucketsRestore =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsRestore {..} =+    go+      bucket+      (Core.Just generation)+      projection+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsRestoreResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/SetIamPolicy.hs view
@@ -0,0 +1,98 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.SetIamPolicy+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an IAM policy for the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.setIamPolicy@.+module Unkai.Storage.Buckets.SetIamPolicy+  ( -- * Resource+    StorageBucketsSetIamPolicyResource,++    -- ** Constructing a Request+    StorageBucketsSetIamPolicy (..),+    newStorageBucketsSetIamPolicy,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.setIamPolicy@ method which the+-- 'StorageBucketsSetIamPolicy' request conforms to.+type StorageBucketsSetIamPolicyResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "iam"+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] PolicySetIamPolicyInput+    Core.:> Core.Put '[Core.JSON] Policy++-- | Updates an IAM policy for the specified bucket.+--+-- /See:/ 'newStorageBucketsSetIamPolicy' smart constructor.+data StorageBucketsSetIamPolicy = StorageBucketsSetIamPolicy+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | Request body.+    payload :: PolicySetIamPolicyInput,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsSetIamPolicy' with the minimum fields required to make a request.+newStorageBucketsSetIamPolicy ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  PolicySetIamPolicyInput ->+  StorageBucketsSetIamPolicy+newStorageBucketsSetIamPolicy bucket payload =+  StorageBucketsSetIamPolicy+    { bucket = bucket,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsSetIamPolicy where+  type Rs StorageBucketsSetIamPolicy = Policy+  type+    Scopes StorageBucketsSetIamPolicy =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketsSetIamPolicy {..} =+    go+      bucket+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsSetIamPolicyResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/TestIamPermissions.hs view
@@ -0,0 +1,106 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.TestIamPermissions+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Tests a set of permissions on the given bucket to see which, if any, are held by the caller.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.testIamPermissions@.+module Unkai.Storage.Buckets.TestIamPermissions+  ( -- * Resource+    StorageBucketsTestIamPermissionsResource,++    -- ** Constructing a Request+    StorageBucketsTestIamPermissions (..),+    newStorageBucketsTestIamPermissions,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.testIamPermissions@ method which the+-- 'StorageBucketsTestIamPermissions' request conforms to.+type StorageBucketsTestIamPermissionsResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "iam"+    Core.:> "testPermissions"+    Core.:> Core.QueryParams "permissions" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] TestIamPermissionsResponse++-- | Tests a set of permissions on the given bucket to see which, if any, are held by the caller.+--+-- /See:/ 'newStorageBucketsTestIamPermissions' smart constructor.+data StorageBucketsTestIamPermissions = StorageBucketsTestIamPermissions+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | Permissions to test.+    permissions :: [Core.Text],+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsTestIamPermissions' with the minimum fields required to make a request.+newStorageBucketsTestIamPermissions ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Permissions to test. See 'permissions'.+  [Core.Text] ->+  StorageBucketsTestIamPermissions+newStorageBucketsTestIamPermissions bucket permissions =+  StorageBucketsTestIamPermissions+    { bucket = bucket,+      permissions = permissions,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsTestIamPermissions where+  type+    Rs StorageBucketsTestIamPermissions =+      TestIamPermissionsResponse+  type+    Scopes StorageBucketsTestIamPermissions =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageBucketsTestIamPermissions {..} =+    go+      bucket+      permissions+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsTestIamPermissionsResource)+          Core.mempty
+ gen/Unkai/Storage/Buckets/Update.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Buckets.Update+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.buckets.update@.+module Unkai.Storage.Buckets.Update+  ( -- * Resource+    StorageBucketsUpdateResource,++    -- ** Constructing a Request+    StorageBucketsUpdate (..),+    newStorageBucketsUpdate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.buckets.update@ method which the+-- 'StorageBucketsUpdate' request conforms to.+type StorageBucketsUpdateResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "predefinedAcl" BucketsUpdatePredefinedAcl+    Core.:> Core.QueryParam+              "predefinedDefaultObjectAcl"+              BucketsUpdatePredefinedDefaultObjectAcl+    Core.:> Core.QueryParam "projection" BucketsUpdateProjection+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] BucketUpdateInput+    Core.:> Core.Put '[Core.JSON] Bucket++-- | Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.+--+-- /See:/ 'newStorageBucketsUpdate' smart constructor.+data StorageBucketsUpdate = StorageBucketsUpdate+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | Makes the return of the bucket metadata conditional on whether the bucket\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the return of the bucket metadata conditional on whether the bucket\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Request body.+    payload :: BucketUpdateInput,+    -- | Apply a predefined set of access controls to this bucket.+    predefinedAcl :: (Core.Maybe BucketsUpdatePredefinedAcl),+    -- | Apply a predefined set of default object access controls to this bucket.+    predefinedDefaultObjectAcl :: (Core.Maybe BucketsUpdatePredefinedDefaultObjectAcl),+    -- | Set of properties to return. Defaults to full.+    projection :: (Core.Maybe BucketsUpdateProjection),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageBucketsUpdate' with the minimum fields required to make a request.+newStorageBucketsUpdate ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  BucketUpdateInput ->+  StorageBucketsUpdate+newStorageBucketsUpdate bucket payload =+  StorageBucketsUpdate+    { bucket = bucket,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      payload = payload,+      predefinedAcl = Core.Nothing,+      predefinedDefaultObjectAcl = Core.Nothing,+      projection = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageBucketsUpdate where+  type Rs StorageBucketsUpdate = Bucket+  type+    Scopes StorageBucketsUpdate =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageBucketsUpdate {..} =+    go+      bucket+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      predefinedAcl+      predefinedDefaultObjectAcl+      projection+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageBucketsUpdateResource)+          Core.mempty
+ gen/Unkai/Storage/Channels/Stop.hs view
@@ -0,0 +1,86 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Channels.Stop+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Stop watching resources through this channel+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.channels.stop@.+module Unkai.Storage.Channels.Stop+  ( -- * Resource+    StorageChannelsStopResource,++    -- ** Constructing a Request+    StorageChannelsStop (..),+    newStorageChannelsStop,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.channels.stop@ method which the+-- 'StorageChannelsStop' request conforms to.+type StorageChannelsStopResource =+  "storage"+    Core.:> "v1"+    Core.:> "channels"+    Core.:> "stop"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] Channel+    Core.:> Core.Post '[Core.JSON] ()++-- | Stop watching resources through this channel+--+-- /See:/ 'newStorageChannelsStop' smart constructor.+newtype StorageChannelsStop = StorageChannelsStop+  { -- | Request body.+    payload :: Channel+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageChannelsStop' with the minimum fields required to make a request.+newStorageChannelsStop ::+  -- |  Request body. See 'payload'.+  Channel ->+  StorageChannelsStop+newStorageChannelsStop payload =+  StorageChannelsStop {payload = payload}++instance Core.GoogleRequest StorageChannelsStop where+  type Rs StorageChannelsStop = ()+  type+    Scopes StorageChannelsStop =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageChannelsStop {..} =+    go (Core.Just Core.AltJSON) payload storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageChannelsStopResource)+          Core.mempty
+ gen/Unkai/Storage/DefaultObjectAccessControls/Delete.hs view
@@ -0,0 +1,103 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.DefaultObjectAccessControls.Delete+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Permanently deletes the default object ACL entry for the specified entity on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.defaultObjectAccessControls.delete@.+module Unkai.Storage.DefaultObjectAccessControls.Delete+  ( -- * Resource+    StorageDefaultObjectAccessControlsDeleteResource,++    -- ** Constructing a Request+    StorageDefaultObjectAccessControlsDelete (..),+    newStorageDefaultObjectAccessControlsDelete,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.defaultObjectAccessControls.delete@ method which the+-- 'StorageDefaultObjectAccessControlsDelete' request conforms to.+type StorageDefaultObjectAccessControlsDeleteResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "defaultObjectAcl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Delete '[Core.JSON] ()++-- | Permanently deletes the default object ACL entry for the specified entity on the specified bucket.+--+-- /See:/ 'newStorageDefaultObjectAccessControlsDelete' smart constructor.+data StorageDefaultObjectAccessControlsDelete = StorageDefaultObjectAccessControlsDelete+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageDefaultObjectAccessControlsDelete' with the minimum fields required to make a request.+newStorageDefaultObjectAccessControlsDelete ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  StorageDefaultObjectAccessControlsDelete+newStorageDefaultObjectAccessControlsDelete bucket entity =+  StorageDefaultObjectAccessControlsDelete+    { bucket = bucket,+      entity = entity,+      userProject = Core.Nothing+    }++instance+  Core.GoogleRequest+    StorageDefaultObjectAccessControlsDelete+  where+  type Rs StorageDefaultObjectAccessControlsDelete = ()+  type+    Scopes StorageDefaultObjectAccessControlsDelete =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageDefaultObjectAccessControlsDelete {..} =+    go+      bucket+      entity+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageDefaultObjectAccessControlsDeleteResource+          )+          Core.mempty
+ gen/Unkai/Storage/DefaultObjectAccessControls/Get.hs view
@@ -0,0 +1,100 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.DefaultObjectAccessControls.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the default object ACL entry for the specified entity on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.defaultObjectAccessControls.get@.+module Unkai.Storage.DefaultObjectAccessControls.Get+  ( -- * Resource+    StorageDefaultObjectAccessControlsGetResource,++    -- ** Constructing a Request+    StorageDefaultObjectAccessControlsGet (..),+    newStorageDefaultObjectAccessControlsGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.defaultObjectAccessControls.get@ method which the+-- 'StorageDefaultObjectAccessControlsGet' request conforms to.+type StorageDefaultObjectAccessControlsGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "defaultObjectAcl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] ObjectAccessControl++-- | Returns the default object ACL entry for the specified entity on the specified bucket.+--+-- /See:/ 'newStorageDefaultObjectAccessControlsGet' smart constructor.+data StorageDefaultObjectAccessControlsGet = StorageDefaultObjectAccessControlsGet+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageDefaultObjectAccessControlsGet' with the minimum fields required to make a request.+newStorageDefaultObjectAccessControlsGet ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  StorageDefaultObjectAccessControlsGet+newStorageDefaultObjectAccessControlsGet bucket entity =+  StorageDefaultObjectAccessControlsGet+    { bucket = bucket,+      entity = entity,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageDefaultObjectAccessControlsGet where+  type Rs StorageDefaultObjectAccessControlsGet = ObjectAccessControl+  type+    Scopes StorageDefaultObjectAccessControlsGet =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageDefaultObjectAccessControlsGet {..} =+    go+      bucket+      entity+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageDefaultObjectAccessControlsGetResource+          )+          Core.mempty
+ gen/Unkai/Storage/DefaultObjectAccessControls/Insert.hs view
@@ -0,0 +1,105 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.DefaultObjectAccessControls.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new default object ACL entry on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.defaultObjectAccessControls.insert@.+module Unkai.Storage.DefaultObjectAccessControls.Insert+  ( -- * Resource+    StorageDefaultObjectAccessControlsInsertResource,++    -- ** Constructing a Request+    StorageDefaultObjectAccessControlsInsert (..),+    newStorageDefaultObjectAccessControlsInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.defaultObjectAccessControls.insert@ method which the+-- 'StorageDefaultObjectAccessControlsInsert' request conforms to.+type StorageDefaultObjectAccessControlsInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "defaultObjectAcl"+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ObjectAccessControlInsertInput+    Core.:> Core.Post '[Core.JSON] ObjectAccessControl++-- | Creates a new default object ACL entry on the specified bucket.+--+-- /See:/ 'newStorageDefaultObjectAccessControlsInsert' smart constructor.+data StorageDefaultObjectAccessControlsInsert = StorageDefaultObjectAccessControlsInsert+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | Request body.+    payload :: ObjectAccessControlInsertInput,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageDefaultObjectAccessControlsInsert' with the minimum fields required to make a request.+newStorageDefaultObjectAccessControlsInsert ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ObjectAccessControlInsertInput ->+  StorageDefaultObjectAccessControlsInsert+newStorageDefaultObjectAccessControlsInsert bucket payload =+  StorageDefaultObjectAccessControlsInsert+    { bucket = bucket,+      payload = payload,+      userProject = Core.Nothing+    }++instance+  Core.GoogleRequest+    StorageDefaultObjectAccessControlsInsert+  where+  type+    Rs StorageDefaultObjectAccessControlsInsert =+      ObjectAccessControl+  type+    Scopes StorageDefaultObjectAccessControlsInsert =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageDefaultObjectAccessControlsInsert {..} =+    go+      bucket+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageDefaultObjectAccessControlsInsertResource+          )+          Core.mempty
+ gen/Unkai/Storage/DefaultObjectAccessControls/List.hs view
@@ -0,0 +1,105 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.DefaultObjectAccessControls.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves default object ACL entries on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.defaultObjectAccessControls.list@.+module Unkai.Storage.DefaultObjectAccessControls.List+  ( -- * Resource+    StorageDefaultObjectAccessControlsListResource,++    -- ** Constructing a Request+    StorageDefaultObjectAccessControlsList (..),+    newStorageDefaultObjectAccessControlsList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.defaultObjectAccessControls.list@ method which the+-- 'StorageDefaultObjectAccessControlsList' request conforms to.+type StorageDefaultObjectAccessControlsListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "defaultObjectAcl"+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] ObjectAccessControls++-- | Retrieves default object ACL entries on the specified bucket.+--+-- /See:/ 'newStorageDefaultObjectAccessControlsList' smart constructor.+data StorageDefaultObjectAccessControlsList = StorageDefaultObjectAccessControlsList+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | If present, only return default ACL listing if the bucket\'s current metageneration matches this value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | If present, only return default ACL listing if the bucket\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageDefaultObjectAccessControlsList' with the minimum fields required to make a request.+newStorageDefaultObjectAccessControlsList ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  StorageDefaultObjectAccessControlsList+newStorageDefaultObjectAccessControlsList bucket =+  StorageDefaultObjectAccessControlsList+    { bucket = bucket,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageDefaultObjectAccessControlsList where+  type+    Rs StorageDefaultObjectAccessControlsList =+      ObjectAccessControls+  type+    Scopes StorageDefaultObjectAccessControlsList =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageDefaultObjectAccessControlsList {..} =+    go+      bucket+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageDefaultObjectAccessControlsListResource+          )+          Core.mempty
+ gen/Unkai/Storage/DefaultObjectAccessControls/Patch.hs view
@@ -0,0 +1,109 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.DefaultObjectAccessControls.Patch+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Patches a default object ACL entry on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.defaultObjectAccessControls.patch@.+module Unkai.Storage.DefaultObjectAccessControls.Patch+  ( -- * Resource+    StorageDefaultObjectAccessControlsPatchResource,++    -- ** Constructing a Request+    StorageDefaultObjectAccessControlsPatch (..),+    newStorageDefaultObjectAccessControlsPatch,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.defaultObjectAccessControls.patch@ method which the+-- 'StorageDefaultObjectAccessControlsPatch' request conforms to.+type StorageDefaultObjectAccessControlsPatchResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "defaultObjectAcl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ObjectAccessControlPatch+    Core.:> Core.Patch '[Core.JSON] ObjectAccessControl++-- | Patches a default object ACL entry on the specified bucket.+--+-- /See:/ 'newStorageDefaultObjectAccessControlsPatch' smart constructor.+data StorageDefaultObjectAccessControlsPatch = StorageDefaultObjectAccessControlsPatch+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | Request body.+    payload :: ObjectAccessControlPatch,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageDefaultObjectAccessControlsPatch' with the minimum fields required to make a request.+newStorageDefaultObjectAccessControlsPatch ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ObjectAccessControlPatch ->+  StorageDefaultObjectAccessControlsPatch+newStorageDefaultObjectAccessControlsPatch bucket entity payload =+  StorageDefaultObjectAccessControlsPatch+    { bucket = bucket,+      entity = entity,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageDefaultObjectAccessControlsPatch where+  type+    Rs StorageDefaultObjectAccessControlsPatch =+      ObjectAccessControl+  type+    Scopes StorageDefaultObjectAccessControlsPatch =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageDefaultObjectAccessControlsPatch {..} =+    go+      bucket+      entity+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageDefaultObjectAccessControlsPatchResource+          )+          Core.mempty
+ gen/Unkai/Storage/DefaultObjectAccessControls/Update.hs view
@@ -0,0 +1,112 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.DefaultObjectAccessControls.Update+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a default object ACL entry on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.defaultObjectAccessControls.update@.+module Unkai.Storage.DefaultObjectAccessControls.Update+  ( -- * Resource+    StorageDefaultObjectAccessControlsUpdateResource,++    -- ** Constructing a Request+    StorageDefaultObjectAccessControlsUpdate (..),+    newStorageDefaultObjectAccessControlsUpdate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.defaultObjectAccessControls.update@ method which the+-- 'StorageDefaultObjectAccessControlsUpdate' request conforms to.+type StorageDefaultObjectAccessControlsUpdateResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "defaultObjectAcl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ObjectAccessControl+    Core.:> Core.Put '[Core.JSON] ObjectAccessControl++-- | Updates a default object ACL entry on the specified bucket.+--+-- /See:/ 'newStorageDefaultObjectAccessControlsUpdate' smart constructor.+data StorageDefaultObjectAccessControlsUpdate = StorageDefaultObjectAccessControlsUpdate+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | Request body.+    payload :: ObjectAccessControl,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageDefaultObjectAccessControlsUpdate' with the minimum fields required to make a request.+newStorageDefaultObjectAccessControlsUpdate ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ObjectAccessControl ->+  StorageDefaultObjectAccessControlsUpdate+newStorageDefaultObjectAccessControlsUpdate bucket entity payload =+  StorageDefaultObjectAccessControlsUpdate+    { bucket = bucket,+      entity = entity,+      payload = payload,+      userProject = Core.Nothing+    }++instance+  Core.GoogleRequest+    StorageDefaultObjectAccessControlsUpdate+  where+  type+    Rs StorageDefaultObjectAccessControlsUpdate =+      ObjectAccessControl+  type+    Scopes StorageDefaultObjectAccessControlsUpdate =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageDefaultObjectAccessControlsUpdate {..} =+    go+      bucket+      entity+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageDefaultObjectAccessControlsUpdateResource+          )+          Core.mempty
+ gen/Unkai/Storage/Folders/Delete.hs view
@@ -0,0 +1,106 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Folders.Delete+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Permanently deletes a folder. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.folders.delete@.+module Unkai.Storage.Folders.Delete+  ( -- * Resource+    StorageFoldersDeleteResource,++    -- ** Constructing a Request+    StorageFoldersDelete (..),+    newStorageFoldersDelete,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.folders.delete@ method which the+-- 'StorageFoldersDelete' request conforms to.+type StorageFoldersDeleteResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "folders"+    Core.:> Core.Capture "folder" Core.Text+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Delete '[Core.JSON] ()++-- | Permanently deletes a folder. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ 'newStorageFoldersDelete' smart constructor.+data StorageFoldersDelete = StorageFoldersDelete+  { -- | Name of the bucket in which the folder resides.+    bucket :: Core.Text,+    -- | Name of a folder.+    folder :: Core.Text,+    -- | If set, only deletes the folder if its metageneration matches this value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | If set, only deletes the folder if its metageneration does not match this value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageFoldersDelete' with the minimum fields required to make a request.+newStorageFoldersDelete ::+  -- |  Name of the bucket in which the folder resides. See 'bucket'.+  Core.Text ->+  -- |  Name of a folder. See 'folder'.+  Core.Text ->+  StorageFoldersDelete+newStorageFoldersDelete bucket folder =+  StorageFoldersDelete+    { bucket = bucket,+      folder = folder,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing+    }++instance Core.GoogleRequest StorageFoldersDelete where+  type Rs StorageFoldersDelete = ()+  type+    Scopes StorageFoldersDelete =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageFoldersDelete {..} =+    go+      bucket+      folder+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageFoldersDeleteResource)+          Core.mempty
+ gen/Unkai/Storage/Folders/DeleteRecursive.hs view
@@ -0,0 +1,107 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Folders.DeleteRecursive+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a folder recursively. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.folders.deleteRecursive@.+module Unkai.Storage.Folders.DeleteRecursive+  ( -- * Resource+    StorageFoldersDeleteRecursiveResource,++    -- ** Constructing a Request+    StorageFoldersDeleteRecursive (..),+    newStorageFoldersDeleteRecursive,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.folders.deleteRecursive@ method which the+-- 'StorageFoldersDeleteRecursive' request conforms to.+type StorageFoldersDeleteRecursiveResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "folders"+    Core.:> Core.Capture "folder" Core.Text+    Core.:> "deleteRecursive"+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Deletes a folder recursively. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ 'newStorageFoldersDeleteRecursive' smart constructor.+data StorageFoldersDeleteRecursive = StorageFoldersDeleteRecursive+  { -- | Name of the bucket in which the folder resides.+    bucket :: Core.Text,+    -- | Name of a folder.+    folder :: Core.Text,+    -- | If set, only deletes the folder if its metageneration matches this value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | If set, only deletes the folder if its metageneration does not match this value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageFoldersDeleteRecursive' with the minimum fields required to make a request.+newStorageFoldersDeleteRecursive ::+  -- |  Name of the bucket in which the folder resides. See 'bucket'.+  Core.Text ->+  -- |  Name of a folder. See 'folder'.+  Core.Text ->+  StorageFoldersDeleteRecursive+newStorageFoldersDeleteRecursive bucket folder =+  StorageFoldersDeleteRecursive+    { bucket = bucket,+      folder = folder,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing+    }++instance Core.GoogleRequest StorageFoldersDeleteRecursive where+  type Rs StorageFoldersDeleteRecursive = GoogleLongrunningOperation+  type+    Scopes StorageFoldersDeleteRecursive =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageFoldersDeleteRecursive {..} =+    go+      bucket+      folder+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageFoldersDeleteRecursiveResource)+          Core.mempty
+ gen/Unkai/Storage/Folders/Get.hs view
@@ -0,0 +1,108 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Folders.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.folders.get@.+module Unkai.Storage.Folders.Get+  ( -- * Resource+    StorageFoldersGetResource,++    -- ** Constructing a Request+    StorageFoldersGet (..),+    newStorageFoldersGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.folders.get@ method which the+-- 'StorageFoldersGet' request conforms to.+type StorageFoldersGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "folders"+    Core.:> Core.Capture "folder" Core.Text+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Folder++-- | Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ 'newStorageFoldersGet' smart constructor.+data StorageFoldersGet = StorageFoldersGet+  { -- | Name of the bucket in which the folder resides.+    bucket :: Core.Text,+    -- | Name of a folder.+    folder :: Core.Text,+    -- | Makes the return of the folder metadata conditional on whether the folder\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the return of the folder metadata conditional on whether the folder\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageFoldersGet' with the minimum fields required to make a request.+newStorageFoldersGet ::+  -- |  Name of the bucket in which the folder resides. See 'bucket'.+  Core.Text ->+  -- |  Name of a folder. See 'folder'.+  Core.Text ->+  StorageFoldersGet+newStorageFoldersGet bucket folder =+  StorageFoldersGet+    { bucket = bucket,+      folder = folder,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing+    }++instance Core.GoogleRequest StorageFoldersGet where+  type Rs StorageFoldersGet = Folder+  type+    Scopes StorageFoldersGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageFoldersGet {..} =+    go+      bucket+      folder+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageFoldersGetResource)+          Core.mempty
+ gen/Unkai/Storage/Folders/Insert.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Folders.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new folder. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.folders.insert@.+module Unkai.Storage.Folders.Insert+  ( -- * Resource+    StorageFoldersInsertResource,++    -- ** Constructing a Request+    StorageFoldersInsert (..),+    newStorageFoldersInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.folders.insert@ method which the+-- 'StorageFoldersInsert' request conforms to.+type StorageFoldersInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "folders"+    Core.:> Core.QueryParam "recursive" Core.Bool+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] Folder+    Core.:> Core.Post '[Core.JSON] Folder++-- | Creates a new folder. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ 'newStorageFoldersInsert' smart constructor.+data StorageFoldersInsert = StorageFoldersInsert+  { -- | Name of the bucket in which the folder resides.+    bucket :: Core.Text,+    -- | Request body.+    payload :: Folder,+    -- | If true, any parent folder which doesn\'t exist will be created automatically.+    recursive :: (Core.Maybe Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageFoldersInsert' with the minimum fields required to make a request.+newStorageFoldersInsert ::+  -- |  Name of the bucket in which the folder resides. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  Folder ->+  StorageFoldersInsert+newStorageFoldersInsert bucket payload =+  StorageFoldersInsert+    { bucket = bucket,+      payload = payload,+      recursive = Core.Nothing+    }++instance Core.GoogleRequest StorageFoldersInsert where+  type Rs StorageFoldersInsert = Folder+  type+    Scopes StorageFoldersInsert =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageFoldersInsert {..} =+    go+      bucket+      recursive+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageFoldersInsertResource)+          Core.mempty
+ gen/Unkai/Storage/Folders/List.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Folders.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.folders.list@.+module Unkai.Storage.Folders.List+  ( -- * Resource+    StorageFoldersListResource,++    -- ** Constructing a Request+    StorageFoldersList (..),+    newStorageFoldersList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.folders.list@ method which the+-- 'StorageFoldersList' request conforms to.+type StorageFoldersListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "folders"+    Core.:> Core.QueryParam "delimiter" Core.Text+    Core.:> Core.QueryParam "endOffset" Core.Text+    Core.:> Core.QueryParam "pageSize" Core.Int32+    Core.:> Core.QueryParam "pageToken" Core.Text+    Core.:> Core.QueryParam "prefix" Core.Text+    Core.:> Core.QueryParam "startOffset" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Folders++-- | Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ 'newStorageFoldersList' smart constructor.+data StorageFoldersList = StorageFoldersList+  { -- | Name of the bucket in which to look for folders.+    bucket :: Core.Text,+    -- | Returns results in a directory-like mode. The only supported value is \'\/\'. If set, items will only contain folders that either exactly match the prefix, or are one level below the prefix.+    delimiter :: (Core.Maybe Core.Text),+    -- | Filter results to folders whose names are lexicographically before endOffset. If startOffset is also set, the folders listed will have names between startOffset (inclusive) and endOffset (exclusive).+    endOffset :: (Core.Maybe Core.Text),+    -- | Maximum number of items to return in a single page of responses.+    pageSize :: (Core.Maybe Core.Int32),+    -- | A previously-returned page token representing part of the larger set of results to view.+    pageToken :: (Core.Maybe Core.Text),+    -- | Filter results to folders whose paths begin with this prefix. If set, the value must either be an empty string or end with a \'\/\'.+    prefix :: (Core.Maybe Core.Text),+    -- | Filter results to folders whose names are lexicographically equal to or after startOffset. If endOffset is also set, the folders listed will have names between startOffset (inclusive) and endOffset (exclusive).+    startOffset :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageFoldersList' with the minimum fields required to make a request.+newStorageFoldersList ::+  -- |  Name of the bucket in which to look for folders. See 'bucket'.+  Core.Text ->+  StorageFoldersList+newStorageFoldersList bucket =+  StorageFoldersList+    { bucket = bucket,+      delimiter = Core.Nothing,+      endOffset = Core.Nothing,+      pageSize = Core.Nothing,+      pageToken = Core.Nothing,+      prefix = Core.Nothing,+      startOffset = Core.Nothing+    }++instance Core.GoogleRequest StorageFoldersList where+  type Rs StorageFoldersList = Folders+  type+    Scopes StorageFoldersList =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageFoldersList {..} =+    go+      bucket+      delimiter+      endOffset+      pageSize+      pageToken+      prefix+      startOffset+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageFoldersListResource)+          Core.mempty
+ gen/Unkai/Storage/Folders/Rename.hs view
@@ -0,0 +1,115 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Folders.Rename+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.folders.rename@.+module Unkai.Storage.Folders.Rename+  ( -- * Resource+    StorageFoldersRenameResource,++    -- ** Constructing a Request+    StorageFoldersRename (..),+    newStorageFoldersRename,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.folders.rename@ method which the+-- 'StorageFoldersRename' request conforms to.+type StorageFoldersRenameResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "folders"+    Core.:> Core.Capture "sourceFolder" Core.Text+    Core.:> "renameTo"+    Core.:> "folders"+    Core.:> Core.Capture "destinationFolder" Core.Text+    Core.:> Core.QueryParam "ifSourceMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled.+--+-- /See:/ 'newStorageFoldersRename' smart constructor.+data StorageFoldersRename = StorageFoldersRename+  { -- | Name of the bucket in which the folders are in.+    bucket :: Core.Text,+    -- | Name of the destination folder.+    destinationFolder :: Core.Text,+    -- | Makes the operation conditional on whether the source object\'s current metageneration matches the given value.+    ifSourceMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current metageneration does not match the given value.+    ifSourceMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Name of the source folder.+    sourceFolder :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageFoldersRename' with the minimum fields required to make a request.+newStorageFoldersRename ::+  -- |  Name of the bucket in which the folders are in. See 'bucket'.+  Core.Text ->+  -- |  Name of the source folder. See 'sourceFolder'.+  Core.Text ->+  -- |  Name of the destination folder. See 'destinationFolder'.+  Core.Text ->+  StorageFoldersRename+newStorageFoldersRename bucket sourceFolder destinationFolder =+  StorageFoldersRename+    { bucket = bucket,+      destinationFolder = destinationFolder,+      ifSourceMetagenerationMatch = Core.Nothing,+      ifSourceMetagenerationNotMatch = Core.Nothing,+      sourceFolder = sourceFolder+    }++instance Core.GoogleRequest StorageFoldersRename where+  type Rs StorageFoldersRename = GoogleLongrunningOperation+  type+    Scopes StorageFoldersRename =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageFoldersRename {..} =+    go+      bucket+      sourceFolder+      destinationFolder+      ifSourceMetagenerationMatch+      ifSourceMetagenerationNotMatch+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageFoldersRenameResource)+          Core.mempty
+ gen/Unkai/Storage/Internal/Product.hs view
@@ -0,0 +1,8173 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Internal.Product+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Unkai.Storage.Internal.Product+  ( -- * AdvanceRelocateBucketOperationRequest+    AdvanceRelocateBucketOperationRequest (..),+    newAdvanceRelocateBucketOperationRequest,++    -- * AnywhereCache+    AnywhereCache (..),+    newAnywhereCache,++    -- * AnywhereCachePatch+    AnywhereCachePatch (..),+    newAnywhereCachePatch,++    -- * AnywhereCaches+    AnywhereCaches (..),+    newAnywhereCaches,++    -- * Bucket+    Bucket (..),+    newBucket,++    -- * BucketInsertInput+    BucketInsertInput (..),+    newBucketInsertInput,++    -- * BucketPatch+    BucketPatch (..),+    newBucketPatch,++    -- * BucketUpdateInput+    BucketUpdateInput (..),+    newBucketUpdateInput,++    -- * Bucket_Autoclass+    Bucket_Autoclass (..),+    newBucket_Autoclass,++    -- * Bucket_AutoclassPatch+    Bucket_AutoclassPatch (..),+    newBucket_AutoclassPatch,++    -- * Bucket_Billing+    Bucket_Billing (..),+    newBucket_Billing,++    -- * Bucket_BillingPatch+    Bucket_BillingPatch (..),+    newBucket_BillingPatch,++    -- * Bucket_CorsItem+    Bucket_CorsItem (..),+    newBucket_CorsItem,++    -- * Bucket_CustomPlacementConfig+    Bucket_CustomPlacementConfig (..),+    newBucket_CustomPlacementConfig,++    -- * Bucket_CustomPlacementConfigPatch+    Bucket_CustomPlacementConfigPatch (..),+    newBucket_CustomPlacementConfigPatch,++    -- * Bucket_Encryption+    Bucket_Encryption (..),+    newBucket_Encryption,++    -- * Bucket_EncryptionPatch+    Bucket_EncryptionPatch (..),+    newBucket_EncryptionPatch,++    -- * Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig (..),+    newBucket_Encryption_CustomerManagedEncryptionEnforcementConfig,++    -- * Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch (..),+    newBucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch,++    -- * Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig (..),+    newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig,++    -- * Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch (..),+    newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch,++    -- * Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig (..),+    newBucket_Encryption_GoogleManagedEncryptionEnforcementConfig,++    -- * Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch (..),+    newBucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch,++    -- * Bucket_HierarchicalNamespace+    Bucket_HierarchicalNamespace (..),+    newBucket_HierarchicalNamespace,++    -- * Bucket_HierarchicalNamespacePatch+    Bucket_HierarchicalNamespacePatch (..),+    newBucket_HierarchicalNamespacePatch,++    -- * Bucket_IamConfiguration+    Bucket_IamConfiguration (..),+    newBucket_IamConfiguration,++    -- * Bucket_IamConfigurationPatch+    Bucket_IamConfigurationPatch (..),+    newBucket_IamConfigurationPatch,++    -- * Bucket_IamConfiguration_BucketPolicyOnly+    Bucket_IamConfiguration_BucketPolicyOnly (..),+    newBucket_IamConfiguration_BucketPolicyOnly,++    -- * Bucket_IamConfiguration_BucketPolicyOnlyPatch+    Bucket_IamConfiguration_BucketPolicyOnlyPatch (..),+    newBucket_IamConfiguration_BucketPolicyOnlyPatch,++    -- * Bucket_IamConfiguration_UniformBucketLevelAccess+    Bucket_IamConfiguration_UniformBucketLevelAccess (..),+    newBucket_IamConfiguration_UniformBucketLevelAccess,++    -- * Bucket_IamConfiguration_UniformBucketLevelAccessPatch+    Bucket_IamConfiguration_UniformBucketLevelAccessPatch (..),+    newBucket_IamConfiguration_UniformBucketLevelAccessPatch,++    -- * Bucket_IpFilter+    Bucket_IpFilter (..),+    newBucket_IpFilter,++    -- * Bucket_IpFilterPatch+    Bucket_IpFilterPatch (..),+    newBucket_IpFilterPatch,++    -- * Bucket_IpFilter_PublicNetworkSource+    Bucket_IpFilter_PublicNetworkSource (..),+    newBucket_IpFilter_PublicNetworkSource,++    -- * Bucket_IpFilter_PublicNetworkSourcePatch+    Bucket_IpFilter_PublicNetworkSourcePatch (..),+    newBucket_IpFilter_PublicNetworkSourcePatch,++    -- * Bucket_IpFilter_VpcNetworkSourcesItem+    Bucket_IpFilter_VpcNetworkSourcesItem (..),+    newBucket_IpFilter_VpcNetworkSourcesItem,++    -- * Bucket_Labels+    Bucket_Labels (..),+    newBucket_Labels,++    -- * Bucket_LabelsPatch+    Bucket_LabelsPatch (..),+    newBucket_LabelsPatch,++    -- * Bucket_Lifecycle+    Bucket_Lifecycle (..),+    newBucket_Lifecycle,++    -- * Bucket_LifecyclePatch+    Bucket_LifecyclePatch (..),+    newBucket_LifecyclePatch,++    -- * Bucket_Lifecycle_RuleItem+    Bucket_Lifecycle_RuleItem (..),+    newBucket_Lifecycle_RuleItem,++    -- * Bucket_Lifecycle_RuleItem_Action+    Bucket_Lifecycle_RuleItem_Action (..),+    newBucket_Lifecycle_RuleItem_Action,++    -- * Bucket_Lifecycle_RuleItem_Condition+    Bucket_Lifecycle_RuleItem_Condition (..),+    newBucket_Lifecycle_RuleItem_Condition,++    -- * Bucket_Logging+    Bucket_Logging (..),+    newBucket_Logging,++    -- * Bucket_LoggingPatch+    Bucket_LoggingPatch (..),+    newBucket_LoggingPatch,++    -- * Bucket_ObjectRetention+    Bucket_ObjectRetention (..),+    newBucket_ObjectRetention,++    -- * Bucket_ObjectRetentionPatch+    Bucket_ObjectRetentionPatch (..),+    newBucket_ObjectRetentionPatch,++    -- * Bucket_Owner+    Bucket_Owner (..),+    newBucket_Owner,++    -- * Bucket_OwnerPatch+    Bucket_OwnerPatch (..),+    newBucket_OwnerPatch,++    -- * Bucket_RetentionPolicy+    Bucket_RetentionPolicy (..),+    newBucket_RetentionPolicy,++    -- * Bucket_RetentionPolicyPatch+    Bucket_RetentionPolicyPatch (..),+    newBucket_RetentionPolicyPatch,++    -- * Bucket_SoftDeletePolicy+    Bucket_SoftDeletePolicy (..),+    newBucket_SoftDeletePolicy,++    -- * Bucket_SoftDeletePolicyPatch+    Bucket_SoftDeletePolicyPatch (..),+    newBucket_SoftDeletePolicyPatch,++    -- * Bucket_Versioning+    Bucket_Versioning (..),+    newBucket_Versioning,++    -- * Bucket_VersioningPatch+    Bucket_VersioningPatch (..),+    newBucket_VersioningPatch,++    -- * Bucket_Website+    Bucket_Website (..),+    newBucket_Website,++    -- * Bucket_WebsitePatch+    Bucket_WebsitePatch (..),+    newBucket_WebsitePatch,++    -- * BucketAccessControl+    BucketAccessControl (..),+    newBucketAccessControl,++    -- * BucketAccessControlInsertInput+    BucketAccessControlInsertInput (..),+    newBucketAccessControlInsertInput,++    -- * BucketAccessControlPatch+    BucketAccessControlPatch (..),+    newBucketAccessControlPatch,++    -- * BucketAccessControl_ProjectTeam+    BucketAccessControl_ProjectTeam (..),+    newBucketAccessControl_ProjectTeam,++    -- * BucketAccessControl_ProjectTeamPatch+    BucketAccessControl_ProjectTeamPatch (..),+    newBucketAccessControl_ProjectTeamPatch,++    -- * BucketAccessControls+    BucketAccessControls (..),+    newBucketAccessControls,++    -- * BucketStorageLayout+    BucketStorageLayout (..),+    newBucketStorageLayout,++    -- * BucketStorageLayout_CustomPlacementConfig+    BucketStorageLayout_CustomPlacementConfig (..),+    newBucketStorageLayout_CustomPlacementConfig,++    -- * BucketStorageLayout_HierarchicalNamespace+    BucketStorageLayout_HierarchicalNamespace (..),+    newBucketStorageLayout_HierarchicalNamespace,++    -- * Buckets+    Buckets (..),+    newBuckets,++    -- * BulkRestoreObjectsRequest+    BulkRestoreObjectsRequest (..),+    newBulkRestoreObjectsRequest,++    -- * Channel+    Channel (..),+    newChannel,++    -- * Channel_Params+    Channel_Params (..),+    newChannel_Params,++    -- * ComposeRequest+    ComposeRequest (..),+    newComposeRequest,++    -- * ComposeRequestInput+    ComposeRequestInput (..),+    newComposeRequestInput,++    -- * ComposeRequest_SourceObjectsItem+    ComposeRequest_SourceObjectsItem (..),+    newComposeRequest_SourceObjectsItem,++    -- * ComposeRequest_SourceObjectsItemInput+    ComposeRequest_SourceObjectsItemInput (..),+    newComposeRequest_SourceObjectsItemInput,++    -- * ComposeRequest_SourceObjectsItem_ObjectPreconditions+    ComposeRequest_SourceObjectsItem_ObjectPreconditions (..),+    newComposeRequest_SourceObjectsItem_ObjectPreconditions,++    -- * Expr+    Expr (..),+    newExpr,++    -- * Folder+    Folder (..),+    newFolder,++    -- * Folder_PendingRenameInfo+    Folder_PendingRenameInfo (..),+    newFolder_PendingRenameInfo,++    -- * Folders+    Folders (..),+    newFolders,++    -- * GoogleLongrunningListOperationsResponse+    GoogleLongrunningListOperationsResponse (..),+    newGoogleLongrunningListOperationsResponse,++    -- * GoogleLongrunningOperation+    GoogleLongrunningOperation (..),+    newGoogleLongrunningOperation,++    -- * GoogleLongrunningOperation_Metadata+    GoogleLongrunningOperation_Metadata (..),+    newGoogleLongrunningOperation_Metadata,++    -- * GoogleLongrunningOperation_Response+    GoogleLongrunningOperation_Response (..),+    newGoogleLongrunningOperation_Response,++    -- * GoogleRpcStatus+    GoogleRpcStatus (..),+    newGoogleRpcStatus,++    -- * GoogleRpcStatus_DetailsItem+    GoogleRpcStatus_DetailsItem (..),+    newGoogleRpcStatus_DetailsItem,++    -- * HmacKey+    HmacKey (..),+    newHmacKey,++    -- * HmacKeyMetadata+    HmacKeyMetadata (..),+    newHmacKeyMetadata,++    -- * HmacKeysMetadata+    HmacKeysMetadata (..),+    newHmacKeysMetadata,++    -- * ManagedFolder+    ManagedFolder (..),+    newManagedFolder,++    -- * ManagedFolderPatch+    ManagedFolderPatch (..),+    newManagedFolderPatch,++    -- * ManagedFolders+    ManagedFolders (..),+    newManagedFolders,++    -- * Notification+    Notification (..),+    newNotification,++    -- * NotificationInsertInput+    NotificationInsertInput (..),+    newNotificationInsertInput,++    -- * Notification_Custom_attributes+    Notification_Custom_attributes (..),+    newNotification_Custom_attributes,++    -- * Notifications+    Notifications (..),+    newNotifications,++    -- * Object+    Object (..),+    newObject,++    -- * ObjectPatch+    ObjectPatch (..),+    newObjectPatch,++    -- * Object_Contexts+    Object_Contexts (..),+    newObject_Contexts,++    -- * Object_ContextsPatch+    Object_ContextsPatch (..),+    newObject_ContextsPatch,++    -- * Object_Contexts_Custom+    Object_Contexts_Custom (..),+    newObject_Contexts_Custom,++    -- * Object_Contexts_CustomPatch+    Object_Contexts_CustomPatch (..),+    newObject_Contexts_CustomPatch,++    -- * Object_CustomerEncryption+    Object_CustomerEncryption (..),+    newObject_CustomerEncryption,++    -- * Object_CustomerEncryptionPatch+    Object_CustomerEncryptionPatch (..),+    newObject_CustomerEncryptionPatch,++    -- * Object_Metadata+    Object_Metadata (..),+    newObject_Metadata,++    -- * Object_MetadataPatch+    Object_MetadataPatch (..),+    newObject_MetadataPatch,++    -- * Object_Owner+    Object_Owner (..),+    newObject_Owner,++    -- * Object_OwnerPatch+    Object_OwnerPatch (..),+    newObject_OwnerPatch,++    -- * Object_Retention+    Object_Retention (..),+    newObject_Retention,++    -- * Object_RetentionPatch+    Object_RetentionPatch (..),+    newObject_RetentionPatch,++    -- * ObjectAccessControl+    ObjectAccessControl (..),+    newObjectAccessControl,++    -- * ObjectAccessControlInsertInput+    ObjectAccessControlInsertInput (..),+    newObjectAccessControlInsertInput,++    -- * ObjectAccessControlPatch+    ObjectAccessControlPatch (..),+    newObjectAccessControlPatch,++    -- * ObjectAccessControl_ProjectTeam+    ObjectAccessControl_ProjectTeam (..),+    newObjectAccessControl_ProjectTeam,++    -- * ObjectAccessControl_ProjectTeamPatch+    ObjectAccessControl_ProjectTeamPatch (..),+    newObjectAccessControl_ProjectTeamPatch,++    -- * ObjectAccessControls+    ObjectAccessControls (..),+    newObjectAccessControls,++    -- * ObjectCustomContextPayload+    ObjectCustomContextPayload (..),+    newObjectCustomContextPayload,++    -- * ObjectCustomContextPayloadPatch+    ObjectCustomContextPayloadPatch (..),+    newObjectCustomContextPayloadPatch,++    -- * Objects+    Objects (..),+    newObjects,++    -- * Policy+    Policy (..),+    newPolicy,++    -- * PolicySetIamPolicyInput+    PolicySetIamPolicyInput (..),+    newPolicySetIamPolicyInput,++    -- * Policy_BindingsItem+    Policy_BindingsItem (..),+    newPolicy_BindingsItem,++    -- * Policy_BindingsItemSetIamPolicyInput+    Policy_BindingsItemSetIamPolicyInput (..),+    newPolicy_BindingsItemSetIamPolicyInput,++    -- * RapidCache+    RapidCache (..),+    newRapidCache,++    -- * RapidCachePatch+    RapidCachePatch (..),+    newRapidCachePatch,++    -- * RapidCacheConfig+    RapidCacheConfig (..),+    newRapidCacheConfig,++    -- * RapidCacheConfigPatch+    RapidCacheConfigPatch (..),+    newRapidCacheConfigPatch,++    -- * RapidCacheConfig_Policies+    RapidCacheConfig_Policies (..),+    newRapidCacheConfig_Policies,++    -- * RapidCacheConfig_PoliciesPatch+    RapidCacheConfig_PoliciesPatch (..),+    newRapidCacheConfig_PoliciesPatch,++    -- * RapidCachePolicy+    RapidCachePolicy (..),+    newRapidCachePolicy,++    -- * RapidCachePolicyPatch+    RapidCachePolicyPatch (..),+    newRapidCachePolicyPatch,++    -- * RapidCaches+    RapidCaches (..),+    newRapidCaches,++    -- * RelocateBucketRequest+    RelocateBucketRequest (..),+    newRelocateBucketRequest,++    -- * RelocateBucketRequest_DestinationCustomPlacementConfig+    RelocateBucketRequest_DestinationCustomPlacementConfig (..),+    newRelocateBucketRequest_DestinationCustomPlacementConfig,++    -- * RewriteResponse+    RewriteResponse (..),+    newRewriteResponse,++    -- * ServiceAccount+    ServiceAccount (..),+    newServiceAccount,++    -- * TestIamPermissionsResponse+    TestIamPermissionsResponse (..),+    newTestIamPermissionsResponse,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Internal.Sum++-- | An AdvanceRelocateBucketOperation request.+--+-- /See:/ 'newAdvanceRelocateBucketOperationRequest' smart constructor.+data AdvanceRelocateBucketOperationRequest = AdvanceRelocateBucketOperationRequest+  { -- | Specifies the time when the relocation will revert to the sync stage if the relocation hasn\'t succeeded.+    expireTime :: (Core.Maybe Core.DateTime),+    -- | Specifies the duration after which the relocation will revert to the sync stage if the relocation hasn\'t succeeded. Optional, if not supplied, a default value of 12h will be used.+    ttl :: (Core.Maybe Core.Duration)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdvanceRelocateBucketOperationRequest' with the minimum fields required to make a request.+newAdvanceRelocateBucketOperationRequest ::+  AdvanceRelocateBucketOperationRequest+newAdvanceRelocateBucketOperationRequest =+  AdvanceRelocateBucketOperationRequest+    { expireTime = Core.Nothing,+      ttl = Core.Nothing+    }++instance Core.FromJSON AdvanceRelocateBucketOperationRequest where+  parseJSON =+    Core.withObject+      "AdvanceRelocateBucketOperationRequest"+      ( \o ->+          AdvanceRelocateBucketOperationRequest+            Core.<$> (o Core..:? "expireTime")+            Core.<*> (o Core..:? "ttl")+      )++instance Core.ToJSON AdvanceRelocateBucketOperationRequest where+  toJSON AdvanceRelocateBucketOperationRequest {..} =+    Core.object+      ( Core.catMaybes+          [ ("expireTime" Core..=) Core.<$> expireTime,+            ("ttl" Core..=) Core.<$> ttl+          ]+      )++-- | An Anywhere Cache instance.+--+-- /See:/ 'newAnywhereCache' smart constructor.+data AnywhereCache = AnywhereCache+  { -- | The cache-level entry admission policy.+    admissionPolicy :: (Core.Maybe Core.Text),+    -- | The ID of the Anywhere cache instance.+    anywhereCacheId :: (Core.Maybe Core.Text),+    -- | The name of the bucket containing this cache instance.+    bucket :: (Core.Maybe Core.Text),+    -- | The creation time of the cache instance in RFC 3339 format.+    createTime :: (Core.Maybe Core.DateTime),+    -- | The ID of the resource, including the project number, bucket name and anywhere cache ID.+    id :: (Core.Maybe Core.Text),+    -- | Specifies whether objects are ingested into the cache upon write.+    ingestOnWrite :: (Core.Maybe Core.Bool),+    -- | The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.+    kind :: Core.Text,+    -- | True if the cache instance has an active Update long-running operation.+    pendingUpdate :: (Core.Maybe Core.Bool),+    -- | The link to this cache instance.+    selfLink :: (Core.Maybe Core.Text),+    -- | The current state of the cache instance.+    state :: (Core.Maybe Core.Text),+    -- | The TTL of all cache entries in whole seconds. e.g., \"7200s\".+    ttl :: (Core.Maybe Core.Duration),+    -- | The modification time of the cache instance metadata in RFC 3339 format.+    updateTime :: (Core.Maybe Core.DateTime),+    -- | The zone in which the cache instance is running. For example, us-central1-a.+    zone :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AnywhereCache' with the minimum fields required to make a request.+newAnywhereCache ::+  AnywhereCache+newAnywhereCache =+  AnywhereCache+    { admissionPolicy = Core.Nothing,+      anywhereCacheId = Core.Nothing,+      bucket = Core.Nothing,+      createTime = Core.Nothing,+      id = Core.Nothing,+      ingestOnWrite = Core.Nothing,+      kind = "storage#anywhereCache",+      pendingUpdate = Core.Nothing,+      selfLink = Core.Nothing,+      state = Core.Nothing,+      ttl = Core.Nothing,+      updateTime = Core.Nothing,+      zone = Core.Nothing+    }++instance Core.FromJSON AnywhereCache where+  parseJSON =+    Core.withObject+      "AnywhereCache"+      ( \o ->+          AnywhereCache+            Core.<$> (o Core..:? "admissionPolicy")+            Core.<*> (o Core..:? "anywhereCacheId")+            Core.<*> (o Core..:? "bucket")+            Core.<*> (o Core..:? "createTime")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "ingestOnWrite")+            Core.<*> (o Core..:? "kind" Core..!= "storage#anywhereCache")+            Core.<*> (o Core..:? "pendingUpdate")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "state")+            Core.<*> (o Core..:? "ttl")+            Core.<*> (o Core..:? "updateTime")+            Core.<*> (o Core..:? "zone")+      )++instance Core.ToJSON AnywhereCache where+  toJSON AnywhereCache {..} =+    Core.object+      ( Core.catMaybes+          [ ("admissionPolicy" Core..=) Core.<$> admissionPolicy,+            ("anywhereCacheId" Core..=) Core.<$> anywhereCacheId,+            ("bucket" Core..=) Core.<$> bucket,+            ("createTime" Core..=) Core.<$> createTime,+            ("id" Core..=) Core.<$> id,+            ("ingestOnWrite" Core..=) Core.<$> ingestOnWrite,+            Core.Just ("kind" Core..= kind),+            ("pendingUpdate" Core..=) Core.<$> pendingUpdate,+            ("selfLink" Core..=) Core.<$> selfLink,+            ("state" Core..=) Core.<$> state,+            ("ttl" Core..=) Core.<$> ttl,+            ("updateTime" Core..=) Core.<$> updateTime,+            ("zone" Core..=) Core.<$> zone+          ]+      )++-- | An Anywhere Cache instance.+--+-- /See:/ 'newAnywhereCachePatch' smart constructor.+data AnywhereCachePatch = AnywhereCachePatch+  { -- | The cache-level entry admission policy.+    admissionPolicy :: (Core.PatchField Core.Text),+    -- | The ID of the Anywhere cache instance.+    anywhereCacheId :: (Core.PatchField Core.Text),+    -- | The name of the bucket containing this cache instance.+    bucket :: (Core.PatchField Core.Text),+    -- | The creation time of the cache instance in RFC 3339 format.+    createTime :: (Core.PatchField Core.DateTime),+    -- | The ID of the resource, including the project number, bucket name and anywhere cache ID.+    id :: (Core.PatchField Core.Text),+    -- | Specifies whether objects are ingested into the cache upon write.+    ingestOnWrite :: (Core.PatchField Core.Bool),+    -- | The kind of item this is. For Anywhere Cache, this is always storage#anywhereCache.+    kind :: (Core.PatchField Core.Text),+    -- | True if the cache instance has an active Update long-running operation.+    pendingUpdate :: (Core.PatchField Core.Bool),+    -- | The link to this cache instance.+    selfLink :: (Core.PatchField Core.Text),+    -- | The current state of the cache instance.+    state :: (Core.PatchField Core.Text),+    -- | The TTL of all cache entries in whole seconds. e.g., \"7200s\".+    ttl :: (Core.PatchField Core.Duration),+    -- | The modification time of the cache instance metadata in RFC 3339 format.+    updateTime :: (Core.PatchField Core.DateTime),+    -- | The zone in which the cache instance is running. For example, us-central1-a.+    zone :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AnywhereCachePatch' with the minimum fields required to make a request.+newAnywhereCachePatch ::+  AnywhereCachePatch+newAnywhereCachePatch =+  AnywhereCachePatch+    { admissionPolicy = Core.Omit,+      anywhereCacheId = Core.Omit,+      bucket = Core.Omit,+      createTime = Core.Omit,+      id = Core.Omit,+      ingestOnWrite = Core.Omit,+      kind = Core.Omit,+      pendingUpdate = Core.Omit,+      selfLink = Core.Omit,+      state = Core.Omit,+      ttl = Core.Omit,+      updateTime = Core.Omit,+      zone = Core.Omit+    }++instance Core.FromJSON AnywhereCachePatch where+  parseJSON =+    Core.withObject+      "AnywhereCachePatch"+      ( \o ->+          AnywhereCachePatch+            Core.<$> (Core.parsePatchField Core.parseJSON "admissionPolicy" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "anywhereCacheId" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "bucket" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "createTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "id" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "ingestOnWrite" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "kind" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "pendingUpdate" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "selfLink" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "state" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "ttl" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "updateTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "zone" o)+      )++instance Core.ToJSON AnywhereCachePatch where+  toJSON AnywhereCachePatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "admissionPolicy" admissionPolicy,+            Core.patchField Core.toJSON "anywhereCacheId" anywhereCacheId,+            Core.patchField Core.toJSON "bucket" bucket,+            Core.patchField Core.toJSON "createTime" createTime,+            Core.patchField Core.toJSON "id" id,+            Core.patchField Core.toJSON "ingestOnWrite" ingestOnWrite,+            Core.patchField Core.toJSON "kind" kind,+            Core.patchField Core.toJSON "pendingUpdate" pendingUpdate,+            Core.patchField Core.toJSON "selfLink" selfLink,+            Core.patchField Core.toJSON "state" state,+            Core.patchField Core.toJSON "ttl" ttl,+            Core.patchField Core.toJSON "updateTime" updateTime,+            Core.patchField Core.toJSON "zone" zone+          ]+      )++-- | A list of Anywhere Caches.+--+-- /See:/ 'newAnywhereCaches' smart constructor.+data AnywhereCaches = AnywhereCaches+  { -- | The list of items.+    items :: (Core.Maybe [AnywhereCache]),+    -- | The kind of item this is. For lists of Anywhere Caches, this is always storage#anywhereCaches.+    kind :: Core.Text,+    -- | The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.+    nextPageToken :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AnywhereCaches' with the minimum fields required to make a request.+newAnywhereCaches ::+  AnywhereCaches+newAnywhereCaches =+  AnywhereCaches+    { items = Core.Nothing,+      kind = "storage#anywhereCaches",+      nextPageToken = Core.Nothing+    }++instance Core.FromJSON AnywhereCaches where+  parseJSON =+    Core.withObject+      "AnywhereCaches"+      ( \o ->+          AnywhereCaches+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#anywhereCaches")+            Core.<*> (o Core..:? "nextPageToken")+      )++instance Core.ToJSON AnywhereCaches where+  toJSON AnywhereCaches {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind),+            ("nextPageToken" Core..=) Core.<$> nextPageToken+          ]+      )++-- | A bucket.+--+-- /See:/ 'newBucket' smart constructor.+data Bucket = Bucket+  { -- | Access controls on the bucket.+    acl :: (Core.Maybe [BucketAccessControl]),+    -- | The bucket\'s Autoclass configuration.+    autoclass :: (Core.Maybe Bucket_Autoclass),+    -- | The bucket\'s billing configuration.+    billing :: (Core.Maybe Bucket_Billing),+    -- | The bucket\'s Cross-Origin Resource Sharing (CORS) configuration.+    cors :: (Core.Maybe [Bucket_CorsItem]),+    -- | The bucket\'s custom placement configuration for Custom Dual Regions.+    customPlacementConfig :: (Core.Maybe Bucket_CustomPlacementConfig),+    -- | The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold\'s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.+    defaultEventBasedHold :: (Core.Maybe Core.Bool),+    -- | Default access controls to apply to new objects when no ACL is provided.+    defaultObjectAcl :: (Core.Maybe [ObjectAccessControl]),+    -- | Encryption configuration for a bucket.+    encryption :: (Core.Maybe Bucket_Encryption),+    -- | HTTP 1.1 Entity tag for the bucket.+    etag :: (Core.Maybe Core.Text),+    -- | The generation of this bucket.+    generation :: (Core.Maybe Core.Int64),+    -- | The hard delete time of the bucket in RFC 3339 format.+    hardDeleteTime :: (Core.Maybe Core.DateTime),+    -- | The bucket\'s hierarchical namespace configuration.+    hierarchicalNamespace :: (Core.Maybe Bucket_HierarchicalNamespace),+    -- | The bucket\'s IAM configuration.+    iamConfiguration :: (Core.Maybe Bucket_IamConfiguration),+    -- | The ID of the bucket. For buckets, the id and name properties are the same.+    id :: (Core.Maybe Core.Text),+    -- | The bucket\'s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to \'Enabled\'.+    ipFilter :: (Core.Maybe Bucket_IpFilter),+    -- | The kind of item this is. For buckets, this is always storage#bucket.+    kind :: Core.Text,+    -- | User-provided labels, in key\/value pairs.+    labels :: (Core.Maybe Bucket_Labels),+    -- | The bucket\'s lifecycle configuration. See <https://cloud.google.com/storage/docs/lifecycle Lifecycle Management> for more information.+    lifecycle :: (Core.Maybe Bucket_Lifecycle),+    -- | The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the <https://cloud.google.com/storage/docs/locations Developer\'s Guide> for the authoritative list.+    location :: (Core.Maybe Core.Text),+    -- | The type of the bucket location.+    locationType :: (Core.Maybe Core.Text),+    -- | The bucket\'s logging configuration, which defines the destination bucket and optional name prefix for the current bucket\'s logs.+    logging :: (Core.Maybe Bucket_Logging),+    -- | The metadata generation of this bucket.+    metageneration :: (Core.Maybe Core.Int64),+    -- | The name of the bucket.+    name :: (Core.Maybe Core.Text),+    -- | The bucket\'s object retention config.+    objectRetention :: (Core.Maybe Bucket_ObjectRetention),+    -- | The owner of the bucket. This is always the project team\'s owner group.+    owner :: (Core.Maybe Bucket_Owner),+    -- | The project number of the project the bucket belongs to.+    projectNumber :: (Core.Maybe Core.Word64),+    -- | The bucket\'s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION/DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION/DENIED error.+    retentionPolicy :: (Core.Maybe Bucket_RetentionPolicy),+    -- | The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.+    rpo :: (Core.Maybe Core.Text),+    -- | Reserved for future use.+    satisfiesPZI :: (Core.Maybe Core.Bool),+    -- | Reserved for future use.+    satisfiesPZS :: (Core.Maybe Core.Bool),+    -- | The URI of this bucket.+    selfLink :: (Core.Maybe Core.Text),+    -- | The bucket\'s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.+    softDeletePolicy :: (Core.Maybe Bucket_SoftDeletePolicy),+    -- | The soft delete time of the bucket in RFC 3339 format.+    softDeleteTime :: (Core.Maybe Core.DateTime),+    -- | The bucket\'s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI/REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE/REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see <https://cloud.google.com/storage/docs/storage-classes Storage Classes>.+    storageClass :: (Core.Maybe Core.Text),+    -- | The creation time of the bucket in RFC 3339 format.+    timeCreated :: (Core.Maybe Core.DateTime),+    -- | The modification time of the bucket in RFC 3339 format.+    updated :: (Core.Maybe Core.DateTime),+    -- | The bucket\'s versioning configuration.+    versioning :: (Core.Maybe Bucket_Versioning),+    -- | The bucket\'s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the <https://cloud.google.com/storage/docs/static-website Static Website Examples> for more information.+    website :: (Core.Maybe Bucket_Website)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket' with the minimum fields required to make a request.+newBucket ::+  Bucket+newBucket =+  Bucket+    { acl = Core.Nothing,+      autoclass = Core.Nothing,+      billing = Core.Nothing,+      cors = Core.Nothing,+      customPlacementConfig = Core.Nothing,+      defaultEventBasedHold = Core.Nothing,+      defaultObjectAcl = Core.Nothing,+      encryption = Core.Nothing,+      etag = Core.Nothing,+      generation = Core.Nothing,+      hardDeleteTime = Core.Nothing,+      hierarchicalNamespace = Core.Nothing,+      iamConfiguration = Core.Nothing,+      id = Core.Nothing,+      ipFilter = Core.Nothing,+      kind = "storage#bucket",+      labels = Core.Nothing,+      lifecycle = Core.Nothing,+      location = Core.Nothing,+      locationType = Core.Nothing,+      logging = Core.Nothing,+      metageneration = Core.Nothing,+      name = Core.Nothing,+      objectRetention = Core.Nothing,+      owner = Core.Nothing,+      projectNumber = Core.Nothing,+      retentionPolicy = Core.Nothing,+      rpo = Core.Nothing,+      satisfiesPZI = Core.Nothing,+      satisfiesPZS = Core.Nothing,+      selfLink = Core.Nothing,+      softDeletePolicy = Core.Nothing,+      softDeleteTime = Core.Nothing,+      storageClass = Core.Nothing,+      timeCreated = Core.Nothing,+      updated = Core.Nothing,+      versioning = Core.Nothing,+      website = Core.Nothing+    }++instance Core.FromJSON Bucket where+  parseJSON =+    Core.withObject+      "Bucket"+      ( \o ->+          Bucket+            Core.<$> (o Core..:? "acl")+            Core.<*> (o Core..:? "autoclass")+            Core.<*> (o Core..:? "billing")+            Core.<*> (o Core..:? "cors")+            Core.<*> (o Core..:? "customPlacementConfig")+            Core.<*> (o Core..:? "defaultEventBasedHold")+            Core.<*> (o Core..:? "defaultObjectAcl")+            Core.<*> (o Core..:? "encryption")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "generation" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "hardDeleteTime")+            Core.<*> (o Core..:? "hierarchicalNamespace")+            Core.<*> (o Core..:? "iamConfiguration")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "ipFilter")+            Core.<*> (o Core..:? "kind" Core..!= "storage#bucket")+            Core.<*> (o Core..:? "labels")+            Core.<*> (o Core..:? "lifecycle")+            Core.<*> (o Core..:? "location")+            Core.<*> (o Core..:? "locationType")+            Core.<*> (o Core..:? "logging")+            Core.<*> (o Core..:? "metageneration" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "name")+            Core.<*> (o Core..:? "objectRetention")+            Core.<*> (o Core..:? "owner")+            Core.<*> (o Core..:? "projectNumber" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "retentionPolicy")+            Core.<*> (o Core..:? "rpo")+            Core.<*> (o Core..:? "satisfiesPZI")+            Core.<*> (o Core..:? "satisfiesPZS")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "softDeletePolicy")+            Core.<*> (o Core..:? "softDeleteTime")+            Core.<*> (o Core..:? "storageClass")+            Core.<*> (o Core..:? "timeCreated")+            Core.<*> (o Core..:? "updated")+            Core.<*> (o Core..:? "versioning")+            Core.<*> (o Core..:? "website")+      )++instance Core.ToJSON Bucket where+  toJSON Bucket {..} =+    Core.object+      ( Core.catMaybes+          [ ("acl" Core..=) Core.<$> acl,+            ("autoclass" Core..=) Core.<$> autoclass,+            ("billing" Core..=) Core.<$> billing,+            ("cors" Core..=) Core.<$> cors,+            ("customPlacementConfig" Core..=) Core.<$> customPlacementConfig,+            ("defaultEventBasedHold" Core..=) Core.<$> defaultEventBasedHold,+            ("defaultObjectAcl" Core..=) Core.<$> defaultObjectAcl,+            ("encryption" Core..=) Core.<$> encryption,+            ("etag" Core..=) Core.<$> etag,+            ("generation" Core..=) Core.. Core.AsText Core.<$> generation,+            ("hardDeleteTime" Core..=) Core.<$> hardDeleteTime,+            ("hierarchicalNamespace" Core..=) Core.<$> hierarchicalNamespace,+            ("iamConfiguration" Core..=) Core.<$> iamConfiguration,+            ("id" Core..=) Core.<$> id,+            ("ipFilter" Core..=) Core.<$> ipFilter,+            Core.Just ("kind" Core..= kind),+            ("labels" Core..=) Core.<$> labels,+            ("lifecycle" Core..=) Core.<$> lifecycle,+            ("location" Core..=) Core.<$> location,+            ("locationType" Core..=) Core.<$> locationType,+            ("logging" Core..=) Core.<$> logging,+            ("metageneration" Core..=)+              Core.. Core.AsText+              Core.<$> metageneration,+            ("name" Core..=) Core.<$> name,+            ("objectRetention" Core..=) Core.<$> objectRetention,+            ("owner" Core..=) Core.<$> owner,+            ("projectNumber" Core..=)+              Core.. Core.AsText+              Core.<$> projectNumber,+            ("retentionPolicy" Core..=) Core.<$> retentionPolicy,+            ("rpo" Core..=) Core.<$> rpo,+            ("satisfiesPZI" Core..=) Core.<$> satisfiesPZI,+            ("satisfiesPZS" Core..=) Core.<$> satisfiesPZS,+            ("selfLink" Core..=) Core.<$> selfLink,+            ("softDeletePolicy" Core..=) Core.<$> softDeletePolicy,+            ("softDeleteTime" Core..=) Core.<$> softDeleteTime,+            ("storageClass" Core..=) Core.<$> storageClass,+            ("timeCreated" Core..=) Core.<$> timeCreated,+            ("updated" Core..=) Core.<$> updated,+            ("versioning" Core..=) Core.<$> versioning,+            ("website" Core..=) Core.<$> website+          ]+      )++-- | A bucket.+--+-- /See:/ 'newBucketInsertInput' smart constructor.+data BucketInsertInput = BucketInsertInput+  { -- | Access controls on the bucket.+    acl :: (Core.Maybe [BucketAccessControl]),+    -- | The bucket\'s Autoclass configuration.+    autoclass :: (Core.Maybe Bucket_Autoclass),+    -- | The bucket\'s billing configuration.+    billing :: (Core.Maybe Bucket_Billing),+    -- | The bucket\'s Cross-Origin Resource Sharing (CORS) configuration.+    cors :: (Core.Maybe [Bucket_CorsItem]),+    -- | The bucket\'s custom placement configuration for Custom Dual Regions.+    customPlacementConfig :: (Core.Maybe Bucket_CustomPlacementConfig),+    -- | The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold\'s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.+    defaultEventBasedHold :: (Core.Maybe Core.Bool),+    -- | Default access controls to apply to new objects when no ACL is provided.+    defaultObjectAcl :: (Core.Maybe [ObjectAccessControl]),+    -- | Encryption configuration for a bucket.+    encryption :: (Core.Maybe Bucket_Encryption),+    -- | HTTP 1.1 Entity tag for the bucket.+    etag :: (Core.Maybe Core.Text),+    -- | The generation of this bucket.+    generation :: (Core.Maybe Core.Int64),+    -- | The hard delete time of the bucket in RFC 3339 format.+    hardDeleteTime :: (Core.Maybe Core.DateTime),+    -- | The bucket\'s hierarchical namespace configuration.+    hierarchicalNamespace :: (Core.Maybe Bucket_HierarchicalNamespace),+    -- | The bucket\'s IAM configuration.+    iamConfiguration :: (Core.Maybe Bucket_IamConfiguration),+    -- | The ID of the bucket. For buckets, the id and name properties are the same.+    id :: (Core.Maybe Core.Text),+    -- | The bucket\'s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to \'Enabled\'.+    ipFilter :: (Core.Maybe Bucket_IpFilter),+    -- | The kind of item this is. For buckets, this is always storage#bucket.+    kind :: Core.Text,+    -- | User-provided labels, in key\/value pairs.+    labels :: (Core.Maybe Bucket_Labels),+    -- | The bucket\'s lifecycle configuration. See <https://cloud.google.com/storage/docs/lifecycle Lifecycle Management> for more information.+    lifecycle :: (Core.Maybe Bucket_Lifecycle),+    -- | The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the <https://cloud.google.com/storage/docs/locations Developer\'s Guide> for the authoritative list.+    location :: (Core.Maybe Core.Text),+    -- | The type of the bucket location.+    locationType :: (Core.Maybe Core.Text),+    -- | The bucket\'s logging configuration, which defines the destination bucket and optional name prefix for the current bucket\'s logs.+    logging :: (Core.Maybe Bucket_Logging),+    -- | The metadata generation of this bucket.+    metageneration :: (Core.Maybe Core.Int64),+    -- | The name of the bucket.+    name :: Core.Text,+    -- | The bucket\'s object retention config.+    objectRetention :: (Core.Maybe Bucket_ObjectRetention),+    -- | The owner of the bucket. This is always the project team\'s owner group.+    owner :: (Core.Maybe Bucket_Owner),+    -- | The project number of the project the bucket belongs to.+    projectNumber :: (Core.Maybe Core.Word64),+    -- | The bucket\'s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION/DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION/DENIED error.+    retentionPolicy :: (Core.Maybe Bucket_RetentionPolicy),+    -- | The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.+    rpo :: (Core.Maybe Core.Text),+    -- | Reserved for future use.+    satisfiesPZI :: (Core.Maybe Core.Bool),+    -- | Reserved for future use.+    satisfiesPZS :: (Core.Maybe Core.Bool),+    -- | The URI of this bucket.+    selfLink :: (Core.Maybe Core.Text),+    -- | The bucket\'s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.+    softDeletePolicy :: (Core.Maybe Bucket_SoftDeletePolicy),+    -- | The soft delete time of the bucket in RFC 3339 format.+    softDeleteTime :: (Core.Maybe Core.DateTime),+    -- | The bucket\'s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI/REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE/REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see <https://cloud.google.com/storage/docs/storage-classes Storage Classes>.+    storageClass :: (Core.Maybe Core.Text),+    -- | The creation time of the bucket in RFC 3339 format.+    timeCreated :: (Core.Maybe Core.DateTime),+    -- | The modification time of the bucket in RFC 3339 format.+    updated :: (Core.Maybe Core.DateTime),+    -- | The bucket\'s versioning configuration.+    versioning :: (Core.Maybe Bucket_Versioning),+    -- | The bucket\'s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the <https://cloud.google.com/storage/docs/static-website Static Website Examples> for more information.+    website :: (Core.Maybe Bucket_Website)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketInsertInput' with the minimum fields required to make a request.+newBucketInsertInput ::+  -- |  The name of the bucket. See 'name'.+  Core.Text ->+  BucketInsertInput+newBucketInsertInput name =+  BucketInsertInput+    { acl = Core.Nothing,+      autoclass = Core.Nothing,+      billing = Core.Nothing,+      cors = Core.Nothing,+      customPlacementConfig = Core.Nothing,+      defaultEventBasedHold = Core.Nothing,+      defaultObjectAcl = Core.Nothing,+      encryption = Core.Nothing,+      etag = Core.Nothing,+      generation = Core.Nothing,+      hardDeleteTime = Core.Nothing,+      hierarchicalNamespace = Core.Nothing,+      iamConfiguration = Core.Nothing,+      id = Core.Nothing,+      ipFilter = Core.Nothing,+      kind = "storage#bucket",+      labels = Core.Nothing,+      lifecycle = Core.Nothing,+      location = Core.Nothing,+      locationType = Core.Nothing,+      logging = Core.Nothing,+      metageneration = Core.Nothing,+      name = name,+      objectRetention = Core.Nothing,+      owner = Core.Nothing,+      projectNumber = Core.Nothing,+      retentionPolicy = Core.Nothing,+      rpo = Core.Nothing,+      satisfiesPZI = Core.Nothing,+      satisfiesPZS = Core.Nothing,+      selfLink = Core.Nothing,+      softDeletePolicy = Core.Nothing,+      softDeleteTime = Core.Nothing,+      storageClass = Core.Nothing,+      timeCreated = Core.Nothing,+      updated = Core.Nothing,+      versioning = Core.Nothing,+      website = Core.Nothing+    }++instance Core.FromJSON BucketInsertInput where+  parseJSON =+    Core.withObject+      "BucketInsertInput"+      ( \o ->+          BucketInsertInput+            Core.<$> (o Core..:? "acl")+            Core.<*> (o Core..:? "autoclass")+            Core.<*> (o Core..:? "billing")+            Core.<*> (o Core..:? "cors")+            Core.<*> (o Core..:? "customPlacementConfig")+            Core.<*> (o Core..:? "defaultEventBasedHold")+            Core.<*> (o Core..:? "defaultObjectAcl")+            Core.<*> (o Core..:? "encryption")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "generation" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "hardDeleteTime")+            Core.<*> (o Core..:? "hierarchicalNamespace")+            Core.<*> (o Core..:? "iamConfiguration")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "ipFilter")+            Core.<*> (o Core..:? "kind" Core..!= "storage#bucket")+            Core.<*> (o Core..:? "labels")+            Core.<*> (o Core..:? "lifecycle")+            Core.<*> (o Core..:? "location")+            Core.<*> (o Core..:? "locationType")+            Core.<*> (o Core..:? "logging")+            Core.<*> (o Core..:? "metageneration" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..: "name")+            Core.<*> (o Core..:? "objectRetention")+            Core.<*> (o Core..:? "owner")+            Core.<*> (o Core..:? "projectNumber" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "retentionPolicy")+            Core.<*> (o Core..:? "rpo")+            Core.<*> (o Core..:? "satisfiesPZI")+            Core.<*> (o Core..:? "satisfiesPZS")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "softDeletePolicy")+            Core.<*> (o Core..:? "softDeleteTime")+            Core.<*> (o Core..:? "storageClass")+            Core.<*> (o Core..:? "timeCreated")+            Core.<*> (o Core..:? "updated")+            Core.<*> (o Core..:? "versioning")+            Core.<*> (o Core..:? "website")+      )++instance Core.ToJSON BucketInsertInput where+  toJSON BucketInsertInput {..} =+    Core.object+      ( Core.catMaybes+          [ ("acl" Core..=) Core.<$> acl,+            ("autoclass" Core..=) Core.<$> autoclass,+            ("billing" Core..=) Core.<$> billing,+            ("cors" Core..=) Core.<$> cors,+            ("customPlacementConfig" Core..=) Core.<$> customPlacementConfig,+            ("defaultEventBasedHold" Core..=) Core.<$> defaultEventBasedHold,+            ("defaultObjectAcl" Core..=) Core.<$> defaultObjectAcl,+            ("encryption" Core..=) Core.<$> encryption,+            ("etag" Core..=) Core.<$> etag,+            ("generation" Core..=) Core.. Core.AsText Core.<$> generation,+            ("hardDeleteTime" Core..=) Core.<$> hardDeleteTime,+            ("hierarchicalNamespace" Core..=) Core.<$> hierarchicalNamespace,+            ("iamConfiguration" Core..=) Core.<$> iamConfiguration,+            ("id" Core..=) Core.<$> id,+            ("ipFilter" Core..=) Core.<$> ipFilter,+            Core.Just ("kind" Core..= kind),+            ("labels" Core..=) Core.<$> labels,+            ("lifecycle" Core..=) Core.<$> lifecycle,+            ("location" Core..=) Core.<$> location,+            ("locationType" Core..=) Core.<$> locationType,+            ("logging" Core..=) Core.<$> logging,+            ("metageneration" Core..=)+              Core.. Core.AsText+              Core.<$> metageneration,+            Core.Just ("name" Core..= name),+            ("objectRetention" Core..=) Core.<$> objectRetention,+            ("owner" Core..=) Core.<$> owner,+            ("projectNumber" Core..=)+              Core.. Core.AsText+              Core.<$> projectNumber,+            ("retentionPolicy" Core..=) Core.<$> retentionPolicy,+            ("rpo" Core..=) Core.<$> rpo,+            ("satisfiesPZI" Core..=) Core.<$> satisfiesPZI,+            ("satisfiesPZS" Core..=) Core.<$> satisfiesPZS,+            ("selfLink" Core..=) Core.<$> selfLink,+            ("softDeletePolicy" Core..=) Core.<$> softDeletePolicy,+            ("softDeleteTime" Core..=) Core.<$> softDeleteTime,+            ("storageClass" Core..=) Core.<$> storageClass,+            ("timeCreated" Core..=) Core.<$> timeCreated,+            ("updated" Core..=) Core.<$> updated,+            ("versioning" Core..=) Core.<$> versioning,+            ("website" Core..=) Core.<$> website+          ]+      )++-- | A bucket.+--+-- /See:/ 'newBucketPatch' smart constructor.+data BucketPatch = BucketPatch+  { -- | Access controls on the bucket.+    acl :: (Core.PatchField [BucketAccessControl]),+    -- | The bucket\'s Autoclass configuration.+    autoclass :: (Core.PatchField Bucket_AutoclassPatch),+    -- | The bucket\'s billing configuration.+    billing :: (Core.PatchField Bucket_BillingPatch),+    -- | The bucket\'s Cross-Origin Resource Sharing (CORS) configuration.+    cors :: (Core.PatchField [Bucket_CorsItem]),+    -- | The bucket\'s custom placement configuration for Custom Dual Regions.+    customPlacementConfig :: (Core.PatchField Bucket_CustomPlacementConfigPatch),+    -- | The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold\'s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.+    defaultEventBasedHold :: (Core.PatchField Core.Bool),+    -- | Default access controls to apply to new objects when no ACL is provided.+    defaultObjectAcl :: (Core.PatchField [ObjectAccessControl]),+    -- | Encryption configuration for a bucket.+    encryption :: (Core.PatchField Bucket_EncryptionPatch),+    -- | HTTP 1.1 Entity tag for the bucket.+    etag :: (Core.PatchField Core.Text),+    -- | The generation of this bucket.+    generation :: (Core.PatchField Core.Int64),+    -- | The hard delete time of the bucket in RFC 3339 format.+    hardDeleteTime :: (Core.PatchField Core.DateTime),+    -- | The bucket\'s hierarchical namespace configuration.+    hierarchicalNamespace :: (Core.PatchField Bucket_HierarchicalNamespacePatch),+    -- | The bucket\'s IAM configuration.+    iamConfiguration :: (Core.PatchField Bucket_IamConfigurationPatch),+    -- | The ID of the bucket. For buckets, the id and name properties are the same.+    id :: (Core.PatchField Core.Text),+    -- | The bucket\'s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to \'Enabled\'.+    ipFilter :: (Core.PatchField Bucket_IpFilterPatch),+    -- | The kind of item this is. For buckets, this is always storage#bucket.+    kind :: (Core.PatchField Core.Text),+    -- | User-provided labels, in key\/value pairs.+    labels :: (Core.PatchField Bucket_LabelsPatch),+    -- | The bucket\'s lifecycle configuration. See <https://cloud.google.com/storage/docs/lifecycle Lifecycle Management> for more information.+    lifecycle :: (Core.PatchField Bucket_LifecyclePatch),+    -- | The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the <https://cloud.google.com/storage/docs/locations Developer\'s Guide> for the authoritative list.+    location :: (Core.PatchField Core.Text),+    -- | The type of the bucket location.+    locationType :: (Core.PatchField Core.Text),+    -- | The bucket\'s logging configuration, which defines the destination bucket and optional name prefix for the current bucket\'s logs.+    logging :: (Core.PatchField Bucket_LoggingPatch),+    -- | The metadata generation of this bucket.+    metageneration :: (Core.PatchField Core.Int64),+    -- | The name of the bucket.+    name :: (Core.PatchField Core.Text),+    -- | The bucket\'s object retention config.+    objectRetention :: (Core.PatchField Bucket_ObjectRetentionPatch),+    -- | The owner of the bucket. This is always the project team\'s owner group.+    owner :: (Core.PatchField Bucket_OwnerPatch),+    -- | The project number of the project the bucket belongs to.+    projectNumber :: (Core.PatchField Core.Word64),+    -- | The bucket\'s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION/DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION/DENIED error.+    retentionPolicy :: (Core.PatchField Bucket_RetentionPolicyPatch),+    -- | The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.+    rpo :: (Core.PatchField Core.Text),+    -- | Reserved for future use.+    satisfiesPZI :: (Core.PatchField Core.Bool),+    -- | Reserved for future use.+    satisfiesPZS :: (Core.PatchField Core.Bool),+    -- | The URI of this bucket.+    selfLink :: (Core.PatchField Core.Text),+    -- | The bucket\'s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.+    softDeletePolicy :: (Core.PatchField Bucket_SoftDeletePolicyPatch),+    -- | The soft delete time of the bucket in RFC 3339 format.+    softDeleteTime :: (Core.PatchField Core.DateTime),+    -- | The bucket\'s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI/REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE/REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see <https://cloud.google.com/storage/docs/storage-classes Storage Classes>.+    storageClass :: (Core.PatchField Core.Text),+    -- | The creation time of the bucket in RFC 3339 format.+    timeCreated :: (Core.PatchField Core.DateTime),+    -- | The modification time of the bucket in RFC 3339 format.+    updated :: (Core.PatchField Core.DateTime),+    -- | The bucket\'s versioning configuration.+    versioning :: (Core.PatchField Bucket_VersioningPatch),+    -- | The bucket\'s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the <https://cloud.google.com/storage/docs/static-website Static Website Examples> for more information.+    website :: (Core.PatchField Bucket_WebsitePatch)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketPatch' with the minimum fields required to make a request.+newBucketPatch ::+  BucketPatch+newBucketPatch =+  BucketPatch+    { acl = Core.Omit,+      autoclass = Core.Omit,+      billing = Core.Omit,+      cors = Core.Omit,+      customPlacementConfig = Core.Omit,+      defaultEventBasedHold = Core.Omit,+      defaultObjectAcl = Core.Omit,+      encryption = Core.Omit,+      etag = Core.Omit,+      generation = Core.Omit,+      hardDeleteTime = Core.Omit,+      hierarchicalNamespace = Core.Omit,+      iamConfiguration = Core.Omit,+      id = Core.Omit,+      ipFilter = Core.Omit,+      kind = Core.Omit,+      labels = Core.Omit,+      lifecycle = Core.Omit,+      location = Core.Omit,+      locationType = Core.Omit,+      logging = Core.Omit,+      metageneration = Core.Omit,+      name = Core.Omit,+      objectRetention = Core.Omit,+      owner = Core.Omit,+      projectNumber = Core.Omit,+      retentionPolicy = Core.Omit,+      rpo = Core.Omit,+      satisfiesPZI = Core.Omit,+      satisfiesPZS = Core.Omit,+      selfLink = Core.Omit,+      softDeletePolicy = Core.Omit,+      softDeleteTime = Core.Omit,+      storageClass = Core.Omit,+      timeCreated = Core.Omit,+      updated = Core.Omit,+      versioning = Core.Omit,+      website = Core.Omit+    }++instance Core.FromJSON BucketPatch where+  parseJSON =+    Core.withObject+      "BucketPatch"+      ( \o ->+          BucketPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "acl" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "autoclass" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "billing" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "cors" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "customPlacementConfig" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "defaultEventBasedHold" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "defaultObjectAcl" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "encryption" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "etag" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "generation"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "hardDeleteTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "hierarchicalNamespace" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "iamConfiguration" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "id" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "ipFilter" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "kind" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "labels" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "lifecycle" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "location" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "locationType" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "logging" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "metageneration"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "name" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "objectRetention" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "owner" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "projectNumber"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "retentionPolicy" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "rpo" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "satisfiesPZI" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "satisfiesPZS" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "selfLink" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "softDeletePolicy" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "softDeleteTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "storageClass" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "timeCreated" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "updated" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "versioning" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "website" o)+      )++instance Core.ToJSON BucketPatch where+  toJSON BucketPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "acl" acl,+            Core.patchField Core.toJSON "autoclass" autoclass,+            Core.patchField Core.toJSON "billing" billing,+            Core.patchField Core.toJSON "cors" cors,+            Core.patchField+              Core.toJSON+              "customPlacementConfig"+              customPlacementConfig,+            Core.patchField+              Core.toJSON+              "defaultEventBasedHold"+              defaultEventBasedHold,+            Core.patchField Core.toJSON "defaultObjectAcl" defaultObjectAcl,+            Core.patchField Core.toJSON "encryption" encryption,+            Core.patchField Core.toJSON "etag" etag,+            Core.patchField+              (Core.toJSON Core.. Core.AsText)+              "generation"+              generation,+            Core.patchField Core.toJSON "hardDeleteTime" hardDeleteTime,+            Core.patchField+              Core.toJSON+              "hierarchicalNamespace"+              hierarchicalNamespace,+            Core.patchField Core.toJSON "iamConfiguration" iamConfiguration,+            Core.patchField Core.toJSON "id" id,+            Core.patchField Core.toJSON "ipFilter" ipFilter,+            Core.patchField Core.toJSON "kind" kind,+            Core.patchField Core.toJSON "labels" labels,+            Core.patchField Core.toJSON "lifecycle" lifecycle,+            Core.patchField Core.toJSON "location" location,+            Core.patchField Core.toJSON "locationType" locationType,+            Core.patchField Core.toJSON "logging" logging,+            Core.patchField+              (Core.toJSON Core.. Core.AsText)+              "metageneration"+              metageneration,+            Core.patchField Core.toJSON "name" name,+            Core.patchField Core.toJSON "objectRetention" objectRetention,+            Core.patchField Core.toJSON "owner" owner,+            Core.patchField+              (Core.toJSON Core.. Core.AsText)+              "projectNumber"+              projectNumber,+            Core.patchField Core.toJSON "retentionPolicy" retentionPolicy,+            Core.patchField Core.toJSON "rpo" rpo,+            Core.patchField Core.toJSON "satisfiesPZI" satisfiesPZI,+            Core.patchField Core.toJSON "satisfiesPZS" satisfiesPZS,+            Core.patchField Core.toJSON "selfLink" selfLink,+            Core.patchField Core.toJSON "softDeletePolicy" softDeletePolicy,+            Core.patchField Core.toJSON "softDeleteTime" softDeleteTime,+            Core.patchField Core.toJSON "storageClass" storageClass,+            Core.patchField Core.toJSON "timeCreated" timeCreated,+            Core.patchField Core.toJSON "updated" updated,+            Core.patchField Core.toJSON "versioning" versioning,+            Core.patchField Core.toJSON "website" website+          ]+      )++-- | A bucket.+--+-- /See:/ 'newBucketUpdateInput' smart constructor.+data BucketUpdateInput = BucketUpdateInput+  { -- | Access controls on the bucket.+    acl :: [BucketAccessControl],+    -- | The bucket\'s Autoclass configuration.+    autoclass :: (Core.Maybe Bucket_Autoclass),+    -- | The bucket\'s billing configuration.+    billing :: (Core.Maybe Bucket_Billing),+    -- | The bucket\'s Cross-Origin Resource Sharing (CORS) configuration.+    cors :: (Core.Maybe [Bucket_CorsItem]),+    -- | The bucket\'s custom placement configuration for Custom Dual Regions.+    customPlacementConfig :: (Core.Maybe Bucket_CustomPlacementConfig),+    -- | The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold\'s release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.+    defaultEventBasedHold :: (Core.Maybe Core.Bool),+    -- | Default access controls to apply to new objects when no ACL is provided.+    defaultObjectAcl :: (Core.Maybe [ObjectAccessControl]),+    -- | Encryption configuration for a bucket.+    encryption :: (Core.Maybe Bucket_Encryption),+    -- | HTTP 1.1 Entity tag for the bucket.+    etag :: (Core.Maybe Core.Text),+    -- | The generation of this bucket.+    generation :: (Core.Maybe Core.Int64),+    -- | The hard delete time of the bucket in RFC 3339 format.+    hardDeleteTime :: (Core.Maybe Core.DateTime),+    -- | The bucket\'s hierarchical namespace configuration.+    hierarchicalNamespace :: (Core.Maybe Bucket_HierarchicalNamespace),+    -- | The bucket\'s IAM configuration.+    iamConfiguration :: (Core.Maybe Bucket_IamConfiguration),+    -- | The ID of the bucket. For buckets, the id and name properties are the same.+    id :: (Core.Maybe Core.Text),+    -- | The bucket\'s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to \'Enabled\'.+    ipFilter :: (Core.Maybe Bucket_IpFilter),+    -- | The kind of item this is. For buckets, this is always storage#bucket.+    kind :: Core.Text,+    -- | User-provided labels, in key\/value pairs.+    labels :: (Core.Maybe Bucket_Labels),+    -- | The bucket\'s lifecycle configuration. See <https://cloud.google.com/storage/docs/lifecycle Lifecycle Management> for more information.+    lifecycle :: (Core.Maybe Bucket_Lifecycle),+    -- | The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the <https://cloud.google.com/storage/docs/locations Developer\'s Guide> for the authoritative list.+    location :: (Core.Maybe Core.Text),+    -- | The type of the bucket location.+    locationType :: (Core.Maybe Core.Text),+    -- | The bucket\'s logging configuration, which defines the destination bucket and optional name prefix for the current bucket\'s logs.+    logging :: (Core.Maybe Bucket_Logging),+    -- | The metadata generation of this bucket.+    metageneration :: (Core.Maybe Core.Int64),+    -- | The name of the bucket.+    name :: (Core.Maybe Core.Text),+    -- | The bucket\'s object retention config.+    objectRetention :: (Core.Maybe Bucket_ObjectRetention),+    -- | The owner of the bucket. This is always the project team\'s owner group.+    owner :: (Core.Maybe Bucket_Owner),+    -- | The project number of the project the bucket belongs to.+    projectNumber :: (Core.Maybe Core.Word64),+    -- | The bucket\'s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION/DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION/DENIED error.+    retentionPolicy :: (Core.Maybe Bucket_RetentionPolicy),+    -- | The Recovery Point Objective (RPO) of this bucket. Set to ASYNC_TURBO to turn on Turbo Replication on a bucket.+    rpo :: (Core.Maybe Core.Text),+    -- | Reserved for future use.+    satisfiesPZI :: (Core.Maybe Core.Bool),+    -- | Reserved for future use.+    satisfiesPZS :: (Core.Maybe Core.Bool),+    -- | The URI of this bucket.+    selfLink :: (Core.Maybe Core.Text),+    -- | The bucket\'s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.+    softDeletePolicy :: (Core.Maybe Bucket_SoftDeletePolicy),+    -- | The soft delete time of the bucket in RFC 3339 format.+    softDeleteTime :: (Core.Maybe Core.DateTime),+    -- | The bucket\'s default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI/REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, ARCHIVE, and DURABLE/REDUCED_AVAILABILITY. If this value is not specified when the bucket is created, it will default to STANDARD. For more information, see <https://cloud.google.com/storage/docs/storage-classes Storage Classes>.+    storageClass :: (Core.Maybe Core.Text),+    -- | The creation time of the bucket in RFC 3339 format.+    timeCreated :: (Core.Maybe Core.DateTime),+    -- | The modification time of the bucket in RFC 3339 format.+    updated :: (Core.Maybe Core.DateTime),+    -- | The bucket\'s versioning configuration.+    versioning :: (Core.Maybe Bucket_Versioning),+    -- | The bucket\'s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the <https://cloud.google.com/storage/docs/static-website Static Website Examples> for more information.+    website :: (Core.Maybe Bucket_Website)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketUpdateInput' with the minimum fields required to make a request.+newBucketUpdateInput ::+  -- |  Access controls on the bucket. See 'acl'.+  [BucketAccessControl] ->+  BucketUpdateInput+newBucketUpdateInput acl =+  BucketUpdateInput+    { acl = acl,+      autoclass = Core.Nothing,+      billing = Core.Nothing,+      cors = Core.Nothing,+      customPlacementConfig = Core.Nothing,+      defaultEventBasedHold = Core.Nothing,+      defaultObjectAcl = Core.Nothing,+      encryption = Core.Nothing,+      etag = Core.Nothing,+      generation = Core.Nothing,+      hardDeleteTime = Core.Nothing,+      hierarchicalNamespace = Core.Nothing,+      iamConfiguration = Core.Nothing,+      id = Core.Nothing,+      ipFilter = Core.Nothing,+      kind = "storage#bucket",+      labels = Core.Nothing,+      lifecycle = Core.Nothing,+      location = Core.Nothing,+      locationType = Core.Nothing,+      logging = Core.Nothing,+      metageneration = Core.Nothing,+      name = Core.Nothing,+      objectRetention = Core.Nothing,+      owner = Core.Nothing,+      projectNumber = Core.Nothing,+      retentionPolicy = Core.Nothing,+      rpo = Core.Nothing,+      satisfiesPZI = Core.Nothing,+      satisfiesPZS = Core.Nothing,+      selfLink = Core.Nothing,+      softDeletePolicy = Core.Nothing,+      softDeleteTime = Core.Nothing,+      storageClass = Core.Nothing,+      timeCreated = Core.Nothing,+      updated = Core.Nothing,+      versioning = Core.Nothing,+      website = Core.Nothing+    }++instance Core.FromJSON BucketUpdateInput where+  parseJSON =+    Core.withObject+      "BucketUpdateInput"+      ( \o ->+          BucketUpdateInput+            Core.<$> (o Core..: "acl")+            Core.<*> (o Core..:? "autoclass")+            Core.<*> (o Core..:? "billing")+            Core.<*> (o Core..:? "cors")+            Core.<*> (o Core..:? "customPlacementConfig")+            Core.<*> (o Core..:? "defaultEventBasedHold")+            Core.<*> (o Core..:? "defaultObjectAcl")+            Core.<*> (o Core..:? "encryption")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "generation" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "hardDeleteTime")+            Core.<*> (o Core..:? "hierarchicalNamespace")+            Core.<*> (o Core..:? "iamConfiguration")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "ipFilter")+            Core.<*> (o Core..:? "kind" Core..!= "storage#bucket")+            Core.<*> (o Core..:? "labels")+            Core.<*> (o Core..:? "lifecycle")+            Core.<*> (o Core..:? "location")+            Core.<*> (o Core..:? "locationType")+            Core.<*> (o Core..:? "logging")+            Core.<*> (o Core..:? "metageneration" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "name")+            Core.<*> (o Core..:? "objectRetention")+            Core.<*> (o Core..:? "owner")+            Core.<*> (o Core..:? "projectNumber" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "retentionPolicy")+            Core.<*> (o Core..:? "rpo")+            Core.<*> (o Core..:? "satisfiesPZI")+            Core.<*> (o Core..:? "satisfiesPZS")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "softDeletePolicy")+            Core.<*> (o Core..:? "softDeleteTime")+            Core.<*> (o Core..:? "storageClass")+            Core.<*> (o Core..:? "timeCreated")+            Core.<*> (o Core..:? "updated")+            Core.<*> (o Core..:? "versioning")+            Core.<*> (o Core..:? "website")+      )++instance Core.ToJSON BucketUpdateInput where+  toJSON BucketUpdateInput {..} =+    Core.object+      ( Core.catMaybes+          [ Core.Just ("acl" Core..= acl),+            ("autoclass" Core..=) Core.<$> autoclass,+            ("billing" Core..=) Core.<$> billing,+            ("cors" Core..=) Core.<$> cors,+            ("customPlacementConfig" Core..=) Core.<$> customPlacementConfig,+            ("defaultEventBasedHold" Core..=) Core.<$> defaultEventBasedHold,+            ("defaultObjectAcl" Core..=) Core.<$> defaultObjectAcl,+            ("encryption" Core..=) Core.<$> encryption,+            ("etag" Core..=) Core.<$> etag,+            ("generation" Core..=) Core.. Core.AsText Core.<$> generation,+            ("hardDeleteTime" Core..=) Core.<$> hardDeleteTime,+            ("hierarchicalNamespace" Core..=) Core.<$> hierarchicalNamespace,+            ("iamConfiguration" Core..=) Core.<$> iamConfiguration,+            ("id" Core..=) Core.<$> id,+            ("ipFilter" Core..=) Core.<$> ipFilter,+            Core.Just ("kind" Core..= kind),+            ("labels" Core..=) Core.<$> labels,+            ("lifecycle" Core..=) Core.<$> lifecycle,+            ("location" Core..=) Core.<$> location,+            ("locationType" Core..=) Core.<$> locationType,+            ("logging" Core..=) Core.<$> logging,+            ("metageneration" Core..=)+              Core.. Core.AsText+              Core.<$> metageneration,+            ("name" Core..=) Core.<$> name,+            ("objectRetention" Core..=) Core.<$> objectRetention,+            ("owner" Core..=) Core.<$> owner,+            ("projectNumber" Core..=)+              Core.. Core.AsText+              Core.<$> projectNumber,+            ("retentionPolicy" Core..=) Core.<$> retentionPolicy,+            ("rpo" Core..=) Core.<$> rpo,+            ("satisfiesPZI" Core..=) Core.<$> satisfiesPZI,+            ("satisfiesPZS" Core..=) Core.<$> satisfiesPZS,+            ("selfLink" Core..=) Core.<$> selfLink,+            ("softDeletePolicy" Core..=) Core.<$> softDeletePolicy,+            ("softDeleteTime" Core..=) Core.<$> softDeleteTime,+            ("storageClass" Core..=) Core.<$> storageClass,+            ("timeCreated" Core..=) Core.<$> timeCreated,+            ("updated" Core..=) Core.<$> updated,+            ("versioning" Core..=) Core.<$> versioning,+            ("website" Core..=) Core.<$> website+          ]+      )++-- | The bucket\'s Autoclass configuration.+--+-- /See:/ 'newBucket_Autoclass' smart constructor.+data Bucket_Autoclass = Bucket_Autoclass+  { -- | Whether or not Autoclass is enabled on this bucket+    enabled :: (Core.Maybe Core.Bool),+    -- | The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.+    terminalStorageClass :: (Core.Maybe Core.Text),+    -- | A date and time in RFC 3339 format representing the time of the most recent update to \"terminalStorageClass\".+    terminalStorageClassUpdateTime :: (Core.Maybe Core.DateTime),+    -- | A date and time in RFC 3339 format representing the instant at which \"enabled\" was last toggled.+    toggleTime :: (Core.Maybe Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Autoclass' with the minimum fields required to make a request.+newBucket_Autoclass ::+  Bucket_Autoclass+newBucket_Autoclass =+  Bucket_Autoclass+    { enabled = Core.Nothing,+      terminalStorageClass = Core.Nothing,+      terminalStorageClassUpdateTime = Core.Nothing,+      toggleTime = Core.Nothing+    }++instance Core.FromJSON Bucket_Autoclass where+  parseJSON =+    Core.withObject+      "Bucket_Autoclass"+      ( \o ->+          Bucket_Autoclass+            Core.<$> (o Core..:? "enabled")+            Core.<*> (o Core..:? "terminalStorageClass")+            Core.<*> (o Core..:? "terminalStorageClassUpdateTime")+            Core.<*> (o Core..:? "toggleTime")+      )++instance Core.ToJSON Bucket_Autoclass where+  toJSON Bucket_Autoclass {..} =+    Core.object+      ( Core.catMaybes+          [ ("enabled" Core..=) Core.<$> enabled,+            ("terminalStorageClass" Core..=) Core.<$> terminalStorageClass,+            ("terminalStorageClassUpdateTime" Core..=)+              Core.<$> terminalStorageClassUpdateTime,+            ("toggleTime" Core..=) Core.<$> toggleTime+          ]+      )++-- | The bucket\'s Autoclass configuration.+--+-- /See:/ 'newBucket_AutoclassPatch' smart constructor.+data Bucket_AutoclassPatch = Bucket_AutoclassPatch+  { -- | Whether or not Autoclass is enabled on this bucket+    enabled :: (Core.PatchField Core.Bool),+    -- | The storage class that objects in the bucket eventually transition to if they are not read for a certain length of time. Valid values are NEARLINE and ARCHIVE.+    terminalStorageClass :: (Core.PatchField Core.Text),+    -- | A date and time in RFC 3339 format representing the time of the most recent update to \"terminalStorageClass\".+    terminalStorageClassUpdateTime :: (Core.PatchField Core.DateTime),+    -- | A date and time in RFC 3339 format representing the instant at which \"enabled\" was last toggled.+    toggleTime :: (Core.PatchField Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_AutoclassPatch' with the minimum fields required to make a request.+newBucket_AutoclassPatch ::+  Bucket_AutoclassPatch+newBucket_AutoclassPatch =+  Bucket_AutoclassPatch+    { enabled = Core.Omit,+      terminalStorageClass = Core.Omit,+      terminalStorageClassUpdateTime = Core.Omit,+      toggleTime = Core.Omit+    }++instance Core.FromJSON Bucket_AutoclassPatch where+  parseJSON =+    Core.withObject+      "Bucket_AutoclassPatch"+      ( \o ->+          Bucket_AutoclassPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "enabled" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "terminalStorageClass" o)+            Core.<*> ( Core.parsePatchField+                         Core.parseJSON+                         "terminalStorageClassUpdateTime"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "toggleTime" o)+      )++instance Core.ToJSON Bucket_AutoclassPatch where+  toJSON Bucket_AutoclassPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "enabled" enabled,+            Core.patchField+              Core.toJSON+              "terminalStorageClass"+              terminalStorageClass,+            Core.patchField+              Core.toJSON+              "terminalStorageClassUpdateTime"+              terminalStorageClassUpdateTime,+            Core.patchField Core.toJSON "toggleTime" toggleTime+          ]+      )++-- | The bucket\'s billing configuration.+--+-- /See:/ 'newBucket_Billing' smart constructor.+newtype Bucket_Billing = Bucket_Billing+  { -- | When set to true, Requester Pays is enabled for this bucket.+    requesterPays :: (Core.Maybe Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Billing' with the minimum fields required to make a request.+newBucket_Billing ::+  Bucket_Billing+newBucket_Billing = Bucket_Billing {requesterPays = Core.Nothing}++instance Core.FromJSON Bucket_Billing where+  parseJSON =+    Core.withObject+      "Bucket_Billing"+      (\o -> Bucket_Billing Core.<$> (o Core..:? "requesterPays"))++instance Core.ToJSON Bucket_Billing where+  toJSON Bucket_Billing {..} =+    Core.object+      (Core.catMaybes [("requesterPays" Core..=) Core.<$> requesterPays])++-- | The bucket\'s billing configuration.+--+-- /See:/ 'newBucket_BillingPatch' smart constructor.+newtype Bucket_BillingPatch = Bucket_BillingPatch+  { -- | When set to true, Requester Pays is enabled for this bucket.+    requesterPays :: (Core.PatchField Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_BillingPatch' with the minimum fields required to make a request.+newBucket_BillingPatch ::+  Bucket_BillingPatch+newBucket_BillingPatch =+  Bucket_BillingPatch {requesterPays = Core.Omit}++instance Core.FromJSON Bucket_BillingPatch where+  parseJSON =+    Core.withObject+      "Bucket_BillingPatch"+      ( \o ->+          Bucket_BillingPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "requesterPays" o)+      )++instance Core.ToJSON Bucket_BillingPatch where+  toJSON Bucket_BillingPatch {..} =+    Core.object+      ( Core.catMaybes+          [Core.patchField Core.toJSON "requesterPays" requesterPays]+      )++--+-- /See:/ 'newBucket_CorsItem' smart constructor.+data Bucket_CorsItem = Bucket_CorsItem+  { -- | The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.+    maxAgeSeconds :: (Core.Maybe Core.Int32),+    -- | The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: \"*\" is permitted in the list of methods, and means \"any method\".+    method :: (Core.Maybe [Core.Text]),+    -- | The list of Origins eligible to receive CORS response headers. Note: \"*\" is permitted in the list of origins, and means \"any Origin\".+    origin :: (Core.Maybe [Core.Text]),+    -- | The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.+    responseHeader :: (Core.Maybe [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_CorsItem' with the minimum fields required to make a request.+newBucket_CorsItem ::+  Bucket_CorsItem+newBucket_CorsItem =+  Bucket_CorsItem+    { maxAgeSeconds = Core.Nothing,+      method = Core.Nothing,+      origin = Core.Nothing,+      responseHeader = Core.Nothing+    }++instance Core.FromJSON Bucket_CorsItem where+  parseJSON =+    Core.withObject+      "Bucket_CorsItem"+      ( \o ->+          Bucket_CorsItem+            Core.<$> (o Core..:? "maxAgeSeconds")+            Core.<*> (o Core..:? "method")+            Core.<*> (o Core..:? "origin")+            Core.<*> (o Core..:? "responseHeader")+      )++instance Core.ToJSON Bucket_CorsItem where+  toJSON Bucket_CorsItem {..} =+    Core.object+      ( Core.catMaybes+          [ ("maxAgeSeconds" Core..=) Core.<$> maxAgeSeconds,+            ("method" Core..=) Core.<$> method,+            ("origin" Core..=) Core.<$> origin,+            ("responseHeader" Core..=) Core.<$> responseHeader+          ]+      )++-- | The bucket\'s custom placement configuration for Custom Dual Regions.+--+-- /See:/ 'newBucket_CustomPlacementConfig' smart constructor.+newtype Bucket_CustomPlacementConfig = Bucket_CustomPlacementConfig+  { -- | The list of regional locations in which data is placed.+    dataLocations :: (Core.Maybe [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_CustomPlacementConfig' with the minimum fields required to make a request.+newBucket_CustomPlacementConfig ::+  Bucket_CustomPlacementConfig+newBucket_CustomPlacementConfig =+  Bucket_CustomPlacementConfig {dataLocations = Core.Nothing}++instance Core.FromJSON Bucket_CustomPlacementConfig where+  parseJSON =+    Core.withObject+      "Bucket_CustomPlacementConfig"+      ( \o ->+          Bucket_CustomPlacementConfig Core.<$> (o Core..:? "dataLocations")+      )++instance Core.ToJSON Bucket_CustomPlacementConfig where+  toJSON Bucket_CustomPlacementConfig {..} =+    Core.object+      (Core.catMaybes [("dataLocations" Core..=) Core.<$> dataLocations])++-- | The bucket\'s custom placement configuration for Custom Dual Regions.+--+-- /See:/ 'newBucket_CustomPlacementConfigPatch' smart constructor.+newtype Bucket_CustomPlacementConfigPatch = Bucket_CustomPlacementConfigPatch+  { -- | The list of regional locations in which data is placed.+    dataLocations :: (Core.PatchField [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_CustomPlacementConfigPatch' with the minimum fields required to make a request.+newBucket_CustomPlacementConfigPatch ::+  Bucket_CustomPlacementConfigPatch+newBucket_CustomPlacementConfigPatch =+  Bucket_CustomPlacementConfigPatch {dataLocations = Core.Omit}++instance Core.FromJSON Bucket_CustomPlacementConfigPatch where+  parseJSON =+    Core.withObject+      "Bucket_CustomPlacementConfigPatch"+      ( \o ->+          Bucket_CustomPlacementConfigPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "dataLocations" o)+      )++instance Core.ToJSON Bucket_CustomPlacementConfigPatch where+  toJSON Bucket_CustomPlacementConfigPatch {..} =+    Core.object+      ( Core.catMaybes+          [Core.patchField Core.toJSON "dataLocations" dataLocations]+      )++-- | Encryption configuration for a bucket.+--+-- /See:/ 'newBucket_Encryption' smart constructor.+data Bucket_Encryption = Bucket_Encryption+  { -- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.+    customerManagedEncryptionEnforcementConfig ::+      ( Core.Maybe+          Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+      ),+    -- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.+    customerSuppliedEncryptionEnforcementConfig ::+      ( Core.Maybe+          Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+      ),+    -- | A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.+    defaultKmsKeyName :: (Core.Maybe Core.Text),+    -- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.+    googleManagedEncryptionEnforcementConfig ::+      ( Core.Maybe+          Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Encryption' with the minimum fields required to make a request.+newBucket_Encryption ::+  Bucket_Encryption+newBucket_Encryption =+  Bucket_Encryption+    { customerManagedEncryptionEnforcementConfig =+        Core.Nothing,+      customerSuppliedEncryptionEnforcementConfig = Core.Nothing,+      defaultKmsKeyName = Core.Nothing,+      googleManagedEncryptionEnforcementConfig = Core.Nothing+    }++instance Core.FromJSON Bucket_Encryption where+  parseJSON =+    Core.withObject+      "Bucket_Encryption"+      ( \o ->+          Bucket_Encryption+            Core.<$> (o Core..:? "customerManagedEncryptionEnforcementConfig")+            Core.<*> (o Core..:? "customerSuppliedEncryptionEnforcementConfig")+            Core.<*> (o Core..:? "defaultKmsKeyName")+            Core.<*> (o Core..:? "googleManagedEncryptionEnforcementConfig")+      )++instance Core.ToJSON Bucket_Encryption where+  toJSON Bucket_Encryption {..} =+    Core.object+      ( Core.catMaybes+          [ ("customerManagedEncryptionEnforcementConfig" Core..=)+              Core.<$> customerManagedEncryptionEnforcementConfig,+            ("customerSuppliedEncryptionEnforcementConfig" Core..=)+              Core.<$> customerSuppliedEncryptionEnforcementConfig,+            ("defaultKmsKeyName" Core..=) Core.<$> defaultKmsKeyName,+            ("googleManagedEncryptionEnforcementConfig" Core..=)+              Core.<$> googleManagedEncryptionEnforcementConfig+          ]+      )++-- | Encryption configuration for a bucket.+--+-- /See:/ 'newBucket_EncryptionPatch' smart constructor.+data Bucket_EncryptionPatch = Bucket_EncryptionPatch+  { -- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.+    customerManagedEncryptionEnforcementConfig ::+      ( Core.PatchField+          Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+      ),+    -- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.+    customerSuppliedEncryptionEnforcementConfig ::+      ( Core.PatchField+          Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+      ),+    -- | A Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.+    defaultKmsKeyName :: (Core.PatchField Core.Text),+    -- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.+    googleManagedEncryptionEnforcementConfig ::+      ( Core.PatchField+          Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_EncryptionPatch' with the minimum fields required to make a request.+newBucket_EncryptionPatch ::+  Bucket_EncryptionPatch+newBucket_EncryptionPatch =+  Bucket_EncryptionPatch+    { customerManagedEncryptionEnforcementConfig =+        Core.Omit,+      customerSuppliedEncryptionEnforcementConfig = Core.Omit,+      defaultKmsKeyName = Core.Omit,+      googleManagedEncryptionEnforcementConfig = Core.Omit+    }++instance Core.FromJSON Bucket_EncryptionPatch where+  parseJSON =+    Core.withObject+      "Bucket_EncryptionPatch"+      ( \o ->+          Bucket_EncryptionPatch+            Core.<$> ( Core.parsePatchField+                         Core.parseJSON+                         "customerManagedEncryptionEnforcementConfig"+                         o+                     )+            Core.<*> ( Core.parsePatchField+                         Core.parseJSON+                         "customerSuppliedEncryptionEnforcementConfig"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "defaultKmsKeyName" o)+            Core.<*> ( Core.parsePatchField+                         Core.parseJSON+                         "googleManagedEncryptionEnforcementConfig"+                         o+                     )+      )++instance Core.ToJSON Bucket_EncryptionPatch where+  toJSON Bucket_EncryptionPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField+              Core.toJSON+              "customerManagedEncryptionEnforcementConfig"+              customerManagedEncryptionEnforcementConfig,+            Core.patchField+              Core.toJSON+              "customerSuppliedEncryptionEnforcementConfig"+              customerSuppliedEncryptionEnforcementConfig,+            Core.patchField Core.toJSON "defaultKmsKeyName" defaultKmsKeyName,+            Core.patchField+              Core.toJSON+              "googleManagedEncryptionEnforcementConfig"+              googleManagedEncryptionEnforcementConfig+          ]+      )++-- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.+--+-- /See:/ 'newBucket_Encryption_CustomerManagedEncryptionEnforcementConfig' smart constructor.+data Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig = Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+  { -- | Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.Maybe Core.DateTime),+    -- | Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.+    restrictionMode ::+      ( Core.Maybe+          Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig' with the minimum fields required to make a request.+newBucket_Encryption_CustomerManagedEncryptionEnforcementConfig ::+  Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+newBucket_Encryption_CustomerManagedEncryptionEnforcementConfig =+  Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+    { effectiveTime =+        Core.Nothing,+      restrictionMode = Core.Nothing+    }++instance+  Core.FromJSON+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+  where+  parseJSON =+    Core.withObject+      "Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig"+      ( \o ->+          Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+            Core.<$> (o Core..:? "effectiveTime")+            Core.<*> (o Core..:? "restrictionMode")+      )++instance+  Core.ToJSON+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+  where+  toJSON+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig {..} =+      Core.object+        ( Core.catMaybes+            [ ("effectiveTime" Core..=) Core.<$> effectiveTime,+              ("restrictionMode" Core..=) Core.<$> restrictionMode+            ]+        )++-- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Managed Encryption type by default.+--+-- /See:/ 'newBucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch' smart constructor.+data Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch = Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+  { -- | Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.PatchField Core.DateTime),+    -- | Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.+    restrictionMode ::+      ( Core.PatchField+          Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch' with the minimum fields required to make a request.+newBucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch ::+  Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+newBucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch =+  Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+    { effectiveTime =+        Core.Omit,+      restrictionMode = Core.Omit+    }++instance+  Core.FromJSON+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+  where+  parseJSON =+    Core.withObject+      "Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch"+      ( \o ->+          Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "effectiveTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "restrictionMode" o)+      )++instance+  Core.ToJSON+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+  where+  toJSON+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch {..} =+      Core.object+        ( Core.catMaybes+            [ Core.patchField Core.toJSON "effectiveTime" effectiveTime,+              Core.patchField Core.toJSON "restrictionMode" restrictionMode+            ]+        )++-- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.+--+-- /See:/ 'newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig' smart constructor.+data Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig = Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+  { -- | Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.Maybe Core.DateTime),+    -- | Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.+    restrictionMode ::+      ( Core.Maybe+          Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig' with the minimum fields required to make a request.+newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig ::+  Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig =+  Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+    { effectiveTime =+        Core.Nothing,+      restrictionMode = Core.Nothing+    }++instance+  Core.FromJSON+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+  where+  parseJSON =+    Core.withObject+      "Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig"+      ( \o ->+          Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+            Core.<$> (o Core..:? "effectiveTime")+            Core.<*> (o Core..:? "restrictionMode")+      )++instance+  Core.ToJSON+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+  where+  toJSON+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig {..} =+      Core.object+        ( Core.catMaybes+            [ ("effectiveTime" Core..=) Core.<$> effectiveTime,+              ("restrictionMode" Core..=) Core.<$> restrictionMode+            ]+        )++-- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Customer Supplied Encryption type by default.+--+-- /See:/ 'newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch' smart constructor.+data Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch = Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+  { -- | Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.PatchField Core.DateTime),+    -- | Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.+    restrictionMode ::+      ( Core.PatchField+          Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch' with the minimum fields required to make a request.+newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch ::+  Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch =+  Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+    { effectiveTime =+        Core.Omit,+      restrictionMode = Core.Omit+    }++instance+  Core.FromJSON+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+  where+  parseJSON =+    Core.withObject+      "Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch"+      ( \o ->+          Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "effectiveTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "restrictionMode" o)+      )++instance+  Core.ToJSON+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+  where+  toJSON+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch {..} =+      Core.object+        ( Core.catMaybes+            [ Core.patchField Core.toJSON "effectiveTime" effectiveTime,+              Core.patchField Core.toJSON "restrictionMode" restrictionMode+            ]+        )++-- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.+--+-- /See:/ 'newBucket_Encryption_GoogleManagedEncryptionEnforcementConfig' smart constructor.+data Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig = Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+  { -- | Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.Maybe Core.DateTime),+    -- | Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.+    restrictionMode ::+      ( Core.Maybe+          Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig' with the minimum fields required to make a request.+newBucket_Encryption_GoogleManagedEncryptionEnforcementConfig ::+  Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+newBucket_Encryption_GoogleManagedEncryptionEnforcementConfig =+  Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+    { effectiveTime =+        Core.Nothing,+      restrictionMode = Core.Nothing+    }++instance+  Core.FromJSON+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+  where+  parseJSON =+    Core.withObject+      "Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig"+      ( \o ->+          Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+            Core.<$> (o Core..:? "effectiveTime")+            Core.<*> (o Core..:? "restrictionMode")+      )++instance+  Core.ToJSON+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+  where+  toJSON+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig {..} =+      Core.object+        ( Core.catMaybes+            [ ("effectiveTime" Core..=) Core.<$> effectiveTime,+              ("restrictionMode" Core..=) Core.<$> restrictionMode+            ]+        )++-- | If set, the new objects created in this bucket must comply with this enforcement config. Changing this has no effect on existing objects; it applies to new objects only. If omitted, the new objects are allowed to be encrypted with Google Managed Encryption type by default.+--+-- /See:/ 'newBucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch' smart constructor.+data Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch = Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+  { -- | Server-determined value that indicates the time from which configuration was enforced and effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.PatchField Core.DateTime),+    -- | Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.+    restrictionMode ::+      ( Core.PatchField+          Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch' with the minimum fields required to make a request.+newBucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch ::+  Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+newBucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch =+  Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+    { effectiveTime =+        Core.Omit,+      restrictionMode = Core.Omit+    }++instance+  Core.FromJSON+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+  where+  parseJSON =+    Core.withObject+      "Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch"+      ( \o ->+          Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "effectiveTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "restrictionMode" o)+      )++instance+  Core.ToJSON+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+  where+  toJSON+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch {..} =+      Core.object+        ( Core.catMaybes+            [ Core.patchField Core.toJSON "effectiveTime" effectiveTime,+              Core.patchField Core.toJSON "restrictionMode" restrictionMode+            ]+        )++-- | The bucket\'s hierarchical namespace configuration.+--+-- /See:/ 'newBucket_HierarchicalNamespace' smart constructor.+newtype Bucket_HierarchicalNamespace = Bucket_HierarchicalNamespace+  { -- | When set to true, hierarchical namespace is enabled for this bucket.+    enabled :: (Core.Maybe Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_HierarchicalNamespace' with the minimum fields required to make a request.+newBucket_HierarchicalNamespace ::+  Bucket_HierarchicalNamespace+newBucket_HierarchicalNamespace =+  Bucket_HierarchicalNamespace {enabled = Core.Nothing}++instance Core.FromJSON Bucket_HierarchicalNamespace where+  parseJSON =+    Core.withObject+      "Bucket_HierarchicalNamespace"+      ( \o ->+          Bucket_HierarchicalNamespace Core.<$> (o Core..:? "enabled")+      )++instance Core.ToJSON Bucket_HierarchicalNamespace where+  toJSON Bucket_HierarchicalNamespace {..} =+    Core.object+      (Core.catMaybes [("enabled" Core..=) Core.<$> enabled])++-- | The bucket\'s hierarchical namespace configuration.+--+-- /See:/ 'newBucket_HierarchicalNamespacePatch' smart constructor.+newtype Bucket_HierarchicalNamespacePatch = Bucket_HierarchicalNamespacePatch+  { -- | When set to true, hierarchical namespace is enabled for this bucket.+    enabled :: (Core.PatchField Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_HierarchicalNamespacePatch' with the minimum fields required to make a request.+newBucket_HierarchicalNamespacePatch ::+  Bucket_HierarchicalNamespacePatch+newBucket_HierarchicalNamespacePatch =+  Bucket_HierarchicalNamespacePatch {enabled = Core.Omit}++instance Core.FromJSON Bucket_HierarchicalNamespacePatch where+  parseJSON =+    Core.withObject+      "Bucket_HierarchicalNamespacePatch"+      ( \o ->+          Bucket_HierarchicalNamespacePatch+            Core.<$> (Core.parsePatchField Core.parseJSON "enabled" o)+      )++instance Core.ToJSON Bucket_HierarchicalNamespacePatch where+  toJSON Bucket_HierarchicalNamespacePatch {..} =+    Core.object+      (Core.catMaybes [Core.patchField Core.toJSON "enabled" enabled])++-- | The bucket\'s IAM configuration.+--+-- /See:/ 'newBucket_IamConfiguration' smart constructor.+data Bucket_IamConfiguration = Bucket_IamConfiguration+  { -- | The bucket\'s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.+    bucketPolicyOnly :: (Core.Maybe Bucket_IamConfiguration_BucketPolicyOnly),+    -- | The bucket\'s Public Access Prevention configuration. Currently, \'inherited\' and \'enforced\' are supported.+    publicAccessPrevention :: (Core.Maybe Core.Text),+    -- | The bucket\'s uniform bucket-level access configuration.+    uniformBucketLevelAccess :: (Core.Maybe Bucket_IamConfiguration_UniformBucketLevelAccess)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IamConfiguration' with the minimum fields required to make a request.+newBucket_IamConfiguration ::+  Bucket_IamConfiguration+newBucket_IamConfiguration =+  Bucket_IamConfiguration+    { bucketPolicyOnly = Core.Nothing,+      publicAccessPrevention = Core.Nothing,+      uniformBucketLevelAccess = Core.Nothing+    }++instance Core.FromJSON Bucket_IamConfiguration where+  parseJSON =+    Core.withObject+      "Bucket_IamConfiguration"+      ( \o ->+          Bucket_IamConfiguration+            Core.<$> (o Core..:? "bucketPolicyOnly")+            Core.<*> (o Core..:? "publicAccessPrevention")+            Core.<*> (o Core..:? "uniformBucketLevelAccess")+      )++instance Core.ToJSON Bucket_IamConfiguration where+  toJSON Bucket_IamConfiguration {..} =+    Core.object+      ( Core.catMaybes+          [ ("bucketPolicyOnly" Core..=) Core.<$> bucketPolicyOnly,+            ("publicAccessPrevention" Core..=) Core.<$> publicAccessPrevention,+            ("uniformBucketLevelAccess" Core..=)+              Core.<$> uniformBucketLevelAccess+          ]+      )++-- | The bucket\'s IAM configuration.+--+-- /See:/ 'newBucket_IamConfigurationPatch' smart constructor.+data Bucket_IamConfigurationPatch = Bucket_IamConfigurationPatch+  { -- | The bucket\'s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.+    bucketPolicyOnly :: (Core.PatchField Bucket_IamConfiguration_BucketPolicyOnlyPatch),+    -- | The bucket\'s Public Access Prevention configuration. Currently, \'inherited\' and \'enforced\' are supported.+    publicAccessPrevention :: (Core.PatchField Core.Text),+    -- | The bucket\'s uniform bucket-level access configuration.+    uniformBucketLevelAccess ::+      ( Core.PatchField+          Bucket_IamConfiguration_UniformBucketLevelAccessPatch+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IamConfigurationPatch' with the minimum fields required to make a request.+newBucket_IamConfigurationPatch ::+  Bucket_IamConfigurationPatch+newBucket_IamConfigurationPatch =+  Bucket_IamConfigurationPatch+    { bucketPolicyOnly = Core.Omit,+      publicAccessPrevention = Core.Omit,+      uniformBucketLevelAccess = Core.Omit+    }++instance Core.FromJSON Bucket_IamConfigurationPatch where+  parseJSON =+    Core.withObject+      "Bucket_IamConfigurationPatch"+      ( \o ->+          Bucket_IamConfigurationPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "bucketPolicyOnly" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "publicAccessPrevention" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "uniformBucketLevelAccess" o)+      )++instance Core.ToJSON Bucket_IamConfigurationPatch where+  toJSON Bucket_IamConfigurationPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "bucketPolicyOnly" bucketPolicyOnly,+            Core.patchField+              Core.toJSON+              "publicAccessPrevention"+              publicAccessPrevention,+            Core.patchField+              Core.toJSON+              "uniformBucketLevelAccess"+              uniformBucketLevelAccess+          ]+      )++-- | The bucket\'s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.+--+-- /See:/ 'newBucket_IamConfiguration_BucketPolicyOnly' smart constructor.+data Bucket_IamConfiguration_BucketPolicyOnly = Bucket_IamConfiguration_BucketPolicyOnly+  { -- | If set, access is controlled only by bucket-level or above IAM policies.+    enabled :: (Core.Maybe Core.Bool),+    -- | The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.+    lockedTime :: (Core.Maybe Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IamConfiguration_BucketPolicyOnly' with the minimum fields required to make a request.+newBucket_IamConfiguration_BucketPolicyOnly ::+  Bucket_IamConfiguration_BucketPolicyOnly+newBucket_IamConfiguration_BucketPolicyOnly =+  Bucket_IamConfiguration_BucketPolicyOnly+    { enabled = Core.Nothing,+      lockedTime = Core.Nothing+    }++instance Core.FromJSON Bucket_IamConfiguration_BucketPolicyOnly where+  parseJSON =+    Core.withObject+      "Bucket_IamConfiguration_BucketPolicyOnly"+      ( \o ->+          Bucket_IamConfiguration_BucketPolicyOnly+            Core.<$> (o Core..:? "enabled")+            Core.<*> (o Core..:? "lockedTime")+      )++instance Core.ToJSON Bucket_IamConfiguration_BucketPolicyOnly where+  toJSON Bucket_IamConfiguration_BucketPolicyOnly {..} =+    Core.object+      ( Core.catMaybes+          [ ("enabled" Core..=) Core.<$> enabled,+            ("lockedTime" Core..=) Core.<$> lockedTime+          ]+      )++-- | The bucket\'s uniform bucket-level access configuration. The feature was formerly known as Bucket Policy Only. For backward compatibility, this field will be populated with identical information as the uniformBucketLevelAccess field. We recommend using the uniformBucketLevelAccess field to enable and disable the feature.+--+-- /See:/ 'newBucket_IamConfiguration_BucketPolicyOnlyPatch' smart constructor.+data Bucket_IamConfiguration_BucketPolicyOnlyPatch = Bucket_IamConfiguration_BucketPolicyOnlyPatch+  { -- | If set, access is controlled only by bucket-level or above IAM policies.+    enabled :: (Core.PatchField Core.Bool),+    -- | The deadline for changing iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC 3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed from true to false until the locked time, after which the field is immutable.+    lockedTime :: (Core.PatchField Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IamConfiguration_BucketPolicyOnlyPatch' with the minimum fields required to make a request.+newBucket_IamConfiguration_BucketPolicyOnlyPatch ::+  Bucket_IamConfiguration_BucketPolicyOnlyPatch+newBucket_IamConfiguration_BucketPolicyOnlyPatch =+  Bucket_IamConfiguration_BucketPolicyOnlyPatch+    { enabled =+        Core.Omit,+      lockedTime = Core.Omit+    }++instance+  Core.FromJSON+    Bucket_IamConfiguration_BucketPolicyOnlyPatch+  where+  parseJSON =+    Core.withObject+      "Bucket_IamConfiguration_BucketPolicyOnlyPatch"+      ( \o ->+          Bucket_IamConfiguration_BucketPolicyOnlyPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "enabled" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "lockedTime" o)+      )++instance Core.ToJSON Bucket_IamConfiguration_BucketPolicyOnlyPatch where+  toJSON Bucket_IamConfiguration_BucketPolicyOnlyPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "enabled" enabled,+            Core.patchField Core.toJSON "lockedTime" lockedTime+          ]+      )++-- | The bucket\'s uniform bucket-level access configuration.+--+-- /See:/ 'newBucket_IamConfiguration_UniformBucketLevelAccess' smart constructor.+data Bucket_IamConfiguration_UniformBucketLevelAccess = Bucket_IamConfiguration_UniformBucketLevelAccess+  { -- | If set, access is controlled only by bucket-level or above IAM policies.+    enabled :: (Core.Maybe Core.Bool),+    -- | The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.+    lockedTime :: (Core.Maybe Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IamConfiguration_UniformBucketLevelAccess' with the minimum fields required to make a request.+newBucket_IamConfiguration_UniformBucketLevelAccess ::+  Bucket_IamConfiguration_UniformBucketLevelAccess+newBucket_IamConfiguration_UniformBucketLevelAccess =+  Bucket_IamConfiguration_UniformBucketLevelAccess+    { enabled =+        Core.Nothing,+      lockedTime = Core.Nothing+    }++instance+  Core.FromJSON+    Bucket_IamConfiguration_UniformBucketLevelAccess+  where+  parseJSON =+    Core.withObject+      "Bucket_IamConfiguration_UniformBucketLevelAccess"+      ( \o ->+          Bucket_IamConfiguration_UniformBucketLevelAccess+            Core.<$> (o Core..:? "enabled")+            Core.<*> (o Core..:? "lockedTime")+      )++instance+  Core.ToJSON+    Bucket_IamConfiguration_UniformBucketLevelAccess+  where+  toJSON Bucket_IamConfiguration_UniformBucketLevelAccess {..} =+    Core.object+      ( Core.catMaybes+          [ ("enabled" Core..=) Core.<$> enabled,+            ("lockedTime" Core..=) Core.<$> lockedTime+          ]+      )++-- | The bucket\'s uniform bucket-level access configuration.+--+-- /See:/ 'newBucket_IamConfiguration_UniformBucketLevelAccessPatch' smart constructor.+data Bucket_IamConfiguration_UniformBucketLevelAccessPatch = Bucket_IamConfiguration_UniformBucketLevelAccessPatch+  { -- | If set, access is controlled only by bucket-level or above IAM policies.+    enabled :: (Core.PatchField Core.Bool),+    -- | The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.+    lockedTime :: (Core.PatchField Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IamConfiguration_UniformBucketLevelAccessPatch' with the minimum fields required to make a request.+newBucket_IamConfiguration_UniformBucketLevelAccessPatch ::+  Bucket_IamConfiguration_UniformBucketLevelAccessPatch+newBucket_IamConfiguration_UniformBucketLevelAccessPatch =+  Bucket_IamConfiguration_UniformBucketLevelAccessPatch+    { enabled =+        Core.Omit,+      lockedTime = Core.Omit+    }++instance+  Core.FromJSON+    Bucket_IamConfiguration_UniformBucketLevelAccessPatch+  where+  parseJSON =+    Core.withObject+      "Bucket_IamConfiguration_UniformBucketLevelAccessPatch"+      ( \o ->+          Bucket_IamConfiguration_UniformBucketLevelAccessPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "enabled" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "lockedTime" o)+      )++instance+  Core.ToJSON+    Bucket_IamConfiguration_UniformBucketLevelAccessPatch+  where+  toJSON Bucket_IamConfiguration_UniformBucketLevelAccessPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "enabled" enabled,+            Core.patchField Core.toJSON "lockedTime" lockedTime+          ]+      )++-- | The bucket\'s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to \'Enabled\'.+--+-- /See:/ 'newBucket_IpFilter' smart constructor.+data Bucket_IpFilter = Bucket_IpFilter+  { -- | Whether to allow all service agents to access the bucket regardless of the IP filter configuration.+    allowAllServiceAgentAccess :: (Core.Maybe Core.Bool),+    -- | Whether to allow cross-org VPCs in the bucket\'s IP filter configuration.+    allowCrossOrgVpcs :: (Core.Maybe Core.Bool),+    -- | The mode of the IP filter. Valid values are \'Enabled\' and \'Disabled\'.+    mode :: (Core.Maybe Core.Text),+    -- | The public network source of the bucket\'s IP filter.+    publicNetworkSource :: (Core.Maybe Bucket_IpFilter_PublicNetworkSource),+    -- | The list of <https://cloud.google.com/vpc/docs/vpc VPC network> sources of the bucket\'s IP filter.+    vpcNetworkSources :: (Core.Maybe [Bucket_IpFilter_VpcNetworkSourcesItem])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IpFilter' with the minimum fields required to make a request.+newBucket_IpFilter ::+  Bucket_IpFilter+newBucket_IpFilter =+  Bucket_IpFilter+    { allowAllServiceAgentAccess = Core.Nothing,+      allowCrossOrgVpcs = Core.Nothing,+      mode = Core.Nothing,+      publicNetworkSource = Core.Nothing,+      vpcNetworkSources = Core.Nothing+    }++instance Core.FromJSON Bucket_IpFilter where+  parseJSON =+    Core.withObject+      "Bucket_IpFilter"+      ( \o ->+          Bucket_IpFilter+            Core.<$> (o Core..:? "allowAllServiceAgentAccess")+            Core.<*> (o Core..:? "allowCrossOrgVpcs")+            Core.<*> (o Core..:? "mode")+            Core.<*> (o Core..:? "publicNetworkSource")+            Core.<*> (o Core..:? "vpcNetworkSources")+      )++instance Core.ToJSON Bucket_IpFilter where+  toJSON Bucket_IpFilter {..} =+    Core.object+      ( Core.catMaybes+          [ ("allowAllServiceAgentAccess" Core..=)+              Core.<$> allowAllServiceAgentAccess,+            ("allowCrossOrgVpcs" Core..=) Core.<$> allowCrossOrgVpcs,+            ("mode" Core..=) Core.<$> mode,+            ("publicNetworkSource" Core..=) Core.<$> publicNetworkSource,+            ("vpcNetworkSources" Core..=) Core.<$> vpcNetworkSources+          ]+      )++-- | The bucket\'s IP filter configuration. Specifies the network sources that are allowed to access the operations on the bucket, as well as its underlying objects. Only enforced when the mode is set to \'Enabled\'.+--+-- /See:/ 'newBucket_IpFilterPatch' smart constructor.+data Bucket_IpFilterPatch = Bucket_IpFilterPatch+  { -- | Whether to allow all service agents to access the bucket regardless of the IP filter configuration.+    allowAllServiceAgentAccess :: (Core.PatchField Core.Bool),+    -- | Whether to allow cross-org VPCs in the bucket\'s IP filter configuration.+    allowCrossOrgVpcs :: (Core.PatchField Core.Bool),+    -- | The mode of the IP filter. Valid values are \'Enabled\' and \'Disabled\'.+    mode :: (Core.PatchField Core.Text),+    -- | The public network source of the bucket\'s IP filter.+    publicNetworkSource :: (Core.PatchField Bucket_IpFilter_PublicNetworkSourcePatch),+    -- | The list of <https://cloud.google.com/vpc/docs/vpc VPC network> sources of the bucket\'s IP filter.+    vpcNetworkSources :: (Core.PatchField [Bucket_IpFilter_VpcNetworkSourcesItem])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IpFilterPatch' with the minimum fields required to make a request.+newBucket_IpFilterPatch ::+  Bucket_IpFilterPatch+newBucket_IpFilterPatch =+  Bucket_IpFilterPatch+    { allowAllServiceAgentAccess = Core.Omit,+      allowCrossOrgVpcs = Core.Omit,+      mode = Core.Omit,+      publicNetworkSource = Core.Omit,+      vpcNetworkSources = Core.Omit+    }++instance Core.FromJSON Bucket_IpFilterPatch where+  parseJSON =+    Core.withObject+      "Bucket_IpFilterPatch"+      ( \o ->+          Bucket_IpFilterPatch+            Core.<$> ( Core.parsePatchField+                         Core.parseJSON+                         "allowAllServiceAgentAccess"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "allowCrossOrgVpcs" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "mode" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "publicNetworkSource" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "vpcNetworkSources" o)+      )++instance Core.ToJSON Bucket_IpFilterPatch where+  toJSON Bucket_IpFilterPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField+              Core.toJSON+              "allowAllServiceAgentAccess"+              allowAllServiceAgentAccess,+            Core.patchField Core.toJSON "allowCrossOrgVpcs" allowCrossOrgVpcs,+            Core.patchField Core.toJSON "mode" mode,+            Core.patchField+              Core.toJSON+              "publicNetworkSource"+              publicNetworkSource,+            Core.patchField Core.toJSON "vpcNetworkSources" vpcNetworkSources+          ]+      )++-- | The public network source of the bucket\'s IP filter.+--+-- /See:/ 'newBucket_IpFilter_PublicNetworkSource' smart constructor.+newtype Bucket_IpFilter_PublicNetworkSource = Bucket_IpFilter_PublicNetworkSource+  { -- | The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.+    allowedIpCidrRanges :: (Core.Maybe [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IpFilter_PublicNetworkSource' with the minimum fields required to make a request.+newBucket_IpFilter_PublicNetworkSource ::+  Bucket_IpFilter_PublicNetworkSource+newBucket_IpFilter_PublicNetworkSource =+  Bucket_IpFilter_PublicNetworkSource+    { allowedIpCidrRanges =+        Core.Nothing+    }++instance Core.FromJSON Bucket_IpFilter_PublicNetworkSource where+  parseJSON =+    Core.withObject+      "Bucket_IpFilter_PublicNetworkSource"+      ( \o ->+          Bucket_IpFilter_PublicNetworkSource+            Core.<$> (o Core..:? "allowedIpCidrRanges")+      )++instance Core.ToJSON Bucket_IpFilter_PublicNetworkSource where+  toJSON Bucket_IpFilter_PublicNetworkSource {..} =+    Core.object+      ( Core.catMaybes+          [("allowedIpCidrRanges" Core..=) Core.<$> allowedIpCidrRanges]+      )++-- | The public network source of the bucket\'s IP filter.+--+-- /See:/ 'newBucket_IpFilter_PublicNetworkSourcePatch' smart constructor.+newtype Bucket_IpFilter_PublicNetworkSourcePatch = Bucket_IpFilter_PublicNetworkSourcePatch+  { -- | The list of public IPv4, IPv6 cidr ranges that are allowed to access the bucket.+    allowedIpCidrRanges :: (Core.PatchField [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IpFilter_PublicNetworkSourcePatch' with the minimum fields required to make a request.+newBucket_IpFilter_PublicNetworkSourcePatch ::+  Bucket_IpFilter_PublicNetworkSourcePatch+newBucket_IpFilter_PublicNetworkSourcePatch =+  Bucket_IpFilter_PublicNetworkSourcePatch+    { allowedIpCidrRanges =+        Core.Omit+    }++instance Core.FromJSON Bucket_IpFilter_PublicNetworkSourcePatch where+  parseJSON =+    Core.withObject+      "Bucket_IpFilter_PublicNetworkSourcePatch"+      ( \o ->+          Bucket_IpFilter_PublicNetworkSourcePatch+            Core.<$> (Core.parsePatchField Core.parseJSON "allowedIpCidrRanges" o)+      )++instance Core.ToJSON Bucket_IpFilter_PublicNetworkSourcePatch where+  toJSON Bucket_IpFilter_PublicNetworkSourcePatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField+              Core.toJSON+              "allowedIpCidrRanges"+              allowedIpCidrRanges+          ]+      )++--+-- /See:/ 'newBucket_IpFilter_VpcNetworkSourcesItem' smart constructor.+data Bucket_IpFilter_VpcNetworkSourcesItem = Bucket_IpFilter_VpcNetworkSourcesItem+  { -- | The list of IPv4, IPv6 cidr ranges subnetworks that are allowed to access the bucket.+    allowedIpCidrRanges :: (Core.Maybe [Core.Text]),+    -- | Name of the network. Format: projects\/{PROJECT/ID}\/global\/networks\/{NETWORK/NAME}+    network :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_IpFilter_VpcNetworkSourcesItem' with the minimum fields required to make a request.+newBucket_IpFilter_VpcNetworkSourcesItem ::+  Bucket_IpFilter_VpcNetworkSourcesItem+newBucket_IpFilter_VpcNetworkSourcesItem =+  Bucket_IpFilter_VpcNetworkSourcesItem+    { allowedIpCidrRanges =+        Core.Nothing,+      network = Core.Nothing+    }++instance Core.FromJSON Bucket_IpFilter_VpcNetworkSourcesItem where+  parseJSON =+    Core.withObject+      "Bucket_IpFilter_VpcNetworkSourcesItem"+      ( \o ->+          Bucket_IpFilter_VpcNetworkSourcesItem+            Core.<$> (o Core..:? "allowedIpCidrRanges")+            Core.<*> (o Core..:? "network")+      )++instance Core.ToJSON Bucket_IpFilter_VpcNetworkSourcesItem where+  toJSON Bucket_IpFilter_VpcNetworkSourcesItem {..} =+    Core.object+      ( Core.catMaybes+          [ ("allowedIpCidrRanges" Core..=) Core.<$> allowedIpCidrRanges,+            ("network" Core..=) Core.<$> network+          ]+      )++-- | User-provided labels, in key\/value pairs.+--+-- /See:/ 'newBucket_Labels' smart constructor.+newtype Bucket_Labels = Bucket_Labels+  { -- | An individual label entry.+    additional :: (Core.HashMap Core.Text Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Labels' with the minimum fields required to make a request.+newBucket_Labels ::+  -- |  An individual label entry. See 'additional'.+  Core.HashMap Core.Text Core.Text ->+  Bucket_Labels+newBucket_Labels additional =+  Bucket_Labels {additional = additional}++instance Core.FromJSON Bucket_Labels where+  parseJSON =+    Core.withObject+      "Bucket_Labels"+      (\o -> Bucket_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Bucket_Labels where+  toJSON Bucket_Labels {..} = Core.toJSON additional++-- | User-provided labels, in key\/value pairs.+--+-- /See:/ 'newBucket_LabelsPatch' smart constructor.+newtype Bucket_LabelsPatch = Bucket_LabelsPatch+  { -- | An individual label entry.+    additional :: (Core.HashMap Core.Text (Core.Maybe Core.Text))+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_LabelsPatch' with the minimum fields required to make a request.+newBucket_LabelsPatch ::+  -- |  An individual label entry. See 'additional'.+  Core.HashMap Core.Text (Core.Maybe Core.Text) ->+  Bucket_LabelsPatch+newBucket_LabelsPatch additional =+  Bucket_LabelsPatch {additional = additional}++instance Core.FromJSON Bucket_LabelsPatch where+  parseJSON =+    Core.withObject+      "Bucket_LabelsPatch"+      (\o -> Bucket_LabelsPatch Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Bucket_LabelsPatch where+  toJSON Bucket_LabelsPatch {..} = Core.toJSON additional++-- | The bucket\'s lifecycle configuration. See <https://cloud.google.com/storage/docs/lifecycle Lifecycle Management> for more information.+--+-- /See:/ 'newBucket_Lifecycle' smart constructor.+newtype Bucket_Lifecycle = Bucket_Lifecycle+  { -- | A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.+    rule :: (Core.Maybe [Bucket_Lifecycle_RuleItem])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Lifecycle' with the minimum fields required to make a request.+newBucket_Lifecycle ::+  Bucket_Lifecycle+newBucket_Lifecycle = Bucket_Lifecycle {rule = Core.Nothing}++instance Core.FromJSON Bucket_Lifecycle where+  parseJSON =+    Core.withObject+      "Bucket_Lifecycle"+      (\o -> Bucket_Lifecycle Core.<$> (o Core..:? "rule"))++instance Core.ToJSON Bucket_Lifecycle where+  toJSON Bucket_Lifecycle {..} =+    Core.object (Core.catMaybes [("rule" Core..=) Core.<$> rule])++-- | The bucket\'s lifecycle configuration. See <https://cloud.google.com/storage/docs/lifecycle Lifecycle Management> for more information.+--+-- /See:/ 'newBucket_LifecyclePatch' smart constructor.+newtype Bucket_LifecyclePatch = Bucket_LifecyclePatch+  { -- | A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.+    rule :: (Core.PatchField [Bucket_Lifecycle_RuleItem])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_LifecyclePatch' with the minimum fields required to make a request.+newBucket_LifecyclePatch ::+  Bucket_LifecyclePatch+newBucket_LifecyclePatch = Bucket_LifecyclePatch {rule = Core.Omit}++instance Core.FromJSON Bucket_LifecyclePatch where+  parseJSON =+    Core.withObject+      "Bucket_LifecyclePatch"+      ( \o ->+          Bucket_LifecyclePatch+            Core.<$> (Core.parsePatchField Core.parseJSON "rule" o)+      )++instance Core.ToJSON Bucket_LifecyclePatch where+  toJSON Bucket_LifecyclePatch {..} =+    Core.object+      (Core.catMaybes [Core.patchField Core.toJSON "rule" rule])++--+-- /See:/ 'newBucket_Lifecycle_RuleItem' smart constructor.+data Bucket_Lifecycle_RuleItem = Bucket_Lifecycle_RuleItem+  { -- | The action to take.+    action :: (Core.Maybe Bucket_Lifecycle_RuleItem_Action),+    -- | The condition(s) under which the action will be taken.+    condition :: (Core.Maybe Bucket_Lifecycle_RuleItem_Condition)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Lifecycle_RuleItem' with the minimum fields required to make a request.+newBucket_Lifecycle_RuleItem ::+  Bucket_Lifecycle_RuleItem+newBucket_Lifecycle_RuleItem =+  Bucket_Lifecycle_RuleItem+    { action = Core.Nothing,+      condition = Core.Nothing+    }++instance Core.FromJSON Bucket_Lifecycle_RuleItem where+  parseJSON =+    Core.withObject+      "Bucket_Lifecycle_RuleItem"+      ( \o ->+          Bucket_Lifecycle_RuleItem+            Core.<$> (o Core..:? "action")+            Core.<*> (o Core..:? "condition")+      )++instance Core.ToJSON Bucket_Lifecycle_RuleItem where+  toJSON Bucket_Lifecycle_RuleItem {..} =+    Core.object+      ( Core.catMaybes+          [ ("action" Core..=) Core.<$> action,+            ("condition" Core..=) Core.<$> condition+          ]+      )++-- | The action to take.+--+-- /See:/ 'newBucket_Lifecycle_RuleItem_Action' smart constructor.+data Bucket_Lifecycle_RuleItem_Action = Bucket_Lifecycle_RuleItem_Action+  { -- | Target storage class. Required iff the type of the action is SetStorageClass.+    storageClass :: (Core.Maybe Core.Text),+    -- | Type of the action. Currently, only Delete, SetStorageClass, and AbortIncompleteMultipartUpload are supported.+    type' :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Lifecycle_RuleItem_Action' with the minimum fields required to make a request.+newBucket_Lifecycle_RuleItem_Action ::+  Bucket_Lifecycle_RuleItem_Action+newBucket_Lifecycle_RuleItem_Action =+  Bucket_Lifecycle_RuleItem_Action+    { storageClass = Core.Nothing,+      type' = Core.Nothing+    }++instance Core.FromJSON Bucket_Lifecycle_RuleItem_Action where+  parseJSON =+    Core.withObject+      "Bucket_Lifecycle_RuleItem_Action"+      ( \o ->+          Bucket_Lifecycle_RuleItem_Action+            Core.<$> (o Core..:? "storageClass")+            Core.<*> (o Core..:? "type")+      )++instance Core.ToJSON Bucket_Lifecycle_RuleItem_Action where+  toJSON Bucket_Lifecycle_RuleItem_Action {..} =+    Core.object+      ( Core.catMaybes+          [ ("storageClass" Core..=) Core.<$> storageClass,+            ("type" Core..=) Core.<$> type'+          ]+      )++-- | The condition(s) under which the action will be taken.+--+-- /See:/ 'newBucket_Lifecycle_RuleItem_Condition' smart constructor.+data Bucket_Lifecycle_RuleItem_Condition = Bucket_Lifecycle_RuleItem_Condition+  { -- | Age of an object (in days). This condition is satisfied when an object reaches the specified age.+    age :: (Core.Maybe Core.Int32),+    -- | A date in RFC 3339 format with only the date part (for instance, \"2013-01-15\"). This condition is satisfied when an object is created before midnight of the specified date in UTC.+    createdBefore :: (Core.Maybe Core.Date),+    -- | A date in RFC 3339 format with only the date part (for instance, \"2013-01-15\"). This condition is satisfied when the custom time on an object is before this date in UTC.+    customTimeBefore :: (Core.Maybe Core.Date),+    -- | Number of days elapsed since the user-specified timestamp set on an object. The condition is satisfied if the days elapsed is at least this number. If no custom timestamp is specified on an object, the condition does not apply.+    daysSinceCustomTime :: (Core.Maybe Core.Int32),+    -- | Number of days elapsed since the noncurrent timestamp of an object. The condition is satisfied if the days elapsed is at least this number. This condition is relevant only for versioned objects. The value of the field must be a nonnegative integer. If it\'s zero, the object version will become eligible for Lifecycle action as soon as it becomes noncurrent.+    daysSinceNoncurrentTime :: (Core.Maybe Core.Int32),+    -- | Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.+    isLive :: (Core.Maybe Core.Bool),+    -- | A regular expression that satisfies the RE2 syntax. This condition is satisfied when the name of the object matches the RE2 pattern. Note: This feature is currently in the \"Early Access\" launch stage and is only available to a whitelisted set of users; that means that this feature may be changed in backward-incompatible ways and that it is not guaranteed to be released.+    matchesPattern :: (Core.Maybe Core.Text),+    -- | List of object name prefixes. This condition will be satisfied when at least one of the prefixes exactly matches the beginning of the object name.+    matchesPrefix :: (Core.Maybe [Core.Text]),+    -- | Objects having any of the storage classes specified by this condition will be matched. Values include MULTI/REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and DURABLE/REDUCED_AVAILABILITY.+    matchesStorageClass :: (Core.Maybe [Core.Text]),+    -- | List of object name suffixes. This condition will be satisfied when at least one of the suffixes exactly matches the end of the object name.+    matchesSuffix :: (Core.Maybe [Core.Text]),+    -- | A date in RFC 3339 format with only the date part (for instance, \"2013-01-15\"). This condition is satisfied when the noncurrent time on an object is before this date in UTC. This condition is relevant only for versioned objects.+    noncurrentTimeBefore :: (Core.Maybe Core.Date),+    -- | Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.+    numNewerVersions :: (Core.Maybe Core.Int32),+    -- | Objects having a size greater than this value in bytes will be matched.+    sizeAboveBytes :: (Core.Maybe Core.Int64),+    -- | Objects having a size less than this value in bytes will be matched.+    sizeBelowBytes :: (Core.Maybe Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Lifecycle_RuleItem_Condition' with the minimum fields required to make a request.+newBucket_Lifecycle_RuleItem_Condition ::+  Bucket_Lifecycle_RuleItem_Condition+newBucket_Lifecycle_RuleItem_Condition =+  Bucket_Lifecycle_RuleItem_Condition+    { age = Core.Nothing,+      createdBefore = Core.Nothing,+      customTimeBefore = Core.Nothing,+      daysSinceCustomTime = Core.Nothing,+      daysSinceNoncurrentTime = Core.Nothing,+      isLive = Core.Nothing,+      matchesPattern = Core.Nothing,+      matchesPrefix = Core.Nothing,+      matchesStorageClass = Core.Nothing,+      matchesSuffix = Core.Nothing,+      noncurrentTimeBefore = Core.Nothing,+      numNewerVersions = Core.Nothing,+      sizeAboveBytes = Core.Nothing,+      sizeBelowBytes = Core.Nothing+    }++instance Core.FromJSON Bucket_Lifecycle_RuleItem_Condition where+  parseJSON =+    Core.withObject+      "Bucket_Lifecycle_RuleItem_Condition"+      ( \o ->+          Bucket_Lifecycle_RuleItem_Condition+            Core.<$> (o Core..:? "age")+            Core.<*> (o Core..:? "createdBefore")+            Core.<*> (o Core..:? "customTimeBefore")+            Core.<*> (o Core..:? "daysSinceCustomTime")+            Core.<*> (o Core..:? "daysSinceNoncurrentTime")+            Core.<*> (o Core..:? "isLive")+            Core.<*> (o Core..:? "matchesPattern")+            Core.<*> (o Core..:? "matchesPrefix")+            Core.<*> (o Core..:? "matchesStorageClass")+            Core.<*> (o Core..:? "matchesSuffix")+            Core.<*> (o Core..:? "noncurrentTimeBefore")+            Core.<*> (o Core..:? "numNewerVersions")+            Core.<*> (o Core..:? "sizeAboveBytes" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "sizeBelowBytes" Core.<&> Core.fmap Core.fromAsText)+      )++instance Core.ToJSON Bucket_Lifecycle_RuleItem_Condition where+  toJSON Bucket_Lifecycle_RuleItem_Condition {..} =+    Core.object+      ( Core.catMaybes+          [ ("age" Core..=) Core.<$> age,+            ("createdBefore" Core..=) Core.<$> createdBefore,+            ("customTimeBefore" Core..=) Core.<$> customTimeBefore,+            ("daysSinceCustomTime" Core..=) Core.<$> daysSinceCustomTime,+            ("daysSinceNoncurrentTime" Core..=)+              Core.<$> daysSinceNoncurrentTime,+            ("isLive" Core..=) Core.<$> isLive,+            ("matchesPattern" Core..=) Core.<$> matchesPattern,+            ("matchesPrefix" Core..=) Core.<$> matchesPrefix,+            ("matchesStorageClass" Core..=) Core.<$> matchesStorageClass,+            ("matchesSuffix" Core..=) Core.<$> matchesSuffix,+            ("noncurrentTimeBefore" Core..=) Core.<$> noncurrentTimeBefore,+            ("numNewerVersions" Core..=) Core.<$> numNewerVersions,+            ("sizeAboveBytes" Core..=)+              Core.. Core.AsText+              Core.<$> sizeAboveBytes,+            ("sizeBelowBytes" Core..=)+              Core.. Core.AsText+              Core.<$> sizeBelowBytes+          ]+      )++-- | The bucket\'s logging configuration, which defines the destination bucket and optional name prefix for the current bucket\'s logs.+--+-- /See:/ 'newBucket_Logging' smart constructor.+data Bucket_Logging = Bucket_Logging+  { -- | The destination bucket where the current bucket\'s logs should be placed.+    logBucket :: (Core.Maybe Core.Text),+    -- | A prefix for log object names.+    logObjectPrefix :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Logging' with the minimum fields required to make a request.+newBucket_Logging ::+  Bucket_Logging+newBucket_Logging =+  Bucket_Logging+    { logBucket = Core.Nothing,+      logObjectPrefix = Core.Nothing+    }++instance Core.FromJSON Bucket_Logging where+  parseJSON =+    Core.withObject+      "Bucket_Logging"+      ( \o ->+          Bucket_Logging+            Core.<$> (o Core..:? "logBucket")+            Core.<*> (o Core..:? "logObjectPrefix")+      )++instance Core.ToJSON Bucket_Logging where+  toJSON Bucket_Logging {..} =+    Core.object+      ( Core.catMaybes+          [ ("logBucket" Core..=) Core.<$> logBucket,+            ("logObjectPrefix" Core..=) Core.<$> logObjectPrefix+          ]+      )++-- | The bucket\'s logging configuration, which defines the destination bucket and optional name prefix for the current bucket\'s logs.+--+-- /See:/ 'newBucket_LoggingPatch' smart constructor.+data Bucket_LoggingPatch = Bucket_LoggingPatch+  { -- | The destination bucket where the current bucket\'s logs should be placed.+    logBucket :: (Core.PatchField Core.Text),+    -- | A prefix for log object names.+    logObjectPrefix :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_LoggingPatch' with the minimum fields required to make a request.+newBucket_LoggingPatch ::+  Bucket_LoggingPatch+newBucket_LoggingPatch =+  Bucket_LoggingPatch+    { logBucket = Core.Omit,+      logObjectPrefix = Core.Omit+    }++instance Core.FromJSON Bucket_LoggingPatch where+  parseJSON =+    Core.withObject+      "Bucket_LoggingPatch"+      ( \o ->+          Bucket_LoggingPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "logBucket" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "logObjectPrefix" o)+      )++instance Core.ToJSON Bucket_LoggingPatch where+  toJSON Bucket_LoggingPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "logBucket" logBucket,+            Core.patchField Core.toJSON "logObjectPrefix" logObjectPrefix+          ]+      )++-- | The bucket\'s object retention config.+--+-- /See:/ 'newBucket_ObjectRetention' smart constructor.+newtype Bucket_ObjectRetention = Bucket_ObjectRetention+  { -- | The bucket\'s object retention mode. Can be Enabled.+    mode :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_ObjectRetention' with the minimum fields required to make a request.+newBucket_ObjectRetention ::+  Bucket_ObjectRetention+newBucket_ObjectRetention =+  Bucket_ObjectRetention {mode = Core.Nothing}++instance Core.FromJSON Bucket_ObjectRetention where+  parseJSON =+    Core.withObject+      "Bucket_ObjectRetention"+      (\o -> Bucket_ObjectRetention Core.<$> (o Core..:? "mode"))++instance Core.ToJSON Bucket_ObjectRetention where+  toJSON Bucket_ObjectRetention {..} =+    Core.object (Core.catMaybes [("mode" Core..=) Core.<$> mode])++-- | The bucket\'s object retention config.+--+-- /See:/ 'newBucket_ObjectRetentionPatch' smart constructor.+newtype Bucket_ObjectRetentionPatch = Bucket_ObjectRetentionPatch+  { -- | The bucket\'s object retention mode. Can be Enabled.+    mode :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_ObjectRetentionPatch' with the minimum fields required to make a request.+newBucket_ObjectRetentionPatch ::+  Bucket_ObjectRetentionPatch+newBucket_ObjectRetentionPatch =+  Bucket_ObjectRetentionPatch {mode = Core.Omit}++instance Core.FromJSON Bucket_ObjectRetentionPatch where+  parseJSON =+    Core.withObject+      "Bucket_ObjectRetentionPatch"+      ( \o ->+          Bucket_ObjectRetentionPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "mode" o)+      )++instance Core.ToJSON Bucket_ObjectRetentionPatch where+  toJSON Bucket_ObjectRetentionPatch {..} =+    Core.object+      (Core.catMaybes [Core.patchField Core.toJSON "mode" mode])++-- | The owner of the bucket. This is always the project team\'s owner group.+--+-- /See:/ 'newBucket_Owner' smart constructor.+data Bucket_Owner = Bucket_Owner+  { -- | The entity, in the form project-owner-projectId.+    entity :: (Core.Maybe Core.Text),+    -- | The ID for the entity.+    entityId :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Owner' with the minimum fields required to make a request.+newBucket_Owner ::+  Bucket_Owner+newBucket_Owner =+  Bucket_Owner {entity = Core.Nothing, entityId = Core.Nothing}++instance Core.FromJSON Bucket_Owner where+  parseJSON =+    Core.withObject+      "Bucket_Owner"+      ( \o ->+          Bucket_Owner+            Core.<$> (o Core..:? "entity")+            Core.<*> (o Core..:? "entityId")+      )++instance Core.ToJSON Bucket_Owner where+  toJSON Bucket_Owner {..} =+    Core.object+      ( Core.catMaybes+          [ ("entity" Core..=) Core.<$> entity,+            ("entityId" Core..=) Core.<$> entityId+          ]+      )++-- | The owner of the bucket. This is always the project team\'s owner group.+--+-- /See:/ 'newBucket_OwnerPatch' smart constructor.+data Bucket_OwnerPatch = Bucket_OwnerPatch+  { -- | The entity, in the form project-owner-projectId.+    entity :: (Core.PatchField Core.Text),+    -- | The ID for the entity.+    entityId :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_OwnerPatch' with the minimum fields required to make a request.+newBucket_OwnerPatch ::+  Bucket_OwnerPatch+newBucket_OwnerPatch =+  Bucket_OwnerPatch {entity = Core.Omit, entityId = Core.Omit}++instance Core.FromJSON Bucket_OwnerPatch where+  parseJSON =+    Core.withObject+      "Bucket_OwnerPatch"+      ( \o ->+          Bucket_OwnerPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "entity" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "entityId" o)+      )++instance Core.ToJSON Bucket_OwnerPatch where+  toJSON Bucket_OwnerPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "entity" entity,+            Core.patchField Core.toJSON "entityId" entityId+          ]+      )++-- | The bucket\'s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION/DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION/DENIED error.+--+-- /See:/ 'newBucket_RetentionPolicy' smart constructor.+data Bucket_RetentionPolicy = Bucket_RetentionPolicy+  { -- | Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.Maybe Core.DateTime),+    -- | Once locked, an object retention policy cannot be modified.+    isLocked :: (Core.Maybe Core.Bool),+    -- | The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.+    retentionPeriod :: (Core.Maybe Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_RetentionPolicy' with the minimum fields required to make a request.+newBucket_RetentionPolicy ::+  Bucket_RetentionPolicy+newBucket_RetentionPolicy =+  Bucket_RetentionPolicy+    { effectiveTime = Core.Nothing,+      isLocked = Core.Nothing,+      retentionPeriod = Core.Nothing+    }++instance Core.FromJSON Bucket_RetentionPolicy where+  parseJSON =+    Core.withObject+      "Bucket_RetentionPolicy"+      ( \o ->+          Bucket_RetentionPolicy+            Core.<$> (o Core..:? "effectiveTime")+            Core.<*> (o Core..:? "isLocked")+            Core.<*> (o Core..:? "retentionPeriod" Core.<&> Core.fmap Core.fromAsText)+      )++instance Core.ToJSON Bucket_RetentionPolicy where+  toJSON Bucket_RetentionPolicy {..} =+    Core.object+      ( Core.catMaybes+          [ ("effectiveTime" Core..=) Core.<$> effectiveTime,+            ("isLocked" Core..=) Core.<$> isLocked,+            ("retentionPeriod" Core..=)+              Core.. Core.AsText+              Core.<$> retentionPeriod+          ]+      )++-- | The bucket\'s retention policy. The retention policy enforces a minimum retention time for all objects contained in the bucket, based on their creation time. Any attempt to overwrite or delete objects younger than the retention period will result in a PERMISSION/DENIED error. An unlocked retention policy can be modified or removed from the bucket via a storage.buckets.update operation. A locked retention policy cannot be removed or shortened in duration for the lifetime of the bucket. Attempting to remove or decrease period of a locked retention policy will result in a PERMISSION/DENIED error.+--+-- /See:/ 'newBucket_RetentionPolicyPatch' smart constructor.+data Bucket_RetentionPolicyPatch = Bucket_RetentionPolicyPatch+  { -- | Server-determined value that indicates the time from which policy was enforced and effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.PatchField Core.DateTime),+    -- | Once locked, an object retention policy cannot be modified.+    isLocked :: (Core.PatchField Core.Bool),+    -- | The duration in seconds that objects need to be retained. Retention duration must be greater than zero and less than 100 years. Note that enforcement of retention periods less than a day is not guaranteed. Such periods should only be used for testing purposes.+    retentionPeriod :: (Core.PatchField Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_RetentionPolicyPatch' with the minimum fields required to make a request.+newBucket_RetentionPolicyPatch ::+  Bucket_RetentionPolicyPatch+newBucket_RetentionPolicyPatch =+  Bucket_RetentionPolicyPatch+    { effectiveTime = Core.Omit,+      isLocked = Core.Omit,+      retentionPeriod = Core.Omit+    }++instance Core.FromJSON Bucket_RetentionPolicyPatch where+  parseJSON =+    Core.withObject+      "Bucket_RetentionPolicyPatch"+      ( \o ->+          Bucket_RetentionPolicyPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "effectiveTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "isLocked" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "retentionPeriod"+                         o+                     )+      )++instance Core.ToJSON Bucket_RetentionPolicyPatch where+  toJSON Bucket_RetentionPolicyPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "effectiveTime" effectiveTime,+            Core.patchField Core.toJSON "isLocked" isLocked,+            Core.patchField+              (Core.toJSON Core.. Core.AsText)+              "retentionPeriod"+              retentionPeriod+          ]+      )++-- | The bucket\'s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.+--+-- /See:/ 'newBucket_SoftDeletePolicy' smart constructor.+data Bucket_SoftDeletePolicy = Bucket_SoftDeletePolicy+  { -- | Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.Maybe Core.DateTime),+    -- | The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.+    retentionDurationSeconds :: (Core.Maybe Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_SoftDeletePolicy' with the minimum fields required to make a request.+newBucket_SoftDeletePolicy ::+  Bucket_SoftDeletePolicy+newBucket_SoftDeletePolicy =+  Bucket_SoftDeletePolicy+    { effectiveTime = Core.Nothing,+      retentionDurationSeconds = Core.Nothing+    }++instance Core.FromJSON Bucket_SoftDeletePolicy where+  parseJSON =+    Core.withObject+      "Bucket_SoftDeletePolicy"+      ( \o ->+          Bucket_SoftDeletePolicy+            Core.<$> (o Core..:? "effectiveTime")+            Core.<*> ( o+                         Core..:? "retentionDurationSeconds"+                         Core.<&> Core.fmap Core.fromAsText+                     )+      )++instance Core.ToJSON Bucket_SoftDeletePolicy where+  toJSON Bucket_SoftDeletePolicy {..} =+    Core.object+      ( Core.catMaybes+          [ ("effectiveTime" Core..=) Core.<$> effectiveTime,+            ("retentionDurationSeconds" Core..=)+              Core.. Core.AsText+              Core.<$> retentionDurationSeconds+          ]+      )++-- | The bucket\'s soft delete policy, which defines the period of time that soft-deleted objects will be retained, and cannot be permanently deleted.+--+-- /See:/ 'newBucket_SoftDeletePolicyPatch' smart constructor.+data Bucket_SoftDeletePolicyPatch = Bucket_SoftDeletePolicyPatch+  { -- | Server-determined value that indicates the time from which the policy, or one with a greater retention, was effective. This value is in RFC 3339 format.+    effectiveTime :: (Core.PatchField Core.DateTime),+    -- | The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted.+    retentionDurationSeconds :: (Core.PatchField Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_SoftDeletePolicyPatch' with the minimum fields required to make a request.+newBucket_SoftDeletePolicyPatch ::+  Bucket_SoftDeletePolicyPatch+newBucket_SoftDeletePolicyPatch =+  Bucket_SoftDeletePolicyPatch+    { effectiveTime = Core.Omit,+      retentionDurationSeconds = Core.Omit+    }++instance Core.FromJSON Bucket_SoftDeletePolicyPatch where+  parseJSON =+    Core.withObject+      "Bucket_SoftDeletePolicyPatch"+      ( \o ->+          Bucket_SoftDeletePolicyPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "effectiveTime" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "retentionDurationSeconds"+                         o+                     )+      )++instance Core.ToJSON Bucket_SoftDeletePolicyPatch where+  toJSON Bucket_SoftDeletePolicyPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "effectiveTime" effectiveTime,+            Core.patchField+              (Core.toJSON Core.. Core.AsText)+              "retentionDurationSeconds"+              retentionDurationSeconds+          ]+      )++-- | The bucket\'s versioning configuration.+--+-- /See:/ 'newBucket_Versioning' smart constructor.+newtype Bucket_Versioning = Bucket_Versioning+  { -- | While set to true, versioning is fully enabled for this bucket.+    enabled :: (Core.Maybe Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Versioning' with the minimum fields required to make a request.+newBucket_Versioning ::+  Bucket_Versioning+newBucket_Versioning = Bucket_Versioning {enabled = Core.Nothing}++instance Core.FromJSON Bucket_Versioning where+  parseJSON =+    Core.withObject+      "Bucket_Versioning"+      (\o -> Bucket_Versioning Core.<$> (o Core..:? "enabled"))++instance Core.ToJSON Bucket_Versioning where+  toJSON Bucket_Versioning {..} =+    Core.object+      (Core.catMaybes [("enabled" Core..=) Core.<$> enabled])++-- | The bucket\'s versioning configuration.+--+-- /See:/ 'newBucket_VersioningPatch' smart constructor.+newtype Bucket_VersioningPatch = Bucket_VersioningPatch+  { -- | While set to true, versioning is fully enabled for this bucket.+    enabled :: (Core.PatchField Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_VersioningPatch' with the minimum fields required to make a request.+newBucket_VersioningPatch ::+  Bucket_VersioningPatch+newBucket_VersioningPatch =+  Bucket_VersioningPatch {enabled = Core.Omit}++instance Core.FromJSON Bucket_VersioningPatch where+  parseJSON =+    Core.withObject+      "Bucket_VersioningPatch"+      ( \o ->+          Bucket_VersioningPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "enabled" o)+      )++instance Core.ToJSON Bucket_VersioningPatch where+  toJSON Bucket_VersioningPatch {..} =+    Core.object+      (Core.catMaybes [Core.patchField Core.toJSON "enabled" enabled])++-- | The bucket\'s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the <https://cloud.google.com/storage/docs/static-website Static Website Examples> for more information.+--+-- /See:/ 'newBucket_Website' smart constructor.+data Bucket_Website = Bucket_Website+  { -- | If the requested object path is missing, the service will ensure the path has a trailing \'\/\', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.+    mainPageSuffix :: (Core.Maybe Core.Text),+    -- | If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.+    notFoundPage :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_Website' with the minimum fields required to make a request.+newBucket_Website ::+  Bucket_Website+newBucket_Website =+  Bucket_Website+    { mainPageSuffix = Core.Nothing,+      notFoundPage = Core.Nothing+    }++instance Core.FromJSON Bucket_Website where+  parseJSON =+    Core.withObject+      "Bucket_Website"+      ( \o ->+          Bucket_Website+            Core.<$> (o Core..:? "mainPageSuffix")+            Core.<*> (o Core..:? "notFoundPage")+      )++instance Core.ToJSON Bucket_Website where+  toJSON Bucket_Website {..} =+    Core.object+      ( Core.catMaybes+          [ ("mainPageSuffix" Core..=) Core.<$> mainPageSuffix,+            ("notFoundPage" Core..=) Core.<$> notFoundPage+          ]+      )++-- | The bucket\'s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the <https://cloud.google.com/storage/docs/static-website Static Website Examples> for more information.+--+-- /See:/ 'newBucket_WebsitePatch' smart constructor.+data Bucket_WebsitePatch = Bucket_WebsitePatch+  { -- | If the requested object path is missing, the service will ensure the path has a trailing \'\/\', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.+    mainPageSuffix :: (Core.PatchField Core.Text),+    -- | If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.+    notFoundPage :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Bucket_WebsitePatch' with the minimum fields required to make a request.+newBucket_WebsitePatch ::+  Bucket_WebsitePatch+newBucket_WebsitePatch =+  Bucket_WebsitePatch+    { mainPageSuffix = Core.Omit,+      notFoundPage = Core.Omit+    }++instance Core.FromJSON Bucket_WebsitePatch where+  parseJSON =+    Core.withObject+      "Bucket_WebsitePatch"+      ( \o ->+          Bucket_WebsitePatch+            Core.<$> (Core.parsePatchField Core.parseJSON "mainPageSuffix" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "notFoundPage" o)+      )++instance Core.ToJSON Bucket_WebsitePatch where+  toJSON Bucket_WebsitePatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "mainPageSuffix" mainPageSuffix,+            Core.patchField Core.toJSON "notFoundPage" notFoundPage+          ]+      )++-- | An access-control entry.+--+-- /See:/ 'newBucketAccessControl' smart constructor.+data BucketAccessControl = BucketAccessControl+  { -- | The name of the bucket.+    bucket :: (Core.Maybe Core.Text),+    -- | The domain associated with the entity, if any.+    domain :: (Core.Maybe Core.Text),+    -- | The email address associated with the entity, if any.+    email :: (Core.Maybe Core.Text),+    -- | The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz\@example.com would be user-liz\@example.com. - The group example\@googlegroups.com would be group-example\@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.+    entity :: (Core.Maybe Core.Text),+    -- | The ID for the entity, if any.+    entityId :: (Core.Maybe Core.Text),+    -- | HTTP 1.1 Entity tag for the access-control entry.+    etag :: (Core.Maybe Core.Text),+    -- | The ID of the access-control entry.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.+    kind :: Core.Text,+    -- | The project team associated with the entity, if any.+    projectTeam :: (Core.Maybe BucketAccessControl_ProjectTeam),+    -- | The access permission for the entity.+    role' :: (Core.Maybe Core.Text),+    -- | The link to this access-control entry.+    selfLink :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketAccessControl' with the minimum fields required to make a request.+newBucketAccessControl ::+  BucketAccessControl+newBucketAccessControl =+  BucketAccessControl+    { bucket = Core.Nothing,+      domain = Core.Nothing,+      email = Core.Nothing,+      entity = Core.Nothing,+      entityId = Core.Nothing,+      etag = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#bucketAccessControl",+      projectTeam = Core.Nothing,+      role' = Core.Nothing,+      selfLink = Core.Nothing+    }++instance Core.FromJSON BucketAccessControl where+  parseJSON =+    Core.withObject+      "BucketAccessControl"+      ( \o ->+          BucketAccessControl+            Core.<$> (o Core..:? "bucket")+            Core.<*> (o Core..:? "domain")+            Core.<*> (o Core..:? "email")+            Core.<*> (o Core..:? "entity")+            Core.<*> (o Core..:? "entityId")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#bucketAccessControl")+            Core.<*> (o Core..:? "projectTeam")+            Core.<*> (o Core..:? "role")+            Core.<*> (o Core..:? "selfLink")+      )++instance Core.ToJSON BucketAccessControl where+  toJSON BucketAccessControl {..} =+    Core.object+      ( Core.catMaybes+          [ ("bucket" Core..=) Core.<$> bucket,+            ("domain" Core..=) Core.<$> domain,+            ("email" Core..=) Core.<$> email,+            ("entity" Core..=) Core.<$> entity,+            ("entityId" Core..=) Core.<$> entityId,+            ("etag" Core..=) Core.<$> etag,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("projectTeam" Core..=) Core.<$> projectTeam,+            ("role" Core..=) Core.<$> role',+            ("selfLink" Core..=) Core.<$> selfLink+          ]+      )++-- | An access-control entry.+--+-- /See:/ 'newBucketAccessControlInsertInput' smart constructor.+data BucketAccessControlInsertInput = BucketAccessControlInsertInput+  { -- | The name of the bucket.+    bucket :: (Core.Maybe Core.Text),+    -- | The domain associated with the entity, if any.+    domain :: (Core.Maybe Core.Text),+    -- | The email address associated with the entity, if any.+    email :: (Core.Maybe Core.Text),+    -- | The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz\@example.com would be user-liz\@example.com. - The group example\@googlegroups.com would be group-example\@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.+    entity :: Core.Text,+    -- | The ID for the entity, if any.+    entityId :: (Core.Maybe Core.Text),+    -- | HTTP 1.1 Entity tag for the access-control entry.+    etag :: (Core.Maybe Core.Text),+    -- | The ID of the access-control entry.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.+    kind :: Core.Text,+    -- | The project team associated with the entity, if any.+    projectTeam :: (Core.Maybe BucketAccessControl_ProjectTeam),+    -- | The access permission for the entity.+    role' :: Core.Text,+    -- | The link to this access-control entry.+    selfLink :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketAccessControlInsertInput' with the minimum fields required to make a request.+newBucketAccessControlInsertInput ::+  -- |  The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz\@example.com would be user-liz\@example.com. - The group example\@googlegroups.com would be group-example\@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com. See 'entity'.+  Core.Text ->+  -- |  The access permission for the entity. See 'role''.+  Core.Text ->+  BucketAccessControlInsertInput+newBucketAccessControlInsertInput entity role' =+  BucketAccessControlInsertInput+    { bucket = Core.Nothing,+      domain = Core.Nothing,+      email = Core.Nothing,+      entity = entity,+      entityId = Core.Nothing,+      etag = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#bucketAccessControl",+      projectTeam = Core.Nothing,+      role' = role',+      selfLink = Core.Nothing+    }++instance Core.FromJSON BucketAccessControlInsertInput where+  parseJSON =+    Core.withObject+      "BucketAccessControlInsertInput"+      ( \o ->+          BucketAccessControlInsertInput+            Core.<$> (o Core..:? "bucket")+            Core.<*> (o Core..:? "domain")+            Core.<*> (o Core..:? "email")+            Core.<*> (o Core..: "entity")+            Core.<*> (o Core..:? "entityId")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#bucketAccessControl")+            Core.<*> (o Core..:? "projectTeam")+            Core.<*> (o Core..: "role")+            Core.<*> (o Core..:? "selfLink")+      )++instance Core.ToJSON BucketAccessControlInsertInput where+  toJSON BucketAccessControlInsertInput {..} =+    Core.object+      ( Core.catMaybes+          [ ("bucket" Core..=) Core.<$> bucket,+            ("domain" Core..=) Core.<$> domain,+            ("email" Core..=) Core.<$> email,+            Core.Just ("entity" Core..= entity),+            ("entityId" Core..=) Core.<$> entityId,+            ("etag" Core..=) Core.<$> etag,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("projectTeam" Core..=) Core.<$> projectTeam,+            Core.Just ("role" Core..= role'),+            ("selfLink" Core..=) Core.<$> selfLink+          ]+      )++-- | An access-control entry.+--+-- /See:/ 'newBucketAccessControlPatch' smart constructor.+data BucketAccessControlPatch = BucketAccessControlPatch+  { -- | The name of the bucket.+    bucket :: (Core.PatchField Core.Text),+    -- | The domain associated with the entity, if any.+    domain :: (Core.PatchField Core.Text),+    -- | The email address associated with the entity, if any.+    email :: (Core.PatchField Core.Text),+    -- | The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz\@example.com would be user-liz\@example.com. - The group example\@googlegroups.com would be group-example\@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.+    entity :: (Core.PatchField Core.Text),+    -- | The ID for the entity, if any.+    entityId :: (Core.PatchField Core.Text),+    -- | HTTP 1.1 Entity tag for the access-control entry.+    etag :: (Core.PatchField Core.Text),+    -- | The ID of the access-control entry.+    id :: (Core.PatchField Core.Text),+    -- | The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.+    kind :: (Core.PatchField Core.Text),+    -- | The project team associated with the entity, if any.+    projectTeam :: (Core.PatchField BucketAccessControl_ProjectTeamPatch),+    -- | The access permission for the entity.+    role' :: (Core.PatchField Core.Text),+    -- | The link to this access-control entry.+    selfLink :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketAccessControlPatch' with the minimum fields required to make a request.+newBucketAccessControlPatch ::+  BucketAccessControlPatch+newBucketAccessControlPatch =+  BucketAccessControlPatch+    { bucket = Core.Omit,+      domain = Core.Omit,+      email = Core.Omit,+      entity = Core.Omit,+      entityId = Core.Omit,+      etag = Core.Omit,+      id = Core.Omit,+      kind = Core.Omit,+      projectTeam = Core.Omit,+      role' = Core.Omit,+      selfLink = Core.Omit+    }++instance Core.FromJSON BucketAccessControlPatch where+  parseJSON =+    Core.withObject+      "BucketAccessControlPatch"+      ( \o ->+          BucketAccessControlPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "bucket" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "domain" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "email" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "entity" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "entityId" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "etag" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "id" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "kind" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "projectTeam" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "role" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "selfLink" o)+      )++instance Core.ToJSON BucketAccessControlPatch where+  toJSON BucketAccessControlPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "bucket" bucket,+            Core.patchField Core.toJSON "domain" domain,+            Core.patchField Core.toJSON "email" email,+            Core.patchField Core.toJSON "entity" entity,+            Core.patchField Core.toJSON "entityId" entityId,+            Core.patchField Core.toJSON "etag" etag,+            Core.patchField Core.toJSON "id" id,+            Core.patchField Core.toJSON "kind" kind,+            Core.patchField Core.toJSON "projectTeam" projectTeam,+            Core.patchField Core.toJSON "role" role',+            Core.patchField Core.toJSON "selfLink" selfLink+          ]+      )++-- | The project team associated with the entity, if any.+--+-- /See:/ 'newBucketAccessControl_ProjectTeam' smart constructor.+data BucketAccessControl_ProjectTeam = BucketAccessControl_ProjectTeam+  { -- | The project number.+    projectNumber :: (Core.Maybe Core.Text),+    -- | The team.+    team :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketAccessControl_ProjectTeam' with the minimum fields required to make a request.+newBucketAccessControl_ProjectTeam ::+  BucketAccessControl_ProjectTeam+newBucketAccessControl_ProjectTeam =+  BucketAccessControl_ProjectTeam+    { projectNumber = Core.Nothing,+      team = Core.Nothing+    }++instance Core.FromJSON BucketAccessControl_ProjectTeam where+  parseJSON =+    Core.withObject+      "BucketAccessControl_ProjectTeam"+      ( \o ->+          BucketAccessControl_ProjectTeam+            Core.<$> (o Core..:? "projectNumber")+            Core.<*> (o Core..:? "team")+      )++instance Core.ToJSON BucketAccessControl_ProjectTeam where+  toJSON BucketAccessControl_ProjectTeam {..} =+    Core.object+      ( Core.catMaybes+          [ ("projectNumber" Core..=) Core.<$> projectNumber,+            ("team" Core..=) Core.<$> team+          ]+      )++-- | The project team associated with the entity, if any.+--+-- /See:/ 'newBucketAccessControl_ProjectTeamPatch' smart constructor.+data BucketAccessControl_ProjectTeamPatch = BucketAccessControl_ProjectTeamPatch+  { -- | The project number.+    projectNumber :: (Core.PatchField Core.Text),+    -- | The team.+    team :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketAccessControl_ProjectTeamPatch' with the minimum fields required to make a request.+newBucketAccessControl_ProjectTeamPatch ::+  BucketAccessControl_ProjectTeamPatch+newBucketAccessControl_ProjectTeamPatch =+  BucketAccessControl_ProjectTeamPatch+    { projectNumber = Core.Omit,+      team = Core.Omit+    }++instance Core.FromJSON BucketAccessControl_ProjectTeamPatch where+  parseJSON =+    Core.withObject+      "BucketAccessControl_ProjectTeamPatch"+      ( \o ->+          BucketAccessControl_ProjectTeamPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "projectNumber" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "team" o)+      )++instance Core.ToJSON BucketAccessControl_ProjectTeamPatch where+  toJSON BucketAccessControl_ProjectTeamPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "projectNumber" projectNumber,+            Core.patchField Core.toJSON "team" team+          ]+      )++-- | An access-control list.+--+-- /See:/ 'newBucketAccessControls' smart constructor.+data BucketAccessControls = BucketAccessControls+  { -- | The list of items.+    items :: (Core.Maybe [BucketAccessControl]),+    -- | The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls.+    kind :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketAccessControls' with the minimum fields required to make a request.+newBucketAccessControls ::+  BucketAccessControls+newBucketAccessControls =+  BucketAccessControls+    { items = Core.Nothing,+      kind = "storage#bucketAccessControls"+    }++instance Core.FromJSON BucketAccessControls where+  parseJSON =+    Core.withObject+      "BucketAccessControls"+      ( \o ->+          BucketAccessControls+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#bucketAccessControls")+      )++instance Core.ToJSON BucketAccessControls where+  toJSON BucketAccessControls {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind)+          ]+      )++-- | The storage layout configuration of a bucket.+--+-- /See:/ 'newBucketStorageLayout' smart constructor.+data BucketStorageLayout = BucketStorageLayout+  { -- | The name of the bucket.+    bucket :: (Core.Maybe Core.Text),+    -- | The bucket\'s custom placement configuration for Custom Dual Regions.+    customPlacementConfig :: (Core.Maybe BucketStorageLayout_CustomPlacementConfig),+    -- | The bucket\'s hierarchical namespace configuration.+    hierarchicalNamespace :: (Core.Maybe BucketStorageLayout_HierarchicalNamespace),+    -- | The kind of item this is. For storage layout, this is always storage#storageLayout.+    kind :: Core.Text,+    -- | The location of the bucket.+    location :: (Core.Maybe Core.Text),+    -- | The type of the bucket location.+    locationType :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketStorageLayout' with the minimum fields required to make a request.+newBucketStorageLayout ::+  BucketStorageLayout+newBucketStorageLayout =+  BucketStorageLayout+    { bucket = Core.Nothing,+      customPlacementConfig = Core.Nothing,+      hierarchicalNamespace = Core.Nothing,+      kind = "storage#storageLayout",+      location = Core.Nothing,+      locationType = Core.Nothing+    }++instance Core.FromJSON BucketStorageLayout where+  parseJSON =+    Core.withObject+      "BucketStorageLayout"+      ( \o ->+          BucketStorageLayout+            Core.<$> (o Core..:? "bucket")+            Core.<*> (o Core..:? "customPlacementConfig")+            Core.<*> (o Core..:? "hierarchicalNamespace")+            Core.<*> (o Core..:? "kind" Core..!= "storage#storageLayout")+            Core.<*> (o Core..:? "location")+            Core.<*> (o Core..:? "locationType")+      )++instance Core.ToJSON BucketStorageLayout where+  toJSON BucketStorageLayout {..} =+    Core.object+      ( Core.catMaybes+          [ ("bucket" Core..=) Core.<$> bucket,+            ("customPlacementConfig" Core..=) Core.<$> customPlacementConfig,+            ("hierarchicalNamespace" Core..=) Core.<$> hierarchicalNamespace,+            Core.Just ("kind" Core..= kind),+            ("location" Core..=) Core.<$> location,+            ("locationType" Core..=) Core.<$> locationType+          ]+      )++-- | The bucket\'s custom placement configuration for Custom Dual Regions.+--+-- /See:/ 'newBucketStorageLayout_CustomPlacementConfig' smart constructor.+newtype BucketStorageLayout_CustomPlacementConfig = BucketStorageLayout_CustomPlacementConfig+  { -- | The list of regional locations in which data is placed.+    dataLocations :: (Core.Maybe [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketStorageLayout_CustomPlacementConfig' with the minimum fields required to make a request.+newBucketStorageLayout_CustomPlacementConfig ::+  BucketStorageLayout_CustomPlacementConfig+newBucketStorageLayout_CustomPlacementConfig =+  BucketStorageLayout_CustomPlacementConfig+    { dataLocations =+        Core.Nothing+    }++instance Core.FromJSON BucketStorageLayout_CustomPlacementConfig where+  parseJSON =+    Core.withObject+      "BucketStorageLayout_CustomPlacementConfig"+      ( \o ->+          BucketStorageLayout_CustomPlacementConfig+            Core.<$> (o Core..:? "dataLocations")+      )++instance Core.ToJSON BucketStorageLayout_CustomPlacementConfig where+  toJSON BucketStorageLayout_CustomPlacementConfig {..} =+    Core.object+      (Core.catMaybes [("dataLocations" Core..=) Core.<$> dataLocations])++-- | The bucket\'s hierarchical namespace configuration.+--+-- /See:/ 'newBucketStorageLayout_HierarchicalNamespace' smart constructor.+newtype BucketStorageLayout_HierarchicalNamespace = BucketStorageLayout_HierarchicalNamespace+  { -- | When set to true, hierarchical namespace is enabled for this bucket.+    enabled :: (Core.Maybe Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BucketStorageLayout_HierarchicalNamespace' with the minimum fields required to make a request.+newBucketStorageLayout_HierarchicalNamespace ::+  BucketStorageLayout_HierarchicalNamespace+newBucketStorageLayout_HierarchicalNamespace =+  BucketStorageLayout_HierarchicalNamespace {enabled = Core.Nothing}++instance Core.FromJSON BucketStorageLayout_HierarchicalNamespace where+  parseJSON =+    Core.withObject+      "BucketStorageLayout_HierarchicalNamespace"+      ( \o ->+          BucketStorageLayout_HierarchicalNamespace+            Core.<$> (o Core..:? "enabled")+      )++instance Core.ToJSON BucketStorageLayout_HierarchicalNamespace where+  toJSON BucketStorageLayout_HierarchicalNamespace {..} =+    Core.object+      (Core.catMaybes [("enabled" Core..=) Core.<$> enabled])++-- | A list of buckets.+--+-- /See:/ 'newBuckets' smart constructor.+data Buckets = Buckets+  { -- | The list of items.+    items :: (Core.Maybe [Bucket]),+    -- | The kind of item this is. For lists of buckets, this is always storage#buckets.+    kind :: Core.Text,+    -- | The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.+    nextPageToken :: (Core.Maybe Core.Text),+    -- | The list of bucket resource names that could not be reached during the listing operation.+    unreachable :: (Core.Maybe [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Buckets' with the minimum fields required to make a request.+newBuckets ::+  Buckets+newBuckets =+  Buckets+    { items = Core.Nothing,+      kind = "storage#buckets",+      nextPageToken = Core.Nothing,+      unreachable = Core.Nothing+    }++instance Core.FromJSON Buckets where+  parseJSON =+    Core.withObject+      "Buckets"+      ( \o ->+          Buckets+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#buckets")+            Core.<*> (o Core..:? "nextPageToken")+            Core.<*> (o Core..:? "unreachable")+      )++instance Core.ToJSON Buckets where+  toJSON Buckets {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind),+            ("nextPageToken" Core..=) Core.<$> nextPageToken,+            ("unreachable" Core..=) Core.<$> unreachable+          ]+      )++-- | A bulk restore objects request.+--+-- /See:/ 'newBulkRestoreObjectsRequest' smart constructor.+data BulkRestoreObjectsRequest = BulkRestoreObjectsRequest+  { -- | If false (default), the restore will not overwrite live objects with the same name at the destination. This means some deleted objects may be skipped. If true, live objects will be overwritten resulting in a noncurrent object (if versioning is enabled). If versioning is not enabled, overwriting the object will result in a soft-deleted object. In either case, if a noncurrent object already exists with the same name, a live version can be written without issue.+    allowOverwrite :: (Core.Maybe Core.Bool),+    -- | If true, copies the source object\'s ACL; otherwise, uses the bucket\'s default object ACL. The default is false.+    copySourceAcl :: (Core.Maybe Core.Bool),+    -- | Restores only the objects that were created after this time.+    createdAfterTime :: (Core.Maybe Core.DateTime),+    -- | Restores only the objects that were created before this time.+    createdBeforeTime :: (Core.Maybe Core.DateTime),+    -- | Restores only the objects matching any of the specified glob(s). If this parameter is not specified, all objects will be restored within the specified time range.+    matchGlobs :: (Core.Maybe [Core.Text]),+    -- | Restores only the objects that were soft-deleted after this time.+    softDeletedAfterTime :: (Core.Maybe Core.DateTime),+    -- | Restores only the objects that were soft-deleted before this time.+    softDeletedBeforeTime :: (Core.Maybe Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BulkRestoreObjectsRequest' with the minimum fields required to make a request.+newBulkRestoreObjectsRequest ::+  BulkRestoreObjectsRequest+newBulkRestoreObjectsRequest =+  BulkRestoreObjectsRequest+    { allowOverwrite = Core.Nothing,+      copySourceAcl = Core.Nothing,+      createdAfterTime = Core.Nothing,+      createdBeforeTime = Core.Nothing,+      matchGlobs = Core.Nothing,+      softDeletedAfterTime = Core.Nothing,+      softDeletedBeforeTime = Core.Nothing+    }++instance Core.FromJSON BulkRestoreObjectsRequest where+  parseJSON =+    Core.withObject+      "BulkRestoreObjectsRequest"+      ( \o ->+          BulkRestoreObjectsRequest+            Core.<$> (o Core..:? "allowOverwrite")+            Core.<*> (o Core..:? "copySourceAcl")+            Core.<*> (o Core..:? "createdAfterTime")+            Core.<*> (o Core..:? "createdBeforeTime")+            Core.<*> (o Core..:? "matchGlobs")+            Core.<*> (o Core..:? "softDeletedAfterTime")+            Core.<*> (o Core..:? "softDeletedBeforeTime")+      )++instance Core.ToJSON BulkRestoreObjectsRequest where+  toJSON BulkRestoreObjectsRequest {..} =+    Core.object+      ( Core.catMaybes+          [ ("allowOverwrite" Core..=) Core.<$> allowOverwrite,+            ("copySourceAcl" Core..=) Core.<$> copySourceAcl,+            ("createdAfterTime" Core..=) Core.<$> createdAfterTime,+            ("createdBeforeTime" Core..=) Core.<$> createdBeforeTime,+            ("matchGlobs" Core..=) Core.<$> matchGlobs,+            ("softDeletedAfterTime" Core..=) Core.<$> softDeletedAfterTime,+            ("softDeletedBeforeTime" Core..=) Core.<$> softDeletedBeforeTime+          ]+      )++-- | An notification channel used to watch for resource changes.+--+-- /See:/ 'newChannel' smart constructor.+data Channel = Channel+  { -- | The address where notifications are delivered for this channel.+    address :: (Core.Maybe Core.Text),+    -- | Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.+    expiration :: (Core.Maybe Core.Int64),+    -- | A UUID or similar unique string that identifies this channel.+    id :: (Core.Maybe Core.Text),+    -- | Identifies this as a notification channel used to watch for changes to a resource, which is \"api#channel\".+    kind :: Core.Text,+    -- | Additional parameters controlling delivery channel behavior. Optional.+    params :: (Core.Maybe Channel_Params),+    -- | A Boolean value to indicate whether payload is wanted. Optional.+    payload :: (Core.Maybe Core.Bool),+    -- | An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.+    resourceId :: (Core.Maybe Core.Text),+    -- | A version-specific identifier for the watched resource.+    resourceUri :: (Core.Maybe Core.Text),+    -- | An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.+    token :: (Core.Maybe Core.Text),+    -- | The type of delivery mechanism used for this channel.+    type' :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Channel' with the minimum fields required to make a request.+newChannel ::+  Channel+newChannel =+  Channel+    { address = Core.Nothing,+      expiration = Core.Nothing,+      id = Core.Nothing,+      kind = "api#channel",+      params = Core.Nothing,+      payload = Core.Nothing,+      resourceId = Core.Nothing,+      resourceUri = Core.Nothing,+      token = Core.Nothing,+      type' = Core.Nothing+    }++instance Core.FromJSON Channel where+  parseJSON =+    Core.withObject+      "Channel"+      ( \o ->+          Channel+            Core.<$> (o Core..:? "address")+            Core.<*> (o Core..:? "expiration" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "api#channel")+            Core.<*> (o Core..:? "params")+            Core.<*> (o Core..:? "payload")+            Core.<*> (o Core..:? "resourceId")+            Core.<*> (o Core..:? "resourceUri")+            Core.<*> (o Core..:? "token")+            Core.<*> (o Core..:? "type")+      )++instance Core.ToJSON Channel where+  toJSON Channel {..} =+    Core.object+      ( Core.catMaybes+          [ ("address" Core..=) Core.<$> address,+            ("expiration" Core..=) Core.. Core.AsText Core.<$> expiration,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("params" Core..=) Core.<$> params,+            ("payload" Core..=) Core.<$> payload,+            ("resourceId" Core..=) Core.<$> resourceId,+            ("resourceUri" Core..=) Core.<$> resourceUri,+            ("token" Core..=) Core.<$> token,+            ("type" Core..=) Core.<$> type'+          ]+      )++-- | Additional parameters controlling delivery channel behavior. Optional.+--+-- /See:/ 'newChannel_Params' smart constructor.+newtype Channel_Params = Channel_Params+  { -- | Declares a new parameter by name.+    additional :: (Core.HashMap Core.Text Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Channel_Params' with the minimum fields required to make a request.+newChannel_Params ::+  -- |  Declares a new parameter by name. See 'additional'.+  Core.HashMap Core.Text Core.Text ->+  Channel_Params+newChannel_Params additional =+  Channel_Params {additional = additional}++instance Core.FromJSON Channel_Params where+  parseJSON =+    Core.withObject+      "Channel_Params"+      (\o -> Channel_Params Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Channel_Params where+  toJSON Channel_Params {..} = Core.toJSON additional++-- | A Compose request.+--+-- /See:/ 'newComposeRequest' smart constructor.+data ComposeRequest = ComposeRequest+  { -- | If true, the source objects will be deleted.+    deleteSourceObjects :: (Core.Maybe Core.Bool),+    -- | Properties of the resulting object.+    destination :: (Core.Maybe Object),+    -- | The kind of item this is.+    kind :: Core.Text,+    -- | The list of source objects that will be concatenated into a single object.+    sourceObjects :: (Core.Maybe [ComposeRequest_SourceObjectsItem])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ComposeRequest' with the minimum fields required to make a request.+newComposeRequest ::+  ComposeRequest+newComposeRequest =+  ComposeRequest+    { deleteSourceObjects = Core.Nothing,+      destination = Core.Nothing,+      kind = "storage#composeRequest",+      sourceObjects = Core.Nothing+    }++instance Core.FromJSON ComposeRequest where+  parseJSON =+    Core.withObject+      "ComposeRequest"+      ( \o ->+          ComposeRequest+            Core.<$> (o Core..:? "deleteSourceObjects")+            Core.<*> (o Core..:? "destination")+            Core.<*> (o Core..:? "kind" Core..!= "storage#composeRequest")+            Core.<*> (o Core..:? "sourceObjects")+      )++instance Core.ToJSON ComposeRequest where+  toJSON ComposeRequest {..} =+    Core.object+      ( Core.catMaybes+          [ ("deleteSourceObjects" Core..=) Core.<$> deleteSourceObjects,+            ("destination" Core..=) Core.<$> destination,+            Core.Just ("kind" Core..= kind),+            ("sourceObjects" Core..=) Core.<$> sourceObjects+          ]+      )++-- | A Compose request.+--+-- /See:/ 'newComposeRequestInput' smart constructor.+data ComposeRequestInput = ComposeRequestInput+  { -- | If true, the source objects will be deleted.+    deleteSourceObjects :: (Core.Maybe Core.Bool),+    -- | Properties of the resulting object.+    destination :: (Core.Maybe Object),+    -- | The kind of item this is.+    kind :: Core.Text,+    -- | The list of source objects that will be concatenated into a single object.+    sourceObjects :: (Core.NonEmpty ComposeRequest_SourceObjectsItemInput)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ComposeRequestInput' with the minimum fields required to make a request.+newComposeRequestInput ::+  -- |  The list of source objects that will be concatenated into a single object. See 'sourceObjects'.+  Core.NonEmpty ComposeRequest_SourceObjectsItemInput ->+  ComposeRequestInput+newComposeRequestInput sourceObjects =+  ComposeRequestInput+    { deleteSourceObjects = Core.Nothing,+      destination = Core.Nothing,+      kind = "storage#composeRequest",+      sourceObjects = sourceObjects+    }++instance Core.FromJSON ComposeRequestInput where+  parseJSON =+    Core.withObject+      "ComposeRequestInput"+      ( \o ->+          ComposeRequestInput+            Core.<$> (o Core..:? "deleteSourceObjects")+            Core.<*> (o Core..:? "destination")+            Core.<*> (o Core..:? "kind" Core..!= "storage#composeRequest")+            Core.<*> (o Core..: "sourceObjects")+      )++instance Core.ToJSON ComposeRequestInput where+  toJSON ComposeRequestInput {..} =+    Core.object+      ( Core.catMaybes+          [ ("deleteSourceObjects" Core..=) Core.<$> deleteSourceObjects,+            ("destination" Core..=) Core.<$> destination,+            Core.Just ("kind" Core..= kind),+            Core.Just ("sourceObjects" Core..= sourceObjects)+          ]+      )++--+-- /See:/ 'newComposeRequest_SourceObjectsItem' smart constructor.+data ComposeRequest_SourceObjectsItem = ComposeRequest_SourceObjectsItem+  { -- | The generation of this object to use as the source.+    generation :: (Core.Maybe Core.Int64),+    -- | The source object\'s name. All source objects must reside in the same bucket.+    name :: (Core.Maybe Core.Text),+    -- | Conditions that must be met for this operation to execute.+    objectPreconditions :: (Core.Maybe ComposeRequest_SourceObjectsItem_ObjectPreconditions)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ComposeRequest_SourceObjectsItem' with the minimum fields required to make a request.+newComposeRequest_SourceObjectsItem ::+  ComposeRequest_SourceObjectsItem+newComposeRequest_SourceObjectsItem =+  ComposeRequest_SourceObjectsItem+    { generation = Core.Nothing,+      name = Core.Nothing,+      objectPreconditions = Core.Nothing+    }++instance Core.FromJSON ComposeRequest_SourceObjectsItem where+  parseJSON =+    Core.withObject+      "ComposeRequest_SourceObjectsItem"+      ( \o ->+          ComposeRequest_SourceObjectsItem+            Core.<$> (o Core..:? "generation" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "name")+            Core.<*> (o Core..:? "objectPreconditions")+      )++instance Core.ToJSON ComposeRequest_SourceObjectsItem where+  toJSON ComposeRequest_SourceObjectsItem {..} =+    Core.object+      ( Core.catMaybes+          [ ("generation" Core..=) Core.. Core.AsText Core.<$> generation,+            ("name" Core..=) Core.<$> name,+            ("objectPreconditions" Core..=) Core.<$> objectPreconditions+          ]+      )++--+-- /See:/ 'newComposeRequest_SourceObjectsItemInput' smart constructor.+data ComposeRequest_SourceObjectsItemInput = ComposeRequest_SourceObjectsItemInput+  { -- | The generation of this object to use as the source.+    generation :: (Core.Maybe Core.Int64),+    -- | The source object\'s name. All source objects must reside in the same bucket.+    name :: Core.Text,+    -- | Conditions that must be met for this operation to execute.+    objectPreconditions :: (Core.Maybe ComposeRequest_SourceObjectsItem_ObjectPreconditions)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ComposeRequest_SourceObjectsItemInput' with the minimum fields required to make a request.+newComposeRequest_SourceObjectsItemInput ::+  -- |  The source object\'s name. All source objects must reside in the same bucket. See 'name'.+  Core.Text ->+  ComposeRequest_SourceObjectsItemInput+newComposeRequest_SourceObjectsItemInput name =+  ComposeRequest_SourceObjectsItemInput+    { generation = Core.Nothing,+      name = name,+      objectPreconditions = Core.Nothing+    }++instance Core.FromJSON ComposeRequest_SourceObjectsItemInput where+  parseJSON =+    Core.withObject+      "ComposeRequest_SourceObjectsItemInput"+      ( \o ->+          ComposeRequest_SourceObjectsItemInput+            Core.<$> (o Core..:? "generation" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..: "name")+            Core.<*> (o Core..:? "objectPreconditions")+      )++instance Core.ToJSON ComposeRequest_SourceObjectsItemInput where+  toJSON ComposeRequest_SourceObjectsItemInput {..} =+    Core.object+      ( Core.catMaybes+          [ ("generation" Core..=) Core.. Core.AsText Core.<$> generation,+            Core.Just ("name" Core..= name),+            ("objectPreconditions" Core..=) Core.<$> objectPreconditions+          ]+      )++-- | Conditions that must be met for this operation to execute.+--+-- /See:/ 'newComposeRequest_SourceObjectsItem_ObjectPreconditions' smart constructor.+newtype ComposeRequest_SourceObjectsItem_ObjectPreconditions = ComposeRequest_SourceObjectsItem_ObjectPreconditions+  { -- | Only perform the composition if the generation of the source object that would be used matches this value. If this value and a generation are both specified, they must be the same value or the call will fail.+    ifGenerationMatch :: (Core.Maybe Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ComposeRequest_SourceObjectsItem_ObjectPreconditions' with the minimum fields required to make a request.+newComposeRequest_SourceObjectsItem_ObjectPreconditions ::+  ComposeRequest_SourceObjectsItem_ObjectPreconditions+newComposeRequest_SourceObjectsItem_ObjectPreconditions =+  ComposeRequest_SourceObjectsItem_ObjectPreconditions+    { ifGenerationMatch =+        Core.Nothing+    }++instance+  Core.FromJSON+    ComposeRequest_SourceObjectsItem_ObjectPreconditions+  where+  parseJSON =+    Core.withObject+      "ComposeRequest_SourceObjectsItem_ObjectPreconditions"+      ( \o ->+          ComposeRequest_SourceObjectsItem_ObjectPreconditions+            Core.<$> ( o+                         Core..:? "ifGenerationMatch"+                         Core.<&> Core.fmap Core.fromAsText+                     )+      )++instance+  Core.ToJSON+    ComposeRequest_SourceObjectsItem_ObjectPreconditions+  where+  toJSON ComposeRequest_SourceObjectsItem_ObjectPreconditions {..} =+    Core.object+      ( Core.catMaybes+          [ ("ifGenerationMatch" Core..=)+              Core.. Core.AsText+              Core.<$> ifGenerationMatch+          ]+      )++-- | Represents an expression text. Example: title: \"User account presence\" description: \"Determines whether the request has a user account\" expression: \"size(request.user) > 0\"+--+-- /See:/ 'newExpr' smart constructor.+data Expr = Expr+  { -- | An optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.+    description :: (Core.Maybe Core.Text),+    -- | Textual representation of an expression in Common Expression Language syntax. The application context of the containing message determines which well-known feature set of CEL is supported.+    expression :: (Core.Maybe Core.Text),+    -- | An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.+    location :: (Core.Maybe Core.Text),+    -- | An optional title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.+    title :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Expr' with the minimum fields required to make a request.+newExpr ::+  Expr+newExpr =+  Expr+    { description = Core.Nothing,+      expression = Core.Nothing,+      location = Core.Nothing,+      title = Core.Nothing+    }++instance Core.FromJSON Expr where+  parseJSON =+    Core.withObject+      "Expr"+      ( \o ->+          Expr+            Core.<$> (o Core..:? "description")+            Core.<*> (o Core..:? "expression")+            Core.<*> (o Core..:? "location")+            Core.<*> (o Core..:? "title")+      )++instance Core.ToJSON Expr where+  toJSON Expr {..} =+    Core.object+      ( Core.catMaybes+          [ ("description" Core..=) Core.<$> description,+            ("expression" Core..=) Core.<$> expression,+            ("location" Core..=) Core.<$> location,+            ("title" Core..=) Core.<$> title+          ]+      )++-- | A folder. Only available in buckets with hierarchical namespace enabled.+--+-- /See:/ 'newFolder' smart constructor.+data Folder = Folder+  { -- | The name of the bucket containing this folder.+    bucket :: (Core.Maybe Core.Text),+    -- | The creation time of the folder in RFC 3339 format.+    createTime :: (Core.Maybe Core.DateTime),+    -- | The ID of the folder, including the bucket name, folder name.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For folders, this is always storage#folder.+    kind :: Core.Text,+    -- | The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.+    metageneration :: (Core.Maybe Core.Int64),+    -- | The name of the folder. Required if not specified by URL parameter.+    name :: (Core.Maybe Core.Text),+    -- | Only present if the folder is part of an ongoing rename folder operation. Contains information which can be used to query the operation status.+    pendingRenameInfo :: (Core.Maybe Folder_PendingRenameInfo),+    -- | The link to this folder.+    selfLink :: (Core.Maybe Core.Text),+    -- | The modification time of the folder metadata in RFC 3339 format.+    updateTime :: (Core.Maybe Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Folder' with the minimum fields required to make a request.+newFolder ::+  Folder+newFolder =+  Folder+    { bucket = Core.Nothing,+      createTime = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#folder",+      metageneration = Core.Nothing,+      name = Core.Nothing,+      pendingRenameInfo = Core.Nothing,+      selfLink = Core.Nothing,+      updateTime = Core.Nothing+    }++instance Core.FromJSON Folder where+  parseJSON =+    Core.withObject+      "Folder"+      ( \o ->+          Folder+            Core.<$> (o Core..:? "bucket")+            Core.<*> (o Core..:? "createTime")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#folder")+            Core.<*> (o Core..:? "metageneration" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "name")+            Core.<*> (o Core..:? "pendingRenameInfo")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "updateTime")+      )++instance Core.ToJSON Folder where+  toJSON Folder {..} =+    Core.object+      ( Core.catMaybes+          [ ("bucket" Core..=) Core.<$> bucket,+            ("createTime" Core..=) Core.<$> createTime,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("metageneration" Core..=)+              Core.. Core.AsText+              Core.<$> metageneration,+            ("name" Core..=) Core.<$> name,+            ("pendingRenameInfo" Core..=) Core.<$> pendingRenameInfo,+            ("selfLink" Core..=) Core.<$> selfLink,+            ("updateTime" Core..=) Core.<$> updateTime+          ]+      )++-- | Only present if the folder is part of an ongoing rename folder operation. Contains information which can be used to query the operation status.+--+-- /See:/ 'newFolder_PendingRenameInfo' smart constructor.+newtype Folder_PendingRenameInfo = Folder_PendingRenameInfo+  { -- | The ID of the rename folder operation.+    operationId :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Folder_PendingRenameInfo' with the minimum fields required to make a request.+newFolder_PendingRenameInfo ::+  Folder_PendingRenameInfo+newFolder_PendingRenameInfo =+  Folder_PendingRenameInfo {operationId = Core.Nothing}++instance Core.FromJSON Folder_PendingRenameInfo where+  parseJSON =+    Core.withObject+      "Folder_PendingRenameInfo"+      ( \o ->+          Folder_PendingRenameInfo Core.<$> (o Core..:? "operationId")+      )++instance Core.ToJSON Folder_PendingRenameInfo where+  toJSON Folder_PendingRenameInfo {..} =+    Core.object+      (Core.catMaybes [("operationId" Core..=) Core.<$> operationId])++-- | A list of folders.+--+-- /See:/ 'newFolders' smart constructor.+data Folders = Folders+  { -- | The list of items.+    items :: (Core.Maybe [Folder]),+    -- | The kind of item this is. For lists of folders, this is always storage#folders.+    kind :: Core.Text,+    -- | The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.+    nextPageToken :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Folders' with the minimum fields required to make a request.+newFolders ::+  Folders+newFolders =+  Folders+    { items = Core.Nothing,+      kind = "storage#folders",+      nextPageToken = Core.Nothing+    }++instance Core.FromJSON Folders where+  parseJSON =+    Core.withObject+      "Folders"+      ( \o ->+          Folders+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#folders")+            Core.<*> (o Core..:? "nextPageToken")+      )++instance Core.ToJSON Folders where+  toJSON Folders {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind),+            ("nextPageToken" Core..=) Core.<$> nextPageToken+          ]+      )++-- | The response message for storage.buckets.operations.list.+--+-- /See:/ 'newGoogleLongrunningListOperationsResponse' smart constructor.+data GoogleLongrunningListOperationsResponse = GoogleLongrunningListOperationsResponse+  { -- | The kind of item this is. For lists of operations, this is always storage#operations.+    kind :: Core.Text,+    -- | The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.+    nextPageToken :: (Core.Maybe Core.Text),+    -- | A list of operations that matches the specified filter in the request.+    operations :: (Core.Maybe [GoogleLongrunningOperation])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleLongrunningListOperationsResponse' with the minimum fields required to make a request.+newGoogleLongrunningListOperationsResponse ::+  GoogleLongrunningListOperationsResponse+newGoogleLongrunningListOperationsResponse =+  GoogleLongrunningListOperationsResponse+    { kind =+        "storage#operations",+      nextPageToken = Core.Nothing,+      operations = Core.Nothing+    }++instance Core.FromJSON GoogleLongrunningListOperationsResponse where+  parseJSON =+    Core.withObject+      "GoogleLongrunningListOperationsResponse"+      ( \o ->+          GoogleLongrunningListOperationsResponse+            Core.<$> (o Core..:? "kind" Core..!= "storage#operations")+            Core.<*> (o Core..:? "nextPageToken")+            Core.<*> (o Core..:? "operations")+      )++instance Core.ToJSON GoogleLongrunningListOperationsResponse where+  toJSON GoogleLongrunningListOperationsResponse {..} =+    Core.object+      ( Core.catMaybes+          [ Core.Just ("kind" Core..= kind),+            ("nextPageToken" Core..=) Core.<$> nextPageToken,+            ("operations" Core..=) Core.<$> operations+          ]+      )++-- | This resource represents a long-running operation that is the result of a network API call.+--+-- /See:/ 'newGoogleLongrunningOperation' smart constructor.+data GoogleLongrunningOperation = GoogleLongrunningOperation+  { -- | If the value is \"false\", it means the operation is still in progress. If \"true\", the operation is completed, and either \"error\" or \"response\" is available.+    done :: (Core.Maybe Core.Bool),+    -- | The error result of the operation in case of failure or cancellation.+    error :: (Core.Maybe GoogleRpcStatus),+    -- | The kind of item this is. For operations, this is always storage#operation.+    kind :: Core.Text,+    -- | Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.+    metadata :: (Core.Maybe GoogleLongrunningOperation_Metadata),+    -- | The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the \"name\" should be a resource name ending with \"operations\/{operationId}\".+    name :: (Core.Maybe Core.Text),+    -- | The normal response of the operation in case of success. If the original method returns no data on success, such as \"Delete\", the response is google.protobuf.Empty. If the original method is standard Get\/Create\/Update, the response should be the resource. For other methods, the response should have the type \"XxxResponse\", where \"Xxx\" is the original method name. For example, if the original method name is \"TakeSnapshot()\", the inferred response type is \"TakeSnapshotResponse\".+    response :: (Core.Maybe GoogleLongrunningOperation_Response),+    -- | The link to this long running operation.+    selfLink :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleLongrunningOperation' with the minimum fields required to make a request.+newGoogleLongrunningOperation ::+  GoogleLongrunningOperation+newGoogleLongrunningOperation =+  GoogleLongrunningOperation+    { done = Core.Nothing,+      error = Core.Nothing,+      kind = "storage#operation",+      metadata = Core.Nothing,+      name = Core.Nothing,+      response = Core.Nothing,+      selfLink = Core.Nothing+    }++instance Core.FromJSON GoogleLongrunningOperation where+  parseJSON =+    Core.withObject+      "GoogleLongrunningOperation"+      ( \o ->+          GoogleLongrunningOperation+            Core.<$> (o Core..:? "done")+            Core.<*> (o Core..:? "error")+            Core.<*> (o Core..:? "kind" Core..!= "storage#operation")+            Core.<*> (o Core..:? "metadata")+            Core.<*> (o Core..:? "name")+            Core.<*> (o Core..:? "response")+            Core.<*> (o Core..:? "selfLink")+      )++instance Core.ToJSON GoogleLongrunningOperation where+  toJSON GoogleLongrunningOperation {..} =+    Core.object+      ( Core.catMaybes+          [ ("done" Core..=) Core.<$> done,+            ("error" Core..=) Core.<$> error,+            Core.Just ("kind" Core..= kind),+            ("metadata" Core..=) Core.<$> metadata,+            ("name" Core..=) Core.<$> name,+            ("response" Core..=) Core.<$> response,+            ("selfLink" Core..=) Core.<$> selfLink+          ]+      )++-- | Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.+--+-- /See:/ 'newGoogleLongrunningOperation_Metadata' smart constructor.+newtype GoogleLongrunningOperation_Metadata = GoogleLongrunningOperation_Metadata+  { -- | Properties of the object. Contains field \@type with type URL.+    additional :: (Core.HashMap Core.Text Core.Value)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleLongrunningOperation_Metadata' with the minimum fields required to make a request.+newGoogleLongrunningOperation_Metadata ::+  -- |  Properties of the object. Contains field \@type with type URL. See 'additional'.+  Core.HashMap Core.Text Core.Value ->+  GoogleLongrunningOperation_Metadata+newGoogleLongrunningOperation_Metadata additional =+  GoogleLongrunningOperation_Metadata {additional = additional}++instance Core.FromJSON GoogleLongrunningOperation_Metadata where+  parseJSON =+    Core.withObject+      "GoogleLongrunningOperation_Metadata"+      ( \o ->+          GoogleLongrunningOperation_Metadata+            Core.<$> (Core.parseJSONObject o)+      )++instance Core.ToJSON GoogleLongrunningOperation_Metadata where+  toJSON GoogleLongrunningOperation_Metadata {..} =+    Core.toJSON additional++-- | The normal response of the operation in case of success. If the original method returns no data on success, such as \"Delete\", the response is google.protobuf.Empty. If the original method is standard Get\/Create\/Update, the response should be the resource. For other methods, the response should have the type \"XxxResponse\", where \"Xxx\" is the original method name. For example, if the original method name is \"TakeSnapshot()\", the inferred response type is \"TakeSnapshotResponse\".+--+-- /See:/ 'newGoogleLongrunningOperation_Response' smart constructor.+newtype GoogleLongrunningOperation_Response = GoogleLongrunningOperation_Response+  { -- | Properties of the object. Contains field \@type with type URL.+    additional :: (Core.HashMap Core.Text Core.Value)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleLongrunningOperation_Response' with the minimum fields required to make a request.+newGoogleLongrunningOperation_Response ::+  -- |  Properties of the object. Contains field \@type with type URL. See 'additional'.+  Core.HashMap Core.Text Core.Value ->+  GoogleLongrunningOperation_Response+newGoogleLongrunningOperation_Response additional =+  GoogleLongrunningOperation_Response {additional = additional}++instance Core.FromJSON GoogleLongrunningOperation_Response where+  parseJSON =+    Core.withObject+      "GoogleLongrunningOperation_Response"+      ( \o ->+          GoogleLongrunningOperation_Response+            Core.<$> (Core.parseJSONObject o)+      )++instance Core.ToJSON GoogleLongrunningOperation_Response where+  toJSON GoogleLongrunningOperation_Response {..} =+    Core.toJSON additional++-- | The \"Status\" type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by <https://github.com/grpc gRPC>. Each \"Status\" message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the <https://cloud.google.com/apis/design/errors API Design Guide>.+--+-- /See:/ 'newGoogleRpcStatus' smart constructor.+data GoogleRpcStatus = GoogleRpcStatus+  { -- | The status code, which should be an enum value of google.rpc.Code.+    code :: (Core.Maybe Core.Int32),+    -- | A list of messages that carry the error details. There is a common set of message types for APIs to use.+    details :: (Core.Maybe [GoogleRpcStatus_DetailsItem]),+    -- | A developer-facing error message, which should be in English.+    message :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleRpcStatus' with the minimum fields required to make a request.+newGoogleRpcStatus ::+  GoogleRpcStatus+newGoogleRpcStatus =+  GoogleRpcStatus+    { code = Core.Nothing,+      details = Core.Nothing,+      message = Core.Nothing+    }++instance Core.FromJSON GoogleRpcStatus where+  parseJSON =+    Core.withObject+      "GoogleRpcStatus"+      ( \o ->+          GoogleRpcStatus+            Core.<$> (o Core..:? "code")+            Core.<*> (o Core..:? "details")+            Core.<*> (o Core..:? "message")+      )++instance Core.ToJSON GoogleRpcStatus where+  toJSON GoogleRpcStatus {..} =+    Core.object+      ( Core.catMaybes+          [ ("code" Core..=) Core.<$> code,+            ("details" Core..=) Core.<$> details,+            ("message" Core..=) Core.<$> message+          ]+      )++--+-- /See:/ 'newGoogleRpcStatus_DetailsItem' smart constructor.+newtype GoogleRpcStatus_DetailsItem = GoogleRpcStatus_DetailsItem+  { -- | Properties of the object. Contains field \@type with type URL.+    additional :: (Core.HashMap Core.Text Core.Value)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleRpcStatus_DetailsItem' with the minimum fields required to make a request.+newGoogleRpcStatus_DetailsItem ::+  -- |  Properties of the object. Contains field \@type with type URL. See 'additional'.+  Core.HashMap Core.Text Core.Value ->+  GoogleRpcStatus_DetailsItem+newGoogleRpcStatus_DetailsItem additional =+  GoogleRpcStatus_DetailsItem {additional = additional}++instance Core.FromJSON GoogleRpcStatus_DetailsItem where+  parseJSON =+    Core.withObject+      "GoogleRpcStatus_DetailsItem"+      ( \o ->+          GoogleRpcStatus_DetailsItem Core.<$> (Core.parseJSONObject o)+      )++instance Core.ToJSON GoogleRpcStatus_DetailsItem where+  toJSON GoogleRpcStatus_DetailsItem {..} = Core.toJSON additional++-- | JSON template to produce a JSON-style HMAC Key resource for Create responses.+--+-- /See:/ 'newHmacKey' smart constructor.+data HmacKey = HmacKey+  { -- | The kind of item this is. For HMAC keys, this is always storage#hmacKey.+    kind :: Core.Text,+    -- | Key metadata.+    metadata :: (Core.Maybe HmacKeyMetadata),+    -- | HMAC secret key material.+    secret :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'HmacKey' with the minimum fields required to make a request.+newHmacKey ::+  HmacKey+newHmacKey =+  HmacKey+    { kind = "storage#hmacKey",+      metadata = Core.Nothing,+      secret = Core.Nothing+    }++instance Core.FromJSON HmacKey where+  parseJSON =+    Core.withObject+      "HmacKey"+      ( \o ->+          HmacKey+            Core.<$> (o Core..:? "kind" Core..!= "storage#hmacKey")+            Core.<*> (o Core..:? "metadata")+            Core.<*> (o Core..:? "secret")+      )++instance Core.ToJSON HmacKey where+  toJSON HmacKey {..} =+    Core.object+      ( Core.catMaybes+          [ Core.Just ("kind" Core..= kind),+            ("metadata" Core..=) Core.<$> metadata,+            ("secret" Core..=) Core.<$> secret+          ]+      )++-- | JSON template to produce a JSON-style HMAC Key metadata resource.+--+-- /See:/ 'newHmacKeyMetadata' smart constructor.+data HmacKeyMetadata = HmacKeyMetadata+  { -- | The ID of the HMAC Key.+    accessId :: (Core.Maybe Core.Text),+    -- | HTTP 1.1 Entity tag for the HMAC key.+    etag :: (Core.Maybe Core.Text),+    -- | The ID of the HMAC key, including the Project ID and the Access ID.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata.+    kind :: Core.Text,+    -- | Project ID owning the service account to which the key authenticates.+    projectId :: (Core.Maybe Core.Text),+    -- | The link to this resource.+    selfLink :: (Core.Maybe Core.Text),+    -- | The email address of the key\'s associated service account.+    serviceAccountEmail :: (Core.Maybe Core.Text),+    -- | The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.+    state :: (Core.Maybe Core.Text),+    -- | The creation time of the HMAC key in RFC 3339 format.+    timeCreated :: (Core.Maybe Core.DateTime),+    -- | The last modification time of the HMAC key metadata in RFC 3339 format.+    updated :: (Core.Maybe Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'HmacKeyMetadata' with the minimum fields required to make a request.+newHmacKeyMetadata ::+  HmacKeyMetadata+newHmacKeyMetadata =+  HmacKeyMetadata+    { accessId = Core.Nothing,+      etag = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#hmacKeyMetadata",+      projectId = Core.Nothing,+      selfLink = Core.Nothing,+      serviceAccountEmail = Core.Nothing,+      state = Core.Nothing,+      timeCreated = Core.Nothing,+      updated = Core.Nothing+    }++instance Core.FromJSON HmacKeyMetadata where+  parseJSON =+    Core.withObject+      "HmacKeyMetadata"+      ( \o ->+          HmacKeyMetadata+            Core.<$> (o Core..:? "accessId")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#hmacKeyMetadata")+            Core.<*> (o Core..:? "projectId")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "serviceAccountEmail")+            Core.<*> (o Core..:? "state")+            Core.<*> (o Core..:? "timeCreated")+            Core.<*> (o Core..:? "updated")+      )++instance Core.ToJSON HmacKeyMetadata where+  toJSON HmacKeyMetadata {..} =+    Core.object+      ( Core.catMaybes+          [ ("accessId" Core..=) Core.<$> accessId,+            ("etag" Core..=) Core.<$> etag,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("projectId" Core..=) Core.<$> projectId,+            ("selfLink" Core..=) Core.<$> selfLink,+            ("serviceAccountEmail" Core..=) Core.<$> serviceAccountEmail,+            ("state" Core..=) Core.<$> state,+            ("timeCreated" Core..=) Core.<$> timeCreated,+            ("updated" Core..=) Core.<$> updated+          ]+      )++-- | A list of hmacKeys.+--+-- /See:/ 'newHmacKeysMetadata' smart constructor.+data HmacKeysMetadata = HmacKeysMetadata+  { -- | The list of items.+    items :: (Core.Maybe [HmacKeyMetadata]),+    -- | The kind of item this is. For lists of hmacKeys, this is always storage#hmacKeysMetadata.+    kind :: Core.Text,+    -- | The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.+    nextPageToken :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'HmacKeysMetadata' with the minimum fields required to make a request.+newHmacKeysMetadata ::+  HmacKeysMetadata+newHmacKeysMetadata =+  HmacKeysMetadata+    { items = Core.Nothing,+      kind = "storage#hmacKeysMetadata",+      nextPageToken = Core.Nothing+    }++instance Core.FromJSON HmacKeysMetadata where+  parseJSON =+    Core.withObject+      "HmacKeysMetadata"+      ( \o ->+          HmacKeysMetadata+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#hmacKeysMetadata")+            Core.<*> (o Core..:? "nextPageToken")+      )++instance Core.ToJSON HmacKeysMetadata where+  toJSON HmacKeysMetadata {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind),+            ("nextPageToken" Core..=) Core.<$> nextPageToken+          ]+      )++-- | A managed folder.+--+-- /See:/ 'newManagedFolder' smart constructor.+data ManagedFolder = ManagedFolder+  { -- | The name of the bucket containing this managed folder.+    bucket :: (Core.Maybe Core.Text),+    -- | The creation time of the managed folder in RFC 3339 format.+    createTime :: (Core.Maybe Core.DateTime),+    -- | The ID of the managed folder, including the bucket name and managed folder name.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For managed folders, this is always storage#managedFolder.+    kind :: Core.Text,+    -- | The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.+    metageneration :: (Core.Maybe Core.Int64),+    -- | The name of the managed folder. Required if not specified by URL parameter.+    name :: (Core.Maybe Core.Text),+    -- | The rapid cache configuration for the managed folder.+    rapidCacheConfig :: (Core.Maybe RapidCacheConfig),+    -- | The link to this managed folder.+    selfLink :: (Core.Maybe Core.Text),+    -- | The last update time of the managed folder metadata in RFC 3339 format.+    updateTime :: (Core.Maybe Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedFolder' with the minimum fields required to make a request.+newManagedFolder ::+  ManagedFolder+newManagedFolder =+  ManagedFolder+    { bucket = Core.Nothing,+      createTime = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#managedFolder",+      metageneration = Core.Nothing,+      name = Core.Nothing,+      rapidCacheConfig = Core.Nothing,+      selfLink = Core.Nothing,+      updateTime = Core.Nothing+    }++instance Core.FromJSON ManagedFolder where+  parseJSON =+    Core.withObject+      "ManagedFolder"+      ( \o ->+          ManagedFolder+            Core.<$> (o Core..:? "bucket")+            Core.<*> (o Core..:? "createTime")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#managedFolder")+            Core.<*> (o Core..:? "metageneration" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "name")+            Core.<*> (o Core..:? "rapidCacheConfig")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "updateTime")+      )++instance Core.ToJSON ManagedFolder where+  toJSON ManagedFolder {..} =+    Core.object+      ( Core.catMaybes+          [ ("bucket" Core..=) Core.<$> bucket,+            ("createTime" Core..=) Core.<$> createTime,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("metageneration" Core..=)+              Core.. Core.AsText+              Core.<$> metageneration,+            ("name" Core..=) Core.<$> name,+            ("rapidCacheConfig" Core..=) Core.<$> rapidCacheConfig,+            ("selfLink" Core..=) Core.<$> selfLink,+            ("updateTime" Core..=) Core.<$> updateTime+          ]+      )++-- | A managed folder.+--+-- /See:/ 'newManagedFolderPatch' smart constructor.+data ManagedFolderPatch = ManagedFolderPatch+  { -- | The name of the bucket containing this managed folder.+    bucket :: (Core.PatchField Core.Text),+    -- | The creation time of the managed folder in RFC 3339 format.+    createTime :: (Core.PatchField Core.DateTime),+    -- | The ID of the managed folder, including the bucket name and managed folder name.+    id :: (Core.PatchField Core.Text),+    -- | The kind of item this is. For managed folders, this is always storage#managedFolder.+    kind :: (Core.PatchField Core.Text),+    -- | The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata.+    metageneration :: (Core.PatchField Core.Int64),+    -- | The name of the managed folder. Required if not specified by URL parameter.+    name :: (Core.PatchField Core.Text),+    -- | The rapid cache configuration for the managed folder.+    rapidCacheConfig :: (Core.PatchField RapidCacheConfigPatch),+    -- | The link to this managed folder.+    selfLink :: (Core.PatchField Core.Text),+    -- | The last update time of the managed folder metadata in RFC 3339 format.+    updateTime :: (Core.PatchField Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedFolderPatch' with the minimum fields required to make a request.+newManagedFolderPatch ::+  ManagedFolderPatch+newManagedFolderPatch =+  ManagedFolderPatch+    { bucket = Core.Omit,+      createTime = Core.Omit,+      id = Core.Omit,+      kind = Core.Omit,+      metageneration = Core.Omit,+      name = Core.Omit,+      rapidCacheConfig = Core.Omit,+      selfLink = Core.Omit,+      updateTime = Core.Omit+    }++instance Core.FromJSON ManagedFolderPatch where+  parseJSON =+    Core.withObject+      "ManagedFolderPatch"+      ( \o ->+          ManagedFolderPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "bucket" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "createTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "id" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "kind" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "metageneration"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "name" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "rapidCacheConfig" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "selfLink" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "updateTime" o)+      )++instance Core.ToJSON ManagedFolderPatch where+  toJSON ManagedFolderPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "bucket" bucket,+            Core.patchField Core.toJSON "createTime" createTime,+            Core.patchField Core.toJSON "id" id,+            Core.patchField Core.toJSON "kind" kind,+            Core.patchField+              (Core.toJSON Core.. Core.AsText)+              "metageneration"+              metageneration,+            Core.patchField Core.toJSON "name" name,+            Core.patchField Core.toJSON "rapidCacheConfig" rapidCacheConfig,+            Core.patchField Core.toJSON "selfLink" selfLink,+            Core.patchField Core.toJSON "updateTime" updateTime+          ]+      )++-- | A list of managed folders.+--+-- /See:/ 'newManagedFolders' smart constructor.+data ManagedFolders = ManagedFolders+  { -- | The list of items.+    items :: (Core.Maybe [ManagedFolder]),+    -- | The kind of item this is. For lists of managed folders, this is always storage#managedFolders.+    kind :: Core.Text,+    -- | The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.+    nextPageToken :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedFolders' with the minimum fields required to make a request.+newManagedFolders ::+  ManagedFolders+newManagedFolders =+  ManagedFolders+    { items = Core.Nothing,+      kind = "storage#managedFolders",+      nextPageToken = Core.Nothing+    }++instance Core.FromJSON ManagedFolders where+  parseJSON =+    Core.withObject+      "ManagedFolders"+      ( \o ->+          ManagedFolders+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#managedFolders")+            Core.<*> (o Core..:? "nextPageToken")+      )++instance Core.ToJSON ManagedFolders where+  toJSON ManagedFolders {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind),+            ("nextPageToken" Core..=) Core.<$> nextPageToken+          ]+      )++-- | A subscription to receive Google PubSub notifications.+--+-- /See:/ 'newNotification' smart constructor.+data Notification = Notification+  { -- | An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.+    customAttributes :: (Core.Maybe Notification_Custom_attributes),+    -- | HTTP 1.1 Entity tag for this subscription notification.+    etag :: (Core.Maybe Core.Text),+    -- | If present, only send notifications about listed event types. If empty, sent notifications for all event types.+    eventTypes :: (Core.Maybe [Core.Text]),+    -- | The ID of the notification.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For notifications, this is always storage#notification.+    kind :: Core.Text,+    -- | If present, only apply this notification configuration to object names that begin with this prefix.+    objectNamePrefix :: (Core.Maybe Core.Text),+    -- | The desired content of the Payload.+    payloadFormat :: Core.Text,+    -- | The canonical URL of this notification.+    selfLink :: (Core.Maybe Core.Text),+    -- | The Cloud PubSub topic to which this subscription publishes. Formatted as: \'\/\/pubsub.googleapis.com\/projects\/{project-identifier}\/topics\/{my-topic}\'+    topic :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Notification' with the minimum fields required to make a request.+newNotification ::+  Notification+newNotification =+  Notification+    { customAttributes = Core.Nothing,+      etag = Core.Nothing,+      eventTypes = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#notification",+      objectNamePrefix = Core.Nothing,+      payloadFormat = "JSON_API_V1",+      selfLink = Core.Nothing,+      topic = Core.Nothing+    }++instance Core.FromJSON Notification where+  parseJSON =+    Core.withObject+      "Notification"+      ( \o ->+          Notification+            Core.<$> (o Core..:? "custom_attributes")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "event_types")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#notification")+            Core.<*> (o Core..:? "object_name_prefix")+            Core.<*> (o Core..:? "payload_format" Core..!= "JSON_API_V1")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "topic")+      )++instance Core.ToJSON Notification where+  toJSON Notification {..} =+    Core.object+      ( Core.catMaybes+          [ ("custom_attributes" Core..=) Core.<$> customAttributes,+            ("etag" Core..=) Core.<$> etag,+            ("event_types" Core..=) Core.<$> eventTypes,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("object_name_prefix" Core..=) Core.<$> objectNamePrefix,+            Core.Just ("payload_format" Core..= payloadFormat),+            ("selfLink" Core..=) Core.<$> selfLink,+            ("topic" Core..=) Core.<$> topic+          ]+      )++-- | A subscription to receive Google PubSub notifications.+--+-- /See:/ 'newNotificationInsertInput' smart constructor.+data NotificationInsertInput = NotificationInsertInput+  { -- | An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.+    customAttributes :: (Core.Maybe Notification_Custom_attributes),+    -- | HTTP 1.1 Entity tag for this subscription notification.+    etag :: (Core.Maybe Core.Text),+    -- | If present, only send notifications about listed event types. If empty, sent notifications for all event types.+    eventTypes :: (Core.Maybe [Core.Text]),+    -- | The ID of the notification.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For notifications, this is always storage#notification.+    kind :: Core.Text,+    -- | If present, only apply this notification configuration to object names that begin with this prefix.+    objectNamePrefix :: (Core.Maybe Core.Text),+    -- | The desired content of the Payload.+    payloadFormat :: Core.Text,+    -- | The canonical URL of this notification.+    selfLink :: (Core.Maybe Core.Text),+    -- | The Cloud PubSub topic to which this subscription publishes. Formatted as: \'\/\/pubsub.googleapis.com\/projects\/{project-identifier}\/topics\/{my-topic}\'+    topic :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'NotificationInsertInput' with the minimum fields required to make a request.+newNotificationInsertInput ::+  -- |  The desired content of the Payload. See 'payloadFormat'.+  Core.Text ->+  -- |  The Cloud PubSub topic to which this subscription publishes. Formatted as: \'\/\/pubsub.googleapis.com\/projects\/{project-identifier}\/topics\/{my-topic}\' See 'topic'.+  Core.Text ->+  NotificationInsertInput+newNotificationInsertInput payloadFormat topic =+  NotificationInsertInput+    { customAttributes = Core.Nothing,+      etag = Core.Nothing,+      eventTypes = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#notification",+      objectNamePrefix = Core.Nothing,+      payloadFormat = payloadFormat,+      selfLink = Core.Nothing,+      topic = topic+    }++instance Core.FromJSON NotificationInsertInput where+  parseJSON =+    Core.withObject+      "NotificationInsertInput"+      ( \o ->+          NotificationInsertInput+            Core.<$> (o Core..:? "custom_attributes")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "event_types")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#notification")+            Core.<*> (o Core..:? "object_name_prefix")+            Core.<*> (o Core..: "payload_format")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..: "topic")+      )++instance Core.ToJSON NotificationInsertInput where+  toJSON NotificationInsertInput {..} =+    Core.object+      ( Core.catMaybes+          [ ("custom_attributes" Core..=) Core.<$> customAttributes,+            ("etag" Core..=) Core.<$> etag,+            ("event_types" Core..=) Core.<$> eventTypes,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("object_name_prefix" Core..=) Core.<$> objectNamePrefix,+            Core.Just ("payload_format" Core..= payloadFormat),+            ("selfLink" Core..=) Core.<$> selfLink,+            Core.Just ("topic" Core..= topic)+          ]+      )++-- | An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.+--+-- /See:/ 'newNotification_Custom_attributes' smart constructor.+newtype Notification_Custom_attributes = Notification_Custom_attributes+  { additional :: (Core.HashMap Core.Text Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Notification_Custom_attributes' with the minimum fields required to make a request.+newNotification_Custom_attributes ::+  -- |  See 'additional'.+  Core.HashMap Core.Text Core.Text ->+  Notification_Custom_attributes+newNotification_Custom_attributes additional =+  Notification_Custom_attributes {additional = additional}++instance Core.FromJSON Notification_Custom_attributes where+  parseJSON =+    Core.withObject+      "Notification_Custom_attributes"+      ( \o ->+          Notification_Custom_attributes Core.<$> (Core.parseJSONObject o)+      )++instance Core.ToJSON Notification_Custom_attributes where+  toJSON Notification_Custom_attributes {..} = Core.toJSON additional++-- | A list of notification subscriptions.+--+-- /See:/ 'newNotifications' smart constructor.+data Notifications = Notifications+  { -- | The list of items.+    items :: (Core.Maybe [Notification]),+    -- | The kind of item this is. For lists of notifications, this is always storage#notifications.+    kind :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Notifications' with the minimum fields required to make a request.+newNotifications ::+  Notifications+newNotifications =+  Notifications+    { items = Core.Nothing,+      kind = "storage#notifications"+    }++instance Core.FromJSON Notifications where+  parseJSON =+    Core.withObject+      "Notifications"+      ( \o ->+          Notifications+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#notifications")+      )++instance Core.ToJSON Notifications where+  toJSON Notifications {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind)+          ]+      )++-- | An object.+--+-- /See:/ 'newObject' smart constructor.+data Object = Object+  { -- | Access controls on the object.+    acl :: (Core.Maybe [ObjectAccessControl]),+    -- | The name of the bucket containing this object.+    bucket :: (Core.Maybe Core.Text),+    -- | Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max-age=3600.+    cacheControl :: (Core.Maybe Core.Text),+    -- | Number of underlying components that make up this object. Components are accumulated by compose operations.+    componentCount :: (Core.Maybe Core.Int32),+    -- | Content-Disposition of the object data.+    contentDisposition :: (Core.Maybe Core.Text),+    -- | Content-Encoding of the object data.+    contentEncoding :: (Core.Maybe Core.Text),+    -- | Content-Language of the object data.+    contentLanguage :: (Core.Maybe Core.Text),+    -- | Content-Type of the object data. If an object is stored without a Content-Type, it is served as application\/octet-stream.+    contentType :: (Core.Maybe Core.Text),+    -- | User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.+    contexts :: (Core.Maybe Object_Contexts),+    -- | CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see <https://cloud.google.com/storage/docs/data-validation Data Validation and Change Detection>.+    crc32c :: (Core.Maybe Core.Text),+    -- | A timestamp in RFC 3339 format specified by the user for an object.+    customTime :: (Core.Maybe Core.DateTime),+    -- | Metadata of customer-supplied encryption key, if the object is encrypted by such a key.+    customerEncryption :: (Core.Maybe Object_CustomerEncryption),+    -- | HTTP 1.1 Entity tag for the object.+    etag :: (Core.Maybe Core.Text),+    -- | Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold\'s release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is the loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false.+    eventBasedHold :: (Core.Maybe Core.Bool),+    -- | The content generation of this object. Used for object versioning.+    generation :: (Core.Maybe Core.Int64),+    -- | This is the time (in the future) when the soft-deleted object will no longer be restorable. It is equal to the soft delete time plus the current soft delete retention duration of the bucket.+    hardDeleteTime :: (Core.Maybe Core.DateTime),+    -- | The ID of the object, including the bucket name, object name, and generation number.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For objects, this is always storage#object.+    kind :: Core.Text,+    -- | Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.+    kmsKeyName :: (Core.Maybe Core.Text),+    -- | MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see <https://cloud.google.com/storage/docs/data-validation Data Validation and Change Detection>.+    md5Hash :: (Core.Maybe Core.Text),+    -- | Media download link.+    mediaLink :: (Core.Maybe Core.Text),+    -- | User-provided metadata, in key\/value pairs.+    metadata :: (Core.Maybe Object_Metadata),+    -- | The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.+    metageneration :: (Core.Maybe Core.Int64),+    -- | The name of the object. Required if not specified by URL parameter.+    name :: (Core.Maybe Core.Text),+    -- | The owner of the object. This will always be the uploader of the object.+    owner :: (Core.Maybe Object_Owner),+    -- | Restore token used to differentiate deleted objects with the same name and generation. This field is only returned for deleted objects in hierarchical namespace buckets.+    restoreToken :: (Core.Maybe Core.Text),+    -- | A collection of object level retention parameters.+    retention :: (Core.Maybe Object_Retention),+    -- | A server-determined value that specifies the earliest time that the object\'s retention period expires. This value is in RFC 3339 format. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).+    retentionExpirationTime :: (Core.Maybe Core.DateTime),+    -- | The link to this object.+    selfLink :: (Core.Maybe Core.Text),+    -- | Content-Length of the data in bytes.+    size :: (Core.Maybe Core.Word64),+    -- | The time at which the object became soft-deleted in RFC 3339 format.+    softDeleteTime :: (Core.Maybe Core.DateTime),+    -- | Storage class of the object.+    storageClass :: (Core.Maybe Core.Text),+    -- | Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.+    temporaryHold :: (Core.Maybe Core.Bool),+    -- | The creation time of the object in RFC 3339 format.+    timeCreated :: (Core.Maybe Core.DateTime),+    -- | The time at which the object became noncurrent in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.+    timeDeleted :: (Core.Maybe Core.DateTime),+    -- | The time when the object was finalized.+    timeFinalized :: (Core.Maybe Core.DateTime),+    -- | The time at which the object\'s storage class was last changed. When the object is initially created, it will be set to timeCreated.+    timeStorageClassUpdated :: (Core.Maybe Core.DateTime),+    -- | The modification time of the object metadata in RFC 3339 format. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.+    updated :: (Core.Maybe Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object' with the minimum fields required to make a request.+newObject ::+  Object+newObject =+  Object+    { acl = Core.Nothing,+      bucket = Core.Nothing,+      cacheControl = Core.Nothing,+      componentCount = Core.Nothing,+      contentDisposition = Core.Nothing,+      contentEncoding = Core.Nothing,+      contentLanguage = Core.Nothing,+      contentType = Core.Nothing,+      contexts = Core.Nothing,+      crc32c = Core.Nothing,+      customTime = Core.Nothing,+      customerEncryption = Core.Nothing,+      etag = Core.Nothing,+      eventBasedHold = Core.Nothing,+      generation = Core.Nothing,+      hardDeleteTime = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#object",+      kmsKeyName = Core.Nothing,+      md5Hash = Core.Nothing,+      mediaLink = Core.Nothing,+      metadata = Core.Nothing,+      metageneration = Core.Nothing,+      name = Core.Nothing,+      owner = Core.Nothing,+      restoreToken = Core.Nothing,+      retention = Core.Nothing,+      retentionExpirationTime = Core.Nothing,+      selfLink = Core.Nothing,+      size = Core.Nothing,+      softDeleteTime = Core.Nothing,+      storageClass = Core.Nothing,+      temporaryHold = Core.Nothing,+      timeCreated = Core.Nothing,+      timeDeleted = Core.Nothing,+      timeFinalized = Core.Nothing,+      timeStorageClassUpdated = Core.Nothing,+      updated = Core.Nothing+    }++instance Core.FromJSON Object where+  parseJSON =+    Core.withObject+      "Object"+      ( \o ->+          Object+            Core.<$> (o Core..:? "acl")+            Core.<*> (o Core..:? "bucket")+            Core.<*> (o Core..:? "cacheControl")+            Core.<*> (o Core..:? "componentCount")+            Core.<*> (o Core..:? "contentDisposition")+            Core.<*> (o Core..:? "contentEncoding")+            Core.<*> (o Core..:? "contentLanguage")+            Core.<*> (o Core..:? "contentType")+            Core.<*> (o Core..:? "contexts")+            Core.<*> (o Core..:? "crc32c")+            Core.<*> (o Core..:? "customTime")+            Core.<*> (o Core..:? "customerEncryption")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "eventBasedHold")+            Core.<*> (o Core..:? "generation" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "hardDeleteTime")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#object")+            Core.<*> (o Core..:? "kmsKeyName")+            Core.<*> (o Core..:? "md5Hash")+            Core.<*> (o Core..:? "mediaLink")+            Core.<*> (o Core..:? "metadata")+            Core.<*> (o Core..:? "metageneration" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "name")+            Core.<*> (o Core..:? "owner")+            Core.<*> (o Core..:? "restoreToken")+            Core.<*> (o Core..:? "retention")+            Core.<*> (o Core..:? "retentionExpirationTime")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "size" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "softDeleteTime")+            Core.<*> (o Core..:? "storageClass")+            Core.<*> (o Core..:? "temporaryHold")+            Core.<*> (o Core..:? "timeCreated")+            Core.<*> (o Core..:? "timeDeleted")+            Core.<*> (o Core..:? "timeFinalized")+            Core.<*> (o Core..:? "timeStorageClassUpdated")+            Core.<*> (o Core..:? "updated")+      )++instance Core.ToJSON Object where+  toJSON Object {..} =+    Core.object+      ( Core.catMaybes+          [ ("acl" Core..=) Core.<$> acl,+            ("bucket" Core..=) Core.<$> bucket,+            ("cacheControl" Core..=) Core.<$> cacheControl,+            ("componentCount" Core..=) Core.<$> componentCount,+            ("contentDisposition" Core..=) Core.<$> contentDisposition,+            ("contentEncoding" Core..=) Core.<$> contentEncoding,+            ("contentLanguage" Core..=) Core.<$> contentLanguage,+            ("contentType" Core..=) Core.<$> contentType,+            ("contexts" Core..=) Core.<$> contexts,+            ("crc32c" Core..=) Core.<$> crc32c,+            ("customTime" Core..=) Core.<$> customTime,+            ("customerEncryption" Core..=) Core.<$> customerEncryption,+            ("etag" Core..=) Core.<$> etag,+            ("eventBasedHold" Core..=) Core.<$> eventBasedHold,+            ("generation" Core..=) Core.. Core.AsText Core.<$> generation,+            ("hardDeleteTime" Core..=) Core.<$> hardDeleteTime,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("kmsKeyName" Core..=) Core.<$> kmsKeyName,+            ("md5Hash" Core..=) Core.<$> md5Hash,+            ("mediaLink" Core..=) Core.<$> mediaLink,+            ("metadata" Core..=) Core.<$> metadata,+            ("metageneration" Core..=)+              Core.. Core.AsText+              Core.<$> metageneration,+            ("name" Core..=) Core.<$> name,+            ("owner" Core..=) Core.<$> owner,+            ("restoreToken" Core..=) Core.<$> restoreToken,+            ("retention" Core..=) Core.<$> retention,+            ("retentionExpirationTime" Core..=)+              Core.<$> retentionExpirationTime,+            ("selfLink" Core..=) Core.<$> selfLink,+            ("size" Core..=) Core.. Core.AsText Core.<$> size,+            ("softDeleteTime" Core..=) Core.<$> softDeleteTime,+            ("storageClass" Core..=) Core.<$> storageClass,+            ("temporaryHold" Core..=) Core.<$> temporaryHold,+            ("timeCreated" Core..=) Core.<$> timeCreated,+            ("timeDeleted" Core..=) Core.<$> timeDeleted,+            ("timeFinalized" Core..=) Core.<$> timeFinalized,+            ("timeStorageClassUpdated" Core..=)+              Core.<$> timeStorageClassUpdated,+            ("updated" Core..=) Core.<$> updated+          ]+      )++-- | An object.+--+-- /See:/ 'newObjectPatch' smart constructor.+data ObjectPatch = ObjectPatch+  { -- | Access controls on the object.+    acl :: (Core.PatchField [ObjectAccessControl]),+    -- | The name of the bucket containing this object.+    bucket :: (Core.PatchField Core.Text),+    -- | Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max-age=3600.+    cacheControl :: (Core.PatchField Core.Text),+    -- | Number of underlying components that make up this object. Components are accumulated by compose operations.+    componentCount :: (Core.PatchField Core.Int32),+    -- | Content-Disposition of the object data.+    contentDisposition :: (Core.PatchField Core.Text),+    -- | Content-Encoding of the object data.+    contentEncoding :: (Core.PatchField Core.Text),+    -- | Content-Language of the object data.+    contentLanguage :: (Core.PatchField Core.Text),+    -- | Content-Type of the object data. If an object is stored without a Content-Type, it is served as application\/octet-stream.+    contentType :: (Core.PatchField Core.Text),+    -- | User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.+    contexts :: (Core.PatchField Object_ContextsPatch),+    -- | CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see <https://cloud.google.com/storage/docs/data-validation Data Validation and Change Detection>.+    crc32c :: (Core.PatchField Core.Text),+    -- | A timestamp in RFC 3339 format specified by the user for an object.+    customTime :: (Core.PatchField Core.DateTime),+    -- | Metadata of customer-supplied encryption key, if the object is encrypted by such a key.+    customerEncryption :: (Core.PatchField Object_CustomerEncryptionPatch),+    -- | HTTP 1.1 Entity tag for the object.+    etag :: (Core.PatchField Core.Text),+    -- | Whether an object is under event-based hold. Event-based hold is a way to retain objects until an event occurs, which is signified by the hold\'s release (i.e. this value is set to false). After being released (set to false), such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is the loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false.+    eventBasedHold :: (Core.PatchField Core.Bool),+    -- | The content generation of this object. Used for object versioning.+    generation :: (Core.PatchField Core.Int64),+    -- | This is the time (in the future) when the soft-deleted object will no longer be restorable. It is equal to the soft delete time plus the current soft delete retention duration of the bucket.+    hardDeleteTime :: (Core.PatchField Core.DateTime),+    -- | The ID of the object, including the bucket name, object name, and generation number.+    id :: (Core.PatchField Core.Text),+    -- | The kind of item this is. For objects, this is always storage#object.+    kind :: (Core.PatchField Core.Text),+    -- | Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.+    kmsKeyName :: (Core.PatchField Core.Text),+    -- | MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see <https://cloud.google.com/storage/docs/data-validation Data Validation and Change Detection>.+    md5Hash :: (Core.PatchField Core.Text),+    -- | Media download link.+    mediaLink :: (Core.PatchField Core.Text),+    -- | User-provided metadata, in key\/value pairs.+    metadata :: (Core.PatchField Object_MetadataPatch),+    -- | The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.+    metageneration :: (Core.PatchField Core.Int64),+    -- | The name of the object. Required if not specified by URL parameter.+    name :: (Core.PatchField Core.Text),+    -- | The owner of the object. This will always be the uploader of the object.+    owner :: (Core.PatchField Object_OwnerPatch),+    -- | Restore token used to differentiate deleted objects with the same name and generation. This field is only returned for deleted objects in hierarchical namespace buckets.+    restoreToken :: (Core.PatchField Core.Text),+    -- | A collection of object level retention parameters.+    retention :: (Core.PatchField Object_RetentionPatch),+    -- | A server-determined value that specifies the earliest time that the object\'s retention period expires. This value is in RFC 3339 format. Note 1: This field is not provided for objects with an active event-based hold, since retention expiration is unknown until the hold is removed. Note 2: This value can be provided even when temporary hold is set (so that the user can reason about policy without having to first unset the temporary hold).+    retentionExpirationTime :: (Core.PatchField Core.DateTime),+    -- | The link to this object.+    selfLink :: (Core.PatchField Core.Text),+    -- | Content-Length of the data in bytes.+    size :: (Core.PatchField Core.Word64),+    -- | The time at which the object became soft-deleted in RFC 3339 format.+    softDeleteTime :: (Core.PatchField Core.DateTime),+    -- | Storage class of the object.+    storageClass :: (Core.PatchField Core.Text),+    -- | Whether an object is under temporary hold. While this flag is set to true, the object is protected against deletion and overwrites. A common use case of this flag is regulatory investigations where objects need to be retained while the investigation is ongoing. Note that unlike event-based hold, temporary hold does not impact retention expiration time of an object.+    temporaryHold :: (Core.PatchField Core.Bool),+    -- | The creation time of the object in RFC 3339 format.+    timeCreated :: (Core.PatchField Core.DateTime),+    -- | The time at which the object became noncurrent in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.+    timeDeleted :: (Core.PatchField Core.DateTime),+    -- | The time when the object was finalized.+    timeFinalized :: (Core.PatchField Core.DateTime),+    -- | The time at which the object\'s storage class was last changed. When the object is initially created, it will be set to timeCreated.+    timeStorageClassUpdated :: (Core.PatchField Core.DateTime),+    -- | The modification time of the object metadata in RFC 3339 format. Set initially to object creation time and then updated whenever any metadata of the object changes. This includes changes made by a requester, such as modifying custom metadata, as well as changes made by Cloud Storage on behalf of a requester, such as changing the storage class based on an Object Lifecycle Configuration.+    updated :: (Core.PatchField Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ObjectPatch' with the minimum fields required to make a request.+newObjectPatch ::+  ObjectPatch+newObjectPatch =+  ObjectPatch+    { acl = Core.Omit,+      bucket = Core.Omit,+      cacheControl = Core.Omit,+      componentCount = Core.Omit,+      contentDisposition = Core.Omit,+      contentEncoding = Core.Omit,+      contentLanguage = Core.Omit,+      contentType = Core.Omit,+      contexts = Core.Omit,+      crc32c = Core.Omit,+      customTime = Core.Omit,+      customerEncryption = Core.Omit,+      etag = Core.Omit,+      eventBasedHold = Core.Omit,+      generation = Core.Omit,+      hardDeleteTime = Core.Omit,+      id = Core.Omit,+      kind = Core.Omit,+      kmsKeyName = Core.Omit,+      md5Hash = Core.Omit,+      mediaLink = Core.Omit,+      metadata = Core.Omit,+      metageneration = Core.Omit,+      name = Core.Omit,+      owner = Core.Omit,+      restoreToken = Core.Omit,+      retention = Core.Omit,+      retentionExpirationTime = Core.Omit,+      selfLink = Core.Omit,+      size = Core.Omit,+      softDeleteTime = Core.Omit,+      storageClass = Core.Omit,+      temporaryHold = Core.Omit,+      timeCreated = Core.Omit,+      timeDeleted = Core.Omit,+      timeFinalized = Core.Omit,+      timeStorageClassUpdated = Core.Omit,+      updated = Core.Omit+    }++instance Core.FromJSON ObjectPatch where+  parseJSON =+    Core.withObject+      "ObjectPatch"+      ( \o ->+          ObjectPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "acl" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "bucket" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "cacheControl" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "componentCount" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "contentDisposition" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "contentEncoding" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "contentLanguage" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "contentType" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "contexts" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "crc32c" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "customTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "customerEncryption" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "etag" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "eventBasedHold" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "generation"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "hardDeleteTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "id" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "kind" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "kmsKeyName" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "md5Hash" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "mediaLink" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "metadata" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "metageneration"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "name" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "owner" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "restoreToken" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "retention" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "retentionExpirationTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "selfLink" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "size"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "softDeleteTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "storageClass" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "temporaryHold" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "timeCreated" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "timeDeleted" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "timeFinalized" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "timeStorageClassUpdated" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "updated" o)+      )++instance Core.ToJSON ObjectPatch where+  toJSON ObjectPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "acl" acl,+            Core.patchField Core.toJSON "bucket" bucket,+            Core.patchField Core.toJSON "cacheControl" cacheControl,+            Core.patchField Core.toJSON "componentCount" componentCount,+            Core.patchField+              Core.toJSON+              "contentDisposition"+              contentDisposition,+            Core.patchField Core.toJSON "contentEncoding" contentEncoding,+            Core.patchField Core.toJSON "contentLanguage" contentLanguage,+            Core.patchField Core.toJSON "contentType" contentType,+            Core.patchField Core.toJSON "contexts" contexts,+            Core.patchField Core.toJSON "crc32c" crc32c,+            Core.patchField Core.toJSON "customTime" customTime,+            Core.patchField+              Core.toJSON+              "customerEncryption"+              customerEncryption,+            Core.patchField Core.toJSON "etag" etag,+            Core.patchField Core.toJSON "eventBasedHold" eventBasedHold,+            Core.patchField+              (Core.toJSON Core.. Core.AsText)+              "generation"+              generation,+            Core.patchField Core.toJSON "hardDeleteTime" hardDeleteTime,+            Core.patchField Core.toJSON "id" id,+            Core.patchField Core.toJSON "kind" kind,+            Core.patchField Core.toJSON "kmsKeyName" kmsKeyName,+            Core.patchField Core.toJSON "md5Hash" md5Hash,+            Core.patchField Core.toJSON "mediaLink" mediaLink,+            Core.patchField Core.toJSON "metadata" metadata,+            Core.patchField+              (Core.toJSON Core.. Core.AsText)+              "metageneration"+              metageneration,+            Core.patchField Core.toJSON "name" name,+            Core.patchField Core.toJSON "owner" owner,+            Core.patchField Core.toJSON "restoreToken" restoreToken,+            Core.patchField Core.toJSON "retention" retention,+            Core.patchField+              Core.toJSON+              "retentionExpirationTime"+              retentionExpirationTime,+            Core.patchField Core.toJSON "selfLink" selfLink,+            Core.patchField (Core.toJSON Core.. Core.AsText) "size" size,+            Core.patchField Core.toJSON "softDeleteTime" softDeleteTime,+            Core.patchField Core.toJSON "storageClass" storageClass,+            Core.patchField Core.toJSON "temporaryHold" temporaryHold,+            Core.patchField Core.toJSON "timeCreated" timeCreated,+            Core.patchField Core.toJSON "timeDeleted" timeDeleted,+            Core.patchField Core.toJSON "timeFinalized" timeFinalized,+            Core.patchField+              Core.toJSON+              "timeStorageClassUpdated"+              timeStorageClassUpdated,+            Core.patchField Core.toJSON "updated" updated+          ]+      )++-- | User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.+--+-- /See:/ 'newObject_Contexts' smart constructor.+newtype Object_Contexts = Object_Contexts+  { -- | User-defined object contexts.+    custom :: (Core.Maybe Object_Contexts_Custom)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_Contexts' with the minimum fields required to make a request.+newObject_Contexts ::+  Object_Contexts+newObject_Contexts = Object_Contexts {custom = Core.Nothing}++instance Core.FromJSON Object_Contexts where+  parseJSON =+    Core.withObject+      "Object_Contexts"+      (\o -> Object_Contexts Core.<$> (o Core..:? "custom"))++instance Core.ToJSON Object_Contexts where+  toJSON Object_Contexts {..} =+    Core.object (Core.catMaybes [("custom" Core..=) Core.<$> custom])++-- | User-defined or system-defined object contexts. Each object context is a key-payload pair, where the key provides the identification and the payload holds the associated value and additional metadata.+--+-- /See:/ 'newObject_ContextsPatch' smart constructor.+newtype Object_ContextsPatch = Object_ContextsPatch+  { -- | User-defined object contexts.+    custom :: (Core.PatchField Object_Contexts_CustomPatch)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_ContextsPatch' with the minimum fields required to make a request.+newObject_ContextsPatch ::+  Object_ContextsPatch+newObject_ContextsPatch = Object_ContextsPatch {custom = Core.Omit}++instance Core.FromJSON Object_ContextsPatch where+  parseJSON =+    Core.withObject+      "Object_ContextsPatch"+      ( \o ->+          Object_ContextsPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "custom" o)+      )++instance Core.ToJSON Object_ContextsPatch where+  toJSON Object_ContextsPatch {..} =+    Core.object+      (Core.catMaybes [Core.patchField Core.toJSON "custom" custom])++-- | User-defined object contexts.+--+-- /See:/ 'newObject_Contexts_Custom' smart constructor.+newtype Object_Contexts_Custom = Object_Contexts_Custom+  { -- | A single user-defined object context.+    additional :: (Core.HashMap Core.Text ObjectCustomContextPayload)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_Contexts_Custom' with the minimum fields required to make a request.+newObject_Contexts_Custom ::+  -- |  A single user-defined object context. See 'additional'.+  Core.HashMap Core.Text ObjectCustomContextPayload ->+  Object_Contexts_Custom+newObject_Contexts_Custom additional =+  Object_Contexts_Custom {additional = additional}++instance Core.FromJSON Object_Contexts_Custom where+  parseJSON =+    Core.withObject+      "Object_Contexts_Custom"+      (\o -> Object_Contexts_Custom Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Object_Contexts_Custom where+  toJSON Object_Contexts_Custom {..} = Core.toJSON additional++-- | User-defined object contexts.+--+-- /See:/ 'newObject_Contexts_CustomPatch' smart constructor.+newtype Object_Contexts_CustomPatch = Object_Contexts_CustomPatch+  { -- | A single user-defined object context.+    additional ::+      ( Core.HashMap+          Core.Text+          (Core.Maybe ObjectCustomContextPayloadPatch)+      )+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_Contexts_CustomPatch' with the minimum fields required to make a request.+newObject_Contexts_CustomPatch ::+  -- |  A single user-defined object context. See 'additional'.+  Core.HashMap Core.Text (Core.Maybe ObjectCustomContextPayloadPatch) ->+  Object_Contexts_CustomPatch+newObject_Contexts_CustomPatch additional =+  Object_Contexts_CustomPatch {additional = additional}++instance Core.FromJSON Object_Contexts_CustomPatch where+  parseJSON =+    Core.withObject+      "Object_Contexts_CustomPatch"+      ( \o ->+          Object_Contexts_CustomPatch Core.<$> (Core.parseJSONObject o)+      )++instance Core.ToJSON Object_Contexts_CustomPatch where+  toJSON Object_Contexts_CustomPatch {..} = Core.toJSON additional++-- | Metadata of customer-supplied encryption key, if the object is encrypted by such a key.+--+-- /See:/ 'newObject_CustomerEncryption' smart constructor.+data Object_CustomerEncryption = Object_CustomerEncryption+  { -- | The encryption algorithm.+    encryptionAlgorithm :: (Core.Maybe Core.Text),+    -- | SHA256 hash value of the encryption key.+    keySha256 :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_CustomerEncryption' with the minimum fields required to make a request.+newObject_CustomerEncryption ::+  Object_CustomerEncryption+newObject_CustomerEncryption =+  Object_CustomerEncryption+    { encryptionAlgorithm = Core.Nothing,+      keySha256 = Core.Nothing+    }++instance Core.FromJSON Object_CustomerEncryption where+  parseJSON =+    Core.withObject+      "Object_CustomerEncryption"+      ( \o ->+          Object_CustomerEncryption+            Core.<$> (o Core..:? "encryptionAlgorithm")+            Core.<*> (o Core..:? "keySha256")+      )++instance Core.ToJSON Object_CustomerEncryption where+  toJSON Object_CustomerEncryption {..} =+    Core.object+      ( Core.catMaybes+          [ ("encryptionAlgorithm" Core..=) Core.<$> encryptionAlgorithm,+            ("keySha256" Core..=) Core.<$> keySha256+          ]+      )++-- | Metadata of customer-supplied encryption key, if the object is encrypted by such a key.+--+-- /See:/ 'newObject_CustomerEncryptionPatch' smart constructor.+data Object_CustomerEncryptionPatch = Object_CustomerEncryptionPatch+  { -- | The encryption algorithm.+    encryptionAlgorithm :: (Core.PatchField Core.Text),+    -- | SHA256 hash value of the encryption key.+    keySha256 :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_CustomerEncryptionPatch' with the minimum fields required to make a request.+newObject_CustomerEncryptionPatch ::+  Object_CustomerEncryptionPatch+newObject_CustomerEncryptionPatch =+  Object_CustomerEncryptionPatch+    { encryptionAlgorithm = Core.Omit,+      keySha256 = Core.Omit+    }++instance Core.FromJSON Object_CustomerEncryptionPatch where+  parseJSON =+    Core.withObject+      "Object_CustomerEncryptionPatch"+      ( \o ->+          Object_CustomerEncryptionPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "encryptionAlgorithm" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "keySha256" o)+      )++instance Core.ToJSON Object_CustomerEncryptionPatch where+  toJSON Object_CustomerEncryptionPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField+              Core.toJSON+              "encryptionAlgorithm"+              encryptionAlgorithm,+            Core.patchField Core.toJSON "keySha256" keySha256+          ]+      )++-- | User-provided metadata, in key\/value pairs.+--+-- /See:/ 'newObject_Metadata' smart constructor.+newtype Object_Metadata = Object_Metadata+  { -- | An individual metadata entry.+    additional :: (Core.HashMap Core.Text Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_Metadata' with the minimum fields required to make a request.+newObject_Metadata ::+  -- |  An individual metadata entry. See 'additional'.+  Core.HashMap Core.Text Core.Text ->+  Object_Metadata+newObject_Metadata additional =+  Object_Metadata {additional = additional}++instance Core.FromJSON Object_Metadata where+  parseJSON =+    Core.withObject+      "Object_Metadata"+      (\o -> Object_Metadata Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Object_Metadata where+  toJSON Object_Metadata {..} = Core.toJSON additional++-- | User-provided metadata, in key\/value pairs.+--+-- /See:/ 'newObject_MetadataPatch' smart constructor.+newtype Object_MetadataPatch = Object_MetadataPatch+  { -- | An individual metadata entry.+    additional :: (Core.HashMap Core.Text (Core.Maybe Core.Text))+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_MetadataPatch' with the minimum fields required to make a request.+newObject_MetadataPatch ::+  -- |  An individual metadata entry. See 'additional'.+  Core.HashMap Core.Text (Core.Maybe Core.Text) ->+  Object_MetadataPatch+newObject_MetadataPatch additional =+  Object_MetadataPatch {additional = additional}++instance Core.FromJSON Object_MetadataPatch where+  parseJSON =+    Core.withObject+      "Object_MetadataPatch"+      (\o -> Object_MetadataPatch Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Object_MetadataPatch where+  toJSON Object_MetadataPatch {..} = Core.toJSON additional++-- | The owner of the object. This will always be the uploader of the object.+--+-- /See:/ 'newObject_Owner' smart constructor.+data Object_Owner = Object_Owner+  { -- | The entity, in the form user-userId.+    entity :: (Core.Maybe Core.Text),+    -- | The ID for the entity.+    entityId :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_Owner' with the minimum fields required to make a request.+newObject_Owner ::+  Object_Owner+newObject_Owner =+  Object_Owner {entity = Core.Nothing, entityId = Core.Nothing}++instance Core.FromJSON Object_Owner where+  parseJSON =+    Core.withObject+      "Object_Owner"+      ( \o ->+          Object_Owner+            Core.<$> (o Core..:? "entity")+            Core.<*> (o Core..:? "entityId")+      )++instance Core.ToJSON Object_Owner where+  toJSON Object_Owner {..} =+    Core.object+      ( Core.catMaybes+          [ ("entity" Core..=) Core.<$> entity,+            ("entityId" Core..=) Core.<$> entityId+          ]+      )++-- | The owner of the object. This will always be the uploader of the object.+--+-- /See:/ 'newObject_OwnerPatch' smart constructor.+data Object_OwnerPatch = Object_OwnerPatch+  { -- | The entity, in the form user-userId.+    entity :: (Core.PatchField Core.Text),+    -- | The ID for the entity.+    entityId :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_OwnerPatch' with the minimum fields required to make a request.+newObject_OwnerPatch ::+  Object_OwnerPatch+newObject_OwnerPatch =+  Object_OwnerPatch {entity = Core.Omit, entityId = Core.Omit}++instance Core.FromJSON Object_OwnerPatch where+  parseJSON =+    Core.withObject+      "Object_OwnerPatch"+      ( \o ->+          Object_OwnerPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "entity" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "entityId" o)+      )++instance Core.ToJSON Object_OwnerPatch where+  toJSON Object_OwnerPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "entity" entity,+            Core.patchField Core.toJSON "entityId" entityId+          ]+      )++-- | A collection of object level retention parameters.+--+-- /See:/ 'newObject_Retention' smart constructor.+data Object_Retention = Object_Retention+  { -- | The bucket\'s object retention mode, can only be Unlocked or Locked.+    mode :: (Core.Maybe Core.Text),+    -- | A time in RFC 3339 format until which object retention protects this object.+    retainUntilTime :: (Core.Maybe Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_Retention' with the minimum fields required to make a request.+newObject_Retention ::+  Object_Retention+newObject_Retention =+  Object_Retention+    { mode = Core.Nothing,+      retainUntilTime = Core.Nothing+    }++instance Core.FromJSON Object_Retention where+  parseJSON =+    Core.withObject+      "Object_Retention"+      ( \o ->+          Object_Retention+            Core.<$> (o Core..:? "mode")+            Core.<*> (o Core..:? "retainUntilTime")+      )++instance Core.ToJSON Object_Retention where+  toJSON Object_Retention {..} =+    Core.object+      ( Core.catMaybes+          [ ("mode" Core..=) Core.<$> mode,+            ("retainUntilTime" Core..=) Core.<$> retainUntilTime+          ]+      )++-- | A collection of object level retention parameters.+--+-- /See:/ 'newObject_RetentionPatch' smart constructor.+data Object_RetentionPatch = Object_RetentionPatch+  { -- | The bucket\'s object retention mode, can only be Unlocked or Locked.+    mode :: (Core.PatchField Core.Text),+    -- | A time in RFC 3339 format until which object retention protects this object.+    retainUntilTime :: (Core.PatchField Core.DateTime)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Object_RetentionPatch' with the minimum fields required to make a request.+newObject_RetentionPatch ::+  Object_RetentionPatch+newObject_RetentionPatch =+  Object_RetentionPatch+    { mode = Core.Omit,+      retainUntilTime = Core.Omit+    }++instance Core.FromJSON Object_RetentionPatch where+  parseJSON =+    Core.withObject+      "Object_RetentionPatch"+      ( \o ->+          Object_RetentionPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "mode" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "retainUntilTime" o)+      )++instance Core.ToJSON Object_RetentionPatch where+  toJSON Object_RetentionPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "mode" mode,+            Core.patchField Core.toJSON "retainUntilTime" retainUntilTime+          ]+      )++-- | An access-control entry.+--+-- /See:/ 'newObjectAccessControl' smart constructor.+data ObjectAccessControl = ObjectAccessControl+  { -- | The name of the bucket.+    bucket :: (Core.Maybe Core.Text),+    -- | The domain associated with the entity, if any.+    domain :: (Core.Maybe Core.Text),+    -- | The email address associated with the entity, if any.+    email :: (Core.Maybe Core.Text),+    -- | The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz\@example.com would be user-liz\@example.com. - The group example\@googlegroups.com would be group-example\@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.+    entity :: (Core.Maybe Core.Text),+    -- | The ID for the entity, if any.+    entityId :: (Core.Maybe Core.Text),+    -- | HTTP 1.1 Entity tag for the access-control entry.+    etag :: (Core.Maybe Core.Text),+    -- | The content generation of the object, if applied to an object.+    generation :: (Core.Maybe Core.Int64),+    -- | The ID of the access-control entry.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For object access control entries, this is always storage#objectAccessControl.+    kind :: Core.Text,+    -- | The name of the object, if applied to an object.+    object :: (Core.Maybe Core.Text),+    -- | The project team associated with the entity, if any.+    projectTeam :: (Core.Maybe ObjectAccessControl_ProjectTeam),+    -- | The access permission for the entity.+    role' :: (Core.Maybe Core.Text),+    -- | The link to this access-control entry.+    selfLink :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ObjectAccessControl' with the minimum fields required to make a request.+newObjectAccessControl ::+  ObjectAccessControl+newObjectAccessControl =+  ObjectAccessControl+    { bucket = Core.Nothing,+      domain = Core.Nothing,+      email = Core.Nothing,+      entity = Core.Nothing,+      entityId = Core.Nothing,+      etag = Core.Nothing,+      generation = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#objectAccessControl",+      object = Core.Nothing,+      projectTeam = Core.Nothing,+      role' = Core.Nothing,+      selfLink = Core.Nothing+    }++instance Core.FromJSON ObjectAccessControl where+  parseJSON =+    Core.withObject+      "ObjectAccessControl"+      ( \o ->+          ObjectAccessControl+            Core.<$> (o Core..:? "bucket")+            Core.<*> (o Core..:? "domain")+            Core.<*> (o Core..:? "email")+            Core.<*> (o Core..:? "entity")+            Core.<*> (o Core..:? "entityId")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "generation" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#objectAccessControl")+            Core.<*> (o Core..:? "object")+            Core.<*> (o Core..:? "projectTeam")+            Core.<*> (o Core..:? "role")+            Core.<*> (o Core..:? "selfLink")+      )++instance Core.ToJSON ObjectAccessControl where+  toJSON ObjectAccessControl {..} =+    Core.object+      ( Core.catMaybes+          [ ("bucket" Core..=) Core.<$> bucket,+            ("domain" Core..=) Core.<$> domain,+            ("email" Core..=) Core.<$> email,+            ("entity" Core..=) Core.<$> entity,+            ("entityId" Core..=) Core.<$> entityId,+            ("etag" Core..=) Core.<$> etag,+            ("generation" Core..=) Core.. Core.AsText Core.<$> generation,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("object" Core..=) Core.<$> object,+            ("projectTeam" Core..=) Core.<$> projectTeam,+            ("role" Core..=) Core.<$> role',+            ("selfLink" Core..=) Core.<$> selfLink+          ]+      )++-- | An access-control entry.+--+-- /See:/ 'newObjectAccessControlInsertInput' smart constructor.+data ObjectAccessControlInsertInput = ObjectAccessControlInsertInput+  { -- | The name of the bucket.+    bucket :: (Core.Maybe Core.Text),+    -- | The domain associated with the entity, if any.+    domain :: (Core.Maybe Core.Text),+    -- | The email address associated with the entity, if any.+    email :: (Core.Maybe Core.Text),+    -- | The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz\@example.com would be user-liz\@example.com. - The group example\@googlegroups.com would be group-example\@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.+    entity :: Core.Text,+    -- | The ID for the entity, if any.+    entityId :: (Core.Maybe Core.Text),+    -- | HTTP 1.1 Entity tag for the access-control entry.+    etag :: (Core.Maybe Core.Text),+    -- | The content generation of the object, if applied to an object.+    generation :: (Core.Maybe Core.Int64),+    -- | The ID of the access-control entry.+    id :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For object access control entries, this is always storage#objectAccessControl.+    kind :: Core.Text,+    -- | The name of the object, if applied to an object.+    object :: (Core.Maybe Core.Text),+    -- | The project team associated with the entity, if any.+    projectTeam :: (Core.Maybe ObjectAccessControl_ProjectTeam),+    -- | The access permission for the entity.+    role' :: Core.Text,+    -- | The link to this access-control entry.+    selfLink :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ObjectAccessControlInsertInput' with the minimum fields required to make a request.+newObjectAccessControlInsertInput ::+  -- |  The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz\@example.com would be user-liz\@example.com. - The group example\@googlegroups.com would be group-example\@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com. See 'entity'.+  Core.Text ->+  -- |  The access permission for the entity. See 'role''.+  Core.Text ->+  ObjectAccessControlInsertInput+newObjectAccessControlInsertInput entity role' =+  ObjectAccessControlInsertInput+    { bucket = Core.Nothing,+      domain = Core.Nothing,+      email = Core.Nothing,+      entity = entity,+      entityId = Core.Nothing,+      etag = Core.Nothing,+      generation = Core.Nothing,+      id = Core.Nothing,+      kind = "storage#objectAccessControl",+      object = Core.Nothing,+      projectTeam = Core.Nothing,+      role' = role',+      selfLink = Core.Nothing+    }++instance Core.FromJSON ObjectAccessControlInsertInput where+  parseJSON =+    Core.withObject+      "ObjectAccessControlInsertInput"+      ( \o ->+          ObjectAccessControlInsertInput+            Core.<$> (o Core..:? "bucket")+            Core.<*> (o Core..:? "domain")+            Core.<*> (o Core..:? "email")+            Core.<*> (o Core..: "entity")+            Core.<*> (o Core..:? "entityId")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "generation" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "kind" Core..!= "storage#objectAccessControl")+            Core.<*> (o Core..:? "object")+            Core.<*> (o Core..:? "projectTeam")+            Core.<*> (o Core..: "role")+            Core.<*> (o Core..:? "selfLink")+      )++instance Core.ToJSON ObjectAccessControlInsertInput where+  toJSON ObjectAccessControlInsertInput {..} =+    Core.object+      ( Core.catMaybes+          [ ("bucket" Core..=) Core.<$> bucket,+            ("domain" Core..=) Core.<$> domain,+            ("email" Core..=) Core.<$> email,+            Core.Just ("entity" Core..= entity),+            ("entityId" Core..=) Core.<$> entityId,+            ("etag" Core..=) Core.<$> etag,+            ("generation" Core..=) Core.. Core.AsText Core.<$> generation,+            ("id" Core..=) Core.<$> id,+            Core.Just ("kind" Core..= kind),+            ("object" Core..=) Core.<$> object,+            ("projectTeam" Core..=) Core.<$> projectTeam,+            Core.Just ("role" Core..= role'),+            ("selfLink" Core..=) Core.<$> selfLink+          ]+      )++-- | An access-control entry.+--+-- /See:/ 'newObjectAccessControlPatch' smart constructor.+data ObjectAccessControlPatch = ObjectAccessControlPatch+  { -- | The name of the bucket.+    bucket :: (Core.PatchField Core.Text),+    -- | The domain associated with the entity, if any.+    domain :: (Core.PatchField Core.Text),+    -- | The email address associated with the entity, if any.+    email :: (Core.PatchField Core.Text),+    -- | The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz\@example.com would be user-liz\@example.com. - The group example\@googlegroups.com would be group-example\@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.+    entity :: (Core.PatchField Core.Text),+    -- | The ID for the entity, if any.+    entityId :: (Core.PatchField Core.Text),+    -- | HTTP 1.1 Entity tag for the access-control entry.+    etag :: (Core.PatchField Core.Text),+    -- | The content generation of the object, if applied to an object.+    generation :: (Core.PatchField Core.Int64),+    -- | The ID of the access-control entry.+    id :: (Core.PatchField Core.Text),+    -- | The kind of item this is. For object access control entries, this is always storage#objectAccessControl.+    kind :: (Core.PatchField Core.Text),+    -- | The name of the object, if applied to an object.+    object :: (Core.PatchField Core.Text),+    -- | The project team associated with the entity, if any.+    projectTeam :: (Core.PatchField ObjectAccessControl_ProjectTeamPatch),+    -- | The access permission for the entity.+    role' :: (Core.PatchField Core.Text),+    -- | The link to this access-control entry.+    selfLink :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ObjectAccessControlPatch' with the minimum fields required to make a request.+newObjectAccessControlPatch ::+  ObjectAccessControlPatch+newObjectAccessControlPatch =+  ObjectAccessControlPatch+    { bucket = Core.Omit,+      domain = Core.Omit,+      email = Core.Omit,+      entity = Core.Omit,+      entityId = Core.Omit,+      etag = Core.Omit,+      generation = Core.Omit,+      id = Core.Omit,+      kind = Core.Omit,+      object = Core.Omit,+      projectTeam = Core.Omit,+      role' = Core.Omit,+      selfLink = Core.Omit+    }++instance Core.FromJSON ObjectAccessControlPatch where+  parseJSON =+    Core.withObject+      "ObjectAccessControlPatch"+      ( \o ->+          ObjectAccessControlPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "bucket" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "domain" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "email" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "entity" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "entityId" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "etag" o)+            Core.<*> ( Core.parsePatchField+                         (\value -> Core.fromAsText Core.<$> Core.parseJSON value)+                         "generation"+                         o+                     )+            Core.<*> (Core.parsePatchField Core.parseJSON "id" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "kind" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "object" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "projectTeam" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "role" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "selfLink" o)+      )++instance Core.ToJSON ObjectAccessControlPatch where+  toJSON ObjectAccessControlPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "bucket" bucket,+            Core.patchField Core.toJSON "domain" domain,+            Core.patchField Core.toJSON "email" email,+            Core.patchField Core.toJSON "entity" entity,+            Core.patchField Core.toJSON "entityId" entityId,+            Core.patchField Core.toJSON "etag" etag,+            Core.patchField+              (Core.toJSON Core.. Core.AsText)+              "generation"+              generation,+            Core.patchField Core.toJSON "id" id,+            Core.patchField Core.toJSON "kind" kind,+            Core.patchField Core.toJSON "object" object,+            Core.patchField Core.toJSON "projectTeam" projectTeam,+            Core.patchField Core.toJSON "role" role',+            Core.patchField Core.toJSON "selfLink" selfLink+          ]+      )++-- | The project team associated with the entity, if any.+--+-- /See:/ 'newObjectAccessControl_ProjectTeam' smart constructor.+data ObjectAccessControl_ProjectTeam = ObjectAccessControl_ProjectTeam+  { -- | The project number.+    projectNumber :: (Core.Maybe Core.Text),+    -- | The team.+    team :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ObjectAccessControl_ProjectTeam' with the minimum fields required to make a request.+newObjectAccessControl_ProjectTeam ::+  ObjectAccessControl_ProjectTeam+newObjectAccessControl_ProjectTeam =+  ObjectAccessControl_ProjectTeam+    { projectNumber = Core.Nothing,+      team = Core.Nothing+    }++instance Core.FromJSON ObjectAccessControl_ProjectTeam where+  parseJSON =+    Core.withObject+      "ObjectAccessControl_ProjectTeam"+      ( \o ->+          ObjectAccessControl_ProjectTeam+            Core.<$> (o Core..:? "projectNumber")+            Core.<*> (o Core..:? "team")+      )++instance Core.ToJSON ObjectAccessControl_ProjectTeam where+  toJSON ObjectAccessControl_ProjectTeam {..} =+    Core.object+      ( Core.catMaybes+          [ ("projectNumber" Core..=) Core.<$> projectNumber,+            ("team" Core..=) Core.<$> team+          ]+      )++-- | The project team associated with the entity, if any.+--+-- /See:/ 'newObjectAccessControl_ProjectTeamPatch' smart constructor.+data ObjectAccessControl_ProjectTeamPatch = ObjectAccessControl_ProjectTeamPatch+  { -- | The project number.+    projectNumber :: (Core.PatchField Core.Text),+    -- | The team.+    team :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ObjectAccessControl_ProjectTeamPatch' with the minimum fields required to make a request.+newObjectAccessControl_ProjectTeamPatch ::+  ObjectAccessControl_ProjectTeamPatch+newObjectAccessControl_ProjectTeamPatch =+  ObjectAccessControl_ProjectTeamPatch+    { projectNumber = Core.Omit,+      team = Core.Omit+    }++instance Core.FromJSON ObjectAccessControl_ProjectTeamPatch where+  parseJSON =+    Core.withObject+      "ObjectAccessControl_ProjectTeamPatch"+      ( \o ->+          ObjectAccessControl_ProjectTeamPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "projectNumber" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "team" o)+      )++instance Core.ToJSON ObjectAccessControl_ProjectTeamPatch where+  toJSON ObjectAccessControl_ProjectTeamPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "projectNumber" projectNumber,+            Core.patchField Core.toJSON "team" team+          ]+      )++-- | An access-control list.+--+-- /See:/ 'newObjectAccessControls' smart constructor.+data ObjectAccessControls = ObjectAccessControls+  { -- | The list of items.+    items :: (Core.Maybe [ObjectAccessControl]),+    -- | The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.+    kind :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ObjectAccessControls' with the minimum fields required to make a request.+newObjectAccessControls ::+  ObjectAccessControls+newObjectAccessControls =+  ObjectAccessControls+    { items = Core.Nothing,+      kind = "storage#objectAccessControls"+    }++instance Core.FromJSON ObjectAccessControls where+  parseJSON =+    Core.withObject+      "ObjectAccessControls"+      ( \o ->+          ObjectAccessControls+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#objectAccessControls")+      )++instance Core.ToJSON ObjectAccessControls where+  toJSON ObjectAccessControls {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind)+          ]+      )++-- | The payload of a single user-defined object context.+--+-- /See:/ 'newObjectCustomContextPayload' smart constructor.+data ObjectCustomContextPayload = ObjectCustomContextPayload+  { -- | The time at which the object context was created in RFC 3339 format.+    createTime :: (Core.Maybe Core.DateTime),+    -- | The type URL of the object context\'s extended data.+    extendedDataTypeUrl :: (Core.Maybe Core.Text),+    -- | The time at which the object context was last updated in RFC 3339 format.+    updateTime :: (Core.Maybe Core.DateTime),+    -- | The value of the object context.+    value :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ObjectCustomContextPayload' with the minimum fields required to make a request.+newObjectCustomContextPayload ::+  ObjectCustomContextPayload+newObjectCustomContextPayload =+  ObjectCustomContextPayload+    { createTime = Core.Nothing,+      extendedDataTypeUrl = Core.Nothing,+      updateTime = Core.Nothing,+      value = Core.Nothing+    }++instance Core.FromJSON ObjectCustomContextPayload where+  parseJSON =+    Core.withObject+      "ObjectCustomContextPayload"+      ( \o ->+          ObjectCustomContextPayload+            Core.<$> (o Core..:? "createTime")+            Core.<*> (o Core..:? "extendedDataTypeUrl")+            Core.<*> (o Core..:? "updateTime")+            Core.<*> (o Core..:? "value")+      )++instance Core.ToJSON ObjectCustomContextPayload where+  toJSON ObjectCustomContextPayload {..} =+    Core.object+      ( Core.catMaybes+          [ ("createTime" Core..=) Core.<$> createTime,+            ("extendedDataTypeUrl" Core..=) Core.<$> extendedDataTypeUrl,+            ("updateTime" Core..=) Core.<$> updateTime,+            ("value" Core..=) Core.<$> value+          ]+      )++-- | The payload of a single user-defined object context.+--+-- /See:/ 'newObjectCustomContextPayloadPatch' smart constructor.+data ObjectCustomContextPayloadPatch = ObjectCustomContextPayloadPatch+  { -- | The time at which the object context was created in RFC 3339 format.+    createTime :: (Core.PatchField Core.DateTime),+    -- | The type URL of the object context\'s extended data.+    extendedDataTypeUrl :: (Core.PatchField Core.Text),+    -- | The time at which the object context was last updated in RFC 3339 format.+    updateTime :: (Core.PatchField Core.DateTime),+    -- | The value of the object context.+    value :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ObjectCustomContextPayloadPatch' with the minimum fields required to make a request.+newObjectCustomContextPayloadPatch ::+  ObjectCustomContextPayloadPatch+newObjectCustomContextPayloadPatch =+  ObjectCustomContextPayloadPatch+    { createTime = Core.Omit,+      extendedDataTypeUrl = Core.Omit,+      updateTime = Core.Omit,+      value = Core.Omit+    }++instance Core.FromJSON ObjectCustomContextPayloadPatch where+  parseJSON =+    Core.withObject+      "ObjectCustomContextPayloadPatch"+      ( \o ->+          ObjectCustomContextPayloadPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "createTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "extendedDataTypeUrl" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "updateTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "value" o)+      )++instance Core.ToJSON ObjectCustomContextPayloadPatch where+  toJSON ObjectCustomContextPayloadPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "createTime" createTime,+            Core.patchField+              Core.toJSON+              "extendedDataTypeUrl"+              extendedDataTypeUrl,+            Core.patchField Core.toJSON "updateTime" updateTime,+            Core.patchField Core.toJSON "value" value+          ]+      )++-- | A list of objects.+--+-- /See:/ 'newObjects' smart constructor.+data Objects = Objects+  { -- | The list of items.+    items :: (Core.Maybe [Object]),+    -- | The kind of item this is. For lists of objects, this is always storage#objects.+    kind :: Core.Text,+    -- | The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.+    nextPageToken :: (Core.Maybe Core.Text),+    -- | The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.+    prefixes :: (Core.Maybe [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Objects' with the minimum fields required to make a request.+newObjects ::+  Objects+newObjects =+  Objects+    { items = Core.Nothing,+      kind = "storage#objects",+      nextPageToken = Core.Nothing,+      prefixes = Core.Nothing+    }++instance Core.FromJSON Objects where+  parseJSON =+    Core.withObject+      "Objects"+      ( \o ->+          Objects+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#objects")+            Core.<*> (o Core..:? "nextPageToken")+            Core.<*> (o Core..:? "prefixes")+      )++instance Core.ToJSON Objects where+  toJSON Objects {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind),+            ("nextPageToken" Core..=) Core.<$> nextPageToken,+            ("prefixes" Core..=) Core.<$> prefixes+          ]+      )++-- | A bucket\/object\/managedFolder IAM policy.+--+-- /See:/ 'newPolicy' smart constructor.+data Policy = Policy+  { -- | An association between a role, which comes with a set of permissions, and members who may assume that role.+    bindings :: (Core.Maybe [Policy_BindingsItem]),+    -- | HTTP 1.1 Entity tag for the policy.+    etag :: (Core.Maybe Core.Base64),+    -- | The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.+    kind :: Core.Text,+    -- | The ID of the resource to which this policy belongs. Will be of the form projects\//\/buckets\/bucket for buckets, projects\//\/buckets\/bucket\/objects\/object for objects, and projects\//\/buckets\/bucket\/managedFolders\/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects\//\/buckets\/my-bucket\/objects\/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.+    resourceId :: (Core.Maybe Core.Text),+    -- | The IAM policy format version.+    version :: (Core.Maybe Core.Int32)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Policy' with the minimum fields required to make a request.+newPolicy ::+  Policy+newPolicy =+  Policy+    { bindings = Core.Nothing,+      etag = Core.Nothing,+      kind = "storage#policy",+      resourceId = Core.Nothing,+      version = Core.Nothing+    }++instance Core.FromJSON Policy where+  parseJSON =+    Core.withObject+      "Policy"+      ( \o ->+          Policy+            Core.<$> (o Core..:? "bindings")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "kind" Core..!= "storage#policy")+            Core.<*> (o Core..:? "resourceId")+            Core.<*> (o Core..:? "version")+      )++instance Core.ToJSON Policy where+  toJSON Policy {..} =+    Core.object+      ( Core.catMaybes+          [ ("bindings" Core..=) Core.<$> bindings,+            ("etag" Core..=) Core.<$> etag,+            Core.Just ("kind" Core..= kind),+            ("resourceId" Core..=) Core.<$> resourceId,+            ("version" Core..=) Core.<$> version+          ]+      )++-- | A bucket\/object\/managedFolder IAM policy.+--+-- /See:/ 'newPolicySetIamPolicyInput' smart constructor.+data PolicySetIamPolicyInput = PolicySetIamPolicyInput+  { -- | An association between a role, which comes with a set of permissions, and members who may assume that role.+    bindings :: [Policy_BindingsItemSetIamPolicyInput],+    -- | HTTP 1.1 Entity tag for the policy.+    etag :: (Core.Maybe Core.Base64),+    -- | The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.+    kind :: Core.Text,+    -- | The ID of the resource to which this policy belongs. Will be of the form projects\//\/buckets\/bucket for buckets, projects\//\/buckets\/bucket\/objects\/object for objects, and projects\//\/buckets\/bucket\/managedFolders\/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects\//\/buckets\/my-bucket\/objects\/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.+    resourceId :: (Core.Maybe Core.Text),+    -- | The IAM policy format version.+    version :: (Core.Maybe Core.Int32)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PolicySetIamPolicyInput' with the minimum fields required to make a request.+newPolicySetIamPolicyInput ::+  -- |  An association between a role, which comes with a set of permissions, and members who may assume that role. See 'bindings'.+  [Policy_BindingsItemSetIamPolicyInput] ->+  PolicySetIamPolicyInput+newPolicySetIamPolicyInput bindings =+  PolicySetIamPolicyInput+    { bindings = bindings,+      etag = Core.Nothing,+      kind = "storage#policy",+      resourceId = Core.Nothing,+      version = Core.Nothing+    }++instance Core.FromJSON PolicySetIamPolicyInput where+  parseJSON =+    Core.withObject+      "PolicySetIamPolicyInput"+      ( \o ->+          PolicySetIamPolicyInput+            Core.<$> (o Core..: "bindings")+            Core.<*> (o Core..:? "etag")+            Core.<*> (o Core..:? "kind" Core..!= "storage#policy")+            Core.<*> (o Core..:? "resourceId")+            Core.<*> (o Core..:? "version")+      )++instance Core.ToJSON PolicySetIamPolicyInput where+  toJSON PolicySetIamPolicyInput {..} =+    Core.object+      ( Core.catMaybes+          [ Core.Just ("bindings" Core..= bindings),+            ("etag" Core..=) Core.<$> etag,+            Core.Just ("kind" Core..= kind),+            ("resourceId" Core..=) Core.<$> resourceId,+            ("version" Core..=) Core.<$> version+          ]+      )++--+-- /See:/ 'newPolicy_BindingsItem' smart constructor.+data Policy_BindingsItem = Policy_BindingsItem+  { -- | The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.+    condition :: (Core.Maybe Expr),+    -- | A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:+    -- - allUsers - A special identifier that represents anyone on the internet; with or without a Google account.+    -- - allAuthenticatedUsers - A special identifier that represents anyone who is authenticated with a Google account or a service account.+    -- - user:emailid - An email address that represents a specific account. For example, user:alice\@gmail.com or user:joe\@example.com.+    -- - serviceAccount:emailid - An email address that represents a service account. For example, serviceAccount:my-other-app\@appspot.gserviceaccount.com .+    -- - group:emailid - An email address that represents a Google group. For example, group:admins\@example.com.+    -- - domain:domain - A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.+    -- - projectOwner:projectid - Owners of the given project. For example, projectOwner:my-example-project+    -- - projectEditor:projectid - Editors of the given project. For example, projectEditor:my-example-project+    -- - projectViewer:projectid - Viewers of the given project. For example, projectViewer:my-example-project+    members :: (Core.Maybe [Core.Text]),+    -- | The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles\/storage.specificRole. The new IAM roles are:+    -- - roles\/storage.admin - Full control of Google Cloud Storage resources.+    -- - roles\/storage.objectViewer - Read-Only access to Google Cloud Storage objects.+    -- - roles\/storage.objectCreator - Access to create objects in Google Cloud Storage.+    -- - roles\/storage.objectAdmin - Full control of Google Cloud Storage objects. The legacy IAM roles are:+    -- - roles\/storage.legacyObjectReader - Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.+    -- - roles\/storage.legacyObjectOwner - Read\/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.+    -- - roles\/storage.legacyBucketReader - Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.+    -- - roles\/storage.legacyBucketWriter - Read access to buckets with object listing\/creation\/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.+    -- - roles\/storage.legacyBucketOwner - Read and write access to existing buckets with object listing\/creation\/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.+    role' :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Policy_BindingsItem' with the minimum fields required to make a request.+newPolicy_BindingsItem ::+  Policy_BindingsItem+newPolicy_BindingsItem =+  Policy_BindingsItem+    { condition = Core.Nothing,+      members = Core.Nothing,+      role' = Core.Nothing+    }++instance Core.FromJSON Policy_BindingsItem where+  parseJSON =+    Core.withObject+      "Policy_BindingsItem"+      ( \o ->+          Policy_BindingsItem+            Core.<$> (o Core..:? "condition")+            Core.<*> (o Core..:? "members")+            Core.<*> (o Core..:? "role")+      )++instance Core.ToJSON Policy_BindingsItem where+  toJSON Policy_BindingsItem {..} =+    Core.object+      ( Core.catMaybes+          [ ("condition" Core..=) Core.<$> condition,+            ("members" Core..=) Core.<$> members,+            ("role" Core..=) Core.<$> role'+          ]+      )++--+-- /See:/ 'newPolicy_BindingsItemSetIamPolicyInput' smart constructor.+data Policy_BindingsItemSetIamPolicyInput = Policy_BindingsItemSetIamPolicyInput+  { -- | The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.+    condition :: (Core.Maybe Expr),+    -- | A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:+    -- - allUsers - A special identifier that represents anyone on the internet; with or without a Google account.+    -- - allAuthenticatedUsers - A special identifier that represents anyone who is authenticated with a Google account or a service account.+    -- - user:emailid - An email address that represents a specific account. For example, user:alice\@gmail.com or user:joe\@example.com.+    -- - serviceAccount:emailid - An email address that represents a service account. For example, serviceAccount:my-other-app\@appspot.gserviceaccount.com .+    -- - group:emailid - An email address that represents a Google group. For example, group:admins\@example.com.+    -- - domain:domain - A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.+    -- - projectOwner:projectid - Owners of the given project. For example, projectOwner:my-example-project+    -- - projectEditor:projectid - Editors of the given project. For example, projectEditor:my-example-project+    -- - projectViewer:projectid - Viewers of the given project. For example, projectViewer:my-example-project+    members :: [Core.Text],+    -- | The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles\/storage.specificRole. The new IAM roles are:+    -- - roles\/storage.admin - Full control of Google Cloud Storage resources.+    -- - roles\/storage.objectViewer - Read-Only access to Google Cloud Storage objects.+    -- - roles\/storage.objectCreator - Access to create objects in Google Cloud Storage.+    -- - roles\/storage.objectAdmin - Full control of Google Cloud Storage objects. The legacy IAM roles are:+    -- - roles\/storage.legacyObjectReader - Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.+    -- - roles\/storage.legacyObjectOwner - Read\/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.+    -- - roles\/storage.legacyBucketReader - Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.+    -- - roles\/storage.legacyBucketWriter - Read access to buckets with object listing\/creation\/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.+    -- - roles\/storage.legacyBucketOwner - Read and write access to existing buckets with object listing\/creation\/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.+    role' :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Policy_BindingsItemSetIamPolicyInput' with the minimum fields required to make a request.+newPolicy_BindingsItemSetIamPolicyInput ::+  -- |  A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:+  -- - allUsers - A special identifier that represents anyone on the internet; with or without a Google account.+  -- - allAuthenticatedUsers - A special identifier that represents anyone who is authenticated with a Google account or a service account.+  -- - user:emailid - An email address that represents a specific account. For example, user:alice\@gmail.com or user:joe\@example.com.+  -- - serviceAccount:emailid - An email address that represents a service account. For example, serviceAccount:my-other-app\@appspot.gserviceaccount.com .+  -- - group:emailid - An email address that represents a Google group. For example, group:admins\@example.com.+  -- - domain:domain - A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.+  -- - projectOwner:projectid - Owners of the given project. For example, projectOwner:my-example-project+  -- - projectEditor:projectid - Editors of the given project. For example, projectEditor:my-example-project+  -- - projectViewer:projectid - Viewers of the given project. For example, projectViewer:my-example-project See 'members'.+  [Core.Text] ->+  -- |  The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles\/storage.specificRole. The new IAM roles are:+  -- - roles\/storage.admin - Full control of Google Cloud Storage resources.+  -- - roles\/storage.objectViewer - Read-Only access to Google Cloud Storage objects.+  -- - roles\/storage.objectCreator - Access to create objects in Google Cloud Storage.+  -- - roles\/storage.objectAdmin - Full control of Google Cloud Storage objects. The legacy IAM roles are:+  -- - roles\/storage.legacyObjectReader - Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role.+  -- - roles\/storage.legacyObjectOwner - Read\/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role.+  -- - roles\/storage.legacyBucketReader - Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role.+  -- - roles\/storage.legacyBucketWriter - Read access to buckets with object listing\/creation\/deletion. Equivalent to an ACL entry on a bucket with the WRITER role.+  -- - roles\/storage.legacyBucketOwner - Read and write access to existing buckets with object listing\/creation\/deletion. Equivalent to an ACL entry on a bucket with the OWNER role. See 'role''.+  Core.Text ->+  Policy_BindingsItemSetIamPolicyInput+newPolicy_BindingsItemSetIamPolicyInput members role' =+  Policy_BindingsItemSetIamPolicyInput+    { condition = Core.Nothing,+      members = members,+      role' = role'+    }++instance Core.FromJSON Policy_BindingsItemSetIamPolicyInput where+  parseJSON =+    Core.withObject+      "Policy_BindingsItemSetIamPolicyInput"+      ( \o ->+          Policy_BindingsItemSetIamPolicyInput+            Core.<$> (o Core..:? "condition")+            Core.<*> (o Core..: "members")+            Core.<*> (o Core..: "role")+      )++instance Core.ToJSON Policy_BindingsItemSetIamPolicyInput where+  toJSON Policy_BindingsItemSetIamPolicyInput {..} =+    Core.object+      ( Core.catMaybes+          [ ("condition" Core..=) Core.<$> condition,+            Core.Just ("members" Core..= members),+            Core.Just ("role" Core..= role')+          ]+      )++-- | A Rapid Cache instance.+--+-- /See:/ 'newRapidCache' smart constructor.+data RapidCache = RapidCache+  { -- | The cache-level entry admission policy.+    admissionPolicy :: (Core.Maybe Core.Text),+    -- | The name of the bucket containing this cache instance.+    bucket :: (Core.Maybe Core.Text),+    -- | The type of Rapid Cache this represents. Valid values include: \"rapid-cache\" and \"rapid-cache-ultra\".+    cacheType :: (Core.Maybe Core.Text),+    -- | The creation time of the cache instance in RFC 3339 format.+    createTime :: (Core.Maybe Core.DateTime),+    -- | The ID of the resource, including the project number, bucket name and rapid cache ID.+    id :: (Core.Maybe Core.Text),+    -- | Specifies whether objects are ingested into the cache upon write.+    ingestOnWrite :: (Core.Maybe Core.Bool),+    -- | The kind of item this is. For Rapid Cache, this is always storage#rapidCache.+    kind :: Core.Text,+    -- | True if the cache instance has an active Update long-running operation.+    pendingUpdate :: (Core.Maybe Core.Bool),+    -- | The ID of the Rapid cache instance.+    rapidCacheId :: (Core.Maybe Core.Text),+    -- | The link to this cache instance.+    selfLink :: (Core.Maybe Core.Text),+    -- | The current state of the cache instance.+    state :: (Core.Maybe Core.Text),+    -- | The TTL of all cache entries in whole seconds. e.g., \"7200s\".+    ttl :: (Core.Maybe Core.Duration),+    -- | The modification time of the cache instance metadata in RFC 3339 format.+    updateTime :: (Core.Maybe Core.DateTime),+    -- | The zone in which the cache instance is running. For example, us-central1-a.+    zone :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RapidCache' with the minimum fields required to make a request.+newRapidCache ::+  RapidCache+newRapidCache =+  RapidCache+    { admissionPolicy = Core.Nothing,+      bucket = Core.Nothing,+      cacheType = Core.Nothing,+      createTime = Core.Nothing,+      id = Core.Nothing,+      ingestOnWrite = Core.Nothing,+      kind = "storage#rapidCache",+      pendingUpdate = Core.Nothing,+      rapidCacheId = Core.Nothing,+      selfLink = Core.Nothing,+      state = Core.Nothing,+      ttl = Core.Nothing,+      updateTime = Core.Nothing,+      zone = Core.Nothing+    }++instance Core.FromJSON RapidCache where+  parseJSON =+    Core.withObject+      "RapidCache"+      ( \o ->+          RapidCache+            Core.<$> (o Core..:? "admissionPolicy")+            Core.<*> (o Core..:? "bucket")+            Core.<*> (o Core..:? "cacheType")+            Core.<*> (o Core..:? "createTime")+            Core.<*> (o Core..:? "id")+            Core.<*> (o Core..:? "ingestOnWrite")+            Core.<*> (o Core..:? "kind" Core..!= "storage#rapidCache")+            Core.<*> (o Core..:? "pendingUpdate")+            Core.<*> (o Core..:? "rapidCacheId")+            Core.<*> (o Core..:? "selfLink")+            Core.<*> (o Core..:? "state")+            Core.<*> (o Core..:? "ttl")+            Core.<*> (o Core..:? "updateTime")+            Core.<*> (o Core..:? "zone")+      )++instance Core.ToJSON RapidCache where+  toJSON RapidCache {..} =+    Core.object+      ( Core.catMaybes+          [ ("admissionPolicy" Core..=) Core.<$> admissionPolicy,+            ("bucket" Core..=) Core.<$> bucket,+            ("cacheType" Core..=) Core.<$> cacheType,+            ("createTime" Core..=) Core.<$> createTime,+            ("id" Core..=) Core.<$> id,+            ("ingestOnWrite" Core..=) Core.<$> ingestOnWrite,+            Core.Just ("kind" Core..= kind),+            ("pendingUpdate" Core..=) Core.<$> pendingUpdate,+            ("rapidCacheId" Core..=) Core.<$> rapidCacheId,+            ("selfLink" Core..=) Core.<$> selfLink,+            ("state" Core..=) Core.<$> state,+            ("ttl" Core..=) Core.<$> ttl,+            ("updateTime" Core..=) Core.<$> updateTime,+            ("zone" Core..=) Core.<$> zone+          ]+      )++-- | A Rapid Cache instance.+--+-- /See:/ 'newRapidCachePatch' smart constructor.+data RapidCachePatch = RapidCachePatch+  { -- | The cache-level entry admission policy.+    admissionPolicy :: (Core.PatchField Core.Text),+    -- | The name of the bucket containing this cache instance.+    bucket :: (Core.PatchField Core.Text),+    -- | The type of Rapid Cache this represents. Valid values include: \"rapid-cache\" and \"rapid-cache-ultra\".+    cacheType :: (Core.PatchField Core.Text),+    -- | The creation time of the cache instance in RFC 3339 format.+    createTime :: (Core.PatchField Core.DateTime),+    -- | The ID of the resource, including the project number, bucket name and rapid cache ID.+    id :: (Core.PatchField Core.Text),+    -- | Specifies whether objects are ingested into the cache upon write.+    ingestOnWrite :: (Core.PatchField Core.Bool),+    -- | The kind of item this is. For Rapid Cache, this is always storage#rapidCache.+    kind :: (Core.PatchField Core.Text),+    -- | True if the cache instance has an active Update long-running operation.+    pendingUpdate :: (Core.PatchField Core.Bool),+    -- | The ID of the Rapid cache instance.+    rapidCacheId :: (Core.PatchField Core.Text),+    -- | The link to this cache instance.+    selfLink :: (Core.PatchField Core.Text),+    -- | The current state of the cache instance.+    state :: (Core.PatchField Core.Text),+    -- | The TTL of all cache entries in whole seconds. e.g., \"7200s\".+    ttl :: (Core.PatchField Core.Duration),+    -- | The modification time of the cache instance metadata in RFC 3339 format.+    updateTime :: (Core.PatchField Core.DateTime),+    -- | The zone in which the cache instance is running. For example, us-central1-a.+    zone :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RapidCachePatch' with the minimum fields required to make a request.+newRapidCachePatch ::+  RapidCachePatch+newRapidCachePatch =+  RapidCachePatch+    { admissionPolicy = Core.Omit,+      bucket = Core.Omit,+      cacheType = Core.Omit,+      createTime = Core.Omit,+      id = Core.Omit,+      ingestOnWrite = Core.Omit,+      kind = Core.Omit,+      pendingUpdate = Core.Omit,+      rapidCacheId = Core.Omit,+      selfLink = Core.Omit,+      state = Core.Omit,+      ttl = Core.Omit,+      updateTime = Core.Omit,+      zone = Core.Omit+    }++instance Core.FromJSON RapidCachePatch where+  parseJSON =+    Core.withObject+      "RapidCachePatch"+      ( \o ->+          RapidCachePatch+            Core.<$> (Core.parsePatchField Core.parseJSON "admissionPolicy" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "bucket" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "cacheType" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "createTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "id" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "ingestOnWrite" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "kind" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "pendingUpdate" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "rapidCacheId" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "selfLink" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "state" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "ttl" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "updateTime" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "zone" o)+      )++instance Core.ToJSON RapidCachePatch where+  toJSON RapidCachePatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "admissionPolicy" admissionPolicy,+            Core.patchField Core.toJSON "bucket" bucket,+            Core.patchField Core.toJSON "cacheType" cacheType,+            Core.patchField Core.toJSON "createTime" createTime,+            Core.patchField Core.toJSON "id" id,+            Core.patchField Core.toJSON "ingestOnWrite" ingestOnWrite,+            Core.patchField Core.toJSON "kind" kind,+            Core.patchField Core.toJSON "pendingUpdate" pendingUpdate,+            Core.patchField Core.toJSON "rapidCacheId" rapidCacheId,+            Core.patchField Core.toJSON "selfLink" selfLink,+            Core.patchField Core.toJSON "state" state,+            Core.patchField Core.toJSON "ttl" ttl,+            Core.patchField Core.toJSON "updateTime" updateTime,+            Core.patchField Core.toJSON "zone" zone+          ]+      )++-- | Configuration options for the rapid cache of a managed folder.+--+-- /See:/ 'newRapidCacheConfig' smart constructor.+newtype RapidCacheConfig = RapidCacheConfig+  { -- | A map of rapid cache IDs to the corresponding @RapidCachePolicy@ configurations for a managed folder.+    policies :: (Core.Maybe RapidCacheConfig_Policies)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RapidCacheConfig' with the minimum fields required to make a request.+newRapidCacheConfig ::+  RapidCacheConfig+newRapidCacheConfig = RapidCacheConfig {policies = Core.Nothing}++instance Core.FromJSON RapidCacheConfig where+  parseJSON =+    Core.withObject+      "RapidCacheConfig"+      (\o -> RapidCacheConfig Core.<$> (o Core..:? "policies"))++instance Core.ToJSON RapidCacheConfig where+  toJSON RapidCacheConfig {..} =+    Core.object+      (Core.catMaybes [("policies" Core..=) Core.<$> policies])++-- | Configuration options for the rapid cache of a managed folder.+--+-- /See:/ 'newRapidCacheConfigPatch' smart constructor.+newtype RapidCacheConfigPatch = RapidCacheConfigPatch+  { -- | A map of rapid cache IDs to the corresponding @RapidCachePolicy@ configurations for a managed folder.+    policies :: (Core.PatchField RapidCacheConfig_PoliciesPatch)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RapidCacheConfigPatch' with the minimum fields required to make a request.+newRapidCacheConfigPatch ::+  RapidCacheConfigPatch+newRapidCacheConfigPatch =+  RapidCacheConfigPatch {policies = Core.Omit}++instance Core.FromJSON RapidCacheConfigPatch where+  parseJSON =+    Core.withObject+      "RapidCacheConfigPatch"+      ( \o ->+          RapidCacheConfigPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "policies" o)+      )++instance Core.ToJSON RapidCacheConfigPatch where+  toJSON RapidCacheConfigPatch {..} =+    Core.object+      (Core.catMaybes [Core.patchField Core.toJSON "policies" policies])++-- | A map of rapid cache IDs to the corresponding @RapidCachePolicy@ configurations for a managed folder.+--+-- /See:/ 'newRapidCacheConfig_Policies' smart constructor.+newtype RapidCacheConfig_Policies = RapidCacheConfig_Policies+  { additional :: (Core.HashMap Core.Text RapidCachePolicy)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RapidCacheConfig_Policies' with the minimum fields required to make a request.+newRapidCacheConfig_Policies ::+  -- |  See 'additional'.+  Core.HashMap Core.Text RapidCachePolicy ->+  RapidCacheConfig_Policies+newRapidCacheConfig_Policies additional =+  RapidCacheConfig_Policies {additional = additional}++instance Core.FromJSON RapidCacheConfig_Policies where+  parseJSON =+    Core.withObject+      "RapidCacheConfig_Policies"+      ( \o ->+          RapidCacheConfig_Policies Core.<$> (Core.parseJSONObject o)+      )++instance Core.ToJSON RapidCacheConfig_Policies where+  toJSON RapidCacheConfig_Policies {..} = Core.toJSON additional++-- | A map of rapid cache IDs to the corresponding @RapidCachePolicy@ configurations for a managed folder.+--+-- /See:/ 'newRapidCacheConfig_PoliciesPatch' smart constructor.+newtype RapidCacheConfig_PoliciesPatch = RapidCacheConfig_PoliciesPatch+  { additional :: (Core.HashMap Core.Text (Core.Maybe RapidCachePolicyPatch))+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RapidCacheConfig_PoliciesPatch' with the minimum fields required to make a request.+newRapidCacheConfig_PoliciesPatch ::+  -- |  See 'additional'.+  Core.HashMap Core.Text (Core.Maybe RapidCachePolicyPatch) ->+  RapidCacheConfig_PoliciesPatch+newRapidCacheConfig_PoliciesPatch additional =+  RapidCacheConfig_PoliciesPatch {additional = additional}++instance Core.FromJSON RapidCacheConfig_PoliciesPatch where+  parseJSON =+    Core.withObject+      "RapidCacheConfig_PoliciesPatch"+      ( \o ->+          RapidCacheConfig_PoliciesPatch Core.<$> (Core.parseJSONObject o)+      )++instance Core.ToJSON RapidCacheConfig_PoliciesPatch where+  toJSON RapidCacheConfig_PoliciesPatch {..} = Core.toJSON additional++-- | The rapid cache policy configuration for a managed folder.+--+-- /See:/ 'newRapidCachePolicy' smart constructor.+data RapidCachePolicy = RapidCachePolicy+  { -- | The ingest-on-write policy for objects in the managed folder. When set to @enabled@, objects are automatically ingested into the cache when they are written to the managed folder.+    ingestOnWrite :: (Core.Maybe RapidCachePolicy_IngestOnWrite),+    -- | The unique identifier of the rapid cache.+    rapidCacheId :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RapidCachePolicy' with the minimum fields required to make a request.+newRapidCachePolicy ::+  RapidCachePolicy+newRapidCachePolicy =+  RapidCachePolicy+    { ingestOnWrite = Core.Nothing,+      rapidCacheId = Core.Nothing+    }++instance Core.FromJSON RapidCachePolicy where+  parseJSON =+    Core.withObject+      "RapidCachePolicy"+      ( \o ->+          RapidCachePolicy+            Core.<$> (o Core..:? "ingestOnWrite")+            Core.<*> (o Core..:? "rapidCacheId")+      )++instance Core.ToJSON RapidCachePolicy where+  toJSON RapidCachePolicy {..} =+    Core.object+      ( Core.catMaybes+          [ ("ingestOnWrite" Core..=) Core.<$> ingestOnWrite,+            ("rapidCacheId" Core..=) Core.<$> rapidCacheId+          ]+      )++-- | The rapid cache policy configuration for a managed folder.+--+-- /See:/ 'newRapidCachePolicyPatch' smart constructor.+data RapidCachePolicyPatch = RapidCachePolicyPatch+  { -- | The ingest-on-write policy for objects in the managed folder. When set to @enabled@, objects are automatically ingested into the cache when they are written to the managed folder.+    ingestOnWrite :: (Core.PatchField RapidCachePolicy_IngestOnWrite),+    -- | The unique identifier of the rapid cache.+    rapidCacheId :: (Core.PatchField Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RapidCachePolicyPatch' with the minimum fields required to make a request.+newRapidCachePolicyPatch ::+  RapidCachePolicyPatch+newRapidCachePolicyPatch =+  RapidCachePolicyPatch+    { ingestOnWrite = Core.Omit,+      rapidCacheId = Core.Omit+    }++instance Core.FromJSON RapidCachePolicyPatch where+  parseJSON =+    Core.withObject+      "RapidCachePolicyPatch"+      ( \o ->+          RapidCachePolicyPatch+            Core.<$> (Core.parsePatchField Core.parseJSON "ingestOnWrite" o)+            Core.<*> (Core.parsePatchField Core.parseJSON "rapidCacheId" o)+      )++instance Core.ToJSON RapidCachePolicyPatch where+  toJSON RapidCachePolicyPatch {..} =+    Core.object+      ( Core.catMaybes+          [ Core.patchField Core.toJSON "ingestOnWrite" ingestOnWrite,+            Core.patchField Core.toJSON "rapidCacheId" rapidCacheId+          ]+      )++-- | A list of Rapid Caches.+--+-- /See:/ 'newRapidCaches' smart constructor.+data RapidCaches = RapidCaches+  { -- | The list of items.+    items :: (Core.Maybe [RapidCache]),+    -- | The kind of item this is. For lists of Rapid Caches, this is always storage#rapidCaches.+    kind :: Core.Text,+    -- | The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.+    nextPageToken :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RapidCaches' with the minimum fields required to make a request.+newRapidCaches ::+  RapidCaches+newRapidCaches =+  RapidCaches+    { items = Core.Nothing,+      kind = "storage#rapidCaches",+      nextPageToken = Core.Nothing+    }++instance Core.FromJSON RapidCaches where+  parseJSON =+    Core.withObject+      "RapidCaches"+      ( \o ->+          RapidCaches+            Core.<$> (o Core..:? "items")+            Core.<*> (o Core..:? "kind" Core..!= "storage#rapidCaches")+            Core.<*> (o Core..:? "nextPageToken")+      )++instance Core.ToJSON RapidCaches where+  toJSON RapidCaches {..} =+    Core.object+      ( Core.catMaybes+          [ ("items" Core..=) Core.<$> items,+            Core.Just ("kind" Core..= kind),+            ("nextPageToken" Core..=) Core.<$> nextPageToken+          ]+      )++-- | A Relocate Bucket request.+--+-- /See:/ 'newRelocateBucketRequest' smart constructor.+data RelocateBucketRequest = RelocateBucketRequest+  { -- | The bucket\'s new custom placement configuration if relocating to a Custom Dual Region.+    destinationCustomPlacementConfig :: (Core.Maybe RelocateBucketRequest_DestinationCustomPlacementConfig),+    -- | Resource name of a Cloud KMS key, of the form projects\/my-project\/locations\/global\/keyRings\/my-kr\/cryptoKeys\/my-key. If set, is used to encrypt all objects in the destination bucket.+    destinationKmsKeyName :: (Core.Maybe Core.Text),+    -- | The new location the bucket will be relocated to.+    destinationLocation :: (Core.Maybe Core.Text),+    -- | If true, validate the operation, but do not actually relocate the bucket.+    validateOnly :: (Core.Maybe Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RelocateBucketRequest' with the minimum fields required to make a request.+newRelocateBucketRequest ::+  RelocateBucketRequest+newRelocateBucketRequest =+  RelocateBucketRequest+    { destinationCustomPlacementConfig =+        Core.Nothing,+      destinationKmsKeyName = Core.Nothing,+      destinationLocation = Core.Nothing,+      validateOnly = Core.Nothing+    }++instance Core.FromJSON RelocateBucketRequest where+  parseJSON =+    Core.withObject+      "RelocateBucketRequest"+      ( \o ->+          RelocateBucketRequest+            Core.<$> (o Core..:? "destinationCustomPlacementConfig")+            Core.<*> (o Core..:? "destinationKmsKeyName")+            Core.<*> (o Core..:? "destinationLocation")+            Core.<*> (o Core..:? "validateOnly")+      )++instance Core.ToJSON RelocateBucketRequest where+  toJSON RelocateBucketRequest {..} =+    Core.object+      ( Core.catMaybes+          [ ("destinationCustomPlacementConfig" Core..=)+              Core.<$> destinationCustomPlacementConfig,+            ("destinationKmsKeyName" Core..=) Core.<$> destinationKmsKeyName,+            ("destinationLocation" Core..=) Core.<$> destinationLocation,+            ("validateOnly" Core..=) Core.<$> validateOnly+          ]+      )++-- | The bucket\'s new custom placement configuration if relocating to a Custom Dual Region.+--+-- /See:/ 'newRelocateBucketRequest_DestinationCustomPlacementConfig' smart constructor.+newtype RelocateBucketRequest_DestinationCustomPlacementConfig = RelocateBucketRequest_DestinationCustomPlacementConfig+  { -- | The list of regional locations in which data is placed.+    dataLocations :: (Core.Maybe [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RelocateBucketRequest_DestinationCustomPlacementConfig' with the minimum fields required to make a request.+newRelocateBucketRequest_DestinationCustomPlacementConfig ::+  RelocateBucketRequest_DestinationCustomPlacementConfig+newRelocateBucketRequest_DestinationCustomPlacementConfig =+  RelocateBucketRequest_DestinationCustomPlacementConfig+    { dataLocations =+        Core.Nothing+    }++instance+  Core.FromJSON+    RelocateBucketRequest_DestinationCustomPlacementConfig+  where+  parseJSON =+    Core.withObject+      "RelocateBucketRequest_DestinationCustomPlacementConfig"+      ( \o ->+          RelocateBucketRequest_DestinationCustomPlacementConfig+            Core.<$> (o Core..:? "dataLocations")+      )++instance+  Core.ToJSON+    RelocateBucketRequest_DestinationCustomPlacementConfig+  where+  toJSON RelocateBucketRequest_DestinationCustomPlacementConfig {..} =+    Core.object+      (Core.catMaybes [("dataLocations" Core..=) Core.<$> dataLocations])++-- | A rewrite response.+--+-- /See:/ 'newRewriteResponse' smart constructor.+data RewriteResponse = RewriteResponse+  { -- | true if the copy is finished; otherwise, false if the copy is in progress. This property is always present in the response.+    done :: (Core.Maybe Core.Bool),+    -- | The kind of item this is.+    kind :: Core.Text,+    -- | The total size of the object being copied in bytes. This property is always present in the response.+    objectSize :: (Core.Maybe Core.Int64),+    -- | A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.+    resource :: (Core.Maybe Object),+    -- | A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy.+    rewriteToken :: (Core.Maybe Core.Text),+    -- | The total bytes written so far, which can be used to provide a waiting user with a progress indicator. This property is always present in the response.+    totalBytesRewritten :: (Core.Maybe Core.Int64)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RewriteResponse' with the minimum fields required to make a request.+newRewriteResponse ::+  RewriteResponse+newRewriteResponse =+  RewriteResponse+    { done = Core.Nothing,+      kind = "storage#rewriteResponse",+      objectSize = Core.Nothing,+      resource = Core.Nothing,+      rewriteToken = Core.Nothing,+      totalBytesRewritten = Core.Nothing+    }++instance Core.FromJSON RewriteResponse where+  parseJSON =+    Core.withObject+      "RewriteResponse"+      ( \o ->+          RewriteResponse+            Core.<$> (o Core..:? "done")+            Core.<*> (o Core..:? "kind" Core..!= "storage#rewriteResponse")+            Core.<*> (o Core..:? "objectSize" Core.<&> Core.fmap Core.fromAsText)+            Core.<*> (o Core..:? "resource")+            Core.<*> (o Core..:? "rewriteToken")+            Core.<*> ( o+                         Core..:? "totalBytesRewritten"+                         Core.<&> Core.fmap Core.fromAsText+                     )+      )++instance Core.ToJSON RewriteResponse where+  toJSON RewriteResponse {..} =+    Core.object+      ( Core.catMaybes+          [ ("done" Core..=) Core.<$> done,+            Core.Just ("kind" Core..= kind),+            ("objectSize" Core..=) Core.. Core.AsText Core.<$> objectSize,+            ("resource" Core..=) Core.<$> resource,+            ("rewriteToken" Core..=) Core.<$> rewriteToken,+            ("totalBytesRewritten" Core..=)+              Core.. Core.AsText+              Core.<$> totalBytesRewritten+          ]+      )++-- | A subscription to receive Google PubSub notifications.+--+-- /See:/ 'newServiceAccount' smart constructor.+data ServiceAccount = ServiceAccount+  { -- | The ID of the notification.+    emailAddress :: (Core.Maybe Core.Text),+    -- | The kind of item this is. For notifications, this is always storage#notification.+    kind :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ServiceAccount' with the minimum fields required to make a request.+newServiceAccount ::+  ServiceAccount+newServiceAccount =+  ServiceAccount+    { emailAddress = Core.Nothing,+      kind = "storage#serviceAccount"+    }++instance Core.FromJSON ServiceAccount where+  parseJSON =+    Core.withObject+      "ServiceAccount"+      ( \o ->+          ServiceAccount+            Core.<$> (o Core..:? "email_address")+            Core.<*> (o Core..:? "kind" Core..!= "storage#serviceAccount")+      )++instance Core.ToJSON ServiceAccount where+  toJSON ServiceAccount {..} =+    Core.object+      ( Core.catMaybes+          [ ("email_address" Core..=) Core.<$> emailAddress,+            Core.Just ("kind" Core..= kind)+          ]+      )++-- | A storage.(buckets|objects|managedFolders).testIamPermissions response.+--+-- /See:/ 'newTestIamPermissionsResponse' smart constructor.+data TestIamPermissionsResponse = TestIamPermissionsResponse+  { -- | The kind of item this is.+    kind :: Core.Text,+    -- | The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets, objects, or managedFolders. The supported permissions are as follows:+    -- - storage.buckets.delete - Delete bucket.+    -- - storage.buckets.get - Read bucket metadata.+    -- - storage.buckets.getIamPolicy - Read bucket IAM policy.+    -- - storage.buckets.create - Create bucket.+    -- - storage.buckets.list - List buckets.+    -- - storage.buckets.setIamPolicy - Update bucket IAM policy.+    -- - storage.buckets.update - Update bucket metadata.+    -- - storage.objects.delete - Delete object.+    -- - storage.objects.get - Read object data and metadata.+    -- - storage.objects.getIamPolicy - Read object IAM policy.+    -- - storage.objects.create - Create object.+    -- - storage.objects.list - List objects.+    -- - storage.objects.setIamPolicy - Update object IAM policy.+    -- - storage.objects.update - Update object metadata. - storage.managedFolders.delete - Delete managed folder.+    -- - storage.managedFolders.get - Read managed folder metadata.+    -- - storage.managedFolders.getIamPolicy - Read managed folder IAM policy.+    -- - storage.managedFolders.create - Create managed folder.+    -- - storage.managedFolders.list - List managed folders.+    -- - storage.managedFolders.setIamPolicy - Update managed folder IAM policy.+    permissions :: (Core.Maybe [Core.Text])+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'TestIamPermissionsResponse' with the minimum fields required to make a request.+newTestIamPermissionsResponse ::+  TestIamPermissionsResponse+newTestIamPermissionsResponse =+  TestIamPermissionsResponse+    { kind =+        "storage#testIamPermissionsResponse",+      permissions = Core.Nothing+    }++instance Core.FromJSON TestIamPermissionsResponse where+  parseJSON =+    Core.withObject+      "TestIamPermissionsResponse"+      ( \o ->+          TestIamPermissionsResponse+            Core.<$> (o Core..:? "kind" Core..!= "storage#testIamPermissionsResponse")+            Core.<*> (o Core..:? "permissions")+      )++instance Core.ToJSON TestIamPermissionsResponse where+  toJSON TestIamPermissionsResponse {..} =+    Core.object+      ( Core.catMaybes+          [ Core.Just ("kind" Core..= kind),+            ("permissions" Core..=) Core.<$> permissions+          ]+      )
+ gen/Unkai/Storage/Internal/Sum.hs view
@@ -0,0 +1,1352 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Internal.Sum+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Unkai.Storage.Internal.Sum+  ( -- * Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode+      ( Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode_NotRestricted,+        Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted,+        ..+      ),++    -- * Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode+      ( Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode_NotRestricted,+        Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted,+        ..+      ),++    -- * Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode+      ( Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode_NotRestricted,+        Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted,+        ..+      ),++    -- * RapidCachePolicy_IngestOnWrite+    RapidCachePolicy_IngestOnWrite+      ( RapidCachePolicy_IngestOnWrite_Enabled,+        RapidCachePolicy_IngestOnWrite_Unspecified,+        ..+      ),++    -- * BucketsGetProjection+    BucketsGetProjection+      ( BucketsGetProjection_Full,+        BucketsGetProjection_NoAcl,+        ..+      ),++    -- * BucketsInsertPredefinedAcl+    BucketsInsertPredefinedAcl+      ( BucketsInsertPredefinedAcl_AuthenticatedRead,+        BucketsInsertPredefinedAcl_Private,+        BucketsInsertPredefinedAcl_ProjectPrivate,+        BucketsInsertPredefinedAcl_PublicRead,+        BucketsInsertPredefinedAcl_PublicReadWrite,+        ..+      ),++    -- * BucketsInsertPredefinedDefaultObjectAcl+    BucketsInsertPredefinedDefaultObjectAcl+      ( BucketsInsertPredefinedDefaultObjectAcl_AuthenticatedRead,+        BucketsInsertPredefinedDefaultObjectAcl_BucketOwnerFullControl,+        BucketsInsertPredefinedDefaultObjectAcl_BucketOwnerRead,+        BucketsInsertPredefinedDefaultObjectAcl_Private,+        BucketsInsertPredefinedDefaultObjectAcl_ProjectPrivate,+        BucketsInsertPredefinedDefaultObjectAcl_PublicRead,+        ..+      ),++    -- * BucketsInsertProjection+    BucketsInsertProjection+      ( BucketsInsertProjection_Full,+        BucketsInsertProjection_NoAcl,+        ..+      ),++    -- * BucketsListProjection+    BucketsListProjection+      ( BucketsListProjection_Full,+        BucketsListProjection_NoAcl,+        ..+      ),++    -- * BucketsPatchPredefinedAcl+    BucketsPatchPredefinedAcl+      ( BucketsPatchPredefinedAcl_AuthenticatedRead,+        BucketsPatchPredefinedAcl_Private,+        BucketsPatchPredefinedAcl_ProjectPrivate,+        BucketsPatchPredefinedAcl_PublicRead,+        BucketsPatchPredefinedAcl_PublicReadWrite,+        ..+      ),++    -- * BucketsPatchPredefinedDefaultObjectAcl+    BucketsPatchPredefinedDefaultObjectAcl+      ( BucketsPatchPredefinedDefaultObjectAcl_AuthenticatedRead,+        BucketsPatchPredefinedDefaultObjectAcl_BucketOwnerFullControl,+        BucketsPatchPredefinedDefaultObjectAcl_BucketOwnerRead,+        BucketsPatchPredefinedDefaultObjectAcl_Private,+        BucketsPatchPredefinedDefaultObjectAcl_ProjectPrivate,+        BucketsPatchPredefinedDefaultObjectAcl_PublicRead,+        ..+      ),++    -- * BucketsPatchProjection+    BucketsPatchProjection+      ( BucketsPatchProjection_Full,+        BucketsPatchProjection_NoAcl,+        ..+      ),++    -- * BucketsRestoreProjection+    BucketsRestoreProjection+      ( BucketsRestoreProjection_Full,+        BucketsRestoreProjection_NoAcl,+        ..+      ),++    -- * BucketsUpdatePredefinedAcl+    BucketsUpdatePredefinedAcl+      ( BucketsUpdatePredefinedAcl_AuthenticatedRead,+        BucketsUpdatePredefinedAcl_Private,+        BucketsUpdatePredefinedAcl_ProjectPrivate,+        BucketsUpdatePredefinedAcl_PublicRead,+        BucketsUpdatePredefinedAcl_PublicReadWrite,+        ..+      ),++    -- * BucketsUpdatePredefinedDefaultObjectAcl+    BucketsUpdatePredefinedDefaultObjectAcl+      ( BucketsUpdatePredefinedDefaultObjectAcl_AuthenticatedRead,+        BucketsUpdatePredefinedDefaultObjectAcl_BucketOwnerFullControl,+        BucketsUpdatePredefinedDefaultObjectAcl_BucketOwnerRead,+        BucketsUpdatePredefinedDefaultObjectAcl_Private,+        BucketsUpdatePredefinedDefaultObjectAcl_ProjectPrivate,+        BucketsUpdatePredefinedDefaultObjectAcl_PublicRead,+        ..+      ),++    -- * BucketsUpdateProjection+    BucketsUpdateProjection+      ( BucketsUpdateProjection_Full,+        BucketsUpdateProjection_NoAcl,+        ..+      ),++    -- * ObjectsComposeDestinationPredefinedAcl+    ObjectsComposeDestinationPredefinedAcl+      ( ObjectsComposeDestinationPredefinedAcl_AuthenticatedRead,+        ObjectsComposeDestinationPredefinedAcl_BucketOwnerFullControl,+        ObjectsComposeDestinationPredefinedAcl_BucketOwnerRead,+        ObjectsComposeDestinationPredefinedAcl_Private,+        ObjectsComposeDestinationPredefinedAcl_ProjectPrivate,+        ObjectsComposeDestinationPredefinedAcl_PublicRead,+        ..+      ),++    -- * ObjectsCopyDestinationPredefinedAcl+    ObjectsCopyDestinationPredefinedAcl+      ( ObjectsCopyDestinationPredefinedAcl_AuthenticatedRead,+        ObjectsCopyDestinationPredefinedAcl_BucketOwnerFullControl,+        ObjectsCopyDestinationPredefinedAcl_BucketOwnerRead,+        ObjectsCopyDestinationPredefinedAcl_Private,+        ObjectsCopyDestinationPredefinedAcl_ProjectPrivate,+        ObjectsCopyDestinationPredefinedAcl_PublicRead,+        ..+      ),++    -- * ObjectsCopyProjection+    ObjectsCopyProjection+      ( ObjectsCopyProjection_Full,+        ObjectsCopyProjection_NoAcl,+        ..+      ),++    -- * ObjectsGetProjection+    ObjectsGetProjection+      ( ObjectsGetProjection_Full,+        ObjectsGetProjection_NoAcl,+        ..+      ),++    -- * ObjectsInsertPredefinedAcl+    ObjectsInsertPredefinedAcl+      ( ObjectsInsertPredefinedAcl_AuthenticatedRead,+        ObjectsInsertPredefinedAcl_BucketOwnerFullControl,+        ObjectsInsertPredefinedAcl_BucketOwnerRead,+        ObjectsInsertPredefinedAcl_Private,+        ObjectsInsertPredefinedAcl_ProjectPrivate,+        ObjectsInsertPredefinedAcl_PublicRead,+        ..+      ),++    -- * ObjectsInsertProjection+    ObjectsInsertProjection+      ( ObjectsInsertProjection_Full,+        ObjectsInsertProjection_NoAcl,+        ..+      ),++    -- * ObjectsListProjection+    ObjectsListProjection+      ( ObjectsListProjection_Full,+        ObjectsListProjection_NoAcl,+        ..+      ),++    -- * ObjectsMoveProjection+    ObjectsMoveProjection+      ( ObjectsMoveProjection_Full,+        ObjectsMoveProjection_NoAcl,+        ..+      ),++    -- * ObjectsPatchPredefinedAcl+    ObjectsPatchPredefinedAcl+      ( ObjectsPatchPredefinedAcl_AuthenticatedRead,+        ObjectsPatchPredefinedAcl_BucketOwnerFullControl,+        ObjectsPatchPredefinedAcl_BucketOwnerRead,+        ObjectsPatchPredefinedAcl_Private,+        ObjectsPatchPredefinedAcl_ProjectPrivate,+        ObjectsPatchPredefinedAcl_PublicRead,+        ..+      ),++    -- * ObjectsPatchProjection+    ObjectsPatchProjection+      ( ObjectsPatchProjection_Full,+        ObjectsPatchProjection_NoAcl,+        ..+      ),++    -- * ObjectsRestoreProjection+    ObjectsRestoreProjection+      ( ObjectsRestoreProjection_Full,+        ObjectsRestoreProjection_NoAcl,+        ..+      ),++    -- * ObjectsRewriteDestinationPredefinedAcl+    ObjectsRewriteDestinationPredefinedAcl+      ( ObjectsRewriteDestinationPredefinedAcl_AuthenticatedRead,+        ObjectsRewriteDestinationPredefinedAcl_BucketOwnerFullControl,+        ObjectsRewriteDestinationPredefinedAcl_BucketOwnerRead,+        ObjectsRewriteDestinationPredefinedAcl_Private,+        ObjectsRewriteDestinationPredefinedAcl_ProjectPrivate,+        ObjectsRewriteDestinationPredefinedAcl_PublicRead,+        ..+      ),++    -- * ObjectsRewriteProjection+    ObjectsRewriteProjection+      ( ObjectsRewriteProjection_Full,+        ObjectsRewriteProjection_NoAcl,+        ..+      ),++    -- * ObjectsUpdatePredefinedAcl+    ObjectsUpdatePredefinedAcl+      ( ObjectsUpdatePredefinedAcl_AuthenticatedRead,+        ObjectsUpdatePredefinedAcl_BucketOwnerFullControl,+        ObjectsUpdatePredefinedAcl_BucketOwnerRead,+        ObjectsUpdatePredefinedAcl_Private,+        ObjectsUpdatePredefinedAcl_ProjectPrivate,+        ObjectsUpdatePredefinedAcl_PublicRead,+        ..+      ),++    -- * ObjectsUpdateProjection+    ObjectsUpdateProjection+      ( ObjectsUpdateProjection_Full,+        ObjectsUpdateProjection_NoAcl,+        ..+      ),+  )+where++import Unkai.Prelude qualified as Core++-- | Restriction mode for Customer-Managed Encryption Keys. Defaults to NotRestricted.+newtype Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode = Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode {fromBucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Creation of new objects with Customer-Managed Encryption is not restricted.+pattern Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode_NotRestricted :: Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode+pattern Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode_NotRestricted = Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode "NotRestricted"++-- | Creation of new objects with Customer-Managed Encryption is fully restricted.+pattern Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted :: Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode+pattern Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted = Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode "FullyRestricted"++{-# COMPLETE+  Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode_NotRestricted,+  Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted,+  Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode+  #-}++-- | Restriction mode for Customer-Supplied Encryption Keys. Defaults to NotRestricted.+newtype Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode = Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode {fromBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Creation of new objects with Customer-Supplied Encryption is not restricted.+pattern Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode_NotRestricted :: Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode+pattern Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode_NotRestricted = Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode "NotRestricted"++-- | Creation of new objects with Customer-Supplied Encryption is fully restricted.+pattern Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted :: Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode+pattern Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted = Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode "FullyRestricted"++{-# COMPLETE+  Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode_NotRestricted,+  Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted,+  Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode+  #-}++-- | Restriction mode for Google-Managed Encryption Keys. Defaults to NotRestricted.+newtype Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode = Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode {fromBucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Creation of new objects with Google Managed Encryption is not restricted.+pattern Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode_NotRestricted :: Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode+pattern Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode_NotRestricted = Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode "NotRestricted"++-- | Creation of new objects with Google Managed Encryption is fully restricted.+pattern Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted :: Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode+pattern Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted = Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode "FullyRestricted"++{-# COMPLETE+  Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode_NotRestricted,+  Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode_FullyRestricted,+  Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode+  #-}++-- | The ingest-on-write policy for objects in the managed folder. When set to @enabled@, objects are automatically ingested into the cache when they are written to the managed folder.+newtype RapidCachePolicy_IngestOnWrite = RapidCachePolicy_IngestOnWrite {fromRapidCachePolicy_IngestOnWrite :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Ingestion on write is explicitly enabled for the managed folder.+pattern RapidCachePolicy_IngestOnWrite_Enabled :: RapidCachePolicy_IngestOnWrite+pattern RapidCachePolicy_IngestOnWrite_Enabled = RapidCachePolicy_IngestOnWrite "enabled"++-- | Ingestion on write isn\'t specified at the managed folder level and is inherited from the parent resource\'s configuration. This is the default value.+pattern RapidCachePolicy_IngestOnWrite_Unspecified :: RapidCachePolicy_IngestOnWrite+pattern RapidCachePolicy_IngestOnWrite_Unspecified = RapidCachePolicy_IngestOnWrite "unspecified"++{-# COMPLETE+  RapidCachePolicy_IngestOnWrite_Enabled,+  RapidCachePolicy_IngestOnWrite_Unspecified,+  RapidCachePolicy_IngestOnWrite+  #-}++-- | Set of properties to return. Defaults to noAcl.+newtype BucketsGetProjection = BucketsGetProjection {fromBucketsGetProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern BucketsGetProjection_Full :: BucketsGetProjection+pattern BucketsGetProjection_Full = BucketsGetProjection "full"++-- | Omit owner, acl and defaultObjectAcl properties.+pattern BucketsGetProjection_NoAcl :: BucketsGetProjection+pattern BucketsGetProjection_NoAcl = BucketsGetProjection "noAcl"++{-# COMPLETE+  BucketsGetProjection_Full,+  BucketsGetProjection_NoAcl,+  BucketsGetProjection+  #-}++-- | Apply a predefined set of access controls to this bucket.+newtype BucketsInsertPredefinedAcl = BucketsInsertPredefinedAcl {fromBucketsInsertPredefinedAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Project team owners get OWNER access, and allAuthenticatedUsers get READER access.+pattern BucketsInsertPredefinedAcl_AuthenticatedRead :: BucketsInsertPredefinedAcl+pattern BucketsInsertPredefinedAcl_AuthenticatedRead = BucketsInsertPredefinedAcl "authenticatedRead"++-- | Project team owners get OWNER access.+pattern BucketsInsertPredefinedAcl_Private :: BucketsInsertPredefinedAcl+pattern BucketsInsertPredefinedAcl_Private = BucketsInsertPredefinedAcl "private"++-- | Project team members get access according to their roles.+pattern BucketsInsertPredefinedAcl_ProjectPrivate :: BucketsInsertPredefinedAcl+pattern BucketsInsertPredefinedAcl_ProjectPrivate = BucketsInsertPredefinedAcl "projectPrivate"++-- | Project team owners get OWNER access, and allUsers get READER access.+pattern BucketsInsertPredefinedAcl_PublicRead :: BucketsInsertPredefinedAcl+pattern BucketsInsertPredefinedAcl_PublicRead = BucketsInsertPredefinedAcl "publicRead"++-- | Project team owners get OWNER access, and allUsers get WRITER access.+pattern BucketsInsertPredefinedAcl_PublicReadWrite :: BucketsInsertPredefinedAcl+pattern BucketsInsertPredefinedAcl_PublicReadWrite = BucketsInsertPredefinedAcl "publicReadWrite"++{-# COMPLETE+  BucketsInsertPredefinedAcl_AuthenticatedRead,+  BucketsInsertPredefinedAcl_Private,+  BucketsInsertPredefinedAcl_ProjectPrivate,+  BucketsInsertPredefinedAcl_PublicRead,+  BucketsInsertPredefinedAcl_PublicReadWrite,+  BucketsInsertPredefinedAcl+  #-}++-- | Apply a predefined set of default object access controls to this bucket.+newtype BucketsInsertPredefinedDefaultObjectAcl = BucketsInsertPredefinedDefaultObjectAcl {fromBucketsInsertPredefinedDefaultObjectAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Object owner gets OWNER access, and allAuthenticatedUsers get READER access.+pattern BucketsInsertPredefinedDefaultObjectAcl_AuthenticatedRead :: BucketsInsertPredefinedDefaultObjectAcl+pattern BucketsInsertPredefinedDefaultObjectAcl_AuthenticatedRead = BucketsInsertPredefinedDefaultObjectAcl "authenticatedRead"++-- | Object owner gets OWNER access, and project team owners get OWNER access.+pattern BucketsInsertPredefinedDefaultObjectAcl_BucketOwnerFullControl :: BucketsInsertPredefinedDefaultObjectAcl+pattern BucketsInsertPredefinedDefaultObjectAcl_BucketOwnerFullControl = BucketsInsertPredefinedDefaultObjectAcl "bucketOwnerFullControl"++-- | Object owner gets OWNER access, and project team owners get READER access.+pattern BucketsInsertPredefinedDefaultObjectAcl_BucketOwnerRead :: BucketsInsertPredefinedDefaultObjectAcl+pattern BucketsInsertPredefinedDefaultObjectAcl_BucketOwnerRead = BucketsInsertPredefinedDefaultObjectAcl "bucketOwnerRead"++-- | Object owner gets OWNER access.+pattern BucketsInsertPredefinedDefaultObjectAcl_Private :: BucketsInsertPredefinedDefaultObjectAcl+pattern BucketsInsertPredefinedDefaultObjectAcl_Private = BucketsInsertPredefinedDefaultObjectAcl "private"++-- | Object owner gets OWNER access, and project team members get access according to their roles.+pattern BucketsInsertPredefinedDefaultObjectAcl_ProjectPrivate :: BucketsInsertPredefinedDefaultObjectAcl+pattern BucketsInsertPredefinedDefaultObjectAcl_ProjectPrivate = BucketsInsertPredefinedDefaultObjectAcl "projectPrivate"++-- | Object owner gets OWNER access, and allUsers get READER access.+pattern BucketsInsertPredefinedDefaultObjectAcl_PublicRead :: BucketsInsertPredefinedDefaultObjectAcl+pattern BucketsInsertPredefinedDefaultObjectAcl_PublicRead = BucketsInsertPredefinedDefaultObjectAcl "publicRead"++{-# COMPLETE+  BucketsInsertPredefinedDefaultObjectAcl_AuthenticatedRead,+  BucketsInsertPredefinedDefaultObjectAcl_BucketOwnerFullControl,+  BucketsInsertPredefinedDefaultObjectAcl_BucketOwnerRead,+  BucketsInsertPredefinedDefaultObjectAcl_Private,+  BucketsInsertPredefinedDefaultObjectAcl_ProjectPrivate,+  BucketsInsertPredefinedDefaultObjectAcl_PublicRead,+  BucketsInsertPredefinedDefaultObjectAcl+  #-}++-- | Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.+newtype BucketsInsertProjection = BucketsInsertProjection {fromBucketsInsertProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern BucketsInsertProjection_Full :: BucketsInsertProjection+pattern BucketsInsertProjection_Full = BucketsInsertProjection "full"++-- | Omit owner, acl and defaultObjectAcl properties.+pattern BucketsInsertProjection_NoAcl :: BucketsInsertProjection+pattern BucketsInsertProjection_NoAcl = BucketsInsertProjection "noAcl"++{-# COMPLETE+  BucketsInsertProjection_Full,+  BucketsInsertProjection_NoAcl,+  BucketsInsertProjection+  #-}++-- | Set of properties to return. Defaults to noAcl.+newtype BucketsListProjection = BucketsListProjection {fromBucketsListProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern BucketsListProjection_Full :: BucketsListProjection+pattern BucketsListProjection_Full = BucketsListProjection "full"++-- | Omit owner, acl and defaultObjectAcl properties.+pattern BucketsListProjection_NoAcl :: BucketsListProjection+pattern BucketsListProjection_NoAcl = BucketsListProjection "noAcl"++{-# COMPLETE+  BucketsListProjection_Full,+  BucketsListProjection_NoAcl,+  BucketsListProjection+  #-}++-- | Apply a predefined set of access controls to this bucket.+newtype BucketsPatchPredefinedAcl = BucketsPatchPredefinedAcl {fromBucketsPatchPredefinedAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Project team owners get OWNER access, and allAuthenticatedUsers get READER access.+pattern BucketsPatchPredefinedAcl_AuthenticatedRead :: BucketsPatchPredefinedAcl+pattern BucketsPatchPredefinedAcl_AuthenticatedRead = BucketsPatchPredefinedAcl "authenticatedRead"++-- | Project team owners get OWNER access.+pattern BucketsPatchPredefinedAcl_Private :: BucketsPatchPredefinedAcl+pattern BucketsPatchPredefinedAcl_Private = BucketsPatchPredefinedAcl "private"++-- | Project team members get access according to their roles.+pattern BucketsPatchPredefinedAcl_ProjectPrivate :: BucketsPatchPredefinedAcl+pattern BucketsPatchPredefinedAcl_ProjectPrivate = BucketsPatchPredefinedAcl "projectPrivate"++-- | Project team owners get OWNER access, and allUsers get READER access.+pattern BucketsPatchPredefinedAcl_PublicRead :: BucketsPatchPredefinedAcl+pattern BucketsPatchPredefinedAcl_PublicRead = BucketsPatchPredefinedAcl "publicRead"++-- | Project team owners get OWNER access, and allUsers get WRITER access.+pattern BucketsPatchPredefinedAcl_PublicReadWrite :: BucketsPatchPredefinedAcl+pattern BucketsPatchPredefinedAcl_PublicReadWrite = BucketsPatchPredefinedAcl "publicReadWrite"++{-# COMPLETE+  BucketsPatchPredefinedAcl_AuthenticatedRead,+  BucketsPatchPredefinedAcl_Private,+  BucketsPatchPredefinedAcl_ProjectPrivate,+  BucketsPatchPredefinedAcl_PublicRead,+  BucketsPatchPredefinedAcl_PublicReadWrite,+  BucketsPatchPredefinedAcl+  #-}++-- | Apply a predefined set of default object access controls to this bucket.+newtype BucketsPatchPredefinedDefaultObjectAcl = BucketsPatchPredefinedDefaultObjectAcl {fromBucketsPatchPredefinedDefaultObjectAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Object owner gets OWNER access, and allAuthenticatedUsers get READER access.+pattern BucketsPatchPredefinedDefaultObjectAcl_AuthenticatedRead :: BucketsPatchPredefinedDefaultObjectAcl+pattern BucketsPatchPredefinedDefaultObjectAcl_AuthenticatedRead = BucketsPatchPredefinedDefaultObjectAcl "authenticatedRead"++-- | Object owner gets OWNER access, and project team owners get OWNER access.+pattern BucketsPatchPredefinedDefaultObjectAcl_BucketOwnerFullControl :: BucketsPatchPredefinedDefaultObjectAcl+pattern BucketsPatchPredefinedDefaultObjectAcl_BucketOwnerFullControl = BucketsPatchPredefinedDefaultObjectAcl "bucketOwnerFullControl"++-- | Object owner gets OWNER access, and project team owners get READER access.+pattern BucketsPatchPredefinedDefaultObjectAcl_BucketOwnerRead :: BucketsPatchPredefinedDefaultObjectAcl+pattern BucketsPatchPredefinedDefaultObjectAcl_BucketOwnerRead = BucketsPatchPredefinedDefaultObjectAcl "bucketOwnerRead"++-- | Object owner gets OWNER access.+pattern BucketsPatchPredefinedDefaultObjectAcl_Private :: BucketsPatchPredefinedDefaultObjectAcl+pattern BucketsPatchPredefinedDefaultObjectAcl_Private = BucketsPatchPredefinedDefaultObjectAcl "private"++-- | Object owner gets OWNER access, and project team members get access according to their roles.+pattern BucketsPatchPredefinedDefaultObjectAcl_ProjectPrivate :: BucketsPatchPredefinedDefaultObjectAcl+pattern BucketsPatchPredefinedDefaultObjectAcl_ProjectPrivate = BucketsPatchPredefinedDefaultObjectAcl "projectPrivate"++-- | Object owner gets OWNER access, and allUsers get READER access.+pattern BucketsPatchPredefinedDefaultObjectAcl_PublicRead :: BucketsPatchPredefinedDefaultObjectAcl+pattern BucketsPatchPredefinedDefaultObjectAcl_PublicRead = BucketsPatchPredefinedDefaultObjectAcl "publicRead"++{-# COMPLETE+  BucketsPatchPredefinedDefaultObjectAcl_AuthenticatedRead,+  BucketsPatchPredefinedDefaultObjectAcl_BucketOwnerFullControl,+  BucketsPatchPredefinedDefaultObjectAcl_BucketOwnerRead,+  BucketsPatchPredefinedDefaultObjectAcl_Private,+  BucketsPatchPredefinedDefaultObjectAcl_ProjectPrivate,+  BucketsPatchPredefinedDefaultObjectAcl_PublicRead,+  BucketsPatchPredefinedDefaultObjectAcl+  #-}++-- | Set of properties to return. Defaults to full.+newtype BucketsPatchProjection = BucketsPatchProjection {fromBucketsPatchProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern BucketsPatchProjection_Full :: BucketsPatchProjection+pattern BucketsPatchProjection_Full = BucketsPatchProjection "full"++-- | Omit owner, acl and defaultObjectAcl properties.+pattern BucketsPatchProjection_NoAcl :: BucketsPatchProjection+pattern BucketsPatchProjection_NoAcl = BucketsPatchProjection "noAcl"++{-# COMPLETE+  BucketsPatchProjection_Full,+  BucketsPatchProjection_NoAcl,+  BucketsPatchProjection+  #-}++-- | Set of properties to return. Defaults to full.+newtype BucketsRestoreProjection = BucketsRestoreProjection {fromBucketsRestoreProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern BucketsRestoreProjection_Full :: BucketsRestoreProjection+pattern BucketsRestoreProjection_Full = BucketsRestoreProjection "full"++-- | Omit owner, acl and defaultObjectAcl properties.+pattern BucketsRestoreProjection_NoAcl :: BucketsRestoreProjection+pattern BucketsRestoreProjection_NoAcl = BucketsRestoreProjection "noAcl"++{-# COMPLETE+  BucketsRestoreProjection_Full,+  BucketsRestoreProjection_NoAcl,+  BucketsRestoreProjection+  #-}++-- | Apply a predefined set of access controls to this bucket.+newtype BucketsUpdatePredefinedAcl = BucketsUpdatePredefinedAcl {fromBucketsUpdatePredefinedAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Project team owners get OWNER access, and allAuthenticatedUsers get READER access.+pattern BucketsUpdatePredefinedAcl_AuthenticatedRead :: BucketsUpdatePredefinedAcl+pattern BucketsUpdatePredefinedAcl_AuthenticatedRead = BucketsUpdatePredefinedAcl "authenticatedRead"++-- | Project team owners get OWNER access.+pattern BucketsUpdatePredefinedAcl_Private :: BucketsUpdatePredefinedAcl+pattern BucketsUpdatePredefinedAcl_Private = BucketsUpdatePredefinedAcl "private"++-- | Project team members get access according to their roles.+pattern BucketsUpdatePredefinedAcl_ProjectPrivate :: BucketsUpdatePredefinedAcl+pattern BucketsUpdatePredefinedAcl_ProjectPrivate = BucketsUpdatePredefinedAcl "projectPrivate"++-- | Project team owners get OWNER access, and allUsers get READER access.+pattern BucketsUpdatePredefinedAcl_PublicRead :: BucketsUpdatePredefinedAcl+pattern BucketsUpdatePredefinedAcl_PublicRead = BucketsUpdatePredefinedAcl "publicRead"++-- | Project team owners get OWNER access, and allUsers get WRITER access.+pattern BucketsUpdatePredefinedAcl_PublicReadWrite :: BucketsUpdatePredefinedAcl+pattern BucketsUpdatePredefinedAcl_PublicReadWrite = BucketsUpdatePredefinedAcl "publicReadWrite"++{-# COMPLETE+  BucketsUpdatePredefinedAcl_AuthenticatedRead,+  BucketsUpdatePredefinedAcl_Private,+  BucketsUpdatePredefinedAcl_ProjectPrivate,+  BucketsUpdatePredefinedAcl_PublicRead,+  BucketsUpdatePredefinedAcl_PublicReadWrite,+  BucketsUpdatePredefinedAcl+  #-}++-- | Apply a predefined set of default object access controls to this bucket.+newtype BucketsUpdatePredefinedDefaultObjectAcl = BucketsUpdatePredefinedDefaultObjectAcl {fromBucketsUpdatePredefinedDefaultObjectAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Object owner gets OWNER access, and allAuthenticatedUsers get READER access.+pattern BucketsUpdatePredefinedDefaultObjectAcl_AuthenticatedRead :: BucketsUpdatePredefinedDefaultObjectAcl+pattern BucketsUpdatePredefinedDefaultObjectAcl_AuthenticatedRead = BucketsUpdatePredefinedDefaultObjectAcl "authenticatedRead"++-- | Object owner gets OWNER access, and project team owners get OWNER access.+pattern BucketsUpdatePredefinedDefaultObjectAcl_BucketOwnerFullControl :: BucketsUpdatePredefinedDefaultObjectAcl+pattern BucketsUpdatePredefinedDefaultObjectAcl_BucketOwnerFullControl = BucketsUpdatePredefinedDefaultObjectAcl "bucketOwnerFullControl"++-- | Object owner gets OWNER access, and project team owners get READER access.+pattern BucketsUpdatePredefinedDefaultObjectAcl_BucketOwnerRead :: BucketsUpdatePredefinedDefaultObjectAcl+pattern BucketsUpdatePredefinedDefaultObjectAcl_BucketOwnerRead = BucketsUpdatePredefinedDefaultObjectAcl "bucketOwnerRead"++-- | Object owner gets OWNER access.+pattern BucketsUpdatePredefinedDefaultObjectAcl_Private :: BucketsUpdatePredefinedDefaultObjectAcl+pattern BucketsUpdatePredefinedDefaultObjectAcl_Private = BucketsUpdatePredefinedDefaultObjectAcl "private"++-- | Object owner gets OWNER access, and project team members get access according to their roles.+pattern BucketsUpdatePredefinedDefaultObjectAcl_ProjectPrivate :: BucketsUpdatePredefinedDefaultObjectAcl+pattern BucketsUpdatePredefinedDefaultObjectAcl_ProjectPrivate = BucketsUpdatePredefinedDefaultObjectAcl "projectPrivate"++-- | Object owner gets OWNER access, and allUsers get READER access.+pattern BucketsUpdatePredefinedDefaultObjectAcl_PublicRead :: BucketsUpdatePredefinedDefaultObjectAcl+pattern BucketsUpdatePredefinedDefaultObjectAcl_PublicRead = BucketsUpdatePredefinedDefaultObjectAcl "publicRead"++{-# COMPLETE+  BucketsUpdatePredefinedDefaultObjectAcl_AuthenticatedRead,+  BucketsUpdatePredefinedDefaultObjectAcl_BucketOwnerFullControl,+  BucketsUpdatePredefinedDefaultObjectAcl_BucketOwnerRead,+  BucketsUpdatePredefinedDefaultObjectAcl_Private,+  BucketsUpdatePredefinedDefaultObjectAcl_ProjectPrivate,+  BucketsUpdatePredefinedDefaultObjectAcl_PublicRead,+  BucketsUpdatePredefinedDefaultObjectAcl+  #-}++-- | Set of properties to return. Defaults to full.+newtype BucketsUpdateProjection = BucketsUpdateProjection {fromBucketsUpdateProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern BucketsUpdateProjection_Full :: BucketsUpdateProjection+pattern BucketsUpdateProjection_Full = BucketsUpdateProjection "full"++-- | Omit owner, acl and defaultObjectAcl properties.+pattern BucketsUpdateProjection_NoAcl :: BucketsUpdateProjection+pattern BucketsUpdateProjection_NoAcl = BucketsUpdateProjection "noAcl"++{-# COMPLETE+  BucketsUpdateProjection_Full,+  BucketsUpdateProjection_NoAcl,+  BucketsUpdateProjection+  #-}++-- | Apply a predefined set of access controls to the destination object.+newtype ObjectsComposeDestinationPredefinedAcl = ObjectsComposeDestinationPredefinedAcl {fromObjectsComposeDestinationPredefinedAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Object owner gets OWNER access, and allAuthenticatedUsers get READER access.+pattern ObjectsComposeDestinationPredefinedAcl_AuthenticatedRead :: ObjectsComposeDestinationPredefinedAcl+pattern ObjectsComposeDestinationPredefinedAcl_AuthenticatedRead = ObjectsComposeDestinationPredefinedAcl "authenticatedRead"++-- | Object owner gets OWNER access, and project team owners get OWNER access.+pattern ObjectsComposeDestinationPredefinedAcl_BucketOwnerFullControl :: ObjectsComposeDestinationPredefinedAcl+pattern ObjectsComposeDestinationPredefinedAcl_BucketOwnerFullControl = ObjectsComposeDestinationPredefinedAcl "bucketOwnerFullControl"++-- | Object owner gets OWNER access, and project team owners get READER access.+pattern ObjectsComposeDestinationPredefinedAcl_BucketOwnerRead :: ObjectsComposeDestinationPredefinedAcl+pattern ObjectsComposeDestinationPredefinedAcl_BucketOwnerRead = ObjectsComposeDestinationPredefinedAcl "bucketOwnerRead"++-- | Object owner gets OWNER access.+pattern ObjectsComposeDestinationPredefinedAcl_Private :: ObjectsComposeDestinationPredefinedAcl+pattern ObjectsComposeDestinationPredefinedAcl_Private = ObjectsComposeDestinationPredefinedAcl "private"++-- | Object owner gets OWNER access, and project team members get access according to their roles.+pattern ObjectsComposeDestinationPredefinedAcl_ProjectPrivate :: ObjectsComposeDestinationPredefinedAcl+pattern ObjectsComposeDestinationPredefinedAcl_ProjectPrivate = ObjectsComposeDestinationPredefinedAcl "projectPrivate"++-- | Object owner gets OWNER access, and allUsers get READER access.+pattern ObjectsComposeDestinationPredefinedAcl_PublicRead :: ObjectsComposeDestinationPredefinedAcl+pattern ObjectsComposeDestinationPredefinedAcl_PublicRead = ObjectsComposeDestinationPredefinedAcl "publicRead"++{-# COMPLETE+  ObjectsComposeDestinationPredefinedAcl_AuthenticatedRead,+  ObjectsComposeDestinationPredefinedAcl_BucketOwnerFullControl,+  ObjectsComposeDestinationPredefinedAcl_BucketOwnerRead,+  ObjectsComposeDestinationPredefinedAcl_Private,+  ObjectsComposeDestinationPredefinedAcl_ProjectPrivate,+  ObjectsComposeDestinationPredefinedAcl_PublicRead,+  ObjectsComposeDestinationPredefinedAcl+  #-}++-- | Apply a predefined set of access controls to the destination object.+newtype ObjectsCopyDestinationPredefinedAcl = ObjectsCopyDestinationPredefinedAcl {fromObjectsCopyDestinationPredefinedAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Object owner gets OWNER access, and allAuthenticatedUsers get READER access.+pattern ObjectsCopyDestinationPredefinedAcl_AuthenticatedRead :: ObjectsCopyDestinationPredefinedAcl+pattern ObjectsCopyDestinationPredefinedAcl_AuthenticatedRead = ObjectsCopyDestinationPredefinedAcl "authenticatedRead"++-- | Object owner gets OWNER access, and project team owners get OWNER access.+pattern ObjectsCopyDestinationPredefinedAcl_BucketOwnerFullControl :: ObjectsCopyDestinationPredefinedAcl+pattern ObjectsCopyDestinationPredefinedAcl_BucketOwnerFullControl = ObjectsCopyDestinationPredefinedAcl "bucketOwnerFullControl"++-- | Object owner gets OWNER access, and project team owners get READER access.+pattern ObjectsCopyDestinationPredefinedAcl_BucketOwnerRead :: ObjectsCopyDestinationPredefinedAcl+pattern ObjectsCopyDestinationPredefinedAcl_BucketOwnerRead = ObjectsCopyDestinationPredefinedAcl "bucketOwnerRead"++-- | Object owner gets OWNER access.+pattern ObjectsCopyDestinationPredefinedAcl_Private :: ObjectsCopyDestinationPredefinedAcl+pattern ObjectsCopyDestinationPredefinedAcl_Private = ObjectsCopyDestinationPredefinedAcl "private"++-- | Object owner gets OWNER access, and project team members get access according to their roles.+pattern ObjectsCopyDestinationPredefinedAcl_ProjectPrivate :: ObjectsCopyDestinationPredefinedAcl+pattern ObjectsCopyDestinationPredefinedAcl_ProjectPrivate = ObjectsCopyDestinationPredefinedAcl "projectPrivate"++-- | Object owner gets OWNER access, and allUsers get READER access.+pattern ObjectsCopyDestinationPredefinedAcl_PublicRead :: ObjectsCopyDestinationPredefinedAcl+pattern ObjectsCopyDestinationPredefinedAcl_PublicRead = ObjectsCopyDestinationPredefinedAcl "publicRead"++{-# COMPLETE+  ObjectsCopyDestinationPredefinedAcl_AuthenticatedRead,+  ObjectsCopyDestinationPredefinedAcl_BucketOwnerFullControl,+  ObjectsCopyDestinationPredefinedAcl_BucketOwnerRead,+  ObjectsCopyDestinationPredefinedAcl_Private,+  ObjectsCopyDestinationPredefinedAcl_ProjectPrivate,+  ObjectsCopyDestinationPredefinedAcl_PublicRead,+  ObjectsCopyDestinationPredefinedAcl+  #-}++-- | Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.+newtype ObjectsCopyProjection = ObjectsCopyProjection {fromObjectsCopyProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern ObjectsCopyProjection_Full :: ObjectsCopyProjection+pattern ObjectsCopyProjection_Full = ObjectsCopyProjection "full"++-- | Omit the owner, acl property.+pattern ObjectsCopyProjection_NoAcl :: ObjectsCopyProjection+pattern ObjectsCopyProjection_NoAcl = ObjectsCopyProjection "noAcl"++{-# COMPLETE+  ObjectsCopyProjection_Full,+  ObjectsCopyProjection_NoAcl,+  ObjectsCopyProjection+  #-}++-- | Set of properties to return. Defaults to noAcl.+newtype ObjectsGetProjection = ObjectsGetProjection {fromObjectsGetProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern ObjectsGetProjection_Full :: ObjectsGetProjection+pattern ObjectsGetProjection_Full = ObjectsGetProjection "full"++-- | Omit the owner, acl property.+pattern ObjectsGetProjection_NoAcl :: ObjectsGetProjection+pattern ObjectsGetProjection_NoAcl = ObjectsGetProjection "noAcl"++{-# COMPLETE+  ObjectsGetProjection_Full,+  ObjectsGetProjection_NoAcl,+  ObjectsGetProjection+  #-}++-- | Apply a predefined set of access controls to this object.+newtype ObjectsInsertPredefinedAcl = ObjectsInsertPredefinedAcl {fromObjectsInsertPredefinedAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Object owner gets OWNER access, and allAuthenticatedUsers get READER access.+pattern ObjectsInsertPredefinedAcl_AuthenticatedRead :: ObjectsInsertPredefinedAcl+pattern ObjectsInsertPredefinedAcl_AuthenticatedRead = ObjectsInsertPredefinedAcl "authenticatedRead"++-- | Object owner gets OWNER access, and project team owners get OWNER access.+pattern ObjectsInsertPredefinedAcl_BucketOwnerFullControl :: ObjectsInsertPredefinedAcl+pattern ObjectsInsertPredefinedAcl_BucketOwnerFullControl = ObjectsInsertPredefinedAcl "bucketOwnerFullControl"++-- | Object owner gets OWNER access, and project team owners get READER access.+pattern ObjectsInsertPredefinedAcl_BucketOwnerRead :: ObjectsInsertPredefinedAcl+pattern ObjectsInsertPredefinedAcl_BucketOwnerRead = ObjectsInsertPredefinedAcl "bucketOwnerRead"++-- | Object owner gets OWNER access.+pattern ObjectsInsertPredefinedAcl_Private :: ObjectsInsertPredefinedAcl+pattern ObjectsInsertPredefinedAcl_Private = ObjectsInsertPredefinedAcl "private"++-- | Object owner gets OWNER access, and project team members get access according to their roles.+pattern ObjectsInsertPredefinedAcl_ProjectPrivate :: ObjectsInsertPredefinedAcl+pattern ObjectsInsertPredefinedAcl_ProjectPrivate = ObjectsInsertPredefinedAcl "projectPrivate"++-- | Object owner gets OWNER access, and allUsers get READER access.+pattern ObjectsInsertPredefinedAcl_PublicRead :: ObjectsInsertPredefinedAcl+pattern ObjectsInsertPredefinedAcl_PublicRead = ObjectsInsertPredefinedAcl "publicRead"++{-# COMPLETE+  ObjectsInsertPredefinedAcl_AuthenticatedRead,+  ObjectsInsertPredefinedAcl_BucketOwnerFullControl,+  ObjectsInsertPredefinedAcl_BucketOwnerRead,+  ObjectsInsertPredefinedAcl_Private,+  ObjectsInsertPredefinedAcl_ProjectPrivate,+  ObjectsInsertPredefinedAcl_PublicRead,+  ObjectsInsertPredefinedAcl+  #-}++-- | Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.+newtype ObjectsInsertProjection = ObjectsInsertProjection {fromObjectsInsertProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern ObjectsInsertProjection_Full :: ObjectsInsertProjection+pattern ObjectsInsertProjection_Full = ObjectsInsertProjection "full"++-- | Omit the owner, acl property.+pattern ObjectsInsertProjection_NoAcl :: ObjectsInsertProjection+pattern ObjectsInsertProjection_NoAcl = ObjectsInsertProjection "noAcl"++{-# COMPLETE+  ObjectsInsertProjection_Full,+  ObjectsInsertProjection_NoAcl,+  ObjectsInsertProjection+  #-}++-- | Set of properties to return. Defaults to noAcl.+newtype ObjectsListProjection = ObjectsListProjection {fromObjectsListProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern ObjectsListProjection_Full :: ObjectsListProjection+pattern ObjectsListProjection_Full = ObjectsListProjection "full"++-- | Omit the owner, acl property.+pattern ObjectsListProjection_NoAcl :: ObjectsListProjection+pattern ObjectsListProjection_NoAcl = ObjectsListProjection "noAcl"++{-# COMPLETE+  ObjectsListProjection_Full,+  ObjectsListProjection_NoAcl,+  ObjectsListProjection+  #-}++-- | Set of properties to return. Defaults to noAcl.+newtype ObjectsMoveProjection = ObjectsMoveProjection {fromObjectsMoveProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern ObjectsMoveProjection_Full :: ObjectsMoveProjection+pattern ObjectsMoveProjection_Full = ObjectsMoveProjection "full"++-- | Omit the owner, acl property.+pattern ObjectsMoveProjection_NoAcl :: ObjectsMoveProjection+pattern ObjectsMoveProjection_NoAcl = ObjectsMoveProjection "noAcl"++{-# COMPLETE+  ObjectsMoveProjection_Full,+  ObjectsMoveProjection_NoAcl,+  ObjectsMoveProjection+  #-}++-- | Apply a predefined set of access controls to this object.+newtype ObjectsPatchPredefinedAcl = ObjectsPatchPredefinedAcl {fromObjectsPatchPredefinedAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Object owner gets OWNER access, and allAuthenticatedUsers get READER access.+pattern ObjectsPatchPredefinedAcl_AuthenticatedRead :: ObjectsPatchPredefinedAcl+pattern ObjectsPatchPredefinedAcl_AuthenticatedRead = ObjectsPatchPredefinedAcl "authenticatedRead"++-- | Object owner gets OWNER access, and project team owners get OWNER access.+pattern ObjectsPatchPredefinedAcl_BucketOwnerFullControl :: ObjectsPatchPredefinedAcl+pattern ObjectsPatchPredefinedAcl_BucketOwnerFullControl = ObjectsPatchPredefinedAcl "bucketOwnerFullControl"++-- | Object owner gets OWNER access, and project team owners get READER access.+pattern ObjectsPatchPredefinedAcl_BucketOwnerRead :: ObjectsPatchPredefinedAcl+pattern ObjectsPatchPredefinedAcl_BucketOwnerRead = ObjectsPatchPredefinedAcl "bucketOwnerRead"++-- | Object owner gets OWNER access.+pattern ObjectsPatchPredefinedAcl_Private :: ObjectsPatchPredefinedAcl+pattern ObjectsPatchPredefinedAcl_Private = ObjectsPatchPredefinedAcl "private"++-- | Object owner gets OWNER access, and project team members get access according to their roles.+pattern ObjectsPatchPredefinedAcl_ProjectPrivate :: ObjectsPatchPredefinedAcl+pattern ObjectsPatchPredefinedAcl_ProjectPrivate = ObjectsPatchPredefinedAcl "projectPrivate"++-- | Object owner gets OWNER access, and allUsers get READER access.+pattern ObjectsPatchPredefinedAcl_PublicRead :: ObjectsPatchPredefinedAcl+pattern ObjectsPatchPredefinedAcl_PublicRead = ObjectsPatchPredefinedAcl "publicRead"++{-# COMPLETE+  ObjectsPatchPredefinedAcl_AuthenticatedRead,+  ObjectsPatchPredefinedAcl_BucketOwnerFullControl,+  ObjectsPatchPredefinedAcl_BucketOwnerRead,+  ObjectsPatchPredefinedAcl_Private,+  ObjectsPatchPredefinedAcl_ProjectPrivate,+  ObjectsPatchPredefinedAcl_PublicRead,+  ObjectsPatchPredefinedAcl+  #-}++-- | Set of properties to return. Defaults to full.+newtype ObjectsPatchProjection = ObjectsPatchProjection {fromObjectsPatchProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern ObjectsPatchProjection_Full :: ObjectsPatchProjection+pattern ObjectsPatchProjection_Full = ObjectsPatchProjection "full"++-- | Omit the owner, acl property.+pattern ObjectsPatchProjection_NoAcl :: ObjectsPatchProjection+pattern ObjectsPatchProjection_NoAcl = ObjectsPatchProjection "noAcl"++{-# COMPLETE+  ObjectsPatchProjection_Full,+  ObjectsPatchProjection_NoAcl,+  ObjectsPatchProjection+  #-}++-- | Set of properties to return. Defaults to full.+newtype ObjectsRestoreProjection = ObjectsRestoreProjection {fromObjectsRestoreProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern ObjectsRestoreProjection_Full :: ObjectsRestoreProjection+pattern ObjectsRestoreProjection_Full = ObjectsRestoreProjection "full"++-- | Omit the owner, acl property.+pattern ObjectsRestoreProjection_NoAcl :: ObjectsRestoreProjection+pattern ObjectsRestoreProjection_NoAcl = ObjectsRestoreProjection "noAcl"++{-# COMPLETE+  ObjectsRestoreProjection_Full,+  ObjectsRestoreProjection_NoAcl,+  ObjectsRestoreProjection+  #-}++-- | Apply a predefined set of access controls to the destination object.+newtype ObjectsRewriteDestinationPredefinedAcl = ObjectsRewriteDestinationPredefinedAcl {fromObjectsRewriteDestinationPredefinedAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Object owner gets OWNER access, and allAuthenticatedUsers get READER access.+pattern ObjectsRewriteDestinationPredefinedAcl_AuthenticatedRead :: ObjectsRewriteDestinationPredefinedAcl+pattern ObjectsRewriteDestinationPredefinedAcl_AuthenticatedRead = ObjectsRewriteDestinationPredefinedAcl "authenticatedRead"++-- | Object owner gets OWNER access, and project team owners get OWNER access.+pattern ObjectsRewriteDestinationPredefinedAcl_BucketOwnerFullControl :: ObjectsRewriteDestinationPredefinedAcl+pattern ObjectsRewriteDestinationPredefinedAcl_BucketOwnerFullControl = ObjectsRewriteDestinationPredefinedAcl "bucketOwnerFullControl"++-- | Object owner gets OWNER access, and project team owners get READER access.+pattern ObjectsRewriteDestinationPredefinedAcl_BucketOwnerRead :: ObjectsRewriteDestinationPredefinedAcl+pattern ObjectsRewriteDestinationPredefinedAcl_BucketOwnerRead = ObjectsRewriteDestinationPredefinedAcl "bucketOwnerRead"++-- | Object owner gets OWNER access.+pattern ObjectsRewriteDestinationPredefinedAcl_Private :: ObjectsRewriteDestinationPredefinedAcl+pattern ObjectsRewriteDestinationPredefinedAcl_Private = ObjectsRewriteDestinationPredefinedAcl "private"++-- | Object owner gets OWNER access, and project team members get access according to their roles.+pattern ObjectsRewriteDestinationPredefinedAcl_ProjectPrivate :: ObjectsRewriteDestinationPredefinedAcl+pattern ObjectsRewriteDestinationPredefinedAcl_ProjectPrivate = ObjectsRewriteDestinationPredefinedAcl "projectPrivate"++-- | Object owner gets OWNER access, and allUsers get READER access.+pattern ObjectsRewriteDestinationPredefinedAcl_PublicRead :: ObjectsRewriteDestinationPredefinedAcl+pattern ObjectsRewriteDestinationPredefinedAcl_PublicRead = ObjectsRewriteDestinationPredefinedAcl "publicRead"++{-# COMPLETE+  ObjectsRewriteDestinationPredefinedAcl_AuthenticatedRead,+  ObjectsRewriteDestinationPredefinedAcl_BucketOwnerFullControl,+  ObjectsRewriteDestinationPredefinedAcl_BucketOwnerRead,+  ObjectsRewriteDestinationPredefinedAcl_Private,+  ObjectsRewriteDestinationPredefinedAcl_ProjectPrivate,+  ObjectsRewriteDestinationPredefinedAcl_PublicRead,+  ObjectsRewriteDestinationPredefinedAcl+  #-}++-- | Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.+newtype ObjectsRewriteProjection = ObjectsRewriteProjection {fromObjectsRewriteProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern ObjectsRewriteProjection_Full :: ObjectsRewriteProjection+pattern ObjectsRewriteProjection_Full = ObjectsRewriteProjection "full"++-- | Omit the owner, acl property.+pattern ObjectsRewriteProjection_NoAcl :: ObjectsRewriteProjection+pattern ObjectsRewriteProjection_NoAcl = ObjectsRewriteProjection "noAcl"++{-# COMPLETE+  ObjectsRewriteProjection_Full,+  ObjectsRewriteProjection_NoAcl,+  ObjectsRewriteProjection+  #-}++-- | Apply a predefined set of access controls to this object.+newtype ObjectsUpdatePredefinedAcl = ObjectsUpdatePredefinedAcl {fromObjectsUpdatePredefinedAcl :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Object owner gets OWNER access, and allAuthenticatedUsers get READER access.+pattern ObjectsUpdatePredefinedAcl_AuthenticatedRead :: ObjectsUpdatePredefinedAcl+pattern ObjectsUpdatePredefinedAcl_AuthenticatedRead = ObjectsUpdatePredefinedAcl "authenticatedRead"++-- | Object owner gets OWNER access, and project team owners get OWNER access.+pattern ObjectsUpdatePredefinedAcl_BucketOwnerFullControl :: ObjectsUpdatePredefinedAcl+pattern ObjectsUpdatePredefinedAcl_BucketOwnerFullControl = ObjectsUpdatePredefinedAcl "bucketOwnerFullControl"++-- | Object owner gets OWNER access, and project team owners get READER access.+pattern ObjectsUpdatePredefinedAcl_BucketOwnerRead :: ObjectsUpdatePredefinedAcl+pattern ObjectsUpdatePredefinedAcl_BucketOwnerRead = ObjectsUpdatePredefinedAcl "bucketOwnerRead"++-- | Object owner gets OWNER access.+pattern ObjectsUpdatePredefinedAcl_Private :: ObjectsUpdatePredefinedAcl+pattern ObjectsUpdatePredefinedAcl_Private = ObjectsUpdatePredefinedAcl "private"++-- | Object owner gets OWNER access, and project team members get access according to their roles.+pattern ObjectsUpdatePredefinedAcl_ProjectPrivate :: ObjectsUpdatePredefinedAcl+pattern ObjectsUpdatePredefinedAcl_ProjectPrivate = ObjectsUpdatePredefinedAcl "projectPrivate"++-- | Object owner gets OWNER access, and allUsers get READER access.+pattern ObjectsUpdatePredefinedAcl_PublicRead :: ObjectsUpdatePredefinedAcl+pattern ObjectsUpdatePredefinedAcl_PublicRead = ObjectsUpdatePredefinedAcl "publicRead"++{-# COMPLETE+  ObjectsUpdatePredefinedAcl_AuthenticatedRead,+  ObjectsUpdatePredefinedAcl_BucketOwnerFullControl,+  ObjectsUpdatePredefinedAcl_BucketOwnerRead,+  ObjectsUpdatePredefinedAcl_Private,+  ObjectsUpdatePredefinedAcl_ProjectPrivate,+  ObjectsUpdatePredefinedAcl_PublicRead,+  ObjectsUpdatePredefinedAcl+  #-}++-- | Set of properties to return. Defaults to full.+newtype ObjectsUpdateProjection = ObjectsUpdateProjection {fromObjectsUpdateProjection :: Core.Text}+  deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+  deriving newtype+    ( Core.Hashable,+      Core.ToHttpApiData,+      Core.FromHttpApiData,+      Core.ToJSON,+      Core.ToJSONKey,+      Core.FromJSON,+      Core.FromJSONKey+    )++-- | Include all properties.+pattern ObjectsUpdateProjection_Full :: ObjectsUpdateProjection+pattern ObjectsUpdateProjection_Full = ObjectsUpdateProjection "full"++-- | Omit the owner, acl property.+pattern ObjectsUpdateProjection_NoAcl :: ObjectsUpdateProjection+pattern ObjectsUpdateProjection_NoAcl = ObjectsUpdateProjection "noAcl"++{-# COMPLETE+  ObjectsUpdateProjection_Full,+  ObjectsUpdateProjection_NoAcl,+  ObjectsUpdateProjection+  #-}
+ gen/Unkai/Storage/ManagedFolders/Delete.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ManagedFolders.Delete+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Permanently deletes a managed folder.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.managedFolders.delete@.+module Unkai.Storage.ManagedFolders.Delete+  ( -- * Resource+    StorageManagedFoldersDeleteResource,++    -- ** Constructing a Request+    StorageManagedFoldersDelete (..),+    newStorageManagedFoldersDelete,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.managedFolders.delete@ method which the+-- 'StorageManagedFoldersDelete' request conforms to.+type StorageManagedFoldersDeleteResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "managedFolders"+    Core.:> Core.Capture "managedFolder" Core.Text+    Core.:> Core.QueryParam "allowNonEmpty" Core.Bool+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Delete '[Core.JSON] ()++-- | Permanently deletes a managed folder.+--+-- /See:/ 'newStorageManagedFoldersDelete' smart constructor.+data StorageManagedFoldersDelete = StorageManagedFoldersDelete+  { -- | Allows the deletion of a managed folder even if it is not empty. A managed folder is empty if there are no objects or managed folders that it applies to. Callers must have storage.managedFolders.setIamPolicy permission.+    allowNonEmpty :: (Core.Maybe Core.Bool),+    -- | Name of the bucket containing the managed folder.+    bucket :: Core.Text,+    -- | If set, only deletes the managed folder if its metageneration matches this value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | If set, only deletes the managed folder if its metageneration does not match this value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | The managed folder name\/path.+    managedFolder :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageManagedFoldersDelete' with the minimum fields required to make a request.+newStorageManagedFoldersDelete ::+  -- |  Name of the bucket containing the managed folder. See 'bucket'.+  Core.Text ->+  -- |  The managed folder name\/path. See 'managedFolder'.+  Core.Text ->+  StorageManagedFoldersDelete+newStorageManagedFoldersDelete bucket managedFolder =+  StorageManagedFoldersDelete+    { allowNonEmpty = Core.Nothing,+      bucket = bucket,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      managedFolder = managedFolder+    }++instance Core.GoogleRequest StorageManagedFoldersDelete where+  type Rs StorageManagedFoldersDelete = ()+  type+    Scopes StorageManagedFoldersDelete =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageManagedFoldersDelete {..} =+    go+      bucket+      managedFolder+      allowNonEmpty+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageManagedFoldersDeleteResource)+          Core.mempty
+ gen/Unkai/Storage/ManagedFolders/Get.hs view
@@ -0,0 +1,108 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ManagedFolders.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns metadata of the specified managed folder.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.managedFolders.get@.+module Unkai.Storage.ManagedFolders.Get+  ( -- * Resource+    StorageManagedFoldersGetResource,++    -- ** Constructing a Request+    StorageManagedFoldersGet (..),+    newStorageManagedFoldersGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.managedFolders.get@ method which the+-- 'StorageManagedFoldersGet' request conforms to.+type StorageManagedFoldersGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "managedFolders"+    Core.:> Core.Capture "managedFolder" Core.Text+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] ManagedFolder++-- | Returns metadata of the specified managed folder.+--+-- /See:/ 'newStorageManagedFoldersGet' smart constructor.+data StorageManagedFoldersGet = StorageManagedFoldersGet+  { -- | Name of the bucket containing the managed folder.+    bucket :: Core.Text,+    -- | Makes the return of the managed folder metadata conditional on whether the managed folder\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the return of the managed folder metadata conditional on whether the managed folder\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | The managed folder name\/path.+    managedFolder :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageManagedFoldersGet' with the minimum fields required to make a request.+newStorageManagedFoldersGet ::+  -- |  Name of the bucket containing the managed folder. See 'bucket'.+  Core.Text ->+  -- |  The managed folder name\/path. See 'managedFolder'.+  Core.Text ->+  StorageManagedFoldersGet+newStorageManagedFoldersGet bucket managedFolder =+  StorageManagedFoldersGet+    { bucket = bucket,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      managedFolder = managedFolder+    }++instance Core.GoogleRequest StorageManagedFoldersGet where+  type Rs StorageManagedFoldersGet = ManagedFolder+  type+    Scopes StorageManagedFoldersGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageManagedFoldersGet {..} =+    go+      bucket+      managedFolder+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageManagedFoldersGetResource)+          Core.mempty
+ gen/Unkai/Storage/ManagedFolders/GetIamPolicy.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ManagedFolders.GetIamPolicy+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns an IAM policy for the specified managed folder.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.managedFolders.getIamPolicy@.+module Unkai.Storage.ManagedFolders.GetIamPolicy+  ( -- * Resource+    StorageManagedFoldersGetIamPolicyResource,++    -- ** Constructing a Request+    StorageManagedFoldersGetIamPolicy (..),+    newStorageManagedFoldersGetIamPolicy,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.managedFolders.getIamPolicy@ method which the+-- 'StorageManagedFoldersGetIamPolicy' request conforms to.+type StorageManagedFoldersGetIamPolicyResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "managedFolders"+    Core.:> Core.Capture "managedFolder" Core.Text+    Core.:> "iam"+    Core.:> Core.QueryParam "optionsRequestedPolicyVersion" Core.Int32+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Policy++-- | Returns an IAM policy for the specified managed folder.+--+-- /See:/ 'newStorageManagedFoldersGetIamPolicy' smart constructor.+data StorageManagedFoldersGetIamPolicy = StorageManagedFoldersGetIamPolicy+  { -- | Name of the bucket containing the managed folder.+    bucket :: Core.Text,+    -- | The managed folder name\/path.+    managedFolder :: Core.Text,+    -- | The IAM policy format version to be returned. If the optionsRequestedPolicyVersion is for an older version that doesn\'t support part of the requested IAM policy, the request fails.+    optionsRequestedPolicyVersion :: (Core.Maybe Core.Int32),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageManagedFoldersGetIamPolicy' with the minimum fields required to make a request.+newStorageManagedFoldersGetIamPolicy ::+  -- |  Name of the bucket containing the managed folder. See 'bucket'.+  Core.Text ->+  -- |  The managed folder name\/path. See 'managedFolder'.+  Core.Text ->+  StorageManagedFoldersGetIamPolicy+newStorageManagedFoldersGetIamPolicy bucket managedFolder =+  StorageManagedFoldersGetIamPolicy+    { bucket = bucket,+      managedFolder = managedFolder,+      optionsRequestedPolicyVersion = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageManagedFoldersGetIamPolicy where+  type Rs StorageManagedFoldersGetIamPolicy = Policy+  type+    Scopes StorageManagedFoldersGetIamPolicy =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageManagedFoldersGetIamPolicy {..} =+    go+      bucket+      managedFolder+      optionsRequestedPolicyVersion+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageManagedFoldersGetIamPolicyResource+          )+          Core.mempty
+ gen/Unkai/Storage/ManagedFolders/Insert.hs view
@@ -0,0 +1,89 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ManagedFolders.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new managed folder.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.managedFolders.insert@.+module Unkai.Storage.ManagedFolders.Insert+  ( -- * Resource+    StorageManagedFoldersInsertResource,++    -- ** Constructing a Request+    StorageManagedFoldersInsert (..),+    newStorageManagedFoldersInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.managedFolders.insert@ method which the+-- 'StorageManagedFoldersInsert' request conforms to.+type StorageManagedFoldersInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "managedFolders"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ManagedFolder+    Core.:> Core.Post '[Core.JSON] ManagedFolder++-- | Creates a new managed folder.+--+-- /See:/ 'newStorageManagedFoldersInsert' smart constructor.+data StorageManagedFoldersInsert = StorageManagedFoldersInsert+  { -- | Name of the bucket containing the managed folder.+    bucket :: Core.Text,+    -- | Request body.+    payload :: ManagedFolder+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageManagedFoldersInsert' with the minimum fields required to make a request.+newStorageManagedFoldersInsert ::+  -- |  Name of the bucket containing the managed folder. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ManagedFolder ->+  StorageManagedFoldersInsert+newStorageManagedFoldersInsert bucket payload =+  StorageManagedFoldersInsert {bucket = bucket, payload = payload}++instance Core.GoogleRequest StorageManagedFoldersInsert where+  type Rs StorageManagedFoldersInsert = ManagedFolder+  type+    Scopes StorageManagedFoldersInsert =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageManagedFoldersInsert {..} =+    go bucket (Core.Just Core.AltJSON) payload storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageManagedFoldersInsertResource)+          Core.mempty
+ gen/Unkai/Storage/ManagedFolders/List.hs view
@@ -0,0 +1,106 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ManagedFolders.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists managed folders in the given bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.managedFolders.list@.+module Unkai.Storage.ManagedFolders.List+  ( -- * Resource+    StorageManagedFoldersListResource,++    -- ** Constructing a Request+    StorageManagedFoldersList (..),+    newStorageManagedFoldersList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.managedFolders.list@ method which the+-- 'StorageManagedFoldersList' request conforms to.+type StorageManagedFoldersListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "managedFolders"+    Core.:> Core.QueryParam "pageSize" Core.Int32+    Core.:> Core.QueryParam "pageToken" Core.Text+    Core.:> Core.QueryParam "prefix" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] ManagedFolders++-- | Lists managed folders in the given bucket.+--+-- /See:/ 'newStorageManagedFoldersList' smart constructor.+data StorageManagedFoldersList = StorageManagedFoldersList+  { -- | Name of the bucket containing the managed folder.+    bucket :: Core.Text,+    -- | Maximum number of items to return in a single page of responses.+    pageSize :: (Core.Maybe Core.Int32),+    -- | A previously-returned page token representing part of the larger set of results to view.+    pageToken :: (Core.Maybe Core.Text),+    -- | The managed folder name\/path prefix to filter the output list of results.+    prefix :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageManagedFoldersList' with the minimum fields required to make a request.+newStorageManagedFoldersList ::+  -- |  Name of the bucket containing the managed folder. See 'bucket'.+  Core.Text ->+  StorageManagedFoldersList+newStorageManagedFoldersList bucket =+  StorageManagedFoldersList+    { bucket = bucket,+      pageSize = Core.Nothing,+      pageToken = Core.Nothing,+      prefix = Core.Nothing+    }++instance Core.GoogleRequest StorageManagedFoldersList where+  type Rs StorageManagedFoldersList = ManagedFolders+  type+    Scopes StorageManagedFoldersList =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageManagedFoldersList {..} =+    go+      bucket+      pageSize+      pageToken+      prefix+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageManagedFoldersListResource)+          Core.mempty
+ gen/Unkai/Storage/ManagedFolders/SetIamPolicy.hs view
@@ -0,0 +1,108 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ManagedFolders.SetIamPolicy+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an IAM policy for the specified managed folder.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.managedFolders.setIamPolicy@.+module Unkai.Storage.ManagedFolders.SetIamPolicy+  ( -- * Resource+    StorageManagedFoldersSetIamPolicyResource,++    -- ** Constructing a Request+    StorageManagedFoldersSetIamPolicy (..),+    newStorageManagedFoldersSetIamPolicy,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.managedFolders.setIamPolicy@ method which the+-- 'StorageManagedFoldersSetIamPolicy' request conforms to.+type StorageManagedFoldersSetIamPolicyResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "managedFolders"+    Core.:> Core.Capture "managedFolder" Core.Text+    Core.:> "iam"+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] PolicySetIamPolicyInput+    Core.:> Core.Put '[Core.JSON] Policy++-- | Updates an IAM policy for the specified managed folder.+--+-- /See:/ 'newStorageManagedFoldersSetIamPolicy' smart constructor.+data StorageManagedFoldersSetIamPolicy = StorageManagedFoldersSetIamPolicy+  { -- | Name of the bucket containing the managed folder.+    bucket :: Core.Text,+    -- | The managed folder name\/path.+    managedFolder :: Core.Text,+    -- | Request body.+    payload :: PolicySetIamPolicyInput,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageManagedFoldersSetIamPolicy' with the minimum fields required to make a request.+newStorageManagedFoldersSetIamPolicy ::+  -- |  Name of the bucket containing the managed folder. See 'bucket'.+  Core.Text ->+  -- |  The managed folder name\/path. See 'managedFolder'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  PolicySetIamPolicyInput ->+  StorageManagedFoldersSetIamPolicy+newStorageManagedFoldersSetIamPolicy bucket managedFolder payload =+  StorageManagedFoldersSetIamPolicy+    { bucket = bucket,+      managedFolder = managedFolder,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageManagedFoldersSetIamPolicy where+  type Rs StorageManagedFoldersSetIamPolicy = Policy+  type+    Scopes StorageManagedFoldersSetIamPolicy =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageManagedFoldersSetIamPolicy {..} =+    go+      bucket+      managedFolder+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageManagedFoldersSetIamPolicyResource+          )+          Core.mempty
+ gen/Unkai/Storage/ManagedFolders/TestIamPermissions.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ManagedFolders.TestIamPermissions+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Tests a set of permissions on the given managed folder to see which, if any, are held by the caller.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.managedFolders.testIamPermissions@.+module Unkai.Storage.ManagedFolders.TestIamPermissions+  ( -- * Resource+    StorageManagedFoldersTestIamPermissionsResource,++    -- ** Constructing a Request+    StorageManagedFoldersTestIamPermissions (..),+    newStorageManagedFoldersTestIamPermissions,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.managedFolders.testIamPermissions@ method which the+-- 'StorageManagedFoldersTestIamPermissions' request conforms to.+type StorageManagedFoldersTestIamPermissionsResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "managedFolders"+    Core.:> Core.Capture "managedFolder" Core.Text+    Core.:> "iam"+    Core.:> "testPermissions"+    Core.:> Core.QueryParams "permissions" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] TestIamPermissionsResponse++-- | Tests a set of permissions on the given managed folder to see which, if any, are held by the caller.+--+-- /See:/ 'newStorageManagedFoldersTestIamPermissions' smart constructor.+data StorageManagedFoldersTestIamPermissions = StorageManagedFoldersTestIamPermissions+  { -- | Name of the bucket containing the managed folder.+    bucket :: Core.Text,+    -- | The managed folder name\/path.+    managedFolder :: Core.Text,+    -- | Permissions to test.+    permissions :: [Core.Text],+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageManagedFoldersTestIamPermissions' with the minimum fields required to make a request.+newStorageManagedFoldersTestIamPermissions ::+  -- |  Name of the bucket containing the managed folder. See 'bucket'.+  Core.Text ->+  -- |  The managed folder name\/path. See 'managedFolder'.+  Core.Text ->+  -- |  Permissions to test. See 'permissions'.+  [Core.Text] ->+  StorageManagedFoldersTestIamPermissions+newStorageManagedFoldersTestIamPermissions+  bucket+  managedFolder+  permissions =+    StorageManagedFoldersTestIamPermissions+      { bucket = bucket,+        managedFolder = managedFolder,+        permissions = permissions,+        userProject = Core.Nothing+      }++instance Core.GoogleRequest StorageManagedFoldersTestIamPermissions where+  type+    Rs StorageManagedFoldersTestIamPermissions =+      TestIamPermissionsResponse+  type+    Scopes StorageManagedFoldersTestIamPermissions =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageManagedFoldersTestIamPermissions {..} =+    go+      bucket+      managedFolder+      permissions+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageManagedFoldersTestIamPermissionsResource+          )+          Core.mempty
+ gen/Unkai/Storage/ManagedFolders/Update.hs view
@@ -0,0 +1,113 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ManagedFolders.Update+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a managed folder using patch semantics.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.managedFolders.update@.+module Unkai.Storage.ManagedFolders.Update+  ( -- * Resource+    StorageManagedFoldersUpdateResource,++    -- ** Constructing a Request+    StorageManagedFoldersUpdate (..),+    newStorageManagedFoldersUpdate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.managedFolders.update@ method which the+-- 'StorageManagedFoldersUpdate' request conforms to.+type StorageManagedFoldersUpdateResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "managedFolders"+    Core.:> Core.Capture "managedFolder" Core.Text+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ManagedFolderPatch+    Core.:> Core.Patch '[Core.JSON] ManagedFolder++-- | Updates a managed folder using patch semantics.+--+-- /See:/ 'newStorageManagedFoldersUpdate' smart constructor.+data StorageManagedFoldersUpdate = StorageManagedFoldersUpdate+  { -- | The name of the bucket containing the managed folder.+    bucket :: Core.Text,+    -- | Makes the operation conditional on whether the metageneration of the managed folder matches the specified value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the metageneration of the managed folder doesn\'t match the specified value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | The name of the managed folder.+    managedFolder :: Core.Text,+    -- | Request body.+    payload :: ManagedFolderPatch+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageManagedFoldersUpdate' with the minimum fields required to make a request.+newStorageManagedFoldersUpdate ::+  -- |  The name of the bucket containing the managed folder. See 'bucket'.+  Core.Text ->+  -- |  The name of the managed folder. See 'managedFolder'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ManagedFolderPatch ->+  StorageManagedFoldersUpdate+newStorageManagedFoldersUpdate bucket managedFolder payload =+  StorageManagedFoldersUpdate+    { bucket = bucket,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      managedFolder = managedFolder,+      payload = payload+    }++instance Core.GoogleRequest StorageManagedFoldersUpdate where+  type Rs StorageManagedFoldersUpdate = ManagedFolder+  type+    Scopes StorageManagedFoldersUpdate =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageManagedFoldersUpdate {..} =+    go+      bucket+      managedFolder+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageManagedFoldersUpdateResource)+          Core.mempty
+ gen/Unkai/Storage/Notifications/Delete.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Notifications.Delete+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Permanently deletes a notification subscription.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.notifications.delete@.+module Unkai.Storage.Notifications.Delete+  ( -- * Resource+    StorageNotificationsDeleteResource,++    -- ** Constructing a Request+    StorageNotificationsDelete (..),+    newStorageNotificationsDelete,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.notifications.delete@ method which the+-- 'StorageNotificationsDelete' request conforms to.+type StorageNotificationsDeleteResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "notificationConfigs"+    Core.:> Core.Capture "notification" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Delete '[Core.JSON] ()++-- | Permanently deletes a notification subscription.+--+-- /See:/ 'newStorageNotificationsDelete' smart constructor.+data StorageNotificationsDelete = StorageNotificationsDelete+  { -- | The parent bucket of the notification.+    bucket :: Core.Text,+    -- | ID of the notification to delete.+    notification :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageNotificationsDelete' with the minimum fields required to make a request.+newStorageNotificationsDelete ::+  -- |  The parent bucket of the notification. See 'bucket'.+  Core.Text ->+  -- |  ID of the notification to delete. See 'notification'.+  Core.Text ->+  StorageNotificationsDelete+newStorageNotificationsDelete bucket notification =+  StorageNotificationsDelete+    { bucket = bucket,+      notification = notification,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageNotificationsDelete where+  type Rs StorageNotificationsDelete = ()+  type+    Scopes StorageNotificationsDelete =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageNotificationsDelete {..} =+    go+      bucket+      notification+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageNotificationsDeleteResource)+          Core.mempty
+ gen/Unkai/Storage/Notifications/Get.hs view
@@ -0,0 +1,103 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Notifications.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- View a notification configuration.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.notifications.get@.+module Unkai.Storage.Notifications.Get+  ( -- * Resource+    StorageNotificationsGetResource,++    -- ** Constructing a Request+    StorageNotificationsGet (..),+    newStorageNotificationsGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.notifications.get@ method which the+-- 'StorageNotificationsGet' request conforms to.+type StorageNotificationsGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "notificationConfigs"+    Core.:> Core.Capture "notification" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Notification++-- | View a notification configuration.+--+-- /See:/ 'newStorageNotificationsGet' smart constructor.+data StorageNotificationsGet = StorageNotificationsGet+  { -- | The parent bucket of the notification.+    bucket :: Core.Text,+    -- | Notification ID+    notification :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageNotificationsGet' with the minimum fields required to make a request.+newStorageNotificationsGet ::+  -- |  The parent bucket of the notification. See 'bucket'.+  Core.Text ->+  -- |  Notification ID See 'notification'.+  Core.Text ->+  StorageNotificationsGet+newStorageNotificationsGet bucket notification =+  StorageNotificationsGet+    { bucket = bucket,+      notification = notification,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageNotificationsGet where+  type Rs StorageNotificationsGet = Notification+  type+    Scopes StorageNotificationsGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageNotificationsGet {..} =+    go+      bucket+      notification+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageNotificationsGetResource)+          Core.mempty
+ gen/Unkai/Storage/Notifications/Insert.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Notifications.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a notification subscription for a given bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.notifications.insert@.+module Unkai.Storage.Notifications.Insert+  ( -- * Resource+    StorageNotificationsInsertResource,++    -- ** Constructing a Request+    StorageNotificationsInsert (..),+    newStorageNotificationsInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.notifications.insert@ method which the+-- 'StorageNotificationsInsert' request conforms to.+type StorageNotificationsInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "notificationConfigs"+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] NotificationInsertInput+    Core.:> Core.Post '[Core.JSON] Notification++-- | Creates a notification subscription for a given bucket.+--+-- /See:/ 'newStorageNotificationsInsert' smart constructor.+data StorageNotificationsInsert = StorageNotificationsInsert+  { -- | The parent bucket of the notification.+    bucket :: Core.Text,+    -- | Request body.+    payload :: NotificationInsertInput,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageNotificationsInsert' with the minimum fields required to make a request.+newStorageNotificationsInsert ::+  -- |  The parent bucket of the notification. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  NotificationInsertInput ->+  StorageNotificationsInsert+newStorageNotificationsInsert bucket payload =+  StorageNotificationsInsert+    { bucket = bucket,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageNotificationsInsert where+  type Rs StorageNotificationsInsert = Notification+  type+    Scopes StorageNotificationsInsert =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageNotificationsInsert {..} =+    go+      bucket+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageNotificationsInsertResource)+          Core.mempty
+ gen/Unkai/Storage/Notifications/List.hs view
@@ -0,0 +1,92 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Notifications.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves a list of notification subscriptions for a given bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.notifications.list@.+module Unkai.Storage.Notifications.List+  ( -- * Resource+    StorageNotificationsListResource,++    -- ** Constructing a Request+    StorageNotificationsList (..),+    newStorageNotificationsList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.notifications.list@ method which the+-- 'StorageNotificationsList' request conforms to.+type StorageNotificationsListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "notificationConfigs"+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Notifications++-- | Retrieves a list of notification subscriptions for a given bucket.+--+-- /See:/ 'newStorageNotificationsList' smart constructor.+data StorageNotificationsList = StorageNotificationsList+  { -- | Name of a Google Cloud Storage bucket.+    bucket :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageNotificationsList' with the minimum fields required to make a request.+newStorageNotificationsList ::+  -- |  Name of a Google Cloud Storage bucket. See 'bucket'.+  Core.Text ->+  StorageNotificationsList+newStorageNotificationsList bucket =+  StorageNotificationsList+    { bucket = bucket,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageNotificationsList where+  type Rs StorageNotificationsList = Notifications+  type+    Scopes StorageNotificationsList =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageNotificationsList {..} =+    go bucket userProject (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageNotificationsListResource)+          Core.mempty
+ gen/Unkai/Storage/ObjectAccessControls/Delete.hs view
@@ -0,0 +1,113 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ObjectAccessControls.Delete+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Permanently deletes the ACL entry for the specified entity on the specified object.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objectAccessControls.delete@.+module Unkai.Storage.ObjectAccessControls.Delete+  ( -- * Resource+    StorageObjectAccessControlsDeleteResource,++    -- ** Constructing a Request+    StorageObjectAccessControlsDelete (..),+    newStorageObjectAccessControlsDelete,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objectAccessControls.delete@ method which the+-- 'StorageObjectAccessControlsDelete' request conforms to.+type StorageObjectAccessControlsDeleteResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "acl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Delete '[Core.JSON] ()++-- | Permanently deletes the ACL entry for the specified entity on the specified object.+--+-- /See:/ 'newStorageObjectAccessControlsDelete' smart constructor.+data StorageObjectAccessControlsDelete = StorageObjectAccessControlsDelete+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectAccessControlsDelete' with the minimum fields required to make a request.+newStorageObjectAccessControlsDelete ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  StorageObjectAccessControlsDelete+newStorageObjectAccessControlsDelete bucket object entity =+  StorageObjectAccessControlsDelete+    { bucket = bucket,+      entity = entity,+      generation = Core.Nothing,+      object = object,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectAccessControlsDelete where+  type Rs StorageObjectAccessControlsDelete = ()+  type+    Scopes StorageObjectAccessControlsDelete =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageObjectAccessControlsDelete {..} =+    go+      bucket+      object+      entity+      generation+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageObjectAccessControlsDeleteResource+          )+          Core.mempty
+ gen/Unkai/Storage/ObjectAccessControls/Get.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ObjectAccessControls.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the ACL entry for the specified entity on the specified object.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objectAccessControls.get@.+module Unkai.Storage.ObjectAccessControls.Get+  ( -- * Resource+    StorageObjectAccessControlsGetResource,++    -- ** Constructing a Request+    StorageObjectAccessControlsGet (..),+    newStorageObjectAccessControlsGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objectAccessControls.get@ method which the+-- 'StorageObjectAccessControlsGet' request conforms to.+type StorageObjectAccessControlsGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "acl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] ObjectAccessControl++-- | Returns the ACL entry for the specified entity on the specified object.+--+-- /See:/ 'newStorageObjectAccessControlsGet' smart constructor.+data StorageObjectAccessControlsGet = StorageObjectAccessControlsGet+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectAccessControlsGet' with the minimum fields required to make a request.+newStorageObjectAccessControlsGet ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  StorageObjectAccessControlsGet+newStorageObjectAccessControlsGet bucket object entity =+  StorageObjectAccessControlsGet+    { bucket = bucket,+      entity = entity,+      generation = Core.Nothing,+      object = object,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectAccessControlsGet where+  type Rs StorageObjectAccessControlsGet = ObjectAccessControl+  type+    Scopes StorageObjectAccessControlsGet =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageObjectAccessControlsGet {..} =+    go+      bucket+      object+      entity+      generation+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectAccessControlsGetResource)+          Core.mempty
+ gen/Unkai/Storage/ObjectAccessControls/Insert.hs view
@@ -0,0 +1,113 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ObjectAccessControls.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new ACL entry on the specified object.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objectAccessControls.insert@.+module Unkai.Storage.ObjectAccessControls.Insert+  ( -- * Resource+    StorageObjectAccessControlsInsertResource,++    -- ** Constructing a Request+    StorageObjectAccessControlsInsert (..),+    newStorageObjectAccessControlsInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objectAccessControls.insert@ method which the+-- 'StorageObjectAccessControlsInsert' request conforms to.+type StorageObjectAccessControlsInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "acl"+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ObjectAccessControlInsertInput+    Core.:> Core.Post '[Core.JSON] ObjectAccessControl++-- | Creates a new ACL entry on the specified object.+--+-- /See:/ 'newStorageObjectAccessControlsInsert' smart constructor.+data StorageObjectAccessControlsInsert = StorageObjectAccessControlsInsert+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | Request body.+    payload :: ObjectAccessControlInsertInput,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectAccessControlsInsert' with the minimum fields required to make a request.+newStorageObjectAccessControlsInsert ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ObjectAccessControlInsertInput ->+  StorageObjectAccessControlsInsert+newStorageObjectAccessControlsInsert bucket object payload =+  StorageObjectAccessControlsInsert+    { bucket = bucket,+      generation = Core.Nothing,+      object = object,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectAccessControlsInsert where+  type Rs StorageObjectAccessControlsInsert = ObjectAccessControl+  type+    Scopes StorageObjectAccessControlsInsert =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageObjectAccessControlsInsert {..} =+    go+      bucket+      object+      generation+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageObjectAccessControlsInsertResource+          )+          Core.mempty
+ gen/Unkai/Storage/ObjectAccessControls/List.hs view
@@ -0,0 +1,104 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ObjectAccessControls.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves ACL entries on the specified object.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objectAccessControls.list@.+module Unkai.Storage.ObjectAccessControls.List+  ( -- * Resource+    StorageObjectAccessControlsListResource,++    -- ** Constructing a Request+    StorageObjectAccessControlsList (..),+    newStorageObjectAccessControlsList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objectAccessControls.list@ method which the+-- 'StorageObjectAccessControlsList' request conforms to.+type StorageObjectAccessControlsListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "acl"+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] ObjectAccessControls++-- | Retrieves ACL entries on the specified object.+--+-- /See:/ 'newStorageObjectAccessControlsList' smart constructor.+data StorageObjectAccessControlsList = StorageObjectAccessControlsList+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectAccessControlsList' with the minimum fields required to make a request.+newStorageObjectAccessControlsList ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  StorageObjectAccessControlsList+newStorageObjectAccessControlsList bucket object =+  StorageObjectAccessControlsList+    { bucket = bucket,+      generation = Core.Nothing,+      object = object,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectAccessControlsList where+  type Rs StorageObjectAccessControlsList = ObjectAccessControls+  type+    Scopes StorageObjectAccessControlsList =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageObjectAccessControlsList {..} =+    go+      bucket+      object+      generation+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectAccessControlsListResource)+          Core.mempty
+ gen/Unkai/Storage/ObjectAccessControls/Patch.hs view
@@ -0,0 +1,118 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ObjectAccessControls.Patch+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Patches an ACL entry on the specified object.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objectAccessControls.patch@.+module Unkai.Storage.ObjectAccessControls.Patch+  ( -- * Resource+    StorageObjectAccessControlsPatchResource,++    -- ** Constructing a Request+    StorageObjectAccessControlsPatch (..),+    newStorageObjectAccessControlsPatch,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objectAccessControls.patch@ method which the+-- 'StorageObjectAccessControlsPatch' request conforms to.+type StorageObjectAccessControlsPatchResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "acl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ObjectAccessControlPatch+    Core.:> Core.Patch '[Core.JSON] ObjectAccessControl++-- | Patches an ACL entry on the specified object.+--+-- /See:/ 'newStorageObjectAccessControlsPatch' smart constructor.+data StorageObjectAccessControlsPatch = StorageObjectAccessControlsPatch+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | Request body.+    payload :: ObjectAccessControlPatch,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectAccessControlsPatch' with the minimum fields required to make a request.+newStorageObjectAccessControlsPatch ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ObjectAccessControlPatch ->+  StorageObjectAccessControlsPatch+newStorageObjectAccessControlsPatch bucket object entity payload =+  StorageObjectAccessControlsPatch+    { bucket = bucket,+      entity = entity,+      generation = Core.Nothing,+      object = object,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectAccessControlsPatch where+  type Rs StorageObjectAccessControlsPatch = ObjectAccessControl+  type+    Scopes StorageObjectAccessControlsPatch =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageObjectAccessControlsPatch {..} =+    go+      bucket+      object+      entity+      generation+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectAccessControlsPatchResource)+          Core.mempty
+ gen/Unkai/Storage/ObjectAccessControls/Update.hs view
@@ -0,0 +1,120 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.ObjectAccessControls.Update+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an ACL entry on the specified object.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objectAccessControls.update@.+module Unkai.Storage.ObjectAccessControls.Update+  ( -- * Resource+    StorageObjectAccessControlsUpdateResource,++    -- ** Constructing a Request+    StorageObjectAccessControlsUpdate (..),+    newStorageObjectAccessControlsUpdate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objectAccessControls.update@ method which the+-- 'StorageObjectAccessControlsUpdate' request conforms to.+type StorageObjectAccessControlsUpdateResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "acl"+    Core.:> Core.Capture "entity" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ObjectAccessControl+    Core.:> Core.Put '[Core.JSON] ObjectAccessControl++-- | Updates an ACL entry on the specified object.+--+-- /See:/ 'newStorageObjectAccessControlsUpdate' smart constructor.+data StorageObjectAccessControlsUpdate = StorageObjectAccessControlsUpdate+  { -- | Name of a bucket.+    bucket :: Core.Text,+    -- | The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.+    entity :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | Request body.+    payload :: ObjectAccessControl,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectAccessControlsUpdate' with the minimum fields required to make a request.+newStorageObjectAccessControlsUpdate ::+  -- |  Name of a bucket. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers. See 'entity'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ObjectAccessControl ->+  StorageObjectAccessControlsUpdate+newStorageObjectAccessControlsUpdate bucket object entity payload =+  StorageObjectAccessControlsUpdate+    { bucket = bucket,+      entity = entity,+      generation = Core.Nothing,+      object = object,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectAccessControlsUpdate where+  type Rs StorageObjectAccessControlsUpdate = ObjectAccessControl+  type+    Scopes StorageObjectAccessControlsUpdate =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageObjectAccessControlsUpdate {..} =+    go+      bucket+      object+      entity+      generation+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          ( Core.Proxy ::+              Core.Proxy StorageObjectAccessControlsUpdateResource+          )+          Core.mempty
+ gen/Unkai/Storage/Objects/BulkRestore.hs view
@@ -0,0 +1,90 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.BulkRestore+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Initiates a long-running bulk restore operation on the specified bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.bulkRestore@.+module Unkai.Storage.Objects.BulkRestore+  ( -- * Resource+    StorageObjectsBulkRestoreResource,++    -- ** Constructing a Request+    StorageObjectsBulkRestore (..),+    newStorageObjectsBulkRestore,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.bulkRestore@ method which the+-- 'StorageObjectsBulkRestore' request conforms to.+type StorageObjectsBulkRestoreResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> "bulkRestore"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] BulkRestoreObjectsRequest+    Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Initiates a long-running bulk restore operation on the specified bucket.+--+-- /See:/ 'newStorageObjectsBulkRestore' smart constructor.+data StorageObjectsBulkRestore = StorageObjectsBulkRestore+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | Request body.+    payload :: BulkRestoreObjectsRequest+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsBulkRestore' with the minimum fields required to make a request.+newStorageObjectsBulkRestore ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  BulkRestoreObjectsRequest ->+  StorageObjectsBulkRestore+newStorageObjectsBulkRestore bucket payload =+  StorageObjectsBulkRestore {bucket = bucket, payload = payload}++instance Core.GoogleRequest StorageObjectsBulkRestore where+  type Rs StorageObjectsBulkRestore = GoogleLongrunningOperation+  type+    Scopes StorageObjectsBulkRestore =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsBulkRestore {..} =+    go bucket (Core.Just Core.AltJSON) payload storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsBulkRestoreResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Compose.hs view
@@ -0,0 +1,139 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Compose+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Concatenates a list of existing objects into a new object in the same bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.compose@.+module Unkai.Storage.Objects.Compose+  ( -- * Resource+    StorageObjectsComposeResource,++    -- ** Constructing a Request+    StorageObjectsCompose (..),+    newStorageObjectsCompose,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.compose@ method which the+-- 'StorageObjectsCompose' request conforms to.+type StorageObjectsComposeResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "destinationBucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "destinationObject" Core.Text+    Core.:> "compose"+    Core.:> Core.QueryParam+              "destinationPredefinedAcl"+              ObjectsComposeDestinationPredefinedAcl+    Core.:> Core.QueryParams "dropContextGroups" Core.Text+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "kmsKeyName" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ComposeRequestInput+    Core.:> Core.Post '[Core.JSON] Object++-- | Concatenates a list of existing objects into a new object in the same bucket.+--+-- /See:/ 'newStorageObjectsCompose' smart constructor.+data StorageObjectsCompose = StorageObjectsCompose+  { -- | Name of the bucket containing the source objects. The destination object is stored in this bucket.+    destinationBucket :: Core.Text,+    -- | Name of the new object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    destinationObject :: Core.Text,+    -- | Apply a predefined set of access controls to the destination object.+    destinationPredefinedAcl :: (Core.Maybe ObjectsComposeDestinationPredefinedAcl),+    -- | Specifies which object context groups to drop from the source object(s) during a compose operation. The accepted value is \'custom\'. Destination contexts behave as follows: - When request body contexts are provided, they override all source contexts. - When no request body contexts are provided, source contexts are preserved unless \'dropContextGroups\' contains \'custom\', in which case all contexts are dropped.+    dropContextGroups :: (Core.Maybe [Core.Text]),+    -- | Makes the operation conditional on whether the object\'s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Resource name of the Cloud KMS key, of the form projects\/my-project\/locations\/global\/keyRings\/my-kr\/cryptoKeys\/my-key, that will be used to encrypt the object. Overrides the object metadata\'s kms/key/name value, if any.+    kmsKeyName :: (Core.Maybe Core.Text),+    -- | Request body.+    payload :: ComposeRequestInput,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsCompose' with the minimum fields required to make a request.+newStorageObjectsCompose ::+  -- |  Name of the bucket containing the source objects. The destination object is stored in this bucket. See 'destinationBucket'.+  Core.Text ->+  -- |  Name of the new object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'destinationObject'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ComposeRequestInput ->+  StorageObjectsCompose+newStorageObjectsCompose+  destinationBucket+  destinationObject+  payload =+    StorageObjectsCompose+      { destinationBucket = destinationBucket,+        destinationObject = destinationObject,+        destinationPredefinedAcl = Core.Nothing,+        dropContextGroups = Core.Nothing,+        ifGenerationMatch = Core.Nothing,+        ifMetagenerationMatch = Core.Nothing,+        kmsKeyName = Core.Nothing,+        payload = payload,+        userProject = Core.Nothing+      }++instance Core.GoogleRequest StorageObjectsCompose where+  type Rs StorageObjectsCompose = Object+  type+    Scopes StorageObjectsCompose =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsCompose {..} =+    go+      destinationBucket+      destinationObject+      destinationPredefinedAcl+      (dropContextGroups Core.^. Core._Default)+      ifGenerationMatch+      ifMetagenerationMatch+      kmsKeyName+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsComposeResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Copy.hs view
@@ -0,0 +1,194 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Copy+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Copies a source object to a destination object. Optionally overrides metadata.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.copy@.+module Unkai.Storage.Objects.Copy+  ( -- * Resource+    StorageObjectsCopyResource,++    -- ** Constructing a Request+    StorageObjectsCopy (..),+    newStorageObjectsCopy,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.copy@ method which the+-- 'StorageObjectsCopy' request conforms to.+type StorageObjectsCopyResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "sourceBucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "sourceObject" Core.Text+    Core.:> "copyTo"+    Core.:> "b"+    Core.:> Core.Capture "destinationBucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "destinationObject" Core.Text+    Core.:> Core.QueryParam "destinationKmsKeyName" Core.Text+    Core.:> Core.QueryParam+              "destinationPredefinedAcl"+              ObjectsCopyDestinationPredefinedAcl+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam+              "ifSourceMetagenerationNotMatch"+              Core.Int64+    Core.:> Core.QueryParam "projection" ObjectsCopyProjection+    Core.:> Core.QueryParam "sourceGeneration" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] Object+    Core.:> Core.Post '[Core.JSON] Object++-- | Copies a source object to a destination object. Optionally overrides metadata.+--+-- /See:/ 'newStorageObjectsCopy' smart constructor.+data StorageObjectsCopy = StorageObjectsCopy+  { -- | Name of the bucket in which to store the new object. Overrides the provided object metadata\'s bucket value, if any.For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    destinationBucket :: Core.Text,+    -- | Resource name of the Cloud KMS key, of the form projects\/my-project\/locations\/global\/keyRings\/my-kr\/cryptoKeys\/my-key, that will be used to encrypt the object. Overrides the object metadata\'s kms/key/name value, if any.+    destinationKmsKeyName :: (Core.Maybe Core.Text),+    -- | Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata\'s name value, if any.+    destinationObject :: Core.Text,+    -- | Apply a predefined set of access controls to the destination object.+    destinationPredefinedAcl :: (Core.Maybe ObjectsCopyDestinationPredefinedAcl),+    -- | Makes the operation conditional on whether the destination object\'s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the destination object\'s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.+    ifGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the destination object\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the destination object\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current generation matches the given value.+    ifSourceGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current generation does not match the given value.+    ifSourceGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current metageneration matches the given value.+    ifSourceMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current metageneration does not match the given value.+    ifSourceMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Request body.+    payload :: Object,+    -- | Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.+    projection :: (Core.Maybe ObjectsCopyProjection),+    -- | Name of the bucket in which to find the source object.+    sourceBucket :: Core.Text,+    -- | If present, selects a specific revision of the source object (as opposed to the latest version, the default).+    sourceGeneration :: (Core.Maybe Core.Int64),+    -- | Name of the source object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    sourceObject :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsCopy' with the minimum fields required to make a request.+newStorageObjectsCopy ::+  -- |  Name of the bucket in which to find the source object. See 'sourceBucket'.+  Core.Text ->+  -- |  Name of the source object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'sourceObject'.+  Core.Text ->+  -- |  Name of the bucket in which to store the new object. Overrides the provided object metadata\'s bucket value, if any.For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'destinationBucket'.+  Core.Text ->+  -- |  Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata\'s name value, if any. See 'destinationObject'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  Object ->+  StorageObjectsCopy+newStorageObjectsCopy+  sourceBucket+  sourceObject+  destinationBucket+  destinationObject+  payload =+    StorageObjectsCopy+      { destinationBucket = destinationBucket,+        destinationKmsKeyName = Core.Nothing,+        destinationObject = destinationObject,+        destinationPredefinedAcl = Core.Nothing,+        ifGenerationMatch = Core.Nothing,+        ifGenerationNotMatch = Core.Nothing,+        ifMetagenerationMatch = Core.Nothing,+        ifMetagenerationNotMatch = Core.Nothing,+        ifSourceGenerationMatch = Core.Nothing,+        ifSourceGenerationNotMatch = Core.Nothing,+        ifSourceMetagenerationMatch = Core.Nothing,+        ifSourceMetagenerationNotMatch = Core.Nothing,+        payload = payload,+        projection = Core.Nothing,+        sourceBucket = sourceBucket,+        sourceGeneration = Core.Nothing,+        sourceObject = sourceObject,+        userProject = Core.Nothing+      }++instance Core.GoogleRequest StorageObjectsCopy where+  type Rs StorageObjectsCopy = Object+  type+    Scopes StorageObjectsCopy =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsCopy {..} =+    go+      sourceBucket+      sourceObject+      destinationBucket+      destinationObject+      destinationKmsKeyName+      destinationPredefinedAcl+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      ifSourceGenerationMatch+      ifSourceGenerationNotMatch+      ifSourceMetagenerationMatch+      ifSourceMetagenerationNotMatch+      projection+      sourceGeneration+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsCopyResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Delete.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Delete+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.delete@.+module Unkai.Storage.Objects.Delete+  ( -- * Resource+    StorageObjectsDeleteResource,++    -- ** Constructing a Request+    StorageObjectsDelete (..),+    newStorageObjectsDelete,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.delete@ method which the+-- 'StorageObjectsDelete' request conforms to.+type StorageObjectsDeleteResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Delete '[Core.JSON] ()++-- | Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.+--+-- /See:/ 'newStorageObjectsDelete' smart constructor.+data StorageObjectsDelete = StorageObjectsDelete+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.+    ifGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsDelete' with the minimum fields required to make a request.+newStorageObjectsDelete ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  StorageObjectsDelete+newStorageObjectsDelete bucket object =+  StorageObjectsDelete+    { bucket = bucket,+      generation = Core.Nothing,+      ifGenerationMatch = Core.Nothing,+      ifGenerationNotMatch = Core.Nothing,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      object = object,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsDelete where+  type Rs StorageObjectsDelete = ()+  type+    Scopes StorageObjectsDelete =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsDelete {..} =+    go+      bucket+      object+      generation+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsDeleteResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Get.hs view
@@ -0,0 +1,186 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves an object or its metadata.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.get@.+module Unkai.Storage.Objects.Get+  ( -- * Resource+    StorageObjectsGetResource,++    -- ** Constructing a Request+    StorageObjectsGet (..),+    newStorageObjectsGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.get@ method which the+-- 'StorageObjectsGet' request conforms to.+type StorageObjectsGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "projection" ObjectsGetProjection+    Core.:> Core.QueryParam "restoreToken" Core.Text+    Core.:> Core.QueryParam "softDeleted" Core.Bool+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Object+    Core.:<|> "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "projection" ObjectsGetProjection+    Core.:> Core.QueryParam "restoreToken" Core.Text+    Core.:> Core.QueryParam "softDeleted" Core.Bool+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltMedia+    Core.:> Core.Get '[Core.OctetStream] Core.Stream++-- | Retrieves an object or its metadata.+--+-- /See:/ 'newStorageObjectsGet' smart constructor.+data StorageObjectsGet = StorageObjectsGet+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.+    ifGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | Set of properties to return. Defaults to noAcl.+    projection :: (Core.Maybe ObjectsGetProjection),+    -- | Restore token used to differentiate soft-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets and if softDeleted is set to true. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation.+    restoreToken :: (Core.Maybe Core.Text),+    -- | If true, only soft-deleted object versions will be listed. The default is false. For more information, see <https://cloud.google.com/storage/docs/soft-delete Soft Delete>.+    softDeleted :: (Core.Maybe Core.Bool),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsGet' with the minimum fields required to make a request.+newStorageObjectsGet ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  StorageObjectsGet+newStorageObjectsGet bucket object =+  StorageObjectsGet+    { bucket = bucket,+      generation = Core.Nothing,+      ifGenerationMatch = Core.Nothing,+      ifGenerationNotMatch = Core.Nothing,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      object = object,+      projection = Core.Nothing,+      restoreToken = Core.Nothing,+      softDeleted = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsGet where+  type Rs StorageObjectsGet = Object+  type+    Scopes StorageObjectsGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsGet {..} =+    go+      bucket+      object+      generation+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      projection+      restoreToken+      softDeleted+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go Core.:<|> _ =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsGetResource)+          Core.mempty++instance Core.GoogleRequest (Core.MediaDownload StorageObjectsGet) where+  type Rs (Core.MediaDownload StorageObjectsGet) = Core.Stream+  type+    Scopes (Core.MediaDownload StorageObjectsGet) =+      Core.Scopes StorageObjectsGet+  requestClient (Core.MediaDownload StorageObjectsGet {..}) =+    go+      bucket+      object+      generation+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      projection+      restoreToken+      softDeleted+      userProject+      (Core.Just Core.AltMedia)+      storageService+    where+      _ Core.:<|> go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsGetResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/GetIamPolicy.hs view
@@ -0,0 +1,109 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.GetIamPolicy+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns an IAM policy for the specified object.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.getIamPolicy@.+module Unkai.Storage.Objects.GetIamPolicy+  ( -- * Resource+    StorageObjectsGetIamPolicyResource,++    -- ** Constructing a Request+    StorageObjectsGetIamPolicy (..),+    newStorageObjectsGetIamPolicy,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.getIamPolicy@ method which the+-- 'StorageObjectsGetIamPolicy' request conforms to.+type StorageObjectsGetIamPolicyResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "iam"+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Policy++-- | Returns an IAM policy for the specified object.+--+-- /See:/ 'newStorageObjectsGetIamPolicy' smart constructor.+data StorageObjectsGetIamPolicy = StorageObjectsGetIamPolicy+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsGetIamPolicy' with the minimum fields required to make a request.+newStorageObjectsGetIamPolicy ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  StorageObjectsGetIamPolicy+newStorageObjectsGetIamPolicy bucket object =+  StorageObjectsGetIamPolicy+    { bucket = bucket,+      generation = Core.Nothing,+      object = object,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsGetIamPolicy where+  type Rs StorageObjectsGetIamPolicy = Policy+  type+    Scopes StorageObjectsGetIamPolicy =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsGetIamPolicy {..} =+    go+      bucket+      object+      generation+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsGetIamPolicyResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Insert.hs view
@@ -0,0 +1,195 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Stores a new object and metadata.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.insert@.+module Unkai.Storage.Objects.Insert+  ( -- * Resource+    StorageObjectsInsertResource,++    -- ** Constructing a Request+    StorageObjectsInsert (..),+    newStorageObjectsInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.insert@ method which the+-- 'StorageObjectsInsert' request conforms to.+type StorageObjectsInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.QueryParam "contentEncoding" Core.Text+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "kmsKeyName" Core.Text+    Core.:> Core.QueryParam "name" Core.Text+    Core.:> Core.QueryParam "predefinedAcl" ObjectsInsertPredefinedAcl+    Core.:> Core.QueryParam "projection" ObjectsInsertProjection+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] Object+    Core.:> Core.Post '[Core.JSON] Object+    Core.:<|> "upload"+    Core.:> "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.QueryParam "contentEncoding" Core.Text+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "kmsKeyName" Core.Text+    Core.:> Core.QueryParam "name" Core.Text+    Core.:> Core.QueryParam "predefinedAcl" ObjectsInsertPredefinedAcl+    Core.:> Core.QueryParam "projection" ObjectsInsertProjection+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.QueryParam "uploadType" Core.Multipart+    Core.:> Core.MultipartRelated '[Core.JSON] Object+    Core.:> Core.Post '[Core.JSON] Object++-- | Stores a new object and metadata.+--+-- /See:/ 'newStorageObjectsInsert' smart constructor.+data StorageObjectsInsert = StorageObjectsInsert+  { -- | Name of the bucket in which to store the new object. Overrides the provided object metadata\'s bucket value, if any.+    bucket :: Core.Text,+    -- | If set, sets the contentEncoding property of the final object to this value. Setting this parameter is equivalent to setting the contentEncoding metadata property. This can be useful when uploading an object with uploadType=media to indicate the encoding of the content being uploaded.+    contentEncoding :: (Core.Maybe Core.Text),+    -- | Makes the operation conditional on whether the object\'s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.+    ifGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Resource name of the Cloud KMS key, of the form projects\/my-project\/locations\/global\/keyRings\/my-kr\/cryptoKeys\/my-key, that will be used to encrypt the object. Overrides the object metadata\'s kms/key/name value, if any.+    kmsKeyName :: (Core.Maybe Core.Text),+    -- | Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata\'s name value, if any. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    name :: (Core.Maybe Core.Text),+    -- | Request body.+    payload :: Object,+    -- | Apply a predefined set of access controls to this object.+    predefinedAcl :: (Core.Maybe ObjectsInsertPredefinedAcl),+    -- | Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.+    projection :: (Core.Maybe ObjectsInsertProjection),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsInsert' with the minimum fields required to make a request.+newStorageObjectsInsert ::+  -- |  Name of the bucket in which to store the new object. Overrides the provided object metadata\'s bucket value, if any. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  Object ->+  StorageObjectsInsert+newStorageObjectsInsert bucket payload =+  StorageObjectsInsert+    { bucket = bucket,+      contentEncoding = Core.Nothing,+      ifGenerationMatch = Core.Nothing,+      ifGenerationNotMatch = Core.Nothing,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      kmsKeyName = Core.Nothing,+      name = Core.Nothing,+      payload = payload,+      predefinedAcl = Core.Nothing,+      projection = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsInsert where+  type Rs StorageObjectsInsert = Object+  type+    Scopes StorageObjectsInsert =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsInsert {..} =+    go+      bucket+      contentEncoding+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      kmsKeyName+      name+      predefinedAcl+      projection+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go Core.:<|> _ =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsInsertResource)+          Core.mempty++instance Core.GoogleRequest (Core.MediaUpload StorageObjectsInsert) where+  type Rs (Core.MediaUpload StorageObjectsInsert) = Object+  type+    Scopes (Core.MediaUpload StorageObjectsInsert) =+      Core.Scopes StorageObjectsInsert+  requestClient (Core.MediaUpload StorageObjectsInsert {..} body) =+    go+      bucket+      contentEncoding+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      kmsKeyName+      name+      predefinedAcl+      projection+      userProject+      (Core.Just Core.AltJSON)+      (Core.Just Core.Multipart)+      payload+      body+      storageService+    where+      _ Core.:<|> go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsInsertResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/List.hs view
@@ -0,0 +1,161 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves a list of objects matching the criteria.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.list@.+module Unkai.Storage.Objects.List+  ( -- * Resource+    StorageObjectsListResource,++    -- ** Constructing a Request+    StorageObjectsList (..),+    newStorageObjectsList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.list@ method which the+-- 'StorageObjectsList' request conforms to.+type StorageObjectsListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.QueryParam "delimiter" Core.Text+    Core.:> Core.QueryParam "endOffset" Core.Text+    Core.:> Core.QueryParam "filter" Core.Text+    Core.:> Core.QueryParam "includeFoldersAsPrefixes" Core.Bool+    Core.:> Core.QueryParam "includeTrailingDelimiter" Core.Bool+    Core.:> Core.QueryParam "matchGlob" Core.Text+    Core.:> Core.QueryParam "maxResults" Core.Word32+    Core.:> Core.QueryParam "pageToken" Core.Text+    Core.:> Core.QueryParam "prefix" Core.Text+    Core.:> Core.QueryParam "projection" ObjectsListProjection+    Core.:> Core.QueryParam "softDeleted" Core.Bool+    Core.:> Core.QueryParam "startOffset" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "versions" Core.Bool+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] Objects++-- | Retrieves a list of objects matching the criteria.+--+-- /See:/ 'newStorageObjectsList' smart constructor.+data StorageObjectsList = StorageObjectsList+  { -- | Name of the bucket in which to look for objects.+    bucket :: Core.Text,+    -- | Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.+    delimiter :: (Core.Maybe Core.Text),+    -- | Filter results to objects whose names are lexicographically before endOffset. If startOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).+    endOffset :: (Core.Maybe Core.Text),+    -- | Filter the returned objects. Currently only supported for the contexts field. If delimiter is set, the returned prefixes are exempt from this filter.+    filter :: (Core.Maybe Core.Text),+    -- | Only applicable if delimiter is set to \'\/\'. If true, will also include folders and managed folders (besides objects) in the returned prefixes.+    includeFoldersAsPrefixes :: (Core.Maybe Core.Bool),+    -- | If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.+    includeTrailingDelimiter :: (Core.Maybe Core.Bool),+    -- | Filter results to objects and prefixes that match this glob pattern.+    matchGlob :: (Core.Maybe Core.Text),+    -- | Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.+    maxResults :: Core.Word32,+    -- | A previously-returned page token representing part of the larger set of results to view.+    pageToken :: (Core.Maybe Core.Text),+    -- | Filter results to objects whose names begin with this prefix.+    prefix :: (Core.Maybe Core.Text),+    -- | Set of properties to return. Defaults to noAcl.+    projection :: (Core.Maybe ObjectsListProjection),+    -- | If true, only soft-deleted object versions will be listed. The default is false. For more information, see <https://cloud.google.com/storage/docs/soft-delete Soft Delete>.+    softDeleted :: (Core.Maybe Core.Bool),+    -- | Filter results to objects whose names are lexicographically equal to or after startOffset. If endOffset is also set, the objects listed will have names between startOffset (inclusive) and endOffset (exclusive).+    startOffset :: (Core.Maybe Core.Text),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text),+    -- | If true, lists all versions of an object as distinct results. The default is false. For more information, see <https://cloud.google.com/storage/docs/object-versioning Object Versioning>.+    versions :: (Core.Maybe Core.Bool)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsList' with the minimum fields required to make a request.+newStorageObjectsList ::+  -- |  Name of the bucket in which to look for objects. See 'bucket'.+  Core.Text ->+  StorageObjectsList+newStorageObjectsList bucket =+  StorageObjectsList+    { bucket = bucket,+      delimiter = Core.Nothing,+      endOffset = Core.Nothing,+      filter = Core.Nothing,+      includeFoldersAsPrefixes = Core.Nothing,+      includeTrailingDelimiter = Core.Nothing,+      matchGlob = Core.Nothing,+      maxResults = 1000,+      pageToken = Core.Nothing,+      prefix = Core.Nothing,+      projection = Core.Nothing,+      softDeleted = Core.Nothing,+      startOffset = Core.Nothing,+      userProject = Core.Nothing,+      versions = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsList where+  type Rs StorageObjectsList = Objects+  type+    Scopes StorageObjectsList =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsList {..} =+    go+      bucket+      delimiter+      endOffset+      filter+      includeFoldersAsPrefixes+      includeTrailingDelimiter+      matchGlob+      (Core.Just maxResults)+      pageToken+      prefix+      projection+      softDeleted+      startOffset+      userProject+      versions+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsListResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Move.hs view
@@ -0,0 +1,155 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Move+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Moves the source object to the destination object in the same bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.move@.+module Unkai.Storage.Objects.Move+  ( -- * Resource+    StorageObjectsMoveResource,++    -- ** Constructing a Request+    StorageObjectsMove (..),+    newStorageObjectsMove,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.move@ method which the+-- 'StorageObjectsMove' request conforms to.+type StorageObjectsMoveResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "sourceObject" Core.Text+    Core.:> "moveTo"+    Core.:> "o"+    Core.:> Core.Capture "destinationObject" Core.Text+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "projection" ObjectsMoveProjection+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] Object++-- | Moves the source object to the destination object in the same bucket.+--+-- /See:/ 'newStorageObjectsMove' smart constructor.+data StorageObjectsMove = StorageObjectsMove+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | Name of the destination object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    destinationObject :: Core.Text,+    -- | Makes the operation conditional on whether the destination object\'s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object. @ifGenerationMatch@ and @ifGenerationNotMatch@ conditions are mutually exclusive: it\'s an error for both of them to be set in the request.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the destination object\'s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.@ifGenerationMatch@ and @ifGenerationNotMatch@ conditions are mutually exclusive: it\'s an error for both of them to be set in the request.+    ifGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the destination object\'s current metageneration matches the given value. @ifMetagenerationMatch@ and @ifMetagenerationNotMatch@ conditions are mutually exclusive: it\'s an error for both of them to be set in the request.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the destination object\'s current metageneration does not match the given value. @ifMetagenerationMatch@ and @ifMetagenerationNotMatch@ conditions are mutually exclusive: it\'s an error for both of them to be set in the request.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current generation matches the given value. @ifSourceGenerationMatch@ and @ifSourceGenerationNotMatch@ conditions are mutually exclusive: it\'s an error for both of them to be set in the request.+    ifSourceGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current generation does not match the given value. @ifSourceGenerationMatch@ and @ifSourceGenerationNotMatch@ conditions are mutually exclusive: it\'s an error for both of them to be set in the request.+    ifSourceGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current metageneration matches the given value. @ifSourceMetagenerationMatch@ and @ifSourceMetagenerationNotMatch@ conditions are mutually exclusive: it\'s an error for both of them to be set in the request.+    ifSourceMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current metageneration does not match the given value. @ifSourceMetagenerationMatch@ and @ifSourceMetagenerationNotMatch@ conditions are mutually exclusive: it\'s an error for both of them to be set in the request.+    ifSourceMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Set of properties to return. Defaults to noAcl.+    projection :: (Core.Maybe ObjectsMoveProjection),+    -- | Name of the source object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    sourceObject :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsMove' with the minimum fields required to make a request.+newStorageObjectsMove ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Name of the source object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'sourceObject'.+  Core.Text ->+  -- |  Name of the destination object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'destinationObject'.+  Core.Text ->+  StorageObjectsMove+newStorageObjectsMove bucket sourceObject destinationObject =+  StorageObjectsMove+    { bucket = bucket,+      destinationObject = destinationObject,+      ifGenerationMatch = Core.Nothing,+      ifGenerationNotMatch = Core.Nothing,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      ifSourceGenerationMatch = Core.Nothing,+      ifSourceGenerationNotMatch = Core.Nothing,+      ifSourceMetagenerationMatch = Core.Nothing,+      ifSourceMetagenerationNotMatch = Core.Nothing,+      projection = Core.Nothing,+      sourceObject = sourceObject,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsMove where+  type Rs StorageObjectsMove = Object+  type+    Scopes StorageObjectsMove =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsMove {..} =+    go+      bucket+      sourceObject+      destinationObject+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      ifSourceGenerationMatch+      ifSourceGenerationNotMatch+      ifSourceMetagenerationMatch+      ifSourceMetagenerationNotMatch+      projection+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsMoveResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Patch.hs view
@@ -0,0 +1,145 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Patch+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Patches an object\'s metadata.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.patch@.+module Unkai.Storage.Objects.Patch+  ( -- * Resource+    StorageObjectsPatchResource,++    -- ** Constructing a Request+    StorageObjectsPatch (..),+    newStorageObjectsPatch,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.patch@ method which the+-- 'StorageObjectsPatch' request conforms to.+type StorageObjectsPatchResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "overrideUnlockedRetention" Core.Bool+    Core.:> Core.QueryParam "predefinedAcl" ObjectsPatchPredefinedAcl+    Core.:> Core.QueryParam "projection" ObjectsPatchProjection+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] ObjectPatch+    Core.:> Core.Patch '[Core.JSON] Object++-- | Patches an object\'s metadata.+--+-- /See:/ 'newStorageObjectsPatch' smart constructor.+data StorageObjectsPatch = StorageObjectsPatch+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.+    ifGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | Must be true to remove the retention configuration, reduce its unlocked retention period, or change its mode from unlocked to locked.+    overrideUnlockedRetention :: (Core.Maybe Core.Bool),+    -- | Request body.+    payload :: ObjectPatch,+    -- | Apply a predefined set of access controls to this object.+    predefinedAcl :: (Core.Maybe ObjectsPatchPredefinedAcl),+    -- | Set of properties to return. Defaults to full.+    projection :: (Core.Maybe ObjectsPatchProjection),+    -- | The project to be billed for this request, for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsPatch' with the minimum fields required to make a request.+newStorageObjectsPatch ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  ObjectPatch ->+  StorageObjectsPatch+newStorageObjectsPatch bucket object payload =+  StorageObjectsPatch+    { bucket = bucket,+      generation = Core.Nothing,+      ifGenerationMatch = Core.Nothing,+      ifGenerationNotMatch = Core.Nothing,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      object = object,+      overrideUnlockedRetention = Core.Nothing,+      payload = payload,+      predefinedAcl = Core.Nothing,+      projection = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsPatch where+  type Rs StorageObjectsPatch = Object+  type+    Scopes StorageObjectsPatch =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageObjectsPatch {..} =+    go+      bucket+      object+      generation+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      overrideUnlockedRetention+      predefinedAcl+      projection+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsPatchResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Restore.hs view
@@ -0,0 +1,141 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Restore+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Restores a soft-deleted object.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.restore@.+module Unkai.Storage.Objects.Restore+  ( -- * Resource+    StorageObjectsRestoreResource,++    -- ** Constructing a Request+    StorageObjectsRestore (..),+    newStorageObjectsRestore,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.restore@ method which the+-- 'StorageObjectsRestore' request conforms to.+type StorageObjectsRestoreResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "restore"+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "copySourceAcl" Core.Bool+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "projection" ObjectsRestoreProjection+    Core.:> Core.QueryParam "restoreToken" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] Object++-- | Restores a soft-deleted object.+--+-- /See:/ 'newStorageObjectsRestore' smart constructor.+data StorageObjectsRestore = StorageObjectsRestore+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | If true, copies the source object\'s ACL; otherwise, uses the bucket\'s default object ACL. The default is false.+    copySourceAcl :: (Core.Maybe Core.Bool),+    -- | Selects a specific revision of this object.+    generation :: Core.Int64,+    -- | Makes the operation conditional on whether the object\'s one live generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether none of the object\'s live generations match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.+    ifGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s one live metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether none of the object\'s live metagenerations match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | Set of properties to return. Defaults to full.+    projection :: (Core.Maybe ObjectsRestoreProjection),+    -- | Restore token used to differentiate sof-deleted objects with the same name and generation. Only applicable for hierarchical namespace buckets. This parameter is optional, and is only required in the rare case when there are multiple soft-deleted objects with the same name and generation.+    restoreToken :: (Core.Maybe Core.Text),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsRestore' with the minimum fields required to make a request.+newStorageObjectsRestore ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  Selects a specific revision of this object. See 'generation'.+  Core.Int64 ->+  StorageObjectsRestore+newStorageObjectsRestore bucket object generation =+  StorageObjectsRestore+    { bucket = bucket,+      copySourceAcl = Core.Nothing,+      generation = generation,+      ifGenerationMatch = Core.Nothing,+      ifGenerationNotMatch = Core.Nothing,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      object = object,+      projection = Core.Nothing,+      restoreToken = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsRestore where+  type Rs StorageObjectsRestore = Object+  type+    Scopes StorageObjectsRestore =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageObjectsRestore {..} =+    go+      bucket+      object+      (Core.Just generation)+      copySourceAcl+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      projection+      restoreToken+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsRestoreResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Rewrite.hs view
@@ -0,0 +1,217 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Rewrite+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Rewrites a source object to a destination object. Optionally overrides metadata.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.rewrite@.+module Unkai.Storage.Objects.Rewrite+  ( -- * Resource+    StorageObjectsRewriteResource,++    -- ** Constructing a Request+    StorageObjectsRewrite (..),+    newStorageObjectsRewrite,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.rewrite@ method which the+-- 'StorageObjectsRewrite' request conforms to.+type StorageObjectsRewriteResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "sourceBucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "sourceObject" Core.Text+    Core.:> "rewriteTo"+    Core.:> "b"+    Core.:> Core.Capture "destinationBucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "destinationObject" Core.Text+    Core.:> Core.QueryParam "destinationKmsKeyName" Core.Text+    Core.:> Core.QueryParam+              "destinationPredefinedAcl"+              ObjectsRewriteDestinationPredefinedAcl+    Core.:> Core.QueryParams "dropContextGroups" Core.Text+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifSourceGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam+              "ifSourceMetagenerationMatch"+              Core.Int64+    Core.:> Core.QueryParam+              "ifSourceMetagenerationNotMatch"+              Core.Int64+    Core.:> Core.QueryParam+              "maxBytesRewrittenPerCall"+              Core.Int64+    Core.:> Core.QueryParam+              "projection"+              ObjectsRewriteProjection+    Core.:> Core.QueryParam "rewriteToken" Core.Text+    Core.:> Core.QueryParam "sourceGeneration" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] Object+    Core.:> Core.Post+              '[Core.JSON]+              RewriteResponse++-- | Rewrites a source object to a destination object. Optionally overrides metadata.+--+-- /See:/ 'newStorageObjectsRewrite' smart constructor.+data StorageObjectsRewrite = StorageObjectsRewrite+  { -- | Name of the bucket in which to store the new object. Overrides the provided object metadata\'s bucket value, if any.+    destinationBucket :: Core.Text,+    -- | Resource name of the Cloud KMS key, of the form projects\/my-project\/locations\/global\/keyRings\/my-kr\/cryptoKeys\/my-key, that will be used to encrypt the object. Overrides the object metadata\'s kms/key/name value, if any.+    destinationKmsKeyName :: (Core.Maybe Core.Text),+    -- | Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata\'s name value, if any. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    destinationObject :: Core.Text,+    -- | Apply a predefined set of access controls to the destination object.+    destinationPredefinedAcl :: (Core.Maybe ObjectsRewriteDestinationPredefinedAcl),+    -- | Specifies which object context groups to drop from the source object during a copy operation. The accepted value is \'custom\'. Destination contexts behave as follows: - When request body contexts are provided, they override all source contexts. - When no request body contexts are provided, source contexts are preserved unless \'dropContextGroups\' contains \'custom\', in which case all contexts are dropped.+    dropContextGroups :: (Core.Maybe [Core.Text]),+    -- | Makes the operation conditional on whether the object\'s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.+    ifGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the destination object\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the destination object\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current generation matches the given value.+    ifSourceGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current generation does not match the given value.+    ifSourceGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current metageneration matches the given value.+    ifSourceMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the source object\'s current metageneration does not match the given value.+    ifSourceMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | The maximum number of bytes that will be rewritten per rewrite request. Most callers shouldn\'t need to specify this parameter - it is primarily in place to support testing. If specified the value must be an integral multiple of 1 MiB (1048576). Also, this only applies to requests where the source and destination span locations and\/or storage classes. Finally, this value must not change across rewrite calls else you\'ll get an error that the rewriteToken is invalid.+    maxBytesRewrittenPerCall :: (Core.Maybe Core.Int64),+    -- | Request body.+    payload :: Object,+    -- | Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.+    projection :: (Core.Maybe ObjectsRewriteProjection),+    -- | Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response \'done\' flag is true. Calls that provide a rewriteToken can omit all other request fields, but if included those fields must match the values provided in the first rewrite request.+    rewriteToken :: (Core.Maybe Core.Text),+    -- | Name of the bucket in which to find the source object.+    sourceBucket :: Core.Text,+    -- | If present, selects a specific revision of the source object (as opposed to the latest version, the default).+    sourceGeneration :: (Core.Maybe Core.Int64),+    -- | Name of the source object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    sourceObject :: Core.Text,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsRewrite' with the minimum fields required to make a request.+newStorageObjectsRewrite ::+  -- |  Name of the bucket in which to find the source object. See 'sourceBucket'.+  Core.Text ->+  -- |  Name of the source object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'sourceObject'.+  Core.Text ->+  -- |  Name of the bucket in which to store the new object. Overrides the provided object metadata\'s bucket value, if any. See 'destinationBucket'.+  Core.Text ->+  -- |  Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata\'s name value, if any. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'destinationObject'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  Object ->+  StorageObjectsRewrite+newStorageObjectsRewrite+  sourceBucket+  sourceObject+  destinationBucket+  destinationObject+  payload =+    StorageObjectsRewrite+      { destinationBucket = destinationBucket,+        destinationKmsKeyName = Core.Nothing,+        destinationObject = destinationObject,+        destinationPredefinedAcl = Core.Nothing,+        dropContextGroups = Core.Nothing,+        ifGenerationMatch = Core.Nothing,+        ifGenerationNotMatch = Core.Nothing,+        ifMetagenerationMatch = Core.Nothing,+        ifMetagenerationNotMatch = Core.Nothing,+        ifSourceGenerationMatch = Core.Nothing,+        ifSourceGenerationNotMatch = Core.Nothing,+        ifSourceMetagenerationMatch = Core.Nothing,+        ifSourceMetagenerationNotMatch = Core.Nothing,+        maxBytesRewrittenPerCall = Core.Nothing,+        payload = payload,+        projection = Core.Nothing,+        rewriteToken = Core.Nothing,+        sourceBucket = sourceBucket,+        sourceGeneration = Core.Nothing,+        sourceObject = sourceObject,+        userProject = Core.Nothing+      }++instance Core.GoogleRequest StorageObjectsRewrite where+  type Rs StorageObjectsRewrite = RewriteResponse+  type+    Scopes StorageObjectsRewrite =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsRewrite {..} =+    go+      sourceBucket+      sourceObject+      destinationBucket+      destinationObject+      destinationKmsKeyName+      destinationPredefinedAcl+      (dropContextGroups Core.^. Core._Default)+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      ifSourceGenerationMatch+      ifSourceGenerationNotMatch+      ifSourceMetagenerationMatch+      ifSourceMetagenerationNotMatch+      maxBytesRewrittenPerCall+      projection+      rewriteToken+      sourceGeneration+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsRewriteResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/SetIamPolicy.hs view
@@ -0,0 +1,114 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.SetIamPolicy+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an IAM policy for the specified object.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.setIamPolicy@.+module Unkai.Storage.Objects.SetIamPolicy+  ( -- * Resource+    StorageObjectsSetIamPolicyResource,++    -- ** Constructing a Request+    StorageObjectsSetIamPolicy (..),+    newStorageObjectsSetIamPolicy,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.setIamPolicy@ method which the+-- 'StorageObjectsSetIamPolicy' request conforms to.+type StorageObjectsSetIamPolicyResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "iam"+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] PolicySetIamPolicyInput+    Core.:> Core.Put '[Core.JSON] Policy++-- | Updates an IAM policy for the specified object.+--+-- /See:/ 'newStorageObjectsSetIamPolicy' smart constructor.+data StorageObjectsSetIamPolicy = StorageObjectsSetIamPolicy+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | Request body.+    payload :: PolicySetIamPolicyInput,+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsSetIamPolicy' with the minimum fields required to make a request.+newStorageObjectsSetIamPolicy ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  PolicySetIamPolicyInput ->+  StorageObjectsSetIamPolicy+newStorageObjectsSetIamPolicy bucket object payload =+  StorageObjectsSetIamPolicy+    { bucket = bucket,+      generation = Core.Nothing,+      object = object,+      payload = payload,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsSetIamPolicy where+  type Rs StorageObjectsSetIamPolicy = Policy+  type+    Scopes StorageObjectsSetIamPolicy =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsSetIamPolicy {..} =+    go+      bucket+      object+      generation+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsSetIamPolicyResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/TestIamPermissions.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.TestIamPermissions+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Tests a set of permissions on the given object to see which, if any, are held by the caller.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.testIamPermissions@.+module Unkai.Storage.Objects.TestIamPermissions+  ( -- * Resource+    StorageObjectsTestIamPermissionsResource,++    -- ** Constructing a Request+    StorageObjectsTestIamPermissions (..),+    newStorageObjectsTestIamPermissions,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.testIamPermissions@ method which the+-- 'StorageObjectsTestIamPermissions' request conforms to.+type StorageObjectsTestIamPermissionsResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> "iam"+    Core.:> "testPermissions"+    Core.:> Core.QueryParams "permissions" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] TestIamPermissionsResponse++-- | Tests a set of permissions on the given object to see which, if any, are held by the caller.+--+-- /See:/ 'newStorageObjectsTestIamPermissions' smart constructor.+data StorageObjectsTestIamPermissions = StorageObjectsTestIamPermissions+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | Permissions to test.+    permissions :: [Core.Text],+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsTestIamPermissions' with the minimum fields required to make a request.+newStorageObjectsTestIamPermissions ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  Permissions to test. See 'permissions'.+  [Core.Text] ->+  StorageObjectsTestIamPermissions+newStorageObjectsTestIamPermissions bucket object permissions =+  StorageObjectsTestIamPermissions+    { bucket = bucket,+      generation = Core.Nothing,+      object = object,+      permissions = permissions,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsTestIamPermissions where+  type+    Rs StorageObjectsTestIamPermissions =+      TestIamPermissionsResponse+  type+    Scopes StorageObjectsTestIamPermissions =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageObjectsTestIamPermissions {..} =+    go+      bucket+      object+      permissions+      generation+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsTestIamPermissionsResource)+          Core.mempty
+ gen/Unkai/Storage/Objects/Update.hs view
@@ -0,0 +1,145 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Objects.Update+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an object\'s metadata.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.objects.update@.+module Unkai.Storage.Objects.Update+  ( -- * Resource+    StorageObjectsUpdateResource,++    -- ** Constructing a Request+    StorageObjectsUpdate (..),+    newStorageObjectsUpdate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.objects.update@ method which the+-- 'StorageObjectsUpdate' request conforms to.+type StorageObjectsUpdateResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "o"+    Core.:> Core.Capture "object" Core.Text+    Core.:> Core.QueryParam "generation" Core.Int64+    Core.:> Core.QueryParam "ifGenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifGenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationMatch" Core.Int64+    Core.:> Core.QueryParam "ifMetagenerationNotMatch" Core.Int64+    Core.:> Core.QueryParam "overrideUnlockedRetention" Core.Bool+    Core.:> Core.QueryParam "predefinedAcl" ObjectsUpdatePredefinedAcl+    Core.:> Core.QueryParam "projection" ObjectsUpdateProjection+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] Object+    Core.:> Core.Put '[Core.JSON] Object++-- | Updates an object\'s metadata.+--+-- /See:/ 'newStorageObjectsUpdate' smart constructor.+data StorageObjectsUpdate = StorageObjectsUpdate+  { -- | Name of the bucket in which the object resides.+    bucket :: Core.Text,+    -- | If present, selects a specific revision of this object (as opposed to the latest version, the default).+    generation :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.+    ifGenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.+    ifGenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration matches the given value.+    ifMetagenerationMatch :: (Core.Maybe Core.Int64),+    -- | Makes the operation conditional on whether the object\'s current metageneration does not match the given value.+    ifMetagenerationNotMatch :: (Core.Maybe Core.Int64),+    -- | Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>.+    object :: Core.Text,+    -- | Must be true to remove the retention configuration, reduce its unlocked retention period, or change its mode from unlocked to locked.+    overrideUnlockedRetention :: (Core.Maybe Core.Bool),+    -- | Request body.+    payload :: Object,+    -- | Apply a predefined set of access controls to this object.+    predefinedAcl :: (Core.Maybe ObjectsUpdatePredefinedAcl),+    -- | Set of properties to return. Defaults to full.+    projection :: (Core.Maybe ObjectsUpdateProjection),+    -- | The project to be billed for this request. Required for Requester Pays buckets.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageObjectsUpdate' with the minimum fields required to make a request.+newStorageObjectsUpdate ::+  -- |  Name of the bucket in which the object resides. See 'bucket'.+  Core.Text ->+  -- |  Name of the object. For information about how to URL encode object names to be path safe, see <https://cloud.google.com/storage/docs/request-endpoints#encoding Encoding URI Path Parts>. See 'object'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  Object ->+  StorageObjectsUpdate+newStorageObjectsUpdate bucket object payload =+  StorageObjectsUpdate+    { bucket = bucket,+      generation = Core.Nothing,+      ifGenerationMatch = Core.Nothing,+      ifGenerationNotMatch = Core.Nothing,+      ifMetagenerationMatch = Core.Nothing,+      ifMetagenerationNotMatch = Core.Nothing,+      object = object,+      overrideUnlockedRetention = Core.Nothing,+      payload = payload,+      predefinedAcl = Core.Nothing,+      projection = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageObjectsUpdate where+  type Rs StorageObjectsUpdate = Object+  type+    Scopes StorageObjectsUpdate =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageObjectsUpdate {..} =+    go+      bucket+      object+      generation+      ifGenerationMatch+      ifGenerationNotMatch+      ifMetagenerationMatch+      ifMetagenerationNotMatch+      overrideUnlockedRetention+      predefinedAcl+      projection+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageObjectsUpdateResource)+          Core.mempty
+ gen/Unkai/Storage/Projects/HmacKeys/Create.hs view
@@ -0,0 +1,98 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Projects.HmacKeys.Create+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new HMAC key for the specified service account.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.projects.hmacKeys.create@.+module Unkai.Storage.Projects.HmacKeys.Create+  ( -- * Resource+    StorageProjectsHmacKeysCreateResource,++    -- ** Constructing a Request+    StorageProjectsHmacKeysCreate (..),+    newStorageProjectsHmacKeysCreate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.projects.hmacKeys.create@ method which the+-- 'StorageProjectsHmacKeysCreate' request conforms to.+type StorageProjectsHmacKeysCreateResource =+  "storage"+    Core.:> "v1"+    Core.:> "projects"+    Core.:> Core.Capture "projectId" Core.Text+    Core.:> "hmacKeys"+    Core.:> Core.QueryParam "serviceAccountEmail" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] HmacKey++-- | Creates a new HMAC key for the specified service account.+--+-- /See:/ 'newStorageProjectsHmacKeysCreate' smart constructor.+data StorageProjectsHmacKeysCreate = StorageProjectsHmacKeysCreate+  { -- | Project ID owning the service account.+    projectId :: Core.Text,+    -- | Email address of the service account.+    serviceAccountEmail :: Core.Text,+    -- | The project to be billed for this request.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageProjectsHmacKeysCreate' with the minimum fields required to make a request.+newStorageProjectsHmacKeysCreate ::+  -- |  Project ID owning the service account. See 'projectId'.+  Core.Text ->+  -- |  Email address of the service account. See 'serviceAccountEmail'.+  Core.Text ->+  StorageProjectsHmacKeysCreate+newStorageProjectsHmacKeysCreate projectId serviceAccountEmail =+  StorageProjectsHmacKeysCreate+    { projectId = projectId,+      serviceAccountEmail = serviceAccountEmail,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageProjectsHmacKeysCreate where+  type Rs StorageProjectsHmacKeysCreate = HmacKey+  type+    Scopes StorageProjectsHmacKeysCreate =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageProjectsHmacKeysCreate {..} =+    go+      projectId+      (Core.Just serviceAccountEmail)+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageProjectsHmacKeysCreateResource)+          Core.mempty
+ gen/Unkai/Storage/Projects/HmacKeys/Delete.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Projects.HmacKeys.Delete+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an HMAC key.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.projects.hmacKeys.delete@.+module Unkai.Storage.Projects.HmacKeys.Delete+  ( -- * Resource+    StorageProjectsHmacKeysDeleteResource,++    -- ** Constructing a Request+    StorageProjectsHmacKeysDelete (..),+    newStorageProjectsHmacKeysDelete,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.projects.hmacKeys.delete@ method which the+-- 'StorageProjectsHmacKeysDelete' request conforms to.+type StorageProjectsHmacKeysDeleteResource =+  "storage"+    Core.:> "v1"+    Core.:> "projects"+    Core.:> Core.Capture "projectId" Core.Text+    Core.:> "hmacKeys"+    Core.:> Core.Capture "accessId" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Delete '[Core.JSON] ()++-- | Deletes an HMAC key.+--+-- /See:/ 'newStorageProjectsHmacKeysDelete' smart constructor.+data StorageProjectsHmacKeysDelete = StorageProjectsHmacKeysDelete+  { -- | Name of the HMAC key to be deleted.+    accessId :: Core.Text,+    -- | Project ID owning the requested key+    projectId :: Core.Text,+    -- | The project to be billed for this request.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageProjectsHmacKeysDelete' with the minimum fields required to make a request.+newStorageProjectsHmacKeysDelete ::+  -- |  Project ID owning the requested key See 'projectId'.+  Core.Text ->+  -- |  Name of the HMAC key to be deleted. See 'accessId'.+  Core.Text ->+  StorageProjectsHmacKeysDelete+newStorageProjectsHmacKeysDelete projectId accessId =+  StorageProjectsHmacKeysDelete+    { accessId = accessId,+      projectId = projectId,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageProjectsHmacKeysDelete where+  type Rs StorageProjectsHmacKeysDelete = ()+  type+    Scopes StorageProjectsHmacKeysDelete =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageProjectsHmacKeysDelete {..} =+    go+      projectId+      accessId+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageProjectsHmacKeysDeleteResource)+          Core.mempty
+ gen/Unkai/Storage/Projects/HmacKeys/Get.hs view
@@ -0,0 +1,102 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Projects.HmacKeys.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves an HMAC key\'s metadata+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.projects.hmacKeys.get@.+module Unkai.Storage.Projects.HmacKeys.Get+  ( -- * Resource+    StorageProjectsHmacKeysGetResource,++    -- ** Constructing a Request+    StorageProjectsHmacKeysGet (..),+    newStorageProjectsHmacKeysGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.projects.hmacKeys.get@ method which the+-- 'StorageProjectsHmacKeysGet' request conforms to.+type StorageProjectsHmacKeysGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "projects"+    Core.:> Core.Capture "projectId" Core.Text+    Core.:> "hmacKeys"+    Core.:> Core.Capture "accessId" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] HmacKeyMetadata++-- | Retrieves an HMAC key\'s metadata+--+-- /See:/ 'newStorageProjectsHmacKeysGet' smart constructor.+data StorageProjectsHmacKeysGet = StorageProjectsHmacKeysGet+  { -- | Name of the HMAC key.+    accessId :: Core.Text,+    -- | Project ID owning the service account of the requested key.+    projectId :: Core.Text,+    -- | The project to be billed for this request.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageProjectsHmacKeysGet' with the minimum fields required to make a request.+newStorageProjectsHmacKeysGet ::+  -- |  Project ID owning the service account of the requested key. See 'projectId'.+  Core.Text ->+  -- |  Name of the HMAC key. See 'accessId'.+  Core.Text ->+  StorageProjectsHmacKeysGet+newStorageProjectsHmacKeysGet projectId accessId =+  StorageProjectsHmacKeysGet+    { accessId = accessId,+      projectId = projectId,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageProjectsHmacKeysGet where+  type Rs StorageProjectsHmacKeysGet = HmacKeyMetadata+  type+    Scopes StorageProjectsHmacKeysGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly+       ]+  requestClient StorageProjectsHmacKeysGet {..} =+    go+      projectId+      accessId+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageProjectsHmacKeysGetResource)+          Core.mempty
+ gen/Unkai/Storage/Projects/HmacKeys/List.hs view
@@ -0,0 +1,115 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Projects.HmacKeys.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves a list of HMAC keys matching the criteria.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.projects.hmacKeys.list@.+module Unkai.Storage.Projects.HmacKeys.List+  ( -- * Resource+    StorageProjectsHmacKeysListResource,++    -- ** Constructing a Request+    StorageProjectsHmacKeysList (..),+    newStorageProjectsHmacKeysList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.projects.hmacKeys.list@ method which the+-- 'StorageProjectsHmacKeysList' request conforms to.+type StorageProjectsHmacKeysListResource =+  "storage"+    Core.:> "v1"+    Core.:> "projects"+    Core.:> Core.Capture "projectId" Core.Text+    Core.:> "hmacKeys"+    Core.:> Core.QueryParam "maxResults" Core.Word32+    Core.:> Core.QueryParam "pageToken" Core.Text+    Core.:> Core.QueryParam "serviceAccountEmail" Core.Text+    Core.:> Core.QueryParam "showDeletedKeys" Core.Bool+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] HmacKeysMetadata++-- | Retrieves a list of HMAC keys matching the criteria.+--+-- /See:/ 'newStorageProjectsHmacKeysList' smart constructor.+data StorageProjectsHmacKeysList = StorageProjectsHmacKeysList+  { -- | Maximum number of items to return in a single page of responses. The service uses this parameter or 250 items, whichever is smaller. The max number of items per page will also be limited by the number of distinct service accounts in the response. If the number of service accounts in a single response is too high, the page will truncated and a next page token will be returned.+    maxResults :: Core.Word32,+    -- | A previously-returned page token representing part of the larger set of results to view.+    pageToken :: (Core.Maybe Core.Text),+    -- | Name of the project in which to look for HMAC keys.+    projectId :: Core.Text,+    -- | If present, only keys for the given service account are returned.+    serviceAccountEmail :: (Core.Maybe Core.Text),+    -- | Whether or not to show keys in the DELETED state.+    showDeletedKeys :: (Core.Maybe Core.Bool),+    -- | The project to be billed for this request.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageProjectsHmacKeysList' with the minimum fields required to make a request.+newStorageProjectsHmacKeysList ::+  -- |  Name of the project in which to look for HMAC keys. See 'projectId'.+  Core.Text ->+  StorageProjectsHmacKeysList+newStorageProjectsHmacKeysList projectId =+  StorageProjectsHmacKeysList+    { maxResults = 250,+      pageToken = Core.Nothing,+      projectId = projectId,+      serviceAccountEmail = Core.Nothing,+      showDeletedKeys = Core.Nothing,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageProjectsHmacKeysList where+  type Rs StorageProjectsHmacKeysList = HmacKeysMetadata+  type+    Scopes StorageProjectsHmacKeysList =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly+       ]+  requestClient StorageProjectsHmacKeysList {..} =+    go+      projectId+      (Core.Just maxResults)+      pageToken+      serviceAccountEmail+      showDeletedKeys+      userProject+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageProjectsHmacKeysListResource)+          Core.mempty
+ gen/Unkai/Storage/Projects/HmacKeys/Update.hs view
@@ -0,0 +1,105 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Projects.HmacKeys.Update+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the state of an HMAC key. See the <https://cloud.google.com/storage/docs/json_api/v1/projects/hmacKeys/update#request-body HMAC Key resource descriptor> for valid states.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.projects.hmacKeys.update@.+module Unkai.Storage.Projects.HmacKeys.Update+  ( -- * Resource+    StorageProjectsHmacKeysUpdateResource,++    -- ** Constructing a Request+    StorageProjectsHmacKeysUpdate (..),+    newStorageProjectsHmacKeysUpdate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.projects.hmacKeys.update@ method which the+-- 'StorageProjectsHmacKeysUpdate' request conforms to.+type StorageProjectsHmacKeysUpdateResource =+  "storage"+    Core.:> "v1"+    Core.:> "projects"+    Core.:> Core.Capture "projectId" Core.Text+    Core.:> "hmacKeys"+    Core.:> Core.Capture "accessId" Core.Text+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] HmacKeyMetadata+    Core.:> Core.Put '[Core.JSON] HmacKeyMetadata++-- | Updates the state of an HMAC key. See the <https://cloud.google.com/storage/docs/json_api/v1/projects/hmacKeys/update#request-body HMAC Key resource descriptor> for valid states.+--+-- /See:/ 'newStorageProjectsHmacKeysUpdate' smart constructor.+data StorageProjectsHmacKeysUpdate = StorageProjectsHmacKeysUpdate+  { -- | Name of the HMAC key being updated.+    accessId :: Core.Text,+    -- | Request body.+    payload :: HmacKeyMetadata,+    -- | Project ID owning the service account of the updated key.+    projectId :: Core.Text,+    -- | The project to be billed for this request.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageProjectsHmacKeysUpdate' with the minimum fields required to make a request.+newStorageProjectsHmacKeysUpdate ::+  -- |  Project ID owning the service account of the updated key. See 'projectId'.+  Core.Text ->+  -- |  Name of the HMAC key being updated. See 'accessId'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  HmacKeyMetadata ->+  StorageProjectsHmacKeysUpdate+newStorageProjectsHmacKeysUpdate projectId accessId payload =+  StorageProjectsHmacKeysUpdate+    { accessId = accessId,+      payload = payload,+      projectId = projectId,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageProjectsHmacKeysUpdate where+  type Rs StorageProjectsHmacKeysUpdate = HmacKeyMetadata+  type+    Scopes StorageProjectsHmacKeysUpdate =+      '[CloudPlatform'FullControl, Devstorage'FullControl]+  requestClient StorageProjectsHmacKeysUpdate {..} =+    go+      projectId+      accessId+      userProject+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageProjectsHmacKeysUpdateResource)+          Core.mempty
+ gen/Unkai/Storage/Projects/ServiceAccount/Get.hs view
@@ -0,0 +1,92 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Projects.ServiceAccount.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Get the email address of this project\'s Google Cloud Storage service account.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.projects.serviceAccount.get@.+module Unkai.Storage.Projects.ServiceAccount.Get+  ( -- * Resource+    StorageProjectsServiceAccountGetResource,++    -- ** Constructing a Request+    StorageProjectsServiceAccountGet (..),+    newStorageProjectsServiceAccountGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.projects.serviceAccount.get@ method which the+-- 'StorageProjectsServiceAccountGet' request conforms to.+type StorageProjectsServiceAccountGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "projects"+    Core.:> Core.Capture "projectId" Core.Text+    Core.:> "serviceAccount"+    Core.:> Core.QueryParam "userProject" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] ServiceAccount++-- | Get the email address of this project\'s Google Cloud Storage service account.+--+-- /See:/ 'newStorageProjectsServiceAccountGet' smart constructor.+data StorageProjectsServiceAccountGet = StorageProjectsServiceAccountGet+  { -- | Project ID+    projectId :: Core.Text,+    -- | The project to be billed for this request.+    userProject :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageProjectsServiceAccountGet' with the minimum fields required to make a request.+newStorageProjectsServiceAccountGet ::+  -- |  Project ID See 'projectId'.+  Core.Text ->+  StorageProjectsServiceAccountGet+newStorageProjectsServiceAccountGet projectId =+  StorageProjectsServiceAccountGet+    { projectId = projectId,+      userProject = Core.Nothing+    }++instance Core.GoogleRequest StorageProjectsServiceAccountGet where+  type Rs StorageProjectsServiceAccountGet = ServiceAccount+  type+    Scopes StorageProjectsServiceAccountGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageProjectsServiceAccountGet {..} =+    go projectId userProject (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageProjectsServiceAccountGetResource)+          Core.mempty
+ gen/Unkai/Storage/RapidCaches/Disable.hs view
@@ -0,0 +1,93 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.RapidCaches.Disable+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Disables a Rapid Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.rapidCaches.disable@.+module Unkai.Storage.RapidCaches.Disable+  ( -- * Resource+    StorageRapidCachesDisableResource,++    -- ** Constructing a Request+    StorageRapidCachesDisable (..),+    newStorageRapidCachesDisable,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.rapidCaches.disable@ method which the+-- 'StorageRapidCachesDisable' request conforms to.+type StorageRapidCachesDisableResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "rapidCaches"+    Core.:> Core.Capture "rapidCacheId" Core.Text+    Core.:> "disable"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Disables a Rapid Cache instance.+--+-- /See:/ 'newStorageRapidCachesDisable' smart constructor.+data StorageRapidCachesDisable = StorageRapidCachesDisable+  { -- | Name of the parent bucket.+    bucket :: Core.Text,+    -- | The ID of the requested Rapid Cache instance.+    rapidCacheId :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageRapidCachesDisable' with the minimum fields required to make a request.+newStorageRapidCachesDisable ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  The ID of the requested Rapid Cache instance. See 'rapidCacheId'.+  Core.Text ->+  StorageRapidCachesDisable+newStorageRapidCachesDisable bucket rapidCacheId =+  StorageRapidCachesDisable+    { bucket = bucket,+      rapidCacheId = rapidCacheId+    }++instance Core.GoogleRequest StorageRapidCachesDisable where+  type Rs StorageRapidCachesDisable = GoogleLongrunningOperation+  type+    Scopes StorageRapidCachesDisable =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageRapidCachesDisable {..} =+    go bucket rapidCacheId (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageRapidCachesDisableResource)+          Core.mempty
+ gen/Unkai/Storage/RapidCaches/Get.hs view
@@ -0,0 +1,94 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.RapidCaches.Get+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the metadata of a Rapid Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.rapidCaches.get@.+module Unkai.Storage.RapidCaches.Get+  ( -- * Resource+    StorageRapidCachesGetResource,++    -- ** Constructing a Request+    StorageRapidCachesGet (..),+    newStorageRapidCachesGet,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.rapidCaches.get@ method which the+-- 'StorageRapidCachesGet' request conforms to.+type StorageRapidCachesGetResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "rapidCaches"+    Core.:> Core.Capture "rapidCacheId" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] RapidCache++-- | Returns the metadata of a Rapid Cache instance.+--+-- /See:/ 'newStorageRapidCachesGet' smart constructor.+data StorageRapidCachesGet = StorageRapidCachesGet+  { -- | Name of the parent bucket.+    bucket :: Core.Text,+    -- | The ID of the requested Rapid Cache instance.+    rapidCacheId :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageRapidCachesGet' with the minimum fields required to make a request.+newStorageRapidCachesGet ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  The ID of the requested Rapid Cache instance. See 'rapidCacheId'.+  Core.Text ->+  StorageRapidCachesGet+newStorageRapidCachesGet bucket rapidCacheId =+  StorageRapidCachesGet+    { bucket = bucket,+      rapidCacheId = rapidCacheId+    }++instance Core.GoogleRequest StorageRapidCachesGet where+  type Rs StorageRapidCachesGet = RapidCache+  type+    Scopes StorageRapidCachesGet =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageRapidCachesGet {..} =+    go bucket rapidCacheId (Core.Just Core.AltJSON) storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageRapidCachesGetResource)+          Core.mempty
+ gen/Unkai/Storage/RapidCaches/Insert.hs view
@@ -0,0 +1,89 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.RapidCaches.Insert+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a Rapid Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.rapidCaches.insert@.+module Unkai.Storage.RapidCaches.Insert+  ( -- * Resource+    StorageRapidCachesInsertResource,++    -- ** Constructing a Request+    StorageRapidCachesInsert (..),+    newStorageRapidCachesInsert,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.rapidCaches.insert@ method which the+-- 'StorageRapidCachesInsert' request conforms to.+type StorageRapidCachesInsertResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "rapidCaches"+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] RapidCache+    Core.:> Core.Post '[Core.JSON] GoogleLongrunningOperation++-- | Creates a Rapid Cache instance.+--+-- /See:/ 'newStorageRapidCachesInsert' smart constructor.+data StorageRapidCachesInsert = StorageRapidCachesInsert+  { -- | Name of the parent bucket.+    bucket :: Core.Text,+    -- | Request body.+    payload :: RapidCache+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageRapidCachesInsert' with the minimum fields required to make a request.+newStorageRapidCachesInsert ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  RapidCache ->+  StorageRapidCachesInsert+newStorageRapidCachesInsert bucket payload =+  StorageRapidCachesInsert {bucket = bucket, payload = payload}++instance Core.GoogleRequest StorageRapidCachesInsert where+  type Rs StorageRapidCachesInsert = GoogleLongrunningOperation+  type+    Scopes StorageRapidCachesInsert =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageRapidCachesInsert {..} =+    go bucket (Core.Just Core.AltJSON) payload storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageRapidCachesInsertResource)+          Core.mempty
+ gen/Unkai/Storage/RapidCaches/List.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.RapidCaches.List+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a list of Rapid Cache instances of the bucket.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.rapidCaches.list@.+module Unkai.Storage.RapidCaches.List+  ( -- * Resource+    StorageRapidCachesListResource,++    -- ** Constructing a Request+    StorageRapidCachesList (..),+    newStorageRapidCachesList,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.rapidCaches.list@ method which the+-- 'StorageRapidCachesList' request conforms to.+type StorageRapidCachesListResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "rapidCaches"+    Core.:> Core.QueryParam "pageSize" Core.Int32+    Core.:> Core.QueryParam "pageToken" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.Get '[Core.JSON] RapidCaches++-- | Returns a list of Rapid Cache instances of the bucket.+--+-- /See:/ 'newStorageRapidCachesList' smart constructor.+data StorageRapidCachesList = StorageRapidCachesList+  { -- | Name of the parent bucket.+    bucket :: Core.Text,+    -- | Maximum number of items to return in a single page of responses.+    pageSize :: (Core.Maybe Core.Int32),+    -- | A previously-returned page token representing part of the larger set of results to view.+    pageToken :: (Core.Maybe Core.Text)+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageRapidCachesList' with the minimum fields required to make a request.+newStorageRapidCachesList ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  StorageRapidCachesList+newStorageRapidCachesList bucket =+  StorageRapidCachesList+    { bucket = bucket,+      pageSize = Core.Nothing,+      pageToken = Core.Nothing+    }++instance Core.GoogleRequest StorageRapidCachesList where+  type Rs StorageRapidCachesList = RapidCaches+  type+    Scopes StorageRapidCachesList =+      '[ CloudPlatform'FullControl,+         CloudPlatform'ReadOnly,+         Devstorage'FullControl,+         Devstorage'ReadOnly,+         Devstorage'ReadWrite+       ]+  requestClient StorageRapidCachesList {..} =+    go+      bucket+      pageSize+      pageToken+      (Core.Just Core.AltJSON)+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageRapidCachesListResource)+          Core.mempty
+ gen/Unkai/Storage/RapidCaches/Update.hs view
@@ -0,0 +1,103 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.RapidCaches.Update+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the configuration of a Rapid Cache instance.+--+-- /See:/ <https://developers.google.com/storage/docs/json_api/ Cloud Storage JSON API Reference> for @storage.rapidCaches.update@.+module Unkai.Storage.RapidCaches.Update+  ( -- * Resource+    StorageRapidCachesUpdateResource,++    -- ** Constructing a Request+    StorageRapidCachesUpdate (..),+    newStorageRapidCachesUpdate,+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Types++-- | A resource alias for @storage.rapidCaches.update@ method which the+-- 'StorageRapidCachesUpdate' request conforms to.+type StorageRapidCachesUpdateResource =+  "storage"+    Core.:> "v1"+    Core.:> "b"+    Core.:> Core.Capture "bucket" Core.Text+    Core.:> "rapidCaches"+    Core.:> Core.Capture "rapidCacheId" Core.Text+    Core.:> Core.QueryParam "alt" Core.AltJSON+    Core.:> Core.ReqBody '[Core.JSON] RapidCachePatch+    Core.:> Core.Patch '[Core.JSON] GoogleLongrunningOperation++-- | Updates the configuration of a Rapid Cache instance.+--+-- /See:/ 'newStorageRapidCachesUpdate' smart constructor.+data StorageRapidCachesUpdate = StorageRapidCachesUpdate+  { -- | Name of the parent bucket.+    bucket :: Core.Text,+    -- | Request body.+    payload :: RapidCachePatch,+    -- | The ID of the requested Rapid Cache instance.+    rapidCacheId :: Core.Text+  }+  deriving stock (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageRapidCachesUpdate' with the minimum fields required to make a request.+newStorageRapidCachesUpdate ::+  -- |  Name of the parent bucket. See 'bucket'.+  Core.Text ->+  -- |  The ID of the requested Rapid Cache instance. See 'rapidCacheId'.+  Core.Text ->+  -- |  Request body. See 'payload'.+  RapidCachePatch ->+  StorageRapidCachesUpdate+newStorageRapidCachesUpdate bucket rapidCacheId payload =+  StorageRapidCachesUpdate+    { bucket = bucket,+      payload = payload,+      rapidCacheId = rapidCacheId+    }++instance Core.GoogleRequest StorageRapidCachesUpdate where+  type Rs StorageRapidCachesUpdate = GoogleLongrunningOperation+  type+    Scopes StorageRapidCachesUpdate =+      '[ CloudPlatform'FullControl,+         Devstorage'FullControl,+         Devstorage'ReadWrite+       ]+  requestClient StorageRapidCachesUpdate {..} =+    go+      bucket+      rapidCacheId+      (Core.Just Core.AltJSON)+      payload+      storageService+    where+      go =+        Core.buildClient+          (Core.Proxy :: Core.Proxy StorageRapidCachesUpdateResource)+          Core.mempty
+ gen/Unkai/Storage/Types.hs view
@@ -0,0 +1,706 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module      : Unkai.Storage.Types+-- Copyright   : (c) 2015-2025 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Nadeem Bitar <nadeem@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Unkai.Storage.Types+  ( -- * Configuration+    storageService,++    -- * OAuth Scopes+    CloudPlatform'FullControl,+    CloudPlatform'ReadOnly,+    Devstorage'FullControl,+    Devstorage'ReadOnly,+    Devstorage'ReadWrite,++    -- * Types++    -- ** AdvanceRelocateBucketOperationRequest+    AdvanceRelocateBucketOperationRequest (..),+    newAdvanceRelocateBucketOperationRequest,++    -- ** AnywhereCache+    AnywhereCache (..),+    newAnywhereCache,++    -- ** AnywhereCachePatch+    AnywhereCachePatch (..),+    newAnywhereCachePatch,++    -- ** AnywhereCaches+    AnywhereCaches (..),+    newAnywhereCaches,++    -- ** Bucket+    Bucket (..),+    newBucket,++    -- ** BucketInsertInput+    BucketInsertInput (..),+    newBucketInsertInput,++    -- ** BucketPatch+    BucketPatch (..),+    newBucketPatch,++    -- ** BucketUpdateInput+    BucketUpdateInput (..),+    newBucketUpdateInput,++    -- ** Bucket_Autoclass+    Bucket_Autoclass (..),+    newBucket_Autoclass,++    -- ** Bucket_AutoclassPatch+    Bucket_AutoclassPatch (..),+    newBucket_AutoclassPatch,++    -- ** Bucket_Billing+    Bucket_Billing (..),+    newBucket_Billing,++    -- ** Bucket_BillingPatch+    Bucket_BillingPatch (..),+    newBucket_BillingPatch,++    -- ** Bucket_CorsItem+    Bucket_CorsItem (..),+    newBucket_CorsItem,++    -- ** Bucket_CustomPlacementConfig+    Bucket_CustomPlacementConfig (..),+    newBucket_CustomPlacementConfig,++    -- ** Bucket_CustomPlacementConfigPatch+    Bucket_CustomPlacementConfigPatch (..),+    newBucket_CustomPlacementConfigPatch,++    -- ** Bucket_Encryption+    Bucket_Encryption (..),+    newBucket_Encryption,++    -- ** Bucket_EncryptionPatch+    Bucket_EncryptionPatch (..),+    newBucket_EncryptionPatch,++    -- ** Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig (..),+    newBucket_Encryption_CustomerManagedEncryptionEnforcementConfig,++    -- ** Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch (..),+    newBucket_Encryption_CustomerManagedEncryptionEnforcementConfigPatch,++    -- ** Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode+    Bucket_Encryption_CustomerManagedEncryptionEnforcementConfig_RestrictionMode (..),++    -- ** Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig (..),+    newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig,++    -- ** Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch (..),+    newBucket_Encryption_CustomerSuppliedEncryptionEnforcementConfigPatch,++    -- ** Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode+    Bucket_Encryption_CustomerSuppliedEncryptionEnforcementConfig_RestrictionMode (..),++    -- ** Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig (..),+    newBucket_Encryption_GoogleManagedEncryptionEnforcementConfig,++    -- ** Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch (..),+    newBucket_Encryption_GoogleManagedEncryptionEnforcementConfigPatch,++    -- ** Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode+    Bucket_Encryption_GoogleManagedEncryptionEnforcementConfig_RestrictionMode (..),++    -- ** Bucket_HierarchicalNamespace+    Bucket_HierarchicalNamespace (..),+    newBucket_HierarchicalNamespace,++    -- ** Bucket_HierarchicalNamespacePatch+    Bucket_HierarchicalNamespacePatch (..),+    newBucket_HierarchicalNamespacePatch,++    -- ** Bucket_IamConfiguration+    Bucket_IamConfiguration (..),+    newBucket_IamConfiguration,++    -- ** Bucket_IamConfigurationPatch+    Bucket_IamConfigurationPatch (..),+    newBucket_IamConfigurationPatch,++    -- ** Bucket_IamConfiguration_BucketPolicyOnly+    Bucket_IamConfiguration_BucketPolicyOnly (..),+    newBucket_IamConfiguration_BucketPolicyOnly,++    -- ** Bucket_IamConfiguration_BucketPolicyOnlyPatch+    Bucket_IamConfiguration_BucketPolicyOnlyPatch (..),+    newBucket_IamConfiguration_BucketPolicyOnlyPatch,++    -- ** Bucket_IamConfiguration_UniformBucketLevelAccess+    Bucket_IamConfiguration_UniformBucketLevelAccess (..),+    newBucket_IamConfiguration_UniformBucketLevelAccess,++    -- ** Bucket_IamConfiguration_UniformBucketLevelAccessPatch+    Bucket_IamConfiguration_UniformBucketLevelAccessPatch (..),+    newBucket_IamConfiguration_UniformBucketLevelAccessPatch,++    -- ** Bucket_IpFilter+    Bucket_IpFilter (..),+    newBucket_IpFilter,++    -- ** Bucket_IpFilterPatch+    Bucket_IpFilterPatch (..),+    newBucket_IpFilterPatch,++    -- ** Bucket_IpFilter_PublicNetworkSource+    Bucket_IpFilter_PublicNetworkSource (..),+    newBucket_IpFilter_PublicNetworkSource,++    -- ** Bucket_IpFilter_PublicNetworkSourcePatch+    Bucket_IpFilter_PublicNetworkSourcePatch (..),+    newBucket_IpFilter_PublicNetworkSourcePatch,++    -- ** Bucket_IpFilter_VpcNetworkSourcesItem+    Bucket_IpFilter_VpcNetworkSourcesItem (..),+    newBucket_IpFilter_VpcNetworkSourcesItem,++    -- ** Bucket_Labels+    Bucket_Labels (..),+    newBucket_Labels,++    -- ** Bucket_LabelsPatch+    Bucket_LabelsPatch (..),+    newBucket_LabelsPatch,++    -- ** Bucket_Lifecycle+    Bucket_Lifecycle (..),+    newBucket_Lifecycle,++    -- ** Bucket_LifecyclePatch+    Bucket_LifecyclePatch (..),+    newBucket_LifecyclePatch,++    -- ** Bucket_Lifecycle_RuleItem+    Bucket_Lifecycle_RuleItem (..),+    newBucket_Lifecycle_RuleItem,++    -- ** Bucket_Lifecycle_RuleItem_Action+    Bucket_Lifecycle_RuleItem_Action (..),+    newBucket_Lifecycle_RuleItem_Action,++    -- ** Bucket_Lifecycle_RuleItem_Condition+    Bucket_Lifecycle_RuleItem_Condition (..),+    newBucket_Lifecycle_RuleItem_Condition,++    -- ** Bucket_Logging+    Bucket_Logging (..),+    newBucket_Logging,++    -- ** Bucket_LoggingPatch+    Bucket_LoggingPatch (..),+    newBucket_LoggingPatch,++    -- ** Bucket_ObjectRetention+    Bucket_ObjectRetention (..),+    newBucket_ObjectRetention,++    -- ** Bucket_ObjectRetentionPatch+    Bucket_ObjectRetentionPatch (..),+    newBucket_ObjectRetentionPatch,++    -- ** Bucket_Owner+    Bucket_Owner (..),+    newBucket_Owner,++    -- ** Bucket_OwnerPatch+    Bucket_OwnerPatch (..),+    newBucket_OwnerPatch,++    -- ** Bucket_RetentionPolicy+    Bucket_RetentionPolicy (..),+    newBucket_RetentionPolicy,++    -- ** Bucket_RetentionPolicyPatch+    Bucket_RetentionPolicyPatch (..),+    newBucket_RetentionPolicyPatch,++    -- ** Bucket_SoftDeletePolicy+    Bucket_SoftDeletePolicy (..),+    newBucket_SoftDeletePolicy,++    -- ** Bucket_SoftDeletePolicyPatch+    Bucket_SoftDeletePolicyPatch (..),+    newBucket_SoftDeletePolicyPatch,++    -- ** Bucket_Versioning+    Bucket_Versioning (..),+    newBucket_Versioning,++    -- ** Bucket_VersioningPatch+    Bucket_VersioningPatch (..),+    newBucket_VersioningPatch,++    -- ** Bucket_Website+    Bucket_Website (..),+    newBucket_Website,++    -- ** Bucket_WebsitePatch+    Bucket_WebsitePatch (..),+    newBucket_WebsitePatch,++    -- ** BucketAccessControl+    BucketAccessControl (..),+    newBucketAccessControl,++    -- ** BucketAccessControlInsertInput+    BucketAccessControlInsertInput (..),+    newBucketAccessControlInsertInput,++    -- ** BucketAccessControlPatch+    BucketAccessControlPatch (..),+    newBucketAccessControlPatch,++    -- ** BucketAccessControl_ProjectTeam+    BucketAccessControl_ProjectTeam (..),+    newBucketAccessControl_ProjectTeam,++    -- ** BucketAccessControl_ProjectTeamPatch+    BucketAccessControl_ProjectTeamPatch (..),+    newBucketAccessControl_ProjectTeamPatch,++    -- ** BucketAccessControls+    BucketAccessControls (..),+    newBucketAccessControls,++    -- ** BucketStorageLayout+    BucketStorageLayout (..),+    newBucketStorageLayout,++    -- ** BucketStorageLayout_CustomPlacementConfig+    BucketStorageLayout_CustomPlacementConfig (..),+    newBucketStorageLayout_CustomPlacementConfig,++    -- ** BucketStorageLayout_HierarchicalNamespace+    BucketStorageLayout_HierarchicalNamespace (..),+    newBucketStorageLayout_HierarchicalNamespace,++    -- ** Buckets+    Buckets (..),+    newBuckets,++    -- ** BulkRestoreObjectsRequest+    BulkRestoreObjectsRequest (..),+    newBulkRestoreObjectsRequest,++    -- ** Channel+    Channel (..),+    newChannel,++    -- ** Channel_Params+    Channel_Params (..),+    newChannel_Params,++    -- ** ComposeRequest+    ComposeRequest (..),+    newComposeRequest,++    -- ** ComposeRequestInput+    ComposeRequestInput (..),+    newComposeRequestInput,++    -- ** ComposeRequest_SourceObjectsItem+    ComposeRequest_SourceObjectsItem (..),+    newComposeRequest_SourceObjectsItem,++    -- ** ComposeRequest_SourceObjectsItemInput+    ComposeRequest_SourceObjectsItemInput (..),+    newComposeRequest_SourceObjectsItemInput,++    -- ** ComposeRequest_SourceObjectsItem_ObjectPreconditions+    ComposeRequest_SourceObjectsItem_ObjectPreconditions (..),+    newComposeRequest_SourceObjectsItem_ObjectPreconditions,++    -- ** Expr+    Expr (..),+    newExpr,++    -- ** Folder+    Folder (..),+    newFolder,++    -- ** Folder_PendingRenameInfo+    Folder_PendingRenameInfo (..),+    newFolder_PendingRenameInfo,++    -- ** Folders+    Folders (..),+    newFolders,++    -- ** GoogleLongrunningListOperationsResponse+    GoogleLongrunningListOperationsResponse (..),+    newGoogleLongrunningListOperationsResponse,++    -- ** GoogleLongrunningOperation+    GoogleLongrunningOperation (..),+    newGoogleLongrunningOperation,++    -- ** GoogleLongrunningOperation_Metadata+    GoogleLongrunningOperation_Metadata (..),+    newGoogleLongrunningOperation_Metadata,++    -- ** GoogleLongrunningOperation_Response+    GoogleLongrunningOperation_Response (..),+    newGoogleLongrunningOperation_Response,++    -- ** GoogleRpcStatus+    GoogleRpcStatus (..),+    newGoogleRpcStatus,++    -- ** GoogleRpcStatus_DetailsItem+    GoogleRpcStatus_DetailsItem (..),+    newGoogleRpcStatus_DetailsItem,++    -- ** HmacKey+    HmacKey (..),+    newHmacKey,++    -- ** HmacKeyMetadata+    HmacKeyMetadata (..),+    newHmacKeyMetadata,++    -- ** HmacKeysMetadata+    HmacKeysMetadata (..),+    newHmacKeysMetadata,++    -- ** ManagedFolder+    ManagedFolder (..),+    newManagedFolder,++    -- ** ManagedFolderPatch+    ManagedFolderPatch (..),+    newManagedFolderPatch,++    -- ** ManagedFolders+    ManagedFolders (..),+    newManagedFolders,++    -- ** Notification+    Notification (..),+    newNotification,++    -- ** NotificationInsertInput+    NotificationInsertInput (..),+    newNotificationInsertInput,++    -- ** Notification_Custom_attributes+    Notification_Custom_attributes (..),+    newNotification_Custom_attributes,++    -- ** Notifications+    Notifications (..),+    newNotifications,++    -- ** Object+    Object (..),+    newObject,++    -- ** ObjectPatch+    ObjectPatch (..),+    newObjectPatch,++    -- ** Object_Contexts+    Object_Contexts (..),+    newObject_Contexts,++    -- ** Object_ContextsPatch+    Object_ContextsPatch (..),+    newObject_ContextsPatch,++    -- ** Object_Contexts_Custom+    Object_Contexts_Custom (..),+    newObject_Contexts_Custom,++    -- ** Object_Contexts_CustomPatch+    Object_Contexts_CustomPatch (..),+    newObject_Contexts_CustomPatch,++    -- ** Object_CustomerEncryption+    Object_CustomerEncryption (..),+    newObject_CustomerEncryption,++    -- ** Object_CustomerEncryptionPatch+    Object_CustomerEncryptionPatch (..),+    newObject_CustomerEncryptionPatch,++    -- ** Object_Metadata+    Object_Metadata (..),+    newObject_Metadata,++    -- ** Object_MetadataPatch+    Object_MetadataPatch (..),+    newObject_MetadataPatch,++    -- ** Object_Owner+    Object_Owner (..),+    newObject_Owner,++    -- ** Object_OwnerPatch+    Object_OwnerPatch (..),+    newObject_OwnerPatch,++    -- ** Object_Retention+    Object_Retention (..),+    newObject_Retention,++    -- ** Object_RetentionPatch+    Object_RetentionPatch (..),+    newObject_RetentionPatch,++    -- ** ObjectAccessControl+    ObjectAccessControl (..),+    newObjectAccessControl,++    -- ** ObjectAccessControlInsertInput+    ObjectAccessControlInsertInput (..),+    newObjectAccessControlInsertInput,++    -- ** ObjectAccessControlPatch+    ObjectAccessControlPatch (..),+    newObjectAccessControlPatch,++    -- ** ObjectAccessControl_ProjectTeam+    ObjectAccessControl_ProjectTeam (..),+    newObjectAccessControl_ProjectTeam,++    -- ** ObjectAccessControl_ProjectTeamPatch+    ObjectAccessControl_ProjectTeamPatch (..),+    newObjectAccessControl_ProjectTeamPatch,++    -- ** ObjectAccessControls+    ObjectAccessControls (..),+    newObjectAccessControls,++    -- ** ObjectCustomContextPayload+    ObjectCustomContextPayload (..),+    newObjectCustomContextPayload,++    -- ** ObjectCustomContextPayloadPatch+    ObjectCustomContextPayloadPatch (..),+    newObjectCustomContextPayloadPatch,++    -- ** Objects+    Objects (..),+    newObjects,++    -- ** Policy+    Policy (..),+    newPolicy,++    -- ** PolicySetIamPolicyInput+    PolicySetIamPolicyInput (..),+    newPolicySetIamPolicyInput,++    -- ** Policy_BindingsItem+    Policy_BindingsItem (..),+    newPolicy_BindingsItem,++    -- ** Policy_BindingsItemSetIamPolicyInput+    Policy_BindingsItemSetIamPolicyInput (..),+    newPolicy_BindingsItemSetIamPolicyInput,++    -- ** RapidCache+    RapidCache (..),+    newRapidCache,++    -- ** RapidCachePatch+    RapidCachePatch (..),+    newRapidCachePatch,++    -- ** RapidCacheConfig+    RapidCacheConfig (..),+    newRapidCacheConfig,++    -- ** RapidCacheConfigPatch+    RapidCacheConfigPatch (..),+    newRapidCacheConfigPatch,++    -- ** RapidCacheConfig_Policies+    RapidCacheConfig_Policies (..),+    newRapidCacheConfig_Policies,++    -- ** RapidCacheConfig_PoliciesPatch+    RapidCacheConfig_PoliciesPatch (..),+    newRapidCacheConfig_PoliciesPatch,++    -- ** RapidCachePolicy+    RapidCachePolicy (..),+    newRapidCachePolicy,++    -- ** RapidCachePolicyPatch+    RapidCachePolicyPatch (..),+    newRapidCachePolicyPatch,++    -- ** RapidCachePolicy_IngestOnWrite+    RapidCachePolicy_IngestOnWrite (..),++    -- ** RapidCaches+    RapidCaches (..),+    newRapidCaches,++    -- ** RelocateBucketRequest+    RelocateBucketRequest (..),+    newRelocateBucketRequest,++    -- ** RelocateBucketRequest_DestinationCustomPlacementConfig+    RelocateBucketRequest_DestinationCustomPlacementConfig (..),+    newRelocateBucketRequest_DestinationCustomPlacementConfig,++    -- ** RewriteResponse+    RewriteResponse (..),+    newRewriteResponse,++    -- ** ServiceAccount+    ServiceAccount (..),+    newServiceAccount,++    -- ** TestIamPermissionsResponse+    TestIamPermissionsResponse (..),+    newTestIamPermissionsResponse,++    -- ** BucketsGetProjection+    BucketsGetProjection (..),++    -- ** BucketsInsertPredefinedAcl+    BucketsInsertPredefinedAcl (..),++    -- ** BucketsInsertPredefinedDefaultObjectAcl+    BucketsInsertPredefinedDefaultObjectAcl (..),++    -- ** BucketsInsertProjection+    BucketsInsertProjection (..),++    -- ** BucketsListProjection+    BucketsListProjection (..),++    -- ** BucketsPatchPredefinedAcl+    BucketsPatchPredefinedAcl (..),++    -- ** BucketsPatchPredefinedDefaultObjectAcl+    BucketsPatchPredefinedDefaultObjectAcl (..),++    -- ** BucketsPatchProjection+    BucketsPatchProjection (..),++    -- ** BucketsRestoreProjection+    BucketsRestoreProjection (..),++    -- ** BucketsUpdatePredefinedAcl+    BucketsUpdatePredefinedAcl (..),++    -- ** BucketsUpdatePredefinedDefaultObjectAcl+    BucketsUpdatePredefinedDefaultObjectAcl (..),++    -- ** BucketsUpdateProjection+    BucketsUpdateProjection (..),++    -- ** ObjectsComposeDestinationPredefinedAcl+    ObjectsComposeDestinationPredefinedAcl (..),++    -- ** ObjectsCopyDestinationPredefinedAcl+    ObjectsCopyDestinationPredefinedAcl (..),++    -- ** ObjectsCopyProjection+    ObjectsCopyProjection (..),++    -- ** ObjectsGetProjection+    ObjectsGetProjection (..),++    -- ** ObjectsInsertPredefinedAcl+    ObjectsInsertPredefinedAcl (..),++    -- ** ObjectsInsertProjection+    ObjectsInsertProjection (..),++    -- ** ObjectsListProjection+    ObjectsListProjection (..),++    -- ** ObjectsMoveProjection+    ObjectsMoveProjection (..),++    -- ** ObjectsPatchPredefinedAcl+    ObjectsPatchPredefinedAcl (..),++    -- ** ObjectsPatchProjection+    ObjectsPatchProjection (..),++    -- ** ObjectsRestoreProjection+    ObjectsRestoreProjection (..),++    -- ** ObjectsRewriteDestinationPredefinedAcl+    ObjectsRewriteDestinationPredefinedAcl (..),++    -- ** ObjectsRewriteProjection+    ObjectsRewriteProjection (..),++    -- ** ObjectsUpdatePredefinedAcl+    ObjectsUpdatePredefinedAcl (..),++    -- ** ObjectsUpdateProjection+    ObjectsUpdateProjection (..),+  )+where++import Unkai.Prelude qualified as Core+import Unkai.Storage.Internal.Product+import Unkai.Storage.Internal.Sum++-- | Default request referring to version @v1@ of the Cloud Storage JSON API. This contains the host and root path used as a starting point for constructing service requests.+storageService :: Core.ServiceConfig+storageService =+  Core.defaultService+    (Core.ServiceId "storage:v1")+    "storage.googleapis.com"++-- | View and manage your data across Google Cloud Platform services+type CloudPlatform'FullControl =+  "https://www.googleapis.com/auth/cloud-platform"++-- | View your data across Google Cloud Platform services+type CloudPlatform'ReadOnly =+  "https://www.googleapis.com/auth/cloud-platform.read-only"++-- | Manage your data and permissions in Google Cloud Storage+type Devstorage'FullControl =+  "https://www.googleapis.com/auth/devstorage.full_control"++-- | View your data in Google Cloud Storage+type Devstorage'ReadOnly =+  "https://www.googleapis.com/auth/devstorage.read_only"++-- | Manage your data in Google Cloud Storage+type Devstorage'ReadWrite =+  "https://www.googleapis.com/auth/devstorage.read_write"
+ src/.gitkeep view
+ unkai-storage.cabal view
@@ -0,0 +1,163 @@+cabal-version: 3.12+name: unkai-storage+version: 0.1.0.1+synopsis: Google Cloud Storage JSON SDK.+homepage: https://github.com/shinzui/unkai+bug-reports: https://github.com/shinzui/unkai/issues+license: MPL-2.0+license-file: LICENSE+author: Brendan Hay, Nadeem Bitar+maintainer: Nadeem Bitar <nadeem@gmail.com>+copyright: Copyright (c) 2015-2025 Brendan Hay, (c) 2026 Nadeem Bitar+category: Google+build-type: Simple+tested-with: ghc ==9.12.4+extra-doc-files: README.md+extra-source-files: src/.gitkeep+description:+    Stores and retrieves potentially large, immutable data objects.+  .+  Generated by @unkai-gen@ from the Google Discovery document.+  .+  This library is compatible with version @v1@+  of the API.+  .+  Labels:+  .+  * Labs++source-repository head+  type: git+  location: https://github.com/shinzui/unkai.git+  subdir: lib/services/unkai-storage++flag field-selectors+  description: Enable record field selectors. When disabled (the default), fields are accessed with generic-lens labels or record dot syntax.+  default: False+  manual: True++common common+  default-language: GHC2024+  default-extensions:+    DeriveAnyClass+    DuplicateRecordFields+    OverloadedLabels+    OverloadedStrings++  ghc-options:+    -Wall+    -Wcompat+    -Widentities+    -Wincomplete-uni-patterns+    -Wincomplete-record-updates+    -Wredundant-constraints+    -Wunused-packages+    -Wmissing-deriving-strategies+    -fhide-source-paths+    -funbox-strict-fields++library+  import: common+  hs-source-dirs:+    src+    gen++  if !flag(field-selectors)+    default-extensions: NoFieldSelectors+  exposed-modules:+    Unkai.Storage+    Unkai.Storage.AnywhereCaches.Disable+    Unkai.Storage.AnywhereCaches.Get+    Unkai.Storage.AnywhereCaches.Insert+    Unkai.Storage.AnywhereCaches.List+    Unkai.Storage.AnywhereCaches.Pause+    Unkai.Storage.AnywhereCaches.Resume+    Unkai.Storage.AnywhereCaches.Update+    Unkai.Storage.BucketAccessControls.Delete+    Unkai.Storage.BucketAccessControls.Get+    Unkai.Storage.BucketAccessControls.Insert+    Unkai.Storage.BucketAccessControls.List+    Unkai.Storage.BucketAccessControls.Patch+    Unkai.Storage.BucketAccessControls.Update+    Unkai.Storage.Buckets.Delete+    Unkai.Storage.Buckets.Get+    Unkai.Storage.Buckets.GetIamPolicy+    Unkai.Storage.Buckets.GetStorageLayout+    Unkai.Storage.Buckets.Insert+    Unkai.Storage.Buckets.List+    Unkai.Storage.Buckets.LockRetentionPolicy+    Unkai.Storage.Buckets.Operations.AdvanceRelocateBucket+    Unkai.Storage.Buckets.Operations.Cancel+    Unkai.Storage.Buckets.Operations.Get+    Unkai.Storage.Buckets.Operations.List+    Unkai.Storage.Buckets.Patch+    Unkai.Storage.Buckets.Relocate+    Unkai.Storage.Buckets.Restore+    Unkai.Storage.Buckets.SetIamPolicy+    Unkai.Storage.Buckets.TestIamPermissions+    Unkai.Storage.Buckets.Update+    Unkai.Storage.Channels.Stop+    Unkai.Storage.DefaultObjectAccessControls.Delete+    Unkai.Storage.DefaultObjectAccessControls.Get+    Unkai.Storage.DefaultObjectAccessControls.Insert+    Unkai.Storage.DefaultObjectAccessControls.List+    Unkai.Storage.DefaultObjectAccessControls.Patch+    Unkai.Storage.DefaultObjectAccessControls.Update+    Unkai.Storage.Folders.Delete+    Unkai.Storage.Folders.DeleteRecursive+    Unkai.Storage.Folders.Get+    Unkai.Storage.Folders.Insert+    Unkai.Storage.Folders.List+    Unkai.Storage.Folders.Rename+    Unkai.Storage.ManagedFolders.Delete+    Unkai.Storage.ManagedFolders.Get+    Unkai.Storage.ManagedFolders.GetIamPolicy+    Unkai.Storage.ManagedFolders.Insert+    Unkai.Storage.ManagedFolders.List+    Unkai.Storage.ManagedFolders.SetIamPolicy+    Unkai.Storage.ManagedFolders.TestIamPermissions+    Unkai.Storage.ManagedFolders.Update+    Unkai.Storage.Notifications.Delete+    Unkai.Storage.Notifications.Get+    Unkai.Storage.Notifications.Insert+    Unkai.Storage.Notifications.List+    Unkai.Storage.ObjectAccessControls.Delete+    Unkai.Storage.ObjectAccessControls.Get+    Unkai.Storage.ObjectAccessControls.Insert+    Unkai.Storage.ObjectAccessControls.List+    Unkai.Storage.ObjectAccessControls.Patch+    Unkai.Storage.ObjectAccessControls.Update+    Unkai.Storage.Objects.BulkRestore+    Unkai.Storage.Objects.Compose+    Unkai.Storage.Objects.Copy+    Unkai.Storage.Objects.Delete+    Unkai.Storage.Objects.Get+    Unkai.Storage.Objects.GetIamPolicy+    Unkai.Storage.Objects.Insert+    Unkai.Storage.Objects.List+    Unkai.Storage.Objects.Move+    Unkai.Storage.Objects.Patch+    Unkai.Storage.Objects.Restore+    Unkai.Storage.Objects.Rewrite+    Unkai.Storage.Objects.SetIamPolicy+    Unkai.Storage.Objects.TestIamPermissions+    Unkai.Storage.Objects.Update+    Unkai.Storage.Projects.HmacKeys.Create+    Unkai.Storage.Projects.HmacKeys.Delete+    Unkai.Storage.Projects.HmacKeys.Get+    Unkai.Storage.Projects.HmacKeys.List+    Unkai.Storage.Projects.HmacKeys.Update+    Unkai.Storage.Projects.ServiceAccount.Get+    Unkai.Storage.RapidCaches.Disable+    Unkai.Storage.RapidCaches.Get+    Unkai.Storage.RapidCaches.Insert+    Unkai.Storage.RapidCaches.List+    Unkai.Storage.RapidCaches.Update+    Unkai.Storage.Types++  other-modules:+    Unkai.Storage.Internal.Product+    Unkai.Storage.Internal.Sum++  build-depends:+    unkai-core ^>=0.1.0.1